]> git.saurik.com Git - wxWidgets.git/blame - configure
no changes (spaces only)
[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
d25774ab 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); } &&
d25774ab
JS
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
ac1cb8d3
VS
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_compiler_gnu=yes
11810else
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
11814ac_compiler_gnu=no
11815fi
ac1cb8d3 11816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11817ac_cv_c_compiler_gnu=$ac_compiler_gnu
11818
11819fi
11820echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11821echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11822GCC=`test $ac_compiler_gnu = yes && echo yes`
11823ac_test_CFLAGS=${CFLAGS+set}
11824ac_save_CFLAGS=$CFLAGS
8aeeb05c 11825CFLAGS="-g"
a848cd7e
SC
11826echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11827echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11828if test "${ac_cv_prog_cc_g+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830else
11831 cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837
11838int
11839main ()
11840{
11841
11842 ;
11843 return 0;
11844}
11845_ACEOF
11846rm -f conftest.$ac_objext
11847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11848 (eval $ac_compile) 2>conftest.er1
a848cd7e 11849 ac_status=$?
ac1cb8d3
VS
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
a848cd7e
SC
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
d25774ab
JS
11855 { ac_try='test -z "$ac_c_werror_flag"
11856 || test ! -s conftest.err'
ac1cb8d3
VS
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 ac_cv_prog_cc_g=yes
11869else
11870 echo "$as_me: failed program was:" >&5
11871sed 's/^/| /' conftest.$ac_ext >&5
11872
11873ac_cv_prog_cc_g=no
11874fi
ac1cb8d3 11875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11876fi
11877echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11878echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11879if test "$ac_test_CFLAGS" = set; then
11880 CFLAGS=$ac_save_CFLAGS
11881elif test $ac_cv_prog_cc_g = yes; then
11882 if test "$GCC" = yes; then
11883 CFLAGS="-g -O2"
11884 else
11885 CFLAGS="-g"
11886 fi
11887else
11888 if test "$GCC" = yes; then
11889 CFLAGS="-O2"
11890 else
11891 CFLAGS=
11892 fi
11893fi
11894echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11895echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11896if test "${ac_cv_prog_cc_stdc+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898else
11899 ac_cv_prog_cc_stdc=no
11900ac_save_CC=$CC
11901cat >conftest.$ac_ext <<_ACEOF
11902/* confdefs.h. */
11903_ACEOF
11904cat confdefs.h >>conftest.$ac_ext
11905cat >>conftest.$ac_ext <<_ACEOF
11906/* end confdefs.h. */
11907#include <stdarg.h>
11908#include <stdio.h>
11909#include <sys/types.h>
11910#include <sys/stat.h>
11911/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11912struct buf { int x; };
11913FILE * (*rcsopen) (struct buf *, struct stat *, int);
11914static char *e (p, i)
11915 char **p;
11916 int i;
11917{
11918 return p[i];
11919}
11920static char *f (char * (*g) (char **, int), char **p, ...)
11921{
11922 char *s;
11923 va_list v;
11924 va_start (v,p);
11925 s = g (p, va_arg (v,int));
11926 va_end (v);
11927 return s;
11928}
ac1cb8d3
VS
11929
11930/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11931 function prototypes and stuff, but not '\xHH' hex character constants.
11932 These don't provoke an error unfortunately, instead are silently treated
11933 as 'x'. The following induces an error, until -std1 is added to get
11934 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11935 array size at least. It's necessary to write '\x00'==0 to get something
11936 that's true only with -std1. */
11937int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11938
a848cd7e
SC
11939int test (int i, double x);
11940struct s1 {int (*f) (int a);};
11941struct s2 {int (*f) (double a);};
11942int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11943int argc;
11944char **argv;
11945int
11946main ()
11947{
11948return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953# Don't try gcc -ansi; that turns off useful extensions and
11954# breaks some systems' header files.
11955# AIX -qlanglvl=ansi
11956# Ultrix and OSF/1 -std1
11957# HP-UX 10.20 and later -Ae
11958# HP-UX older versions -Aa -D_HPUX_SOURCE
11959# SVR4 -Xc -D__EXTENSIONS__
11960for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11961do
11962 CC="$ac_save_CC $ac_arg"
11963 rm -f conftest.$ac_objext
11964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11965 (eval $ac_compile) 2>conftest.er1
a848cd7e 11966 ac_status=$?
ac1cb8d3
VS
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
a848cd7e
SC
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
d25774ab
JS
11972 { ac_try='test -z "$ac_c_werror_flag"
11973 || test ! -s conftest.err'
ac1cb8d3
VS
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_prog_cc_stdc=$ac_arg
11986break
11987else
11988 echo "$as_me: failed program was:" >&5
11989sed 's/^/| /' conftest.$ac_ext >&5
11990
11991fi
ac1cb8d3 11992rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11993done
11994rm -f conftest.$ac_ext conftest.$ac_objext
11995CC=$ac_save_CC
11996
11997fi
11998
11999case "x$ac_cv_prog_cc_stdc" in
12000 x|xno)
12001 echo "$as_me:$LINENO: result: none needed" >&5
12002echo "${ECHO_T}none needed" >&6 ;;
12003 *)
12004 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12005echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12006 CC="$CC $ac_cv_prog_cc_stdc" ;;
12007esac
12008
12009# Some people use a C++ compiler to compile C. Since we use `exit',
12010# in C++ we need to declare it. In case someone uses the same compiler
12011# for both compiling C and C++ we need to have the C++ compiler decide
12012# the declaration of exit, since it's the most demanding environment.
12013cat >conftest.$ac_ext <<_ACEOF
12014#ifndef __cplusplus
12015 choke me
12016#endif
12017_ACEOF
12018rm -f conftest.$ac_objext
12019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12020 (eval $ac_compile) 2>conftest.er1
a848cd7e 12021 ac_status=$?
ac1cb8d3
VS
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
a848cd7e
SC
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
d25774ab
JS
12027 { ac_try='test -z "$ac_c_werror_flag"
12028 || test ! -s conftest.err'
ac1cb8d3
VS
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 for ac_declaration in \
ac1cb8d3 12041 '' \
a848cd7e
SC
12042 'extern "C" void std::exit (int) throw (); using std::exit;' \
12043 'extern "C" void std::exit (int); using std::exit;' \
12044 'extern "C" void exit (int) throw ();' \
12045 'extern "C" void exit (int);' \
12046 'void exit (int);'
12047do
12048 cat >conftest.$ac_ext <<_ACEOF
12049/* confdefs.h. */
12050_ACEOF
12051cat confdefs.h >>conftest.$ac_ext
12052cat >>conftest.$ac_ext <<_ACEOF
12053/* end confdefs.h. */
de59c161 12054$ac_declaration
ac1cb8d3 12055#include <stdlib.h>
a848cd7e
SC
12056int
12057main ()
12058{
12059exit (42);
12060 ;
12061 return 0;
12062}
12063_ACEOF
12064rm -f conftest.$ac_objext
12065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12066 (eval $ac_compile) 2>conftest.er1
a848cd7e 12067 ac_status=$?
ac1cb8d3
VS
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
a848cd7e
SC
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } &&
d25774ab
JS
12073 { ac_try='test -z "$ac_c_werror_flag"
12074 || test ! -s conftest.err'
ac1cb8d3
VS
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 :
12087else
12088 echo "$as_me: failed program was:" >&5
12089sed 's/^/| /' conftest.$ac_ext >&5
12090
12091continue
12092fi
ac1cb8d3 12093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12094 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
12100$ac_declaration
12101int
12102main ()
12103{
12104exit (42);
12105 ;
12106 return 0;
12107}
12108_ACEOF
12109rm -f conftest.$ac_objext
12110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12111 (eval $ac_compile) 2>conftest.er1
a848cd7e 12112 ac_status=$?
ac1cb8d3
VS
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
a848cd7e
SC
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
d25774ab
JS
12118 { ac_try='test -z "$ac_c_werror_flag"
12119 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
12125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 break
12132else
12133 echo "$as_me: failed program was:" >&5
12134sed 's/^/| /' conftest.$ac_ext >&5
12135
12136fi
ac1cb8d3 12137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12138done
12139rm -f conftest*
12140if test -n "$ac_declaration"; then
12141 echo '#ifdef __cplusplus' >>confdefs.h
12142 echo $ac_declaration >>confdefs.h
12143 echo '#endif' >>confdefs.h
12144fi
12145
12146else
12147 echo "$as_me: failed program was:" >&5
12148sed 's/^/| /' conftest.$ac_ext >&5
12149
12150fi
ac1cb8d3 12151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12152ac_ext=c
12153ac_cpp='$CPP $CPPFLAGS'
12154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12156ac_compiler_gnu=$ac_cv_c_compiler_gnu
12157
ab0ad5f1
VZ
12158
12159
12160 ac_ext=c
12161ac_cpp='$CPP $CPPFLAGS'
12162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12164ac_compiler_gnu=$ac_cv_c_compiler_gnu
12165
12166 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12167echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12168if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170else
12171 cat >conftest.$ac_ext <<_ACEOF
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h. */
12177
12178int
12179main ()
12180{
12181
12182 #ifndef __INTEL_COMPILER
12183 choke me
12184 #endif
12185
12186 ;
12187 return 0;
12188}
12189_ACEOF
12190rm -f conftest.$ac_objext
12191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12192 (eval $ac_compile) 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
d25774ab
JS
12199 { ac_try='test -z "$ac_c_werror_flag"
12200 || test ! -s conftest.err'
ab0ad5f1
VZ
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest.$ac_objext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12213else
12214 echo "$as_me: failed program was:" >&5
12215sed 's/^/| /' conftest.$ac_ext >&5
12216
12217bakefile_cv_c_compiler___INTEL_COMPILER=no
12218
12219fi
12220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12221
12222
12223fi
12224echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12225echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12226 ac_ext=c
12227ac_cpp='$CPP $CPPFLAGS'
12228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12230ac_compiler_gnu=$ac_cv_c_compiler_gnu
12231
12232 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12233 :; INTELCC=yes
12234 else
12235 :;
12236 fi
12237
12238
12239 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12240 if test "xCC" = "xC"; then
12241 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12242echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12243if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245else
12246 cat >conftest.$ac_ext <<_ACEOF
12247/* confdefs.h. */
12248_ACEOF
12249cat confdefs.h >>conftest.$ac_ext
12250cat >>conftest.$ac_ext <<_ACEOF
12251/* end confdefs.h. */
12252
12253int
12254main ()
12255{
12256
12257 ;
12258 return 0;
12259}
12260_ACEOF
12261rm -f conftest.$ac_objext conftest.$ac_ext.o
12262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12263 (eval $ac_compile) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; then
12267 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12268 case $ac_file in
12269 conftest.$ac_ext.o)
0093c2fc 12270 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12271 ;;
12272 *)
12273 ;;
12274 esac
12275done
12276else
12277 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12278See \`config.log' for more details." >&5
12279echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12280See \`config.log' for more details." >&2;}
12281 { (exit 1); exit 1; }; }
12282
12283fi
12284
12285rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12286
12287fi
0093c2fc
VZ
12288echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12289echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12290if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12291 if test "c" = "c"; then
0093c2fc 12292 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12293 fi
12294 if test "c" = "cxx"; then
0093c2fc 12295 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12296 fi
12297fi
12298
0093c2fc 12299 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12300 unset ac_cv_prog_cc_g
12301 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12302ac_save_CFLAGS=$CFLAGS
8aeeb05c 12303CFLAGS="-g"
480ccd21
DE
12304echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12305echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12306if test "${ac_cv_prog_cc_g+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 cat >conftest.$ac_ext <<_ACEOF
12310/* confdefs.h. */
12311_ACEOF
12312cat confdefs.h >>conftest.$ac_ext
12313cat >>conftest.$ac_ext <<_ACEOF
12314/* end confdefs.h. */
12315
12316int
12317main ()
12318{
12319
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324rm -f conftest.$ac_objext
12325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326 (eval $ac_compile) 2>conftest.er1
12327 ac_status=$?
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
d25774ab
JS
12333 { ac_try='test -z "$ac_c_werror_flag"
12334 || test ! -s conftest.err'
480ccd21
DE
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest.$ac_objext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 ac_cv_prog_cc_g=yes
12347else
12348 echo "$as_me: failed program was:" >&5
12349sed 's/^/| /' conftest.$ac_ext >&5
12350
12351ac_cv_prog_cc_g=no
12352fi
12353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12354fi
12355echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12356echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12357if test "$ac_test_CFLAGS" = set; then
12358 CFLAGS=$ac_save_CFLAGS
12359elif test $ac_cv_prog_cc_g = yes; then
12360 if test "$GCC" = yes; then
12361 CFLAGS="-g -O2"
12362 else
12363 CFLAGS="-g"
12364 fi
12365else
12366 if test "$GCC" = yes; then
12367 CFLAGS="-O2"
12368 else
12369 CFLAGS=
12370 fi
12371fi
3006edc0 12372 fi
ab0ad5f1 12373 fi
3006edc0
VZ
12374
12375 case `uname -s` in
12376 AIX*)
12377 ac_ext=c
12378ac_cpp='$CPP $CPPFLAGS'
12379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381ac_compiler_gnu=$ac_cv_c_compiler_gnu
12382
12383echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12384echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12385if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387else
12388 cat >conftest.$ac_ext <<_ACEOF
12389/* confdefs.h. */
12390_ACEOF
12391cat confdefs.h >>conftest.$ac_ext
12392cat >>conftest.$ac_ext <<_ACEOF
12393/* end confdefs.h. */
12394
12395int
12396main ()
12397{
12398#ifndef __xlC__
12399 choke me
12400#endif
12401
12402 ;
12403 return 0;
12404}
12405_ACEOF
12406rm -f conftest.$ac_objext
12407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408 (eval $ac_compile) 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
d25774ab
JS
12415 { ac_try='test -z "$ac_c_werror_flag"
12416 || test ! -s conftest.err'
3006edc0
VZ
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try='test -s conftest.$ac_objext'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
0093c2fc 12428 bakefile_compiler_xlc=yes
3006edc0
VZ
12429else
12430 echo "$as_me: failed program was:" >&5
12431sed 's/^/| /' conftest.$ac_ext >&5
12432
0093c2fc 12433bakefile_compiler_xlc=no
3006edc0
VZ
12434fi
12435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12436 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12437
12438fi
0093c2fc
VZ
12439echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12440echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12441
0093c2fc 12442XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12443ac_ext=c
12444ac_cpp='$CPP $CPPFLAGS'
12445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12447ac_compiler_gnu=$ac_cv_c_compiler_gnu
12448
12449
12450 ;;
12451
12452 Darwin)
12453 ac_ext=c
95986553
DE
12454ac_cpp='$CPP $CPPFLAGS'
12455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12457ac_compiler_gnu=$ac_cv_c_compiler_gnu
12458
12459echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12460echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12461if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463else
12464 cat >conftest.$ac_ext <<_ACEOF
12465/* confdefs.h. */
12466_ACEOF
12467cat confdefs.h >>conftest.$ac_ext
12468cat >>conftest.$ac_ext <<_ACEOF
12469/* end confdefs.h. */
12470
12471int
12472main ()
12473{
12474#ifndef __MWERKS__
12475 choke me
12476#endif
12477
12478 ;
12479 return 0;
12480}
12481_ACEOF
12482rm -f conftest.$ac_objext
12483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
d25774ab
JS
12491 { ac_try='test -z "$ac_c_werror_flag"
12492 || test ! -s conftest.err'
95986553
DE
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 bakefile_compiler_mwerks=yes
12505else
12506 echo "$as_me: failed program was:" >&5
12507sed 's/^/| /' conftest.$ac_ext >&5
12508
12509bakefile_compiler_mwerks=no
12510fi
12511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12512 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12513
12514fi
12515echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12516echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12517
0e6fa1d9 12518MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12519ac_ext=c
12520ac_cpp='$CPP $CPPFLAGS'
12521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12523ac_compiler_gnu=$ac_cv_c_compiler_gnu
12524
12525
3006edc0 12526 ac_ext=c
9273ffba
DE
12527ac_cpp='$CPP $CPPFLAGS'
12528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12530ac_compiler_gnu=$ac_cv_c_compiler_gnu
12531
12532echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12533echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12534if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12536else
12537 cat >conftest.$ac_ext <<_ACEOF
12538/* confdefs.h. */
12539_ACEOF
12540cat confdefs.h >>conftest.$ac_ext
12541cat >>conftest.$ac_ext <<_ACEOF
12542/* end confdefs.h. */
12543
12544int
12545main ()
12546{
12547#ifndef __xlC__
12548 choke me
12549#endif
12550
12551 ;
12552 return 0;
12553}
12554_ACEOF
12555rm -f conftest.$ac_objext
12556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557 (eval $ac_compile) 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
d25774ab
JS
12564 { ac_try='test -z "$ac_c_werror_flag"
12565 || test ! -s conftest.err'
9273ffba
DE
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest.$ac_objext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
0093c2fc 12577 bakefile_compiler_xlc=yes
9273ffba
DE
12578else
12579 echo "$as_me: failed program was:" >&5
12580sed 's/^/| /' conftest.$ac_ext >&5
12581
0093c2fc 12582bakefile_compiler_xlc=no
9273ffba
DE
12583fi
12584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12585 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12586
12587fi
0093c2fc
VZ
12588echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12589echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12590
0093c2fc 12591XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12592ac_ext=c
12593ac_cpp='$CPP $CPPFLAGS'
12594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12596ac_compiler_gnu=$ac_cv_c_compiler_gnu
12597
12598
3006edc0
VZ
12599 ;;
12600
12601 IRIX*)
a848cd7e 12602
6dcfc289 12603
0ad5d837
VZ
12604 ac_ext=c
12605ac_cpp='$CPP $CPPFLAGS'
12606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12608ac_compiler_gnu=$ac_cv_c_compiler_gnu
12609
12610 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12611echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12612if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614else
12615 cat >conftest.$ac_ext <<_ACEOF
12616/* confdefs.h. */
12617_ACEOF
12618cat confdefs.h >>conftest.$ac_ext
12619cat >>conftest.$ac_ext <<_ACEOF
12620/* end confdefs.h. */
12621
12622int
12623main ()
12624{
12625
12626 #ifndef _SGI_COMPILER_VERSION
12627 choke me
12628 #endif
12629
12630 ;
12631 return 0;
12632}
12633_ACEOF
12634rm -f conftest.$ac_objext
12635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636 (eval $ac_compile) 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } &&
d25774ab
JS
12643 { ac_try='test -z "$ac_c_werror_flag"
12644 || test ! -s conftest.err'
0ad5d837
VZ
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; } &&
12650 { ac_try='test -s conftest.$ac_objext'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
12656 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12657else
12658 echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
12661bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12662
12663fi
12664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12665
12666
12667fi
12668echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12669echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12670 ac_ext=c
12671ac_cpp='$CPP $CPPFLAGS'
12672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12674ac_compiler_gnu=$ac_cv_c_compiler_gnu
12675
12676 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12677 :; SGICC=yes
12678 else
12679 :;
12680 fi
12681
12682
3006edc0
VZ
12683 ;;
12684
0093c2fc 12685 HP-UX*)
3006edc0
VZ
12686
12687
12688 ac_ext=c
12689ac_cpp='$CPP $CPPFLAGS'
12690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12692ac_compiler_gnu=$ac_cv_c_compiler_gnu
12693
0093c2fc
VZ
12694 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12695echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12696if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698else
12699 cat >conftest.$ac_ext <<_ACEOF
12700/* confdefs.h. */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h. */
12705
12706int
12707main ()
12708{
12709
0093c2fc 12710 #ifndef __HP_cc
3006edc0
VZ
12711 choke me
12712 #endif
12713
12714 ;
12715 return 0;
12716}
12717_ACEOF
12718rm -f conftest.$ac_objext
12719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720 (eval $ac_compile) 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } &&
d25774ab
JS
12727 { ac_try='test -z "$ac_c_werror_flag"
12728 || test ! -s conftest.err'
3006edc0
VZ
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } &&
12734 { ac_try='test -s conftest.$ac_objext'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
0093c2fc 12740 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12741else
12742 echo "$as_me: failed program was:" >&5
12743sed 's/^/| /' conftest.$ac_ext >&5
12744
0093c2fc 12745bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12746
12747fi
12748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12749
12750
12751fi
0093c2fc
VZ
12752echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12753echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12754 ac_ext=c
12755ac_cpp='$CPP $CPPFLAGS'
12756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12758ac_compiler_gnu=$ac_cv_c_compiler_gnu
12759
0093c2fc
VZ
12760 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12761 :; HPCC=yes
a1aa0349
VZ
12762 else
12763 :;
12764 fi
12765
12766
12767 ;;
12768
0093c2fc 12769 OSF1)
a1aa0349
VZ
12770
12771
12772 ac_ext=c
12773ac_cpp='$CPP $CPPFLAGS'
12774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12776ac_compiler_gnu=$ac_cv_c_compiler_gnu
12777
0093c2fc
VZ
12778 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12779echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12780if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782else
12783 cat >conftest.$ac_ext <<_ACEOF
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789
12790int
12791main ()
12792{
12793
0093c2fc 12794 #ifndef __DECC
a1aa0349
VZ
12795 choke me
12796 #endif
12797
12798 ;
12799 return 0;
12800}
12801_ACEOF
12802rm -f conftest.$ac_objext
12803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12804 (eval $ac_compile) 2>conftest.er1
12805 ac_status=$?
12806 grep -v '^ *+' conftest.er1 >conftest.err
12807 rm -f conftest.er1
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
d25774ab
JS
12811 { ac_try='test -z "$ac_c_werror_flag"
12812 || test ! -s conftest.err'
a1aa0349
VZ
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try='test -s conftest.$ac_objext'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
0093c2fc 12824 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12825else
12826 echo "$as_me: failed program was:" >&5
12827sed 's/^/| /' conftest.$ac_ext >&5
12828
0093c2fc 12829bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12830
12831fi
12832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12833
12834
12835fi
0093c2fc
VZ
12836echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12837echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12838 ac_ext=c
12839ac_cpp='$CPP $CPPFLAGS'
12840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842ac_compiler_gnu=$ac_cv_c_compiler_gnu
12843
0093c2fc
VZ
12844 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12845 :; COMPAQCC=yes
12846 else
12847 :;
12848 fi
12849
12850
12851 ;;
12852
12853 SunOS)
12854
12855
12856 ac_ext=c
12857ac_cpp='$CPP $CPPFLAGS'
12858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12860ac_compiler_gnu=$ac_cv_c_compiler_gnu
12861
12862 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12863echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12864if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12866else
12867 cat >conftest.$ac_ext <<_ACEOF
12868/* confdefs.h. */
12869_ACEOF
12870cat confdefs.h >>conftest.$ac_ext
12871cat >>conftest.$ac_ext <<_ACEOF
12872/* end confdefs.h. */
12873
12874int
12875main ()
12876{
12877
12878 #ifndef __SUNPRO_C
12879 choke me
12880 #endif
12881
12882 ;
12883 return 0;
12884}
12885_ACEOF
12886rm -f conftest.$ac_objext
12887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12888 (eval $ac_compile) 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
d25774ab
JS
12895 { ac_try='test -z "$ac_c_werror_flag"
12896 || test ! -s conftest.err'
0093c2fc
VZ
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; } &&
12902 { ac_try='test -s conftest.$ac_objext'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; }; then
12908 bakefile_cv_c_compiler___SUNPRO_C=yes
12909else
12910 echo "$as_me: failed program was:" >&5
12911sed 's/^/| /' conftest.$ac_ext >&5
12912
12913bakefile_cv_c_compiler___SUNPRO_C=no
12914
12915fi
12916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12917
12918
12919fi
12920echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12921echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12922 ac_ext=c
12923ac_cpp='$CPP $CPPFLAGS'
12924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926ac_compiler_gnu=$ac_cv_c_compiler_gnu
12927
12928 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12929 :; SUNCC=yes
3006edc0
VZ
12930 else
12931 :;
12932 fi
12933
12934
12935 ;;
12936 esac
ab0ad5f1 12937 fi
a9e5b1f0
MW
12938
12939
3006edc0 12940
a848cd7e
SC
12941ac_ext=c
12942ac_cpp='$CPP $CPPFLAGS'
12943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945ac_compiler_gnu=$ac_cv_c_compiler_gnu
12946echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12947echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12948# On Suns, sometimes $CPP names a directory.
12949if test -n "$CPP" && test -d "$CPP"; then
12950 CPP=
12951fi
12952if test -z "$CPP"; then
12953 if test "${ac_cv_prog_CPP+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955else
12956 # Double quotes because CPP needs to be expanded
12957 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12958 do
12959 ac_preproc_ok=false
12960for ac_c_preproc_warn_flag in '' yes
12961do
12962 # Use a header file that comes with gcc, so configuring glibc
12963 # with a fresh cross-compiler works.
12964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12965 # <limits.h> exists even on freestanding compilers.
12966 # On the NeXT, cc -E runs the code through the compiler's parser,
12967 # not just through cpp. "Syntax error" is here to catch this case.
12968 cat >conftest.$ac_ext <<_ACEOF
12969/* confdefs.h. */
12970_ACEOF
12971cat confdefs.h >>conftest.$ac_ext
12972cat >>conftest.$ac_ext <<_ACEOF
12973/* end confdefs.h. */
12974#ifdef __STDC__
12975# include <limits.h>
12976#else
12977# include <assert.h>
12978#endif
ac1cb8d3 12979 Syntax error
a848cd7e
SC
12980_ACEOF
12981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } >/dev/null; then
12989 if test -s conftest.err; then
12990 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12992 else
12993 ac_cpp_err=
12994 fi
12995else
12996 ac_cpp_err=yes
12997fi
12998if test -z "$ac_cpp_err"; then
12999 :
13000else
13001 echo "$as_me: failed program was:" >&5
13002sed 's/^/| /' conftest.$ac_ext >&5
13003
13004 # Broken: fails on valid input.
13005continue
13006fi
13007rm -f conftest.err conftest.$ac_ext
13008
13009 # OK, works on sane cases. Now check whether non-existent headers
13010 # can be detected and how.
13011 cat >conftest.$ac_ext <<_ACEOF
13012/* confdefs.h. */
13013_ACEOF
13014cat confdefs.h >>conftest.$ac_ext
13015cat >>conftest.$ac_ext <<_ACEOF
13016/* end confdefs.h. */
13017#include <ac_nonexistent.h>
13018_ACEOF
13019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13021 ac_status=$?
13022 grep -v '^ *+' conftest.er1 >conftest.err
13023 rm -f conftest.er1
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } >/dev/null; then
13027 if test -s conftest.err; then
13028 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13030 else
13031 ac_cpp_err=
13032 fi
13033else
13034 ac_cpp_err=yes
13035fi
13036if test -z "$ac_cpp_err"; then
13037 # Broken: success on invalid input.
13038continue
13039else
13040 echo "$as_me: failed program was:" >&5
13041sed 's/^/| /' conftest.$ac_ext >&5
13042
13043 # Passes both tests.
13044ac_preproc_ok=:
13045break
13046fi
13047rm -f conftest.err conftest.$ac_ext
13048
13049done
13050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13051rm -f conftest.err conftest.$ac_ext
13052if $ac_preproc_ok; then
13053 break
13054fi
13055
13056 done
13057 ac_cv_prog_CPP=$CPP
13058
13059fi
13060 CPP=$ac_cv_prog_CPP
13061else
13062 ac_cv_prog_CPP=$CPP
13063fi
13064echo "$as_me:$LINENO: result: $CPP" >&5
13065echo "${ECHO_T}$CPP" >&6
13066ac_preproc_ok=false
13067for ac_c_preproc_warn_flag in '' yes
13068do
13069 # Use a header file that comes with gcc, so configuring glibc
13070 # with a fresh cross-compiler works.
13071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13072 # <limits.h> exists even on freestanding compilers.
13073 # On the NeXT, cc -E runs the code through the compiler's parser,
13074 # not just through cpp. "Syntax error" is here to catch this case.
13075 cat >conftest.$ac_ext <<_ACEOF
13076/* confdefs.h. */
13077_ACEOF
13078cat confdefs.h >>conftest.$ac_ext
13079cat >>conftest.$ac_ext <<_ACEOF
13080/* end confdefs.h. */
13081#ifdef __STDC__
13082# include <limits.h>
13083#else
13084# include <assert.h>
13085#endif
ac1cb8d3 13086 Syntax error
a848cd7e
SC
13087_ACEOF
13088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13090 ac_status=$?
13091 grep -v '^ *+' conftest.er1 >conftest.err
13092 rm -f conftest.er1
13093 cat conftest.err >&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } >/dev/null; then
13096 if test -s conftest.err; then
13097 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13099 else
13100 ac_cpp_err=
13101 fi
13102else
13103 ac_cpp_err=yes
13104fi
13105if test -z "$ac_cpp_err"; then
13106 :
13107else
13108 echo "$as_me: failed program was:" >&5
13109sed 's/^/| /' conftest.$ac_ext >&5
13110
13111 # Broken: fails on valid input.
13112continue
13113fi
13114rm -f conftest.err conftest.$ac_ext
13115
13116 # OK, works on sane cases. Now check whether non-existent headers
13117 # can be detected and how.
13118 cat >conftest.$ac_ext <<_ACEOF
13119/* confdefs.h. */
13120_ACEOF
13121cat confdefs.h >>conftest.$ac_ext
13122cat >>conftest.$ac_ext <<_ACEOF
13123/* end confdefs.h. */
13124#include <ac_nonexistent.h>
13125_ACEOF
13126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13128 ac_status=$?
13129 grep -v '^ *+' conftest.er1 >conftest.err
13130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } >/dev/null; then
13134 if test -s conftest.err; then
13135 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13137 else
13138 ac_cpp_err=
13139 fi
13140else
13141 ac_cpp_err=yes
13142fi
13143if test -z "$ac_cpp_err"; then
13144 # Broken: success on invalid input.
13145continue
13146else
13147 echo "$as_me: failed program was:" >&5
13148sed 's/^/| /' conftest.$ac_ext >&5
13149
13150 # Passes both tests.
13151ac_preproc_ok=:
13152break
13153fi
13154rm -f conftest.err conftest.$ac_ext
13155
13156done
13157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13158rm -f conftest.err conftest.$ac_ext
13159if $ac_preproc_ok; then
13160 :
13161else
13162 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13163See \`config.log' for more details." >&5
13164echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13165See \`config.log' for more details." >&2;}
13166 { (exit 1); exit 1; }; }
13167fi
13168
13169ac_ext=c
13170ac_cpp='$CPP $CPPFLAGS'
13171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13173ac_compiler_gnu=$ac_cv_c_compiler_gnu
13174
13175
13176echo "$as_me:$LINENO: checking for egrep" >&5
13177echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13178if test "${ac_cv_prog_egrep+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13180else
13181 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13182 then ac_cv_prog_egrep='grep -E'
13183 else ac_cv_prog_egrep='egrep'
13184 fi
13185fi
13186echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13187echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13188 EGREP=$ac_cv_prog_egrep
13189
13190
13191if test $ac_cv_c_compiler_gnu = yes; then
13192 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13193echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13194if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13196else
13197 ac_pattern="Autoconf.*'x'"
13198 cat >conftest.$ac_ext <<_ACEOF
13199/* confdefs.h. */
13200_ACEOF
13201cat confdefs.h >>conftest.$ac_ext
13202cat >>conftest.$ac_ext <<_ACEOF
13203/* end confdefs.h. */
13204#include <sgtty.h>
13205Autoconf TIOCGETP
13206_ACEOF
13207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13208 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13209 ac_cv_prog_gcc_traditional=yes
13210else
13211 ac_cv_prog_gcc_traditional=no
13212fi
13213rm -f conftest*
13214
13215
13216 if test $ac_cv_prog_gcc_traditional = no; then
13217 cat >conftest.$ac_ext <<_ACEOF
13218/* confdefs.h. */
13219_ACEOF
13220cat confdefs.h >>conftest.$ac_ext
13221cat >>conftest.$ac_ext <<_ACEOF
13222/* end confdefs.h. */
13223#include <termio.h>
13224Autoconf TCGETA
13225_ACEOF
13226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13227 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13228 ac_cv_prog_gcc_traditional=yes
13229fi
13230rm -f conftest*
13231
13232 fi
13233fi
13234echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13235echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13236 if test $ac_cv_prog_gcc_traditional = yes; then
13237 CC="$CC -traditional"
13238 fi
13239fi
13240
13241
a848cd7e
SC
13242ac_ext=cc
13243ac_cpp='$CXXCPP $CPPFLAGS'
13244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13247
13248
13249CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13250
13251
3006edc0 13252
6dcfc289 13253 ac_ext=cc
a848cd7e
SC
13254ac_cpp='$CXXCPP $CPPFLAGS'
13255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13258if test -n "$ac_tool_prefix"; then
13259 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13260 do
13261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13262set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13263echo "$as_me:$LINENO: checking for $ac_word" >&5
13264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13265if test "${ac_cv_prog_CXX+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13267else
13268 if test -n "$CXX"; then
13269 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13270else
13271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272for as_dir in $PATH
13273do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13278 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13280 break 2
13281 fi
13282done
13283done
13284
13285fi
13286fi
13287CXX=$ac_cv_prog_CXX
13288if test -n "$CXX"; then
13289 echo "$as_me:$LINENO: result: $CXX" >&5
13290echo "${ECHO_T}$CXX" >&6
13291else
13292 echo "$as_me:$LINENO: result: no" >&5
13293echo "${ECHO_T}no" >&6
13294fi
13295
13296 test -n "$CXX" && break
13297 done
13298fi
13299if test -z "$CXX"; then
13300 ac_ct_CXX=$CXX
13301 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13302do
13303 # Extract the first word of "$ac_prog", so it can be a program name with args.
13304set dummy $ac_prog; ac_word=$2
13305echo "$as_me:$LINENO: checking for $ac_word" >&5
13306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13307if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13308 echo $ECHO_N "(cached) $ECHO_C" >&6
13309else
13310 if test -n "$ac_ct_CXX"; then
13311 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13312else
13313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314for as_dir in $PATH
13315do
13316 IFS=$as_save_IFS
13317 test -z "$as_dir" && as_dir=.
13318 for ac_exec_ext in '' $ac_executable_extensions; do
13319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13320 ac_cv_prog_ac_ct_CXX="$ac_prog"
13321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13322 break 2
13323 fi
13324done
13325done
13326
13327fi
13328fi
13329ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13330if test -n "$ac_ct_CXX"; then
13331 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13332echo "${ECHO_T}$ac_ct_CXX" >&6
13333else
13334 echo "$as_me:$LINENO: result: no" >&5
13335echo "${ECHO_T}no" >&6
13336fi
13337
13338 test -n "$ac_ct_CXX" && break
13339done
13340test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13341
13342 CXX=$ac_ct_CXX
13343fi
13344
13345
13346# Provide some information about the compiler.
13347echo "$as_me:$LINENO:" \
13348 "checking for C++ compiler version" >&5
13349ac_compiler=`set X $ac_compile; echo $2`
13350{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13351 (eval $ac_compiler --version </dev/null >&5) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }
13355{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13356 (eval $ac_compiler -v </dev/null >&5) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }
13360{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13361 (eval $ac_compiler -V </dev/null >&5) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }
13365
13366echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13367echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13368if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13370else
13371 cat >conftest.$ac_ext <<_ACEOF
13372/* confdefs.h. */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
13376/* end confdefs.h. */
13377
13378int
13379main ()
13380{
13381#ifndef __GNUC__
13382 choke me
13383#endif
13384
13385 ;
13386 return 0;
13387}
13388_ACEOF
13389rm -f conftest.$ac_objext
13390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13391 (eval $ac_compile) 2>conftest.er1
a848cd7e 13392 ac_status=$?
ac1cb8d3
VS
13393 grep -v '^ *+' conftest.er1 >conftest.err
13394 rm -f conftest.er1
13395 cat conftest.err >&5
a848cd7e
SC
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
d25774ab
JS
13398 { ac_try='test -z "$ac_cxx_werror_flag"
13399 || test ! -s conftest.err'
ac1cb8d3
VS
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; } &&
13405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }; then
13411 ac_compiler_gnu=yes
13412else
13413 echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
13416ac_compiler_gnu=no
13417fi
ac1cb8d3 13418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13419ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13420
13421fi
13422echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13423echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13424GXX=`test $ac_compiler_gnu = yes && echo yes`
13425ac_test_CXXFLAGS=${CXXFLAGS+set}
13426ac_save_CXXFLAGS=$CXXFLAGS
13427CXXFLAGS="-g"
13428echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13429echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13430if test "${ac_cv_prog_cxx_g+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13432else
13433 cat >conftest.$ac_ext <<_ACEOF
13434/* confdefs.h. */
13435_ACEOF
13436cat confdefs.h >>conftest.$ac_ext
13437cat >>conftest.$ac_ext <<_ACEOF
13438/* end confdefs.h. */
13439
13440int
13441main ()
13442{
13443
13444 ;
13445 return 0;
13446}
13447_ACEOF
13448rm -f conftest.$ac_objext
13449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13450 (eval $ac_compile) 2>conftest.er1
a848cd7e 13451 ac_status=$?
ac1cb8d3
VS
13452 grep -v '^ *+' conftest.er1 >conftest.err
13453 rm -f conftest.er1
13454 cat conftest.err >&5
a848cd7e
SC
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } &&
d25774ab
JS
13457 { ac_try='test -z "$ac_cxx_werror_flag"
13458 || test ! -s conftest.err'
ac1cb8d3
VS
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13461 ac_status=$?
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; } &&
13464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470 ac_cv_prog_cxx_g=yes
13471else
13472 echo "$as_me: failed program was:" >&5
13473sed 's/^/| /' conftest.$ac_ext >&5
13474
13475ac_cv_prog_cxx_g=no
13476fi
ac1cb8d3 13477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13478fi
13479echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13480echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13481if test "$ac_test_CXXFLAGS" = set; then
13482 CXXFLAGS=$ac_save_CXXFLAGS
13483elif test $ac_cv_prog_cxx_g = yes; then
13484 if test "$GXX" = yes; then
8aeeb05c 13485 CXXFLAGS="-g -O2"
a848cd7e 13486 else
8aeeb05c 13487 CXXFLAGS="-g"
a848cd7e
SC
13488 fi
13489else
13490 if test "$GXX" = yes; then
13491 CXXFLAGS="-O2"
13492 else
13493 CXXFLAGS=
13494 fi
13495fi
13496for ac_declaration in \
ac1cb8d3 13497 '' \
a848cd7e
SC
13498 'extern "C" void std::exit (int) throw (); using std::exit;' \
13499 'extern "C" void std::exit (int); using std::exit;' \
13500 'extern "C" void exit (int) throw ();' \
13501 'extern "C" void exit (int);' \
13502 'void exit (int);'
13503do
13504 cat >conftest.$ac_ext <<_ACEOF
13505/* confdefs.h. */
13506_ACEOF
13507cat confdefs.h >>conftest.$ac_ext
13508cat >>conftest.$ac_ext <<_ACEOF
13509/* end confdefs.h. */
de59c161 13510$ac_declaration
ac1cb8d3 13511#include <stdlib.h>
a848cd7e
SC
13512int
13513main ()
13514{
13515exit (42);
13516 ;
13517 return 0;
13518}
13519_ACEOF
13520rm -f conftest.$ac_objext
13521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13522 (eval $ac_compile) 2>conftest.er1
a848cd7e 13523 ac_status=$?
ac1cb8d3
VS
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
a848cd7e
SC
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
d25774ab
JS
13529 { ac_try='test -z "$ac_cxx_werror_flag"
13530 || test ! -s conftest.err'
ac1cb8d3
VS
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13539 ac_status=$?
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; }; then
13542 :
13543else
13544 echo "$as_me: failed program was:" >&5
13545sed 's/^/| /' conftest.$ac_ext >&5
13546
13547continue
13548fi
ac1cb8d3 13549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13550 cat >conftest.$ac_ext <<_ACEOF
13551/* confdefs.h. */
13552_ACEOF
13553cat confdefs.h >>conftest.$ac_ext
13554cat >>conftest.$ac_ext <<_ACEOF
13555/* end confdefs.h. */
13556$ac_declaration
13557int
13558main ()
13559{
13560exit (42);
13561 ;
13562 return 0;
13563}
13564_ACEOF
13565rm -f conftest.$ac_objext
13566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13567 (eval $ac_compile) 2>conftest.er1
a848cd7e 13568 ac_status=$?
ac1cb8d3
VS
13569 grep -v '^ *+' conftest.er1 >conftest.err
13570 rm -f conftest.er1
13571 cat conftest.err >&5
a848cd7e
SC
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
d25774ab
JS
13574 { ac_try='test -z "$ac_cxx_werror_flag"
13575 || test ! -s conftest.err'
ac1cb8d3
VS
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 break
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592fi
ac1cb8d3 13593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13594done
13595rm -f conftest*
13596if test -n "$ac_declaration"; then
13597 echo '#ifdef __cplusplus' >>confdefs.h
13598 echo $ac_declaration >>confdefs.h
13599 echo '#endif' >>confdefs.h
13600fi
13601
13602ac_ext=cc
13603ac_cpp='$CXXCPP $CPPFLAGS'
13604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13607
ab0ad5f1
VZ
13608
13609
13610 ac_ext=cc
13611ac_cpp='$CXXCPP $CPPFLAGS'
13612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13615
13616 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13617echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13618if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13620else
13621 cat >conftest.$ac_ext <<_ACEOF
13622/* confdefs.h. */
13623_ACEOF
13624cat confdefs.h >>conftest.$ac_ext
13625cat >>conftest.$ac_ext <<_ACEOF
13626/* end confdefs.h. */
13627
13628int
13629main ()
13630{
13631
13632 #ifndef __INTEL_COMPILER
13633 choke me
13634 #endif
13635
13636 ;
13637 return 0;
13638}
13639_ACEOF
13640rm -f conftest.$ac_objext
13641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13642 (eval $ac_compile) 2>conftest.er1
13643 ac_status=$?
13644 grep -v '^ *+' conftest.er1 >conftest.err
13645 rm -f conftest.er1
13646 cat conftest.err >&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } &&
d25774ab
JS
13649 { ac_try='test -z "$ac_cxx_werror_flag"
13650 || test ! -s conftest.err'
ab0ad5f1
VZ
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } &&
13656 { ac_try='test -s conftest.$ac_objext'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13663else
13664 echo "$as_me: failed program was:" >&5
13665sed 's/^/| /' conftest.$ac_ext >&5
13666
13667bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13668
13669fi
13670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13671
13672
13673fi
13674echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13675echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13676 ac_ext=cc
13677ac_cpp='$CXXCPP $CPPFLAGS'
13678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13681
13682 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13683 :; INTELCXX=yes
13684 else
13685 :;
13686 fi
13687
13688
3006edc0
VZ
13689 if test "x$GCXX" != "xyes"; then
13690 if test "xCXX" = "xC"; then
13691 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13692echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13693if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13695else
13696 cat >conftest.$ac_ext <<_ACEOF
13697/* confdefs.h. */
13698_ACEOF
13699cat confdefs.h >>conftest.$ac_ext
13700cat >>conftest.$ac_ext <<_ACEOF
13701/* end confdefs.h. */
13702
13703int
13704main ()
13705{
13706
13707 ;
13708 return 0;
13709}
13710_ACEOF
13711rm -f conftest.$ac_objext conftest.$ac_ext.o
13712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13713 (eval $ac_compile) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; then
13717 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13718 case $ac_file in
13719 conftest.$ac_ext.o)
0093c2fc 13720 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13721 ;;
13722 *)
13723 ;;
13724 esac
13725done
13726else
13727 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13728See \`config.log' for more details." >&5
13729echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13730See \`config.log' for more details." >&2;}
13731 { (exit 1); exit 1; }; }
13732
13733fi
13734
13735rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13736
13737fi
0093c2fc
VZ
13738echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13739echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13740if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13741 if test "cxx" = "c"; then
0093c2fc 13742 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13743 fi
13744 if test "cxx" = "cxx"; then
0093c2fc 13745 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13746 fi
13747fi
13748
0093c2fc 13749 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13750 unset ac_cv_prog_cc_g
13751 ac_test_CFLAGS=${CFLAGS+set}
13752ac_save_CFLAGS=$CFLAGS
8aeeb05c 13753CFLAGS="-g"
3006edc0
VZ
13754echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13755echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13756if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13758else
13759 cat >conftest.$ac_ext <<_ACEOF
13760/* confdefs.h. */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
13764/* end confdefs.h. */
13765
13766int
13767main ()
13768{
13769
13770 ;
13771 return 0;
13772}
13773_ACEOF
13774rm -f conftest.$ac_objext
13775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
d25774ab
JS
13783 { ac_try='test -z "$ac_cxx_werror_flag"
13784 || test ! -s conftest.err'
480ccd21
DE
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
3006edc0 13796 ac_cv_prog_cc_g=yes
480ccd21
DE
13797else
13798 echo "$as_me: failed program was:" >&5
13799sed 's/^/| /' conftest.$ac_ext >&5
13800
3006edc0 13801ac_cv_prog_cc_g=no
480ccd21
DE
13802fi
13803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13804fi
3006edc0
VZ
13805echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13806echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13807if test "$ac_test_CFLAGS" = set; then
13808 CFLAGS=$ac_save_CFLAGS
13809elif test $ac_cv_prog_cc_g = yes; then
13810 if test "$GCC" = yes; then
13811 CFLAGS="-g -O2"
480ccd21 13812 else
3006edc0 13813 CFLAGS="-g"
480ccd21
DE
13814 fi
13815else
3006edc0
VZ
13816 if test "$GCC" = yes; then
13817 CFLAGS="-O2"
480ccd21 13818 else
3006edc0 13819 CFLAGS=
480ccd21
DE
13820 fi
13821fi
3006edc0 13822 fi
ab0ad5f1 13823 fi
3006edc0
VZ
13824
13825 case `uname -s` in
13826 AIX*)
13827 ac_ext=cc
13828ac_cpp='$CXXCPP $CPPFLAGS'
13829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13832
13833echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13834echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13835if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837else
13838 cat >conftest.$ac_ext <<_ACEOF
13839/* confdefs.h. */
13840_ACEOF
13841cat confdefs.h >>conftest.$ac_ext
13842cat >>conftest.$ac_ext <<_ACEOF
13843/* end confdefs.h. */
13844
13845int
13846main ()
13847{
13848#ifndef __xlC__
13849 choke me
13850#endif
13851
13852 ;
13853 return 0;
13854}
13855_ACEOF
13856rm -f conftest.$ac_objext
13857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13858 (eval $ac_compile) 2>conftest.er1
13859 ac_status=$?
13860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } &&
d25774ab
JS
13865 { ac_try='test -z "$ac_cxx_werror_flag"
13866 || test ! -s conftest.err'
3006edc0
VZ
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest.$ac_objext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
0093c2fc 13878 bakefile_compiler_xlc=yes
3006edc0
VZ
13879else
13880 echo "$as_me: failed program was:" >&5
13881sed 's/^/| /' conftest.$ac_ext >&5
13882
0093c2fc 13883bakefile_compiler_xlc=no
3006edc0
VZ
13884fi
13885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13886 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13887
13888fi
0093c2fc
VZ
13889echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13890echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13891
0093c2fc 13892XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13893ac_ext=cc
13894ac_cpp='$CXXCPP $CPPFLAGS'
13895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13898
13899
13900 ;;
13901
13902 Darwin)
13903 ac_ext=cc
95986553
DE
13904ac_cpp='$CXXCPP $CPPFLAGS'
13905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13908
13909echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13910echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13911if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13913else
13914 cat >conftest.$ac_ext <<_ACEOF
13915/* confdefs.h. */
13916_ACEOF
13917cat confdefs.h >>conftest.$ac_ext
13918cat >>conftest.$ac_ext <<_ACEOF
13919/* end confdefs.h. */
13920
13921int
13922main ()
13923{
13924#ifndef __MWERKS__
13925 choke me
13926#endif
13927
13928 ;
13929 return 0;
13930}
13931_ACEOF
13932rm -f conftest.$ac_objext
13933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13934 (eval $ac_compile) 2>conftest.er1
13935 ac_status=$?
13936 grep -v '^ *+' conftest.er1 >conftest.err
13937 rm -f conftest.er1
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } &&
d25774ab
JS
13941 { ac_try='test -z "$ac_cxx_werror_flag"
13942 || test ! -s conftest.err'
95986553
DE
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; } &&
13948 { ac_try='test -s conftest.$ac_objext'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13954 bakefile_compiler_mwerks=yes
13955else
13956 echo "$as_me: failed program was:" >&5
13957sed 's/^/| /' conftest.$ac_ext >&5
13958
13959bakefile_compiler_mwerks=no
13960fi
13961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13962 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13963
13964fi
13965echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13966echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13967
0e6fa1d9 13968MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13969ac_ext=cc
13970ac_cpp='$CXXCPP $CPPFLAGS'
13971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13974
13975
3006edc0 13976 ac_ext=cc
9273ffba
DE
13977ac_cpp='$CXXCPP $CPPFLAGS'
13978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13981
13982echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13983echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13984if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13986else
13987 cat >conftest.$ac_ext <<_ACEOF
13988/* confdefs.h. */
13989_ACEOF
13990cat confdefs.h >>conftest.$ac_ext
13991cat >>conftest.$ac_ext <<_ACEOF
13992/* end confdefs.h. */
13993
13994int
13995main ()
13996{
13997#ifndef __xlC__
13998 choke me
13999#endif
14000
14001 ;
14002 return 0;
14003}
14004_ACEOF
14005rm -f conftest.$ac_objext
14006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14007 (eval $ac_compile) 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
d25774ab
JS
14014 { ac_try='test -z "$ac_cxx_werror_flag"
14015 || test ! -s conftest.err'
9273ffba
DE
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; } &&
14021 { ac_try='test -s conftest.$ac_objext'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
0093c2fc 14027 bakefile_compiler_xlc=yes
9273ffba
DE
14028else
14029 echo "$as_me: failed program was:" >&5
14030sed 's/^/| /' conftest.$ac_ext >&5
14031
0093c2fc 14032bakefile_compiler_xlc=no
9273ffba
DE
14033fi
14034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14035 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14036
14037fi
0093c2fc
VZ
14038echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14039echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14040
0093c2fc 14041XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14042ac_ext=cc
14043ac_cpp='$CXXCPP $CPPFLAGS'
14044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14047
14048
3006edc0
VZ
14049 ;;
14050
14051 IRIX*)
95986553 14052
6dcfc289 14053
0ad5d837
VZ
14054 ac_ext=cc
14055ac_cpp='$CXXCPP $CPPFLAGS'
14056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14059
14060 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14061echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14062if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14064else
14065 cat >conftest.$ac_ext <<_ACEOF
14066/* confdefs.h. */
14067_ACEOF
14068cat confdefs.h >>conftest.$ac_ext
14069cat >>conftest.$ac_ext <<_ACEOF
14070/* end confdefs.h. */
14071
14072int
14073main ()
14074{
14075
14076 #ifndef _SGI_COMPILER_VERSION
14077 choke me
14078 #endif
14079
14080 ;
14081 return 0;
14082}
14083_ACEOF
14084rm -f conftest.$ac_objext
14085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14086 (eval $ac_compile) 2>conftest.er1
14087 ac_status=$?
14088 grep -v '^ *+' conftest.er1 >conftest.err
14089 rm -f conftest.er1
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } &&
d25774ab
JS
14093 { ac_try='test -z "$ac_cxx_werror_flag"
14094 || test ! -s conftest.err'
0ad5d837
VZ
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; } &&
14100 { ac_try='test -s conftest.$ac_objext'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }; then
14106 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14107else
14108 echo "$as_me: failed program was:" >&5
14109sed 's/^/| /' conftest.$ac_ext >&5
14110
14111bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14112
14113fi
14114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14115
14116
14117fi
14118echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14119echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14120 ac_ext=cc
14121ac_cpp='$CXXCPP $CPPFLAGS'
14122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14125
14126 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14127 :; SGICXX=yes
14128 else
14129 :;
14130 fi
14131
14132
3006edc0
VZ
14133 ;;
14134
0093c2fc 14135 HP-UX*)
3006edc0
VZ
14136
14137
14138 ac_ext=cc
14139ac_cpp='$CXXCPP $CPPFLAGS'
14140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14143
0093c2fc
VZ
14144 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14145echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14146if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148else
14149 cat >conftest.$ac_ext <<_ACEOF
14150/* confdefs.h. */
14151_ACEOF
14152cat confdefs.h >>conftest.$ac_ext
14153cat >>conftest.$ac_ext <<_ACEOF
14154/* end confdefs.h. */
14155
14156int
14157main ()
14158{
14159
0093c2fc 14160 #ifndef __HP_aCC
3006edc0
VZ
14161 choke me
14162 #endif
14163
14164 ;
14165 return 0;
14166}
14167_ACEOF
14168rm -f conftest.$ac_objext
14169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
d25774ab
JS
14177 { ac_try='test -z "$ac_cxx_werror_flag"
14178 || test ! -s conftest.err'
3006edc0
VZ
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try='test -s conftest.$ac_objext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
0093c2fc 14190 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14191else
14192 echo "$as_me: failed program was:" >&5
14193sed 's/^/| /' conftest.$ac_ext >&5
14194
0093c2fc 14195bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14196
14197fi
14198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14199
14200
14201fi
0093c2fc
VZ
14202echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14203echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14204 ac_ext=cc
14205ac_cpp='$CXXCPP $CPPFLAGS'
14206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14209
0093c2fc
VZ
14210 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14211 :; HPCXX=yes
a1aa0349
VZ
14212 else
14213 :;
14214 fi
14215
14216
14217 ;;
14218
0093c2fc 14219 OSF1)
a1aa0349
VZ
14220
14221
14222 ac_ext=cc
14223ac_cpp='$CXXCPP $CPPFLAGS'
14224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14227
0093c2fc
VZ
14228 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14229echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14230if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232else
14233 cat >conftest.$ac_ext <<_ACEOF
14234/* confdefs.h. */
14235_ACEOF
14236cat confdefs.h >>conftest.$ac_ext
14237cat >>conftest.$ac_ext <<_ACEOF
14238/* end confdefs.h. */
14239
14240int
14241main ()
14242{
14243
0093c2fc 14244 #ifndef __DECCXX
a1aa0349
VZ
14245 choke me
14246 #endif
14247
14248 ;
14249 return 0;
14250}
14251_ACEOF
14252rm -f conftest.$ac_objext
14253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14254 (eval $ac_compile) 2>conftest.er1
14255 ac_status=$?
14256 grep -v '^ *+' conftest.er1 >conftest.err
14257 rm -f conftest.er1
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } &&
d25774ab
JS
14261 { ac_try='test -z "$ac_cxx_werror_flag"
14262 || test ! -s conftest.err'
a1aa0349
VZ
14263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264 (eval $ac_try) 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; } &&
14268 { ac_try='test -s conftest.$ac_objext'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; }; then
0093c2fc 14274 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14275else
14276 echo "$as_me: failed program was:" >&5
14277sed 's/^/| /' conftest.$ac_ext >&5
14278
0093c2fc 14279bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14280
14281fi
14282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14283
14284
14285fi
0093c2fc
VZ
14286echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14287echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14288 ac_ext=cc
14289ac_cpp='$CXXCPP $CPPFLAGS'
14290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14293
0093c2fc
VZ
14294 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14295 :; COMPAQCXX=yes
14296 else
14297 :;
14298 fi
14299
14300
14301 ;;
14302
14303 SunOS)
14304
14305
14306 ac_ext=cc
14307ac_cpp='$CXXCPP $CPPFLAGS'
14308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14311
14312 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14313echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14314if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14316else
14317 cat >conftest.$ac_ext <<_ACEOF
14318/* confdefs.h. */
14319_ACEOF
14320cat confdefs.h >>conftest.$ac_ext
14321cat >>conftest.$ac_ext <<_ACEOF
14322/* end confdefs.h. */
14323
14324int
14325main ()
14326{
14327
14328 #ifndef __SUNPRO_CC
14329 choke me
14330 #endif
14331
14332 ;
14333 return 0;
14334}
14335_ACEOF
14336rm -f conftest.$ac_objext
14337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14338 (eval $ac_compile) 2>conftest.er1
14339 ac_status=$?
14340 grep -v '^ *+' conftest.er1 >conftest.err
14341 rm -f conftest.er1
14342 cat conftest.err >&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); } &&
d25774ab
JS
14345 { ac_try='test -z "$ac_cxx_werror_flag"
14346 || test ! -s conftest.err'
0093c2fc
VZ
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; } &&
14352 { ac_try='test -s conftest.$ac_objext'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }; then
14358 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14359else
14360 echo "$as_me: failed program was:" >&5
14361sed 's/^/| /' conftest.$ac_ext >&5
14362
14363bakefile_cv_cxx_compiler___SUNPRO_CC=no
14364
14365fi
14366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14367
14368
14369fi
14370echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14371echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14372 ac_ext=cc
14373ac_cpp='$CXXCPP $CPPFLAGS'
14374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14377
14378 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14379 :; SUNCXX=yes
3006edc0
VZ
14380 else
14381 :;
ab0ad5f1 14382 fi
a9e5b1f0
MW
14383
14384
3006edc0
VZ
14385 ;;
14386 esac
14387 fi
14388
14389
14390
a848cd7e
SC
14391if test -n "$ac_tool_prefix"; then
14392 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14393set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14394echo "$as_me:$LINENO: checking for $ac_word" >&5
14395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14396if test "${ac_cv_prog_RANLIB+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14398else
14399 if test -n "$RANLIB"; then
14400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14401else
14402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14403for as_dir in $PATH
14404do
14405 IFS=$as_save_IFS
14406 test -z "$as_dir" && as_dir=.
14407 for ac_exec_ext in '' $ac_executable_extensions; do
14408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14409 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14411 break 2
14412 fi
14413done
14414done
14415
14416fi
14417fi
14418RANLIB=$ac_cv_prog_RANLIB
14419if test -n "$RANLIB"; then
14420 echo "$as_me:$LINENO: result: $RANLIB" >&5
14421echo "${ECHO_T}$RANLIB" >&6
14422else
14423 echo "$as_me:$LINENO: result: no" >&5
14424echo "${ECHO_T}no" >&6
14425fi
14426
14427fi
14428if test -z "$ac_cv_prog_RANLIB"; then
14429 ac_ct_RANLIB=$RANLIB
14430 # Extract the first word of "ranlib", so it can be a program name with args.
14431set dummy ranlib; ac_word=$2
14432echo "$as_me:$LINENO: checking for $ac_word" >&5
14433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14434if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436else
14437 if test -n "$ac_ct_RANLIB"; then
14438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14439else
14440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441for as_dir in $PATH
14442do
14443 IFS=$as_save_IFS
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14447 ac_cv_prog_ac_ct_RANLIB="ranlib"
14448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14449 break 2
14450 fi
14451done
14452done
14453
14454 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14455fi
14456fi
14457ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14458if test -n "$ac_ct_RANLIB"; then
14459 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14460echo "${ECHO_T}$ac_ct_RANLIB" >&6
14461else
14462 echo "$as_me:$LINENO: result: no" >&5
14463echo "${ECHO_T}no" >&6
14464fi
14465
14466 RANLIB=$ac_ct_RANLIB
14467else
14468 RANLIB="$ac_cv_prog_RANLIB"
14469fi
14470
14471
8c80d384
DE
14472if test -n "$ac_tool_prefix"; then
14473 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14474set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14475echo "$as_me:$LINENO: checking for $ac_word" >&5
14476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14477if test "${ac_cv_prog_AR+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14479else
14480 if test -n "$AR"; then
14481 ac_cv_prog_AR="$AR" # Let the user override the test.
14482else
14483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484for as_dir in $PATH
14485do
14486 IFS=$as_save_IFS
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14490 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14492 break 2
14493 fi
14494done
14495done
14496
14497fi
14498fi
14499AR=$ac_cv_prog_AR
14500if test -n "$AR"; then
14501 echo "$as_me:$LINENO: result: $AR" >&5
14502echo "${ECHO_T}$AR" >&6
14503else
14504 echo "$as_me:$LINENO: result: no" >&5
14505echo "${ECHO_T}no" >&6
14506fi
14507
8c80d384
DE
14508fi
14509if test -z "$ac_cv_prog_AR"; then
14510 ac_ct_AR=$AR
14511 # Extract the first word of "ar", so it can be a program name with args.
14512set dummy ar; ac_word=$2
14513echo "$as_me:$LINENO: checking for $ac_word" >&5
14514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14515if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517else
14518 if test -n "$ac_ct_AR"; then
14519 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14520else
14521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14522for as_dir in $PATH
14523do
14524 IFS=$as_save_IFS
14525 test -z "$as_dir" && as_dir=.
14526 for ac_exec_ext in '' $ac_executable_extensions; do
14527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14528 ac_cv_prog_ac_ct_AR="ar"
14529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14530 break 2
14531 fi
14532done
14533done
14534
14535fi
14536fi
14537ac_ct_AR=$ac_cv_prog_ac_ct_AR
14538if test -n "$ac_ct_AR"; then
14539 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14540echo "${ECHO_T}$ac_ct_AR" >&6
14541else
14542 echo "$as_me:$LINENO: result: no" >&5
14543echo "${ECHO_T}no" >&6
14544fi
14545
14546 AR=$ac_ct_AR
14547else
14548 AR="$ac_cv_prog_AR"
14549fi
14550
a848cd7e 14551if test "x$AR" = "x" ; then
77ffb593
JS
14552 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14553echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14554 { (exit 1); exit 1; }; }
14555fi
14556
14557# Find a good install program. We prefer a C program (faster),
14558# so one script is as good as another. But avoid the broken or
14559# incompatible versions:
14560# SysV /etc/install, /usr/sbin/install
14561# SunOS /usr/etc/install
14562# IRIX /sbin/install
14563# AIX /bin/install
14564# AmigaOS /C/install, which installs bootblocks on floppy discs
14565# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14566# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14567# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14568# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14569# ./install, which can be erroneously created by make from ./install.sh.
14570echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14571echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14572if test -z "$INSTALL"; then
14573if test "${ac_cv_path_install+set}" = set; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14575else
14576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14577for as_dir in $PATH
14578do
14579 IFS=$as_save_IFS
14580 test -z "$as_dir" && as_dir=.
14581 # Account for people who put trailing slashes in PATH elements.
14582case $as_dir/ in
14583 ./ | .// | /cC/* | \
14584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14585 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14586 /usr/ucb/* ) ;;
14587 *)
14588 # OSF1 and SCO ODT 3.0 have their own names for install.
14589 # Don't use installbsd from OSF since it installs stuff as root
14590 # by default.
14591 for ac_prog in ginstall scoinst install; do
14592 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14593 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14594 if test $ac_prog = install &&
14595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14596 # AIX install. It has an incompatible calling convention.
14597 :
14598 elif test $ac_prog = install &&
14599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14600 # program-specific install script used by HP pwplus--don't use.
14601 :
14602 else
14603 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14604 break 3
14605 fi
14606 fi
a848cd7e
SC
14607 done
14608 done
14609 ;;
14610esac
14611done
14612
14613
14614fi
14615 if test "${ac_cv_path_install+set}" = set; then
14616 INSTALL=$ac_cv_path_install
14617 else
14618 # As a last resort, use the slow shell script. We don't cache a
14619 # path for INSTALL within a source directory, because that will
14620 # break other packages using the cache if that directory is
14621 # removed, or if the path is relative.
14622 INSTALL=$ac_install_sh
14623 fi
14624fi
14625echo "$as_me:$LINENO: result: $INSTALL" >&5
14626echo "${ECHO_T}$INSTALL" >&6
14627
14628# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14629# It thinks the first close brace ends the variable substitution.
14630test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14631
14632test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14633
14634test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14635
14636
14637case ${INSTALL} in
14638 /* ) # Absolute
14639 ;;
14640 ?:* ) # Drive letter, considered as absolute.
14641 ;;
14642 *)
14643 INSTALL=`pwd`/${INSTALL} ;;
14644esac
14645
a848cd7e
SC
14646
14647case "${host}" in
14648
cfda0ea8 14649 *-*-darwin* )
a848cd7e
SC
14650 INSTALL_PROGRAM="cp -fp"
14651 INSTALL_DATA="cp -fp"
14652 ;;
14653 *)
14654 ;;
14655esac
14656
8c80d384
DE
14657if test -n "$ac_tool_prefix"; then
14658 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14659set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14660echo "$as_me:$LINENO: checking for $ac_word" >&5
14661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14662if test "${ac_cv_prog_STRIP+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664else
14665 if test -n "$STRIP"; then
14666 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14667else
14668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669for as_dir in $PATH
14670do
14671 IFS=$as_save_IFS
14672 test -z "$as_dir" && as_dir=.
14673 for ac_exec_ext in '' $ac_executable_extensions; do
14674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14675 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14677 break 2
14678 fi
14679done
14680done
14681
a848cd7e
SC
14682fi
14683fi
14684STRIP=$ac_cv_prog_STRIP
14685if test -n "$STRIP"; then
14686 echo "$as_me:$LINENO: result: $STRIP" >&5
14687echo "${ECHO_T}$STRIP" >&6
14688else
14689 echo "$as_me:$LINENO: result: no" >&5
14690echo "${ECHO_T}no" >&6
14691fi
14692
8c80d384
DE
14693fi
14694if test -z "$ac_cv_prog_STRIP"; then
14695 ac_ct_STRIP=$STRIP
14696 # Extract the first word of "strip", so it can be a program name with args.
14697set dummy strip; ac_word=$2
14698echo "$as_me:$LINENO: checking for $ac_word" >&5
14699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14700if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14702else
14703 if test -n "$ac_ct_STRIP"; then
14704 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14705else
14706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14707for as_dir in $PATH
14708do
14709 IFS=$as_save_IFS
14710 test -z "$as_dir" && as_dir=.
14711 for ac_exec_ext in '' $ac_executable_extensions; do
14712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14713 ac_cv_prog_ac_ct_STRIP="strip"
14714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14715 break 2
14716 fi
14717done
14718done
14719
14720 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14721fi
14722fi
14723ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14724if test -n "$ac_ct_STRIP"; then
14725 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14726echo "${ECHO_T}$ac_ct_STRIP" >&6
14727else
14728 echo "$as_me:$LINENO: result: no" >&5
14729echo "${ECHO_T}no" >&6
14730fi
14731
14732 STRIP=$ac_ct_STRIP
14733else
14734 STRIP="$ac_cv_prog_STRIP"
14735fi
14736
14737
14738if test "$wxUSE_WINE" = "yes"; then
14739 if test -n "$ac_tool_prefix"; then
14740 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14741set dummy ${ac_tool_prefix}wrc; ac_word=$2
14742echo "$as_me:$LINENO: checking for $ac_word" >&5
14743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14744if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14746else
8ced02f6
DE
14747 if test -n "$WINDRES"; then
14748 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14749else
14750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14751for as_dir in $PATH
14752do
14753 IFS=$as_save_IFS
14754 test -z "$as_dir" && as_dir=.
14755 for ac_exec_ext in '' $ac_executable_extensions; do
14756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14757 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14759 break 2
14760 fi
14761done
14762done
14763
14764fi
14765fi
8ced02f6
DE
14766WINDRES=$ac_cv_prog_WINDRES
14767if test -n "$WINDRES"; then
14768 echo "$as_me:$LINENO: result: $WINDRES" >&5
14769echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14770else
14771 echo "$as_me:$LINENO: result: no" >&5
14772echo "${ECHO_T}no" >&6
14773fi
14774
14775fi
8ced02f6
DE
14776if test -z "$ac_cv_prog_WINDRES"; then
14777 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14778 # Extract the first word of "wrc", so it can be a program name with args.
14779set dummy wrc; ac_word=$2
14780echo "$as_me:$LINENO: checking for $ac_word" >&5
14781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14782if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14784else
8ced02f6
DE
14785 if test -n "$ac_ct_WINDRES"; then
14786 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14787else
14788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14789for as_dir in $PATH
14790do
14791 IFS=$as_save_IFS
14792 test -z "$as_dir" && as_dir=.
14793 for ac_exec_ext in '' $ac_executable_extensions; do
14794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14795 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14797 break 2
14798 fi
14799done
14800done
14801
14802fi
14803fi
8ced02f6
DE
14804ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14805if test -n "$ac_ct_WINDRES"; then
14806 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14807echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14808else
14809 echo "$as_me:$LINENO: result: no" >&5
14810echo "${ECHO_T}no" >&6
14811fi
14812
8ced02f6 14813 WINDRES=$ac_ct_WINDRES
8c80d384 14814else
8ced02f6 14815 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14816fi
14817
004ee6da 14818 RESCOMP="$WINDRES"
8c80d384
DE
14819else
14820 case "${host}" in
14821 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14822 if test -n "$ac_tool_prefix"; then
14823 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14824set dummy ${ac_tool_prefix}windres; ac_word=$2
14825echo "$as_me:$LINENO: checking for $ac_word" >&5
14826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14827if test "${ac_cv_prog_WINDRES+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14829else
14830 if test -n "$WINDRES"; then
14831 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14832else
14833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14834for as_dir in $PATH
14835do
14836 IFS=$as_save_IFS
14837 test -z "$as_dir" && as_dir=.
14838 for ac_exec_ext in '' $ac_executable_extensions; do
14839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14840 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14842 break 2
14843 fi
14844done
14845done
14846
14847fi
14848fi
14849WINDRES=$ac_cv_prog_WINDRES
14850if test -n "$WINDRES"; then
14851 echo "$as_me:$LINENO: result: $WINDRES" >&5
14852echo "${ECHO_T}$WINDRES" >&6
14853else
14854 echo "$as_me:$LINENO: result: no" >&5
14855echo "${ECHO_T}no" >&6
14856fi
14857
14858fi
14859if test -z "$ac_cv_prog_WINDRES"; then
14860 ac_ct_WINDRES=$WINDRES
14861 # Extract the first word of "windres", so it can be a program name with args.
14862set dummy windres; ac_word=$2
14863echo "$as_me:$LINENO: checking for $ac_word" >&5
14864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14865if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14866 echo $ECHO_N "(cached) $ECHO_C" >&6
14867else
14868 if test -n "$ac_ct_WINDRES"; then
14869 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14870else
14871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14872for as_dir in $PATH
14873do
14874 IFS=$as_save_IFS
14875 test -z "$as_dir" && as_dir=.
14876 for ac_exec_ext in '' $ac_executable_extensions; do
14877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14878 ac_cv_prog_ac_ct_WINDRES="windres"
14879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14880 break 2
14881 fi
14882done
14883done
14884
14885fi
14886fi
14887ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14888if test -n "$ac_ct_WINDRES"; then
14889 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14890echo "${ECHO_T}$ac_ct_WINDRES" >&6
14891else
14892 echo "$as_me:$LINENO: result: no" >&5
14893echo "${ECHO_T}no" >&6
14894fi
14895
14896 WINDRES=$ac_ct_WINDRES
14897else
14898 WINDRES="$ac_cv_prog_WINDRES"
14899fi
14900
14901 RESCOMP="$WINDRES"
14902 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14903 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14904set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14905echo "$as_me:$LINENO: checking for $ac_word" >&5
14906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14907if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14909else
14910 if test -n "$DLLTOOL"; then
14911 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14912else
14913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14914for as_dir in $PATH
14915do
14916 IFS=$as_save_IFS
14917 test -z "$as_dir" && as_dir=.
14918 for ac_exec_ext in '' $ac_executable_extensions; do
14919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14920 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14922 break 2
14923 fi
14924done
14925done
14926
14927fi
14928fi
14929DLLTOOL=$ac_cv_prog_DLLTOOL
14930if test -n "$DLLTOOL"; then
14931 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14932echo "${ECHO_T}$DLLTOOL" >&6
14933else
14934 echo "$as_me:$LINENO: result: no" >&5
14935echo "${ECHO_T}no" >&6
14936fi
14937
14938fi
14939if test -z "$ac_cv_prog_DLLTOOL"; then
14940 ac_ct_DLLTOOL=$DLLTOOL
14941 # Extract the first word of "dlltool", so it can be a program name with args.
14942set dummy dlltool; ac_word=$2
14943echo "$as_me:$LINENO: checking for $ac_word" >&5
14944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14945if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947else
14948 if test -n "$ac_ct_DLLTOOL"; then
14949 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14950else
14951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14952for as_dir in $PATH
14953do
14954 IFS=$as_save_IFS
14955 test -z "$as_dir" && as_dir=.
14956 for ac_exec_ext in '' $ac_executable_extensions; do
14957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14958 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14960 break 2
14961 fi
14962done
14963done
14964
14965fi
14966fi
14967ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14968if test -n "$ac_ct_DLLTOOL"; then
14969 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14970echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14971else
14972 echo "$as_me:$LINENO: result: no" >&5
14973echo "${ECHO_T}no" >&6
14974fi
14975
14976 DLLTOOL=$ac_ct_DLLTOOL
14977else
14978 DLLTOOL="$ac_cv_prog_DLLTOOL"
14979fi
14980
14981 ;;
14982 esac
14983fi
a848cd7e
SC
14984
14985echo "$as_me:$LINENO: checking if make is GNU make" >&5
14986echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14987if test "${wx_cv_prog_makeisgnu+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989else
14990
14991 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14992 egrep -s GNU > /dev/null); then
14993 wx_cv_prog_makeisgnu="yes"
14994 else
14995 wx_cv_prog_makeisgnu="no"
14996 fi
14997
14998fi
14999echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15000echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15001
15002if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15003 IF_GNU_MAKE=""
15004else
15005 IF_GNU_MAKE="#"
15006fi
15007
15008
15009
15010if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15011echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15012echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15013if test "${wx_cv_prog_makevpath+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015else
15016
15017cat - << EOF > confMake
15018check : file
15019 cp \$? \$@
15020 cp \$? final_file
15021EOF
15022
15023if test ! -d sub ; then
15024 mkdir sub
15025fi
15026echo dummy > sub/file
15027${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15028RESULT=$?
15029rm -f sub/file check final_file confMake
15030rmdir sub
15031if test "$RESULT" = 0; then
15032 wx_cv_prog_makevpath="yes"
15033else
15034 wx_cv_prog_makevpath="no"
15035fi
15036
15037fi
15038echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15039echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15040
15041if test "x$wx_cv_prog_makevpath" != "xyes"; then
15042{ { echo "$as_me:$LINENO: error:
15043You need a make-utility that is able to use the variable
15044VPATH correctly.
15045If your version of make does not support VPATH correctly,
15046please install GNU-make (possibly as gmake), and start
15047configure with the following command:
15048export MAKE=gmake; ./configure for sh-type shells
15049setenv MAKE gmake; ./configure for csh-type shells
15050Also please do remember to use gmake in this case every time
15051you are trying to compile.
15052" >&5
15053echo "$as_me: error:
15054You need a make-utility that is able to use the variable
15055VPATH correctly.
15056If your version of make does not support VPATH correctly,
15057please install GNU-make (possibly as gmake), and start
15058configure with the following command:
15059export MAKE=gmake; ./configure for sh-type shells
15060setenv MAKE gmake; ./configure for csh-type shells
15061Also please do remember to use gmake in this case every time
15062you are trying to compile.
15063" >&2;}
15064 { (exit 1); exit 1; }; }
15065fi fi
15066echo "$as_me:$LINENO: checking whether ln -s works" >&5
15067echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15068LN_S=$as_ln_s
15069if test "$LN_S" = "ln -s"; then
15070 echo "$as_me:$LINENO: result: yes" >&5
15071echo "${ECHO_T}yes" >&6
15072else
15073 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15074echo "${ECHO_T}no, using $LN_S" >&6
15075fi
15076
15077
bcaab0f9 15078
a848cd7e 15079
2113bc77 15080if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15081 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15082fi
15083
4d7ec9f1
DE
15084case "${host}" in
15085 powerpc-*-darwin* )
15086 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15087echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15088 cat >conftest.$ac_ext <<_ACEOF
15089/* confdefs.h. */
15090_ACEOF
15091cat confdefs.h >>conftest.$ac_ext
15092cat >>conftest.$ac_ext <<_ACEOF
15093/* end confdefs.h. */
15094
15095int
15096main ()
15097{
15098#ifndef __POWERPC__
15099 choke me for lack of PowerPC
15100#endif
15101
15102 ;
15103 return 0;
15104}
15105_ACEOF
15106rm -f conftest.$ac_objext
15107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108 (eval $ac_compile) 2>conftest.er1
15109 ac_status=$?
15110 grep -v '^ *+' conftest.er1 >conftest.err
15111 rm -f conftest.er1
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
d25774ab
JS
15115 { ac_try='test -z "$ac_cxx_werror_flag"
15116 || test ! -s conftest.err'
4d7ec9f1
DE
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; } &&
15122 { ac_try='test -s conftest.$ac_objext'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }; then
15128 echo "$as_me:$LINENO: result: yes" >&5
15129echo "${ECHO_T}yes" >&6
15130else
15131 echo "$as_me: failed program was:" >&5
15132sed 's/^/| /' conftest.$ac_ext >&5
15133
15134echo "$as_me:$LINENO: result: no" >&5
15135echo "${ECHO_T}no" >&6
15136 cat >>confdefs.h <<\_ACEOF
15137#define __POWERPC__ 1
15138_ACEOF
15139
15140
15141fi
15142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15143 ;;
15144esac
15145
15146case "${host}" in
15147 *-*-darwin* )
4d7ec9f1
DE
15148 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15149echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15150 cat >conftest.$ac_ext <<_ACEOF
15151/* confdefs.h. */
15152_ACEOF
15153cat confdefs.h >>conftest.$ac_ext
15154cat >>conftest.$ac_ext <<_ACEOF
15155/* end confdefs.h. */
15156#include <CoreFoundation/CFBase.h>
15157
15158int
15159main ()
15160{
15161
15162 ;
15163 return 0;
15164}
15165_ACEOF
15166rm -f conftest.$ac_objext
15167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15168 (eval $ac_compile) 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
d25774ab
JS
15175 { ac_try='test -z "$ac_cxx_werror_flag"
15176 || test ! -s conftest.err'
4d7ec9f1
DE
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; } &&
15182 { ac_try='test -s conftest.$ac_objext'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 echo "$as_me:$LINENO: result: yes" >&5
15189echo "${ECHO_T}yes" >&6
15190else
15191 echo "$as_me: failed program was:" >&5
15192sed 's/^/| /' conftest.$ac_ext >&5
15193
15194echo "$as_me:$LINENO: result: no" >&5
15195echo "${ECHO_T}no" >&6
15196 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15197echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15198 cat >conftest.$ac_ext <<_ACEOF
15199/* confdefs.h. */
15200_ACEOF
15201cat confdefs.h >>conftest.$ac_ext
15202cat >>conftest.$ac_ext <<_ACEOF
15203/* end confdefs.h. */
15204#define __CF_USE_FRAMEWORK_INCLUDES__
15205#include <CoreFoundation/CFBase.h>
15206
15207int
15208main ()
15209{
15210
15211 ;
15212 return 0;
15213}
15214_ACEOF
15215rm -f conftest.$ac_objext
15216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15217 (eval $ac_compile) 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
d25774ab
JS
15224 { ac_try='test -z "$ac_cxx_werror_flag"
15225 || test ! -s conftest.err'
4d7ec9f1
DE
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try='test -s conftest.$ac_objext'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 echo "$as_me:$LINENO: result: yes" >&5
15238echo "${ECHO_T}yes" >&6
c92ad099 15239 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15240else
15241 echo "$as_me: failed program was:" >&5
15242sed 's/^/| /' conftest.$ac_ext >&5
15243
15244{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15245See \`config.log' for more details." >&5
15246echo "$as_me: error: no. CoreFoundation not available.
15247See \`config.log' for more details." >&2;}
15248 { (exit 1); exit 1; }; }
15249
15250fi
15251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15252
15253
15254fi
15255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15256 ;;
15257esac
15258
a848cd7e
SC
15259case "${host}" in
15260 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15261 ac_ext=c
15262ac_cpp='$CPP $CPPFLAGS'
15263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15265ac_compiler_gnu=$ac_cv_c_compiler_gnu
15266
15267 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15268 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15269echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15270if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272else
15273 ac_check_lib_save_LIBS=$LIBS
15274LIBS="-lcExt $LIBS"
15275cat >conftest.$ac_ext <<_ACEOF
15276/* confdefs.h. */
15277_ACEOF
15278cat confdefs.h >>conftest.$ac_ext
15279cat >>conftest.$ac_ext <<_ACEOF
15280/* end confdefs.h. */
15281
15282/* Override any gcc2 internal prototype to avoid an error. */
15283#ifdef __cplusplus
15284extern "C"
15285#endif
15286/* We use char because int might match the return type of a gcc2
15287 builtin and then its argument prototype would still apply. */
15288char drand48 ();
15289int
15290main ()
15291{
15292drand48 ();
15293 ;
15294 return 0;
15295}
15296_ACEOF
15297rm -f conftest.$ac_objext conftest$ac_exeext
15298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15299 (eval $ac_link) 2>conftest.er1
a848cd7e 15300 ac_status=$?
ac1cb8d3
VS
15301 grep -v '^ *+' conftest.er1 >conftest.err
15302 rm -f conftest.er1
15303 cat conftest.err >&5
a848cd7e
SC
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } &&
d25774ab
JS
15306 { ac_try='test -z "$ac_c_werror_flag"
15307 || test ! -s conftest.err'
ac1cb8d3
VS
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; } &&
15313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15316 ac_status=$?
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15319 ac_cv_lib_cExt_drand48=yes
15320else
15321 echo "$as_me: failed program was:" >&5
15322sed 's/^/| /' conftest.$ac_ext >&5
15323
15324ac_cv_lib_cExt_drand48=no
15325fi
ac1cb8d3
VS
15326rm -f conftest.err conftest.$ac_objext \
15327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15328LIBS=$ac_check_lib_save_LIBS
15329fi
15330echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15331echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15332if test $ac_cv_lib_cExt_drand48 = yes; then
15333 LIBS="$LIBS -lcExt"
15334fi
15335
15336 else
15337 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15338 fi
69120ee4
VZ
15339 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15340echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15341if test "${wx_cv_gccversion+set}" = set; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343else
15344
391a765e
VS
15345 if test "$cross_compiling" = yes; then
15346 wx_cv_gccversion="EMX2"
15347
15348else
15349 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15350/* confdefs.h. */
15351_ACEOF
15352cat confdefs.h >>conftest.$ac_ext
15353cat >>conftest.$ac_ext <<_ACEOF
15354/* end confdefs.h. */
15355
391a765e 15356 #include <stdio.h>
a848cd7e 15357
391a765e
VS
15358 int main()
15359 {
15360 FILE *f=fopen("conftestval", "w");
15361 if (!f) exit(1);
15362 fprintf(f,
a848cd7e 15363 #if (__GNUC__ < 3)
391a765e
VS
15364 "EMX2"
15365 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15366 "EMX3"
15367 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15368 "Innotek5"
15369 #else
15370 "Innotek6"
a848cd7e 15371 #endif
391a765e
VS
15372 );
15373 exit(0);
15374 }
a848cd7e 15375
a848cd7e 15376_ACEOF
391a765e
VS
15377rm -f conftest$ac_exeext
15378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15379 (eval $ac_link) 2>&5
ac1cb8d3
VS
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
391a765e 15388 wx_cv_gccversion=`cat conftestval`
a848cd7e 15389else
391a765e
VS
15390 echo "$as_me: program exited with status $ac_status" >&5
15391echo "$as_me: failed program was:" >&5
a848cd7e
SC
15392sed 's/^/| /' conftest.$ac_ext >&5
15393
391a765e
VS
15394( exit $ac_status )
15395wx_cv_gccversion="EMX2"
a848cd7e 15396fi
391a765e 15397rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15398fi
a848cd7e
SC
15399
15400fi
15401echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15402echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15403 ac_ext=cc
15404ac_cpp='$CXXCPP $CPPFLAGS'
15405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15408
391a765e 15409 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15410 LIBS="$LIBS -lstdcpp"
15411 LDFLAGS="$LDFLAGS -Zsysv-signals"
15412 else
391a765e 15413 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15414 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15415 LDFLAGS="$LDFLAGS -Zsysv-signals"
15416 else
15417 LIBS="$LIBS -lstdc++"
15418 fi
15419 fi
94acd38e
DE
15420 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15421 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15422echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15423 wxUSE_OMF=yes
2da0c077 15424 enable_omf=yes
a848cd7e
SC
15425 fi
15426 ;;
15427 *)
15428
95986553 15429 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15430echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15431if test "${ac_cv_string_strcasecmp+set}" = set; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15433else
15434
15435 cat >conftest.$ac_ext <<_ACEOF
15436/* confdefs.h. */
15437_ACEOF
15438cat confdefs.h >>conftest.$ac_ext
15439cat >>conftest.$ac_ext <<_ACEOF
15440/* end confdefs.h. */
15441
15442 #include <string.h>
15443
15444int
15445main ()
15446{
15447
15448 strcasecmp("foo", "bar");
15449
15450 ;
15451 return 0;
15452}
15453_ACEOF
15454rm -f conftest.$ac_objext conftest$ac_exeext
15455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15456 (eval $ac_link) 2>conftest.er1
a848cd7e 15457 ac_status=$?
ac1cb8d3
VS
15458 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1
15460 cat conftest.err >&5
a848cd7e
SC
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
d25774ab
JS
15463 { ac_try='test -z "$ac_cxx_werror_flag"
15464 || test ! -s conftest.err'
ac1cb8d3
VS
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; } &&
15470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_cv_string_strcasecmp=yes
15477else
15478 echo "$as_me: failed program was:" >&5
15479sed 's/^/| /' conftest.$ac_ext >&5
15480
15481ac_cv_string_strcasecmp=no
15482
15483fi
ac1cb8d3
VS
15484rm -f conftest.err conftest.$ac_objext \
15485 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15486
15487fi
15488echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15489echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15490
15491 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15492 cat >>confdefs.h <<\_ACEOF
15493#define HAVE_STRCASECMP_IN_STRING_H 1
15494_ACEOF
15495
15496 else
15497 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15498echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15499if test "${ac_cv_strings_strcasecmp+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15501else
15502
15503 cat >conftest.$ac_ext <<_ACEOF
15504/* confdefs.h. */
15505_ACEOF
15506cat confdefs.h >>conftest.$ac_ext
15507cat >>conftest.$ac_ext <<_ACEOF
15508/* end confdefs.h. */
15509
15510 #include <strings.h>
15511
15512int
15513main ()
15514{
15515
15516 strcasecmp("foo", "bar");
15517
15518 ;
15519 return 0;
15520}
15521_ACEOF
15522rm -f conftest.$ac_objext conftest$ac_exeext
15523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15524 (eval $ac_link) 2>conftest.er1
a848cd7e 15525 ac_status=$?
ac1cb8d3
VS
15526 grep -v '^ *+' conftest.er1 >conftest.err
15527 rm -f conftest.er1
15528 cat conftest.err >&5
a848cd7e
SC
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
d25774ab
JS
15531 { ac_try='test -z "$ac_cxx_werror_flag"
15532 || test ! -s conftest.err'
ac1cb8d3
VS
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15544 ac_cv_strings_strcasecmp=yes
15545else
15546 echo "$as_me: failed program was:" >&5
15547sed 's/^/| /' conftest.$ac_ext >&5
15548
15549ac_cv_strings_strcasecmp=no
15550
15551fi
ac1cb8d3
VS
15552rm -f conftest.err conftest.$ac_objext \
15553 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15554
15555fi
15556echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15557echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15558
0c3c69fc 15559 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15560 cat >>confdefs.h <<\_ACEOF
15561#define HAVE_STRCASECMP_IN_STRINGS_H 1
15562_ACEOF
15563
15564 else
15565 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15566echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15567 { (exit 1); exit 1; }; }
15568 fi
15569 fi
15570
a848cd7e
SC
15571 ;;
15572esac
15573
15574
5d7b7554
VZ
15575ac_ext=cc
15576ac_cpp='$CXXCPP $CPPFLAGS'
15577ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15578ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15579ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15580echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15581echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15582if test -z "$CXXCPP"; then
15583 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15585else
15586 # Double quotes because CXXCPP needs to be expanded
15587 for CXXCPP in "$CXX -E" "/lib/cpp"
15588 do
15589 ac_preproc_ok=false
15590for ac_cxx_preproc_warn_flag in '' yes
15591do
15592 # Use a header file that comes with gcc, so configuring glibc
15593 # with a fresh cross-compiler works.
15594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15595 # <limits.h> exists even on freestanding compilers.
15596 # On the NeXT, cc -E runs the code through the compiler's parser,
15597 # not just through cpp. "Syntax error" is here to catch this case.
15598 cat >conftest.$ac_ext <<_ACEOF
15599/* confdefs.h. */
15600_ACEOF
15601cat confdefs.h >>conftest.$ac_ext
15602cat >>conftest.$ac_ext <<_ACEOF
15603/* end confdefs.h. */
15604#ifdef __STDC__
15605# include <limits.h>
15606#else
15607# include <assert.h>
15608#endif
15609 Syntax error
15610_ACEOF
15611if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15613 ac_status=$?
15614 grep -v '^ *+' conftest.er1 >conftest.err
15615 rm -f conftest.er1
15616 cat conftest.err >&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } >/dev/null; then
15619 if test -s conftest.err; then
15620 ac_cpp_err=$ac_cxx_preproc_warn_flag
15621 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15622 else
15623 ac_cpp_err=
15624 fi
15625else
15626 ac_cpp_err=yes
15627fi
15628if test -z "$ac_cpp_err"; then
15629 :
15630else
15631 echo "$as_me: failed program was:" >&5
15632sed 's/^/| /' conftest.$ac_ext >&5
15633
15634 # Broken: fails on valid input.
15635continue
15636fi
15637rm -f conftest.err conftest.$ac_ext
15638
15639 # OK, works on sane cases. Now check whether non-existent headers
15640 # can be detected and how.
15641 cat >conftest.$ac_ext <<_ACEOF
15642/* confdefs.h. */
15643_ACEOF
15644cat confdefs.h >>conftest.$ac_ext
15645cat >>conftest.$ac_ext <<_ACEOF
15646/* end confdefs.h. */
15647#include <ac_nonexistent.h>
15648_ACEOF
15649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } >/dev/null; then
15657 if test -s conftest.err; then
15658 ac_cpp_err=$ac_cxx_preproc_warn_flag
15659 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15660 else
15661 ac_cpp_err=
15662 fi
15663else
15664 ac_cpp_err=yes
15665fi
15666if test -z "$ac_cpp_err"; then
15667 # Broken: success on invalid input.
15668continue
15669else
15670 echo "$as_me: failed program was:" >&5
15671sed 's/^/| /' conftest.$ac_ext >&5
15672
15673 # Passes both tests.
15674ac_preproc_ok=:
15675break
15676fi
15677rm -f conftest.err conftest.$ac_ext
15678
15679done
15680# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15681rm -f conftest.err conftest.$ac_ext
15682if $ac_preproc_ok; then
15683 break
15684fi
15685
15686 done
15687 ac_cv_prog_CXXCPP=$CXXCPP
15688
15689fi
15690 CXXCPP=$ac_cv_prog_CXXCPP
15691else
15692 ac_cv_prog_CXXCPP=$CXXCPP
15693fi
15694echo "$as_me:$LINENO: result: $CXXCPP" >&5
15695echo "${ECHO_T}$CXXCPP" >&6
15696ac_preproc_ok=false
15697for ac_cxx_preproc_warn_flag in '' yes
15698do
15699 # Use a header file that comes with gcc, so configuring glibc
15700 # with a fresh cross-compiler works.
15701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15702 # <limits.h> exists even on freestanding compilers.
15703 # On the NeXT, cc -E runs the code through the compiler's parser,
15704 # not just through cpp. "Syntax error" is here to catch this case.
15705 cat >conftest.$ac_ext <<_ACEOF
15706/* confdefs.h. */
15707_ACEOF
15708cat confdefs.h >>conftest.$ac_ext
15709cat >>conftest.$ac_ext <<_ACEOF
15710/* end confdefs.h. */
15711#ifdef __STDC__
15712# include <limits.h>
15713#else
15714# include <assert.h>
15715#endif
15716 Syntax error
15717_ACEOF
15718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15720 ac_status=$?
15721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } >/dev/null; then
15726 if test -s conftest.err; then
15727 ac_cpp_err=$ac_cxx_preproc_warn_flag
15728 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15729 else
15730 ac_cpp_err=
15731 fi
15732else
15733 ac_cpp_err=yes
15734fi
15735if test -z "$ac_cpp_err"; then
15736 :
15737else
15738 echo "$as_me: failed program was:" >&5
15739sed 's/^/| /' conftest.$ac_ext >&5
15740
15741 # Broken: fails on valid input.
15742continue
15743fi
15744rm -f conftest.err conftest.$ac_ext
15745
15746 # OK, works on sane cases. Now check whether non-existent headers
15747 # can be detected and how.
15748 cat >conftest.$ac_ext <<_ACEOF
15749/* confdefs.h. */
15750_ACEOF
15751cat confdefs.h >>conftest.$ac_ext
15752cat >>conftest.$ac_ext <<_ACEOF
15753/* end confdefs.h. */
15754#include <ac_nonexistent.h>
15755_ACEOF
15756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15758 ac_status=$?
15759 grep -v '^ *+' conftest.er1 >conftest.err
15760 rm -f conftest.er1
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } >/dev/null; then
15764 if test -s conftest.err; then
15765 ac_cpp_err=$ac_cxx_preproc_warn_flag
15766 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15767 else
15768 ac_cpp_err=
15769 fi
15770else
15771 ac_cpp_err=yes
15772fi
15773if test -z "$ac_cpp_err"; then
15774 # Broken: success on invalid input.
15775continue
15776else
15777 echo "$as_me: failed program was:" >&5
15778sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 # Passes both tests.
15781ac_preproc_ok=:
15782break
15783fi
15784rm -f conftest.err conftest.$ac_ext
15785
15786done
15787# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15788rm -f conftest.err conftest.$ac_ext
15789if $ac_preproc_ok; then
15790 :
15791else
15792 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15793See \`config.log' for more details." >&5
15794echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15795See \`config.log' for more details." >&2;}
15796 { (exit 1); exit 1; }; }
15797fi
15798
15799ac_ext=cc
15800ac_cpp='$CXXCPP $CPPFLAGS'
15801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15804
15805
a848cd7e
SC
15806echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15807echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15808if test "${ac_cv_header_stdc+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810else
15811 cat >conftest.$ac_ext <<_ACEOF
15812/* confdefs.h. */
15813_ACEOF
15814cat confdefs.h >>conftest.$ac_ext
15815cat >>conftest.$ac_ext <<_ACEOF
15816/* end confdefs.h. */
15817#include <stdlib.h>
15818#include <stdarg.h>
15819#include <string.h>
15820#include <float.h>
15821
15822int
15823main ()
15824{
15825
15826 ;
15827 return 0;
15828}
15829_ACEOF
15830rm -f conftest.$ac_objext
15831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15832 (eval $ac_compile) 2>conftest.er1
a848cd7e 15833 ac_status=$?
ac1cb8d3
VS
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
a848cd7e
SC
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
d25774ab
JS
15839 { ac_try='test -z "$ac_cxx_werror_flag"
15840 || test ! -s conftest.err'
ac1cb8d3
VS
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 ac_cv_header_stdc=yes
15853else
15854 echo "$as_me: failed program was:" >&5
15855sed 's/^/| /' conftest.$ac_ext >&5
15856
15857ac_cv_header_stdc=no
15858fi
ac1cb8d3 15859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15860
15861if test $ac_cv_header_stdc = yes; then
15862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15863 cat >conftest.$ac_ext <<_ACEOF
15864/* confdefs.h. */
15865_ACEOF
15866cat confdefs.h >>conftest.$ac_ext
15867cat >>conftest.$ac_ext <<_ACEOF
15868/* end confdefs.h. */
15869#include <string.h>
15870
15871_ACEOF
15872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15873 $EGREP "memchr" >/dev/null 2>&1; then
15874 :
15875else
15876 ac_cv_header_stdc=no
15877fi
15878rm -f conftest*
15879
15880fi
15881
15882if test $ac_cv_header_stdc = yes; then
15883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15884 cat >conftest.$ac_ext <<_ACEOF
15885/* confdefs.h. */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h. */
15890#include <stdlib.h>
15891
15892_ACEOF
15893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15894 $EGREP "free" >/dev/null 2>&1; then
15895 :
15896else
15897 ac_cv_header_stdc=no
15898fi
15899rm -f conftest*
15900
15901fi
15902
15903if test $ac_cv_header_stdc = yes; then
15904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15905 if test "$cross_compiling" = yes; then
15906 :
15907else
15908 cat >conftest.$ac_ext <<_ACEOF
15909/* confdefs.h. */
15910_ACEOF
15911cat confdefs.h >>conftest.$ac_ext
15912cat >>conftest.$ac_ext <<_ACEOF
15913/* end confdefs.h. */
15914#include <ctype.h>
15915#if ((' ' & 0x0FF) == 0x020)
15916# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15917# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15918#else
15919# define ISLOWER(c) \
ac1cb8d3
VS
15920 (('a' <= (c) && (c) <= 'i') \
15921 || ('j' <= (c) && (c) <= 'r') \
15922 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15923# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15924#endif
15925
15926#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15927int
15928main ()
15929{
15930 int i;
15931 for (i = 0; i < 256; i++)
15932 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15933 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15934 exit(2);
15935 exit (0);
15936}
15937_ACEOF
15938rm -f conftest$ac_exeext
15939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15940 (eval $ac_link) 2>&5
15941 ac_status=$?
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15949 :
15950else
15951 echo "$as_me: program exited with status $ac_status" >&5
15952echo "$as_me: failed program was:" >&5
15953sed 's/^/| /' conftest.$ac_ext >&5
15954
15955( exit $ac_status )
15956ac_cv_header_stdc=no
15957fi
ac1cb8d3 15958rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15959fi
15960fi
15961fi
15962echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15963echo "${ECHO_T}$ac_cv_header_stdc" >&6
15964if test $ac_cv_header_stdc = yes; then
15965
15966cat >>confdefs.h <<\_ACEOF
15967#define STDC_HEADERS 1
15968_ACEOF
15969
15970fi
15971
15972# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15983 inttypes.h stdint.h unistd.h
a848cd7e
SC
15984do
15985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15986echo "$as_me:$LINENO: checking for $ac_header" >&5
15987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15988if eval "test \"\${$as_ac_Header+set}\" = set"; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15990else
15991 cat >conftest.$ac_ext <<_ACEOF
15992/* confdefs.h. */
15993_ACEOF
15994cat confdefs.h >>conftest.$ac_ext
15995cat >>conftest.$ac_ext <<_ACEOF
15996/* end confdefs.h. */
15997$ac_includes_default
15998
15999#include <$ac_header>
16000_ACEOF
16001rm -f conftest.$ac_objext
16002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16003 (eval $ac_compile) 2>conftest.er1
a848cd7e 16004 ac_status=$?
ac1cb8d3
VS
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
a848cd7e
SC
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
d25774ab
JS
16010 { ac_try='test -z "$ac_cxx_werror_flag"
16011 || test ! -s conftest.err'
ac1cb8d3
VS
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; } &&
16017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 eval "$as_ac_Header=yes"
16024else
16025 echo "$as_me: failed program was:" >&5
16026sed 's/^/| /' conftest.$ac_ext >&5
16027
16028eval "$as_ac_Header=no"
16029fi
ac1cb8d3 16030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16031fi
16032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16034if test `eval echo '${'$as_ac_Header'}'` = yes; then
16035 cat >>confdefs.h <<_ACEOF
16036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16037_ACEOF
16038
16039fi
16040
16041done
16042
16043
16044
16045for ac_header in stdlib.h
16046do
16047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16048if eval "test \"\${$as_ac_Header+set}\" = set"; then
16049 echo "$as_me:$LINENO: checking for $ac_header" >&5
16050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16051if eval "test \"\${$as_ac_Header+set}\" = set"; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16053fi
16054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16056else
16057 # Is the header compilable?
16058echo "$as_me:$LINENO: checking $ac_header usability" >&5
16059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16060cat >conftest.$ac_ext <<_ACEOF
16061/* confdefs.h. */
16062_ACEOF
16063cat confdefs.h >>conftest.$ac_ext
16064cat >>conftest.$ac_ext <<_ACEOF
16065/* end confdefs.h. */
16066$ac_includes_default
16067#include <$ac_header>
16068_ACEOF
16069rm -f conftest.$ac_objext
16070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16071 (eval $ac_compile) 2>conftest.er1
a848cd7e 16072 ac_status=$?
ac1cb8d3
VS
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
a848cd7e
SC
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
d25774ab
JS
16078 { ac_try='test -z "$ac_cxx_werror_flag"
16079 || test ! -s conftest.err'
ac1cb8d3
VS
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; } &&
16085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; }; then
16091 ac_header_compiler=yes
16092else
16093 echo "$as_me: failed program was:" >&5
16094sed 's/^/| /' conftest.$ac_ext >&5
16095
16096ac_header_compiler=no
16097fi
ac1cb8d3 16098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16100echo "${ECHO_T}$ac_header_compiler" >&6
16101
16102# Is the header present?
16103echo "$as_me:$LINENO: checking $ac_header presence" >&5
16104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16105cat >conftest.$ac_ext <<_ACEOF
16106/* confdefs.h. */
16107_ACEOF
16108cat confdefs.h >>conftest.$ac_ext
16109cat >>conftest.$ac_ext <<_ACEOF
16110/* end confdefs.h. */
16111#include <$ac_header>
16112_ACEOF
16113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } >/dev/null; then
16121 if test -s conftest.err; then
5d7b7554
VZ
16122 ac_cpp_err=$ac_cxx_preproc_warn_flag
16123 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16124 else
16125 ac_cpp_err=
16126 fi
16127else
16128 ac_cpp_err=yes
16129fi
16130if test -z "$ac_cpp_err"; then
16131 ac_header_preproc=yes
16132else
16133 echo "$as_me: failed program was:" >&5
16134sed 's/^/| /' conftest.$ac_ext >&5
16135
16136 ac_header_preproc=no
16137fi
16138rm -f conftest.err conftest.$ac_ext
16139echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16140echo "${ECHO_T}$ac_header_preproc" >&6
16141
16142# So? What about this header?
5d7b7554 16143case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16144 yes:no: )
a848cd7e
SC
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16149 ac_header_preproc=yes
a848cd7e 16150 ;;
ac1cb8d3 16151 no:yes:* )
a848cd7e
SC
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16155echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16159echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16164 (
16165 cat <<\_ASBOX
ac1cb8d3
VS
16166## ----------------------------------------- ##
16167## Report this to wx-dev@lists.wxwidgets.org ##
16168## ----------------------------------------- ##
a848cd7e
SC
16169_ASBOX
16170 ) |
16171 sed "s/^/$as_me: WARNING: /" >&2
16172 ;;
16173esac
16174echo "$as_me:$LINENO: checking for $ac_header" >&5
16175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16176if eval "test \"\${$as_ac_Header+set}\" = set"; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178else
ac1cb8d3 16179 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16180fi
16181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16183
16184fi
16185if test `eval echo '${'$as_ac_Header'}'` = yes; then
16186 cat >>confdefs.h <<_ACEOF
16187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16188_ACEOF
16189
16190fi
16191
16192done
16193
16194
16195for ac_header in malloc.h
16196do
16197as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16198if eval "test \"\${$as_ac_Header+set}\" = set"; then
16199 echo "$as_me:$LINENO: checking for $ac_header" >&5
16200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16201if eval "test \"\${$as_ac_Header+set}\" = set"; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203fi
16204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16206else
16207 # Is the header compilable?
16208echo "$as_me:$LINENO: checking $ac_header usability" >&5
16209echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16210cat >conftest.$ac_ext <<_ACEOF
16211/* confdefs.h. */
16212_ACEOF
16213cat confdefs.h >>conftest.$ac_ext
16214cat >>conftest.$ac_ext <<_ACEOF
16215/* end confdefs.h. */
16216$ac_includes_default
16217#include <$ac_header>
16218_ACEOF
16219rm -f conftest.$ac_objext
16220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16221 (eval $ac_compile) 2>conftest.er1
a848cd7e 16222 ac_status=$?
ac1cb8d3
VS
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
a848cd7e
SC
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
d25774ab
JS
16228 { ac_try='test -z "$ac_cxx_werror_flag"
16229 || test ! -s conftest.err'
ac1cb8d3
VS
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } &&
16235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_header_compiler=yes
16242else
16243 echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246ac_header_compiler=no
16247fi
ac1cb8d3 16248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16249echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16250echo "${ECHO_T}$ac_header_compiler" >&6
16251
16252# Is the header present?
16253echo "$as_me:$LINENO: checking $ac_header presence" >&5
16254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16255cat >conftest.$ac_ext <<_ACEOF
16256/* confdefs.h. */
16257_ACEOF
16258cat confdefs.h >>conftest.$ac_ext
16259cat >>conftest.$ac_ext <<_ACEOF
16260/* end confdefs.h. */
16261#include <$ac_header>
16262_ACEOF
16263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16265 ac_status=$?
16266 grep -v '^ *+' conftest.er1 >conftest.err
16267 rm -f conftest.er1
16268 cat conftest.err >&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } >/dev/null; then
16271 if test -s conftest.err; then
5d7b7554
VZ
16272 ac_cpp_err=$ac_cxx_preproc_warn_flag
16273 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16274 else
16275 ac_cpp_err=
16276 fi
16277else
16278 ac_cpp_err=yes
16279fi
16280if test -z "$ac_cpp_err"; then
16281 ac_header_preproc=yes
16282else
16283 echo "$as_me: failed program was:" >&5
16284sed 's/^/| /' conftest.$ac_ext >&5
16285
16286 ac_header_preproc=no
16287fi
16288rm -f conftest.err conftest.$ac_ext
16289echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16290echo "${ECHO_T}$ac_header_preproc" >&6
16291
16292# So? What about this header?
5d7b7554 16293case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16294 yes:no: )
a848cd7e
SC
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16296echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16298echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16299 ac_header_preproc=yes
a848cd7e 16300 ;;
ac1cb8d3 16301 no:yes:* )
a848cd7e
SC
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16303echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16305echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16307echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16309echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16313echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16314 (
16315 cat <<\_ASBOX
ac1cb8d3
VS
16316## ----------------------------------------- ##
16317## Report this to wx-dev@lists.wxwidgets.org ##
16318## ----------------------------------------- ##
a848cd7e
SC
16319_ASBOX
16320 ) |
16321 sed "s/^/$as_me: WARNING: /" >&2
16322 ;;
16323esac
16324echo "$as_me:$LINENO: checking for $ac_header" >&5
16325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16326if eval "test \"\${$as_ac_Header+set}\" = set"; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16328else
ac1cb8d3 16329 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16330fi
16331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16333
16334fi
16335if test `eval echo '${'$as_ac_Header'}'` = yes; then
16336 cat >>confdefs.h <<_ACEOF
16337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16338_ACEOF
16339
16340fi
16341
16342done
16343
16344
16345for ac_header in unistd.h
16346do
16347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16348if eval "test \"\${$as_ac_Header+set}\" = set"; then
16349 echo "$as_me:$LINENO: checking for $ac_header" >&5
16350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16351if eval "test \"\${$as_ac_Header+set}\" = set"; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16353fi
16354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16356else
16357 # Is the header compilable?
16358echo "$as_me:$LINENO: checking $ac_header usability" >&5
16359echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16360cat >conftest.$ac_ext <<_ACEOF
16361/* confdefs.h. */
16362_ACEOF
16363cat confdefs.h >>conftest.$ac_ext
16364cat >>conftest.$ac_ext <<_ACEOF
16365/* end confdefs.h. */
16366$ac_includes_default
16367#include <$ac_header>
16368_ACEOF
16369rm -f conftest.$ac_objext
16370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16371 (eval $ac_compile) 2>conftest.er1
a848cd7e 16372 ac_status=$?
ac1cb8d3
VS
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
a848cd7e
SC
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
d25774ab
JS
16378 { ac_try='test -z "$ac_cxx_werror_flag"
16379 || test ! -s conftest.err'
ac1cb8d3
VS
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; } &&
16385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 ac_header_compiler=yes
16392else
16393 echo "$as_me: failed program was:" >&5
16394sed 's/^/| /' conftest.$ac_ext >&5
16395
16396ac_header_compiler=no
16397fi
ac1cb8d3 16398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16399echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16400echo "${ECHO_T}$ac_header_compiler" >&6
16401
16402# Is the header present?
16403echo "$as_me:$LINENO: checking $ac_header presence" >&5
16404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16405cat >conftest.$ac_ext <<_ACEOF
16406/* confdefs.h. */
16407_ACEOF
16408cat confdefs.h >>conftest.$ac_ext
16409cat >>conftest.$ac_ext <<_ACEOF
16410/* end confdefs.h. */
16411#include <$ac_header>
16412_ACEOF
16413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16415 ac_status=$?
16416 grep -v '^ *+' conftest.er1 >conftest.err
16417 rm -f conftest.er1
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } >/dev/null; then
16421 if test -s conftest.err; then
5d7b7554
VZ
16422 ac_cpp_err=$ac_cxx_preproc_warn_flag
16423 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16424 else
16425 ac_cpp_err=
16426 fi
16427else
16428 ac_cpp_err=yes
16429fi
16430if test -z "$ac_cpp_err"; then
16431 ac_header_preproc=yes
16432else
16433 echo "$as_me: failed program was:" >&5
16434sed 's/^/| /' conftest.$ac_ext >&5
16435
16436 ac_header_preproc=no
16437fi
16438rm -f conftest.err conftest.$ac_ext
16439echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16440echo "${ECHO_T}$ac_header_preproc" >&6
16441
16442# So? What about this header?
5d7b7554 16443case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16444 yes:no: )
a848cd7e
SC
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16448echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16449 ac_header_preproc=yes
a848cd7e 16450 ;;
ac1cb8d3 16451 no:yes:* )
a848cd7e
SC
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16453echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16455echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16457echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16459echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16463echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16464 (
16465 cat <<\_ASBOX
ac1cb8d3
VS
16466## ----------------------------------------- ##
16467## Report this to wx-dev@lists.wxwidgets.org ##
16468## ----------------------------------------- ##
a848cd7e
SC
16469_ASBOX
16470 ) |
16471 sed "s/^/$as_me: WARNING: /" >&2
16472 ;;
16473esac
16474echo "$as_me:$LINENO: checking for $ac_header" >&5
16475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16476if eval "test \"\${$as_ac_Header+set}\" = set"; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16478else
ac1cb8d3 16479 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16480fi
16481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16483
16484fi
16485if test `eval echo '${'$as_ac_Header'}'` = yes; then
16486 cat >>confdefs.h <<_ACEOF
16487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16488_ACEOF
16489
16490fi
16491
16492done
16493
16494
16495for ac_header in wchar.h
16496do
16497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16498if eval "test \"\${$as_ac_Header+set}\" = set"; then
16499 echo "$as_me:$LINENO: checking for $ac_header" >&5
16500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16501if eval "test \"\${$as_ac_Header+set}\" = set"; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16503fi
16504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16506else
16507 # Is the header compilable?
16508echo "$as_me:$LINENO: checking $ac_header usability" >&5
16509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16510cat >conftest.$ac_ext <<_ACEOF
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
16516$ac_includes_default
16517#include <$ac_header>
16518_ACEOF
16519rm -f conftest.$ac_objext
16520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16521 (eval $ac_compile) 2>conftest.er1
a848cd7e 16522 ac_status=$?
ac1cb8d3
VS
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
a848cd7e
SC
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
d25774ab
JS
16528 { ac_try='test -z "$ac_cxx_werror_flag"
16529 || test ! -s conftest.err'
ac1cb8d3
VS
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ac_header_compiler=yes
16542else
16543 echo "$as_me: failed program was:" >&5
16544sed 's/^/| /' conftest.$ac_ext >&5
16545
16546ac_header_compiler=no
16547fi
ac1cb8d3 16548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16550echo "${ECHO_T}$ac_header_compiler" >&6
16551
16552# Is the header present?
16553echo "$as_me:$LINENO: checking $ac_header presence" >&5
16554echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16555cat >conftest.$ac_ext <<_ACEOF
16556/* confdefs.h. */
16557_ACEOF
16558cat confdefs.h >>conftest.$ac_ext
16559cat >>conftest.$ac_ext <<_ACEOF
16560/* end confdefs.h. */
16561#include <$ac_header>
16562_ACEOF
16563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16565 ac_status=$?
16566 grep -v '^ *+' conftest.er1 >conftest.err
16567 rm -f conftest.er1
16568 cat conftest.err >&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } >/dev/null; then
16571 if test -s conftest.err; then
5d7b7554
VZ
16572 ac_cpp_err=$ac_cxx_preproc_warn_flag
16573 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16574 else
16575 ac_cpp_err=
16576 fi
16577else
16578 ac_cpp_err=yes
16579fi
16580if test -z "$ac_cpp_err"; then
16581 ac_header_preproc=yes
16582else
16583 echo "$as_me: failed program was:" >&5
16584sed 's/^/| /' conftest.$ac_ext >&5
16585
16586 ac_header_preproc=no
16587fi
16588rm -f conftest.err conftest.$ac_ext
16589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16590echo "${ECHO_T}$ac_header_preproc" >&6
16591
16592# So? What about this header?
5d7b7554 16593case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16594 yes:no: )
a848cd7e
SC
16595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16596echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16598echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16599 ac_header_preproc=yes
a848cd7e 16600 ;;
ac1cb8d3 16601 no:yes:* )
a848cd7e
SC
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16603echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16605echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16607echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16609echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16613echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16614 (
16615 cat <<\_ASBOX
ac1cb8d3
VS
16616## ----------------------------------------- ##
16617## Report this to wx-dev@lists.wxwidgets.org ##
16618## ----------------------------------------- ##
a848cd7e
SC
16619_ASBOX
16620 ) |
16621 sed "s/^/$as_me: WARNING: /" >&2
16622 ;;
16623esac
16624echo "$as_me:$LINENO: checking for $ac_header" >&5
16625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16626if eval "test \"\${$as_ac_Header+set}\" = set"; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16628else
ac1cb8d3 16629 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16630fi
16631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16633
16634fi
16635if test `eval echo '${'$as_ac_Header'}'` = yes; then
16636 cat >>confdefs.h <<_ACEOF
16637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16638_ACEOF
16639
16640fi
16641
16642done
16643
16644
16645if test "$ac_cv_header_wchar_h" != "yes"; then
16646
16647for ac_header in wcstr.h
16648do
16649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16650if eval "test \"\${$as_ac_Header+set}\" = set"; then
16651 echo "$as_me:$LINENO: checking for $ac_header" >&5
16652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16653if eval "test \"\${$as_ac_Header+set}\" = set"; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16655fi
16656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16658else
16659 # Is the header compilable?
16660echo "$as_me:$LINENO: checking $ac_header usability" >&5
16661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16662cat >conftest.$ac_ext <<_ACEOF
16663/* confdefs.h. */
16664_ACEOF
16665cat confdefs.h >>conftest.$ac_ext
16666cat >>conftest.$ac_ext <<_ACEOF
16667/* end confdefs.h. */
16668$ac_includes_default
16669#include <$ac_header>
16670_ACEOF
16671rm -f conftest.$ac_objext
16672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16673 (eval $ac_compile) 2>conftest.er1
a848cd7e 16674 ac_status=$?
ac1cb8d3
VS
16675 grep -v '^ *+' conftest.er1 >conftest.err
16676 rm -f conftest.er1
16677 cat conftest.err >&5
a848cd7e
SC
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
d25774ab
JS
16680 { ac_try='test -z "$ac_cxx_werror_flag"
16681 || test ! -s conftest.err'
ac1cb8d3
VS
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16684 ac_status=$?
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; } &&
16687 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; }; then
16693 ac_header_compiler=yes
16694else
16695 echo "$as_me: failed program was:" >&5
16696sed 's/^/| /' conftest.$ac_ext >&5
16697
16698ac_header_compiler=no
16699fi
ac1cb8d3 16700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16702echo "${ECHO_T}$ac_header_compiler" >&6
16703
16704# Is the header present?
16705echo "$as_me:$LINENO: checking $ac_header presence" >&5
16706echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16707cat >conftest.$ac_ext <<_ACEOF
16708/* confdefs.h. */
16709_ACEOF
16710cat confdefs.h >>conftest.$ac_ext
16711cat >>conftest.$ac_ext <<_ACEOF
16712/* end confdefs.h. */
16713#include <$ac_header>
16714_ACEOF
16715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } >/dev/null; then
16723 if test -s conftest.err; then
5d7b7554
VZ
16724 ac_cpp_err=$ac_cxx_preproc_warn_flag
16725 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16726 else
16727 ac_cpp_err=
16728 fi
16729else
16730 ac_cpp_err=yes
16731fi
16732if test -z "$ac_cpp_err"; then
16733 ac_header_preproc=yes
16734else
16735 echo "$as_me: failed program was:" >&5
16736sed 's/^/| /' conftest.$ac_ext >&5
16737
16738 ac_header_preproc=no
16739fi
16740rm -f conftest.err conftest.$ac_ext
16741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16742echo "${ECHO_T}$ac_header_preproc" >&6
16743
16744# So? What about this header?
5d7b7554 16745case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16746 yes:no: )
a848cd7e
SC
16747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16751 ac_header_preproc=yes
a848cd7e 16752 ;;
ac1cb8d3 16753 no:yes:* )
a848cd7e
SC
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16766 (
16767 cat <<\_ASBOX
ac1cb8d3
VS
16768## ----------------------------------------- ##
16769## Report this to wx-dev@lists.wxwidgets.org ##
16770## ----------------------------------------- ##
a848cd7e
SC
16771_ASBOX
16772 ) |
16773 sed "s/^/$as_me: WARNING: /" >&2
16774 ;;
16775esac
16776echo "$as_me:$LINENO: checking for $ac_header" >&5
16777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16778if eval "test \"\${$as_ac_Header+set}\" = set"; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16780else
ac1cb8d3 16781 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16782fi
16783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16785
16786fi
16787if test `eval echo '${'$as_ac_Header'}'` = yes; then
16788 cat >>confdefs.h <<_ACEOF
16789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16790_ACEOF
16791
16792fi
16793
16794done
16795
16796fi
16797
16798
16799for ac_header in fnmatch.h
16800do
16801as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16802if eval "test \"\${$as_ac_Header+set}\" = set"; then
16803 echo "$as_me:$LINENO: checking for $ac_header" >&5
16804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16805if eval "test \"\${$as_ac_Header+set}\" = set"; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16807fi
16808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16810else
16811 # Is the header compilable?
16812echo "$as_me:$LINENO: checking $ac_header usability" >&5
16813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16814cat >conftest.$ac_ext <<_ACEOF
16815/* confdefs.h. */
16816_ACEOF
16817cat confdefs.h >>conftest.$ac_ext
16818cat >>conftest.$ac_ext <<_ACEOF
16819/* end confdefs.h. */
16820$ac_includes_default
16821#include <$ac_header>
16822_ACEOF
16823rm -f conftest.$ac_objext
16824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16825 (eval $ac_compile) 2>conftest.er1
a848cd7e 16826 ac_status=$?
ac1cb8d3
VS
16827 grep -v '^ *+' conftest.er1 >conftest.err
16828 rm -f conftest.er1
16829 cat conftest.err >&5
a848cd7e
SC
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
d25774ab
JS
16832 { ac_try='test -z "$ac_cxx_werror_flag"
16833 || test ! -s conftest.err'
ac1cb8d3
VS
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; } &&
16839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 ac_header_compiler=yes
16846else
16847 echo "$as_me: failed program was:" >&5
16848sed 's/^/| /' conftest.$ac_ext >&5
16849
16850ac_header_compiler=no
16851fi
ac1cb8d3 16852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16854echo "${ECHO_T}$ac_header_compiler" >&6
16855
16856# Is the header present?
16857echo "$as_me:$LINENO: checking $ac_header presence" >&5
16858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16859cat >conftest.$ac_ext <<_ACEOF
16860/* confdefs.h. */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
16864/* end confdefs.h. */
16865#include <$ac_header>
16866_ACEOF
16867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } >/dev/null; then
16875 if test -s conftest.err; then
5d7b7554
VZ
16876 ac_cpp_err=$ac_cxx_preproc_warn_flag
16877 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16878 else
16879 ac_cpp_err=
16880 fi
16881else
16882 ac_cpp_err=yes
16883fi
16884if test -z "$ac_cpp_err"; then
16885 ac_header_preproc=yes
16886else
16887 echo "$as_me: failed program was:" >&5
16888sed 's/^/| /' conftest.$ac_ext >&5
16889
16890 ac_header_preproc=no
16891fi
16892rm -f conftest.err conftest.$ac_ext
16893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16894echo "${ECHO_T}$ac_header_preproc" >&6
16895
16896# So? What about this header?
5d7b7554 16897case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16898 yes:no: )
a848cd7e
SC
16899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16903 ac_header_preproc=yes
a848cd7e 16904 ;;
ac1cb8d3 16905 no:yes:* )
a848cd7e
SC
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16909echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16913echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16918 (
16919 cat <<\_ASBOX
ac1cb8d3
VS
16920## ----------------------------------------- ##
16921## Report this to wx-dev@lists.wxwidgets.org ##
16922## ----------------------------------------- ##
a848cd7e
SC
16923_ASBOX
16924 ) |
16925 sed "s/^/$as_me: WARNING: /" >&2
16926 ;;
16927esac
16928echo "$as_me:$LINENO: checking for $ac_header" >&5
16929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16930if eval "test \"\${$as_ac_Header+set}\" = set"; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932else
ac1cb8d3 16933 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16934fi
16935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16937
16938fi
16939if test `eval echo '${'$as_ac_Header'}'` = yes; then
16940 cat >>confdefs.h <<_ACEOF
16941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16942_ACEOF
16943
16944fi
16945
16946done
16947
16948
a848cd7e
SC
16949
16950for ac_header in langinfo.h
16951do
16952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16953if eval "test \"\${$as_ac_Header+set}\" = set"; then
16954 echo "$as_me:$LINENO: checking for $ac_header" >&5
16955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16956if eval "test \"\${$as_ac_Header+set}\" = set"; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16958fi
16959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16961else
16962 # Is the header compilable?
16963echo "$as_me:$LINENO: checking $ac_header usability" >&5
16964echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16965cat >conftest.$ac_ext <<_ACEOF
16966/* confdefs.h. */
16967_ACEOF
16968cat confdefs.h >>conftest.$ac_ext
16969cat >>conftest.$ac_ext <<_ACEOF
16970/* end confdefs.h. */
16971$ac_includes_default
16972#include <$ac_header>
16973_ACEOF
16974rm -f conftest.$ac_objext
16975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16976 (eval $ac_compile) 2>conftest.er1
a848cd7e 16977 ac_status=$?
ac1cb8d3
VS
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
a848cd7e
SC
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
d25774ab
JS
16983 { ac_try='test -z "$ac_cxx_werror_flag"
16984 || test ! -s conftest.err'
ac1cb8d3
VS
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16993 ac_status=$?
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_header_compiler=yes
16997else
16998 echo "$as_me: failed program was:" >&5
16999sed 's/^/| /' conftest.$ac_ext >&5
17000
17001ac_header_compiler=no
17002fi
ac1cb8d3 17003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17005echo "${ECHO_T}$ac_header_compiler" >&6
17006
17007# Is the header present?
17008echo "$as_me:$LINENO: checking $ac_header presence" >&5
17009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17010cat >conftest.$ac_ext <<_ACEOF
17011/* confdefs.h. */
17012_ACEOF
17013cat confdefs.h >>conftest.$ac_ext
17014cat >>conftest.$ac_ext <<_ACEOF
17015/* end confdefs.h. */
17016#include <$ac_header>
17017_ACEOF
17018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17020 ac_status=$?
17021 grep -v '^ *+' conftest.er1 >conftest.err
17022 rm -f conftest.er1
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } >/dev/null; then
17026 if test -s conftest.err; then
5d7b7554
VZ
17027 ac_cpp_err=$ac_cxx_preproc_warn_flag
17028 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17029 else
17030 ac_cpp_err=
17031 fi
17032else
17033 ac_cpp_err=yes
17034fi
17035if test -z "$ac_cpp_err"; then
17036 ac_header_preproc=yes
17037else
17038 echo "$as_me: failed program was:" >&5
17039sed 's/^/| /' conftest.$ac_ext >&5
17040
17041 ac_header_preproc=no
17042fi
17043rm -f conftest.err conftest.$ac_ext
17044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17045echo "${ECHO_T}$ac_header_preproc" >&6
17046
17047# So? What about this header?
5d7b7554 17048case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17049 yes:no: )
a848cd7e
SC
17050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17054 ac_header_preproc=yes
a848cd7e 17055 ;;
ac1cb8d3 17056 no:yes:* )
a848cd7e
SC
17057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17060echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17064echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17069 (
17070 cat <<\_ASBOX
ac1cb8d3
VS
17071## ----------------------------------------- ##
17072## Report this to wx-dev@lists.wxwidgets.org ##
17073## ----------------------------------------- ##
a848cd7e
SC
17074_ASBOX
17075 ) |
17076 sed "s/^/$as_me: WARNING: /" >&2
17077 ;;
17078esac
17079echo "$as_me:$LINENO: checking for $ac_header" >&5
17080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17081if eval "test \"\${$as_ac_Header+set}\" = set"; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083else
ac1cb8d3 17084 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17085fi
17086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17088
17089fi
17090if test `eval echo '${'$as_ac_Header'}'` = yes; then
17091 cat >>confdefs.h <<_ACEOF
17092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17093_ACEOF
17094
17095fi
17096
17097done
17098
17099
17100case "${host}" in
17101 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17102 if test $ac_cv_header_langinfo_h = "yes" \
17103 -a \( "$wx_cv_gccversion" = "EMX2" \
17104 -o "$wx_cv_gccversion" = "EMX3" \
17105 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17106 LIBS="$LIBS -lintl"
17107 fi
17108 ;;
17109esac
17110
a848cd7e
SC
17111
17112echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17113echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17114if test "${ac_cv_c_const+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17116else
17117 cat >conftest.$ac_ext <<_ACEOF
17118/* confdefs.h. */
17119_ACEOF
17120cat confdefs.h >>conftest.$ac_ext
17121cat >>conftest.$ac_ext <<_ACEOF
17122/* end confdefs.h. */
17123
17124int
17125main ()
17126{
17127/* FIXME: Include the comments suggested by Paul. */
17128#ifndef __cplusplus
17129 /* Ultrix mips cc rejects this. */
17130 typedef int charset[2];
17131 const charset x;
17132 /* SunOS 4.1.1 cc rejects this. */
17133 char const *const *ccp;
17134 char **p;
17135 /* NEC SVR4.0.2 mips cc rejects this. */
17136 struct point {int x, y;};
17137 static struct point const zero = {0,0};
17138 /* AIX XL C 1.02.0.0 rejects this.
17139 It does not let you subtract one const X* pointer from another in
17140 an arm of an if-expression whose if-part is not a constant
17141 expression */
17142 const char *g = "string";
17143 ccp = &g + (g ? g-g : 0);
17144 /* HPUX 7.0 cc rejects these. */
17145 ++ccp;
17146 p = (char**) ccp;
17147 ccp = (char const *const *) p;
17148 { /* SCO 3.2v4 cc rejects this. */
17149 char *t;
17150 char const *s = 0 ? (char *) 0 : (char const *) 0;
17151
17152 *t++ = 0;
17153 }
17154 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17155 int x[] = {25, 17};
17156 const int *foo = &x[0];
17157 ++foo;
17158 }
17159 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17160 typedef const int *iptr;
17161 iptr p = 0;
17162 ++p;
17163 }
17164 { /* AIX XL C 1.02.0.0 rejects this saying
17165 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17166 struct s { int j; const int *ap[3]; };
17167 struct s *b; b->j = 5;
17168 }
17169 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17170 const int foo = 10;
17171 }
17172#endif
17173
17174 ;
17175 return 0;
17176}
17177_ACEOF
17178rm -f conftest.$ac_objext
17179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17180 (eval $ac_compile) 2>conftest.er1
a848cd7e 17181 ac_status=$?
ac1cb8d3
VS
17182 grep -v '^ *+' conftest.er1 >conftest.err
17183 rm -f conftest.er1
17184 cat conftest.err >&5
a848cd7e
SC
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
d25774ab
JS
17187 { ac_try='test -z "$ac_cxx_werror_flag"
17188 || test ! -s conftest.err'
ac1cb8d3
VS
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 ac_cv_c_const=yes
17201else
17202 echo "$as_me: failed program was:" >&5
17203sed 's/^/| /' conftest.$ac_ext >&5
17204
17205ac_cv_c_const=no
17206fi
ac1cb8d3 17207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17208fi
17209echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17210echo "${ECHO_T}$ac_cv_c_const" >&6
17211if test $ac_cv_c_const = no; then
17212
17213cat >>confdefs.h <<\_ACEOF
17214#define const
17215_ACEOF
17216
17217fi
17218
17219echo "$as_me:$LINENO: checking for inline" >&5
17220echo $ECHO_N "checking for inline... $ECHO_C" >&6
17221if test "${ac_cv_c_inline+set}" = set; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17223else
17224 ac_cv_c_inline=no
17225for ac_kw in inline __inline__ __inline; do
17226 cat >conftest.$ac_ext <<_ACEOF
17227/* confdefs.h. */
17228_ACEOF
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h. */
17232#ifndef __cplusplus
17233typedef int foo_t;
17234static $ac_kw foo_t static_foo () {return 0; }
17235$ac_kw foo_t foo () {return 0; }
17236#endif
17237
17238_ACEOF
17239rm -f conftest.$ac_objext
17240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17241 (eval $ac_compile) 2>conftest.er1
a848cd7e 17242 ac_status=$?
ac1cb8d3
VS
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
a848cd7e
SC
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
d25774ab
JS
17248 { ac_try='test -z "$ac_cxx_werror_flag"
17249 || test ! -s conftest.err'
ac1cb8d3
VS
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
17255 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 ac_cv_c_inline=$ac_kw; break
17262else
17263 echo "$as_me: failed program was:" >&5
17264sed 's/^/| /' conftest.$ac_ext >&5
17265
17266fi
ac1cb8d3 17267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17268done
17269
17270fi
17271echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17272echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17273
17274
a848cd7e
SC
17275case $ac_cv_c_inline in
17276 inline | yes) ;;
ac1cb8d3
VS
17277 *)
17278 case $ac_cv_c_inline in
17279 no) ac_val=;;
17280 *) ac_val=$ac_cv_c_inline;;
17281 esac
17282 cat >>confdefs.h <<_ACEOF
17283#ifndef __cplusplus
17284#define inline $ac_val
17285#endif
de59c161 17286_ACEOF
ac1cb8d3 17287 ;;
a848cd7e
SC
17288esac
17289
17290
17291echo "$as_me:$LINENO: checking for char" >&5
17292echo $ECHO_N "checking for char... $ECHO_C" >&6
17293if test "${ac_cv_type_char+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295else
17296 cat >conftest.$ac_ext <<_ACEOF
17297/* confdefs.h. */
17298_ACEOF
17299cat confdefs.h >>conftest.$ac_ext
17300cat >>conftest.$ac_ext <<_ACEOF
17301/* end confdefs.h. */
17302$ac_includes_default
17303int
17304main ()
17305{
17306if ((char *) 0)
17307 return 0;
17308if (sizeof (char))
17309 return 0;
17310 ;
17311 return 0;
17312}
17313_ACEOF
17314rm -f conftest.$ac_objext
17315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17316 (eval $ac_compile) 2>conftest.er1
a848cd7e 17317 ac_status=$?
ac1cb8d3
VS
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
a848cd7e
SC
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
d25774ab
JS
17323 { ac_try='test -z "$ac_cxx_werror_flag"
17324 || test ! -s conftest.err'
ac1cb8d3
VS
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_cv_type_char=yes
17337else
17338 echo "$as_me: failed program was:" >&5
17339sed 's/^/| /' conftest.$ac_ext >&5
17340
17341ac_cv_type_char=no
17342fi
ac1cb8d3 17343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17344fi
17345echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17346echo "${ECHO_T}$ac_cv_type_char" >&6
17347
17348echo "$as_me:$LINENO: checking size of char" >&5
17349echo $ECHO_N "checking size of char... $ECHO_C" >&6
17350if test "${ac_cv_sizeof_char+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17352else
17353 if test "$ac_cv_type_char" = yes; then
17354 # The cast to unsigned long works around a bug in the HP C Compiler
17355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17357 # This bug is HP SR number 8606223364.
17358 if test "$cross_compiling" = yes; then
17359 # Depending upon the size, compute the lo and hi bounds.
17360cat >conftest.$ac_ext <<_ACEOF
17361/* confdefs.h. */
17362_ACEOF
17363cat confdefs.h >>conftest.$ac_ext
17364cat >>conftest.$ac_ext <<_ACEOF
17365/* end confdefs.h. */
17366$ac_includes_default
17367int
17368main ()
17369{
17370static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17371test_array [0] = 0
17372
17373 ;
17374 return 0;
17375}
17376_ACEOF
17377rm -f conftest.$ac_objext
17378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17379 (eval $ac_compile) 2>conftest.er1
a848cd7e 17380 ac_status=$?
ac1cb8d3
VS
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
a848cd7e
SC
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
d25774ab
JS
17386 { ac_try='test -z "$ac_cxx_werror_flag"
17387 || test ! -s conftest.err'
ac1cb8d3
VS
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_lo=0 ac_mid=0
17400 while :; do
17401 cat >conftest.$ac_ext <<_ACEOF
17402/* confdefs.h. */
17403_ACEOF
17404cat confdefs.h >>conftest.$ac_ext
17405cat >>conftest.$ac_ext <<_ACEOF
17406/* end confdefs.h. */
17407$ac_includes_default
17408int
17409main ()
17410{
17411static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17412test_array [0] = 0
17413
17414 ;
17415 return 0;
17416}
17417_ACEOF
17418rm -f conftest.$ac_objext
17419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17420 (eval $ac_compile) 2>conftest.er1
a848cd7e 17421 ac_status=$?
ac1cb8d3
VS
17422 grep -v '^ *+' conftest.er1 >conftest.err
17423 rm -f conftest.er1
17424 cat conftest.err >&5
a848cd7e
SC
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } &&
d25774ab
JS
17427 { ac_try='test -z "$ac_cxx_werror_flag"
17428 || test ! -s conftest.err'
ac1cb8d3
VS
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; } &&
17434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; }; then
17440 ac_hi=$ac_mid; break
17441else
17442 echo "$as_me: failed program was:" >&5
17443sed 's/^/| /' conftest.$ac_ext >&5
17444
17445ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17446 if test $ac_lo -le $ac_mid; then
17447 ac_lo= ac_hi=
17448 break
17449 fi
17450 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17451fi
ac1cb8d3 17452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17453 done
17454else
17455 echo "$as_me: failed program was:" >&5
17456sed 's/^/| /' conftest.$ac_ext >&5
17457
17458cat >conftest.$ac_ext <<_ACEOF
17459/* confdefs.h. */
17460_ACEOF
17461cat confdefs.h >>conftest.$ac_ext
17462cat >>conftest.$ac_ext <<_ACEOF
17463/* end confdefs.h. */
17464$ac_includes_default
17465int
17466main ()
17467{
17468static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17469test_array [0] = 0
17470
17471 ;
17472 return 0;
17473}
17474_ACEOF
17475rm -f conftest.$ac_objext
17476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17477 (eval $ac_compile) 2>conftest.er1
a848cd7e 17478 ac_status=$?
ac1cb8d3
VS
17479 grep -v '^ *+' conftest.er1 >conftest.err
17480 rm -f conftest.er1
17481 cat conftest.err >&5
a848cd7e
SC
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } &&
d25774ab
JS
17484 { ac_try='test -z "$ac_cxx_werror_flag"
17485 || test ! -s conftest.err'
ac1cb8d3
VS
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; } &&
17491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 ac_hi=-1 ac_mid=-1
17498 while :; do
17499 cat >conftest.$ac_ext <<_ACEOF
17500/* confdefs.h. */
17501_ACEOF
17502cat confdefs.h >>conftest.$ac_ext
17503cat >>conftest.$ac_ext <<_ACEOF
17504/* end confdefs.h. */
17505$ac_includes_default
17506int
17507main ()
17508{
17509static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17510test_array [0] = 0
17511
17512 ;
17513 return 0;
17514}
17515_ACEOF
17516rm -f conftest.$ac_objext
17517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17518 (eval $ac_compile) 2>conftest.er1
a848cd7e 17519 ac_status=$?
ac1cb8d3
VS
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
a848cd7e
SC
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
d25774ab
JS
17525 { ac_try='test -z "$ac_cxx_werror_flag"
17526 || test ! -s conftest.err'
ac1cb8d3
VS
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_lo=$ac_mid; break
17539else
17540 echo "$as_me: failed program was:" >&5
17541sed 's/^/| /' conftest.$ac_ext >&5
17542
17543ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17544 if test $ac_mid -le $ac_hi; then
17545 ac_lo= ac_hi=
17546 break
17547 fi
17548 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17549fi
ac1cb8d3 17550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17551 done
17552else
17553 echo "$as_me: failed program was:" >&5
17554sed 's/^/| /' conftest.$ac_ext >&5
17555
17556ac_lo= ac_hi=
17557fi
ac1cb8d3 17558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17559fi
ac1cb8d3 17560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17561# Binary search between lo and hi bounds.
17562while test "x$ac_lo" != "x$ac_hi"; do
17563 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17564 cat >conftest.$ac_ext <<_ACEOF
17565/* confdefs.h. */
17566_ACEOF
17567cat confdefs.h >>conftest.$ac_ext
17568cat >>conftest.$ac_ext <<_ACEOF
17569/* end confdefs.h. */
17570$ac_includes_default
17571int
17572main ()
17573{
17574static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17575test_array [0] = 0
17576
17577 ;
17578 return 0;
17579}
17580_ACEOF
17581rm -f conftest.$ac_objext
17582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17583 (eval $ac_compile) 2>conftest.er1
a848cd7e 17584 ac_status=$?
ac1cb8d3
VS
17585 grep -v '^ *+' conftest.er1 >conftest.err
17586 rm -f conftest.er1
17587 cat conftest.err >&5
a848cd7e
SC
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } &&
d25774ab
JS
17590 { ac_try='test -z "$ac_cxx_werror_flag"
17591 || test ! -s conftest.err'
ac1cb8d3
VS
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; } &&
17597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 ac_hi=$ac_mid
17604else
17605 echo "$as_me: failed program was:" >&5
17606sed 's/^/| /' conftest.$ac_ext >&5
17607
17608ac_lo=`expr '(' $ac_mid ')' + 1`
17609fi
ac1cb8d3 17610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17611done
17612case $ac_lo in
17613?*) ac_cv_sizeof_char=$ac_lo;;
17614'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17615See \`config.log' for more details." >&5
17616echo "$as_me: error: cannot compute sizeof (char), 77
17617See \`config.log' for more details." >&2;}
17618 { (exit 1); exit 1; }; } ;;
17619esac
17620else
17621 if test "$cross_compiling" = yes; then
d25774ab
JS
17622 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17623See \`config.log' for more details." >&5
17624echo "$as_me: error: cannot run test program while cross compiling
17625See \`config.log' for more details." >&2;}
a848cd7e
SC
17626 { (exit 1); exit 1; }; }
17627else
17628 cat >conftest.$ac_ext <<_ACEOF
17629/* confdefs.h. */
17630_ACEOF
17631cat confdefs.h >>conftest.$ac_ext
17632cat >>conftest.$ac_ext <<_ACEOF
17633/* end confdefs.h. */
17634$ac_includes_default
17635long longval () { return (long) (sizeof (char)); }
17636unsigned long ulongval () { return (long) (sizeof (char)); }
17637#include <stdio.h>
17638#include <stdlib.h>
17639int
17640main ()
17641{
17642
17643 FILE *f = fopen ("conftest.val", "w");
17644 if (! f)
17645 exit (1);
17646 if (((long) (sizeof (char))) < 0)
17647 {
17648 long i = longval ();
17649 if (i != ((long) (sizeof (char))))
17650 exit (1);
17651 fprintf (f, "%ld\n", i);
17652 }
17653 else
17654 {
17655 unsigned long i = ulongval ();
17656 if (i != ((long) (sizeof (char))))
17657 exit (1);
17658 fprintf (f, "%lu\n", i);
17659 }
17660 exit (ferror (f) || fclose (f) != 0);
17661
17662 ;
17663 return 0;
17664}
17665_ACEOF
17666rm -f conftest$ac_exeext
17667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17668 (eval $ac_link) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673 (eval $ac_try) 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_cv_sizeof_char=`cat conftest.val`
17678else
17679 echo "$as_me: program exited with status $ac_status" >&5
17680echo "$as_me: failed program was:" >&5
17681sed 's/^/| /' conftest.$ac_ext >&5
17682
17683( exit $ac_status )
17684{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17685See \`config.log' for more details." >&5
17686echo "$as_me: error: cannot compute sizeof (char), 77
17687See \`config.log' for more details." >&2;}
17688 { (exit 1); exit 1; }; }
17689fi
ac1cb8d3 17690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17691fi
17692fi
17693rm -f conftest.val
17694else
17695 ac_cv_sizeof_char=0
17696fi
17697fi
17698echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17699echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17700cat >>confdefs.h <<_ACEOF
17701#define SIZEOF_CHAR $ac_cv_sizeof_char
17702_ACEOF
17703
17704
17705echo "$as_me:$LINENO: checking for short" >&5
17706echo $ECHO_N "checking for short... $ECHO_C" >&6
17707if test "${ac_cv_type_short+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17709else
17710 cat >conftest.$ac_ext <<_ACEOF
17711/* confdefs.h. */
17712_ACEOF
17713cat confdefs.h >>conftest.$ac_ext
17714cat >>conftest.$ac_ext <<_ACEOF
17715/* end confdefs.h. */
17716$ac_includes_default
17717int
17718main ()
17719{
17720if ((short *) 0)
17721 return 0;
17722if (sizeof (short))
17723 return 0;
17724 ;
17725 return 0;
17726}
17727_ACEOF
17728rm -f conftest.$ac_objext
17729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17730 (eval $ac_compile) 2>conftest.er1
a848cd7e 17731 ac_status=$?
ac1cb8d3
VS
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
a848cd7e
SC
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
d25774ab
JS
17737 { ac_try='test -z "$ac_cxx_werror_flag"
17738 || test ! -s conftest.err'
ac1cb8d3
VS
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750 ac_cv_type_short=yes
17751else
17752 echo "$as_me: failed program was:" >&5
17753sed 's/^/| /' conftest.$ac_ext >&5
17754
17755ac_cv_type_short=no
17756fi
ac1cb8d3 17757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17758fi
17759echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17760echo "${ECHO_T}$ac_cv_type_short" >&6
17761
17762echo "$as_me:$LINENO: checking size of short" >&5
17763echo $ECHO_N "checking size of short... $ECHO_C" >&6
17764if test "${ac_cv_sizeof_short+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17766else
17767 if test "$ac_cv_type_short" = yes; then
17768 # The cast to unsigned long works around a bug in the HP C Compiler
17769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17771 # This bug is HP SR number 8606223364.
17772 if test "$cross_compiling" = yes; then
17773 # Depending upon the size, compute the lo and hi bounds.
17774cat >conftest.$ac_ext <<_ACEOF
17775/* confdefs.h. */
17776_ACEOF
17777cat confdefs.h >>conftest.$ac_ext
17778cat >>conftest.$ac_ext <<_ACEOF
17779/* end confdefs.h. */
17780$ac_includes_default
17781int
17782main ()
17783{
17784static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17785test_array [0] = 0
17786
17787 ;
17788 return 0;
17789}
17790_ACEOF
17791rm -f conftest.$ac_objext
17792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17793 (eval $ac_compile) 2>conftest.er1
a848cd7e 17794 ac_status=$?
ac1cb8d3
VS
17795 grep -v '^ *+' conftest.er1 >conftest.err
17796 rm -f conftest.er1
17797 cat conftest.err >&5
a848cd7e
SC
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } &&
d25774ab
JS
17800 { ac_try='test -z "$ac_cxx_werror_flag"
17801 || test ! -s conftest.err'
ac1cb8d3
VS
17802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803 (eval $ac_try) 2>&5
17804 ac_status=$?
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; } &&
17807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; }; then
17813 ac_lo=0 ac_mid=0
17814 while :; do
17815 cat >conftest.$ac_ext <<_ACEOF
17816/* confdefs.h. */
17817_ACEOF
17818cat confdefs.h >>conftest.$ac_ext
17819cat >>conftest.$ac_ext <<_ACEOF
17820/* end confdefs.h. */
17821$ac_includes_default
17822int
17823main ()
17824{
17825static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17826test_array [0] = 0
17827
17828 ;
17829 return 0;
17830}
17831_ACEOF
17832rm -f conftest.$ac_objext
17833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17834 (eval $ac_compile) 2>conftest.er1
a848cd7e 17835 ac_status=$?
ac1cb8d3
VS
17836 grep -v '^ *+' conftest.er1 >conftest.err
17837 rm -f conftest.er1
17838 cat conftest.err >&5
a848cd7e
SC
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } &&
d25774ab
JS
17841 { ac_try='test -z "$ac_cxx_werror_flag"
17842 || 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=$ac_mid; break
17855else
17856 echo "$as_me: failed program was:" >&5
17857sed 's/^/| /' conftest.$ac_ext >&5
17858
17859ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17860 if test $ac_lo -le $ac_mid; then
17861 ac_lo= ac_hi=
17862 break
17863 fi
17864 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17865fi
ac1cb8d3 17866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17867 done
17868else
17869 echo "$as_me: failed program was:" >&5
17870sed 's/^/| /' conftest.$ac_ext >&5
17871
17872cat >conftest.$ac_ext <<_ACEOF
17873/* confdefs.h. */
17874_ACEOF
17875cat confdefs.h >>conftest.$ac_ext
17876cat >>conftest.$ac_ext <<_ACEOF
17877/* end confdefs.h. */
17878$ac_includes_default
17879int
17880main ()
17881{
17882static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17883test_array [0] = 0
17884
17885 ;
17886 return 0;
17887}
17888_ACEOF
17889rm -f conftest.$ac_objext
17890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17891 (eval $ac_compile) 2>conftest.er1
a848cd7e 17892 ac_status=$?
ac1cb8d3
VS
17893 grep -v '^ *+' conftest.er1 >conftest.err
17894 rm -f conftest.er1
17895 cat conftest.err >&5
a848cd7e
SC
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } &&
d25774ab
JS
17898 { ac_try='test -z "$ac_cxx_werror_flag"
17899 || test ! -s conftest.err'
ac1cb8d3
VS
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; } &&
17905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17908 ac_status=$?
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; }; then
17911 ac_hi=-1 ac_mid=-1
17912 while :; do
17913 cat >conftest.$ac_ext <<_ACEOF
17914/* confdefs.h. */
17915_ACEOF
17916cat confdefs.h >>conftest.$ac_ext
17917cat >>conftest.$ac_ext <<_ACEOF
17918/* end confdefs.h. */
17919$ac_includes_default
17920int
17921main ()
17922{
17923static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17924test_array [0] = 0
17925
17926 ;
17927 return 0;
17928}
17929_ACEOF
17930rm -f conftest.$ac_objext
17931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17932 (eval $ac_compile) 2>conftest.er1
a848cd7e 17933 ac_status=$?
ac1cb8d3
VS
17934 grep -v '^ *+' conftest.er1 >conftest.err
17935 rm -f conftest.er1
17936 cat conftest.err >&5
a848cd7e
SC
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
d25774ab
JS
17939 { ac_try='test -z "$ac_cxx_werror_flag"
17940 || test ! -s conftest.err'
ac1cb8d3
VS
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17952 ac_lo=$ac_mid; break
17953else
17954 echo "$as_me: failed program was:" >&5
17955sed 's/^/| /' conftest.$ac_ext >&5
17956
17957ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17958 if test $ac_mid -le $ac_hi; then
17959 ac_lo= ac_hi=
17960 break
17961 fi
17962 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17963fi
ac1cb8d3 17964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17965 done
17966else
17967 echo "$as_me: failed program was:" >&5
17968sed 's/^/| /' conftest.$ac_ext >&5
17969
17970ac_lo= ac_hi=
17971fi
ac1cb8d3 17972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17973fi
ac1cb8d3 17974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17975# Binary search between lo and hi bounds.
17976while test "x$ac_lo" != "x$ac_hi"; do
17977 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17978 cat >conftest.$ac_ext <<_ACEOF
17979/* confdefs.h. */
17980_ACEOF
17981cat confdefs.h >>conftest.$ac_ext
17982cat >>conftest.$ac_ext <<_ACEOF
17983/* end confdefs.h. */
17984$ac_includes_default
17985int
17986main ()
17987{
17988static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17989test_array [0] = 0
17990
17991 ;
17992 return 0;
17993}
17994_ACEOF
17995rm -f conftest.$ac_objext
17996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17997 (eval $ac_compile) 2>conftest.er1
a848cd7e 17998 ac_status=$?
ac1cb8d3
VS
17999 grep -v '^ *+' conftest.er1 >conftest.err
18000 rm -f conftest.er1
18001 cat conftest.err >&5
a848cd7e
SC
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } &&
d25774ab
JS
18004 { ac_try='test -z "$ac_cxx_werror_flag"
18005 || test ! -s conftest.err'
ac1cb8d3
VS
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_hi=$ac_mid
18018else
18019 echo "$as_me: failed program was:" >&5
18020sed 's/^/| /' conftest.$ac_ext >&5
18021
18022ac_lo=`expr '(' $ac_mid ')' + 1`
18023fi
ac1cb8d3 18024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18025done
18026case $ac_lo in
18027?*) ac_cv_sizeof_short=$ac_lo;;
18028'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18029See \`config.log' for more details." >&5
18030echo "$as_me: error: cannot compute sizeof (short), 77
18031See \`config.log' for more details." >&2;}
18032 { (exit 1); exit 1; }; } ;;
18033esac
18034else
18035 if test "$cross_compiling" = yes; then
d25774ab
JS
18036 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18037See \`config.log' for more details." >&5
18038echo "$as_me: error: cannot run test program while cross compiling
18039See \`config.log' for more details." >&2;}
a848cd7e
SC
18040 { (exit 1); exit 1; }; }
18041else
18042 cat >conftest.$ac_ext <<_ACEOF
18043/* confdefs.h. */
18044_ACEOF
18045cat confdefs.h >>conftest.$ac_ext
18046cat >>conftest.$ac_ext <<_ACEOF
18047/* end confdefs.h. */
18048$ac_includes_default
18049long longval () { return (long) (sizeof (short)); }
18050unsigned long ulongval () { return (long) (sizeof (short)); }
18051#include <stdio.h>
18052#include <stdlib.h>
18053int
18054main ()
18055{
18056
18057 FILE *f = fopen ("conftest.val", "w");
18058 if (! f)
18059 exit (1);
18060 if (((long) (sizeof (short))) < 0)
18061 {
18062 long i = longval ();
18063 if (i != ((long) (sizeof (short))))
18064 exit (1);
18065 fprintf (f, "%ld\n", i);
18066 }
18067 else
18068 {
18069 unsigned long i = ulongval ();
18070 if (i != ((long) (sizeof (short))))
18071 exit (1);
18072 fprintf (f, "%lu\n", i);
18073 }
18074 exit (ferror (f) || fclose (f) != 0);
18075
18076 ;
18077 return 0;
18078}
18079_ACEOF
18080rm -f conftest$ac_exeext
18081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082 (eval $ac_link) 2>&5
18083 ac_status=$?
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 ac_cv_sizeof_short=`cat conftest.val`
18092else
18093 echo "$as_me: program exited with status $ac_status" >&5
18094echo "$as_me: failed program was:" >&5
18095sed 's/^/| /' conftest.$ac_ext >&5
18096
18097( exit $ac_status )
18098{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18099See \`config.log' for more details." >&5
18100echo "$as_me: error: cannot compute sizeof (short), 77
18101See \`config.log' for more details." >&2;}
18102 { (exit 1); exit 1; }; }
18103fi
ac1cb8d3 18104rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18105fi
18106fi
18107rm -f conftest.val
18108else
18109 ac_cv_sizeof_short=0
18110fi
18111fi
18112echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18113echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18114cat >>confdefs.h <<_ACEOF
18115#define SIZEOF_SHORT $ac_cv_sizeof_short
18116_ACEOF
18117
18118
18119echo "$as_me:$LINENO: checking for void *" >&5
18120echo $ECHO_N "checking for void *... $ECHO_C" >&6
18121if test "${ac_cv_type_void_p+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18123else
18124 cat >conftest.$ac_ext <<_ACEOF
18125/* confdefs.h. */
18126_ACEOF
18127cat confdefs.h >>conftest.$ac_ext
18128cat >>conftest.$ac_ext <<_ACEOF
18129/* end confdefs.h. */
18130$ac_includes_default
18131int
18132main ()
18133{
18134if ((void * *) 0)
18135 return 0;
18136if (sizeof (void *))
18137 return 0;
18138 ;
18139 return 0;
18140}
18141_ACEOF
18142rm -f conftest.$ac_objext
18143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18144 (eval $ac_compile) 2>conftest.er1
a848cd7e 18145 ac_status=$?
ac1cb8d3
VS
18146 grep -v '^ *+' conftest.er1 >conftest.err
18147 rm -f conftest.er1
18148 cat conftest.err >&5
a848cd7e
SC
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } &&
d25774ab
JS
18151 { ac_try='test -z "$ac_cxx_werror_flag"
18152 || 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_cv_type_void_p=yes
18165else
18166 echo "$as_me: failed program was:" >&5
18167sed 's/^/| /' conftest.$ac_ext >&5
18168
18169ac_cv_type_void_p=no
18170fi
ac1cb8d3 18171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18172fi
18173echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18174echo "${ECHO_T}$ac_cv_type_void_p" >&6
18175
18176echo "$as_me:$LINENO: checking size of void *" >&5
18177echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18178if test "${ac_cv_sizeof_void_p+set}" = set; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18180else
18181 if test "$ac_cv_type_void_p" = yes; then
18182 # The cast to unsigned long works around a bug in the HP C Compiler
18183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18185 # This bug is HP SR number 8606223364.
18186 if test "$cross_compiling" = yes; then
18187 # Depending upon the size, compute the lo and hi bounds.
18188cat >conftest.$ac_ext <<_ACEOF
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
18194$ac_includes_default
18195int
18196main ()
18197{
18198static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18199test_array [0] = 0
18200
18201 ;
18202 return 0;
18203}
18204_ACEOF
18205rm -f conftest.$ac_objext
18206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18207 (eval $ac_compile) 2>conftest.er1
a848cd7e 18208 ac_status=$?
ac1cb8d3
VS
18209 grep -v '^ *+' conftest.er1 >conftest.err
18210 rm -f conftest.er1
18211 cat conftest.err >&5
a848cd7e
SC
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } &&
d25774ab
JS
18214 { ac_try='test -z "$ac_cxx_werror_flag"
18215 || test ! -s conftest.err'
ac1cb8d3
VS
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; } &&
18221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
18227 ac_lo=0 ac_mid=0
18228 while :; do
18229 cat >conftest.$ac_ext <<_ACEOF
18230/* confdefs.h. */
18231_ACEOF
18232cat confdefs.h >>conftest.$ac_ext
18233cat >>conftest.$ac_ext <<_ACEOF
18234/* end confdefs.h. */
18235$ac_includes_default
18236int
18237main ()
18238{
18239static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18240test_array [0] = 0
18241
18242 ;
18243 return 0;
18244}
18245_ACEOF
18246rm -f conftest.$ac_objext
18247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18248 (eval $ac_compile) 2>conftest.er1
a848cd7e 18249 ac_status=$?
ac1cb8d3
VS
18250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -f conftest.er1
18252 cat conftest.err >&5
a848cd7e
SC
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
d25774ab
JS
18255 { ac_try='test -z "$ac_cxx_werror_flag"
18256 || test ! -s conftest.err'
ac1cb8d3
VS
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 ac_hi=$ac_mid; break
18269else
18270 echo "$as_me: failed program was:" >&5
18271sed 's/^/| /' conftest.$ac_ext >&5
18272
18273ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18274 if test $ac_lo -le $ac_mid; then
18275 ac_lo= ac_hi=
18276 break
18277 fi
18278 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18279fi
ac1cb8d3 18280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18281 done
18282else
18283 echo "$as_me: failed program was:" >&5
18284sed 's/^/| /' conftest.$ac_ext >&5
18285
18286cat >conftest.$ac_ext <<_ACEOF
18287/* confdefs.h. */
18288_ACEOF
18289cat confdefs.h >>conftest.$ac_ext
18290cat >>conftest.$ac_ext <<_ACEOF
18291/* end confdefs.h. */
18292$ac_includes_default
18293int
18294main ()
18295{
18296static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18297test_array [0] = 0
18298
18299 ;
18300 return 0;
18301}
18302_ACEOF
18303rm -f conftest.$ac_objext
18304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18305 (eval $ac_compile) 2>conftest.er1
a848cd7e 18306 ac_status=$?
ac1cb8d3
VS
18307 grep -v '^ *+' conftest.er1 >conftest.err
18308 rm -f conftest.er1
18309 cat conftest.err >&5
a848cd7e
SC
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
d25774ab
JS
18312 { ac_try='test -z "$ac_cxx_werror_flag"
18313 || test ! -s conftest.err'
ac1cb8d3
VS
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18322 ac_status=$?
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; }; then
18325 ac_hi=-1 ac_mid=-1
18326 while :; do
18327 cat >conftest.$ac_ext <<_ACEOF
18328/* confdefs.h. */
18329_ACEOF
18330cat confdefs.h >>conftest.$ac_ext
18331cat >>conftest.$ac_ext <<_ACEOF
18332/* end confdefs.h. */
18333$ac_includes_default
18334int
18335main ()
18336{
18337static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18338test_array [0] = 0
18339
18340 ;
18341 return 0;
18342}
18343_ACEOF
18344rm -f conftest.$ac_objext
18345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18346 (eval $ac_compile) 2>conftest.er1
a848cd7e 18347 ac_status=$?
ac1cb8d3
VS
18348 grep -v '^ *+' conftest.er1 >conftest.err
18349 rm -f conftest.er1
18350 cat conftest.err >&5
a848cd7e
SC
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } &&
d25774ab
JS
18353 { ac_try='test -z "$ac_cxx_werror_flag"
18354 || test ! -s conftest.err'
ac1cb8d3
VS
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; } &&
18360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18366 ac_lo=$ac_mid; break
18367else
18368 echo "$as_me: failed program was:" >&5
18369sed 's/^/| /' conftest.$ac_ext >&5
18370
18371ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18372 if test $ac_mid -le $ac_hi; then
18373 ac_lo= ac_hi=
18374 break
18375 fi
18376 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18377fi
ac1cb8d3 18378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18379 done
18380else
18381 echo "$as_me: failed program was:" >&5
18382sed 's/^/| /' conftest.$ac_ext >&5
18383
18384ac_lo= ac_hi=
18385fi
ac1cb8d3 18386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18387fi
ac1cb8d3 18388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18389# Binary search between lo and hi bounds.
18390while test "x$ac_lo" != "x$ac_hi"; do
18391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18392 cat >conftest.$ac_ext <<_ACEOF
18393/* confdefs.h. */
18394_ACEOF
18395cat confdefs.h >>conftest.$ac_ext
18396cat >>conftest.$ac_ext <<_ACEOF
18397/* end confdefs.h. */
18398$ac_includes_default
18399int
18400main ()
18401{
18402static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18403test_array [0] = 0
18404
18405 ;
18406 return 0;
18407}
18408_ACEOF
18409rm -f conftest.$ac_objext
18410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18411 (eval $ac_compile) 2>conftest.er1
a848cd7e 18412 ac_status=$?
ac1cb8d3
VS
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
a848cd7e
SC
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } &&
d25774ab
JS
18418 { ac_try='test -z "$ac_cxx_werror_flag"
18419 || test ! -s conftest.err'
ac1cb8d3
VS
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; } &&
18425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 ac_hi=$ac_mid
18432else
18433 echo "$as_me: failed program was:" >&5
18434sed 's/^/| /' conftest.$ac_ext >&5
18435
18436ac_lo=`expr '(' $ac_mid ')' + 1`
18437fi
ac1cb8d3 18438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18439done
18440case $ac_lo in
18441?*) ac_cv_sizeof_void_p=$ac_lo;;
18442'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18443See \`config.log' for more details." >&5
18444echo "$as_me: error: cannot compute sizeof (void *), 77
18445See \`config.log' for more details." >&2;}
18446 { (exit 1); exit 1; }; } ;;
18447esac
18448else
18449 if test "$cross_compiling" = yes; then
d25774ab
JS
18450 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18451See \`config.log' for more details." >&5
18452echo "$as_me: error: cannot run test program while cross compiling
18453See \`config.log' for more details." >&2;}
a848cd7e
SC
18454 { (exit 1); exit 1; }; }
18455else
18456 cat >conftest.$ac_ext <<_ACEOF
18457/* confdefs.h. */
18458_ACEOF
18459cat confdefs.h >>conftest.$ac_ext
18460cat >>conftest.$ac_ext <<_ACEOF
18461/* end confdefs.h. */
18462$ac_includes_default
18463long longval () { return (long) (sizeof (void *)); }
18464unsigned long ulongval () { return (long) (sizeof (void *)); }
18465#include <stdio.h>
18466#include <stdlib.h>
18467int
18468main ()
18469{
18470
18471 FILE *f = fopen ("conftest.val", "w");
18472 if (! f)
18473 exit (1);
18474 if (((long) (sizeof (void *))) < 0)
18475 {
18476 long i = longval ();
18477 if (i != ((long) (sizeof (void *))))
18478 exit (1);
18479 fprintf (f, "%ld\n", i);
18480 }
18481 else
18482 {
18483 unsigned long i = ulongval ();
18484 if (i != ((long) (sizeof (void *))))
18485 exit (1);
18486 fprintf (f, "%lu\n", i);
18487 }
18488 exit (ferror (f) || fclose (f) != 0);
18489
18490 ;
18491 return 0;
18492}
18493_ACEOF
18494rm -f conftest$ac_exeext
18495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18496 (eval $ac_link) 2>&5
18497 ac_status=$?
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18502 ac_status=$?
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505 ac_cv_sizeof_void_p=`cat conftest.val`
18506else
18507 echo "$as_me: program exited with status $ac_status" >&5
18508echo "$as_me: failed program was:" >&5
18509sed 's/^/| /' conftest.$ac_ext >&5
18510
18511( exit $ac_status )
18512{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18513See \`config.log' for more details." >&5
18514echo "$as_me: error: cannot compute sizeof (void *), 77
18515See \`config.log' for more details." >&2;}
18516 { (exit 1); exit 1; }; }
18517fi
ac1cb8d3 18518rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18519fi
18520fi
18521rm -f conftest.val
18522else
18523 ac_cv_sizeof_void_p=0
18524fi
18525fi
18526echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18527echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18528cat >>confdefs.h <<_ACEOF
18529#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18530_ACEOF
18531
18532
18533echo "$as_me:$LINENO: checking for int" >&5
18534echo $ECHO_N "checking for int... $ECHO_C" >&6
18535if test "${ac_cv_type_int+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18537else
18538 cat >conftest.$ac_ext <<_ACEOF
18539/* confdefs.h. */
18540_ACEOF
18541cat confdefs.h >>conftest.$ac_ext
18542cat >>conftest.$ac_ext <<_ACEOF
18543/* end confdefs.h. */
18544$ac_includes_default
18545int
18546main ()
18547{
18548if ((int *) 0)
18549 return 0;
18550if (sizeof (int))
18551 return 0;
18552 ;
18553 return 0;
18554}
18555_ACEOF
18556rm -f conftest.$ac_objext
18557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18558 (eval $ac_compile) 2>conftest.er1
a848cd7e 18559 ac_status=$?
ac1cb8d3
VS
18560 grep -v '^ *+' conftest.er1 >conftest.err
18561 rm -f conftest.er1
18562 cat conftest.err >&5
a848cd7e
SC
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } &&
d25774ab
JS
18565 { ac_try='test -z "$ac_cxx_werror_flag"
18566 || test ! -s conftest.err'
ac1cb8d3
VS
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_cv_type_int=yes
18579else
18580 echo "$as_me: failed program was:" >&5
18581sed 's/^/| /' conftest.$ac_ext >&5
18582
18583ac_cv_type_int=no
18584fi
ac1cb8d3 18585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18586fi
18587echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18588echo "${ECHO_T}$ac_cv_type_int" >&6
18589
18590echo "$as_me:$LINENO: checking size of int" >&5
18591echo $ECHO_N "checking size of int... $ECHO_C" >&6
18592if test "${ac_cv_sizeof_int+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594else
18595 if test "$ac_cv_type_int" = yes; then
18596 # The cast to unsigned long works around a bug in the HP C Compiler
18597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18599 # This bug is HP SR number 8606223364.
18600 if test "$cross_compiling" = yes; then
18601 # Depending upon the size, compute the lo and hi bounds.
18602cat >conftest.$ac_ext <<_ACEOF
18603/* confdefs.h. */
18604_ACEOF
18605cat confdefs.h >>conftest.$ac_ext
18606cat >>conftest.$ac_ext <<_ACEOF
18607/* end confdefs.h. */
18608$ac_includes_default
18609int
18610main ()
18611{
18612static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18613test_array [0] = 0
18614
18615 ;
18616 return 0;
18617}
18618_ACEOF
18619rm -f conftest.$ac_objext
18620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18621 (eval $ac_compile) 2>conftest.er1
a848cd7e 18622 ac_status=$?
ac1cb8d3
VS
18623 grep -v '^ *+' conftest.er1 >conftest.err
18624 rm -f conftest.er1
18625 cat conftest.err >&5
a848cd7e
SC
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } &&
d25774ab
JS
18628 { ac_try='test -z "$ac_cxx_werror_flag"
18629 || test ! -s conftest.err'
ac1cb8d3
VS
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 ac_lo=0 ac_mid=0
18642 while :; do
18643 cat >conftest.$ac_ext <<_ACEOF
18644/* confdefs.h. */
18645_ACEOF
18646cat confdefs.h >>conftest.$ac_ext
18647cat >>conftest.$ac_ext <<_ACEOF
18648/* end confdefs.h. */
18649$ac_includes_default
18650int
18651main ()
18652{
18653static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18654test_array [0] = 0
18655
18656 ;
18657 return 0;
18658}
18659_ACEOF
18660rm -f conftest.$ac_objext
18661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18662 (eval $ac_compile) 2>conftest.er1
a848cd7e 18663 ac_status=$?
ac1cb8d3
VS
18664 grep -v '^ *+' conftest.er1 >conftest.err
18665 rm -f conftest.er1
18666 cat conftest.err >&5
a848cd7e
SC
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } &&
d25774ab
JS
18669 { ac_try='test -z "$ac_cxx_werror_flag"
18670 || test ! -s conftest.err'
ac1cb8d3
VS
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18679 ac_status=$?
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; }; then
18682 ac_hi=$ac_mid; break
18683else
18684 echo "$as_me: failed program was:" >&5
18685sed 's/^/| /' conftest.$ac_ext >&5
18686
18687ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18688 if test $ac_lo -le $ac_mid; then
18689 ac_lo= ac_hi=
18690 break
18691 fi
18692 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18693fi
ac1cb8d3 18694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18695 done
18696else
18697 echo "$as_me: failed program was:" >&5
18698sed 's/^/| /' conftest.$ac_ext >&5
18699
18700cat >conftest.$ac_ext <<_ACEOF
18701/* confdefs.h. */
18702_ACEOF
18703cat confdefs.h >>conftest.$ac_ext
18704cat >>conftest.$ac_ext <<_ACEOF
18705/* end confdefs.h. */
18706$ac_includes_default
18707int
18708main ()
18709{
18710static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18711test_array [0] = 0
18712
18713 ;
18714 return 0;
18715}
18716_ACEOF
18717rm -f conftest.$ac_objext
18718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18719 (eval $ac_compile) 2>conftest.er1
a848cd7e 18720 ac_status=$?
ac1cb8d3
VS
18721 grep -v '^ *+' conftest.er1 >conftest.err
18722 rm -f conftest.er1
18723 cat conftest.err >&5
a848cd7e
SC
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
d25774ab
JS
18726 { ac_try='test -z "$ac_cxx_werror_flag"
18727 || test ! -s conftest.err'
ac1cb8d3
VS
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; } &&
18733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_hi=-1 ac_mid=-1
18740 while :; do
18741 cat >conftest.$ac_ext <<_ACEOF
18742/* confdefs.h. */
18743_ACEOF
18744cat confdefs.h >>conftest.$ac_ext
18745cat >>conftest.$ac_ext <<_ACEOF
18746/* end confdefs.h. */
18747$ac_includes_default
18748int
18749main ()
18750{
18751static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18752test_array [0] = 0
18753
18754 ;
18755 return 0;
18756}
18757_ACEOF
18758rm -f conftest.$ac_objext
18759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18760 (eval $ac_compile) 2>conftest.er1
a848cd7e 18761 ac_status=$?
ac1cb8d3
VS
18762 grep -v '^ *+' conftest.er1 >conftest.err
18763 rm -f conftest.er1
18764 cat conftest.err >&5
a848cd7e
SC
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } &&
d25774ab
JS
18767 { ac_try='test -z "$ac_cxx_werror_flag"
18768 || test ! -s conftest.err'
ac1cb8d3
VS
18769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18771 ac_status=$?
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; } &&
18774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776 (eval $ac_try) 2>&5
18777 ac_status=$?
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; }; then
18780 ac_lo=$ac_mid; break
18781else
18782 echo "$as_me: failed program was:" >&5
18783sed 's/^/| /' conftest.$ac_ext >&5
18784
18785ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18786 if test $ac_mid -le $ac_hi; then
18787 ac_lo= ac_hi=
18788 break
18789 fi
18790 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18791fi
ac1cb8d3 18792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18793 done
18794else
18795 echo "$as_me: failed program was:" >&5
18796sed 's/^/| /' conftest.$ac_ext >&5
18797
18798ac_lo= ac_hi=
18799fi
ac1cb8d3 18800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18801fi
ac1cb8d3 18802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18803# Binary search between lo and hi bounds.
18804while test "x$ac_lo" != "x$ac_hi"; do
18805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18806 cat >conftest.$ac_ext <<_ACEOF
18807/* confdefs.h. */
18808_ACEOF
18809cat confdefs.h >>conftest.$ac_ext
18810cat >>conftest.$ac_ext <<_ACEOF
18811/* end confdefs.h. */
18812$ac_includes_default
18813int
18814main ()
18815{
18816static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18817test_array [0] = 0
18818
18819 ;
18820 return 0;
18821}
18822_ACEOF
18823rm -f conftest.$ac_objext
18824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18825 (eval $ac_compile) 2>conftest.er1
a848cd7e 18826 ac_status=$?
ac1cb8d3
VS
18827 grep -v '^ *+' conftest.er1 >conftest.err
18828 rm -f conftest.er1
18829 cat conftest.err >&5
a848cd7e
SC
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } &&
d25774ab
JS
18832 { ac_try='test -z "$ac_cxx_werror_flag"
18833 || test ! -s conftest.err'
ac1cb8d3
VS
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18836 ac_status=$?
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; } &&
18839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; }; then
18845 ac_hi=$ac_mid
18846else
18847 echo "$as_me: failed program was:" >&5
18848sed 's/^/| /' conftest.$ac_ext >&5
18849
18850ac_lo=`expr '(' $ac_mid ')' + 1`
18851fi
ac1cb8d3 18852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18853done
18854case $ac_lo in
18855?*) ac_cv_sizeof_int=$ac_lo;;
18856'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18857See \`config.log' for more details." >&5
18858echo "$as_me: error: cannot compute sizeof (int), 77
18859See \`config.log' for more details." >&2;}
18860 { (exit 1); exit 1; }; } ;;
18861esac
18862else
18863 if test "$cross_compiling" = yes; then
d25774ab
JS
18864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18865See \`config.log' for more details." >&5
18866echo "$as_me: error: cannot run test program while cross compiling
18867See \`config.log' for more details." >&2;}
a848cd7e
SC
18868 { (exit 1); exit 1; }; }
18869else
18870 cat >conftest.$ac_ext <<_ACEOF
18871/* confdefs.h. */
18872_ACEOF
18873cat confdefs.h >>conftest.$ac_ext
18874cat >>conftest.$ac_ext <<_ACEOF
18875/* end confdefs.h. */
18876$ac_includes_default
18877long longval () { return (long) (sizeof (int)); }
18878unsigned long ulongval () { return (long) (sizeof (int)); }
18879#include <stdio.h>
18880#include <stdlib.h>
18881int
18882main ()
18883{
18884
18885 FILE *f = fopen ("conftest.val", "w");
18886 if (! f)
18887 exit (1);
18888 if (((long) (sizeof (int))) < 0)
18889 {
18890 long i = longval ();
18891 if (i != ((long) (sizeof (int))))
18892 exit (1);
18893 fprintf (f, "%ld\n", i);
18894 }
18895 else
18896 {
18897 unsigned long i = ulongval ();
18898 if (i != ((long) (sizeof (int))))
18899 exit (1);
18900 fprintf (f, "%lu\n", i);
18901 }
18902 exit (ferror (f) || fclose (f) != 0);
18903
18904 ;
18905 return 0;
18906}
18907_ACEOF
18908rm -f conftest$ac_exeext
18909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18910 (eval $ac_link) 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 ac_cv_sizeof_int=`cat conftest.val`
18920else
18921 echo "$as_me: program exited with status $ac_status" >&5
18922echo "$as_me: failed program was:" >&5
18923sed 's/^/| /' conftest.$ac_ext >&5
18924
18925( exit $ac_status )
18926{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18927See \`config.log' for more details." >&5
18928echo "$as_me: error: cannot compute sizeof (int), 77
18929See \`config.log' for more details." >&2;}
18930 { (exit 1); exit 1; }; }
18931fi
ac1cb8d3 18932rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18933fi
18934fi
18935rm -f conftest.val
18936else
18937 ac_cv_sizeof_int=0
18938fi
18939fi
18940echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18941echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18942cat >>confdefs.h <<_ACEOF
18943#define SIZEOF_INT $ac_cv_sizeof_int
18944_ACEOF
18945
18946
18947echo "$as_me:$LINENO: checking for long" >&5
18948echo $ECHO_N "checking for long... $ECHO_C" >&6
18949if test "${ac_cv_type_long+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18951else
18952 cat >conftest.$ac_ext <<_ACEOF
18953/* confdefs.h. */
18954_ACEOF
18955cat confdefs.h >>conftest.$ac_ext
18956cat >>conftest.$ac_ext <<_ACEOF
18957/* end confdefs.h. */
18958$ac_includes_default
18959int
18960main ()
18961{
18962if ((long *) 0)
18963 return 0;
18964if (sizeof (long))
18965 return 0;
18966 ;
18967 return 0;
18968}
18969_ACEOF
18970rm -f conftest.$ac_objext
18971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18972 (eval $ac_compile) 2>conftest.er1
a848cd7e 18973 ac_status=$?
ac1cb8d3
VS
18974 grep -v '^ *+' conftest.er1 >conftest.err
18975 rm -f conftest.er1
18976 cat conftest.err >&5
a848cd7e
SC
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); } &&
d25774ab
JS
18979 { ac_try='test -z "$ac_cxx_werror_flag"
18980 || test ! -s conftest.err'
ac1cb8d3
VS
18981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18983 ac_status=$?
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; } &&
18986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; }; then
18992 ac_cv_type_long=yes
18993else
18994 echo "$as_me: failed program was:" >&5
18995sed 's/^/| /' conftest.$ac_ext >&5
18996
18997ac_cv_type_long=no
18998fi
ac1cb8d3 18999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19000fi
19001echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19002echo "${ECHO_T}$ac_cv_type_long" >&6
19003
19004echo "$as_me:$LINENO: checking size of long" >&5
19005echo $ECHO_N "checking size of long... $ECHO_C" >&6
19006if test "${ac_cv_sizeof_long+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008else
19009 if test "$ac_cv_type_long" = yes; then
19010 # The cast to unsigned long works around a bug in the HP C Compiler
19011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19013 # This bug is HP SR number 8606223364.
19014 if test "$cross_compiling" = yes; then
19015 # Depending upon the size, compute the lo and hi bounds.
19016cat >conftest.$ac_ext <<_ACEOF
19017/* confdefs.h. */
19018_ACEOF
19019cat confdefs.h >>conftest.$ac_ext
19020cat >>conftest.$ac_ext <<_ACEOF
19021/* end confdefs.h. */
19022$ac_includes_default
19023int
19024main ()
19025{
19026static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19027test_array [0] = 0
19028
19029 ;
19030 return 0;
19031}
19032_ACEOF
19033rm -f conftest.$ac_objext
19034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19035 (eval $ac_compile) 2>conftest.er1
a848cd7e 19036 ac_status=$?
ac1cb8d3
VS
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
a848cd7e
SC
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
d25774ab
JS
19042 { ac_try='test -z "$ac_cxx_werror_flag"
19043 || test ! -s conftest.err'
ac1cb8d3
VS
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; } &&
19049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051 (eval $ac_try) 2>&5
19052 ac_status=$?
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; }; then
19055 ac_lo=0 ac_mid=0
19056 while :; do
19057 cat >conftest.$ac_ext <<_ACEOF
19058/* confdefs.h. */
19059_ACEOF
19060cat confdefs.h >>conftest.$ac_ext
19061cat >>conftest.$ac_ext <<_ACEOF
19062/* end confdefs.h. */
19063$ac_includes_default
19064int
19065main ()
19066{
19067static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19068test_array [0] = 0
19069
19070 ;
19071 return 0;
19072}
19073_ACEOF
19074rm -f conftest.$ac_objext
19075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19076 (eval $ac_compile) 2>conftest.er1
a848cd7e 19077 ac_status=$?
ac1cb8d3
VS
19078 grep -v '^ *+' conftest.er1 >conftest.err
19079 rm -f conftest.er1
19080 cat conftest.err >&5
a848cd7e
SC
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } &&
d25774ab
JS
19083 { ac_try='test -z "$ac_cxx_werror_flag"
19084 || test ! -s conftest.err'
ac1cb8d3
VS
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; } &&
19090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 (eval $ac_try) 2>&5
19093 ac_status=$?
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; }; then
19096 ac_hi=$ac_mid; break
19097else
19098 echo "$as_me: failed program was:" >&5
19099sed 's/^/| /' conftest.$ac_ext >&5
19100
19101ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19102 if test $ac_lo -le $ac_mid; then
19103 ac_lo= ac_hi=
19104 break
19105 fi
19106 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19107fi
ac1cb8d3 19108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19109 done
19110else
19111 echo "$as_me: failed program was:" >&5
19112sed 's/^/| /' conftest.$ac_ext >&5
19113
19114cat >conftest.$ac_ext <<_ACEOF
19115/* confdefs.h. */
19116_ACEOF
19117cat confdefs.h >>conftest.$ac_ext
19118cat >>conftest.$ac_ext <<_ACEOF
19119/* end confdefs.h. */
19120$ac_includes_default
19121int
19122main ()
19123{
19124static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19125test_array [0] = 0
19126
19127 ;
19128 return 0;
19129}
19130_ACEOF
19131rm -f conftest.$ac_objext
19132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19133 (eval $ac_compile) 2>conftest.er1
a848cd7e 19134 ac_status=$?
ac1cb8d3
VS
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
a848cd7e
SC
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
d25774ab
JS
19140 { ac_try='test -z "$ac_cxx_werror_flag"
19141 || test ! -s conftest.err'
ac1cb8d3
VS
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; } &&
19147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_hi=-1 ac_mid=-1
19154 while :; do
19155 cat >conftest.$ac_ext <<_ACEOF
19156/* confdefs.h. */
19157_ACEOF
19158cat confdefs.h >>conftest.$ac_ext
19159cat >>conftest.$ac_ext <<_ACEOF
19160/* end confdefs.h. */
19161$ac_includes_default
19162int
19163main ()
19164{
19165static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19166test_array [0] = 0
19167
19168 ;
19169 return 0;
19170}
19171_ACEOF
19172rm -f conftest.$ac_objext
19173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19174 (eval $ac_compile) 2>conftest.er1
a848cd7e 19175 ac_status=$?
ac1cb8d3
VS
19176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
a848cd7e
SC
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
d25774ab
JS
19181 { ac_try='test -z "$ac_cxx_werror_flag"
19182 || test ! -s conftest.err'
ac1cb8d3
VS
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 ac_lo=$ac_mid; break
19195else
19196 echo "$as_me: failed program was:" >&5
19197sed 's/^/| /' conftest.$ac_ext >&5
19198
19199ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19200 if test $ac_mid -le $ac_hi; then
19201 ac_lo= ac_hi=
19202 break
19203 fi
19204 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19205fi
ac1cb8d3 19206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19207 done
19208else
19209 echo "$as_me: failed program was:" >&5
19210sed 's/^/| /' conftest.$ac_ext >&5
19211
19212ac_lo= ac_hi=
19213fi
ac1cb8d3 19214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19215fi
ac1cb8d3 19216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19217# Binary search between lo and hi bounds.
19218while test "x$ac_lo" != "x$ac_hi"; do
19219 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19220 cat >conftest.$ac_ext <<_ACEOF
19221/* confdefs.h. */
19222_ACEOF
19223cat confdefs.h >>conftest.$ac_ext
19224cat >>conftest.$ac_ext <<_ACEOF
19225/* end confdefs.h. */
19226$ac_includes_default
19227int
19228main ()
19229{
19230static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19231test_array [0] = 0
19232
19233 ;
19234 return 0;
19235}
19236_ACEOF
19237rm -f conftest.$ac_objext
19238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19239 (eval $ac_compile) 2>conftest.er1
a848cd7e 19240 ac_status=$?
ac1cb8d3
VS
19241 grep -v '^ *+' conftest.er1 >conftest.err
19242 rm -f conftest.er1
19243 cat conftest.err >&5
a848cd7e
SC
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } &&
d25774ab
JS
19246 { ac_try='test -z "$ac_cxx_werror_flag"
19247 || test ! -s conftest.err'
ac1cb8d3
VS
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; } &&
19253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19259 ac_hi=$ac_mid
19260else
19261 echo "$as_me: failed program was:" >&5
19262sed 's/^/| /' conftest.$ac_ext >&5
19263
19264ac_lo=`expr '(' $ac_mid ')' + 1`
19265fi
ac1cb8d3 19266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19267done
19268case $ac_lo in
19269?*) ac_cv_sizeof_long=$ac_lo;;
19270'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19271See \`config.log' for more details." >&5
19272echo "$as_me: error: cannot compute sizeof (long), 77
19273See \`config.log' for more details." >&2;}
19274 { (exit 1); exit 1; }; } ;;
19275esac
19276else
19277 if test "$cross_compiling" = yes; then
d25774ab
JS
19278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19279See \`config.log' for more details." >&5
19280echo "$as_me: error: cannot run test program while cross compiling
19281See \`config.log' for more details." >&2;}
a848cd7e
SC
19282 { (exit 1); exit 1; }; }
19283else
19284 cat >conftest.$ac_ext <<_ACEOF
19285/* confdefs.h. */
19286_ACEOF
19287cat confdefs.h >>conftest.$ac_ext
19288cat >>conftest.$ac_ext <<_ACEOF
19289/* end confdefs.h. */
19290$ac_includes_default
19291long longval () { return (long) (sizeof (long)); }
19292unsigned long ulongval () { return (long) (sizeof (long)); }
19293#include <stdio.h>
19294#include <stdlib.h>
19295int
19296main ()
19297{
19298
19299 FILE *f = fopen ("conftest.val", "w");
19300 if (! f)
19301 exit (1);
19302 if (((long) (sizeof (long))) < 0)
19303 {
19304 long i = longval ();
19305 if (i != ((long) (sizeof (long))))
19306 exit (1);
19307 fprintf (f, "%ld\n", i);
19308 }
19309 else
19310 {
19311 unsigned long i = ulongval ();
19312 if (i != ((long) (sizeof (long))))
19313 exit (1);
19314 fprintf (f, "%lu\n", i);
19315 }
19316 exit (ferror (f) || fclose (f) != 0);
19317
19318 ;
19319 return 0;
19320}
19321_ACEOF
19322rm -f conftest$ac_exeext
19323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19324 (eval $ac_link) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 ac_cv_sizeof_long=`cat conftest.val`
19334else
19335 echo "$as_me: program exited with status $ac_status" >&5
19336echo "$as_me: failed program was:" >&5
19337sed 's/^/| /' conftest.$ac_ext >&5
19338
19339( exit $ac_status )
19340{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19341See \`config.log' for more details." >&5
19342echo "$as_me: error: cannot compute sizeof (long), 77
19343See \`config.log' for more details." >&2;}
19344 { (exit 1); exit 1; }; }
19345fi
ac1cb8d3 19346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19347fi
19348fi
19349rm -f conftest.val
19350else
19351 ac_cv_sizeof_long=0
19352fi
19353fi
19354echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19355echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19356cat >>confdefs.h <<_ACEOF
19357#define SIZEOF_LONG $ac_cv_sizeof_long
19358_ACEOF
19359
19360
19361echo "$as_me:$LINENO: checking for size_t" >&5
19362echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19363if test "${ac_cv_type_size_t+set}" = set; then
19364 echo $ECHO_N "(cached) $ECHO_C" >&6
19365else
19366 cat >conftest.$ac_ext <<_ACEOF
19367/* confdefs.h. */
19368_ACEOF
19369cat confdefs.h >>conftest.$ac_ext
19370cat >>conftest.$ac_ext <<_ACEOF
19371/* end confdefs.h. */
19372$ac_includes_default
19373int
19374main ()
19375{
19376if ((size_t *) 0)
19377 return 0;
19378if (sizeof (size_t))
19379 return 0;
19380 ;
19381 return 0;
19382}
19383_ACEOF
19384rm -f conftest.$ac_objext
19385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19386 (eval $ac_compile) 2>conftest.er1
a848cd7e 19387 ac_status=$?
ac1cb8d3
VS
19388 grep -v '^ *+' conftest.er1 >conftest.err
19389 rm -f conftest.er1
19390 cat conftest.err >&5
a848cd7e
SC
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } &&
d25774ab
JS
19393 { ac_try='test -z "$ac_cxx_werror_flag"
19394 || test ! -s conftest.err'
ac1cb8d3
VS
19395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; } &&
19400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; }; then
19406 ac_cv_type_size_t=yes
19407else
19408 echo "$as_me: failed program was:" >&5
19409sed 's/^/| /' conftest.$ac_ext >&5
19410
19411ac_cv_type_size_t=no
19412fi
ac1cb8d3 19413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19414fi
19415echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19416echo "${ECHO_T}$ac_cv_type_size_t" >&6
19417
19418echo "$as_me:$LINENO: checking size of size_t" >&5
19419echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19420if test "${ac_cv_sizeof_size_t+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19422else
19423 if test "$ac_cv_type_size_t" = yes; then
19424 # The cast to unsigned long works around a bug in the HP C Compiler
19425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19427 # This bug is HP SR number 8606223364.
19428 if test "$cross_compiling" = yes; then
19429 # Depending upon the size, compute the lo and hi bounds.
19430cat >conftest.$ac_ext <<_ACEOF
19431/* confdefs.h. */
19432_ACEOF
19433cat confdefs.h >>conftest.$ac_ext
19434cat >>conftest.$ac_ext <<_ACEOF
19435/* end confdefs.h. */
19436$ac_includes_default
19437int
19438main ()
19439{
19440static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19441test_array [0] = 0
19442
19443 ;
19444 return 0;
19445}
19446_ACEOF
19447rm -f conftest.$ac_objext
19448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19449 (eval $ac_compile) 2>conftest.er1
a848cd7e 19450 ac_status=$?
ac1cb8d3
VS
19451 grep -v '^ *+' conftest.er1 >conftest.err
19452 rm -f conftest.er1
19453 cat conftest.err >&5
a848cd7e
SC
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } &&
d25774ab
JS
19456 { ac_try='test -z "$ac_cxx_werror_flag"
19457 || test ! -s conftest.err'
ac1cb8d3
VS
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19466 ac_status=$?
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; }; then
19469 ac_lo=0 ac_mid=0
19470 while :; do
19471 cat >conftest.$ac_ext <<_ACEOF
19472/* confdefs.h. */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
19476/* end confdefs.h. */
19477$ac_includes_default
19478int
19479main ()
19480{
19481static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19482test_array [0] = 0
19483
19484 ;
19485 return 0;
19486}
19487_ACEOF
19488rm -f conftest.$ac_objext
19489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19490 (eval $ac_compile) 2>conftest.er1
a848cd7e 19491 ac_status=$?
ac1cb8d3
VS
19492 grep -v '^ *+' conftest.er1 >conftest.err
19493 rm -f conftest.er1
19494 cat conftest.err >&5
a848cd7e
SC
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
d25774ab
JS
19497 { ac_try='test -z "$ac_cxx_werror_flag"
19498 || test ! -s conftest.err'
ac1cb8d3
VS
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; } &&
19504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 ac_hi=$ac_mid; break
19511else
19512 echo "$as_me: failed program was:" >&5
19513sed 's/^/| /' conftest.$ac_ext >&5
19514
19515ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19516 if test $ac_lo -le $ac_mid; then
19517 ac_lo= ac_hi=
19518 break
19519 fi
19520 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19521fi
ac1cb8d3 19522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19523 done
19524else
19525 echo "$as_me: failed program was:" >&5
19526sed 's/^/| /' conftest.$ac_ext >&5
19527
19528cat >conftest.$ac_ext <<_ACEOF
19529/* confdefs.h. */
19530_ACEOF
19531cat confdefs.h >>conftest.$ac_ext
19532cat >>conftest.$ac_ext <<_ACEOF
19533/* end confdefs.h. */
19534$ac_includes_default
19535int
19536main ()
19537{
19538static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19539test_array [0] = 0
19540
19541 ;
19542 return 0;
19543}
19544_ACEOF
19545rm -f conftest.$ac_objext
19546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19547 (eval $ac_compile) 2>conftest.er1
a848cd7e 19548 ac_status=$?
ac1cb8d3
VS
19549 grep -v '^ *+' conftest.er1 >conftest.err
19550 rm -f conftest.er1
19551 cat conftest.err >&5
a848cd7e
SC
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } &&
d25774ab
JS
19554 { ac_try='test -z "$ac_cxx_werror_flag"
19555 || test ! -s conftest.err'
ac1cb8d3
VS
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; } &&
19561 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563 (eval $ac_try) 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; }; then
19567 ac_hi=-1 ac_mid=-1
19568 while :; do
19569 cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
19575$ac_includes_default
19576int
19577main ()
19578{
19579static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19580test_array [0] = 0
19581
19582 ;
19583 return 0;
19584}
19585_ACEOF
19586rm -f conftest.$ac_objext
19587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19588 (eval $ac_compile) 2>conftest.er1
a848cd7e 19589 ac_status=$?
ac1cb8d3
VS
19590 grep -v '^ *+' conftest.er1 >conftest.err
19591 rm -f conftest.er1
19592 cat conftest.err >&5
a848cd7e
SC
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } &&
d25774ab
JS
19595 { ac_try='test -z "$ac_cxx_werror_flag"
19596 || test ! -s conftest.err'
ac1cb8d3
VS
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 ac_lo=$ac_mid; break
19609else
19610 echo "$as_me: failed program was:" >&5
19611sed 's/^/| /' conftest.$ac_ext >&5
19612
19613ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19614 if test $ac_mid -le $ac_hi; then
19615 ac_lo= ac_hi=
19616 break
19617 fi
19618 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19619fi
ac1cb8d3 19620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19621 done
19622else
19623 echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626ac_lo= ac_hi=
19627fi
ac1cb8d3 19628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19629fi
ac1cb8d3 19630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19631# Binary search between lo and hi bounds.
19632while test "x$ac_lo" != "x$ac_hi"; do
19633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19634 cat >conftest.$ac_ext <<_ACEOF
19635/* confdefs.h. */
19636_ACEOF
19637cat confdefs.h >>conftest.$ac_ext
19638cat >>conftest.$ac_ext <<_ACEOF
19639/* end confdefs.h. */
19640$ac_includes_default
19641int
19642main ()
19643{
19644static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19645test_array [0] = 0
19646
19647 ;
19648 return 0;
19649}
19650_ACEOF
19651rm -f conftest.$ac_objext
19652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19653 (eval $ac_compile) 2>conftest.er1
a848cd7e 19654 ac_status=$?
ac1cb8d3
VS
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
a848cd7e
SC
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
d25774ab
JS
19660 { ac_try='test -z "$ac_cxx_werror_flag"
19661 || test ! -s conftest.err'
ac1cb8d3
VS
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; } &&
19667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19673 ac_hi=$ac_mid
19674else
19675 echo "$as_me: failed program was:" >&5
19676sed 's/^/| /' conftest.$ac_ext >&5
19677
19678ac_lo=`expr '(' $ac_mid ')' + 1`
19679fi
ac1cb8d3 19680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19681done
19682case $ac_lo in
19683?*) ac_cv_sizeof_size_t=$ac_lo;;
19684'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19685See \`config.log' for more details." >&5
19686echo "$as_me: error: cannot compute sizeof (size_t), 77
19687See \`config.log' for more details." >&2;}
19688 { (exit 1); exit 1; }; } ;;
19689esac
19690else
19691 if test "$cross_compiling" = yes; then
d25774ab
JS
19692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19693See \`config.log' for more details." >&5
19694echo "$as_me: error: cannot run test program while cross compiling
19695See \`config.log' for more details." >&2;}
a848cd7e
SC
19696 { (exit 1); exit 1; }; }
19697else
19698 cat >conftest.$ac_ext <<_ACEOF
19699/* confdefs.h. */
19700_ACEOF
19701cat confdefs.h >>conftest.$ac_ext
19702cat >>conftest.$ac_ext <<_ACEOF
19703/* end confdefs.h. */
19704$ac_includes_default
19705long longval () { return (long) (sizeof (size_t)); }
19706unsigned long ulongval () { return (long) (sizeof (size_t)); }
19707#include <stdio.h>
19708#include <stdlib.h>
19709int
19710main ()
19711{
19712
19713 FILE *f = fopen ("conftest.val", "w");
19714 if (! f)
19715 exit (1);
19716 if (((long) (sizeof (size_t))) < 0)
19717 {
19718 long i = longval ();
19719 if (i != ((long) (sizeof (size_t))))
19720 exit (1);
19721 fprintf (f, "%ld\n", i);
19722 }
19723 else
19724 {
19725 unsigned long i = ulongval ();
19726 if (i != ((long) (sizeof (size_t))))
19727 exit (1);
19728 fprintf (f, "%lu\n", i);
19729 }
19730 exit (ferror (f) || fclose (f) != 0);
19731
19732 ;
19733 return 0;
19734}
19735_ACEOF
19736rm -f conftest$ac_exeext
19737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19738 (eval $ac_link) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19747 ac_cv_sizeof_size_t=`cat conftest.val`
19748else
19749 echo "$as_me: program exited with status $ac_status" >&5
19750echo "$as_me: failed program was:" >&5
19751sed 's/^/| /' conftest.$ac_ext >&5
19752
19753( exit $ac_status )
19754{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19755See \`config.log' for more details." >&5
19756echo "$as_me: error: cannot compute sizeof (size_t), 77
19757See \`config.log' for more details." >&2;}
19758 { (exit 1); exit 1; }; }
19759fi
ac1cb8d3 19760rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19761fi
19762fi
19763rm -f conftest.val
19764else
19765 ac_cv_sizeof_size_t=0
19766fi
19767fi
19768echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19769echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19770cat >>confdefs.h <<_ACEOF
19771#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19772_ACEOF
19773
19774
19775
19776case "${host}" in
19777 arm-*-linux* )
19778 echo "$as_me:$LINENO: checking for long long" >&5
19779echo $ECHO_N "checking for long long... $ECHO_C" >&6
19780if test "${ac_cv_type_long_long+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782else
19783 cat >conftest.$ac_ext <<_ACEOF
19784/* confdefs.h. */
19785_ACEOF
19786cat confdefs.h >>conftest.$ac_ext
19787cat >>conftest.$ac_ext <<_ACEOF
19788/* end confdefs.h. */
19789$ac_includes_default
19790int
19791main ()
19792{
19793if ((long long *) 0)
19794 return 0;
19795if (sizeof (long long))
19796 return 0;
19797 ;
19798 return 0;
19799}
19800_ACEOF
19801rm -f conftest.$ac_objext
19802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19803 (eval $ac_compile) 2>conftest.er1
a848cd7e 19804 ac_status=$?
ac1cb8d3
VS
19805 grep -v '^ *+' conftest.er1 >conftest.err
19806 rm -f conftest.er1
19807 cat conftest.err >&5
a848cd7e
SC
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } &&
d25774ab
JS
19810 { ac_try='test -z "$ac_cxx_werror_flag"
19811 || test ! -s conftest.err'
ac1cb8d3
VS
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; } &&
19817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; }; then
19823 ac_cv_type_long_long=yes
19824else
19825 echo "$as_me: failed program was:" >&5
19826sed 's/^/| /' conftest.$ac_ext >&5
19827
19828ac_cv_type_long_long=no
19829fi
ac1cb8d3 19830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19831fi
19832echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19833echo "${ECHO_T}$ac_cv_type_long_long" >&6
19834
19835echo "$as_me:$LINENO: checking size of long long" >&5
19836echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19837if test "${ac_cv_sizeof_long_long+set}" = set; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19839else
19840 if test "$ac_cv_type_long_long" = yes; then
19841 # The cast to unsigned long works around a bug in the HP C Compiler
19842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19844 # This bug is HP SR number 8606223364.
19845 if test "$cross_compiling" = yes; then
19846 # Depending upon the size, compute the lo and hi bounds.
19847cat >conftest.$ac_ext <<_ACEOF
19848/* confdefs.h. */
19849_ACEOF
19850cat confdefs.h >>conftest.$ac_ext
19851cat >>conftest.$ac_ext <<_ACEOF
19852/* end confdefs.h. */
19853$ac_includes_default
19854int
19855main ()
19856{
19857static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19858test_array [0] = 0
19859
19860 ;
19861 return 0;
19862}
19863_ACEOF
19864rm -f conftest.$ac_objext
19865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19866 (eval $ac_compile) 2>conftest.er1
a848cd7e 19867 ac_status=$?
ac1cb8d3
VS
19868 grep -v '^ *+' conftest.er1 >conftest.err
19869 rm -f conftest.er1
19870 cat conftest.err >&5
a848cd7e
SC
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } &&
d25774ab
JS
19873 { ac_try='test -z "$ac_cxx_werror_flag"
19874 || test ! -s conftest.err'
ac1cb8d3
VS
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; } &&
19880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; }; then
19886 ac_lo=0 ac_mid=0
19887 while :; do
19888 cat >conftest.$ac_ext <<_ACEOF
19889/* confdefs.h. */
19890_ACEOF
19891cat confdefs.h >>conftest.$ac_ext
19892cat >>conftest.$ac_ext <<_ACEOF
19893/* end confdefs.h. */
19894$ac_includes_default
19895int
19896main ()
19897{
19898static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19899test_array [0] = 0
19900
19901 ;
19902 return 0;
19903}
19904_ACEOF
19905rm -f conftest.$ac_objext
19906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19907 (eval $ac_compile) 2>conftest.er1
a848cd7e 19908 ac_status=$?
ac1cb8d3
VS
19909 grep -v '^ *+' conftest.er1 >conftest.err
19910 rm -f conftest.er1
19911 cat conftest.err >&5
a848cd7e
SC
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
d25774ab
JS
19914 { ac_try='test -z "$ac_cxx_werror_flag"
19915 || 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_hi=$ac_mid; break
19928else
19929 echo "$as_me: failed program was:" >&5
19930sed 's/^/| /' conftest.$ac_ext >&5
19931
19932ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19933 if test $ac_lo -le $ac_mid; then
19934 ac_lo= ac_hi=
19935 break
19936 fi
19937 ac_mid=`expr 2 '*' $ac_mid + 1`
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
19945cat >conftest.$ac_ext <<_ACEOF
19946/* confdefs.h. */
19947_ACEOF
19948cat confdefs.h >>conftest.$ac_ext
19949cat >>conftest.$ac_ext <<_ACEOF
19950/* end confdefs.h. */
19951$ac_includes_default
19952int
19953main ()
19954{
19955static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19956test_array [0] = 0
19957
19958 ;
19959 return 0;
19960}
19961_ACEOF
19962rm -f conftest.$ac_objext
19963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19964 (eval $ac_compile) 2>conftest.er1
a848cd7e 19965 ac_status=$?
ac1cb8d3
VS
19966 grep -v '^ *+' conftest.er1 >conftest.err
19967 rm -f conftest.er1
19968 cat conftest.err >&5
a848cd7e
SC
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
d25774ab
JS
19971 { ac_try='test -z "$ac_cxx_werror_flag"
19972 || test ! -s conftest.err'
ac1cb8d3
VS
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19975 ac_status=$?
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; } &&
19978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 ac_hi=-1 ac_mid=-1
19985 while :; do
19986 cat >conftest.$ac_ext <<_ACEOF
19987/* confdefs.h. */
19988_ACEOF
19989cat confdefs.h >>conftest.$ac_ext
19990cat >>conftest.$ac_ext <<_ACEOF
19991/* end confdefs.h. */
19992$ac_includes_default
19993int
19994main ()
19995{
19996static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19997test_array [0] = 0
19998
19999 ;
20000 return 0;
20001}
20002_ACEOF
20003rm -f conftest.$ac_objext
20004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20005 (eval $ac_compile) 2>conftest.er1
a848cd7e 20006 ac_status=$?
ac1cb8d3
VS
20007 grep -v '^ *+' conftest.er1 >conftest.err
20008 rm -f conftest.er1
20009 cat conftest.err >&5
a848cd7e
SC
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } &&
d25774ab
JS
20012 { ac_try='test -z "$ac_cxx_werror_flag"
20013 || test ! -s conftest.err'
ac1cb8d3
VS
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; } &&
20019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
20025 ac_lo=$ac_mid; break
20026else
20027 echo "$as_me: failed program was:" >&5
20028sed 's/^/| /' conftest.$ac_ext >&5
20029
20030ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20031 if test $ac_mid -le $ac_hi; then
20032 ac_lo= ac_hi=
20033 break
20034 fi
20035 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20036fi
ac1cb8d3 20037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20038 done
20039else
20040 echo "$as_me: failed program was:" >&5
20041sed 's/^/| /' conftest.$ac_ext >&5
20042
20043ac_lo= ac_hi=
20044fi
ac1cb8d3 20045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20046fi
ac1cb8d3 20047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20048# Binary search between lo and hi bounds.
20049while test "x$ac_lo" != "x$ac_hi"; do
20050 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20051 cat >conftest.$ac_ext <<_ACEOF
20052/* confdefs.h. */
20053_ACEOF
20054cat confdefs.h >>conftest.$ac_ext
20055cat >>conftest.$ac_ext <<_ACEOF
20056/* end confdefs.h. */
20057$ac_includes_default
20058int
20059main ()
20060{
20061static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20062test_array [0] = 0
20063
20064 ;
20065 return 0;
20066}
20067_ACEOF
20068rm -f conftest.$ac_objext
20069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20070 (eval $ac_compile) 2>conftest.er1
a848cd7e 20071 ac_status=$?
ac1cb8d3
VS
20072 grep -v '^ *+' conftest.er1 >conftest.err
20073 rm -f conftest.er1
20074 cat conftest.err >&5
a848cd7e
SC
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } &&
d25774ab
JS
20077 { ac_try='test -z "$ac_cxx_werror_flag"
20078 || test ! -s conftest.err'
ac1cb8d3
VS
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; } &&
20084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_hi=$ac_mid
20091else
20092 echo "$as_me: failed program was:" >&5
20093sed 's/^/| /' conftest.$ac_ext >&5
20094
20095ac_lo=`expr '(' $ac_mid ')' + 1`
20096fi
ac1cb8d3 20097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20098done
20099case $ac_lo in
20100?*) ac_cv_sizeof_long_long=$ac_lo;;
20101'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20102See \`config.log' for more details." >&5
20103echo "$as_me: error: cannot compute sizeof (long long), 77
20104See \`config.log' for more details." >&2;}
20105 { (exit 1); exit 1; }; } ;;
20106esac
20107else
20108 if test "$cross_compiling" = yes; then
d25774ab
JS
20109 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20110See \`config.log' for more details." >&5
20111echo "$as_me: error: cannot run test program while cross compiling
20112See \`config.log' for more details." >&2;}
a848cd7e
SC
20113 { (exit 1); exit 1; }; }
20114else
20115 cat >conftest.$ac_ext <<_ACEOF
20116/* confdefs.h. */
20117_ACEOF
20118cat confdefs.h >>conftest.$ac_ext
20119cat >>conftest.$ac_ext <<_ACEOF
20120/* end confdefs.h. */
20121$ac_includes_default
20122long longval () { return (long) (sizeof (long long)); }
20123unsigned long ulongval () { return (long) (sizeof (long long)); }
20124#include <stdio.h>
20125#include <stdlib.h>
20126int
20127main ()
20128{
20129
20130 FILE *f = fopen ("conftest.val", "w");
20131 if (! f)
20132 exit (1);
20133 if (((long) (sizeof (long long))) < 0)
20134 {
20135 long i = longval ();
20136 if (i != ((long) (sizeof (long long))))
20137 exit (1);
20138 fprintf (f, "%ld\n", i);
20139 }
20140 else
20141 {
20142 unsigned long i = ulongval ();
20143 if (i != ((long) (sizeof (long long))))
20144 exit (1);
20145 fprintf (f, "%lu\n", i);
20146 }
20147 exit (ferror (f) || fclose (f) != 0);
20148
20149 ;
20150 return 0;
20151}
20152_ACEOF
20153rm -f conftest$ac_exeext
20154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20155 (eval $ac_link) 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20164 ac_cv_sizeof_long_long=`cat conftest.val`
20165else
20166 echo "$as_me: program exited with status $ac_status" >&5
20167echo "$as_me: failed program was:" >&5
20168sed 's/^/| /' conftest.$ac_ext >&5
20169
20170( exit $ac_status )
20171{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20172See \`config.log' for more details." >&5
20173echo "$as_me: error: cannot compute sizeof (long long), 77
20174See \`config.log' for more details." >&2;}
20175 { (exit 1); exit 1; }; }
20176fi
ac1cb8d3 20177rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20178fi
20179fi
20180rm -f conftest.val
20181else
20182 ac_cv_sizeof_long_long=0
20183fi
20184fi
20185echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20186echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20187cat >>confdefs.h <<_ACEOF
20188#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20189_ACEOF
20190
20191
20192 ;;
20193 *-hp-hpux* )
20194 echo "$as_me:$LINENO: checking for long long" >&5
20195echo $ECHO_N "checking for long long... $ECHO_C" >&6
20196if test "${ac_cv_type_long_long+set}" = set; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20198else
20199 cat >conftest.$ac_ext <<_ACEOF
20200/* confdefs.h. */
20201_ACEOF
20202cat confdefs.h >>conftest.$ac_ext
20203cat >>conftest.$ac_ext <<_ACEOF
20204/* end confdefs.h. */
20205$ac_includes_default
20206int
20207main ()
20208{
20209if ((long long *) 0)
20210 return 0;
20211if (sizeof (long long))
20212 return 0;
20213 ;
20214 return 0;
20215}
20216_ACEOF
20217rm -f conftest.$ac_objext
20218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20219 (eval $ac_compile) 2>conftest.er1
a848cd7e 20220 ac_status=$?
ac1cb8d3
VS
20221 grep -v '^ *+' conftest.er1 >conftest.err
20222 rm -f conftest.er1
20223 cat conftest.err >&5
a848cd7e
SC
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } &&
d25774ab
JS
20226 { ac_try='test -z "$ac_cxx_werror_flag"
20227 || 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_cv_type_long_long=yes
20240else
20241 echo "$as_me: failed program was:" >&5
20242sed 's/^/| /' conftest.$ac_ext >&5
20243
20244ac_cv_type_long_long=no
20245fi
ac1cb8d3 20246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20247fi
20248echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20249echo "${ECHO_T}$ac_cv_type_long_long" >&6
20250
20251echo "$as_me:$LINENO: checking size of long long" >&5
20252echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20253if test "${ac_cv_sizeof_long_long+set}" = set; then
20254 echo $ECHO_N "(cached) $ECHO_C" >&6
20255else
20256 if test "$ac_cv_type_long_long" = yes; then
20257 # The cast to unsigned long works around a bug in the HP C Compiler
20258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20260 # This bug is HP SR number 8606223364.
20261 if test "$cross_compiling" = yes; then
20262 # Depending upon the size, compute the lo and hi bounds.
20263cat >conftest.$ac_ext <<_ACEOF
20264/* confdefs.h. */
20265_ACEOF
20266cat confdefs.h >>conftest.$ac_ext
20267cat >>conftest.$ac_ext <<_ACEOF
20268/* end confdefs.h. */
20269$ac_includes_default
20270int
20271main ()
20272{
20273static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20274test_array [0] = 0
20275
20276 ;
20277 return 0;
20278}
20279_ACEOF
20280rm -f conftest.$ac_objext
20281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20282 (eval $ac_compile) 2>conftest.er1
a848cd7e 20283 ac_status=$?
ac1cb8d3
VS
20284 grep -v '^ *+' conftest.er1 >conftest.err
20285 rm -f conftest.er1
20286 cat conftest.err >&5
a848cd7e
SC
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); } &&
d25774ab
JS
20289 { ac_try='test -z "$ac_cxx_werror_flag"
20290 || test ! -s conftest.err'
ac1cb8d3
VS
20291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292 (eval $ac_try) 2>&5
20293 ac_status=$?
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); }; } &&
20296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; }; then
20302 ac_lo=0 ac_mid=0
20303 while :; do
20304 cat >conftest.$ac_ext <<_ACEOF
20305/* confdefs.h. */
20306_ACEOF
20307cat confdefs.h >>conftest.$ac_ext
20308cat >>conftest.$ac_ext <<_ACEOF
20309/* end confdefs.h. */
20310$ac_includes_default
20311int
20312main ()
20313{
20314static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20315test_array [0] = 0
20316
20317 ;
20318 return 0;
20319}
20320_ACEOF
20321rm -f conftest.$ac_objext
20322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20323 (eval $ac_compile) 2>conftest.er1
a848cd7e 20324 ac_status=$?
ac1cb8d3
VS
20325 grep -v '^ *+' conftest.er1 >conftest.err
20326 rm -f conftest.er1
20327 cat conftest.err >&5
a848cd7e
SC
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } &&
d25774ab
JS
20330 { ac_try='test -z "$ac_cxx_werror_flag"
20331 || test ! -s conftest.err'
ac1cb8d3
VS
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; } &&
20337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
20343 ac_hi=$ac_mid; break
20344else
20345 echo "$as_me: failed program was:" >&5
20346sed 's/^/| /' conftest.$ac_ext >&5
20347
20348ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20349 if test $ac_lo -le $ac_mid; then
20350 ac_lo= ac_hi=
20351 break
20352 fi
20353 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20354fi
ac1cb8d3 20355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20356 done
20357else
20358 echo "$as_me: failed program was:" >&5
20359sed 's/^/| /' conftest.$ac_ext >&5
20360
20361cat >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))) < 0)];
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); } &&
d25774ab
JS
20387 { ac_try='test -z "$ac_cxx_werror_flag"
20388 || test ! -s conftest.err'
ac1cb8d3
VS
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20391 ac_status=$?
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; } &&
20394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 ac_hi=-1 ac_mid=-1
20401 while :; do
20402 cat >conftest.$ac_ext <<_ACEOF
20403/* confdefs.h. */
20404_ACEOF
20405cat confdefs.h >>conftest.$ac_ext
20406cat >>conftest.$ac_ext <<_ACEOF
20407/* end confdefs.h. */
20408$ac_includes_default
20409int
20410main ()
20411{
20412static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20413test_array [0] = 0
20414
20415 ;
20416 return 0;
20417}
20418_ACEOF
20419rm -f conftest.$ac_objext
20420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20421 (eval $ac_compile) 2>conftest.er1
a848cd7e 20422 ac_status=$?
ac1cb8d3
VS
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
a848cd7e
SC
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
d25774ab
JS
20428 { ac_try='test -z "$ac_cxx_werror_flag"
20429 || test ! -s conftest.err'
ac1cb8d3
VS
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441 ac_lo=$ac_mid; break
20442else
20443 echo "$as_me: failed program was:" >&5
20444sed 's/^/| /' conftest.$ac_ext >&5
20445
20446ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20447 if test $ac_mid -le $ac_hi; then
20448 ac_lo= ac_hi=
20449 break
20450 fi
20451 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20452fi
ac1cb8d3 20453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20454 done
20455else
20456 echo "$as_me: failed program was:" >&5
20457sed 's/^/| /' conftest.$ac_ext >&5
20458
20459ac_lo= ac_hi=
20460fi
ac1cb8d3 20461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20462fi
ac1cb8d3 20463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20464# Binary search between lo and hi bounds.
20465while test "x$ac_lo" != "x$ac_hi"; do
20466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20467 cat >conftest.$ac_ext <<_ACEOF
20468/* confdefs.h. */
20469_ACEOF
20470cat confdefs.h >>conftest.$ac_ext
20471cat >>conftest.$ac_ext <<_ACEOF
20472/* end confdefs.h. */
20473$ac_includes_default
20474int
20475main ()
20476{
20477static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20478test_array [0] = 0
20479
20480 ;
20481 return 0;
20482}
20483_ACEOF
20484rm -f conftest.$ac_objext
20485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20486 (eval $ac_compile) 2>conftest.er1
a848cd7e 20487 ac_status=$?
ac1cb8d3
VS
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
a848cd7e
SC
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
d25774ab
JS
20493 { ac_try='test -z "$ac_cxx_werror_flag"
20494 || test ! -s conftest.err'
ac1cb8d3
VS
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 ac_hi=$ac_mid
20507else
20508 echo "$as_me: failed program was:" >&5
20509sed 's/^/| /' conftest.$ac_ext >&5
20510
20511ac_lo=`expr '(' $ac_mid ')' + 1`
20512fi
ac1cb8d3 20513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20514done
20515case $ac_lo in
20516?*) ac_cv_sizeof_long_long=$ac_lo;;
20517'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20518See \`config.log' for more details." >&5
20519echo "$as_me: error: cannot compute sizeof (long long), 77
20520See \`config.log' for more details." >&2;}
20521 { (exit 1); exit 1; }; } ;;
20522esac
20523else
20524 if test "$cross_compiling" = yes; then
d25774ab
JS
20525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20526See \`config.log' for more details." >&5
20527echo "$as_me: error: cannot run test program while cross compiling
20528See \`config.log' for more details." >&2;}
a848cd7e
SC
20529 { (exit 1); exit 1; }; }
20530else
20531 cat >conftest.$ac_ext <<_ACEOF
20532/* confdefs.h. */
20533_ACEOF
20534cat confdefs.h >>conftest.$ac_ext
20535cat >>conftest.$ac_ext <<_ACEOF
20536/* end confdefs.h. */
20537$ac_includes_default
20538long longval () { return (long) (sizeof (long long)); }
20539unsigned long ulongval () { return (long) (sizeof (long long)); }
20540#include <stdio.h>
20541#include <stdlib.h>
20542int
20543main ()
20544{
20545
20546 FILE *f = fopen ("conftest.val", "w");
20547 if (! f)
20548 exit (1);
20549 if (((long) (sizeof (long long))) < 0)
20550 {
20551 long i = longval ();
20552 if (i != ((long) (sizeof (long long))))
20553 exit (1);
20554 fprintf (f, "%ld\n", i);
20555 }
20556 else
20557 {
20558 unsigned long i = ulongval ();
20559 if (i != ((long) (sizeof (long long))))
20560 exit (1);
20561 fprintf (f, "%lu\n", i);
20562 }
20563 exit (ferror (f) || fclose (f) != 0);
20564
20565 ;
20566 return 0;
20567}
20568_ACEOF
20569rm -f conftest$ac_exeext
20570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20571 (eval $ac_link) 2>&5
20572 ac_status=$?
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20577 ac_status=$?
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
20580 ac_cv_sizeof_long_long=`cat conftest.val`
20581else
20582 echo "$as_me: program exited with status $ac_status" >&5
20583echo "$as_me: failed program was:" >&5
20584sed 's/^/| /' conftest.$ac_ext >&5
20585
20586( exit $ac_status )
20587{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20588See \`config.log' for more details." >&5
20589echo "$as_me: error: cannot compute sizeof (long long), 77
20590See \`config.log' for more details." >&2;}
20591 { (exit 1); exit 1; }; }
20592fi
ac1cb8d3 20593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20594fi
20595fi
20596rm -f conftest.val
20597else
20598 ac_cv_sizeof_long_long=0
20599fi
20600fi
20601echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20602echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20603cat >>confdefs.h <<_ACEOF
20604#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20605_ACEOF
20606
20607
20608 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20609 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20610 fi
20611 ;;
20612 * )
20613 echo "$as_me:$LINENO: checking for long long" >&5
20614echo $ECHO_N "checking for long long... $ECHO_C" >&6
20615if test "${ac_cv_type_long_long+set}" = set; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20617else
20618 cat >conftest.$ac_ext <<_ACEOF
20619/* confdefs.h. */
20620_ACEOF
20621cat confdefs.h >>conftest.$ac_ext
20622cat >>conftest.$ac_ext <<_ACEOF
20623/* end confdefs.h. */
20624$ac_includes_default
20625int
20626main ()
20627{
20628if ((long long *) 0)
20629 return 0;
20630if (sizeof (long long))
20631 return 0;
20632 ;
20633 return 0;
20634}
20635_ACEOF
20636rm -f conftest.$ac_objext
20637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20638 (eval $ac_compile) 2>conftest.er1
a848cd7e 20639 ac_status=$?
ac1cb8d3
VS
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
a848cd7e
SC
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
d25774ab
JS
20645 { ac_try='test -z "$ac_cxx_werror_flag"
20646 || test ! -s conftest.err'
ac1cb8d3
VS
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_cv_type_long_long=yes
20659else
20660 echo "$as_me: failed program was:" >&5
20661sed 's/^/| /' conftest.$ac_ext >&5
20662
20663ac_cv_type_long_long=no
20664fi
ac1cb8d3 20665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20666fi
20667echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20668echo "${ECHO_T}$ac_cv_type_long_long" >&6
20669
20670echo "$as_me:$LINENO: checking size of long long" >&5
20671echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20672if test "${ac_cv_sizeof_long_long+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20674else
20675 if test "$ac_cv_type_long_long" = yes; then
20676 # The cast to unsigned long works around a bug in the HP C Compiler
20677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20679 # This bug is HP SR number 8606223364.
20680 if test "$cross_compiling" = yes; then
20681 # Depending upon the size, compute the lo and hi bounds.
20682cat >conftest.$ac_ext <<_ACEOF
20683/* confdefs.h. */
20684_ACEOF
20685cat confdefs.h >>conftest.$ac_ext
20686cat >>conftest.$ac_ext <<_ACEOF
20687/* end confdefs.h. */
20688$ac_includes_default
20689int
20690main ()
20691{
20692static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20693test_array [0] = 0
20694
20695 ;
20696 return 0;
20697}
20698_ACEOF
20699rm -f conftest.$ac_objext
20700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20701 (eval $ac_compile) 2>conftest.er1
a848cd7e 20702 ac_status=$?
ac1cb8d3
VS
20703 grep -v '^ *+' conftest.er1 >conftest.err
20704 rm -f conftest.er1
20705 cat conftest.err >&5
a848cd7e
SC
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } &&
d25774ab
JS
20708 { ac_try='test -z "$ac_cxx_werror_flag"
20709 || test ! -s conftest.err'
ac1cb8d3
VS
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } &&
20715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; }; then
20721 ac_lo=0 ac_mid=0
20722 while :; do
20723 cat >conftest.$ac_ext <<_ACEOF
20724/* confdefs.h. */
20725_ACEOF
20726cat confdefs.h >>conftest.$ac_ext
20727cat >>conftest.$ac_ext <<_ACEOF
20728/* end confdefs.h. */
20729$ac_includes_default
20730int
20731main ()
20732{
20733static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20734test_array [0] = 0
20735
20736 ;
20737 return 0;
20738}
20739_ACEOF
20740rm -f conftest.$ac_objext
20741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20742 (eval $ac_compile) 2>conftest.er1
a848cd7e 20743 ac_status=$?
ac1cb8d3
VS
20744 grep -v '^ *+' conftest.er1 >conftest.err
20745 rm -f conftest.er1
20746 cat conftest.err >&5
a848cd7e
SC
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } &&
d25774ab
JS
20749 { ac_try='test -z "$ac_cxx_werror_flag"
20750 || test ! -s conftest.err'
ac1cb8d3
VS
20751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752 (eval $ac_try) 2>&5
20753 ac_status=$?
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; } &&
20756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20759 ac_status=$?
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; }; then
20762 ac_hi=$ac_mid; break
20763else
20764 echo "$as_me: failed program was:" >&5
20765sed 's/^/| /' conftest.$ac_ext >&5
20766
20767ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20768 if test $ac_lo -le $ac_mid; then
20769 ac_lo= ac_hi=
20770 break
20771 fi
20772 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20773fi
ac1cb8d3 20774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20775 done
20776else
20777 echo "$as_me: failed program was:" >&5
20778sed 's/^/| /' conftest.$ac_ext >&5
20779
20780cat >conftest.$ac_ext <<_ACEOF
20781/* confdefs.h. */
20782_ACEOF
20783cat confdefs.h >>conftest.$ac_ext
20784cat >>conftest.$ac_ext <<_ACEOF
20785/* end confdefs.h. */
20786$ac_includes_default
20787int
20788main ()
20789{
20790static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20791test_array [0] = 0
20792
20793 ;
20794 return 0;
20795}
20796_ACEOF
20797rm -f conftest.$ac_objext
20798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20799 (eval $ac_compile) 2>conftest.er1
a848cd7e 20800 ac_status=$?
ac1cb8d3
VS
20801 grep -v '^ *+' conftest.er1 >conftest.err
20802 rm -f conftest.er1
20803 cat conftest.err >&5
a848cd7e
SC
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); } &&
d25774ab
JS
20806 { ac_try='test -z "$ac_cxx_werror_flag"
20807 || test ! -s conftest.err'
ac1cb8d3
VS
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20810 ac_status=$?
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; } &&
20813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20816 ac_status=$?
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; }; then
20819 ac_hi=-1 ac_mid=-1
20820 while :; do
20821 cat >conftest.$ac_ext <<_ACEOF
20822/* confdefs.h. */
20823_ACEOF
20824cat confdefs.h >>conftest.$ac_ext
20825cat >>conftest.$ac_ext <<_ACEOF
20826/* end confdefs.h. */
20827$ac_includes_default
20828int
20829main ()
20830{
20831static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20832test_array [0] = 0
20833
20834 ;
20835 return 0;
20836}
20837_ACEOF
20838rm -f conftest.$ac_objext
20839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20840 (eval $ac_compile) 2>conftest.er1
a848cd7e 20841 ac_status=$?
ac1cb8d3
VS
20842 grep -v '^ *+' conftest.er1 >conftest.err
20843 rm -f conftest.er1
20844 cat conftest.err >&5
a848cd7e
SC
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } &&
d25774ab
JS
20847 { ac_try='test -z "$ac_cxx_werror_flag"
20848 || test ! -s conftest.err'
ac1cb8d3
VS
20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850 (eval $ac_try) 2>&5
20851 ac_status=$?
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; } &&
20854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856 (eval $ac_try) 2>&5
20857 ac_status=$?
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; }; then
20860 ac_lo=$ac_mid; break
20861else
20862 echo "$as_me: failed program was:" >&5
20863sed 's/^/| /' conftest.$ac_ext >&5
20864
20865ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20866 if test $ac_mid -le $ac_hi; then
20867 ac_lo= ac_hi=
20868 break
20869 fi
20870 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20871fi
ac1cb8d3 20872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20873 done
20874else
20875 echo "$as_me: failed program was:" >&5
20876sed 's/^/| /' conftest.$ac_ext >&5
20877
20878ac_lo= ac_hi=
20879fi
ac1cb8d3 20880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20881fi
ac1cb8d3 20882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20883# Binary search between lo and hi bounds.
20884while test "x$ac_lo" != "x$ac_hi"; do
20885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20886 cat >conftest.$ac_ext <<_ACEOF
20887/* confdefs.h. */
20888_ACEOF
20889cat confdefs.h >>conftest.$ac_ext
20890cat >>conftest.$ac_ext <<_ACEOF
20891/* end confdefs.h. */
20892$ac_includes_default
20893int
20894main ()
20895{
20896static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20897test_array [0] = 0
20898
20899 ;
20900 return 0;
20901}
20902_ACEOF
20903rm -f conftest.$ac_objext
20904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20905 (eval $ac_compile) 2>conftest.er1
a848cd7e 20906 ac_status=$?
ac1cb8d3
VS
20907 grep -v '^ *+' conftest.er1 >conftest.err
20908 rm -f conftest.er1
20909 cat conftest.err >&5
a848cd7e
SC
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } &&
d25774ab
JS
20912 { ac_try='test -z "$ac_cxx_werror_flag"
20913 || test ! -s conftest.err'
ac1cb8d3
VS
20914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915 (eval $ac_try) 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; } &&
20919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; }; then
20925 ac_hi=$ac_mid
20926else
20927 echo "$as_me: failed program was:" >&5
20928sed 's/^/| /' conftest.$ac_ext >&5
20929
20930ac_lo=`expr '(' $ac_mid ')' + 1`
20931fi
ac1cb8d3 20932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20933done
20934case $ac_lo in
20935?*) ac_cv_sizeof_long_long=$ac_lo;;
20936'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20937See \`config.log' for more details." >&5
20938echo "$as_me: error: cannot compute sizeof (long long), 77
20939See \`config.log' for more details." >&2;}
20940 { (exit 1); exit 1; }; } ;;
20941esac
20942else
20943 if test "$cross_compiling" = yes; then
d25774ab
JS
20944 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20945See \`config.log' for more details." >&5
20946echo "$as_me: error: cannot run test program while cross compiling
20947See \`config.log' for more details." >&2;}
a848cd7e
SC
20948 { (exit 1); exit 1; }; }
20949else
20950 cat >conftest.$ac_ext <<_ACEOF
20951/* confdefs.h. */
20952_ACEOF
20953cat confdefs.h >>conftest.$ac_ext
20954cat >>conftest.$ac_ext <<_ACEOF
20955/* end confdefs.h. */
20956$ac_includes_default
20957long longval () { return (long) (sizeof (long long)); }
20958unsigned long ulongval () { return (long) (sizeof (long long)); }
20959#include <stdio.h>
20960#include <stdlib.h>
20961int
20962main ()
20963{
20964
20965 FILE *f = fopen ("conftest.val", "w");
20966 if (! f)
20967 exit (1);
20968 if (((long) (sizeof (long long))) < 0)
20969 {
20970 long i = longval ();
20971 if (i != ((long) (sizeof (long long))))
20972 exit (1);
20973 fprintf (f, "%ld\n", i);
20974 }
20975 else
20976 {
20977 unsigned long i = ulongval ();
20978 if (i != ((long) (sizeof (long long))))
20979 exit (1);
20980 fprintf (f, "%lu\n", i);
20981 }
20982 exit (ferror (f) || fclose (f) != 0);
20983
20984 ;
20985 return 0;
20986}
20987_ACEOF
20988rm -f conftest$ac_exeext
20989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20990 (eval $ac_link) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; }; then
20999 ac_cv_sizeof_long_long=`cat conftest.val`
21000else
21001 echo "$as_me: program exited with status $ac_status" >&5
21002echo "$as_me: failed program was:" >&5
21003sed 's/^/| /' conftest.$ac_ext >&5
21004
21005( exit $ac_status )
21006{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21007See \`config.log' for more details." >&5
21008echo "$as_me: error: cannot compute sizeof (long long), 77
21009See \`config.log' for more details." >&2;}
21010 { (exit 1); exit 1; }; }
21011fi
ac1cb8d3 21012rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21013fi
21014fi
21015rm -f conftest.val
21016else
21017 ac_cv_sizeof_long_long=0
21018fi
21019fi
21020echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21021echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21022cat >>confdefs.h <<_ACEOF
21023#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21024_ACEOF
21025
21026
21027esac
21028
238ecede
MW
21029echo "$as_me:$LINENO: checking for wchar_t" >&5
21030echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21031if test "${ac_cv_type_wchar_t+set}" = set; then
21032 echo $ECHO_N "(cached) $ECHO_C" >&6
21033else
21034 cat >conftest.$ac_ext <<_ACEOF
21035/* confdefs.h. */
21036_ACEOF
21037cat confdefs.h >>conftest.$ac_ext
21038cat >>conftest.$ac_ext <<_ACEOF
21039/* end confdefs.h. */
21040
83d8eb47
MW
21041 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21042 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21043 # error "fake wchar_t"
21044 #endif
21045 #ifdef HAVE_WCHAR_H
21046 # ifdef __CYGWIN__
21047 # include <stddef.h>
21048 # endif
21049 # include <wchar.h>
21050 #endif
21051 #ifdef HAVE_STDLIB_H
21052 # include <stdlib.h>
21053 #endif
21054 #include <stdio.h>
21055
21056
21057
21058int
21059main ()
21060{
21061if ((wchar_t *) 0)
21062 return 0;
21063if (sizeof (wchar_t))
21064 return 0;
21065 ;
21066 return 0;
21067}
21068_ACEOF
21069rm -f conftest.$ac_objext
21070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21071 (eval $ac_compile) 2>conftest.er1
21072 ac_status=$?
21073 grep -v '^ *+' conftest.er1 >conftest.err
21074 rm -f conftest.er1
21075 cat conftest.err >&5
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); } &&
d25774ab
JS
21078 { ac_try='test -z "$ac_cxx_werror_flag"
21079 || test ! -s conftest.err'
238ecede
MW
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; } &&
21085 { ac_try='test -s conftest.$ac_objext'
21086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087 (eval $ac_try) 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; }; then
21091 ac_cv_type_wchar_t=yes
21092else
21093 echo "$as_me: failed program was:" >&5
21094sed 's/^/| /' conftest.$ac_ext >&5
21095
21096ac_cv_type_wchar_t=no
21097fi
21098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21099fi
21100echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21101echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21102
a848cd7e
SC
21103echo "$as_me:$LINENO: checking size of wchar_t" >&5
21104echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21105if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21107else
238ecede
MW
21108 if test "$ac_cv_type_wchar_t" = yes; then
21109 # The cast to unsigned long works around a bug in the HP C Compiler
21110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21112 # This bug is HP SR number 8606223364.
21113 if test "$cross_compiling" = yes; then
21114 # Depending upon the size, compute the lo and hi bounds.
21115cat >conftest.$ac_ext <<_ACEOF
21116/* confdefs.h. */
21117_ACEOF
21118cat confdefs.h >>conftest.$ac_ext
21119cat >>conftest.$ac_ext <<_ACEOF
21120/* end confdefs.h. */
21121
83d8eb47
MW
21122 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21123 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21124 # error "fake wchar_t"
21125 #endif
21126 #ifdef HAVE_WCHAR_H
21127 # ifdef __CYGWIN__
21128 # include <stddef.h>
21129 # endif
21130 # include <wchar.h>
21131 #endif
21132 #ifdef HAVE_STDLIB_H
21133 # include <stdlib.h>
21134 #endif
21135 #include <stdio.h>
21136
21137
21138
21139int
21140main ()
21141{
21142static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21143test_array [0] = 0
21144
21145 ;
21146 return 0;
21147}
21148_ACEOF
21149rm -f conftest.$ac_objext
21150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21151 (eval $ac_compile) 2>conftest.er1
21152 ac_status=$?
21153 grep -v '^ *+' conftest.er1 >conftest.err
21154 rm -f conftest.er1
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } &&
d25774ab
JS
21158 { ac_try='test -z "$ac_cxx_werror_flag"
21159 || test ! -s conftest.err'
238ecede
MW
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21162 ac_status=$?
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; } &&
21165 { ac_try='test -s conftest.$ac_objext'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21168 ac_status=$?
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; }; then
21171 ac_lo=0 ac_mid=0
21172 while :; do
21173 cat >conftest.$ac_ext <<_ACEOF
21174/* confdefs.h. */
21175_ACEOF
21176cat confdefs.h >>conftest.$ac_ext
21177cat >>conftest.$ac_ext <<_ACEOF
21178/* end confdefs.h. */
21179
83d8eb47
MW
21180 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21181 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21182 # error "fake wchar_t"
21183 #endif
21184 #ifdef HAVE_WCHAR_H
21185 # ifdef __CYGWIN__
21186 # include <stddef.h>
21187 # endif
21188 # include <wchar.h>
21189 #endif
21190 #ifdef HAVE_STDLIB_H
21191 # include <stdlib.h>
21192 #endif
21193 #include <stdio.h>
21194
21195
21196
21197int
21198main ()
21199{
21200static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21201test_array [0] = 0
21202
21203 ;
21204 return 0;
21205}
21206_ACEOF
21207rm -f conftest.$ac_objext
21208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21209 (eval $ac_compile) 2>conftest.er1
21210 ac_status=$?
21211 grep -v '^ *+' conftest.er1 >conftest.err
21212 rm -f conftest.er1
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
d25774ab
JS
21216 { ac_try='test -z "$ac_cxx_werror_flag"
21217 || test ! -s conftest.err'
238ecede
MW
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; } &&
21223 { ac_try='test -s conftest.$ac_objext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_hi=$ac_mid; break
21230else
21231 echo "$as_me: failed program was:" >&5
21232sed 's/^/| /' conftest.$ac_ext >&5
21233
21234ac_lo=`expr $ac_mid + 1`
21235 if test $ac_lo -le $ac_mid; then
21236 ac_lo= ac_hi=
21237 break
21238 fi
21239 ac_mid=`expr 2 '*' $ac_mid + 1`
21240fi
21241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21242 done
21243else
21244 echo "$as_me: failed program was:" >&5
21245sed 's/^/| /' conftest.$ac_ext >&5
21246
21247cat >conftest.$ac_ext <<_ACEOF
21248/* confdefs.h. */
21249_ACEOF
21250cat confdefs.h >>conftest.$ac_ext
21251cat >>conftest.$ac_ext <<_ACEOF
21252/* end confdefs.h. */
21253
83d8eb47
MW
21254 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21255 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21256 # error "fake wchar_t"
21257 #endif
21258 #ifdef HAVE_WCHAR_H
21259 # ifdef __CYGWIN__
21260 # include <stddef.h>
21261 # endif
21262 # include <wchar.h>
21263 #endif
21264 #ifdef HAVE_STDLIB_H
21265 # include <stdlib.h>
21266 #endif
21267 #include <stdio.h>
21268
21269
21270
21271int
21272main ()
21273{
21274static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21275test_array [0] = 0
21276
21277 ;
21278 return 0;
21279}
21280_ACEOF
21281rm -f conftest.$ac_objext
21282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21283 (eval $ac_compile) 2>conftest.er1
21284 ac_status=$?
21285 grep -v '^ *+' conftest.er1 >conftest.err
21286 rm -f conftest.er1
21287 cat conftest.err >&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } &&
d25774ab
JS
21290 { ac_try='test -z "$ac_cxx_werror_flag"
21291 || test ! -s conftest.err'
238ecede
MW
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; } &&
21297 { ac_try='test -s conftest.$ac_objext'
21298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299 (eval $ac_try) 2>&5
21300 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; }; then
21303 ac_hi=-1 ac_mid=-1
21304 while :; do
21305 cat >conftest.$ac_ext <<_ACEOF
21306/* confdefs.h. */
21307_ACEOF
21308cat confdefs.h >>conftest.$ac_ext
21309cat >>conftest.$ac_ext <<_ACEOF
21310/* end confdefs.h. */
21311
83d8eb47
MW
21312 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21313 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21314 # error "fake wchar_t"
21315 #endif
21316 #ifdef HAVE_WCHAR_H
21317 # ifdef __CYGWIN__
21318 # include <stddef.h>
21319 # endif
21320 # include <wchar.h>
21321 #endif
21322 #ifdef HAVE_STDLIB_H
21323 # include <stdlib.h>
21324 #endif
21325 #include <stdio.h>
21326
21327
21328
21329int
21330main ()
21331{
21332static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21333test_array [0] = 0
21334
21335 ;
21336 return 0;
21337}
21338_ACEOF
21339rm -f conftest.$ac_objext
21340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21341 (eval $ac_compile) 2>conftest.er1
21342 ac_status=$?
21343 grep -v '^ *+' conftest.er1 >conftest.err
21344 rm -f conftest.er1
21345 cat conftest.err >&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); } &&
d25774ab
JS
21348 { ac_try='test -z "$ac_cxx_werror_flag"
21349 || test ! -s conftest.err'
238ecede
MW
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; } &&
21355 { ac_try='test -s conftest.$ac_objext'
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; }; then
21361 ac_lo=$ac_mid; break
21362else
21363 echo "$as_me: failed program was:" >&5
21364sed 's/^/| /' conftest.$ac_ext >&5
21365
21366ac_hi=`expr '(' $ac_mid ')' - 1`
21367 if test $ac_mid -le $ac_hi; then
21368 ac_lo= ac_hi=
21369 break
21370 fi
21371 ac_mid=`expr 2 '*' $ac_mid`
21372fi
21373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21374 done
21375else
21376 echo "$as_me: failed program was:" >&5
21377sed 's/^/| /' conftest.$ac_ext >&5
21378
21379ac_lo= ac_hi=
21380fi
21381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21382fi
21383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21384# Binary search between lo and hi bounds.
21385while test "x$ac_lo" != "x$ac_hi"; do
21386 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21387 cat >conftest.$ac_ext <<_ACEOF
21388/* confdefs.h. */
21389_ACEOF
21390cat confdefs.h >>conftest.$ac_ext
21391cat >>conftest.$ac_ext <<_ACEOF
21392/* end confdefs.h. */
21393
83d8eb47
MW
21394 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21395 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21396 # error "fake wchar_t"
21397 #endif
21398 #ifdef HAVE_WCHAR_H
21399 # ifdef __CYGWIN__
21400 # include <stddef.h>
21401 # endif
21402 # include <wchar.h>
21403 #endif
21404 #ifdef HAVE_STDLIB_H
21405 # include <stdlib.h>
21406 #endif
21407 #include <stdio.h>
a848cd7e 21408
a848cd7e 21409
a848cd7e 21410
238ecede
MW
21411int
21412main ()
21413{
21414static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21415test_array [0] = 0
a848cd7e 21416
238ecede
MW
21417 ;
21418 return 0;
21419}
21420_ACEOF
21421rm -f conftest.$ac_objext
21422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21423 (eval $ac_compile) 2>conftest.er1
21424 ac_status=$?
21425 grep -v '^ *+' conftest.er1 >conftest.err
21426 rm -f conftest.er1
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } &&
d25774ab
JS
21430 { ac_try='test -z "$ac_cxx_werror_flag"
21431 || test ! -s conftest.err'
238ecede
MW
21432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433 (eval $ac_try) 2>&5
21434 ac_status=$?
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); }; } &&
21437 { ac_try='test -s conftest.$ac_objext'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21440 ac_status=$?
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; }; then
21443 ac_hi=$ac_mid
21444else
21445 echo "$as_me: failed program was:" >&5
21446sed 's/^/| /' conftest.$ac_ext >&5
21447
21448ac_lo=`expr '(' $ac_mid ')' + 1`
21449fi
21450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21451done
21452case $ac_lo in
21453?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21454'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21455See \`config.log' for more details." >&5
21456echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21457See \`config.log' for more details." >&2;}
21458 { (exit 1); exit 1; }; } ;;
21459esac
21460else
21461 if test "$cross_compiling" = yes; then
d25774ab
JS
21462 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21463See \`config.log' for more details." >&5
21464echo "$as_me: error: cannot run test program while cross compiling
21465See \`config.log' for more details." >&2;}
238ecede 21466 { (exit 1); exit 1; }; }
a848cd7e
SC
21467else
21468 cat >conftest.$ac_ext <<_ACEOF
21469/* confdefs.h. */
21470_ACEOF
21471cat confdefs.h >>conftest.$ac_ext
21472cat >>conftest.$ac_ext <<_ACEOF
21473/* end confdefs.h. */
21474
83d8eb47
MW
21475 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21476 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21477 # error "fake wchar_t"
21478 #endif
21479 #ifdef HAVE_WCHAR_H
21480 # ifdef __CYGWIN__
21481 # include <stddef.h>
21482 # endif
21483 # include <wchar.h>
21484 #endif
21485 #ifdef HAVE_STDLIB_H
21486 # include <stdlib.h>
21487 #endif
21488 #include <stdio.h>
21489
21490
21491
21492long longval () { return (long) (sizeof (wchar_t)); }
21493unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21494#include <stdio.h>
21495#include <stdlib.h>
21496int
21497main ()
21498{
a848cd7e 21499
238ecede
MW
21500 FILE *f = fopen ("conftest.val", "w");
21501 if (! f)
21502 exit (1);
21503 if (((long) (sizeof (wchar_t))) < 0)
21504 {
21505 long i = longval ();
21506 if (i != ((long) (sizeof (wchar_t))))
21507 exit (1);
21508 fprintf (f, "%ld\n", i);
21509 }
21510 else
21511 {
21512 unsigned long i = ulongval ();
21513 if (i != ((long) (sizeof (wchar_t))))
21514 exit (1);
21515 fprintf (f, "%lu\n", i);
21516 }
21517 exit (ferror (f) || fclose (f) != 0);
21518
21519 ;
21520 return 0;
21521}
a848cd7e
SC
21522_ACEOF
21523rm -f conftest$ac_exeext
21524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21525 (eval $ac_link) 2>&5
21526 ac_status=$?
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21530 (eval $ac_try) 2>&5
21531 ac_status=$?
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); }; }; then
238ecede 21534 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21535else
21536 echo "$as_me: program exited with status $ac_status" >&5
21537echo "$as_me: failed program was:" >&5
21538sed 's/^/| /' conftest.$ac_ext >&5
21539
21540( exit $ac_status )
238ecede
MW
21541{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21542See \`config.log' for more details." >&5
21543echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21544See \`config.log' for more details." >&2;}
21545 { (exit 1); exit 1; }; }
a848cd7e 21546fi
ac1cb8d3 21547rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21548fi
a848cd7e 21549fi
238ecede
MW
21550rm -f conftest.val
21551else
21552 ac_cv_sizeof_wchar_t=0
21553fi
21554fi
21555echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21556echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21557cat >>confdefs.h <<_ACEOF
238ecede 21558#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21559_ACEOF
21560
21561
47a7e797
MW
21562if test "$ac_cv_sizeof_wchar_t" != "0"; then
21563 wxUSE_WCHAR_T=yes
21564else
21565 wxUSE_WCHAR_T=no
21566fi
238ecede 21567
ba3d13e1
VZ
21568echo "$as_me:$LINENO: checking for va_copy" >&5
21569echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21570if test "${wx_cv_func_va_copy+set}" = set; then
21571 echo $ECHO_N "(cached) $ECHO_C" >&6
21572else
21573
21574 cat >conftest.$ac_ext <<_ACEOF
21575
21576 #include <stdarg.h>
21577 void foo(char *f, ...)
21578 {
21579 va_list ap1, ap2;
21580 va_start(ap1, f);
21581 va_copy(ap2, ap1);
21582 va_end(ap2);
21583 va_end(ap1);
21584 }
5886b072
VZ
21585 int main()
21586 {
b902e639
VZ
21587 foo("hi", 17);
21588 return 0;
5886b072 21589 }
ba3d13e1
VZ
21590_ACEOF
21591rm -f conftest.$ac_objext conftest$ac_exeext
21592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21593 (eval $ac_link) 2>conftest.er1
21594 ac_status=$?
21595 grep -v '^ *+' conftest.er1 >conftest.err
21596 rm -f conftest.er1
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } &&
d25774ab
JS
21600 { ac_try='test -z "$ac_cxx_werror_flag"
21601 || test ! -s conftest.err'
ba3d13e1
VZ
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; } &&
21607 { ac_try='test -s conftest$ac_exeext'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613 wx_cv_func_va_copy=yes
21614else
21615 echo "$as_me: failed program was:" >&5
21616sed 's/^/| /' conftest.$ac_ext >&5
21617
21618wx_cv_func_va_copy=no
21619
21620fi
21621rm -f conftest.err conftest.$ac_objext \
21622 conftest$ac_exeext conftest.$ac_ext
21623
21624
21625fi
21626echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21627echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21628
21629if test $wx_cv_func_va_copy = "yes"; then
21630 cat >>confdefs.h <<\_ACEOF
21631#define HAVE_VA_COPY 1
21632_ACEOF
21633
21634else
21635 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21636echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21637if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21638 echo $ECHO_N "(cached) $ECHO_C" >&6
21639else
21640
21641 if test "$cross_compiling" = yes; then
21642 wx_cv_type_va_list_lvalue=yes
21643
21644else
21645 cat >conftest.$ac_ext <<_ACEOF
21646
21647 #include <stdarg.h>
21648 int foo(char *f, ...)
21649 {
21650 va_list ap1, ap2;
21651 va_start(ap1, f);
21652 ap2 = ap1;
21653 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21654 return 1;
21655 va_end(ap2);
21656 va_end(ap1);
21657 return 0;
21658 }
21659 int main()
21660 {
21661 return foo("hi", 17);
21662 }
21663_ACEOF
21664rm -f conftest$ac_exeext
21665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21666 (eval $ac_link) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21672 ac_status=$?
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; }; then
21675 wx_cv_type_va_list_lvalue=yes
21676else
21677 echo "$as_me: program exited with status $ac_status" >&5
21678echo "$as_me: failed program was:" >&5
21679sed 's/^/| /' conftest.$ac_ext >&5
21680
21681( exit $ac_status )
21682wx_cv_type_va_list_lvalue=no
21683fi
21684rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21685fi
21686
21687
21688fi
21689echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21690echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21691
21692 if test $wx_cv_type_va_list_lvalue != "yes"; then
21693 cat >>confdefs.h <<\_ACEOF
21694#define VA_LIST_IS_ARRAY 1
21695_ACEOF
21696
21697 fi
21698fi
21699
a848cd7e
SC
21700# Check whether --enable-largefile or --disable-largefile was given.
21701if test "${enable_largefile+set}" = set; then
21702 enableval="$enable_largefile"
21703
21704fi;
21705if test "$enable_largefile" != no; then
21706 wx_largefile=no
21707
21708 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21709echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21710if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21712else
21713
21714 cat >conftest.$ac_ext <<_ACEOF
21715/* confdefs.h. */
21716_ACEOF
21717cat confdefs.h >>conftest.$ac_ext
21718cat >>conftest.$ac_ext <<_ACEOF
21719/* end confdefs.h. */
21720#define _FILE_OFFSET_BITS 64
21721 #include <sys/types.h>
21722int
21723main ()
21724{
21725typedef struct {
21726 unsigned int field: sizeof(off_t) == 8;
21727} wxlf;
21728
21729 ;
21730 return 0;
21731}
21732_ACEOF
21733rm -f conftest.$ac_objext
21734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21735 (eval $ac_compile) 2>conftest.er1
a848cd7e 21736 ac_status=$?
ac1cb8d3
VS
21737 grep -v '^ *+' conftest.er1 >conftest.err
21738 rm -f conftest.er1
21739 cat conftest.err >&5
a848cd7e
SC
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); } &&
d25774ab
JS
21742 { ac_try='test -z "$ac_cxx_werror_flag"
21743 || test ! -s conftest.err'
ac1cb8d3
VS
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; } &&
21749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21752 ac_status=$?
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21755 ac_cv_sys_file_offset_bits=64
21756else
21757 echo "$as_me: failed program was:" >&5
21758sed 's/^/| /' conftest.$ac_ext >&5
21759
21760ac_cv_sys_file_offset_bits=no
21761fi
ac1cb8d3 21762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21763
21764
21765fi
21766echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21767echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21768
21769 if test "$ac_cv_sys_file_offset_bits" != no; then
21770 wx_largefile=yes
21771 cat >>confdefs.h <<_ACEOF
21772#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21773_ACEOF
21774
21775 fi
21776
21777 if test "x$wx_largefile" != "xyes"; then
21778
21779 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21780echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21781if test "${ac_cv_sys_large_files+set}" = set; then
21782 echo $ECHO_N "(cached) $ECHO_C" >&6
21783else
21784
21785 cat >conftest.$ac_ext <<_ACEOF
21786/* confdefs.h. */
21787_ACEOF
21788cat confdefs.h >>conftest.$ac_ext
21789cat >>conftest.$ac_ext <<_ACEOF
21790/* end confdefs.h. */
21791#define _LARGE_FILES 1
21792 #include <sys/types.h>
21793int
21794main ()
21795{
21796typedef struct {
21797 unsigned int field: sizeof(off_t) == 8;
21798} wxlf;
21799
21800 ;
21801 return 0;
21802}
21803_ACEOF
21804rm -f conftest.$ac_objext
21805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21806 (eval $ac_compile) 2>conftest.er1
a848cd7e 21807 ac_status=$?
ac1cb8d3
VS
21808 grep -v '^ *+' conftest.er1 >conftest.err
21809 rm -f conftest.er1
21810 cat conftest.err >&5
a848cd7e
SC
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } &&
d25774ab
JS
21813 { ac_try='test -z "$ac_cxx_werror_flag"
21814 || test ! -s conftest.err'
ac1cb8d3
VS
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; } &&
21820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21823 ac_status=$?
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; }; then
21826 ac_cv_sys_large_files=1
21827else
21828 echo "$as_me: failed program was:" >&5
21829sed 's/^/| /' conftest.$ac_ext >&5
21830
21831ac_cv_sys_large_files=no
21832fi
ac1cb8d3 21833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21834
21835
21836fi
21837echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21838echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21839
21840 if test "$ac_cv_sys_large_files" != no; then
21841 wx_largefile=yes
21842 cat >>confdefs.h <<_ACEOF
21843#define _LARGE_FILES $ac_cv_sys_large_files
21844_ACEOF
21845
21846 fi
21847
21848 fi
21849
21850 echo "$as_me:$LINENO: checking if large file support is available" >&5
21851echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21852 if test "x$wx_largefile" = "xyes"; then
21853 cat >>confdefs.h <<\_ACEOF
21854#define HAVE_LARGEFILE_SUPPORT 1
21855_ACEOF
21856
21857 fi
21858 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21859echo "${ECHO_T}$wx_largefile" >&6
21860fi
21861
5b674b9d
DE
21862
21863if test "x$wx_largefile" = "xyes"; then
21864 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21865 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21866
21867 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21868 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21869echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21870if test "${wx_cv_STDC_EXT_required+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21872else
21873
00421666
MW
21874 cat >conftest.$ac_ext <<_ACEOF
21875/* confdefs.h. */
21876_ACEOF
21877cat confdefs.h >>conftest.$ac_ext
21878cat >>conftest.$ac_ext <<_ACEOF
21879/* end confdefs.h. */
21880
21881int
21882main ()
21883{
21884
21885 #ifndef __STDC_EXT__
21886 choke me
21887 #endif
21888
21889 ;
21890 return 0;
21891}
21892_ACEOF
21893rm -f conftest.$ac_objext
21894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21895 (eval $ac_compile) 2>conftest.er1
21896 ac_status=$?
21897 grep -v '^ *+' conftest.er1 >conftest.err
21898 rm -f conftest.er1
21899 cat conftest.err >&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } &&
d25774ab
JS
21902 { ac_try='test -z "$ac_cxx_werror_flag"
21903 || test ! -s conftest.err'
00421666
MW
21904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905 (eval $ac_try) 2>&5
21906 ac_status=$?
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); }; } &&
21909 { ac_try='test -s conftest.$ac_objext'
21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; }; then
21915 wx_cv_STDC_EXT_required=no
21916else
21917 echo "$as_me: failed program was:" >&5
21918sed 's/^/| /' conftest.$ac_ext >&5
21919
21920wx_cv_STDC_EXT_required=yes
21921
21922fi
21923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
21924
21925
21926fi
21927echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21928echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21929 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21930 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21931 fi
21932 fi
5b674b9d 21933 else
5ff751d6 21934 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21935 fi
21936 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21937echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21938if test "${ac_cv_sys_largefile_source+set}" = set; then
21939 echo $ECHO_N "(cached) $ECHO_C" >&6
21940else
21941 while :; do
21942 ac_cv_sys_largefile_source=no
21943 cat >conftest.$ac_ext <<_ACEOF
21944/* confdefs.h. */
21945_ACEOF
21946cat confdefs.h >>conftest.$ac_ext
21947cat >>conftest.$ac_ext <<_ACEOF
21948/* end confdefs.h. */
21949#include <stdio.h>
21950int
21951main ()
21952{
21953return !fseeko;
21954 ;
21955 return 0;
21956}
21957_ACEOF
21958rm -f conftest.$ac_objext
21959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21960 (eval $ac_compile) 2>conftest.er1
21961 ac_status=$?
21962 grep -v '^ *+' conftest.er1 >conftest.err
21963 rm -f conftest.er1
21964 cat conftest.err >&5
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } &&
d25774ab
JS
21967 { ac_try='test -z "$ac_cxx_werror_flag"
21968 || test ! -s conftest.err'
5294a27e
VZ
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; } &&
21974 { ac_try='test -s conftest.$ac_objext'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21977 ac_status=$?
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; }; then
21980 break
21981else
21982 echo "$as_me: failed program was:" >&5
21983sed 's/^/| /' conftest.$ac_ext >&5
21984
21985fi
21986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21987 cat >conftest.$ac_ext <<_ACEOF
21988/* confdefs.h. */
21989_ACEOF
21990cat confdefs.h >>conftest.$ac_ext
21991cat >>conftest.$ac_ext <<_ACEOF
21992/* end confdefs.h. */
21993#define _LARGEFILE_SOURCE 1
21994#include <stdio.h>
21995int
21996main ()
21997{
21998return !fseeko;
21999 ;
22000 return 0;
22001}
22002_ACEOF
22003rm -f conftest.$ac_objext
22004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22005 (eval $ac_compile) 2>conftest.er1
22006 ac_status=$?
22007 grep -v '^ *+' conftest.er1 >conftest.err
22008 rm -f conftest.er1
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } &&
d25774ab
JS
22012 { ac_try='test -z "$ac_cxx_werror_flag"
22013 || test ! -s conftest.err'
5294a27e
VZ
22014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22015 (eval $ac_try) 2>&5
22016 ac_status=$?
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); }; } &&
22019 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22025 ac_cv_sys_largefile_source=1; break
22026else
22027 echo "$as_me: failed program was:" >&5
22028sed 's/^/| /' conftest.$ac_ext >&5
22029
22030fi
22031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22032 break
22033done
22034fi
22035echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22036echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22037if test "$ac_cv_sys_largefile_source" != no; then
22038
22039cat >>confdefs.h <<_ACEOF
22040#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22041_ACEOF
22042
22043fi
22044rm -f conftest*
22045
22046# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22047# in glibc 2.1.3, but that breaks too many other things.
22048# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22049echo "$as_me:$LINENO: checking for fseeko" >&5
22050echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22051if test "${ac_cv_func_fseeko+set}" = set; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22053else
22054 cat >conftest.$ac_ext <<_ACEOF
22055/* confdefs.h. */
22056_ACEOF
22057cat confdefs.h >>conftest.$ac_ext
22058cat >>conftest.$ac_ext <<_ACEOF
22059/* end confdefs.h. */
22060#include <stdio.h>
22061int
22062main ()
22063{
22064return fseeko && fseeko (stdin, 0, 0);
22065 ;
22066 return 0;
22067}
22068_ACEOF
22069rm -f conftest.$ac_objext conftest$ac_exeext
22070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22071 (eval $ac_link) 2>conftest.er1
22072 ac_status=$?
22073 grep -v '^ *+' conftest.er1 >conftest.err
22074 rm -f conftest.er1
22075 cat conftest.err >&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } &&
d25774ab
JS
22078 { ac_try='test -z "$ac_cxx_werror_flag"
22079 || test ! -s conftest.err'
5294a27e
VZ
22080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22081 (eval $ac_try) 2>&5
22082 ac_status=$?
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; } &&
22085 { ac_try='test -s conftest$ac_exeext'
22086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087 (eval $ac_try) 2>&5
22088 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; }; then
22091 ac_cv_func_fseeko=yes
22092else
22093 echo "$as_me: failed program was:" >&5
22094sed 's/^/| /' conftest.$ac_ext >&5
22095
22096ac_cv_func_fseeko=no
22097fi
22098rm -f conftest.err conftest.$ac_objext \
22099 conftest$ac_exeext conftest.$ac_ext
22100fi
22101echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22102echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22103if test $ac_cv_func_fseeko = yes; then
22104
22105cat >>confdefs.h <<\_ACEOF
22106#define HAVE_FSEEKO 1
22107_ACEOF
22108
22109fi
22110
5b674b9d 22111 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22112 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22113 fi
a848cd7e
SC
22114fi
22115
22116echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22117echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22118if test "${ac_cv_c_bigendian+set}" = set; then
22119 echo $ECHO_N "(cached) $ECHO_C" >&6
22120else
22121 ac_cv_c_bigendian=unknown
22122# See if sys/param.h defines the BYTE_ORDER macro.
22123cat >conftest.$ac_ext <<_ACEOF
22124/* confdefs.h. */
22125_ACEOF
22126cat confdefs.h >>conftest.$ac_ext
22127cat >>conftest.$ac_ext <<_ACEOF
22128/* end confdefs.h. */
22129#include <sys/types.h>
22130#include <sys/param.h>
22131int
22132main ()
22133{
22134
22135#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22136 bogus endian macros
22137#endif
22138 ;
22139 return 0;
22140}
22141_ACEOF
22142rm -f conftest.$ac_objext
22143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22144 (eval $ac_compile) 2>conftest.er1
a848cd7e 22145 ac_status=$?
ac1cb8d3
VS
22146 grep -v '^ *+' conftest.er1 >conftest.err
22147 rm -f conftest.er1
22148 cat conftest.err >&5
a848cd7e
SC
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); } &&
d25774ab
JS
22151 { ac_try='test -z "$ac_cxx_werror_flag"
22152 || test ! -s conftest.err'
ac1cb8d3
VS
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; } &&
22158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160 (eval $ac_try) 2>&5
22161 ac_status=$?
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; }; then
22164 # It does; now see whether it defined to BIG_ENDIAN or not.
22165cat >conftest.$ac_ext <<_ACEOF
22166/* confdefs.h. */
22167_ACEOF
22168cat confdefs.h >>conftest.$ac_ext
22169cat >>conftest.$ac_ext <<_ACEOF
22170/* end confdefs.h. */
22171#include <sys/types.h>
22172#include <sys/param.h>
22173int
22174main ()
22175{
22176
22177#if BYTE_ORDER != BIG_ENDIAN
22178 not big endian
22179#endif
22180 ;
22181 return 0;
22182}
22183_ACEOF
22184rm -f conftest.$ac_objext
22185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22186 (eval $ac_compile) 2>conftest.er1
a848cd7e 22187 ac_status=$?
ac1cb8d3
VS
22188 grep -v '^ *+' conftest.er1 >conftest.err
22189 rm -f conftest.er1
22190 cat conftest.err >&5
a848cd7e
SC
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); } &&
d25774ab
JS
22193 { ac_try='test -z "$ac_cxx_werror_flag"
22194 || test ! -s conftest.err'
ac1cb8d3
VS
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 (eval $ac_try) 2>&5
22197 ac_status=$?
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; } &&
22200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22203 ac_status=$?
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; }; then
22206 ac_cv_c_bigendian=yes
22207else
22208 echo "$as_me: failed program was:" >&5
22209sed 's/^/| /' conftest.$ac_ext >&5
22210
22211ac_cv_c_bigendian=no
22212fi
ac1cb8d3 22213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22214else
22215 echo "$as_me: failed program was:" >&5
22216sed 's/^/| /' conftest.$ac_ext >&5
22217
22218fi
ac1cb8d3 22219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22220if test $ac_cv_c_bigendian = unknown; then
22221if test "$cross_compiling" = yes; then
22222 ac_cv_c_bigendian=unknown
22223else
22224 cat >conftest.$ac_ext <<_ACEOF
22225/* confdefs.h. */
22226_ACEOF
22227cat confdefs.h >>conftest.$ac_ext
22228cat >>conftest.$ac_ext <<_ACEOF
22229/* end confdefs.h. */
22230main () {
22231 /* Are we little or big endian? From Harbison&Steele. */
22232 union
22233 {
22234 long l;
22235 char c[sizeof (long)];
22236 } u;
22237 u.l = 1;
22238 exit (u.c[sizeof (long) - 1] == 1);
22239}
22240_ACEOF
22241rm -f conftest$ac_exeext
22242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22243 (eval $ac_link) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248 (eval $ac_try) 2>&5
22249 ac_status=$?
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; }; then
22252 ac_cv_c_bigendian=no
22253else
22254 echo "$as_me: program exited with status $ac_status" >&5
22255echo "$as_me: failed program was:" >&5
22256sed 's/^/| /' conftest.$ac_ext >&5
22257
22258( exit $ac_status )
22259ac_cv_c_bigendian=yes
22260fi
ac1cb8d3 22261rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22262fi
22263fi
22264fi
22265echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22266echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22267if test $ac_cv_c_bigendian = unknown; then
22268 { 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
22269echo "$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;}
22270fi
22271if test $ac_cv_c_bigendian = yes; then
22272 cat >>confdefs.h <<\_ACEOF
22273#define WORDS_BIGENDIAN 1
22274_ACEOF
22275
22276fi
22277
22278
a848cd7e
SC
22279
22280
22281
22282 ac_ext=cc
22283ac_cpp='$CXXCPP $CPPFLAGS'
22284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22287
22288
22289
22290for ac_header in iostream
22291do
22292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22293if eval "test \"\${$as_ac_Header+set}\" = set"; then
22294 echo "$as_me:$LINENO: checking for $ac_header" >&5
22295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22296if eval "test \"\${$as_ac_Header+set}\" = set"; then
22297 echo $ECHO_N "(cached) $ECHO_C" >&6
22298fi
22299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22301else
22302 # Is the header compilable?
22303echo "$as_me:$LINENO: checking $ac_header usability" >&5
22304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22305cat >conftest.$ac_ext <<_ACEOF
22306/* confdefs.h. */
22307_ACEOF
22308cat confdefs.h >>conftest.$ac_ext
22309cat >>conftest.$ac_ext <<_ACEOF
22310/* end confdefs.h. */
22311$ac_includes_default
22312#include <$ac_header>
22313_ACEOF
22314rm -f conftest.$ac_objext
22315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22316 (eval $ac_compile) 2>conftest.er1
a848cd7e 22317 ac_status=$?
ac1cb8d3
VS
22318 grep -v '^ *+' conftest.er1 >conftest.err
22319 rm -f conftest.er1
22320 cat conftest.err >&5
a848cd7e
SC
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } &&
d25774ab
JS
22323 { ac_try='test -z "$ac_cxx_werror_flag"
22324 || test ! -s conftest.err'
ac1cb8d3
VS
22325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326 (eval $ac_try) 2>&5
22327 ac_status=$?
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; } &&
22330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22332 (eval $ac_try) 2>&5
22333 ac_status=$?
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); }; }; then
22336 ac_header_compiler=yes
22337else
22338 echo "$as_me: failed program was:" >&5
22339sed 's/^/| /' conftest.$ac_ext >&5
22340
22341ac_header_compiler=no
22342fi
ac1cb8d3 22343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22345echo "${ECHO_T}$ac_header_compiler" >&6
22346
22347# Is the header present?
22348echo "$as_me:$LINENO: checking $ac_header presence" >&5
22349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22350cat >conftest.$ac_ext <<_ACEOF
22351/* confdefs.h. */
22352_ACEOF
22353cat confdefs.h >>conftest.$ac_ext
22354cat >>conftest.$ac_ext <<_ACEOF
22355/* end confdefs.h. */
22356#include <$ac_header>
22357_ACEOF
22358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22360 ac_status=$?
22361 grep -v '^ *+' conftest.er1 >conftest.err
22362 rm -f conftest.er1
22363 cat conftest.err >&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); } >/dev/null; then
22366 if test -s conftest.err; then
22367 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22368 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22369 else
22370 ac_cpp_err=
22371 fi
22372else
22373 ac_cpp_err=yes
22374fi
22375if test -z "$ac_cpp_err"; then
22376 ac_header_preproc=yes
22377else
22378 echo "$as_me: failed program was:" >&5
22379sed 's/^/| /' conftest.$ac_ext >&5
22380
22381 ac_header_preproc=no
22382fi
22383rm -f conftest.err conftest.$ac_ext
22384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22385echo "${ECHO_T}$ac_header_preproc" >&6
22386
22387# So? What about this header?
ac1cb8d3
VS
22388case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22389 yes:no: )
a848cd7e
SC
22390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22394 ac_header_preproc=yes
a848cd7e 22395 ;;
ac1cb8d3 22396 no:yes:* )
a848cd7e
SC
22397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22400echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22404echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22409 (
22410 cat <<\_ASBOX
ac1cb8d3
VS
22411## ----------------------------------------- ##
22412## Report this to wx-dev@lists.wxwidgets.org ##
22413## ----------------------------------------- ##
a848cd7e
SC
22414_ASBOX
22415 ) |
22416 sed "s/^/$as_me: WARNING: /" >&2
22417 ;;
22418esac
22419echo "$as_me:$LINENO: checking for $ac_header" >&5
22420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22421if eval "test \"\${$as_ac_Header+set}\" = set"; then
22422 echo $ECHO_N "(cached) $ECHO_C" >&6
22423else
ac1cb8d3 22424 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22425fi
22426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22428
22429fi
22430if test `eval echo '${'$as_ac_Header'}'` = yes; then
22431 cat >>confdefs.h <<_ACEOF
22432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22433_ACEOF
22434
22435fi
22436
22437done
22438
22439
22440 if test "$ac_cv_header_iostream" = "yes" ; then
22441 :
22442 else
22443 cat >>confdefs.h <<\_ACEOF
22444#define wxUSE_IOSTREAMH 1
22445_ACEOF
22446
22447 fi
22448
5d7b7554
VZ
22449 ac_ext=cc
22450ac_cpp='$CXXCPP $CPPFLAGS'
22451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22454
22455
22456
22457
22458 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22459echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22460if test "${wx_cv_cpp_bool+set}" = set; then
22461 echo $ECHO_N "(cached) $ECHO_C" >&6
22462else
22463
22464
22465
22466 ac_ext=cc
22467ac_cpp='$CXXCPP $CPPFLAGS'
22468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22471
22472
22473 cat >conftest.$ac_ext <<_ACEOF
22474/* confdefs.h. */
22475_ACEOF
22476cat confdefs.h >>conftest.$ac_ext
22477cat >>conftest.$ac_ext <<_ACEOF
22478/* end confdefs.h. */
22479
22480
22481int
22482main ()
22483{
22484
22485 bool b = true;
22486
22487 return 0;
22488
22489 ;
22490 return 0;
22491}
22492_ACEOF
22493rm -f conftest.$ac_objext
22494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22495 (eval $ac_compile) 2>conftest.er1
a848cd7e 22496 ac_status=$?
ac1cb8d3
VS
22497 grep -v '^ *+' conftest.er1 >conftest.err
22498 rm -f conftest.er1
22499 cat conftest.err >&5
a848cd7e
SC
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } &&
d25774ab
JS
22502 { ac_try='test -z "$ac_cxx_werror_flag"
22503 || test ! -s conftest.err'
ac1cb8d3
VS
22504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22505 (eval $ac_try) 2>&5
22506 ac_status=$?
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); }; } &&
22509 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22511 (eval $ac_try) 2>&5
22512 ac_status=$?
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); }; }; then
22515
22516 wx_cv_cpp_bool=yes
22517
22518else
22519 echo "$as_me: failed program was:" >&5
22520sed 's/^/| /' conftest.$ac_ext >&5
22521
22522
22523 wx_cv_cpp_bool=no
22524
22525
22526fi
ac1cb8d3 22527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22528
5d7b7554
VZ
22529 ac_ext=cc
22530ac_cpp='$CXXCPP $CPPFLAGS'
22531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22534
22535
22536fi
22537echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22538echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22539
22540 if test "$wx_cv_cpp_bool" = "yes"; then
22541 cat >>confdefs.h <<\_ACEOF
22542#define HAVE_BOOL 1
22543_ACEOF
22544
22545 fi
22546
22547
22548
22549 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22550echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22551if test "${wx_cv_explicit+set}" = set; then
22552 echo $ECHO_N "(cached) $ECHO_C" >&6
22553else
22554
22555
22556
22557 ac_ext=cc
22558ac_cpp='$CXXCPP $CPPFLAGS'
22559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22562
22563
22564 cat >conftest.$ac_ext <<_ACEOF
22565/* confdefs.h. */
22566_ACEOF
22567cat confdefs.h >>conftest.$ac_ext
22568cat >>conftest.$ac_ext <<_ACEOF
22569/* end confdefs.h. */
22570
22571 class Foo { public: explicit Foo(int) {} };
22572
22573int
22574main ()
22575{
22576
22577 return 0;
22578
22579 ;
22580 return 0;
22581}
22582_ACEOF
22583rm -f conftest.$ac_objext
22584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22585 (eval $ac_compile) 2>conftest.er1
a848cd7e 22586 ac_status=$?
ac1cb8d3
VS
22587 grep -v '^ *+' conftest.er1 >conftest.err
22588 rm -f conftest.er1
22589 cat conftest.err >&5
a848cd7e
SC
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); } &&
d25774ab
JS
22592 { ac_try='test -z "$ac_cxx_werror_flag"
22593 || test ! -s conftest.err'
ac1cb8d3
VS
22594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595 (eval $ac_try) 2>&5
22596 ac_status=$?
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; } &&
22599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601 (eval $ac_try) 2>&5
22602 ac_status=$?
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; }; then
22605
22606 cat >conftest.$ac_ext <<_ACEOF
22607/* confdefs.h. */
22608_ACEOF
22609cat confdefs.h >>conftest.$ac_ext
22610cat >>conftest.$ac_ext <<_ACEOF
22611/* end confdefs.h. */
22612
22613 class Foo { public: explicit Foo(int) {} };
22614 static void TakeFoo(const Foo& foo) { }
22615
22616int
22617main ()
22618{
22619
22620 TakeFoo(17);
22621 return 0;
22622
22623 ;
22624 return 0;
22625}
22626_ACEOF
22627rm -f conftest.$ac_objext
22628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22629 (eval $ac_compile) 2>conftest.er1
a848cd7e 22630 ac_status=$?
ac1cb8d3
VS
22631 grep -v '^ *+' conftest.er1 >conftest.err
22632 rm -f conftest.er1
22633 cat conftest.err >&5
a848cd7e
SC
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); } &&
d25774ab
JS
22636 { ac_try='test -z "$ac_cxx_werror_flag"
22637 || test ! -s conftest.err'
ac1cb8d3
VS
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22640 ac_status=$?
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; } &&
22643 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645 (eval $ac_try) 2>&5
22646 ac_status=$?
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); }; }; then
22649 wx_cv_explicit=no
22650else
22651 echo "$as_me: failed program was:" >&5
22652sed 's/^/| /' conftest.$ac_ext >&5
22653
22654wx_cv_explicit=yes
22655
22656fi
ac1cb8d3 22657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22658
22659else
22660 echo "$as_me: failed program was:" >&5
22661sed 's/^/| /' conftest.$ac_ext >&5
22662
22663wx_cv_explicit=no
22664
22665fi
ac1cb8d3 22666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22667
5d7b7554
VZ
22668 ac_ext=cc
22669ac_cpp='$CXXCPP $CPPFLAGS'
22670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22673
22674
22675fi
22676echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22677echo "${ECHO_T}$wx_cv_explicit" >&6
22678
22679 if test "$wx_cv_explicit" = "yes"; then
22680 cat >>confdefs.h <<\_ACEOF
22681#define HAVE_EXPLICIT 1
22682_ACEOF
22683
22684 fi
22685
22686
22687echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22688echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22689if test "${ac_cv_cxx_const_cast+set}" = set; then
22690 echo $ECHO_N "(cached) $ECHO_C" >&6
22691else
22692
22693
22694 ac_ext=cc
22695ac_cpp='$CXXCPP $CPPFLAGS'
22696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22699
22700 cat >conftest.$ac_ext <<_ACEOF
22701/* confdefs.h. */
22702_ACEOF
22703cat confdefs.h >>conftest.$ac_ext
22704cat >>conftest.$ac_ext <<_ACEOF
22705/* end confdefs.h. */
22706
22707int
22708main ()
22709{
22710int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22711 ;
22712 return 0;
22713}
22714_ACEOF
22715rm -f conftest.$ac_objext
22716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22717 (eval $ac_compile) 2>conftest.er1
a848cd7e 22718 ac_status=$?
ac1cb8d3
VS
22719 grep -v '^ *+' conftest.er1 >conftest.err
22720 rm -f conftest.er1
22721 cat conftest.err >&5
a848cd7e
SC
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } &&
d25774ab
JS
22724 { ac_try='test -z "$ac_cxx_werror_flag"
22725 || test ! -s conftest.err'
ac1cb8d3
VS
22726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22727 (eval $ac_try) 2>&5
22728 ac_status=$?
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); }; } &&
22731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733 (eval $ac_try) 2>&5
22734 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; }; then
22737 ac_cv_cxx_const_cast=yes
22738else
22739 echo "$as_me: failed program was:" >&5
22740sed 's/^/| /' conftest.$ac_ext >&5
22741
22742ac_cv_cxx_const_cast=no
22743fi
ac1cb8d3 22744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22745 ac_ext=cc
22746ac_cpp='$CXXCPP $CPPFLAGS'
22747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22750
22751
22752fi
22753echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22754echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22755if test "$ac_cv_cxx_const_cast" = yes; then
22756
22757cat >>confdefs.h <<\_ACEOF
22758#define HAVE_CONST_CAST
22759_ACEOF
22760
22761fi
22762
7714864e
RL
22763echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22764echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22765if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22766 echo $ECHO_N "(cached) $ECHO_C" >&6
22767else
22768
22769
22770 ac_ext=cc
22771ac_cpp='$CXXCPP $CPPFLAGS'
22772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22775
22776 cat >conftest.$ac_ext <<_ACEOF
22777/* confdefs.h. */
22778_ACEOF
22779cat confdefs.h >>conftest.$ac_ext
22780cat >>conftest.$ac_ext <<_ACEOF
22781/* end confdefs.h. */
22782#include <typeinfo>
22783class Base { public : Base () {} virtual void f () = 0;};
22784class Derived : public Base { public : Derived () {} virtual void f () {} };
22785class Unrelated { public : Unrelated () {} };
22786int g (Unrelated&) { return 0; }
22787int
22788main ()
22789{
22790
22791Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22792 ;
22793 return 0;
22794}
22795_ACEOF
22796rm -f conftest.$ac_objext
22797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22798 (eval $ac_compile) 2>conftest.er1
22799 ac_status=$?
22800 grep -v '^ *+' conftest.er1 >conftest.err
22801 rm -f conftest.er1
22802 cat conftest.err >&5
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } &&
d25774ab
JS
22805 { ac_try='test -z "$ac_cxx_werror_flag"
22806 || test ! -s conftest.err'
7714864e
RL
22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808 (eval $ac_try) 2>&5
22809 ac_status=$?
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; } &&
22812 { ac_try='test -s conftest.$ac_objext'
22813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814 (eval $ac_try) 2>&5
22815 ac_status=$?
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); }; }; then
22818 ac_cv_cxx_reinterpret_cast=yes
22819else
22820 echo "$as_me: failed program was:" >&5
22821sed 's/^/| /' conftest.$ac_ext >&5
22822
22823ac_cv_cxx_reinterpret_cast=no
22824fi
22825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22826 ac_ext=cc
22827ac_cpp='$CXXCPP $CPPFLAGS'
22828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
22831
22832
22833fi
22834echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22835echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22836if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22837
22838cat >>confdefs.h <<\_ACEOF
22839#define HAVE_REINTERPRET_CAST
22840_ACEOF
22841
22842fi
22843
a848cd7e
SC
22844echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22845echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22846if test "${ac_cv_cxx_static_cast+set}" = set; then
22847 echo $ECHO_N "(cached) $ECHO_C" >&6
22848else
22849
22850
22851 ac_ext=cc
22852ac_cpp='$CXXCPP $CPPFLAGS'
22853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22856
22857 cat >conftest.$ac_ext <<_ACEOF
22858/* confdefs.h. */
22859_ACEOF
22860cat confdefs.h >>conftest.$ac_ext
22861cat >>conftest.$ac_ext <<_ACEOF
22862/* end confdefs.h. */
22863#include <typeinfo>
22864class Base { public : Base () {} virtual void f () = 0; };
22865class Derived : public Base { public : Derived () {} virtual void f () {} };
22866int g (Derived&) { return 0; }
22867int
22868main ()
22869{
22870
22871Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22872 ;
22873 return 0;
22874}
22875_ACEOF
22876rm -f conftest.$ac_objext
22877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22878 (eval $ac_compile) 2>conftest.er1
a848cd7e 22879 ac_status=$?
ac1cb8d3
VS
22880 grep -v '^ *+' conftest.er1 >conftest.err
22881 rm -f conftest.er1
22882 cat conftest.err >&5
a848cd7e
SC
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } &&
d25774ab
JS
22885 { ac_try='test -z "$ac_cxx_werror_flag"
22886 || test ! -s conftest.err'
ac1cb8d3
VS
22887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); }; } &&
22892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894 (eval $ac_try) 2>&5
22895 ac_status=$?
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; }; then
22898 ac_cv_cxx_static_cast=yes
22899else
22900 echo "$as_me: failed program was:" >&5
22901sed 's/^/| /' conftest.$ac_ext >&5
22902
22903ac_cv_cxx_static_cast=no
22904fi
ac1cb8d3 22905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22906 ac_ext=cc
22907ac_cpp='$CXXCPP $CPPFLAGS'
22908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22911
22912
22913fi
22914echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22915echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22916if test "$ac_cv_cxx_static_cast" = yes; then
22917
22918cat >>confdefs.h <<\_ACEOF
22919#define HAVE_STATIC_CAST
22920_ACEOF
22921
22922fi
22923
22924
3c28b7cb 22925if test "x$SUNCXX" = xyes; then
c92ad099 22926 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22927fi
22928
9122d155 22929if test "x$SUNCC" = xyes; then
c92ad099 22930 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22931fi
22932
0ad5d837 22933if test "x$SGICC" = "xyes"; then
c92ad099 22934 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22935fi
22936if test "x$SGICXX" = "xyes"; then
c92ad099 22937 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22938fi
22939
2eef8513 22940if test "x$HPCC" = "xyes"; then
c92ad099 22941 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22942fi
22943if test "x$HPCXX" = "xyes"; then
c92ad099 22944 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22945fi
22946
22947if test "x$COMPAQCXX" = "xyes"; then
22948 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22949fi
22950
f56c22b4 22951if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
22952 if test "$wxUSE_UNICODE" = "yes"; then
22953 std_string="std::wstring"
22954 char_type="wchar_t"
22955 else
22956 std_string="std::string"
22957 char_type="char"
22958 fi
22959
22960 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22961echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22962 cat >conftest.$ac_ext <<_ACEOF
22963/* confdefs.h. */
22964_ACEOF
22965cat confdefs.h >>conftest.$ac_ext
22966cat >>conftest.$ac_ext <<_ACEOF
22967/* end confdefs.h. */
22968#include <string>
a848cd7e
SC
22969int
22970main ()
22971{
f56c22b4 22972$std_string foo;
a848cd7e
SC
22973 ;
22974 return 0;
22975}
22976_ACEOF
22977rm -f conftest.$ac_objext
22978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22979 (eval $ac_compile) 2>conftest.er1
a848cd7e 22980 ac_status=$?
ac1cb8d3
VS
22981 grep -v '^ *+' conftest.er1 >conftest.err
22982 rm -f conftest.er1
22983 cat conftest.err >&5
a848cd7e
SC
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); } &&
d25774ab
JS
22986 { ac_try='test -z "$ac_cxx_werror_flag"
22987 || test ! -s conftest.err'
ac1cb8d3
VS
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22990 ac_status=$?
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; } &&
22993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995 (eval $ac_try) 2>&5
22996 ac_status=$?
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; }; then
22999 echo "$as_me:$LINENO: result: yes" >&5
23000echo "${ECHO_T}yes" >&6
0a08f02a
MB
23001 cat >>confdefs.h <<\_ACEOF
23002#define HAVE_STD_WSTRING 1
23003_ACEOF
23004
a848cd7e
SC
23005else
23006 echo "$as_me: failed program was:" >&5
23007sed 's/^/| /' conftest.$ac_ext >&5
23008
23009echo "$as_me:$LINENO: result: no" >&5
23010echo "${ECHO_T}no" >&6
f56c22b4
MW
23011 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23012echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23013 cat >conftest.$ac_ext <<_ACEOF
23014/* confdefs.h. */
23015_ACEOF
23016cat confdefs.h >>conftest.$ac_ext
23017cat >>conftest.$ac_ext <<_ACEOF
23018/* end confdefs.h. */
23019
23020 #ifdef HAVE_WCHAR_H
23021 # ifdef __CYGWIN__
23022 # include <stddef.h>
23023 # endif
23024 # include <wchar.h>
23025 #endif
23026 #ifdef HAVE_STDLIB_H
23027 # include <stdlib.h>
23028 #endif
23029 #include <stdio.h>
23030 #include <string>
23031
23032int
23033main ()
23034{
f56c22b4
MW
23035std::basic_string<$char_type> foo;
23036 const $char_type* dummy = foo.c_str();
0a08f02a
MB
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); } &&
d25774ab
JS
23050 { ac_try='test -z "$ac_cxx_werror_flag"
23051 || test ! -s conftest.err'
0a08f02a
MB
23052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053 (eval $ac_try) 2>&5
23054 ac_status=$?
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); }; } &&
23057 { ac_try='test -s conftest.$ac_objext'
23058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059 (eval $ac_try) 2>&5
23060 ac_status=$?
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); }; }; then
23063 echo "$as_me:$LINENO: result: yes" >&5
23064echo "${ECHO_T}yes" >&6
23065else
23066 echo "$as_me: failed program was:" >&5
23067sed 's/^/| /' conftest.$ac_ext >&5
23068
23069echo "$as_me:$LINENO: result: no" >&5
23070echo "${ECHO_T}no" >&6
f56c22b4 23071 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23072 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23073echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23074 { (exit 1); exit 1; }; }
23075 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23076 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23077echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23078 { (exit 1); exit 1; }; }
f56c22b4
MW
23079 else
23080 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23081echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23082 wxUSE_STD_STRING=no
23083 fi
23084
0a08f02a 23085
a848cd7e 23086fi
ac1cb8d3 23087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23088
0a08f02a
MB
23089fi
23090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23091fi
23092
23093if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23094 echo "$as_me:$LINENO: checking for std::istream" >&5
23095echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23096if test "${ac_cv_type_std__istream+set}" = set; then
23097 echo $ECHO_N "(cached) $ECHO_C" >&6
23098else
23099 cat >conftest.$ac_ext <<_ACEOF
23100/* confdefs.h. */
23101_ACEOF
23102cat confdefs.h >>conftest.$ac_ext
23103cat >>conftest.$ac_ext <<_ACEOF
23104/* end confdefs.h. */
23105#include <iostream>
23106
23107int
23108main ()
23109{
23110if ((std::istream *) 0)
23111 return 0;
23112if (sizeof (std::istream))
23113 return 0;
23114 ;
23115 return 0;
23116}
23117_ACEOF
23118rm -f conftest.$ac_objext
23119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23120 (eval $ac_compile) 2>conftest.er1
23121 ac_status=$?
23122 grep -v '^ *+' conftest.er1 >conftest.err
23123 rm -f conftest.er1
23124 cat conftest.err >&5
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); } &&
d25774ab
JS
23127 { ac_try='test -z "$ac_cxx_werror_flag"
23128 || test ! -s conftest.err'
f56c22b4
MW
23129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23130 (eval $ac_try) 2>&5
23131 ac_status=$?
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); }; } &&
23134 { ac_try='test -s conftest.$ac_objext'
23135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23136 (eval $ac_try) 2>&5
23137 ac_status=$?
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); }; }; then
23140 ac_cv_type_std__istream=yes
23141else
23142 echo "$as_me: failed program was:" >&5
23143sed 's/^/| /' conftest.$ac_ext >&5
23144
23145ac_cv_type_std__istream=no
23146fi
23147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23148fi
23149echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23150echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23151if test $ac_cv_type_std__istream = yes; then
23152
23153cat >>confdefs.h <<_ACEOF
23154#define HAVE_STD__ISTREAM 1
23155_ACEOF
23156
23157
23158else
23159 wxUSE_STD_IOSTREAM=no
23160fi
23161echo "$as_me:$LINENO: checking for std::ostream" >&5
23162echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23163if test "${ac_cv_type_std__ostream+set}" = set; then
23164 echo $ECHO_N "(cached) $ECHO_C" >&6
23165else
23166 cat >conftest.$ac_ext <<_ACEOF
23167/* confdefs.h. */
23168_ACEOF
23169cat confdefs.h >>conftest.$ac_ext
23170cat >>conftest.$ac_ext <<_ACEOF
23171/* end confdefs.h. */
23172#include <iostream>
23173
23174int
23175main ()
23176{
23177if ((std::ostream *) 0)
23178 return 0;
23179if (sizeof (std::ostream))
23180 return 0;
23181 ;
23182 return 0;
23183}
23184_ACEOF
23185rm -f conftest.$ac_objext
23186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23187 (eval $ac_compile) 2>conftest.er1
23188 ac_status=$?
23189 grep -v '^ *+' conftest.er1 >conftest.err
23190 rm -f conftest.er1
23191 cat conftest.err >&5
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); } &&
d25774ab
JS
23194 { ac_try='test -z "$ac_cxx_werror_flag"
23195 || test ! -s conftest.err'
f56c22b4
MW
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; } &&
23201 { ac_try='test -s conftest.$ac_objext'
23202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23203 (eval $ac_try) 2>&5
23204 ac_status=$?
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); }; }; then
23207 ac_cv_type_std__ostream=yes
23208else
23209 echo "$as_me: failed program was:" >&5
23210sed 's/^/| /' conftest.$ac_ext >&5
23211
23212ac_cv_type_std__ostream=no
23213fi
23214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23215fi
23216echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23217echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23218if test $ac_cv_type_std__ostream = yes; then
23219
23220cat >>confdefs.h <<_ACEOF
23221#define HAVE_STD__OSTREAM 1
23222_ACEOF
23223
23224
23225else
23226 wxUSE_STD_IOSTREAM=no
23227fi
23228
23229
23230 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23231 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23232 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23233echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23234 { (exit 1); exit 1; }; }
23235 else
23236 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23237echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23238 fi
f56c22b4 23239 fi
0a08f02a
MB
23240fi
23241
23242if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23243 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23244echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23245 cat >conftest.$ac_ext <<_ACEOF
23246/* confdefs.h. */
23247_ACEOF
23248cat confdefs.h >>conftest.$ac_ext
23249cat >>conftest.$ac_ext <<_ACEOF
23250/* end confdefs.h. */
23251#include <string>
0a08f02a
MB
23252 #include <functional>
23253 #include <algorithm>
23254 #include <vector>
23255 #include <list>
a848cd7e
SC
23256int
23257main ()
23258{
0a08f02a
MB
23259std::vector<int> moo;
23260 std::list<int> foo;
23261 std::vector<int>::iterator it =
23262 std::find_if(moo.begin(), moo.end(),
23263 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23264 ;
23265 return 0;
23266}
23267_ACEOF
23268rm -f conftest.$ac_objext
23269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23270 (eval $ac_compile) 2>conftest.er1
a848cd7e 23271 ac_status=$?
ac1cb8d3
VS
23272 grep -v '^ *+' conftest.er1 >conftest.err
23273 rm -f conftest.er1
23274 cat conftest.err >&5
a848cd7e
SC
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); } &&
d25774ab
JS
23277 { ac_try='test -z "$ac_cxx_werror_flag"
23278 || test ! -s conftest.err'
ac1cb8d3
VS
23279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23280 (eval $ac_try) 2>&5
23281 ac_status=$?
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); }; } &&
23284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 echo "$as_me:$LINENO: result: yes" >&5
23291echo "${ECHO_T}yes" >&6
a848cd7e
SC
23292else
23293 echo "$as_me: failed program was:" >&5
23294sed 's/^/| /' conftest.$ac_ext >&5
23295
23296echo "$as_me:$LINENO: result: no" >&5
23297echo "${ECHO_T}no" >&6
0a08f02a
MB
23298 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23299echo "$as_me: error: Basic STL functionality missing" >&2;}
23300 { (exit 1); exit 1; }; }
a848cd7e 23301fi
ac1cb8d3 23302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23303
23304 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23305echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23306 cat >conftest.$ac_ext <<_ACEOF
23307/* confdefs.h. */
23308_ACEOF
23309cat confdefs.h >>conftest.$ac_ext
23310cat >>conftest.$ac_ext <<_ACEOF
23311/* end confdefs.h. */
23312#include <string>
23313int
23314main ()
23315{
23316std::string foo, bar;
23317 foo.compare(bar);
23318 foo.compare(1, 1, bar);
23319 foo.compare(1, 1, bar, 1, 1);
23320 foo.compare("");
23321 foo.compare(1, 1, "");
23322 foo.compare(1, 1, "", 2);
23323 ;
23324 return 0;
23325}
23326_ACEOF
23327rm -f conftest.$ac_objext
23328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23329 (eval $ac_compile) 2>conftest.er1
a848cd7e 23330 ac_status=$?
ac1cb8d3
VS
23331 grep -v '^ *+' conftest.er1 >conftest.err
23332 rm -f conftest.er1
23333 cat conftest.err >&5
a848cd7e
SC
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } &&
d25774ab
JS
23336 { ac_try='test -z "$ac_cxx_werror_flag"
23337 || test ! -s conftest.err'
ac1cb8d3
VS
23338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23339 (eval $ac_try) 2>&5
23340 ac_status=$?
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); }; } &&
23343 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345 (eval $ac_try) 2>&5
23346 ac_status=$?
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; }; then
23349 echo "$as_me:$LINENO: result: yes" >&5
23350echo "${ECHO_T}yes" >&6
23351 cat >>confdefs.h <<\_ACEOF
23352#define HAVE_STD_STRING_COMPARE 1
23353_ACEOF
23354
23355else
23356 echo "$as_me: failed program was:" >&5
23357sed 's/^/| /' conftest.$ac_ext >&5
23358
23359echo "$as_me:$LINENO: result: no" >&5
23360echo "${ECHO_T}no" >&6
23361fi
ac1cb8d3 23362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23363
23364 if test "${ac_cv_header_hash_map+set}" = set; then
23365 echo "$as_me:$LINENO: checking for hash_map" >&5
23366echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23367if test "${ac_cv_header_hash_map+set}" = set; then
23368 echo $ECHO_N "(cached) $ECHO_C" >&6
23369fi
23370echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23371echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23372else
23373 # Is the header compilable?
23374echo "$as_me:$LINENO: checking hash_map usability" >&5
23375echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23376cat >conftest.$ac_ext <<_ACEOF
23377/* confdefs.h. */
23378_ACEOF
23379cat confdefs.h >>conftest.$ac_ext
23380cat >>conftest.$ac_ext <<_ACEOF
23381/* end confdefs.h. */
23382$ac_includes_default
23383#include <hash_map>
23384_ACEOF
23385rm -f conftest.$ac_objext
23386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23387 (eval $ac_compile) 2>conftest.er1
bdcade0a 23388 ac_status=$?
ac1cb8d3
VS
23389 grep -v '^ *+' conftest.er1 >conftest.err
23390 rm -f conftest.er1
23391 cat conftest.err >&5
bdcade0a
MB
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } &&
d25774ab
JS
23394 { ac_try='test -z "$ac_cxx_werror_flag"
23395 || test ! -s conftest.err'
ac1cb8d3
VS
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23398 ac_status=$?
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; } &&
23401 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403 (eval $ac_try) 2>&5
23404 ac_status=$?
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); }; }; then
23407 ac_header_compiler=yes
23408else
23409 echo "$as_me: failed program was:" >&5
23410sed 's/^/| /' conftest.$ac_ext >&5
23411
23412ac_header_compiler=no
23413fi
ac1cb8d3 23414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23416echo "${ECHO_T}$ac_header_compiler" >&6
23417
23418# Is the header present?
23419echo "$as_me:$LINENO: checking hash_map presence" >&5
23420echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23421cat >conftest.$ac_ext <<_ACEOF
23422/* confdefs.h. */
23423_ACEOF
23424cat confdefs.h >>conftest.$ac_ext
23425cat >>conftest.$ac_ext <<_ACEOF
23426/* end confdefs.h. */
23427#include <hash_map>
23428_ACEOF
23429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23431 ac_status=$?
23432 grep -v '^ *+' conftest.er1 >conftest.err
23433 rm -f conftest.er1
23434 cat conftest.err >&5
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); } >/dev/null; then
23437 if test -s conftest.err; then
23438 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23439 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23440 else
23441 ac_cpp_err=
23442 fi
23443else
23444 ac_cpp_err=yes
23445fi
23446if test -z "$ac_cpp_err"; then
23447 ac_header_preproc=yes
23448else
23449 echo "$as_me: failed program was:" >&5
23450sed 's/^/| /' conftest.$ac_ext >&5
23451
23452 ac_header_preproc=no
23453fi
23454rm -f conftest.err conftest.$ac_ext
23455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23456echo "${ECHO_T}$ac_header_preproc" >&6
23457
23458# So? What about this header?
ac1cb8d3
VS
23459case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23460 yes:no: )
bdcade0a
MB
23461 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23462echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23463 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23464echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23465 ac_header_preproc=yes
bdcade0a 23466 ;;
ac1cb8d3 23467 no:yes:* )
bdcade0a
MB
23468 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23469echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23470 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23471echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23472 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23473echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23474 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23475echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23476 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23477echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23478 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23479echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23480 (
23481 cat <<\_ASBOX
ac1cb8d3
VS
23482## ----------------------------------------- ##
23483## Report this to wx-dev@lists.wxwidgets.org ##
23484## ----------------------------------------- ##
bdcade0a
MB
23485_ASBOX
23486 ) |
23487 sed "s/^/$as_me: WARNING: /" >&2
23488 ;;
23489esac
23490echo "$as_me:$LINENO: checking for hash_map" >&5
23491echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23492if test "${ac_cv_header_hash_map+set}" = set; then
23493 echo $ECHO_N "(cached) $ECHO_C" >&6
23494else
23495 ac_cv_header_hash_map=$ac_header_preproc
23496fi
23497echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23498echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23499
23500fi
23501if test $ac_cv_header_hash_map = yes; then
23502 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23503echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23504 cat >conftest.$ac_ext <<_ACEOF
23505/* confdefs.h. */
23506_ACEOF
23507cat confdefs.h >>conftest.$ac_ext
23508cat >>conftest.$ac_ext <<_ACEOF
23509/* end confdefs.h. */
23510#include <hash_map>
23511 #include <hash_set>
23512int
23513main ()
23514{
23515std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23516 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23517 ;
23518 return 0;
23519}
23520_ACEOF
23521rm -f conftest.$ac_objext
23522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23523 (eval $ac_compile) 2>conftest.er1
bdcade0a 23524 ac_status=$?
ac1cb8d3
VS
23525 grep -v '^ *+' conftest.er1 >conftest.err
23526 rm -f conftest.er1
23527 cat conftest.err >&5
bdcade0a
MB
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); } &&
d25774ab
JS
23530 { ac_try='test -z "$ac_cxx_werror_flag"
23531 || test ! -s conftest.err'
ac1cb8d3
VS
23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533 (eval $ac_try) 2>&5
23534 ac_status=$?
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; } &&
23537 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23539 (eval $ac_try) 2>&5
23540 ac_status=$?
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); }; }; then
23543 echo "$as_me:$LINENO: result: yes" >&5
23544echo "${ECHO_T}yes" >&6
23545 cat >>confdefs.h <<\_ACEOF
23546#define HAVE_HASH_MAP 1
23547_ACEOF
23548
23549 cat >>confdefs.h <<\_ACEOF
23550#define HAVE_STD_HASH_MAP 1
23551_ACEOF
23552
23553else
23554 echo "$as_me: failed program was:" >&5
23555sed 's/^/| /' conftest.$ac_ext >&5
23556
23557echo "$as_me:$LINENO: result: no" >&5
23558echo "${ECHO_T}no" >&6
23559fi
ac1cb8d3 23560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23561
23562fi
23563
23564
23565
23566 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23567 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23568echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23569if test "${ac_cv_header_ext_hash_map+set}" = set; then
23570 echo $ECHO_N "(cached) $ECHO_C" >&6
23571fi
23572echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23573echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23574else
23575 # Is the header compilable?
23576echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23577echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23578cat >conftest.$ac_ext <<_ACEOF
23579/* confdefs.h. */
23580_ACEOF
23581cat confdefs.h >>conftest.$ac_ext
23582cat >>conftest.$ac_ext <<_ACEOF
23583/* end confdefs.h. */
23584$ac_includes_default
23585#include <ext/hash_map>
23586_ACEOF
23587rm -f conftest.$ac_objext
23588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23589 (eval $ac_compile) 2>conftest.er1
bdcade0a 23590 ac_status=$?
ac1cb8d3
VS
23591 grep -v '^ *+' conftest.er1 >conftest.err
23592 rm -f conftest.er1
23593 cat conftest.err >&5
bdcade0a
MB
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); } &&
d25774ab
JS
23596 { ac_try='test -z "$ac_cxx_werror_flag"
23597 || test ! -s conftest.err'
ac1cb8d3
VS
23598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23599 (eval $ac_try) 2>&5
23600 ac_status=$?
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); }; } &&
23603 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23605 (eval $ac_try) 2>&5
23606 ac_status=$?
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); }; }; then
23609 ac_header_compiler=yes
23610else
23611 echo "$as_me: failed program was:" >&5
23612sed 's/^/| /' conftest.$ac_ext >&5
23613
23614ac_header_compiler=no
23615fi
ac1cb8d3 23616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23618echo "${ECHO_T}$ac_header_compiler" >&6
23619
23620# Is the header present?
23621echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23622echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23623cat >conftest.$ac_ext <<_ACEOF
23624/* confdefs.h. */
23625_ACEOF
23626cat confdefs.h >>conftest.$ac_ext
23627cat >>conftest.$ac_ext <<_ACEOF
23628/* end confdefs.h. */
23629#include <ext/hash_map>
23630_ACEOF
23631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23633 ac_status=$?
23634 grep -v '^ *+' conftest.er1 >conftest.err
23635 rm -f conftest.er1
23636 cat conftest.err >&5
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); } >/dev/null; then
23639 if test -s conftest.err; then
23640 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23641 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23642 else
23643 ac_cpp_err=
23644 fi
23645else
23646 ac_cpp_err=yes
23647fi
23648if test -z "$ac_cpp_err"; then
23649 ac_header_preproc=yes
23650else
23651 echo "$as_me: failed program was:" >&5
23652sed 's/^/| /' conftest.$ac_ext >&5
23653
23654 ac_header_preproc=no
23655fi
23656rm -f conftest.err conftest.$ac_ext
23657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23658echo "${ECHO_T}$ac_header_preproc" >&6
23659
23660# So? What about this header?
ac1cb8d3
VS
23661case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23662 yes:no: )
bdcade0a
MB
23663 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23664echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23665 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23666echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23667 ac_header_preproc=yes
bdcade0a 23668 ;;
ac1cb8d3 23669 no:yes:* )
bdcade0a
MB
23670 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23671echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23672 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23673echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23674 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23675echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23676 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23677echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23678 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23679echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23680 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23681echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23682 (
23683 cat <<\_ASBOX
ac1cb8d3
VS
23684## ----------------------------------------- ##
23685## Report this to wx-dev@lists.wxwidgets.org ##
23686## ----------------------------------------- ##
bdcade0a
MB
23687_ASBOX
23688 ) |
23689 sed "s/^/$as_me: WARNING: /" >&2
23690 ;;
23691esac
23692echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23693echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23694if test "${ac_cv_header_ext_hash_map+set}" = set; then
23695 echo $ECHO_N "(cached) $ECHO_C" >&6
23696else
23697 ac_cv_header_ext_hash_map=$ac_header_preproc
23698fi
23699echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23700echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23701
23702fi
23703if test $ac_cv_header_ext_hash_map = yes; then
23704 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23705echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23706 cat >conftest.$ac_ext <<_ACEOF
23707/* confdefs.h. */
23708_ACEOF
23709cat confdefs.h >>conftest.$ac_ext
23710cat >>conftest.$ac_ext <<_ACEOF
23711/* end confdefs.h. */
23712#include <ext/hash_map>
23713 #include <ext/hash_set>
23714int
23715main ()
23716{
23717__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23718 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23719 ;
23720 return 0;
23721}
23722_ACEOF
23723rm -f conftest.$ac_objext
23724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23725 (eval $ac_compile) 2>conftest.er1
bdcade0a 23726 ac_status=$?
ac1cb8d3
VS
23727 grep -v '^ *+' conftest.er1 >conftest.err
23728 rm -f conftest.er1
23729 cat conftest.err >&5
bdcade0a
MB
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } &&
d25774ab
JS
23732 { ac_try='test -z "$ac_cxx_werror_flag"
23733 || test ! -s conftest.err'
ac1cb8d3
VS
23734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23735 (eval $ac_try) 2>&5
23736 ac_status=$?
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); }; } &&
23739 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741 (eval $ac_try) 2>&5
23742 ac_status=$?
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); }; }; then
23745 echo "$as_me:$LINENO: result: yes" >&5
23746echo "${ECHO_T}yes" >&6
23747 cat >>confdefs.h <<\_ACEOF
23748#define HAVE_EXT_HASH_MAP 1
23749_ACEOF
23750
23751 cat >>confdefs.h <<\_ACEOF
23752#define HAVE_GNU_CXX_HASH_MAP 1
23753_ACEOF
23754
23755else
23756 echo "$as_me: failed program was:" >&5
23757sed 's/^/| /' conftest.$ac_ext >&5
23758
23759echo "$as_me:$LINENO: result: no" >&5
23760echo "${ECHO_T}no" >&6
23761fi
ac1cb8d3 23762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23763
23764fi
23765
23766
a848cd7e
SC
23767fi
23768
23769
23770SEARCH_INCLUDE="\
23771 /usr/local/include \
23772 \
23773 /usr/Motif-2.1/include \
23774 /usr/Motif-1.2/include \
23775 /usr/include/Motif1.2 \
a848cd7e
SC
23776 \
23777 /usr/dt/include \
23778 /usr/openwin/include \
23779 \
23780 /usr/include/Xm \
23781 \
23782 /usr/X11R6/include \
23783 /usr/X11R6.4/include \
23784 /usr/X11R5/include \
23785 /usr/X11R4/include \
23786 \
23787 /usr/include/X11R6 \
23788 /usr/include/X11R5 \
23789 /usr/include/X11R4 \
23790 \
23791 /usr/local/X11R6/include \
23792 /usr/local/X11R5/include \
23793 /usr/local/X11R4/include \
23794 \
23795 /usr/local/include/X11R6 \
23796 /usr/local/include/X11R5 \
23797 /usr/local/include/X11R4 \
23798 \
23799 /usr/X11/include \
23800 /usr/include/X11 \
23801 /usr/local/X11/include \
23802 /usr/local/include/X11 \
23803 \
a848cd7e 23804 /usr/XFree86/include/X11 \
e051b34e
MW
23805 /usr/pkg/include \
23806 \
a848cd7e
SC
23807 /usr/openwin/share/include"
23808
6f9cf1e6 23809echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23810echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23811
23812case "${host}" in
23813 *-*-irix6* )
23814 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
23816else
23817
c687b303
VZ
23818 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23819 for e in a so sl dylib dll.a; do
23820 libc="$d/libc.$e"
23821 if test -f $libc; then
23822 save_LIBS="$LIBS"
23823 LIBS="$libc"
23824 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23825int main() { return 0; }
23826_ACEOF
23827rm -f conftest.$ac_objext conftest$ac_exeext
23828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23829 (eval $ac_link) 2>conftest.er1
23830 ac_status=$?
23831 grep -v '^ *+' conftest.er1 >conftest.err
23832 rm -f conftest.er1
23833 cat conftest.err >&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } &&
d25774ab
JS
23836 { ac_try='test -z "$ac_cxx_werror_flag"
23837 || test ! -s conftest.err'
0ad5d837
VZ
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23840 ac_status=$?
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; } &&
23843 { ac_try='test -s conftest$ac_exeext'
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23846 ac_status=$?
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; }; then
23849 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23850else
23851 echo "$as_me: failed program was:" >&5
23852sed 's/^/| /' conftest.$ac_ext >&5
23853
23854fi
23855rm -f conftest.err conftest.$ac_objext \
23856 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23857 LIBS="$save_LIBS"
23858 if test "x$wx_cv_std_libpath" != "x"; then
23859 break 2
23860 fi
23861 fi
23862 done
23863 done
23864 if test "x$wx_cv_std_libpath" = "x"; then
23865 wx_cv_std_libpath="lib"
0ad5d837 23866 fi
0ad5d837
VZ
23867
23868
23869fi
6f9cf1e6
MW
23870
23871 ;;
23872
23873 *-*-solaris2* )
23874 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23875 wx_cv_std_libpath="lib/64"
23876 else
23877 wx_cv_std_libpath="lib"
23878 fi
23879 ;;
23880
23881 *-*-linux* )
23882 if test "$ac_cv_sizeof_void_p" = 8 -a \
23883 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23884 wx_cv_std_libpath="lib64"
23885 else
23886 wx_cv_std_libpath="lib"
23887 fi
c687b303
VZ
23888 ;;
23889
23890 *)
23891 wx_cv_std_libpath="lib";
23892 ;;
23893esac
0ad5d837 23894
6f9cf1e6
MW
23895echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23896echo "${ECHO_T}$wx_cv_std_libpath" >&6
23897
23898SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23899
3eca31dc
MW
23900if test "$build" != "$host" -a "$GCC" = yes; then
23901 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23902 cross_root=`dirname $cross_root`
23903 cross_root=`dirname $cross_root`
23904
23905 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23906 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23907 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23908
23909 if test -z "$PKG_CONFIG_PATH"; then
23910 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23911 export PKG_CONFIG_PATH
23912 fi
23913
23914 if test -z "$x_includes" -o "$x_includes" = NONE; then
23915
23916ac_find_includes=
23917for ac_dir in $SEARCH_INCLUDE /usr/include;
23918 do
23919 if test -f "$ac_dir/X11/Intrinsic.h"; then
23920 ac_find_includes=$ac_dir
23921 break
23922 fi
23923 done
23924
23925 x_includes=$ac_find_includes
23926 fi
23927 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23928
0ad5d837
VZ
23929 ac_find_libraries=
23930 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23931 do
23932 for ac_extension in a so sl dylib dll.a; do
23933 if test -f "$ac_dir/libXt.$ac_extension"; then
23934 ac_find_libraries=$ac_dir
23935 break 2
23936 fi
23937 done
23938 done
23939
23940 x_libraries=$ac_find_libraries
23941 fi
23942 fi
23943fi
23944
a848cd7e
SC
23945
23946cat >confcache <<\_ACEOF
23947# This file is a shell script that caches the results of configure
23948# tests run on this system so they can be shared between configure
23949# scripts and configure runs, see configure's option --config-cache.
23950# It is not useful on other systems. If it contains results you don't
23951# want to keep, you may remove or edit it.
23952#
23953# config.status only pays attention to the cache file if you give it
23954# the --recheck option to rerun configure.
23955#
23956# `ac_cv_env_foo' variables (set or unset) will be overridden when
23957# loading this file, other *unset* `ac_cv_foo' will be assigned the
23958# following values.
23959
23960_ACEOF
23961
23962# The following way of writing the cache mishandles newlines in values,
23963# but we know of no workaround that is simple, portable, and efficient.
23964# So, don't put newlines in cache variables' values.
23965# Ultrix sh set writes to stderr and can't be redirected directly,
23966# and sets the high bit in the cache file unless we assign to the vars.
23967{
23968 (set) 2>&1 |
23969 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23970 *ac_space=\ *)
23971 # `set' does not quote correctly, so add quotes (double-quote
23972 # substitution turns \\\\ into \\, and sed turns \\ into \).
23973 sed -n \
ac1cb8d3
VS
23974 "s/'/'\\\\''/g;
23975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23976 ;;
23977 *)
23978 # `set' quotes correctly as required by POSIX, so do not add quotes.
23979 sed -n \
ac1cb8d3 23980 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23981 ;;
23982 esac;
23983} |
23984 sed '
23985 t clear
23986 : clear
23987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23988 t end
23989 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23990 : end' >>confcache
23991if diff $cache_file confcache >/dev/null 2>&1; then :; else
23992 if test -w $cache_file; then
23993 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23994 cat confcache >$cache_file
23995 else
23996 echo "not updating unwritable cache $cache_file"
23997 fi
23998fi
23999rm -f confcache
24000
24001if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24002 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24003echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24004if test "${wx_cv_lib_glibc21+set}" = set; then
24005 echo $ECHO_N "(cached) $ECHO_C" >&6
24006else
24007
24008 cat >conftest.$ac_ext <<_ACEOF
24009/* confdefs.h. */
24010_ACEOF
24011cat confdefs.h >>conftest.$ac_ext
24012cat >>conftest.$ac_ext <<_ACEOF
24013/* end confdefs.h. */
24014#include <features.h>
24015int
24016main ()
24017{
24018
24019 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24020 not glibc 2.1
a848cd7e
SC
24021 #endif
24022
24023 ;
24024 return 0;
24025}
24026_ACEOF
24027rm -f conftest.$ac_objext
24028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24029 (eval $ac_compile) 2>conftest.er1
a848cd7e 24030 ac_status=$?
ac1cb8d3
VS
24031 grep -v '^ *+' conftest.er1 >conftest.err
24032 rm -f conftest.er1
24033 cat conftest.err >&5
a848cd7e
SC
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } &&
d25774ab
JS
24036 { ac_try='test -z "$ac_cxx_werror_flag"
24037 || test ! -s conftest.err'
ac1cb8d3
VS
24038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24039 (eval $ac_try) 2>&5
24040 ac_status=$?
24041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042 (exit $ac_status); }; } &&
24043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24045 (eval $ac_try) 2>&5
24046 ac_status=$?
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); }; }; then
24049
24050 wx_cv_lib_glibc21=yes
24051
24052else
24053 echo "$as_me: failed program was:" >&5
24054sed 's/^/| /' conftest.$ac_ext >&5
24055
24056
24057 wx_cv_lib_glibc21=no
24058
24059
24060fi
ac1cb8d3 24061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24062
24063fi
24064echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24065echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24066 if test "$wx_cv_lib_glibc21" = "yes"; then
24067 cat >>confdefs.h <<\_ACEOF
24068#define wxHAVE_GLIBC2 1
24069_ACEOF
24070
24071 fi
24072fi
24073
24074if test "x$wx_cv_lib_glibc21" = "xyes"; then
24075 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24076 cat >>confdefs.h <<\_ACEOF
24077#define _GNU_SOURCE 1
24078_ACEOF
24079
24080 fi
24081fi
24082
5d7b7554
VZ
24083have_cos=0
24084have_floor=0
a848cd7e 24085
5d7b7554
VZ
24086for ac_func in cos
24087do
24088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24089echo "$as_me:$LINENO: checking for $ac_func" >&5
24090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24091if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24092 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24093else
5d7b7554 24094 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24095/* confdefs.h. */
24096_ACEOF
24097cat confdefs.h >>conftest.$ac_ext
24098cat >>conftest.$ac_ext <<_ACEOF
24099/* end confdefs.h. */
5d7b7554
VZ
24100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24102#define $ac_func innocuous_$ac_func
24103
24104/* System header to define __stub macros and hopefully few prototypes,
24105 which can conflict with char $ac_func (); below.
24106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24107 <limits.h> exists even on freestanding compilers. */
24108
24109#ifdef __STDC__
24110# include <limits.h>
24111#else
24112# include <assert.h>
24113#endif
24114
24115#undef $ac_func
24116
24117/* Override any gcc2 internal prototype to avoid an error. */
24118#ifdef __cplusplus
24119extern "C"
24120{
24121#endif
24122/* We use char because int might match the return type of a gcc2
24123 builtin and then its argument prototype would still apply. */
24124char $ac_func ();
24125/* The GNU C library defines this for functions which it implements
24126 to always fail with ENOSYS. Some functions are actually named
24127 something starting with __ and the normal name is an alias. */
24128#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24129choke me
24130#else
24131char (*f) () = $ac_func;
24132#endif
24133#ifdef __cplusplus
24134}
24135#endif
24136
24137int
24138main ()
24139{
24140return f != $ac_func;
24141 ;
24142 return 0;
24143}
a848cd7e 24144_ACEOF
5d7b7554
VZ
24145rm -f conftest.$ac_objext conftest$ac_exeext
24146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24147 (eval $ac_link) 2>conftest.er1
a848cd7e 24148 ac_status=$?
ac1cb8d3
VS
24149 grep -v '^ *+' conftest.er1 >conftest.err
24150 rm -f conftest.er1
24151 cat conftest.err >&5
a848cd7e
SC
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); } &&
d25774ab
JS
24154 { ac_try='test -z "$ac_cxx_werror_flag"
24155 || test ! -s conftest.err'
ac1cb8d3
VS
24156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24157 (eval $ac_try) 2>&5
24158 ac_status=$?
24159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160 (exit $ac_status); }; } &&
5d7b7554 24161 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24163 (eval $ac_try) 2>&5
24164 ac_status=$?
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); }; }; then
5d7b7554 24167 eval "$as_ac_var=yes"
a848cd7e
SC
24168else
24169 echo "$as_me: failed program was:" >&5
24170sed 's/^/| /' conftest.$ac_ext >&5
24171
5d7b7554 24172eval "$as_ac_var=no"
a848cd7e 24173fi
5d7b7554
VZ
24174rm -f conftest.err conftest.$ac_objext \
24175 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24176fi
5d7b7554
VZ
24177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24178echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24179if test `eval echo '${'$as_ac_var'}'` = yes; then
24180 cat >>confdefs.h <<_ACEOF
24181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24182_ACEOF
24183 have_cos=1
a848cd7e 24184fi
5d7b7554 24185done
a848cd7e 24186
ab0f0edd 24187
5d7b7554 24188for ac_func in floor
a848cd7e
SC
24189do
24190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24191echo "$as_me:$LINENO: checking for $ac_func" >&5
24192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24193if eval "test \"\${$as_ac_var+set}\" = set"; then
24194 echo $ECHO_N "(cached) $ECHO_C" >&6
24195else
24196 cat >conftest.$ac_ext <<_ACEOF
24197/* confdefs.h. */
24198_ACEOF
24199cat confdefs.h >>conftest.$ac_ext
24200cat >>conftest.$ac_ext <<_ACEOF
24201/* end confdefs.h. */
ac1cb8d3
VS
24202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24204#define $ac_func innocuous_$ac_func
24205
a848cd7e
SC
24206/* System header to define __stub macros and hopefully few prototypes,
24207 which can conflict with char $ac_func (); below.
24208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24209 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24210
a848cd7e
SC
24211#ifdef __STDC__
24212# include <limits.h>
24213#else
24214# include <assert.h>
24215#endif
ac1cb8d3
VS
24216
24217#undef $ac_func
24218
a848cd7e
SC
24219/* Override any gcc2 internal prototype to avoid an error. */
24220#ifdef __cplusplus
24221extern "C"
24222{
24223#endif
24224/* We use char because int might match the return type of a gcc2
24225 builtin and then its argument prototype would still apply. */
24226char $ac_func ();
24227/* The GNU C library defines this for functions which it implements
24228 to always fail with ENOSYS. Some functions are actually named
24229 something starting with __ and the normal name is an alias. */
24230#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24231choke me
24232#else
24233char (*f) () = $ac_func;
24234#endif
24235#ifdef __cplusplus
24236}
24237#endif
24238
24239int
24240main ()
24241{
24242return f != $ac_func;
24243 ;
24244 return 0;
24245}
24246_ACEOF
24247rm -f conftest.$ac_objext conftest$ac_exeext
24248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24249 (eval $ac_link) 2>conftest.er1
a848cd7e 24250 ac_status=$?
ac1cb8d3
VS
24251 grep -v '^ *+' conftest.er1 >conftest.err
24252 rm -f conftest.er1
24253 cat conftest.err >&5
a848cd7e
SC
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } &&
d25774ab
JS
24256 { ac_try='test -z "$ac_cxx_werror_flag"
24257 || test ! -s conftest.err'
5d7b7554
VZ
24258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259 (eval $ac_try) 2>&5
24260 ac_status=$?
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); }; } &&
24263 { ac_try='test -s conftest$ac_exeext'
24264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265 (eval $ac_try) 2>&5
24266 ac_status=$?
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; }; then
24269 eval "$as_ac_var=yes"
24270else
24271 echo "$as_me: failed program was:" >&5
24272sed 's/^/| /' conftest.$ac_ext >&5
24273
24274eval "$as_ac_var=no"
24275fi
24276rm -f conftest.err conftest.$ac_objext \
24277 conftest$ac_exeext conftest.$ac_ext
24278fi
24279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24280echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24281if test `eval echo '${'$as_ac_var'}'` = yes; then
24282 cat >>confdefs.h <<_ACEOF
24283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24284_ACEOF
24285 have_floor=1
24286fi
24287done
24288
24289echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24290echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24291if test "$have_cos" = 1 -a "$have_floor" = 1; then
24292 echo "$as_me:$LINENO: result: yes" >&5
24293echo "${ECHO_T}yes" >&6
24294else
24295 echo "$as_me:$LINENO: result: no" >&5
24296echo "${ECHO_T}no" >&6
24297 LIBS="$LIBS -lm"
24298 # use different functions to avoid configure caching
24299 have_sin=0
24300 have_ceil=0
24301
24302for ac_func in sin
24303do
24304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24305echo "$as_me:$LINENO: checking for $ac_func" >&5
24306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24307if eval "test \"\${$as_ac_var+set}\" = set"; then
24308 echo $ECHO_N "(cached) $ECHO_C" >&6
24309else
24310 cat >conftest.$ac_ext <<_ACEOF
24311/* confdefs.h. */
24312_ACEOF
24313cat confdefs.h >>conftest.$ac_ext
24314cat >>conftest.$ac_ext <<_ACEOF
24315/* end confdefs.h. */
24316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24318#define $ac_func innocuous_$ac_func
24319
24320/* System header to define __stub macros and hopefully few prototypes,
24321 which can conflict with char $ac_func (); below.
24322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24323 <limits.h> exists even on freestanding compilers. */
24324
24325#ifdef __STDC__
24326# include <limits.h>
24327#else
24328# include <assert.h>
24329#endif
24330
24331#undef $ac_func
24332
24333/* Override any gcc2 internal prototype to avoid an error. */
24334#ifdef __cplusplus
24335extern "C"
24336{
24337#endif
24338/* We use char because int might match the return type of a gcc2
24339 builtin and then its argument prototype would still apply. */
24340char $ac_func ();
24341/* The GNU C library defines this for functions which it implements
24342 to always fail with ENOSYS. Some functions are actually named
24343 something starting with __ and the normal name is an alias. */
24344#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24345choke me
24346#else
24347char (*f) () = $ac_func;
24348#endif
24349#ifdef __cplusplus
24350}
24351#endif
24352
24353int
24354main ()
24355{
24356return f != $ac_func;
24357 ;
24358 return 0;
24359}
24360_ACEOF
24361rm -f conftest.$ac_objext conftest$ac_exeext
24362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24363 (eval $ac_link) 2>conftest.er1
24364 ac_status=$?
24365 grep -v '^ *+' conftest.er1 >conftest.err
24366 rm -f conftest.er1
24367 cat conftest.err >&5
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); } &&
d25774ab
JS
24370 { ac_try='test -z "$ac_cxx_werror_flag"
24371 || test ! -s conftest.err'
5d7b7554
VZ
24372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); }; } &&
24377 { ac_try='test -s conftest$ac_exeext'
24378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379 (eval $ac_try) 2>&5
24380 ac_status=$?
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; }; then
24383 eval "$as_ac_var=yes"
24384else
24385 echo "$as_me: failed program was:" >&5
24386sed 's/^/| /' conftest.$ac_ext >&5
24387
24388eval "$as_ac_var=no"
24389fi
24390rm -f conftest.err conftest.$ac_objext \
24391 conftest$ac_exeext conftest.$ac_ext
24392fi
24393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24394echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24395if test `eval echo '${'$as_ac_var'}'` = yes; then
24396 cat >>confdefs.h <<_ACEOF
24397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24398_ACEOF
24399 have_sin=1
24400fi
24401done
24402
24403
24404for ac_func in ceil
24405do
24406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24407echo "$as_me:$LINENO: checking for $ac_func" >&5
24408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24409if eval "test \"\${$as_ac_var+set}\" = set"; then
24410 echo $ECHO_N "(cached) $ECHO_C" >&6
24411else
24412 cat >conftest.$ac_ext <<_ACEOF
24413/* confdefs.h. */
24414_ACEOF
24415cat confdefs.h >>conftest.$ac_ext
24416cat >>conftest.$ac_ext <<_ACEOF
24417/* end confdefs.h. */
24418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24420#define $ac_func innocuous_$ac_func
24421
24422/* System header to define __stub macros and hopefully few prototypes,
24423 which can conflict with char $ac_func (); below.
24424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24425 <limits.h> exists even on freestanding compilers. */
24426
24427#ifdef __STDC__
24428# include <limits.h>
24429#else
24430# include <assert.h>
24431#endif
24432
24433#undef $ac_func
24434
24435/* Override any gcc2 internal prototype to avoid an error. */
24436#ifdef __cplusplus
24437extern "C"
24438{
24439#endif
24440/* We use char because int might match the return type of a gcc2
24441 builtin and then its argument prototype would still apply. */
24442char $ac_func ();
24443/* The GNU C library defines this for functions which it implements
24444 to always fail with ENOSYS. Some functions are actually named
24445 something starting with __ and the normal name is an alias. */
24446#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24447choke me
24448#else
24449char (*f) () = $ac_func;
24450#endif
24451#ifdef __cplusplus
24452}
24453#endif
24454
24455int
24456main ()
24457{
24458return f != $ac_func;
24459 ;
24460 return 0;
24461}
24462_ACEOF
24463rm -f conftest.$ac_objext conftest$ac_exeext
24464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24465 (eval $ac_link) 2>conftest.er1
24466 ac_status=$?
24467 grep -v '^ *+' conftest.er1 >conftest.err
24468 rm -f conftest.er1
24469 cat conftest.err >&5
24470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471 (exit $ac_status); } &&
d25774ab
JS
24472 { ac_try='test -z "$ac_cxx_werror_flag"
24473 || test ! -s conftest.err'
5d7b7554
VZ
24474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24475 (eval $ac_try) 2>&5
24476 ac_status=$?
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); }; } &&
24479 { ac_try='test -s conftest$ac_exeext'
24480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24481 (eval $ac_try) 2>&5
24482 ac_status=$?
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); }; }; then
24485 eval "$as_ac_var=yes"
24486else
24487 echo "$as_me: failed program was:" >&5
24488sed 's/^/| /' conftest.$ac_ext >&5
24489
24490eval "$as_ac_var=no"
24491fi
24492rm -f conftest.err conftest.$ac_objext \
24493 conftest$ac_exeext conftest.$ac_ext
24494fi
24495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24496echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24497if test `eval echo '${'$as_ac_var'}'` = yes; then
24498 cat >>confdefs.h <<_ACEOF
24499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24500_ACEOF
24501 have_ceil=1
24502fi
24503done
24504
24505 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24506echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24507 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24508 echo "$as_me:$LINENO: result: yes" >&5
24509echo "${ECHO_T}yes" >&6
24510 else
24511 echo "$as_me:$LINENO: result: no" >&5
24512echo "${ECHO_T}no" >&6
24513 # not sure we should warn the user, crash, etc.
24514 fi
24515fi
24516
24517
24518
24519if test "$wxUSE_REGEX" != "no"; then
24520 cat >>confdefs.h <<\_ACEOF
24521#define wxUSE_REGEX 1
24522_ACEOF
24523
24524
24525 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24526 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24527echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24528 wxUSE_REGEX=builtin
24529 fi
24530
24531 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24532 if test "${ac_cv_header_regex_h+set}" = set; then
24533 echo "$as_me:$LINENO: checking for regex.h" >&5
24534echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24535if test "${ac_cv_header_regex_h+set}" = set; then
24536 echo $ECHO_N "(cached) $ECHO_C" >&6
24537fi
24538echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24539echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24540else
24541 # Is the header compilable?
24542echo "$as_me:$LINENO: checking regex.h usability" >&5
24543echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24544cat >conftest.$ac_ext <<_ACEOF
24545/* confdefs.h. */
24546_ACEOF
24547cat confdefs.h >>conftest.$ac_ext
24548cat >>conftest.$ac_ext <<_ACEOF
24549/* end confdefs.h. */
24550$ac_includes_default
24551#include <regex.h>
24552_ACEOF
24553rm -f conftest.$ac_objext
24554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24555 (eval $ac_compile) 2>conftest.er1
24556 ac_status=$?
24557 grep -v '^ *+' conftest.er1 >conftest.err
24558 rm -f conftest.er1
24559 cat conftest.err >&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } &&
d25774ab
JS
24562 { ac_try='test -z "$ac_cxx_werror_flag"
24563 || test ! -s conftest.err'
5d7b7554
VZ
24564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565 (eval $ac_try) 2>&5
24566 ac_status=$?
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; } &&
24569 { ac_try='test -s conftest.$ac_objext'
24570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24571 (eval $ac_try) 2>&5
24572 ac_status=$?
24573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574 (exit $ac_status); }; }; then
24575 ac_header_compiler=yes
24576else
24577 echo "$as_me: failed program was:" >&5
24578sed 's/^/| /' conftest.$ac_ext >&5
24579
24580ac_header_compiler=no
24581fi
24582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24584echo "${ECHO_T}$ac_header_compiler" >&6
24585
24586# Is the header present?
24587echo "$as_me:$LINENO: checking regex.h presence" >&5
24588echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24589cat >conftest.$ac_ext <<_ACEOF
24590/* confdefs.h. */
24591_ACEOF
24592cat confdefs.h >>conftest.$ac_ext
24593cat >>conftest.$ac_ext <<_ACEOF
24594/* end confdefs.h. */
24595#include <regex.h>
24596_ACEOF
24597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24599 ac_status=$?
24600 grep -v '^ *+' conftest.er1 >conftest.err
24601 rm -f conftest.er1
24602 cat conftest.err >&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } >/dev/null; then
24605 if test -s conftest.err; then
24606 ac_cpp_err=$ac_cxx_preproc_warn_flag
24607 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24608 else
24609 ac_cpp_err=
24610 fi
24611else
24612 ac_cpp_err=yes
24613fi
24614if test -z "$ac_cpp_err"; then
24615 ac_header_preproc=yes
24616else
24617 echo "$as_me: failed program was:" >&5
24618sed 's/^/| /' conftest.$ac_ext >&5
24619
24620 ac_header_preproc=no
24621fi
24622rm -f conftest.err conftest.$ac_ext
24623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24624echo "${ECHO_T}$ac_header_preproc" >&6
24625
24626# So? What about this header?
24627case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24628 yes:no: )
24629 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24630echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24631 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24632echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24633 ac_header_preproc=yes
24634 ;;
24635 no:yes:* )
24636 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24637echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24638 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24639echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24640 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24641echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24642 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24643echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24644 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24645echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24646 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24647echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24648 (
24649 cat <<\_ASBOX
24650## ----------------------------------------- ##
24651## Report this to wx-dev@lists.wxwidgets.org ##
24652## ----------------------------------------- ##
24653_ASBOX
24654 ) |
24655 sed "s/^/$as_me: WARNING: /" >&2
24656 ;;
24657esac
24658echo "$as_me:$LINENO: checking for regex.h" >&5
24659echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24660if test "${ac_cv_header_regex_h+set}" = set; then
24661 echo $ECHO_N "(cached) $ECHO_C" >&6
24662else
24663 ac_cv_header_regex_h=$ac_header_preproc
24664fi
24665echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24666echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24667
24668fi
24669if test $ac_cv_header_regex_h = yes; then
24670
24671
24672for ac_func in regcomp re_search
24673do
24674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24675echo "$as_me:$LINENO: checking for $ac_func" >&5
24676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24677if eval "test \"\${$as_ac_var+set}\" = set"; then
24678 echo $ECHO_N "(cached) $ECHO_C" >&6
24679else
24680 cat >conftest.$ac_ext <<_ACEOF
24681/* confdefs.h. */
24682_ACEOF
24683cat confdefs.h >>conftest.$ac_ext
24684cat >>conftest.$ac_ext <<_ACEOF
24685/* end confdefs.h. */
24686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24688#define $ac_func innocuous_$ac_func
24689
24690/* System header to define __stub macros and hopefully few prototypes,
24691 which can conflict with char $ac_func (); below.
24692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24693 <limits.h> exists even on freestanding compilers. */
24694
24695#ifdef __STDC__
24696# include <limits.h>
24697#else
24698# include <assert.h>
24699#endif
24700
24701#undef $ac_func
24702
24703/* Override any gcc2 internal prototype to avoid an error. */
24704#ifdef __cplusplus
24705extern "C"
24706{
24707#endif
24708/* We use char because int might match the return type of a gcc2
24709 builtin and then its argument prototype would still apply. */
24710char $ac_func ();
24711/* The GNU C library defines this for functions which it implements
24712 to always fail with ENOSYS. Some functions are actually named
24713 something starting with __ and the normal name is an alias. */
24714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24715choke me
24716#else
24717char (*f) () = $ac_func;
24718#endif
24719#ifdef __cplusplus
24720}
24721#endif
24722
24723int
24724main ()
24725{
24726return f != $ac_func;
24727 ;
24728 return 0;
24729}
24730_ACEOF
24731rm -f conftest.$ac_objext conftest$ac_exeext
24732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24733 (eval $ac_link) 2>conftest.er1
24734 ac_status=$?
24735 grep -v '^ *+' conftest.er1 >conftest.err
24736 rm -f conftest.er1
24737 cat conftest.err >&5
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); } &&
d25774ab
JS
24740 { ac_try='test -z "$ac_cxx_werror_flag"
24741 || test ! -s conftest.err'
ac1cb8d3
VS
24742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24743 (eval $ac_try) 2>&5
24744 ac_status=$?
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); }; } &&
24747 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24749 (eval $ac_try) 2>&5
24750 ac_status=$?
24751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752 (exit $ac_status); }; }; then
24753 eval "$as_ac_var=yes"
24754else
24755 echo "$as_me: failed program was:" >&5
24756sed 's/^/| /' conftest.$ac_ext >&5
24757
24758eval "$as_ac_var=no"
24759fi
ac1cb8d3
VS
24760rm -f conftest.err conftest.$ac_objext \
24761 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24762fi
24763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24765if test `eval echo '${'$as_ac_var'}'` = yes; then
24766 cat >>confdefs.h <<_ACEOF
24767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24768_ACEOF
24769
24770fi
24771done
24772
24773fi
24774
24775
24776
24777 if test "x$ac_cv_func_regcomp" != "xyes"; then
24778 if test "$wxUSE_REGEX" = "sys" ; then
24779 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24780echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24781 { (exit 1); exit 1; }; }
24782 else
24783 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24784echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24785 wxUSE_REGEX=builtin
24786 fi
24787 else
24788 wxUSE_REGEX=sys
24789 cat >>confdefs.h <<\_ACEOF
24790#define WX_NO_REGEX_ADVANCED 1
24791_ACEOF
24792
24793 fi
24794 fi
24795fi
24796
24797
24798ZLIB_LINK=
24799if test "$wxUSE_ZLIB" != "no" ; then
24800 cat >>confdefs.h <<\_ACEOF
24801#define wxUSE_ZLIB 1
24802_ACEOF
24803
24804
24805 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24806 if test "$USE_DARWIN" = 1; then
24807 system_zlib_h_ok="yes"
24808 else
24809 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24810echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24811if test "${ac_cv_header_zlib_h+set}" = set; then
24812 echo $ECHO_N "(cached) $ECHO_C" >&6
24813else
24814 if test "$cross_compiling" = yes; then
24815 unset ac_cv_header_zlib_h
24816
24817else
24818 cat >conftest.$ac_ext <<_ACEOF
24819/* confdefs.h. */
24820_ACEOF
24821cat confdefs.h >>conftest.$ac_ext
24822cat >>conftest.$ac_ext <<_ACEOF
24823/* end confdefs.h. */
24824
24825 #include <zlib.h>
24826 #include <stdio.h>
24827
24828 int main()
24829 {
24830 FILE *f=fopen("conftestval", "w");
24831 if (!f) exit(1);
24832 fprintf(f, "%s",
24833 ZLIB_VERSION[0] == '1' &&
24834 (ZLIB_VERSION[2] > '1' ||
24835 (ZLIB_VERSION[2] == '1' &&
24836 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24837 exit(0);
24838 }
24839
24840_ACEOF
24841rm -f conftest$ac_exeext
24842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24843 (eval $ac_link) 2>&5
24844 ac_status=$?
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848 (eval $ac_try) 2>&5
24849 ac_status=$?
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); }; }; then
24852 ac_cv_header_zlib_h=`cat conftestval`
24853else
24854 echo "$as_me: program exited with status $ac_status" >&5
24855echo "$as_me: failed program was:" >&5
24856sed 's/^/| /' conftest.$ac_ext >&5
24857
24858( exit $ac_status )
24859ac_cv_header_zlib_h=no
24860fi
ac1cb8d3 24861rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24862fi
24863
24864fi
24865echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24866echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24867 if test "${ac_cv_header_zlib_h+set}" = set; then
24868 echo "$as_me:$LINENO: checking for zlib.h" >&5
24869echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24870if test "${ac_cv_header_zlib_h+set}" = set; then
24871 echo $ECHO_N "(cached) $ECHO_C" >&6
24872fi
24873echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24874echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24875else
24876 # Is the header compilable?
24877echo "$as_me:$LINENO: checking zlib.h usability" >&5
24878echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24879cat >conftest.$ac_ext <<_ACEOF
24880/* confdefs.h. */
24881_ACEOF
24882cat confdefs.h >>conftest.$ac_ext
24883cat >>conftest.$ac_ext <<_ACEOF
24884/* end confdefs.h. */
24885$ac_includes_default
24886#include <zlib.h>
24887_ACEOF
24888rm -f conftest.$ac_objext
24889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24890 (eval $ac_compile) 2>conftest.er1
a848cd7e 24891 ac_status=$?
ac1cb8d3
VS
24892 grep -v '^ *+' conftest.er1 >conftest.err
24893 rm -f conftest.er1
24894 cat conftest.err >&5
a848cd7e
SC
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } &&
d25774ab
JS
24897 { ac_try='test -z "$ac_cxx_werror_flag"
24898 || test ! -s conftest.err'
ac1cb8d3
VS
24899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900 (eval $ac_try) 2>&5
24901 ac_status=$?
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; } &&
24904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24906 (eval $ac_try) 2>&5
24907 ac_status=$?
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); }; }; then
24910 ac_header_compiler=yes
24911else
24912 echo "$as_me: failed program was:" >&5
24913sed 's/^/| /' conftest.$ac_ext >&5
24914
24915ac_header_compiler=no
24916fi
ac1cb8d3 24917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24918echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24919echo "${ECHO_T}$ac_header_compiler" >&6
24920
24921# Is the header present?
24922echo "$as_me:$LINENO: checking zlib.h presence" >&5
24923echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24924cat >conftest.$ac_ext <<_ACEOF
24925/* confdefs.h. */
24926_ACEOF
24927cat confdefs.h >>conftest.$ac_ext
24928cat >>conftest.$ac_ext <<_ACEOF
24929/* end confdefs.h. */
24930#include <zlib.h>
24931_ACEOF
24932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24934 ac_status=$?
24935 grep -v '^ *+' conftest.er1 >conftest.err
24936 rm -f conftest.er1
24937 cat conftest.err >&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); } >/dev/null; then
24940 if test -s conftest.err; then
5d7b7554
VZ
24941 ac_cpp_err=$ac_cxx_preproc_warn_flag
24942 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
24943 else
24944 ac_cpp_err=
24945 fi
24946else
24947 ac_cpp_err=yes
24948fi
24949if test -z "$ac_cpp_err"; then
24950 ac_header_preproc=yes
24951else
24952 echo "$as_me: failed program was:" >&5
24953sed 's/^/| /' conftest.$ac_ext >&5
24954
24955 ac_header_preproc=no
24956fi
24957rm -f conftest.err conftest.$ac_ext
24958echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24959echo "${ECHO_T}$ac_header_preproc" >&6
24960
24961# So? What about this header?
5d7b7554 24962case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 24963 yes:no: )
a848cd7e
SC
24964 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24965echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24966 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24967echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24968 ac_header_preproc=yes
a848cd7e 24969 ;;
ac1cb8d3 24970 no:yes:* )
a848cd7e
SC
24971 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24972echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24973 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24974echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24975 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24976echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24977 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24978echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24979 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24980echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24981 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24982echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24983 (
24984 cat <<\_ASBOX
ac1cb8d3
VS
24985## ----------------------------------------- ##
24986## Report this to wx-dev@lists.wxwidgets.org ##
24987## ----------------------------------------- ##
a848cd7e
SC
24988_ASBOX
24989 ) |
24990 sed "s/^/$as_me: WARNING: /" >&2
24991 ;;
24992esac
24993echo "$as_me:$LINENO: checking for zlib.h" >&5
24994echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24995if test "${ac_cv_header_zlib_h+set}" = set; then
24996 echo $ECHO_N "(cached) $ECHO_C" >&6
24997else
24998 ac_cv_header_zlib_h=$ac_header_preproc
24999fi
25000echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25001echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25002
25003fi
25004
25005
25006
25007 system_zlib_h_ok=$ac_cv_header_zlib_h
25008 fi
25009
25010 if test "$system_zlib_h_ok" = "yes"; then
25011 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25012echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25013if test "${ac_cv_lib_z_deflate+set}" = set; then
25014 echo $ECHO_N "(cached) $ECHO_C" >&6
25015else
25016 ac_check_lib_save_LIBS=$LIBS
25017LIBS="-lz $LIBS"
25018cat >conftest.$ac_ext <<_ACEOF
25019/* confdefs.h. */
25020_ACEOF
25021cat confdefs.h >>conftest.$ac_ext
25022cat >>conftest.$ac_ext <<_ACEOF
25023/* end confdefs.h. */
25024
25025/* Override any gcc2 internal prototype to avoid an error. */
25026#ifdef __cplusplus
25027extern "C"
25028#endif
25029/* We use char because int might match the return type of a gcc2
25030 builtin and then its argument prototype would still apply. */
25031char deflate ();
25032int
25033main ()
25034{
25035deflate ();
25036 ;
25037 return 0;
25038}
25039_ACEOF
25040rm -f conftest.$ac_objext conftest$ac_exeext
25041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25042 (eval $ac_link) 2>conftest.er1
a848cd7e 25043 ac_status=$?
ac1cb8d3
VS
25044 grep -v '^ *+' conftest.er1 >conftest.err
25045 rm -f conftest.er1
25046 cat conftest.err >&5
a848cd7e
SC
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); } &&
d25774ab
JS
25049 { ac_try='test -z "$ac_cxx_werror_flag"
25050 || test ! -s conftest.err'
ac1cb8d3
VS
25051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25052 (eval $ac_try) 2>&5
25053 ac_status=$?
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); }; } &&
25056 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); }; }; then
25062 ac_cv_lib_z_deflate=yes
25063else
25064 echo "$as_me: failed program was:" >&5
25065sed 's/^/| /' conftest.$ac_ext >&5
25066
25067ac_cv_lib_z_deflate=no
25068fi
ac1cb8d3
VS
25069rm -f conftest.err conftest.$ac_objext \
25070 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25071LIBS=$ac_check_lib_save_LIBS
25072fi
25073echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25074echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25075if test $ac_cv_lib_z_deflate = yes; then
25076 ZLIB_LINK=" -lz"
25077fi
25078
25079 fi
25080
25081 if test "x$ZLIB_LINK" = "x" ; then
25082 if test "$wxUSE_ZLIB" = "sys" ; then
25083 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25084echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25085 { (exit 1); exit 1; }; }
25086 else
25087 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25088echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25089 wxUSE_ZLIB=builtin
25090 fi
25091 else
25092 wxUSE_ZLIB=sys
25093 fi
25094 fi
25095fi
25096
25097
25098PNG_LINK=
25099if test "$wxUSE_LIBPNG" != "no" ; then
25100 cat >>confdefs.h <<\_ACEOF
25101#define wxUSE_LIBPNG 1
25102_ACEOF
25103
25104
25105 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25106 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25107echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25108 wxUSE_LIBPNG=sys
25109 fi
25110
25111 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25112 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25113echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25114 wxUSE_LIBPNG=builtin
25115 fi
25116
25117 if test "$wxUSE_MGL" != 1 ; then
25118 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25119 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25120echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25121if test "${ac_cv_header_png_h+set}" = set; then
25122 echo $ECHO_N "(cached) $ECHO_C" >&6
25123else
25124 if test "$cross_compiling" = yes; then
25125 unset ac_cv_header_png_h
25126
25127else
25128 cat >conftest.$ac_ext <<_ACEOF
25129/* confdefs.h. */
25130_ACEOF
25131cat confdefs.h >>conftest.$ac_ext
25132cat >>conftest.$ac_ext <<_ACEOF
25133/* end confdefs.h. */
25134
25135 #include <png.h>
25136 #include <stdio.h>
25137
25138 int main()
25139 {
25140 FILE *f=fopen("conftestval", "w");
25141 if (!f) exit(1);
25142 fprintf(f, "%s",
25143 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25144 exit(0);
25145 }
25146
25147_ACEOF
25148rm -f conftest$ac_exeext
25149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25150 (eval $ac_link) 2>&5
25151 ac_status=$?
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25155 (eval $ac_try) 2>&5
25156 ac_status=$?
25157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); }; }; then
25159 ac_cv_header_png_h=`cat conftestval`
25160else
25161 echo "$as_me: program exited with status $ac_status" >&5
25162echo "$as_me: failed program was:" >&5
25163sed 's/^/| /' conftest.$ac_ext >&5
25164
25165( exit $ac_status )
25166ac_cv_header_png_h=no
25167fi
ac1cb8d3 25168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25169fi
25170
25171fi
25172echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25173echo "${ECHO_T}$ac_cv_header_png_h" >&6
25174 if test "${ac_cv_header_png_h+set}" = set; then
25175 echo "$as_me:$LINENO: checking for png.h" >&5
25176echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25177if test "${ac_cv_header_png_h+set}" = set; then
25178 echo $ECHO_N "(cached) $ECHO_C" >&6
25179fi
25180echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25181echo "${ECHO_T}$ac_cv_header_png_h" >&6
25182else
25183 # Is the header compilable?
25184echo "$as_me:$LINENO: checking png.h usability" >&5
25185echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25186cat >conftest.$ac_ext <<_ACEOF
25187/* confdefs.h. */
25188_ACEOF
25189cat confdefs.h >>conftest.$ac_ext
25190cat >>conftest.$ac_ext <<_ACEOF
25191/* end confdefs.h. */
25192$ac_includes_default
25193#include <png.h>
25194_ACEOF
25195rm -f conftest.$ac_objext
25196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25197 (eval $ac_compile) 2>conftest.er1
a848cd7e 25198 ac_status=$?
ac1cb8d3
VS
25199 grep -v '^ *+' conftest.er1 >conftest.err
25200 rm -f conftest.er1
25201 cat conftest.err >&5
a848cd7e
SC
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } &&
d25774ab
JS
25204 { ac_try='test -z "$ac_cxx_werror_flag"
25205 || test ! -s conftest.err'
ac1cb8d3
VS
25206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207 (eval $ac_try) 2>&5
25208 ac_status=$?
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); }; } &&
25211 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25213 (eval $ac_try) 2>&5
25214 ac_status=$?
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); }; }; then
25217 ac_header_compiler=yes
25218else
25219 echo "$as_me: failed program was:" >&5
25220sed 's/^/| /' conftest.$ac_ext >&5
25221
25222ac_header_compiler=no
25223fi
ac1cb8d3 25224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25225echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25226echo "${ECHO_T}$ac_header_compiler" >&6
25227
25228# Is the header present?
25229echo "$as_me:$LINENO: checking png.h presence" >&5
25230echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25231cat >conftest.$ac_ext <<_ACEOF
25232/* confdefs.h. */
25233_ACEOF
25234cat confdefs.h >>conftest.$ac_ext
25235cat >>conftest.$ac_ext <<_ACEOF
25236/* end confdefs.h. */
25237#include <png.h>
25238_ACEOF
25239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25241 ac_status=$?
25242 grep -v '^ *+' conftest.er1 >conftest.err
25243 rm -f conftest.er1
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } >/dev/null; then
25247 if test -s conftest.err; then
5d7b7554
VZ
25248 ac_cpp_err=$ac_cxx_preproc_warn_flag
25249 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25250 else
25251 ac_cpp_err=
25252 fi
25253else
25254 ac_cpp_err=yes
25255fi
25256if test -z "$ac_cpp_err"; then
25257 ac_header_preproc=yes
25258else
25259 echo "$as_me: failed program was:" >&5
25260sed 's/^/| /' conftest.$ac_ext >&5
25261
25262 ac_header_preproc=no
25263fi
25264rm -f conftest.err conftest.$ac_ext
25265echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25266echo "${ECHO_T}$ac_header_preproc" >&6
25267
25268# So? What about this header?
5d7b7554 25269case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25270 yes:no: )
a848cd7e
SC
25271 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25272echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25273 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25274echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25275 ac_header_preproc=yes
a848cd7e 25276 ;;
ac1cb8d3 25277 no:yes:* )
a848cd7e
SC
25278 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25279echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25280 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25281echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25282 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25283echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25284 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25285echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25286 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25287echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25288 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25289echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25290 (
25291 cat <<\_ASBOX
ac1cb8d3
VS
25292## ----------------------------------------- ##
25293## Report this to wx-dev@lists.wxwidgets.org ##
25294## ----------------------------------------- ##
a848cd7e
SC
25295_ASBOX
25296 ) |
25297 sed "s/^/$as_me: WARNING: /" >&2
25298 ;;
25299esac
25300echo "$as_me:$LINENO: checking for png.h" >&5
25301echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25302if test "${ac_cv_header_png_h+set}" = set; then
25303 echo $ECHO_N "(cached) $ECHO_C" >&6
25304else
25305 ac_cv_header_png_h=$ac_header_preproc
25306fi
25307echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25308echo "${ECHO_T}$ac_cv_header_png_h" >&6
25309
25310fi
25311
25312
25313
25314 if test "$ac_cv_header_png_h" = "yes"; then
25315 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25316echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25317if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25318 echo $ECHO_N "(cached) $ECHO_C" >&6
25319else
25320 ac_check_lib_save_LIBS=$LIBS
25321LIBS="-lpng -lz -lm $LIBS"
25322cat >conftest.$ac_ext <<_ACEOF
25323/* confdefs.h. */
25324_ACEOF
25325cat confdefs.h >>conftest.$ac_ext
25326cat >>conftest.$ac_ext <<_ACEOF
25327/* end confdefs.h. */
25328
25329/* Override any gcc2 internal prototype to avoid an error. */
25330#ifdef __cplusplus
25331extern "C"
25332#endif
25333/* We use char because int might match the return type of a gcc2
25334 builtin and then its argument prototype would still apply. */
25335char png_check_sig ();
25336int
25337main ()
25338{
25339png_check_sig ();
25340 ;
25341 return 0;
25342}
25343_ACEOF
25344rm -f conftest.$ac_objext conftest$ac_exeext
25345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25346 (eval $ac_link) 2>conftest.er1
a848cd7e 25347 ac_status=$?
ac1cb8d3
VS
25348 grep -v '^ *+' conftest.er1 >conftest.err
25349 rm -f conftest.er1
25350 cat conftest.err >&5
a848cd7e
SC
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } &&
d25774ab
JS
25353 { ac_try='test -z "$ac_cxx_werror_flag"
25354 || test ! -s conftest.err'
ac1cb8d3
VS
25355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356 (eval $ac_try) 2>&5
25357 ac_status=$?
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); }; } &&
25360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362 (eval $ac_try) 2>&5
25363 ac_status=$?
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); }; }; then
25366 ac_cv_lib_png_png_check_sig=yes
25367else
25368 echo "$as_me: failed program was:" >&5
25369sed 's/^/| /' conftest.$ac_ext >&5
25370
25371ac_cv_lib_png_png_check_sig=no
25372fi
ac1cb8d3
VS
25373rm -f conftest.err conftest.$ac_objext \
25374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25375LIBS=$ac_check_lib_save_LIBS
25376fi
25377echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25378echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25379if test $ac_cv_lib_png_png_check_sig = yes; then
25380 PNG_LINK=" -lpng -lz"
25381fi
25382
25383 fi
25384
25385 if test "x$PNG_LINK" = "x" ; then
25386 if test "$wxUSE_LIBPNG" = "sys" ; then
25387 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25388echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25389 { (exit 1); exit 1; }; }
25390 else
25391 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25392echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25393 wxUSE_LIBPNG=builtin
25394 fi
25395 else
25396 wxUSE_LIBPNG=sys
25397 fi
25398 fi
25399 fi
25400
25401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25402fi
25403
25404
25405JPEG_LINK=
25406if test "$wxUSE_LIBJPEG" != "no" ; then
25407 cat >>confdefs.h <<\_ACEOF
25408#define wxUSE_LIBJPEG 1
25409_ACEOF
25410
25411
25412 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25413 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25414echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25415 wxUSE_LIBJPEG=sys
25416 fi
25417
25418 if test "$wxUSE_MGL" != 1 ; then
25419 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25420 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25421echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25422 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25423 echo $ECHO_N "(cached) $ECHO_C" >&6
25424else
25425 cat >conftest.$ac_ext <<_ACEOF
25426/* confdefs.h. */
25427_ACEOF
25428cat confdefs.h >>conftest.$ac_ext
25429cat >>conftest.$ac_ext <<_ACEOF
25430/* end confdefs.h. */
25431
25432 #undef HAVE_STDLIB_H
25433 #include <stdio.h>
25434 #include <jpeglib.h>
25435
25436int
25437main ()
25438{
25439
25440
25441 ;
25442 return 0;
25443}
25444_ACEOF
25445rm -f conftest.$ac_objext
25446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25447 (eval $ac_compile) 2>conftest.er1
a848cd7e 25448 ac_status=$?
ac1cb8d3
VS
25449 grep -v '^ *+' conftest.er1 >conftest.err
25450 rm -f conftest.er1
25451 cat conftest.err >&5
a848cd7e
SC
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } &&
d25774ab
JS
25454 { ac_try='test -z "$ac_cxx_werror_flag"
25455 || test ! -s conftest.err'
ac1cb8d3
VS
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25458 ac_status=$?
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; } &&
25461 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25464 ac_status=$?
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; }; then
25467 ac_cv_header_jpeglib_h=yes
25468else
25469 echo "$as_me: failed program was:" >&5
25470sed 's/^/| /' conftest.$ac_ext >&5
25471
25472ac_cv_header_jpeglib_h=no
25473
25474fi
ac1cb8d3 25475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25476
25477fi
25478
25479 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25480echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25481
25482 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25483 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25484echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25485if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25486 echo $ECHO_N "(cached) $ECHO_C" >&6
25487else
25488 ac_check_lib_save_LIBS=$LIBS
25489LIBS="-ljpeg $LIBS"
25490cat >conftest.$ac_ext <<_ACEOF
25491/* confdefs.h. */
25492_ACEOF
25493cat confdefs.h >>conftest.$ac_ext
25494cat >>conftest.$ac_ext <<_ACEOF
25495/* end confdefs.h. */
25496
25497/* Override any gcc2 internal prototype to avoid an error. */
25498#ifdef __cplusplus
25499extern "C"
25500#endif
25501/* We use char because int might match the return type of a gcc2
25502 builtin and then its argument prototype would still apply. */
25503char jpeg_read_header ();
25504int
25505main ()
25506{
25507jpeg_read_header ();
25508 ;
25509 return 0;
25510}
25511_ACEOF
25512rm -f conftest.$ac_objext conftest$ac_exeext
25513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25514 (eval $ac_link) 2>conftest.er1
a848cd7e 25515 ac_status=$?
ac1cb8d3
VS
25516 grep -v '^ *+' conftest.er1 >conftest.err
25517 rm -f conftest.er1
25518 cat conftest.err >&5
a848cd7e
SC
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); } &&
d25774ab
JS
25521 { ac_try='test -z "$ac_cxx_werror_flag"
25522 || test ! -s conftest.err'
ac1cb8d3
VS
25523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524 (eval $ac_try) 2>&5
25525 ac_status=$?
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); }; } &&
25528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25530 (eval $ac_try) 2>&5
25531 ac_status=$?
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); }; }; then
25534 ac_cv_lib_jpeg_jpeg_read_header=yes
25535else
25536 echo "$as_me: failed program was:" >&5
25537sed 's/^/| /' conftest.$ac_ext >&5
25538
25539ac_cv_lib_jpeg_jpeg_read_header=no
25540fi
ac1cb8d3
VS
25541rm -f conftest.err conftest.$ac_objext \
25542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25543LIBS=$ac_check_lib_save_LIBS
25544fi
25545echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25546echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25547if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25548 JPEG_LINK=" -ljpeg"
25549fi
25550
25551 fi
25552
25553 if test "x$JPEG_LINK" = "x" ; then
25554 if test "$wxUSE_LIBJPEG" = "sys" ; then
25555 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25556echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25557 { (exit 1); exit 1; }; }
25558 else
25559 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25560echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25561 wxUSE_LIBJPEG=builtin
25562 fi
25563 else
25564 wxUSE_LIBJPEG=sys
25565 fi
25566 fi
25567 fi
25568fi
25569
25570
25571TIFF_LINK=
25572TIFF_PREREQ_LINKS=-lm
25573if test "$wxUSE_LIBTIFF" != "no" ; then
25574 cat >>confdefs.h <<\_ACEOF
25575#define wxUSE_LIBTIFF 1
25576_ACEOF
25577
25578
25579 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25580 if test "$wxUSE_LIBJPEG" = "sys"; then
25581 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25582 fi
25583 if test "$wxUSE_ZLIB" = "sys"; then
25584 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25585 fi
25586 if test "${ac_cv_header_tiffio_h+set}" = set; then
25587 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25588echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25589if test "${ac_cv_header_tiffio_h+set}" = set; then
25590 echo $ECHO_N "(cached) $ECHO_C" >&6
25591fi
25592echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25593echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25594else
25595 # Is the header compilable?
25596echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25597echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25598cat >conftest.$ac_ext <<_ACEOF
25599/* confdefs.h. */
25600_ACEOF
25601cat confdefs.h >>conftest.$ac_ext
25602cat >>conftest.$ac_ext <<_ACEOF
25603/* end confdefs.h. */
25604$ac_includes_default
25605#include <tiffio.h>
25606_ACEOF
25607rm -f conftest.$ac_objext
25608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25609 (eval $ac_compile) 2>conftest.er1
a848cd7e 25610 ac_status=$?
ac1cb8d3
VS
25611 grep -v '^ *+' conftest.er1 >conftest.err
25612 rm -f conftest.er1
25613 cat conftest.err >&5
a848cd7e
SC
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); } &&
d25774ab
JS
25616 { ac_try='test -z "$ac_cxx_werror_flag"
25617 || test ! -s conftest.err'
ac1cb8d3
VS
25618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25619 (eval $ac_try) 2>&5
25620 ac_status=$?
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }; } &&
25623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625 (eval $ac_try) 2>&5
25626 ac_status=$?
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); }; }; then
25629 ac_header_compiler=yes
25630else
25631 echo "$as_me: failed program was:" >&5
25632sed 's/^/| /' conftest.$ac_ext >&5
25633
25634ac_header_compiler=no
25635fi
ac1cb8d3 25636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25637echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25638echo "${ECHO_T}$ac_header_compiler" >&6
25639
25640# Is the header present?
25641echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25642echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25643cat >conftest.$ac_ext <<_ACEOF
25644/* confdefs.h. */
25645_ACEOF
25646cat confdefs.h >>conftest.$ac_ext
25647cat >>conftest.$ac_ext <<_ACEOF
25648/* end confdefs.h. */
25649#include <tiffio.h>
25650_ACEOF
25651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25653 ac_status=$?
25654 grep -v '^ *+' conftest.er1 >conftest.err
25655 rm -f conftest.er1
25656 cat conftest.err >&5
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); } >/dev/null; then
25659 if test -s conftest.err; then
5d7b7554
VZ
25660 ac_cpp_err=$ac_cxx_preproc_warn_flag
25661 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25662 else
25663 ac_cpp_err=
25664 fi
25665else
25666 ac_cpp_err=yes
25667fi
25668if test -z "$ac_cpp_err"; then
25669 ac_header_preproc=yes
25670else
25671 echo "$as_me: failed program was:" >&5
25672sed 's/^/| /' conftest.$ac_ext >&5
25673
25674 ac_header_preproc=no
25675fi
25676rm -f conftest.err conftest.$ac_ext
25677echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25678echo "${ECHO_T}$ac_header_preproc" >&6
25679
25680# So? What about this header?
5d7b7554 25681case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25682 yes:no: )
a848cd7e
SC
25683 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25684echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25685 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25686echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25687 ac_header_preproc=yes
a848cd7e 25688 ;;
ac1cb8d3 25689 no:yes:* )
a848cd7e
SC
25690 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25691echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25692 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25693echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25694 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25695echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25696 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25697echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25698 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25699echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25700 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25701echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25702 (
25703 cat <<\_ASBOX
ac1cb8d3
VS
25704## ----------------------------------------- ##
25705## Report this to wx-dev@lists.wxwidgets.org ##
25706## ----------------------------------------- ##
a848cd7e
SC
25707_ASBOX
25708 ) |
25709 sed "s/^/$as_me: WARNING: /" >&2
25710 ;;
25711esac
25712echo "$as_me:$LINENO: checking for tiffio.h" >&5
25713echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25714if test "${ac_cv_header_tiffio_h+set}" = set; then
25715 echo $ECHO_N "(cached) $ECHO_C" >&6
25716else
25717 ac_cv_header_tiffio_h=$ac_header_preproc
25718fi
25719echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25720echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25721
25722fi
25723if test $ac_cv_header_tiffio_h = yes; then
25724
25725 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25726echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25727if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25728 echo $ECHO_N "(cached) $ECHO_C" >&6
25729else
25730 ac_check_lib_save_LIBS=$LIBS
25731LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25732cat >conftest.$ac_ext <<_ACEOF
25733/* confdefs.h. */
25734_ACEOF
25735cat confdefs.h >>conftest.$ac_ext
25736cat >>conftest.$ac_ext <<_ACEOF
25737/* end confdefs.h. */
25738
25739/* Override any gcc2 internal prototype to avoid an error. */
25740#ifdef __cplusplus
25741extern "C"
25742#endif
25743/* We use char because int might match the return type of a gcc2
25744 builtin and then its argument prototype would still apply. */
25745char TIFFError ();
25746int
25747main ()
25748{
25749TIFFError ();
25750 ;
25751 return 0;
25752}
25753_ACEOF
25754rm -f conftest.$ac_objext conftest$ac_exeext
25755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25756 (eval $ac_link) 2>conftest.er1
a848cd7e 25757 ac_status=$?
ac1cb8d3
VS
25758 grep -v '^ *+' conftest.er1 >conftest.err
25759 rm -f conftest.er1
25760 cat conftest.err >&5
a848cd7e
SC
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); } &&
d25774ab
JS
25763 { ac_try='test -z "$ac_cxx_werror_flag"
25764 || test ! -s conftest.err'
ac1cb8d3
VS
25765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25766 (eval $ac_try) 2>&5
25767 ac_status=$?
25768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); }; } &&
25770 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25772 (eval $ac_try) 2>&5
25773 ac_status=$?
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); }; }; then
25776 ac_cv_lib_tiff_TIFFError=yes
25777else
25778 echo "$as_me: failed program was:" >&5
25779sed 's/^/| /' conftest.$ac_ext >&5
25780
25781ac_cv_lib_tiff_TIFFError=no
25782fi
ac1cb8d3
VS
25783rm -f conftest.err conftest.$ac_objext \
25784 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25785LIBS=$ac_check_lib_save_LIBS
25786fi
25787echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25788echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25789if test $ac_cv_lib_tiff_TIFFError = yes; then
25790 TIFF_LINK=" -ltiff"
25791fi
25792
25793
25794
25795fi
25796
25797
25798
25799 if test "x$TIFF_LINK" = "x" ; then
25800 if test "$wxUSE_LIBTIFF" = "sys" ; then
25801 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25802echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25803 { (exit 1); exit 1; }; }
25804 else
25805 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25806echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25807 wxUSE_LIBTIFF=builtin
25808 fi
25809 else
25810 wxUSE_LIBTIFF=sys
25811 fi
25812 fi
25813fi
25814
25815
47a7e797
MW
25816if test "$wxUSE_WCHAR_T" != "yes"; then
25817 if test "$wxUSE_EXPAT" != "no"; then
25818 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25819echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25820 wxUSE_EXPAT=no
25821 fi
25822 if test "$wxUSE_XML" != "no"; then
25823 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25824echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25825 wxUSE_XML=no
25826 fi
25827fi
25828
a848cd7e
SC
25829if test "$wxUSE_EXPAT" != "no"; then
25830 wxUSE_XML=yes
25831 cat >>confdefs.h <<\_ACEOF
25832#define wxUSE_EXPAT 1
25833_ACEOF
25834
25835 cat >>confdefs.h <<\_ACEOF
25836#define wxUSE_XML 1
25837_ACEOF
25838
25839
25840 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25841 if test "${ac_cv_header_expat_h+set}" = set; then
25842 echo "$as_me:$LINENO: checking for expat.h" >&5
25843echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25844if test "${ac_cv_header_expat_h+set}" = set; then
25845 echo $ECHO_N "(cached) $ECHO_C" >&6
25846fi
25847echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25848echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25849else
25850 # Is the header compilable?
25851echo "$as_me:$LINENO: checking expat.h usability" >&5
25852echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25853cat >conftest.$ac_ext <<_ACEOF
25854/* confdefs.h. */
25855_ACEOF
25856cat confdefs.h >>conftest.$ac_ext
25857cat >>conftest.$ac_ext <<_ACEOF
25858/* end confdefs.h. */
25859$ac_includes_default
25860#include <expat.h>
25861_ACEOF
25862rm -f conftest.$ac_objext
25863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25864 (eval $ac_compile) 2>conftest.er1
a848cd7e 25865 ac_status=$?
ac1cb8d3
VS
25866 grep -v '^ *+' conftest.er1 >conftest.err
25867 rm -f conftest.er1
25868 cat conftest.err >&5
a848cd7e
SC
25869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); } &&
d25774ab
JS
25871 { ac_try='test -z "$ac_cxx_werror_flag"
25872 || test ! -s conftest.err'
ac1cb8d3
VS
25873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25874 (eval $ac_try) 2>&5
25875 ac_status=$?
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); }; } &&
25878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25880 (eval $ac_try) 2>&5
25881 ac_status=$?
25882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883 (exit $ac_status); }; }; then
25884 ac_header_compiler=yes
25885else
25886 echo "$as_me: failed program was:" >&5
25887sed 's/^/| /' conftest.$ac_ext >&5
25888
25889ac_header_compiler=no
25890fi
ac1cb8d3 25891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25892echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25893echo "${ECHO_T}$ac_header_compiler" >&6
25894
25895# Is the header present?
25896echo "$as_me:$LINENO: checking expat.h presence" >&5
25897echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25898cat >conftest.$ac_ext <<_ACEOF
25899/* confdefs.h. */
25900_ACEOF
25901cat confdefs.h >>conftest.$ac_ext
25902cat >>conftest.$ac_ext <<_ACEOF
25903/* end confdefs.h. */
25904#include <expat.h>
25905_ACEOF
25906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25908 ac_status=$?
25909 grep -v '^ *+' conftest.er1 >conftest.err
25910 rm -f conftest.er1
25911 cat conftest.err >&5
25912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); } >/dev/null; then
25914 if test -s conftest.err; then
5d7b7554
VZ
25915 ac_cpp_err=$ac_cxx_preproc_warn_flag
25916 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25917 else
25918 ac_cpp_err=
25919 fi
25920else
25921 ac_cpp_err=yes
25922fi
25923if test -z "$ac_cpp_err"; then
25924 ac_header_preproc=yes
25925else
25926 echo "$as_me: failed program was:" >&5
25927sed 's/^/| /' conftest.$ac_ext >&5
25928
25929 ac_header_preproc=no
25930fi
25931rm -f conftest.err conftest.$ac_ext
25932echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25933echo "${ECHO_T}$ac_header_preproc" >&6
25934
25935# So? What about this header?
5d7b7554 25936case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25937 yes:no: )
a848cd7e
SC
25938 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25939echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25940 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25941echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25942 ac_header_preproc=yes
a848cd7e 25943 ;;
ac1cb8d3 25944 no:yes:* )
a848cd7e
SC
25945 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25946echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25947 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25948echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25949 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25950echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25951 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25952echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25953 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25954echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25955 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25956echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25957 (
25958 cat <<\_ASBOX
ac1cb8d3
VS
25959## ----------------------------------------- ##
25960## Report this to wx-dev@lists.wxwidgets.org ##
25961## ----------------------------------------- ##
a848cd7e
SC
25962_ASBOX
25963 ) |
25964 sed "s/^/$as_me: WARNING: /" >&2
25965 ;;
25966esac
25967echo "$as_me:$LINENO: checking for expat.h" >&5
25968echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25969if test "${ac_cv_header_expat_h+set}" = set; then
25970 echo $ECHO_N "(cached) $ECHO_C" >&6
25971else
25972 ac_cv_header_expat_h=$ac_header_preproc
25973fi
25974echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25975echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25976
25977fi
25978if test $ac_cv_header_expat_h = yes; then
25979 found_expat_h=1
25980fi
25981
25982
25983 if test "x$found_expat_h" = "x1"; then
25984 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25985echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25986if test "${wx_cv_expat_is_not_broken+set}" = set; then
25987 echo $ECHO_N "(cached) $ECHO_C" >&6
25988else
25989
a848cd7e
SC
25990 cat >conftest.$ac_ext <<_ACEOF
25991/* confdefs.h. */
25992_ACEOF
25993cat confdefs.h >>conftest.$ac_ext
25994cat >>conftest.$ac_ext <<_ACEOF
25995/* end confdefs.h. */
25996#include <expat.h>
25997int
25998main ()
25999{
26000
26001 ;
26002 return 0;
26003}
26004_ACEOF
26005rm -f conftest.$ac_objext
26006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26007 (eval $ac_compile) 2>conftest.er1
a848cd7e 26008 ac_status=$?
ac1cb8d3
VS
26009 grep -v '^ *+' conftest.er1 >conftest.err
26010 rm -f conftest.er1
26011 cat conftest.err >&5
a848cd7e
SC
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); } &&
d25774ab
JS
26014 { ac_try='test -z "$ac_cxx_werror_flag"
26015 || test ! -s conftest.err'
ac1cb8d3
VS
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; } &&
26021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023 (eval $ac_try) 2>&5
26024 ac_status=$?
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); }; }; then
26027 wx_cv_expat_is_not_broken=yes
26028else
26029 echo "$as_me: failed program was:" >&5
26030sed 's/^/| /' conftest.$ac_ext >&5
26031
26032wx_cv_expat_is_not_broken=no
26033
26034fi
ac1cb8d3 26035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26036
26037
26038fi
26039echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26040echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26041 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26042 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26043echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26044if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26045 echo $ECHO_N "(cached) $ECHO_C" >&6
26046else
26047 ac_check_lib_save_LIBS=$LIBS
26048LIBS="-lexpat $LIBS"
26049cat >conftest.$ac_ext <<_ACEOF
26050/* confdefs.h. */
26051_ACEOF
26052cat confdefs.h >>conftest.$ac_ext
26053cat >>conftest.$ac_ext <<_ACEOF
26054/* end confdefs.h. */
26055
26056/* Override any gcc2 internal prototype to avoid an error. */
26057#ifdef __cplusplus
26058extern "C"
26059#endif
26060/* We use char because int might match the return type of a gcc2
26061 builtin and then its argument prototype would still apply. */
26062char XML_ParserCreate ();
26063int
26064main ()
26065{
26066XML_ParserCreate ();
26067 ;
26068 return 0;
26069}
26070_ACEOF
26071rm -f conftest.$ac_objext conftest$ac_exeext
26072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26073 (eval $ac_link) 2>conftest.er1
a848cd7e 26074 ac_status=$?
ac1cb8d3
VS
26075 grep -v '^ *+' conftest.er1 >conftest.err
26076 rm -f conftest.er1
26077 cat conftest.err >&5
a848cd7e
SC
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } &&
d25774ab
JS
26080 { ac_try='test -z "$ac_cxx_werror_flag"
26081 || test ! -s conftest.err'
ac1cb8d3
VS
26082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083 (eval $ac_try) 2>&5
26084 ac_status=$?
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); }; } &&
26087 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089 (eval $ac_try) 2>&5
26090 ac_status=$?
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; }; then
26093 ac_cv_lib_expat_XML_ParserCreate=yes
26094else
26095 echo "$as_me: failed program was:" >&5
26096sed 's/^/| /' conftest.$ac_ext >&5
26097
26098ac_cv_lib_expat_XML_ParserCreate=no
26099fi
ac1cb8d3
VS
26100rm -f conftest.err conftest.$ac_objext \
26101 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26102LIBS=$ac_check_lib_save_LIBS
26103fi
26104echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26105echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26106if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26107 EXPAT_LINK=" -lexpat"
26108fi
26109
26110 fi
26111 fi
26112 if test "x$EXPAT_LINK" = "x" ; then
26113 if test "$wxUSE_EXPAT" = "sys" ; then
26114 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26115echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26116 { (exit 1); exit 1; }; }
26117 else
26118 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26119echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26120 wxUSE_EXPAT=builtin
26121 fi
26122 else
26123 wxUSE_EXPAT=sys
26124 fi
26125 fi
26126 if test "$wxUSE_EXPAT" = "builtin" ; then
26127
26128
26129subdirs="$subdirs src/expat"
26130
26131 fi
26132fi
26133
26134
26135
26136if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26137 if test "${ac_cv_header_mspack_h+set}" = set; then
26138 echo "$as_me:$LINENO: checking for mspack.h" >&5
26139echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26140if test "${ac_cv_header_mspack_h+set}" = set; then
26141 echo $ECHO_N "(cached) $ECHO_C" >&6
26142fi
26143echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26144echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26145else
26146 # Is the header compilable?
26147echo "$as_me:$LINENO: checking mspack.h usability" >&5
26148echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26149cat >conftest.$ac_ext <<_ACEOF
26150/* confdefs.h. */
26151_ACEOF
26152cat confdefs.h >>conftest.$ac_ext
26153cat >>conftest.$ac_ext <<_ACEOF
26154/* end confdefs.h. */
26155$ac_includes_default
26156#include <mspack.h>
26157_ACEOF
26158rm -f conftest.$ac_objext
26159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26160 (eval $ac_compile) 2>conftest.er1
a848cd7e 26161 ac_status=$?
ac1cb8d3
VS
26162 grep -v '^ *+' conftest.er1 >conftest.err
26163 rm -f conftest.er1
26164 cat conftest.err >&5
a848cd7e
SC
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } &&
d25774ab
JS
26167 { ac_try='test -z "$ac_cxx_werror_flag"
26168 || test ! -s conftest.err'
ac1cb8d3
VS
26169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170 (eval $ac_try) 2>&5
26171 ac_status=$?
26172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); }; } &&
26174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176 (eval $ac_try) 2>&5
26177 ac_status=$?
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); }; }; then
26180 ac_header_compiler=yes
26181else
26182 echo "$as_me: failed program was:" >&5
26183sed 's/^/| /' conftest.$ac_ext >&5
26184
26185ac_header_compiler=no
26186fi
ac1cb8d3 26187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26189echo "${ECHO_T}$ac_header_compiler" >&6
26190
26191# Is the header present?
26192echo "$as_me:$LINENO: checking mspack.h presence" >&5
26193echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26194cat >conftest.$ac_ext <<_ACEOF
26195/* confdefs.h. */
26196_ACEOF
26197cat confdefs.h >>conftest.$ac_ext
26198cat >>conftest.$ac_ext <<_ACEOF
26199/* end confdefs.h. */
26200#include <mspack.h>
26201_ACEOF
26202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26204 ac_status=$?
26205 grep -v '^ *+' conftest.er1 >conftest.err
26206 rm -f conftest.er1
26207 cat conftest.err >&5
26208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26209 (exit $ac_status); } >/dev/null; then
26210 if test -s conftest.err; then
5d7b7554
VZ
26211 ac_cpp_err=$ac_cxx_preproc_warn_flag
26212 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26213 else
26214 ac_cpp_err=
26215 fi
26216else
26217 ac_cpp_err=yes
26218fi
26219if test -z "$ac_cpp_err"; then
26220 ac_header_preproc=yes
26221else
26222 echo "$as_me: failed program was:" >&5
26223sed 's/^/| /' conftest.$ac_ext >&5
26224
26225 ac_header_preproc=no
26226fi
26227rm -f conftest.err conftest.$ac_ext
26228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26229echo "${ECHO_T}$ac_header_preproc" >&6
26230
26231# So? What about this header?
5d7b7554 26232case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26233 yes:no: )
a848cd7e
SC
26234 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26235echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26236 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26237echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26238 ac_header_preproc=yes
a848cd7e 26239 ;;
ac1cb8d3 26240 no:yes:* )
a848cd7e
SC
26241 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26242echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26243 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26244echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26245 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26246echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26247 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26248echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26249 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26250echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26251 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26252echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26253 (
26254 cat <<\_ASBOX
ac1cb8d3
VS
26255## ----------------------------------------- ##
26256## Report this to wx-dev@lists.wxwidgets.org ##
26257## ----------------------------------------- ##
a848cd7e
SC
26258_ASBOX
26259 ) |
26260 sed "s/^/$as_me: WARNING: /" >&2
26261 ;;
26262esac
26263echo "$as_me:$LINENO: checking for mspack.h" >&5
26264echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26265if test "${ac_cv_header_mspack_h+set}" = set; then
26266 echo $ECHO_N "(cached) $ECHO_C" >&6
26267else
26268 ac_cv_header_mspack_h=$ac_header_preproc
26269fi
26270echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26271echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26272
26273fi
26274if test $ac_cv_header_mspack_h = yes; then
26275 found_mspack_h=1
26276fi
26277
26278
26279 if test "x$found_mspack_h" = "x1"; then
26280 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26281echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26282if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26283 echo $ECHO_N "(cached) $ECHO_C" >&6
26284else
26285 ac_check_lib_save_LIBS=$LIBS
26286LIBS="-lmspack $LIBS"
26287cat >conftest.$ac_ext <<_ACEOF
26288/* confdefs.h. */
26289_ACEOF
26290cat confdefs.h >>conftest.$ac_ext
26291cat >>conftest.$ac_ext <<_ACEOF
26292/* end confdefs.h. */
26293
26294/* Override any gcc2 internal prototype to avoid an error. */
26295#ifdef __cplusplus
26296extern "C"
26297#endif
26298/* We use char because int might match the return type of a gcc2
26299 builtin and then its argument prototype would still apply. */
26300char mspack_create_chm_decompressor ();
26301int
26302main ()
26303{
26304mspack_create_chm_decompressor ();
26305 ;
26306 return 0;
26307}
26308_ACEOF
26309rm -f conftest.$ac_objext conftest$ac_exeext
26310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26311 (eval $ac_link) 2>conftest.er1
a848cd7e 26312 ac_status=$?
ac1cb8d3
VS
26313 grep -v '^ *+' conftest.er1 >conftest.err
26314 rm -f conftest.er1
26315 cat conftest.err >&5
a848cd7e
SC
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); } &&
d25774ab
JS
26318 { ac_try='test -z "$ac_cxx_werror_flag"
26319 || test ! -s conftest.err'
ac1cb8d3
VS
26320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321 (eval $ac_try) 2>&5
26322 ac_status=$?
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; } &&
26325 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); }; }; then
26331 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26332else
26333 echo "$as_me: failed program was:" >&5
26334sed 's/^/| /' conftest.$ac_ext >&5
26335
26336ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26337fi
ac1cb8d3
VS
26338rm -f conftest.err conftest.$ac_objext \
26339 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26340LIBS=$ac_check_lib_save_LIBS
26341fi
26342echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26343echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26344if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26345 MSPACK_LINK=" -lmspack"
26346fi
26347
26348 fi
26349 if test "x$MSPACK_LINK" = "x" ; then
26350 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26351 fi
26352fi
26353
26354if test "$wxUSE_LIBMSPACK" != "no"; then
26355 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26356#define wxUSE_LIBMSPACK 1
26357_ACEOF
26358
a848cd7e
SC
26359fi
26360
26361
26362
26363AFMINSTALL=
26364WIN32INSTALL=
26365
26366TOOLKIT=
26367TOOLKIT_INCLUDE=
26368WIDGET_SET=
26369
26370if test "$USE_WIN32" = 1 ; then
26371
26372for ac_header in w32api.h
26373do
26374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26375if eval "test \"\${$as_ac_Header+set}\" = set"; then
26376 echo "$as_me:$LINENO: checking for $ac_header" >&5
26377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26378if eval "test \"\${$as_ac_Header+set}\" = set"; then
26379 echo $ECHO_N "(cached) $ECHO_C" >&6
26380fi
26381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26383else
26384 # Is the header compilable?
26385echo "$as_me:$LINENO: checking $ac_header usability" >&5
26386echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26387cat >conftest.$ac_ext <<_ACEOF
26388/* confdefs.h. */
26389_ACEOF
26390cat confdefs.h >>conftest.$ac_ext
26391cat >>conftest.$ac_ext <<_ACEOF
26392/* end confdefs.h. */
26393$ac_includes_default
26394#include <$ac_header>
26395_ACEOF
26396rm -f conftest.$ac_objext
26397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26398 (eval $ac_compile) 2>conftest.er1
a848cd7e 26399 ac_status=$?
ac1cb8d3
VS
26400 grep -v '^ *+' conftest.er1 >conftest.err
26401 rm -f conftest.er1
26402 cat conftest.err >&5
a848cd7e
SC
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); } &&
d25774ab
JS
26405 { ac_try='test -z "$ac_cxx_werror_flag"
26406 || test ! -s conftest.err'
ac1cb8d3
VS
26407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408 (eval $ac_try) 2>&5
26409 ac_status=$?
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); }; } &&
26412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26415 ac_status=$?
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; }; then
26418 ac_header_compiler=yes
26419else
26420 echo "$as_me: failed program was:" >&5
26421sed 's/^/| /' conftest.$ac_ext >&5
26422
26423ac_header_compiler=no
26424fi
ac1cb8d3 26425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26426echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26427echo "${ECHO_T}$ac_header_compiler" >&6
26428
26429# Is the header present?
26430echo "$as_me:$LINENO: checking $ac_header presence" >&5
26431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26432cat >conftest.$ac_ext <<_ACEOF
26433/* confdefs.h. */
26434_ACEOF
26435cat confdefs.h >>conftest.$ac_ext
26436cat >>conftest.$ac_ext <<_ACEOF
26437/* end confdefs.h. */
26438#include <$ac_header>
26439_ACEOF
26440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26442 ac_status=$?
26443 grep -v '^ *+' conftest.er1 >conftest.err
26444 rm -f conftest.er1
26445 cat conftest.err >&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } >/dev/null; then
26448 if test -s conftest.err; then
5d7b7554
VZ
26449 ac_cpp_err=$ac_cxx_preproc_warn_flag
26450 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26451 else
26452 ac_cpp_err=
26453 fi
26454else
26455 ac_cpp_err=yes
26456fi
26457if test -z "$ac_cpp_err"; then
26458 ac_header_preproc=yes
26459else
26460 echo "$as_me: failed program was:" >&5
26461sed 's/^/| /' conftest.$ac_ext >&5
26462
26463 ac_header_preproc=no
26464fi
26465rm -f conftest.err conftest.$ac_ext
26466echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26467echo "${ECHO_T}$ac_header_preproc" >&6
26468
26469# So? What about this header?
5d7b7554 26470case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26471 yes:no: )
a848cd7e
SC
26472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26473echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26475echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26476 ac_header_preproc=yes
a848cd7e 26477 ;;
ac1cb8d3 26478 no:yes:* )
a848cd7e
SC
26479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26480echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26482echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26484echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26486echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26488echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26490echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26491 (
26492 cat <<\_ASBOX
ac1cb8d3
VS
26493## ----------------------------------------- ##
26494## Report this to wx-dev@lists.wxwidgets.org ##
26495## ----------------------------------------- ##
a848cd7e
SC
26496_ASBOX
26497 ) |
26498 sed "s/^/$as_me: WARNING: /" >&2
26499 ;;
26500esac
26501echo "$as_me:$LINENO: checking for $ac_header" >&5
26502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26503if eval "test \"\${$as_ac_Header+set}\" = set"; then
26504 echo $ECHO_N "(cached) $ECHO_C" >&6
26505else
ac1cb8d3 26506 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26507fi
26508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26510
26511fi
26512if test `eval echo '${'$as_ac_Header'}'` = yes; then
26513 cat >>confdefs.h <<_ACEOF
26514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26515_ACEOF
26516
26517fi
26518
26519done
26520
26521 if test "${ac_cv_header_windows_h+set}" = set; then
26522 echo "$as_me:$LINENO: checking for windows.h" >&5
26523echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26524if test "${ac_cv_header_windows_h+set}" = set; then
26525 echo $ECHO_N "(cached) $ECHO_C" >&6
26526fi
26527echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26528echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26529else
26530 # Is the header compilable?
26531echo "$as_me:$LINENO: checking windows.h usability" >&5
26532echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26533cat >conftest.$ac_ext <<_ACEOF
26534/* confdefs.h. */
26535_ACEOF
26536cat confdefs.h >>conftest.$ac_ext
26537cat >>conftest.$ac_ext <<_ACEOF
26538/* end confdefs.h. */
26539$ac_includes_default
26540#include <windows.h>
26541_ACEOF
26542rm -f conftest.$ac_objext
26543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26544 (eval $ac_compile) 2>conftest.er1
a848cd7e 26545 ac_status=$?
ac1cb8d3
VS
26546 grep -v '^ *+' conftest.er1 >conftest.err
26547 rm -f conftest.er1
26548 cat conftest.err >&5
a848cd7e
SC
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); } &&
d25774ab
JS
26551 { ac_try='test -z "$ac_cxx_werror_flag"
26552 || test ! -s conftest.err'
ac1cb8d3
VS
26553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26554 (eval $ac_try) 2>&5
26555 ac_status=$?
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); }; } &&
26558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26561 ac_status=$?
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; }; then
26564 ac_header_compiler=yes
26565else
26566 echo "$as_me: failed program was:" >&5
26567sed 's/^/| /' conftest.$ac_ext >&5
26568
26569ac_header_compiler=no
26570fi
ac1cb8d3 26571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26573echo "${ECHO_T}$ac_header_compiler" >&6
26574
26575# Is the header present?
26576echo "$as_me:$LINENO: checking windows.h presence" >&5
26577echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26578cat >conftest.$ac_ext <<_ACEOF
26579/* confdefs.h. */
26580_ACEOF
26581cat confdefs.h >>conftest.$ac_ext
26582cat >>conftest.$ac_ext <<_ACEOF
26583/* end confdefs.h. */
26584#include <windows.h>
26585_ACEOF
26586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26588 ac_status=$?
26589 grep -v '^ *+' conftest.er1 >conftest.err
26590 rm -f conftest.er1
26591 cat conftest.err >&5
26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); } >/dev/null; then
26594 if test -s conftest.err; then
5d7b7554
VZ
26595 ac_cpp_err=$ac_cxx_preproc_warn_flag
26596 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26597 else
26598 ac_cpp_err=
26599 fi
26600else
26601 ac_cpp_err=yes
26602fi
26603if test -z "$ac_cpp_err"; then
26604 ac_header_preproc=yes
26605else
26606 echo "$as_me: failed program was:" >&5
26607sed 's/^/| /' conftest.$ac_ext >&5
26608
26609 ac_header_preproc=no
26610fi
26611rm -f conftest.err conftest.$ac_ext
26612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26613echo "${ECHO_T}$ac_header_preproc" >&6
26614
26615# So? What about this header?
5d7b7554 26616case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26617 yes:no: )
a848cd7e
SC
26618 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26619echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26620 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26621echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26622 ac_header_preproc=yes
a848cd7e 26623 ;;
ac1cb8d3 26624 no:yes:* )
a848cd7e
SC
26625 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26626echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26627 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26628echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26629 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26630echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26631 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26632echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26633 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26634echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26635 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26636echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26637 (
26638 cat <<\_ASBOX
ac1cb8d3
VS
26639## ----------------------------------------- ##
26640## Report this to wx-dev@lists.wxwidgets.org ##
26641## ----------------------------------------- ##
a848cd7e
SC
26642_ASBOX
26643 ) |
26644 sed "s/^/$as_me: WARNING: /" >&2
26645 ;;
26646esac
26647echo "$as_me:$LINENO: checking for windows.h" >&5
26648echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26649if test "${ac_cv_header_windows_h+set}" = set; then
26650 echo $ECHO_N "(cached) $ECHO_C" >&6
26651else
26652 ac_cv_header_windows_h=$ac_header_preproc
26653fi
26654echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26655echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26656
26657fi
26658if test $ac_cv_header_windows_h = yes; then
26659 :
26660else
26661
26662 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26663echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26664 { (exit 1); exit 1; }; }
26665
26666fi
26667
26668
26669
26670 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26671
26672 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26673 LIBS="$LIBS -loleacc"
26674 fi
26675
26676 case "${host}" in
26677 *-*-cygwin* )
26678 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26679 esac
26680
26681 if test "$wxUSE_ODBC" = "sys" ; then
26682 wxUSE_ODBC = "yes"
26683 fi
26684 if test "$wxUSE_ODBC" = "yes" ; then
26685 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26686 cat >>confdefs.h <<\_ACEOF
26687#define wxUSE_ODBC 1
26688_ACEOF
26689
26690 fi
26691
370d2fd7 26692 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26693 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26694
004ee6da 26695 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26696
a848cd7e
SC
26697 WIN32INSTALL=win32install
26698fi
26699
26700if test "$wxUSE_GUI" = "yes"; then
26701 USE_GUI=1
26702
26703 GUI_TK_LIBRARY=
26704
26705 WXGTK12=
26706 WXGTK127=
26707 WXGTK20=
26708 WXGPE=
26709
207bc66c
RN
26710 if test "$wxUSE_COCOA" = 1 ; then
26711 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26712 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26713echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26714 wxUSE_PRINTING_ARCHITECTURE=no
26715 fi
26716 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26717 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26718echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26719 wxUSE_DRAG_AND_DROP=no
26720 fi
26721 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26722 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26723echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26724 wxUSE_DRAGIMAGE=no
26725 fi
26726 fi
26727
a848cd7e
SC
26728 if test "$wxUSE_MSW" = 1 ; then
26729 TOOLKIT=MSW
26730 GUIDIST=MSW_DIST
26731
ceec2216 26732 case "${host}" in
a848cd7e
SC
26733 *-*-mingw32* )
26734 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26735 esac
26736 fi
26737
26738 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
26739 ac_ext=c
26740ac_cpp='$CPP $CPPFLAGS'
26741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26743ac_compiler_gnu=$ac_cv_c_compiler_gnu
26744
26745
a848cd7e
SC
26746 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26747echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26748
26749 gtk_version_cached=1
26750 if test "${wx_cv_lib_gtk+set}" = set; then
26751 echo $ECHO_N "(cached) $ECHO_C" >&6
26752else
26753
26754 gtk_version_cached=0
26755 echo "$as_me:$LINENO: result: " >&5
26756echo "${ECHO_T}" >&6
26757
26758 GTK_MODULES=
26759 if test "$wxUSE_THREADS" = "yes"; then
26760 GTK_MODULES=gthread
26761 fi
26762
f597b41c 26763 wx_cv_lib_gtk=
5001df0d
MW
26764 if test "x$wxGTK_VERSION" != "x1"
26765 then
26766 case "${host}" in
26767 *-*-solaris2* )
26768 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26769 enable_gtktest=no
5001df0d
MW
26770 fi
26771 esac
26772
a848cd7e
SC
26773 # Check whether --enable-gtktest or --disable-gtktest was given.
26774if test "${enable_gtktest+set}" = set; then
26775 enableval="$enable_gtktest"
26776
26777else
26778 enable_gtktest=yes
26779fi;
26780
26781 pkg_config_args=gtk+-2.0
26782 for module in . $GTK_MODULES
26783 do
26784 case "$module" in
26785 gthread)
26786 pkg_config_args="$pkg_config_args gthread-2.0"
26787 ;;
26788 esac
26789 done
26790
26791 no_gtk=""
26792
26793 # Extract the first word of "pkg-config", so it can be a program name with args.
26794set dummy pkg-config; ac_word=$2
26795echo "$as_me:$LINENO: checking for $ac_word" >&5
26796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26797if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26798 echo $ECHO_N "(cached) $ECHO_C" >&6
26799else
26800 case $PKG_CONFIG in
26801 [\\/]* | ?:[\\/]*)
26802 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26803 ;;
26804 *)
26805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26806for as_dir in $PATH
26807do
26808 IFS=$as_save_IFS
26809 test -z "$as_dir" && as_dir=.
26810 for ac_exec_ext in '' $ac_executable_extensions; do
26811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26812 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26814 break 2
26815 fi
26816done
26817done
26818
26819 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26820 ;;
26821esac
26822fi
26823PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26824
26825if test -n "$PKG_CONFIG"; then
26826 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26827echo "${ECHO_T}$PKG_CONFIG" >&6
26828else
26829 echo "$as_me:$LINENO: result: no" >&5
26830echo "${ECHO_T}no" >&6
26831fi
26832
26833
26834 if test x$PKG_CONFIG != xno ; then
26835 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26836 :
26837 else
c2218763 26838 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26839 no_gtk=yes
26840 PKG_CONFIG=no
26841 fi
26842 else
26843 no_gtk=yes
26844 fi
26845
26846 min_gtk_version=2.0.0
26847 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26848echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26849
26850 if test x$PKG_CONFIG != xno ; then
26851 ## don't try to run the test against uninstalled libtool libs
26852 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26853 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26854 enable_gtktest=no
26855 fi
26856
26857 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26858 :
26859 else
26860 no_gtk=yes
26861 fi
26862 fi
26863
26864 if test x"$no_gtk" = x ; then
26865 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26866 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26867 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26868 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26869 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26870 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26871 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26872 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26873 if test "x$enable_gtktest" = "xyes" ; then
26874 ac_save_CFLAGS="$CFLAGS"
26875 ac_save_LIBS="$LIBS"
26876 CFLAGS="$CFLAGS $GTK_CFLAGS"
26877 LIBS="$GTK_LIBS $LIBS"
26878 rm -f conf.gtktest
26879 if test "$cross_compiling" = yes; then
26880 echo $ac_n "cross compiling; assumed OK... $ac_c"
26881else
26882 cat >conftest.$ac_ext <<_ACEOF
26883/* confdefs.h. */
26884_ACEOF
26885cat confdefs.h >>conftest.$ac_ext
26886cat >>conftest.$ac_ext <<_ACEOF
26887/* end confdefs.h. */
26888
26889#include <gtk/gtk.h>
26890#include <stdio.h>
26891#include <stdlib.h>
26892
26893int
26894main ()
26895{
26896 int major, minor, micro;
26897 char *tmp_version;
26898
26899 system ("touch conf.gtktest");
26900
26901 /* HP/UX 9 (%@#!) writes to sscanf strings */
26902 tmp_version = g_strdup("$min_gtk_version");
26903 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26904 printf("%s, bad version string\n", "$min_gtk_version");
26905 exit(1);
26906 }
26907
26908 if ((gtk_major_version != $gtk_config_major_version) ||
26909 (gtk_minor_version != $gtk_config_minor_version) ||
26910 (gtk_micro_version != $gtk_config_micro_version))
26911 {
26912 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26913 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26914 gtk_major_version, gtk_minor_version, gtk_micro_version);
26915 printf ("*** was found! If pkg-config was correct, then it is best\n");
26916 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26917 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26918 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26919 printf("*** required on your system.\n");
26920 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26921 printf("*** to point to the correct configuration files\n");
26922 }
26923 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26924 (gtk_minor_version != GTK_MINOR_VERSION) ||
26925 (gtk_micro_version != GTK_MICRO_VERSION))
26926 {
26927 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26928 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26929 printf("*** library (version %d.%d.%d)\n",
26930 gtk_major_version, gtk_minor_version, gtk_micro_version);
26931 }
26932 else
26933 {
26934 if ((gtk_major_version > major) ||
26935 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26936 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26937 {
26938 return 0;
26939 }
26940 else
26941 {
26942 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26943 gtk_major_version, gtk_minor_version, gtk_micro_version);
26944 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26945 major, minor, micro);
26946 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26947 printf("***\n");
26948 printf("*** If you have already installed a sufficiently new version, this error\n");
26949 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26950 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26951 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26952 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26953 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26954 printf("*** so that the correct libraries are found at run-time))\n");
26955 }
26956 }
26957 return 1;
26958}
26959
26960_ACEOF
26961rm -f conftest$ac_exeext
26962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26963 (eval $ac_link) 2>&5
26964 ac_status=$?
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26968 (eval $ac_try) 2>&5
26969 ac_status=$?
26970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); }; }; then
26972 :
26973else
26974 echo "$as_me: program exited with status $ac_status" >&5
26975echo "$as_me: failed program was:" >&5
26976sed 's/^/| /' conftest.$ac_ext >&5
26977
26978( exit $ac_status )
26979no_gtk=yes
26980fi
ac1cb8d3 26981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26982fi
26983 CFLAGS="$ac_save_CFLAGS"
26984 LIBS="$ac_save_LIBS"
26985 fi
26986 fi
26987 if test "x$no_gtk" = x ; then
26988 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26989echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26990 wx_cv_lib_gtk=2.0
26991 else
26992 echo "$as_me:$LINENO: result: no" >&5
26993echo "${ECHO_T}no" >&6
26994 if test "$PKG_CONFIG" = "no" ; then
26995 echo "*** A new enough version of pkg-config was not found."
26996 echo "*** See http://pkgconfig.sourceforge.net"
26997 else
26998 if test -f conf.gtktest ; then
26999 :
27000 else
27001 echo "*** Could not run GTK+ test program, checking why..."
27002 ac_save_CFLAGS="$CFLAGS"
27003 ac_save_LIBS="$LIBS"
27004 CFLAGS="$CFLAGS $GTK_CFLAGS"
27005 LIBS="$LIBS $GTK_LIBS"
27006 cat >conftest.$ac_ext <<_ACEOF
27007/* confdefs.h. */
27008_ACEOF
27009cat confdefs.h >>conftest.$ac_ext
27010cat >>conftest.$ac_ext <<_ACEOF
27011/* end confdefs.h. */
27012
27013#include <gtk/gtk.h>
27014#include <stdio.h>
27015
27016int
27017main ()
27018{
27019 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27020 ;
27021 return 0;
27022}
27023_ACEOF
27024rm -f conftest.$ac_objext conftest$ac_exeext
27025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27026 (eval $ac_link) 2>conftest.er1
a848cd7e 27027 ac_status=$?
ac1cb8d3
VS
27028 grep -v '^ *+' conftest.er1 >conftest.err
27029 rm -f conftest.er1
27030 cat conftest.err >&5
a848cd7e
SC
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); } &&
d25774ab
JS
27033 { ac_try='test -z "$ac_c_werror_flag"
27034 || test ! -s conftest.err'
ac1cb8d3
VS
27035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27036 (eval $ac_try) 2>&5
27037 ac_status=$?
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; } &&
27040 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27042 (eval $ac_try) 2>&5
27043 ac_status=$?
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); }; }; then
27046 echo "*** The test program compiled, but did not run. This usually means"
27047 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27048 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27049 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27050 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27051 echo "*** is required on your system"
27052 echo "***"
27053 echo "*** If you have an old version installed, it is best to remove it, although"
27054 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27055else
27056 echo "$as_me: failed program was:" >&5
27057sed 's/^/| /' conftest.$ac_ext >&5
27058
27059 echo "*** The test program failed to compile or link. See the file config.log for the"
27060 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27061fi
ac1cb8d3
VS
27062rm -f conftest.err conftest.$ac_objext \
27063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27064 CFLAGS="$ac_save_CFLAGS"
27065 LIBS="$ac_save_LIBS"
27066 fi
27067 fi
27068 GTK_CFLAGS=""
27069 GTK_LIBS=""
27070 :
27071 fi
27072
27073
27074 rm -f conf.gtktest
27075
5001df0d
MW
27076
27077 case "${host}" in
27078 *-*-solaris2* )
27079 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27080 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27081 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27082 fi
27083 if test "$wxUSE_SHARED" != "yes"; then
27084 GTK_LIBS="$GTK_LIBS -lX11"
27085 fi
27086 esac
f597b41c
MW
27087 fi
27088
f34ca037
MW
27089 if test -z "$wx_cv_lib_gtk"; then
27090 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27091
27092# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27093if test "${with_gtk_prefix+set}" = set; then
27094 withval="$with_gtk_prefix"
27095 gtk_config_prefix="$withval"
27096else
27097 gtk_config_prefix=""
27098fi;
27099
27100# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27101if test "${with_gtk_exec_prefix+set}" = set; then
27102 withval="$with_gtk_exec_prefix"
27103 gtk_config_exec_prefix="$withval"
27104else
27105 gtk_config_exec_prefix=""
27106fi;
27107# Check whether --enable-gtktest or --disable-gtktest was given.
27108if test "${enable_gtktest+set}" = set; then
27109 enableval="$enable_gtktest"
27110
27111else
27112 enable_gtktest=yes
27113fi;
27114
27115 for module in . $GTK_MODULES
27116 do
27117 case "$module" in
27118 gthread)
27119 gtk_config_args="$gtk_config_args gthread"
27120 ;;
27121 esac
27122 done
27123
27124 if test x$gtk_config_exec_prefix != x ; then
27125 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27126 if test x${GTK_CONFIG+set} != xset ; then
27127 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27128 fi
27129 fi
27130 if test x$gtk_config_prefix != x ; then
27131 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27132 if test x${GTK_CONFIG+set} != xset ; then
27133 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27134 fi
27135 fi
27136
27137 # Extract the first word of "gtk-config", so it can be a program name with args.
27138set dummy gtk-config; ac_word=$2
27139echo "$as_me:$LINENO: checking for $ac_word" >&5
27140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27141if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27142 echo $ECHO_N "(cached) $ECHO_C" >&6
27143else
27144 case $GTK_CONFIG in
27145 [\\/]* | ?:[\\/]*)
27146 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27147 ;;
27148 *)
27149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27150for as_dir in $PATH
27151do
27152 IFS=$as_save_IFS
27153 test -z "$as_dir" && as_dir=.
27154 for ac_exec_ext in '' $ac_executable_extensions; do
27155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27156 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27158 break 2
27159 fi
27160done
27161done
27162
27163 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27164 ;;
27165esac
27166fi
27167GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27168
27169if test -n "$GTK_CONFIG"; then
27170 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27171echo "${ECHO_T}$GTK_CONFIG" >&6
27172else
27173 echo "$as_me:$LINENO: result: no" >&5
27174echo "${ECHO_T}no" >&6
27175fi
27176
27177 min_gtk_version=1.2.7
27178 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27179echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27180 no_gtk=""
27181 if test "$GTK_CONFIG" = "no" ; then
27182 no_gtk=yes
27183 else
27184 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27185 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27186 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27187 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27188 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27189 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27190 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27191 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27192 if test "x$enable_gtktest" = "xyes" ; then
27193 ac_save_CFLAGS="$CFLAGS"
27194 ac_save_LIBS="$LIBS"
27195 CFLAGS="$CFLAGS $GTK_CFLAGS"
27196 LIBS="$GTK_LIBS $LIBS"
27197 rm -f conf.gtktest
27198 if test "$cross_compiling" = yes; then
27199 echo $ac_n "cross compiling; assumed OK... $ac_c"
27200else
27201 cat >conftest.$ac_ext <<_ACEOF
27202/* confdefs.h. */
27203_ACEOF
27204cat confdefs.h >>conftest.$ac_ext
27205cat >>conftest.$ac_ext <<_ACEOF
27206/* end confdefs.h. */
27207
27208#include <gtk/gtk.h>
27209#include <stdio.h>
27210#include <stdlib.h>
27211
27212int
27213main ()
27214{
27215 int major, minor, micro;
27216 char *tmp_version;
27217
27218 system ("touch conf.gtktest");
27219
27220 /* HP/UX 9 (%@#!) writes to sscanf strings */
27221 tmp_version = g_strdup("$min_gtk_version");
27222 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27223 printf("%s, bad version string\n", "$min_gtk_version");
27224 exit(1);
27225 }
27226
27227 if ((gtk_major_version != $gtk_config_major_version) ||
27228 (gtk_minor_version != $gtk_config_minor_version) ||
27229 (gtk_micro_version != $gtk_config_micro_version))
27230 {
27231 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27232 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27233 gtk_major_version, gtk_minor_version, gtk_micro_version);
27234 printf ("*** was found! If gtk-config was correct, then it is best\n");
27235 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27236 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27237 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27238 printf("*** required on your system.\n");
27239 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27240 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27241 printf("*** before re-running configure\n");
27242 }
27243#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27244 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27245 (gtk_minor_version != GTK_MINOR_VERSION) ||
27246 (gtk_micro_version != GTK_MICRO_VERSION))
27247 {
27248 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27249 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27250 printf("*** library (version %d.%d.%d)\n",
27251 gtk_major_version, gtk_minor_version, gtk_micro_version);
27252 }
27253#endif /* defined (GTK_MAJOR_VERSION) ... */
27254 else
27255 {
27256 if ((gtk_major_version > major) ||
27257 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27258 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27259 {
27260 return 0;
27261 }
27262 else
27263 {
27264 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27265 gtk_major_version, gtk_minor_version, gtk_micro_version);
27266 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27267 major, minor, micro);
27268 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27269 printf("***\n");
27270 printf("*** If you have already installed a sufficiently new version, this error\n");
27271 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27272 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27273 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27274 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27275 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27276 printf("*** so that the correct libraries are found at run-time))\n");
27277 }
27278 }
27279 return 1;
27280}
27281
27282_ACEOF
27283rm -f conftest$ac_exeext
27284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27285 (eval $ac_link) 2>&5
27286 ac_status=$?
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27290 (eval $ac_try) 2>&5
27291 ac_status=$?
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); }; }; then
27294 :
27295else
27296 echo "$as_me: program exited with status $ac_status" >&5
27297echo "$as_me: failed program was:" >&5
27298sed 's/^/| /' conftest.$ac_ext >&5
27299
27300( exit $ac_status )
27301no_gtk=yes
27302fi
ac1cb8d3 27303rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27304fi
27305 CFLAGS="$ac_save_CFLAGS"
27306 LIBS="$ac_save_LIBS"
27307 fi
27308 fi
27309 if test "x$no_gtk" = x ; then
27310 echo "$as_me:$LINENO: result: yes" >&5
27311echo "${ECHO_T}yes" >&6
27312 wx_cv_lib_gtk=1.2.7
27313 else
27314 echo "$as_me:$LINENO: result: no" >&5
27315echo "${ECHO_T}no" >&6
27316 if test "$GTK_CONFIG" = "no" ; then
27317 echo "*** The gtk-config script installed by GTK could not be found"
27318 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27319 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27320 echo "*** full path to gtk-config."
27321 else
27322 if test -f conf.gtktest ; then
27323 :
27324 else
27325 echo "*** Could not run GTK test program, checking why..."
27326 CFLAGS="$CFLAGS $GTK_CFLAGS"
27327 LIBS="$LIBS $GTK_LIBS"
27328 cat >conftest.$ac_ext <<_ACEOF
27329/* confdefs.h. */
27330_ACEOF
27331cat confdefs.h >>conftest.$ac_ext
27332cat >>conftest.$ac_ext <<_ACEOF
27333/* end confdefs.h. */
27334
27335#include <gtk/gtk.h>
27336#include <stdio.h>
27337
27338int
27339main ()
27340{
27341 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27342 ;
27343 return 0;
27344}
27345_ACEOF
27346rm -f conftest.$ac_objext conftest$ac_exeext
27347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27348 (eval $ac_link) 2>conftest.er1
a848cd7e 27349 ac_status=$?
ac1cb8d3
VS
27350 grep -v '^ *+' conftest.er1 >conftest.err
27351 rm -f conftest.er1
27352 cat conftest.err >&5
a848cd7e
SC
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); } &&
d25774ab
JS
27355 { ac_try='test -z "$ac_c_werror_flag"
27356 || test ! -s conftest.err'
ac1cb8d3
VS
27357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27358 (eval $ac_try) 2>&5
27359 ac_status=$?
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); }; } &&
27362 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27364 (eval $ac_try) 2>&5
27365 ac_status=$?
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); }; }; then
27368 echo "*** The test program compiled, but did not run. This usually means"
27369 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27370 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27371 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27372 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27373 echo "*** is required on your system"
27374 echo "***"
27375 echo "*** If you have an old version installed, it is best to remove it, although"
27376 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27377 echo "***"
27378 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27379 echo "*** came with the system with the command"
27380 echo "***"
27381 echo "*** rpm --erase --nodeps gtk gtk-devel"
27382else
27383 echo "$as_me: failed program was:" >&5
27384sed 's/^/| /' conftest.$ac_ext >&5
27385
27386 echo "*** The test program failed to compile or link. See the file config.log for the"
27387 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27388 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27389 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27390fi
ac1cb8d3
VS
27391rm -f conftest.err conftest.$ac_objext \
27392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27393 CFLAGS="$ac_save_CFLAGS"
27394 LIBS="$ac_save_LIBS"
27395 fi
27396 fi
27397 GTK_CFLAGS=""
27398 GTK_LIBS=""
27399 :
27400 fi
27401
27402
27403 rm -f conf.gtktest
27404
27405
f34ca037 27406 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27407
27408# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27409if test "${with_gtk_prefix+set}" = set; then
27410 withval="$with_gtk_prefix"
27411 gtk_config_prefix="$withval"
27412else
27413 gtk_config_prefix=""
27414fi;
27415
27416# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27417if test "${with_gtk_exec_prefix+set}" = set; then
27418 withval="$with_gtk_exec_prefix"
27419 gtk_config_exec_prefix="$withval"
27420else
27421 gtk_config_exec_prefix=""
27422fi;
27423# Check whether --enable-gtktest or --disable-gtktest was given.
27424if test "${enable_gtktest+set}" = set; then
27425 enableval="$enable_gtktest"
27426
27427else
27428 enable_gtktest=yes
27429fi;
27430
27431 for module in . $GTK_MODULES
27432 do
27433 case "$module" in
27434 gthread)
27435 gtk_config_args="$gtk_config_args gthread"
27436 ;;
27437 esac
27438 done
27439
27440 if test x$gtk_config_exec_prefix != x ; then
27441 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27442 if test x${GTK_CONFIG+set} != xset ; then
27443 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27444 fi
27445 fi
27446 if test x$gtk_config_prefix != x ; then
27447 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27448 if test x${GTK_CONFIG+set} != xset ; then
27449 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27450 fi
27451 fi
27452
27453 # Extract the first word of "gtk-config", so it can be a program name with args.
27454set dummy gtk-config; ac_word=$2
27455echo "$as_me:$LINENO: checking for $ac_word" >&5
27456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27457if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27458 echo $ECHO_N "(cached) $ECHO_C" >&6
27459else
27460 case $GTK_CONFIG in
27461 [\\/]* | ?:[\\/]*)
27462 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27463 ;;
27464 *)
27465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27466for as_dir in $PATH
27467do
27468 IFS=$as_save_IFS
27469 test -z "$as_dir" && as_dir=.
27470 for ac_exec_ext in '' $ac_executable_extensions; do
27471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27472 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27474 break 2
27475 fi
27476done
27477done
27478
27479 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27480 ;;
27481esac
27482fi
27483GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27484
27485if test -n "$GTK_CONFIG"; then
27486 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27487echo "${ECHO_T}$GTK_CONFIG" >&6
27488else
27489 echo "$as_me:$LINENO: result: no" >&5
27490echo "${ECHO_T}no" >&6
27491fi
27492
27493 min_gtk_version=1.2.3
27494 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27495echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27496 no_gtk=""
27497 if test "$GTK_CONFIG" = "no" ; then
27498 no_gtk=yes
27499 else
27500 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27501 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27502 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27503 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27504 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27505 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27506 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27507 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27508 if test "x$enable_gtktest" = "xyes" ; then
27509 ac_save_CFLAGS="$CFLAGS"
27510 ac_save_LIBS="$LIBS"
27511 CFLAGS="$CFLAGS $GTK_CFLAGS"
27512 LIBS="$GTK_LIBS $LIBS"
27513 rm -f conf.gtktest
27514 if test "$cross_compiling" = yes; then
27515 echo $ac_n "cross compiling; assumed OK... $ac_c"
27516else
27517 cat >conftest.$ac_ext <<_ACEOF
27518/* confdefs.h. */
27519_ACEOF
27520cat confdefs.h >>conftest.$ac_ext
27521cat >>conftest.$ac_ext <<_ACEOF
27522/* end confdefs.h. */
27523
27524#include <gtk/gtk.h>
27525#include <stdio.h>
27526#include <stdlib.h>
27527
27528int
27529main ()
27530{
27531 int major, minor, micro;
27532 char *tmp_version;
27533
27534 system ("touch conf.gtktest");
27535
27536 /* HP/UX 9 (%@#!) writes to sscanf strings */
27537 tmp_version = g_strdup("$min_gtk_version");
27538 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27539 printf("%s, bad version string\n", "$min_gtk_version");
27540 exit(1);
27541 }
27542
27543 if ((gtk_major_version != $gtk_config_major_version) ||
27544 (gtk_minor_version != $gtk_config_minor_version) ||
27545 (gtk_micro_version != $gtk_config_micro_version))
27546 {
27547 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27548 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27549 gtk_major_version, gtk_minor_version, gtk_micro_version);
27550 printf ("*** was found! If gtk-config was correct, then it is best\n");
27551 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27552 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27553 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27554 printf("*** required on your system.\n");
27555 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27556 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27557 printf("*** before re-running configure\n");
27558 }
27559#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27560 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27561 (gtk_minor_version != GTK_MINOR_VERSION) ||
27562 (gtk_micro_version != GTK_MICRO_VERSION))
27563 {
27564 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27565 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27566 printf("*** library (version %d.%d.%d)\n",
27567 gtk_major_version, gtk_minor_version, gtk_micro_version);
27568 }
27569#endif /* defined (GTK_MAJOR_VERSION) ... */
27570 else
27571 {
27572 if ((gtk_major_version > major) ||
27573 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27574 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27575 {
27576 return 0;
27577 }
27578 else
27579 {
27580 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27581 gtk_major_version, gtk_minor_version, gtk_micro_version);
27582 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27583 major, minor, micro);
27584 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27585 printf("***\n");
27586 printf("*** If you have already installed a sufficiently new version, this error\n");
27587 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27588 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27589 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27590 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27591 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27592 printf("*** so that the correct libraries are found at run-time))\n");
27593 }
27594 }
27595 return 1;
27596}
27597
27598_ACEOF
27599rm -f conftest$ac_exeext
27600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27601 (eval $ac_link) 2>&5
27602 ac_status=$?
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27606 (eval $ac_try) 2>&5
27607 ac_status=$?
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); }; }; then
27610 :
27611else
27612 echo "$as_me: program exited with status $ac_status" >&5
27613echo "$as_me: failed program was:" >&5
27614sed 's/^/| /' conftest.$ac_ext >&5
27615
27616( exit $ac_status )
27617no_gtk=yes
27618fi
ac1cb8d3 27619rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27620fi
27621 CFLAGS="$ac_save_CFLAGS"
27622 LIBS="$ac_save_LIBS"
27623 fi
27624 fi
27625 if test "x$no_gtk" = x ; then
27626 echo "$as_me:$LINENO: result: yes" >&5
27627echo "${ECHO_T}yes" >&6
27628 wx_cv_lib_gtk=1.2.3
27629 else
27630 echo "$as_me:$LINENO: result: no" >&5
27631echo "${ECHO_T}no" >&6
27632 if test "$GTK_CONFIG" = "no" ; then
27633 echo "*** The gtk-config script installed by GTK could not be found"
27634 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27635 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27636 echo "*** full path to gtk-config."
27637 else
27638 if test -f conf.gtktest ; then
27639 :
27640 else
27641 echo "*** Could not run GTK test program, checking why..."
27642 CFLAGS="$CFLAGS $GTK_CFLAGS"
27643 LIBS="$LIBS $GTK_LIBS"
27644 cat >conftest.$ac_ext <<_ACEOF
27645/* confdefs.h. */
27646_ACEOF
27647cat confdefs.h >>conftest.$ac_ext
27648cat >>conftest.$ac_ext <<_ACEOF
27649/* end confdefs.h. */
27650
27651#include <gtk/gtk.h>
27652#include <stdio.h>
27653
27654int
27655main ()
27656{
27657 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27658 ;
27659 return 0;
27660}
27661_ACEOF
27662rm -f conftest.$ac_objext conftest$ac_exeext
27663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27664 (eval $ac_link) 2>conftest.er1
a848cd7e 27665 ac_status=$?
ac1cb8d3
VS
27666 grep -v '^ *+' conftest.er1 >conftest.err
27667 rm -f conftest.er1
27668 cat conftest.err >&5
a848cd7e
SC
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); } &&
d25774ab
JS
27671 { ac_try='test -z "$ac_c_werror_flag"
27672 || test ! -s conftest.err'
ac1cb8d3
VS
27673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27674 (eval $ac_try) 2>&5
27675 ac_status=$?
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); }; } &&
27678 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27680 (eval $ac_try) 2>&5
27681 ac_status=$?
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; }; then
27684 echo "*** The test program compiled, but did not run. This usually means"
27685 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27686 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27687 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27688 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27689 echo "*** is required on your system"
27690 echo "***"
27691 echo "*** If you have an old version installed, it is best to remove it, although"
27692 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27693 echo "***"
27694 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27695 echo "*** came with the system with the command"
27696 echo "***"
27697 echo "*** rpm --erase --nodeps gtk gtk-devel"
27698else
27699 echo "$as_me: failed program was:" >&5
27700sed 's/^/| /' conftest.$ac_ext >&5
27701
27702 echo "*** The test program failed to compile or link. See the file config.log for the"
27703 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27704 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27705 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27706fi
ac1cb8d3
VS
27707rm -f conftest.err conftest.$ac_objext \
27708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27709 CFLAGS="$ac_save_CFLAGS"
27710 LIBS="$ac_save_LIBS"
27711 fi
27712 fi
27713 GTK_CFLAGS=""
27714 GTK_LIBS=""
27715 :
27716 fi
27717
27718
27719 rm -f conf.gtktest
27720
f34ca037 27721 fi
a848cd7e
SC
27722 fi
27723 fi
27724
27725 if test -z "$wx_cv_lib_gtk"; then
27726 wx_cv_lib_gtk=none
27727 else
27728 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27729 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27730 fi
27731
27732
27733fi
27734
27735
27736 if test "$gtk_version_cached" = 1; then
27737 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27738echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27739 fi
27740
27741 case "$wx_cv_lib_gtk" in
27742 2.0) WXGTK20=1
27743 TOOLKIT_VERSION=2
27744 ;;
27745 1.2.7) WXGTK127=1
27746 WXGTK12=1
27747 ;;
27748 1.2.3) WXGTK12=1
27749 ;;
27750 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27751The development files for GTK+ were not found. For GTK+ 2, please
27752ensure that pkg-config is in the path and that gtk+-2.0.pc is
27753installed. For GTK+ 1.2 please check that gtk-config is in the path,
27754and that the version is 1.2.3 or above. Also check that the
27755libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27756--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27757 " >&5
27758echo "$as_me: error:
f597b41c
MW
27759The development files for GTK+ were not found. For GTK+ 2, please
27760ensure that pkg-config is in the path and that gtk+-2.0.pc is
27761installed. For GTK+ 1.2 please check that gtk-config is in the path,
27762and that the version is 1.2.3 or above. Also check that the
27763libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27764--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27765 " >&2;}
27766 { (exit 1); exit 1; }; }
27767 ;;
27768 esac
27769
27770 if test "$WXGTK20" = 1; then
d25774ab 27771 save_CXXFLAGS="$CXXFLAGS"
304205f1 27772 save_LIBS="$LIBS"
d25774ab 27773 CXXFLAGS="$wx_cv_cflags_gtk $CXXFLAGS"
abc736fd 27774 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27775
d12aef51
VZ
27776 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27777echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27778 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27779/* confdefs.h. */
27780_ACEOF
27781cat confdefs.h >>conftest.$ac_ext
27782cat >>conftest.$ac_ext <<_ACEOF
27783/* end confdefs.h. */
304205f1 27784
d12aef51 27785 #include <gtk/gtk.h>
304205f1 27786
d12aef51
VZ
27787int
27788main ()
27789{
304205f1 27790
d12aef51 27791 void *f = gtk_icon_size_lookup;
abc736fd
MW
27792
27793 ;
27794 return 0;
27795}
27796_ACEOF
27797rm -f conftest.$ac_objext
27798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27799 (eval $ac_compile) 2>conftest.er1
27800 ac_status=$?
27801 grep -v '^ *+' conftest.er1 >conftest.err
27802 rm -f conftest.er1
27803 cat conftest.err >&5
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); } &&
d25774ab
JS
27806 { ac_try='test -z "$ac_c_werror_flag"
27807 || test ! -s conftest.err'
abc736fd
MW
27808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27809 (eval $ac_try) 2>&5
27810 ac_status=$?
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); }; } &&
27813 { ac_try='test -s conftest.$ac_objext'
27814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27815 (eval $ac_try) 2>&5
27816 ac_status=$?
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); }; }; then
27819
27820 echo "$as_me:$LINENO: result: no" >&5
27821echo "${ECHO_T}no" >&6
27822
27823else
27824 echo "$as_me: failed program was:" >&5
27825sed 's/^/| /' conftest.$ac_ext >&5
27826
27827
27828 cat >>confdefs.h <<\_ACEOF
27829#define NEED_GTK_ICON_SIZE_LOOKUP 1
27830_ACEOF
27831
27832 echo "$as_me:$LINENO: result: yes" >&5
27833echo "${ECHO_T}yes" >&6
27834
27835fi
27836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27837
9755e73b
VS
27838 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27839echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27840 cat >conftest.$ac_ext <<_ACEOF
27841/* confdefs.h. */
27842_ACEOF
27843cat confdefs.h >>conftest.$ac_ext
27844cat >>conftest.$ac_ext <<_ACEOF
27845/* end confdefs.h. */
27846
27847 #include <gtk/gtk.h>
27848
27849int
27850main ()
27851{
27852
27853 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27854 Not GTK+ 2.4
9755e73b
VS
27855 #endif
27856
27857 ;
27858 return 0;
27859}
27860_ACEOF
27861rm -f conftest.$ac_objext
27862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27863 (eval $ac_compile) 2>conftest.er1
27864 ac_status=$?
27865 grep -v '^ *+' conftest.er1 >conftest.err
27866 rm -f conftest.er1
27867 cat conftest.err >&5
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); } &&
d25774ab
JS
27870 { ac_try='test -z "$ac_c_werror_flag"
27871 || test ! -s conftest.err'
9755e73b
VS
27872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873 (eval $ac_try) 2>&5
27874 ac_status=$?
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; } &&
27877 { ac_try='test -s conftest.$ac_objext'
27878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879 (eval $ac_try) 2>&5
27880 ac_status=$?
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); }; }; then
27883
27884 cat >>confdefs.h <<\_ACEOF
27885#define __WXGTK24__ 1
27886_ACEOF
27887
27888 echo "$as_me:$LINENO: result: yes" >&5
27889echo "${ECHO_T}yes" >&6
27890
27891else
27892 echo "$as_me: failed program was:" >&5
27893sed 's/^/| /' conftest.$ac_ext >&5
27894
27895
27896 echo "$as_me:$LINENO: result: no" >&5
27897echo "${ECHO_T}no" >&6
27898
27899fi
27900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27901
d25774ab 27902 CXXFLAGS="$save_CXXFLAGS"
304205f1 27903 LIBS="$save_LIBS"
a848cd7e
SC
27904 else
27905 if test "$wxUSE_UNICODE" = "yes"; then
27906 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27907echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27908 wxUSE_UNICODE=no
27909 fi
27910 fi
27911
e56f4f9e
VZ
27912 ac_ext=cc
27913ac_cpp='$CXXCPP $CPPFLAGS'
27914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27917
27918
a848cd7e
SC
27919 if test "$USE_DARWIN" != 1; then
27920
27921for ac_func in poll
27922do
27923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27924echo "$as_me:$LINENO: checking for $ac_func" >&5
27925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27926if eval "test \"\${$as_ac_var+set}\" = set"; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27928else
27929 cat >conftest.$ac_ext <<_ACEOF
27930/* confdefs.h. */
27931_ACEOF
27932cat confdefs.h >>conftest.$ac_ext
27933cat >>conftest.$ac_ext <<_ACEOF
27934/* end confdefs.h. */
ac1cb8d3
VS
27935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27937#define $ac_func innocuous_$ac_func
27938
a848cd7e
SC
27939/* System header to define __stub macros and hopefully few prototypes,
27940 which can conflict with char $ac_func (); below.
27941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27942 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27943
a848cd7e
SC
27944#ifdef __STDC__
27945# include <limits.h>
27946#else
27947# include <assert.h>
27948#endif
ac1cb8d3
VS
27949
27950#undef $ac_func
27951
a848cd7e
SC
27952/* Override any gcc2 internal prototype to avoid an error. */
27953#ifdef __cplusplus
27954extern "C"
27955{
27956#endif
27957/* We use char because int might match the return type of a gcc2
27958 builtin and then its argument prototype would still apply. */
27959char $ac_func ();
27960/* The GNU C library defines this for functions which it implements
27961 to always fail with ENOSYS. Some functions are actually named
27962 something starting with __ and the normal name is an alias. */
27963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27964choke me
27965#else
27966char (*f) () = $ac_func;
27967#endif
27968#ifdef __cplusplus
27969}
27970#endif
27971
27972int
27973main ()
27974{
27975return f != $ac_func;
27976 ;
27977 return 0;
27978}
27979_ACEOF
27980rm -f conftest.$ac_objext conftest$ac_exeext
27981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27982 (eval $ac_link) 2>conftest.er1
a848cd7e 27983 ac_status=$?
ac1cb8d3
VS
27984 grep -v '^ *+' conftest.er1 >conftest.err
27985 rm -f conftest.er1
27986 cat conftest.err >&5
a848cd7e
SC
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); } &&
d25774ab
JS
27989 { ac_try='test -z "$ac_cxx_werror_flag"
27990 || test ! -s conftest.err'
ac1cb8d3
VS
27991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27992 (eval $ac_try) 2>&5
27993 ac_status=$?
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); }; } &&
27996 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27998 (eval $ac_try) 2>&5
27999 ac_status=$?
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); }; }; then
28002 eval "$as_ac_var=yes"
28003else
28004 echo "$as_me: failed program was:" >&5
28005sed 's/^/| /' conftest.$ac_ext >&5
28006
28007eval "$as_ac_var=no"
28008fi
ac1cb8d3
VS
28009rm -f conftest.err conftest.$ac_objext \
28010 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28011fi
28012echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28013echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28014if test `eval echo '${'$as_ac_var'}'` = yes; then
28015 cat >>confdefs.h <<_ACEOF
28016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28017_ACEOF
28018
28019fi
28020done
28021
28022 fi
28023
28024 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28025 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28026
28027 AFMINSTALL=afminstall
28028 TOOLKIT=GTK
28029 GUIDIST=GTK_DIST
28030
28031 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28032echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28033if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28034 echo $ECHO_N "(cached) $ECHO_C" >&6
28035else
28036 ac_check_lib_save_LIBS=$LIBS
28037LIBS="-lgdk $LIBS"
28038cat >conftest.$ac_ext <<_ACEOF
28039/* confdefs.h. */
28040_ACEOF
28041cat confdefs.h >>conftest.$ac_ext
28042cat >>conftest.$ac_ext <<_ACEOF
28043/* end confdefs.h. */
28044
28045/* Override any gcc2 internal prototype to avoid an error. */
28046#ifdef __cplusplus
28047extern "C"
28048#endif
28049/* We use char because int might match the return type of a gcc2
28050 builtin and then its argument prototype would still apply. */
28051char gdk_im_open ();
28052int
28053main ()
28054{
28055gdk_im_open ();
28056 ;
28057 return 0;
28058}
28059_ACEOF
28060rm -f conftest.$ac_objext conftest$ac_exeext
28061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28062 (eval $ac_link) 2>conftest.er1
a848cd7e 28063 ac_status=$?
ac1cb8d3
VS
28064 grep -v '^ *+' conftest.er1 >conftest.err
28065 rm -f conftest.er1
28066 cat conftest.err >&5
a848cd7e
SC
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); } &&
d25774ab
JS
28069 { ac_try='test -z "$ac_cxx_werror_flag"
28070 || test ! -s conftest.err'
ac1cb8d3
VS
28071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28072 (eval $ac_try) 2>&5
28073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28078 (eval $ac_try) 2>&5
28079 ac_status=$?
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; }; then
28082 ac_cv_lib_gdk_gdk_im_open=yes
28083else
28084 echo "$as_me: failed program was:" >&5
28085sed 's/^/| /' conftest.$ac_ext >&5
28086
28087ac_cv_lib_gdk_gdk_im_open=no
28088fi
ac1cb8d3
VS
28089rm -f conftest.err conftest.$ac_objext \
28090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28091LIBS=$ac_check_lib_save_LIBS
28092fi
28093echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28094echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28095if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28096 cat >>confdefs.h <<\_ACEOF
28097#define HAVE_XIM 1
28098_ACEOF
28099
28100fi
28101
28102
28103
28104 if test "$wxUSE_GPE" = "yes"; then
28105 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28106echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28107
0ad5d837
VZ
28108 ac_find_libraries=
28109 for ac_dir in $SEARCH_LIB;
a848cd7e 28110 do
3eca31dc 28111 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28112 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28113 ac_find_libraries=$ac_dir
28114 break 2
28115 fi
28116 done
28117 done
28118
28119 if test "$ac_find_libraries" != "" ; then
28120
0ad5d837 28121 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28122 ac_path_to_link=""
28123 else
0ad5d837
VZ
28124 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28125 result=$?
28126 if test $result = 0; then
28127 ac_path_to_link=""
28128 else
28129 ac_path_to_link=" -L$ac_find_libraries"
28130 fi
a848cd7e
SC
28131 fi
28132
28133 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28134 WXGPE=1
0ad5d837
VZ
28135 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28136echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28137 else
28138 echo "$as_me:$LINENO: result: not found" >&5
28139echo "${ECHO_T}not found" >&6
28140 fi
28141
28142 fi
28143 fi
28144
28145 if test "$wxUSE_MGL" = 1; then
28146 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28147echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28148 if test "x$MGL_ROOT" = x ; then
28149 echo "$as_me:$LINENO: result: not found" >&5
28150echo "${ECHO_T}not found" >&6
28151 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28152echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28153 { (exit 1); exit 1; }; }
28154 else
28155 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28156echo "${ECHO_T}$MGL_ROOT" >&6
28157 fi
28158
28159 echo "$as_me:$LINENO: checking for libmgl location" >&5
28160echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28161 case "${host}" in
28162 *-*-linux* )
28163 if test "x$wxUSE_SHARED" = xyes ; then
28164 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28165 else
28166 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28167 fi
28168 ;;
28169 *-pc-msdosdjgpp )
28170 mgl_os_candidates="dos32/dj2"
28171 ;;
28172 *)
28173 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28174echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28175 { (exit 1); exit 1; }; }
28176 esac
28177
28178 mgl_lib_type=""
28179 mgl_os=""
28180
28181 for mgl_os_i in $mgl_os_candidates ; do
28182 if test "x$mgl_os" = x ; then
28183 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28184 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28185 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28186 mgl_lib_type=debug
28187 mgl_os=$mgl_os_i
28188 fi
28189 fi
28190 if test "x$mgl_lib_type" = x ; then
28191 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28192 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28193 mgl_lib_type=release
28194 mgl_os=$mgl_os_i
28195 fi
28196 fi
28197 fi
28198 done
28199
28200 if test "x$mgl_os" = x ; then
28201 echo "$as_me:$LINENO: result: not found" >&5
28202echo "${ECHO_T}not found" >&6
28203 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28204echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28205 { (exit 1); exit 1; }; }
28206 fi
28207 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28208echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28209
28210 wxUSE_UNIVERSAL="yes"
28211
28212 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28213 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28214
28215 AFMINSTALL=afminstall
28216 TOOLKIT=MGL
28217 GUIDIST=MGL_DIST
28218 fi
28219
28220 if test "$wxUSE_MICROWIN" = 1; then
28221 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28222echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28223 if test "x$MICROWINDOWS" = x ; then
28224 echo "$as_me:$LINENO: result: not found" >&5
28225echo "${ECHO_T}not found" >&6
28226 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28227echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28228 { (exit 1); exit 1; }; }
28229 else
28230 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28231echo "${ECHO_T}$MICROWINDOWS" >&6
28232 fi
28233
28234 if test -f $MICROWINDOWS/lib/libmwin.a; then
28235 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28236echo "${ECHO_T}MicroWindows' libraries found." >&6
28237 else
28238 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28239echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28240 { (exit 1); exit 1; }; }
28241 fi
28242
28243 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28244 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28245
28246 wxUSE_UNIVERSAL="yes"
28247
28248 AFMINSTALL=afminstall
28249 TOOLKIT=MICROWIN
28250 GUIDIST=MICROWIN_DIST
28251
28252 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28253 fi
28254
74b84332 28255 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
d25774ab 28256 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28257echo $ECHO_N "checking for X... $ECHO_C" >&6
28258
28259
28260# Check whether --with-x or --without-x was given.
28261if test "${with_x+set}" = set; then
28262 withval="$with_x"
28263
28264fi;
28265# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28266if test "x$with_x" = xno; then
28267 # The user explicitly disabled X.
28268 have_x=disabled
28269else
28270 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28271 # Both variables are already set.
28272 have_x=yes
28273 else
28274 if test "${ac_cv_have_x+set}" = set; then
28275 echo $ECHO_N "(cached) $ECHO_C" >&6
28276else
28277 # One or both of the vars are not set, and there is no cached value.
28278ac_x_includes=no ac_x_libraries=no
28279rm -fr conftest.dir
28280if mkdir conftest.dir; then
28281 cd conftest.dir
28282 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28283 cat >Imakefile <<'_ACEOF'
28284acfindx:
28285 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28286_ACEOF
28287 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28288 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28289 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28290 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28291 for ac_extension in a so sl; do
28292 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28293 test -f $ac_im_libdir/libX11.$ac_extension; then
28294 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28295 fi
28296 done
28297 # Screen out bogus values from the imake configuration. They are
28298 # bogus both because they are the default anyway, and because
28299 # using them would break gcc on systems where it needs fixed includes.
28300 case $ac_im_incroot in
28301 /usr/include) ;;
28302 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28303 esac
28304 case $ac_im_usrlibdir in
28305 /usr/lib | /lib) ;;
28306 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28307 esac
28308 fi
28309 cd ..
28310 rm -fr conftest.dir
28311fi
28312
28313# Standard set of common directories for X headers.
28314# Check X11 before X11Rn because it is often a symlink to the current release.
28315ac_x_header_dirs='
28316/usr/X11/include
28317/usr/X11R6/include
28318/usr/X11R5/include
28319/usr/X11R4/include
28320
28321/usr/include/X11
28322/usr/include/X11R6
28323/usr/include/X11R5
28324/usr/include/X11R4
28325
28326/usr/local/X11/include
28327/usr/local/X11R6/include
28328/usr/local/X11R5/include
28329/usr/local/X11R4/include
28330
28331/usr/local/include/X11
28332/usr/local/include/X11R6
28333/usr/local/include/X11R5
28334/usr/local/include/X11R4
28335
28336/usr/X386/include
28337/usr/x386/include
28338/usr/XFree86/include/X11
28339
28340/usr/include
28341/usr/local/include
28342/usr/unsupported/include
28343/usr/athena/include
28344/usr/local/x11r5/include
28345/usr/lpp/Xamples/include
28346
28347/usr/openwin/include
28348/usr/openwin/share/include'
28349
28350if test "$ac_x_includes" = no; then
d25774ab 28351 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
28352 # First, try using that file with no special directory specified.
28353 cat >conftest.$ac_ext <<_ACEOF
28354/* confdefs.h. */
28355_ACEOF
28356cat confdefs.h >>conftest.$ac_ext
28357cat >>conftest.$ac_ext <<_ACEOF
28358/* end confdefs.h. */
d25774ab 28359#include <X11/Intrinsic.h>
a848cd7e
SC
28360_ACEOF
28361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28363 ac_status=$?
28364 grep -v '^ *+' conftest.er1 >conftest.err
28365 rm -f conftest.er1
28366 cat conftest.err >&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } >/dev/null; then
28369 if test -s conftest.err; then
5d7b7554
VZ
28370 ac_cpp_err=$ac_cxx_preproc_warn_flag
28371 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28372 else
28373 ac_cpp_err=
28374 fi
28375else
28376 ac_cpp_err=yes
28377fi
28378if test -z "$ac_cpp_err"; then
28379 # We can compile using X headers with no special include directory.
28380ac_x_includes=
28381else
28382 echo "$as_me: failed program was:" >&5
28383sed 's/^/| /' conftest.$ac_ext >&5
28384
28385 for ac_dir in $ac_x_header_dirs; do
d25774ab 28386 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
28387 ac_x_includes=$ac_dir
28388 break
28389 fi
28390done
28391fi
28392rm -f conftest.err conftest.$ac_ext
28393fi # $ac_x_includes = no
28394
28395if test "$ac_x_libraries" = no; then
28396 # Check for the libraries.
28397 # See if we find them without any special options.
28398 # Don't add to $LIBS permanently.
28399 ac_save_LIBS=$LIBS
d25774ab 28400 LIBS="-lXt $LIBS"
a848cd7e
SC
28401 cat >conftest.$ac_ext <<_ACEOF
28402/* confdefs.h. */
28403_ACEOF
28404cat confdefs.h >>conftest.$ac_ext
28405cat >>conftest.$ac_ext <<_ACEOF
28406/* end confdefs.h. */
d25774ab 28407#include <X11/Intrinsic.h>
a848cd7e
SC
28408int
28409main ()
28410{
d25774ab 28411XtMalloc (0)
a848cd7e
SC
28412 ;
28413 return 0;
28414}
28415_ACEOF
28416rm -f conftest.$ac_objext conftest$ac_exeext
28417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28418 (eval $ac_link) 2>conftest.er1
a848cd7e 28419 ac_status=$?
ac1cb8d3
VS
28420 grep -v '^ *+' conftest.er1 >conftest.err
28421 rm -f conftest.er1
28422 cat conftest.err >&5
a848cd7e
SC
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); } &&
d25774ab
JS
28425 { ac_try='test -z "$ac_cxx_werror_flag"
28426 || test ! -s conftest.err'
ac1cb8d3
VS
28427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28428 (eval $ac_try) 2>&5
28429 ac_status=$?
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); }; } &&
28432 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28434 (eval $ac_try) 2>&5
28435 ac_status=$?
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); }; }; then
28438 LIBS=$ac_save_LIBS
28439# We can link X programs with no special library path.
28440ac_x_libraries=
28441else
28442 echo "$as_me: failed program was:" >&5
28443sed 's/^/| /' conftest.$ac_ext >&5
28444
28445LIBS=$ac_save_LIBS
28446for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28447do
28448 # Don't even attempt the hair of trying to link an X program!
28449 for ac_extension in a so sl; do
d25774ab 28450 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
28451 ac_x_libraries=$ac_dir
28452 break 2
28453 fi
28454 done
28455done
28456fi
ac1cb8d3
VS
28457rm -f conftest.err conftest.$ac_objext \
28458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28459fi # $ac_x_libraries = no
28460
28461if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28462 # Didn't find X anywhere. Cache the known absence of X.
28463 ac_cv_have_x="have_x=no"
28464else
28465 # Record where we found X for the cache.
28466 ac_cv_have_x="have_x=yes \
ac1cb8d3 28467 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28468fi
28469fi
28470
28471 fi
28472 eval "$ac_cv_have_x"
28473fi # $with_x != no
28474
28475if test "$have_x" != yes; then
28476 echo "$as_me:$LINENO: result: $have_x" >&5
28477echo "${ECHO_T}$have_x" >&6
28478 no_x=yes
28479else
28480 # If each of the values was on the command line, it overrides each guess.
28481 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28482 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28483 # Update the cache value to reflect the command line values.
28484 ac_cv_have_x="have_x=yes \
28485 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
d25774ab
JS
28486 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
28487echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
28488fi
28489
28490if test "$no_x" = yes; then
28491 # Not all programs may use this symbol, but it does not hurt to define it.
28492
28493cat >>confdefs.h <<\_ACEOF
28494#define X_DISPLAY_MISSING 1
28495_ACEOF
28496
28497 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28498else
28499 if test -n "$x_includes"; then
28500 X_CFLAGS="$X_CFLAGS -I$x_includes"
28501 fi
28502
28503 # It would also be nice to do this for all -L options, not just this one.
28504 if test -n "$x_libraries"; then
28505 X_LIBS="$X_LIBS -L$x_libraries"
28506 # For Solaris; some versions of Sun CC require a space after -R and
28507 # others require no space. Words are not sufficient . . . .
28508 case `(uname -sr) 2>/dev/null` in
28509 "SunOS 5"*)
28510 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28511echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28512 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28513 cat >conftest.$ac_ext <<_ACEOF
28514/* confdefs.h. */
28515_ACEOF
28516cat confdefs.h >>conftest.$ac_ext
28517cat >>conftest.$ac_ext <<_ACEOF
28518/* end confdefs.h. */
28519
28520int
28521main ()
28522{
28523
28524 ;
28525 return 0;
28526}
28527_ACEOF
28528rm -f conftest.$ac_objext conftest$ac_exeext
28529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28530 (eval $ac_link) 2>conftest.er1
a848cd7e 28531 ac_status=$?
ac1cb8d3
VS
28532 grep -v '^ *+' conftest.er1 >conftest.err
28533 rm -f conftest.er1
28534 cat conftest.err >&5
a848cd7e
SC
28535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536 (exit $ac_status); } &&
d25774ab
JS
28537 { ac_try='test -z "$ac_cxx_werror_flag"
28538 || test ! -s conftest.err'
ac1cb8d3
VS
28539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540 (eval $ac_try) 2>&5
28541 ac_status=$?
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); }; } &&
28544 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28546 (eval $ac_try) 2>&5
28547 ac_status=$?
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; }; then
28550 ac_R_nospace=yes
28551else
28552 echo "$as_me: failed program was:" >&5
28553sed 's/^/| /' conftest.$ac_ext >&5
28554
28555ac_R_nospace=no
28556fi
ac1cb8d3
VS
28557rm -f conftest.err conftest.$ac_objext \
28558 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28559 if test $ac_R_nospace = yes; then
28560 echo "$as_me:$LINENO: result: no" >&5
28561echo "${ECHO_T}no" >&6
28562 X_LIBS="$X_LIBS -R$x_libraries"
28563 else
28564 LIBS="$ac_xsave_LIBS -R $x_libraries"
28565 cat >conftest.$ac_ext <<_ACEOF
28566/* confdefs.h. */
28567_ACEOF
28568cat confdefs.h >>conftest.$ac_ext
28569cat >>conftest.$ac_ext <<_ACEOF
28570/* end confdefs.h. */
28571
28572int
28573main ()
28574{
28575
28576 ;
28577 return 0;
28578}
28579_ACEOF
28580rm -f conftest.$ac_objext conftest$ac_exeext
28581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28582 (eval $ac_link) 2>conftest.er1
a848cd7e 28583 ac_status=$?
ac1cb8d3
VS
28584 grep -v '^ *+' conftest.er1 >conftest.err
28585 rm -f conftest.er1
28586 cat conftest.err >&5
a848cd7e
SC
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); } &&
d25774ab
JS
28589 { ac_try='test -z "$ac_cxx_werror_flag"
28590 || test ! -s conftest.err'
ac1cb8d3
VS
28591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28592 (eval $ac_try) 2>&5
28593 ac_status=$?
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); }; } &&
28596 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28598 (eval $ac_try) 2>&5
28599 ac_status=$?
28600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601 (exit $ac_status); }; }; then
28602 ac_R_space=yes
28603else
28604 echo "$as_me: failed program was:" >&5
28605sed 's/^/| /' conftest.$ac_ext >&5
28606
28607ac_R_space=no
28608fi
ac1cb8d3
VS
28609rm -f conftest.err conftest.$ac_objext \
28610 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28611 if test $ac_R_space = yes; then
28612 echo "$as_me:$LINENO: result: yes" >&5
28613echo "${ECHO_T}yes" >&6
28614 X_LIBS="$X_LIBS -R $x_libraries"
28615 else
28616 echo "$as_me:$LINENO: result: neither works" >&5
28617echo "${ECHO_T}neither works" >&6
28618 fi
28619 fi
28620 LIBS=$ac_xsave_LIBS
28621 esac
28622 fi
28623
28624 # Check for system-dependent libraries X programs must link with.
28625 # Do this before checking for the system-independent R6 libraries
28626 # (-lICE), since we may need -lsocket or whatever for X linking.
28627
28628 if test "$ISC" = yes; then
28629 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28630 else
28631 # Martyn Johnson says this is needed for Ultrix, if the X
28632 # libraries were built with DECnet support. And Karl Berry says
28633 # the Alpha needs dnet_stub (dnet does not exist).
28634 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28635 cat >conftest.$ac_ext <<_ACEOF
28636/* confdefs.h. */
28637_ACEOF
28638cat confdefs.h >>conftest.$ac_ext
28639cat >>conftest.$ac_ext <<_ACEOF
28640/* end confdefs.h. */
28641
28642/* Override any gcc2 internal prototype to avoid an error. */
28643#ifdef __cplusplus
28644extern "C"
28645#endif
28646/* We use char because int might match the return type of a gcc2
28647 builtin and then its argument prototype would still apply. */
28648char XOpenDisplay ();
28649int
28650main ()
28651{
28652XOpenDisplay ();
28653 ;
28654 return 0;
28655}
28656_ACEOF
28657rm -f conftest.$ac_objext conftest$ac_exeext
28658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28659 (eval $ac_link) 2>conftest.er1
a848cd7e 28660 ac_status=$?
ac1cb8d3
VS
28661 grep -v '^ *+' conftest.er1 >conftest.err
28662 rm -f conftest.er1
28663 cat conftest.err >&5
a848cd7e
SC
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } &&
d25774ab
JS
28666 { ac_try='test -z "$ac_cxx_werror_flag"
28667 || test ! -s conftest.err'
ac1cb8d3
VS
28668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669 (eval $ac_try) 2>&5
28670 ac_status=$?
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; } &&
28673 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675 (eval $ac_try) 2>&5
28676 ac_status=$?
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; }; then
28679 :
28680else
28681 echo "$as_me: failed program was:" >&5
28682sed 's/^/| /' conftest.$ac_ext >&5
28683
28684echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28685echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28686if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28687 echo $ECHO_N "(cached) $ECHO_C" >&6
28688else
28689 ac_check_lib_save_LIBS=$LIBS
28690LIBS="-ldnet $LIBS"
28691cat >conftest.$ac_ext <<_ACEOF
28692/* confdefs.h. */
28693_ACEOF
28694cat confdefs.h >>conftest.$ac_ext
28695cat >>conftest.$ac_ext <<_ACEOF
28696/* end confdefs.h. */
28697
28698/* Override any gcc2 internal prototype to avoid an error. */
28699#ifdef __cplusplus
28700extern "C"
28701#endif
28702/* We use char because int might match the return type of a gcc2
28703 builtin and then its argument prototype would still apply. */
28704char dnet_ntoa ();
28705int
28706main ()
28707{
28708dnet_ntoa ();
28709 ;
28710 return 0;
28711}
28712_ACEOF
28713rm -f conftest.$ac_objext conftest$ac_exeext
28714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28715 (eval $ac_link) 2>conftest.er1
a848cd7e 28716 ac_status=$?
ac1cb8d3
VS
28717 grep -v '^ *+' conftest.er1 >conftest.err
28718 rm -f conftest.er1
28719 cat conftest.err >&5
a848cd7e
SC
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); } &&
d25774ab
JS
28722 { ac_try='test -z "$ac_cxx_werror_flag"
28723 || test ! -s conftest.err'
ac1cb8d3
VS
28724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28725 (eval $ac_try) 2>&5
28726 ac_status=$?
28727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728 (exit $ac_status); }; } &&
28729 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28731 (eval $ac_try) 2>&5
28732 ac_status=$?
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); }; }; then
28735 ac_cv_lib_dnet_dnet_ntoa=yes
28736else
28737 echo "$as_me: failed program was:" >&5
28738sed 's/^/| /' conftest.$ac_ext >&5
28739
28740ac_cv_lib_dnet_dnet_ntoa=no
28741fi
ac1cb8d3
VS
28742rm -f conftest.err conftest.$ac_objext \
28743 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28744LIBS=$ac_check_lib_save_LIBS
28745fi
28746echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28747echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28748if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28749 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28750fi
28751
28752 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28753 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28754echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28755if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28756 echo $ECHO_N "(cached) $ECHO_C" >&6
28757else
28758 ac_check_lib_save_LIBS=$LIBS
28759LIBS="-ldnet_stub $LIBS"
28760cat >conftest.$ac_ext <<_ACEOF
28761/* confdefs.h. */
28762_ACEOF
28763cat confdefs.h >>conftest.$ac_ext
28764cat >>conftest.$ac_ext <<_ACEOF
28765/* end confdefs.h. */
28766
28767/* Override any gcc2 internal prototype to avoid an error. */
28768#ifdef __cplusplus
28769extern "C"
28770#endif
28771/* We use char because int might match the return type of a gcc2
28772 builtin and then its argument prototype would still apply. */
28773char dnet_ntoa ();
28774int
28775main ()
28776{
28777dnet_ntoa ();
28778 ;
28779 return 0;
28780}
28781_ACEOF
28782rm -f conftest.$ac_objext conftest$ac_exeext
28783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28784 (eval $ac_link) 2>conftest.er1
a848cd7e 28785 ac_status=$?
ac1cb8d3
VS
28786 grep -v '^ *+' conftest.er1 >conftest.err
28787 rm -f conftest.er1
28788 cat conftest.err >&5
a848cd7e
SC
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } &&
d25774ab
JS
28791 { ac_try='test -z "$ac_cxx_werror_flag"
28792 || test ! -s conftest.err'
ac1cb8d3
VS
28793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794 (eval $ac_try) 2>&5
28795 ac_status=$?
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; } &&
28798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28801 ac_status=$?
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; }; then
28804 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28805else
28806 echo "$as_me: failed program was:" >&5
28807sed 's/^/| /' conftest.$ac_ext >&5
28808
28809ac_cv_lib_dnet_stub_dnet_ntoa=no
28810fi
ac1cb8d3
VS
28811rm -f conftest.err conftest.$ac_objext \
28812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28813LIBS=$ac_check_lib_save_LIBS
28814fi
28815echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28816echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28817if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28818 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28819fi
28820
28821 fi
28822fi
ac1cb8d3
VS
28823rm -f conftest.err conftest.$ac_objext \
28824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28825 LIBS="$ac_xsave_LIBS"
28826
28827 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28828 # to get the SysV transport functions.
28829 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28830 # needs -lnsl.
28831 # The nsl library prevents programs from opening the X display
28832 # on Irix 5.2, according to T.E. Dickey.
28833 # The functions gethostbyname, getservbyname, and inet_addr are
28834 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28835 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28836echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28837if test "${ac_cv_func_gethostbyname+set}" = set; then
28838 echo $ECHO_N "(cached) $ECHO_C" >&6
28839else
28840 cat >conftest.$ac_ext <<_ACEOF
28841/* confdefs.h. */
28842_ACEOF
28843cat confdefs.h >>conftest.$ac_ext
28844cat >>conftest.$ac_ext <<_ACEOF
28845/* end confdefs.h. */
ac1cb8d3
VS
28846/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28848#define gethostbyname innocuous_gethostbyname
28849
a848cd7e
SC
28850/* System header to define __stub macros and hopefully few prototypes,
28851 which can conflict with char gethostbyname (); below.
28852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28853 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28854
a848cd7e
SC
28855#ifdef __STDC__
28856# include <limits.h>
28857#else
28858# include <assert.h>
28859#endif
ac1cb8d3
VS
28860
28861#undef gethostbyname
28862
a848cd7e
SC
28863/* Override any gcc2 internal prototype to avoid an error. */
28864#ifdef __cplusplus
28865extern "C"
28866{
28867#endif
28868/* We use char because int might match the return type of a gcc2
28869 builtin and then its argument prototype would still apply. */
28870char gethostbyname ();
28871/* The GNU C library defines this for functions which it implements
28872 to always fail with ENOSYS. Some functions are actually named
28873 something starting with __ and the normal name is an alias. */
28874#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28875choke me
28876#else
28877char (*f) () = gethostbyname;
28878#endif
28879#ifdef __cplusplus
28880}
28881#endif
28882
28883int
28884main ()
28885{
28886return f != gethostbyname;
28887 ;
28888 return 0;
28889}
28890_ACEOF
28891rm -f conftest.$ac_objext conftest$ac_exeext
28892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28893 (eval $ac_link) 2>conftest.er1
a848cd7e 28894 ac_status=$?
ac1cb8d3
VS
28895 grep -v '^ *+' conftest.er1 >conftest.err
28896 rm -f conftest.er1
28897 cat conftest.err >&5
a848cd7e
SC
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); } &&
d25774ab
JS
28900 { ac_try='test -z "$ac_cxx_werror_flag"
28901 || test ! -s conftest.err'
ac1cb8d3
VS
28902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28903 (eval $ac_try) 2>&5
28904 ac_status=$?
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); }; } &&
28907 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909 (eval $ac_try) 2>&5
28910 ac_status=$?
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; }; then
28913 ac_cv_func_gethostbyname=yes
28914else
28915 echo "$as_me: failed program was:" >&5
28916sed 's/^/| /' conftest.$ac_ext >&5
28917
28918ac_cv_func_gethostbyname=no
28919fi
ac1cb8d3
VS
28920rm -f conftest.err conftest.$ac_objext \
28921 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28922fi
28923echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28924echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28925
28926 if test $ac_cv_func_gethostbyname = no; then
28927 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28928echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28929if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28930 echo $ECHO_N "(cached) $ECHO_C" >&6
28931else
28932 ac_check_lib_save_LIBS=$LIBS
28933LIBS="-lnsl $LIBS"
28934cat >conftest.$ac_ext <<_ACEOF
28935/* confdefs.h. */
28936_ACEOF
28937cat confdefs.h >>conftest.$ac_ext
28938cat >>conftest.$ac_ext <<_ACEOF
28939/* end confdefs.h. */
28940
28941/* Override any gcc2 internal prototype to avoid an error. */
28942#ifdef __cplusplus
28943extern "C"
28944#endif
28945/* We use char because int might match the return type of a gcc2
28946 builtin and then its argument prototype would still apply. */
28947char gethostbyname ();
28948int
28949main ()
28950{
28951gethostbyname ();
28952 ;
28953 return 0;
28954}
28955_ACEOF
28956rm -f conftest.$ac_objext conftest$ac_exeext
28957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28958 (eval $ac_link) 2>conftest.er1
28959 ac_status=$?
28960 grep -v '^ *+' conftest.er1 >conftest.err
28961 rm -f conftest.er1
28962 cat conftest.err >&5
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); } &&
d25774ab
JS
28965 { ac_try='test -z "$ac_cxx_werror_flag"
28966 || test ! -s conftest.err'
ac1cb8d3
VS
28967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968 (eval $ac_try) 2>&5
28969 ac_status=$?
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); }; } &&
28972 { ac_try='test -s conftest$ac_exeext'
28973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28974 (eval $ac_try) 2>&5
28975 ac_status=$?
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); }; }; then
28978 ac_cv_lib_nsl_gethostbyname=yes
28979else
28980 echo "$as_me: failed program was:" >&5
28981sed 's/^/| /' conftest.$ac_ext >&5
28982
28983ac_cv_lib_nsl_gethostbyname=no
28984fi
28985rm -f conftest.err conftest.$ac_objext \
28986 conftest$ac_exeext conftest.$ac_ext
28987LIBS=$ac_check_lib_save_LIBS
28988fi
28989echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28990echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28991if test $ac_cv_lib_nsl_gethostbyname = yes; then
28992 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28993fi
28994
28995 if test $ac_cv_lib_nsl_gethostbyname = no; then
28996 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28997echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28998if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28999 echo $ECHO_N "(cached) $ECHO_C" >&6
29000else
29001 ac_check_lib_save_LIBS=$LIBS
29002LIBS="-lbsd $LIBS"
29003cat >conftest.$ac_ext <<_ACEOF
29004/* confdefs.h. */
29005_ACEOF
29006cat confdefs.h >>conftest.$ac_ext
29007cat >>conftest.$ac_ext <<_ACEOF
29008/* end confdefs.h. */
29009
29010/* Override any gcc2 internal prototype to avoid an error. */
29011#ifdef __cplusplus
29012extern "C"
29013#endif
29014/* We use char because int might match the return type of a gcc2
29015 builtin and then its argument prototype would still apply. */
29016char gethostbyname ();
29017int
29018main ()
29019{
29020gethostbyname ();
29021 ;
29022 return 0;
29023}
29024_ACEOF
29025rm -f conftest.$ac_objext conftest$ac_exeext
29026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29027 (eval $ac_link) 2>conftest.er1
a848cd7e 29028 ac_status=$?
ac1cb8d3
VS
29029 grep -v '^ *+' conftest.er1 >conftest.err
29030 rm -f conftest.er1
29031 cat conftest.err >&5
a848cd7e
SC
29032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033 (exit $ac_status); } &&
d25774ab
JS
29034 { ac_try='test -z "$ac_cxx_werror_flag"
29035 || test ! -s conftest.err'
a848cd7e
SC
29036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29037 (eval $ac_try) 2>&5
29038 ac_status=$?
29039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
29040 (exit $ac_status); }; } &&
29041 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29043 (eval $ac_try) 2>&5
29044 ac_status=$?
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); }; }; then
29047 ac_cv_lib_bsd_gethostbyname=yes
29048else
29049 echo "$as_me: failed program was:" >&5
29050sed 's/^/| /' conftest.$ac_ext >&5
29051
29052ac_cv_lib_bsd_gethostbyname=no
29053fi
ac1cb8d3
VS
29054rm -f conftest.err conftest.$ac_objext \
29055 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29056LIBS=$ac_check_lib_save_LIBS
29057fi
29058echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29059echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29060if test $ac_cv_lib_bsd_gethostbyname = yes; then
29061 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29062fi
29063
29064 fi
29065 fi
29066
29067 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29068 # socket/setsockopt and other routines are undefined under SCO ODT
29069 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29070 # on later versions), says Simon Leinen: it contains gethostby*
29071 # variants that don't use the name server (or something). -lsocket
29072 # must be given before -lnsl if both are needed. We assume that
29073 # if connect needs -lnsl, so does gethostbyname.
29074 echo "$as_me:$LINENO: checking for connect" >&5
29075echo $ECHO_N "checking for connect... $ECHO_C" >&6
29076if test "${ac_cv_func_connect+set}" = set; then
29077 echo $ECHO_N "(cached) $ECHO_C" >&6
29078else
29079 cat >conftest.$ac_ext <<_ACEOF
29080/* confdefs.h. */
29081_ACEOF
29082cat confdefs.h >>conftest.$ac_ext
29083cat >>conftest.$ac_ext <<_ACEOF
29084/* end confdefs.h. */
ac1cb8d3
VS
29085/* Define connect to an innocuous variant, in case <limits.h> declares connect.
29086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29087#define connect innocuous_connect
29088
a848cd7e
SC
29089/* System header to define __stub macros and hopefully few prototypes,
29090 which can conflict with char connect (); below.
29091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29092 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29093
a848cd7e
SC
29094#ifdef __STDC__
29095# include <limits.h>
29096#else
29097# include <assert.h>
29098#endif
ac1cb8d3
VS
29099
29100#undef connect
29101
a848cd7e
SC
29102/* Override any gcc2 internal prototype to avoid an error. */
29103#ifdef __cplusplus
29104extern "C"
29105{
29106#endif
29107/* We use char because int might match the return type of a gcc2
29108 builtin and then its argument prototype would still apply. */
29109char connect ();
29110/* The GNU C library defines this for functions which it implements
29111 to always fail with ENOSYS. Some functions are actually named
29112 something starting with __ and the normal name is an alias. */
29113#if defined (__stub_connect) || defined (__stub___connect)
29114choke me
29115#else
29116char (*f) () = connect;
29117#endif
29118#ifdef __cplusplus
29119}
29120#endif
29121
29122int
29123main ()
29124{
29125return f != connect;
29126 ;
29127 return 0;
29128}
29129_ACEOF
29130rm -f conftest.$ac_objext conftest$ac_exeext
29131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29132 (eval $ac_link) 2>conftest.er1
a848cd7e 29133 ac_status=$?
ac1cb8d3
VS
29134 grep -v '^ *+' conftest.er1 >conftest.err
29135 rm -f conftest.er1
29136 cat conftest.err >&5
a848cd7e
SC
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); } &&
d25774ab
JS
29139 { ac_try='test -z "$ac_cxx_werror_flag"
29140 || test ! -s conftest.err'
ac1cb8d3
VS
29141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29142 (eval $ac_try) 2>&5
29143 ac_status=$?
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); }; } &&
29146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148 (eval $ac_try) 2>&5
29149 ac_status=$?
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); }; }; then
29152 ac_cv_func_connect=yes
29153else
29154 echo "$as_me: failed program was:" >&5
29155sed 's/^/| /' conftest.$ac_ext >&5
29156
29157ac_cv_func_connect=no
29158fi
ac1cb8d3
VS
29159rm -f conftest.err conftest.$ac_objext \
29160 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29161fi
29162echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29163echo "${ECHO_T}$ac_cv_func_connect" >&6
29164
29165 if test $ac_cv_func_connect = no; then
29166 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29167echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29168if test "${ac_cv_lib_socket_connect+set}" = set; then
29169 echo $ECHO_N "(cached) $ECHO_C" >&6
29170else
29171 ac_check_lib_save_LIBS=$LIBS
29172LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29173cat >conftest.$ac_ext <<_ACEOF
29174/* confdefs.h. */
29175_ACEOF
29176cat confdefs.h >>conftest.$ac_ext
29177cat >>conftest.$ac_ext <<_ACEOF
29178/* end confdefs.h. */
29179
29180/* Override any gcc2 internal prototype to avoid an error. */
29181#ifdef __cplusplus
29182extern "C"
29183#endif
29184/* We use char because int might match the return type of a gcc2
29185 builtin and then its argument prototype would still apply. */
29186char connect ();
29187int
29188main ()
29189{
29190connect ();
29191 ;
29192 return 0;
29193}
29194_ACEOF
29195rm -f conftest.$ac_objext conftest$ac_exeext
29196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29197 (eval $ac_link) 2>conftest.er1
a848cd7e 29198 ac_status=$?
ac1cb8d3
VS
29199 grep -v '^ *+' conftest.er1 >conftest.err
29200 rm -f conftest.er1
29201 cat conftest.err >&5
a848cd7e
SC
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); } &&
d25774ab
JS
29204 { ac_try='test -z "$ac_cxx_werror_flag"
29205 || test ! -s conftest.err'
ac1cb8d3
VS
29206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29207 (eval $ac_try) 2>&5
29208 ac_status=$?
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); }; } &&
29211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29213 (eval $ac_try) 2>&5
29214 ac_status=$?
29215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216 (exit $ac_status); }; }; then
29217 ac_cv_lib_socket_connect=yes
29218else
29219 echo "$as_me: failed program was:" >&5
29220sed 's/^/| /' conftest.$ac_ext >&5
29221
29222ac_cv_lib_socket_connect=no
29223fi
ac1cb8d3
VS
29224rm -f conftest.err conftest.$ac_objext \
29225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29226LIBS=$ac_check_lib_save_LIBS
29227fi
29228echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29229echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29230if test $ac_cv_lib_socket_connect = yes; then
29231 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29232fi
29233
29234 fi
29235
29236 # Guillermo Gomez says -lposix is necessary on A/UX.
29237 echo "$as_me:$LINENO: checking for remove" >&5
29238echo $ECHO_N "checking for remove... $ECHO_C" >&6
29239if test "${ac_cv_func_remove+set}" = set; then
29240 echo $ECHO_N "(cached) $ECHO_C" >&6
29241else
29242 cat >conftest.$ac_ext <<_ACEOF
29243/* confdefs.h. */
29244_ACEOF
29245cat confdefs.h >>conftest.$ac_ext
29246cat >>conftest.$ac_ext <<_ACEOF
29247/* end confdefs.h. */
ac1cb8d3
VS
29248/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29250#define remove innocuous_remove
29251
a848cd7e
SC
29252/* System header to define __stub macros and hopefully few prototypes,
29253 which can conflict with char remove (); below.
29254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29255 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29256
a848cd7e
SC
29257#ifdef __STDC__
29258# include <limits.h>
29259#else
29260# include <assert.h>
29261#endif
ac1cb8d3
VS
29262
29263#undef remove
29264
a848cd7e
SC
29265/* Override any gcc2 internal prototype to avoid an error. */
29266#ifdef __cplusplus
29267extern "C"
29268{
29269#endif
29270/* We use char because int might match the return type of a gcc2
29271 builtin and then its argument prototype would still apply. */
29272char remove ();
29273/* The GNU C library defines this for functions which it implements
29274 to always fail with ENOSYS. Some functions are actually named
29275 something starting with __ and the normal name is an alias. */
29276#if defined (__stub_remove) || defined (__stub___remove)
29277choke me
29278#else
29279char (*f) () = remove;
29280#endif
29281#ifdef __cplusplus
29282}
29283#endif
29284
29285int
29286main ()
29287{
29288return f != remove;
29289 ;
29290 return 0;
29291}
29292_ACEOF
29293rm -f conftest.$ac_objext conftest$ac_exeext
29294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29295 (eval $ac_link) 2>conftest.er1
a848cd7e 29296 ac_status=$?
ac1cb8d3
VS
29297 grep -v '^ *+' conftest.er1 >conftest.err
29298 rm -f conftest.er1
29299 cat conftest.err >&5
a848cd7e
SC
29300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301 (exit $ac_status); } &&
d25774ab
JS
29302 { ac_try='test -z "$ac_cxx_werror_flag"
29303 || test ! -s conftest.err'
ac1cb8d3
VS
29304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29305 (eval $ac_try) 2>&5
29306 ac_status=$?
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); }; } &&
29309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311 (eval $ac_try) 2>&5
29312 ac_status=$?
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
29315 ac_cv_func_remove=yes
29316else
29317 echo "$as_me: failed program was:" >&5
29318sed 's/^/| /' conftest.$ac_ext >&5
29319
29320ac_cv_func_remove=no
29321fi
ac1cb8d3
VS
29322rm -f conftest.err conftest.$ac_objext \
29323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29324fi
29325echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29326echo "${ECHO_T}$ac_cv_func_remove" >&6
29327
29328 if test $ac_cv_func_remove = no; then
29329 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29330echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29331if test "${ac_cv_lib_posix_remove+set}" = set; then
29332 echo $ECHO_N "(cached) $ECHO_C" >&6
29333else
29334 ac_check_lib_save_LIBS=$LIBS
29335LIBS="-lposix $LIBS"
29336cat >conftest.$ac_ext <<_ACEOF
29337/* confdefs.h. */
29338_ACEOF
29339cat confdefs.h >>conftest.$ac_ext
29340cat >>conftest.$ac_ext <<_ACEOF
29341/* end confdefs.h. */
29342
29343/* Override any gcc2 internal prototype to avoid an error. */
29344#ifdef __cplusplus
29345extern "C"
29346#endif
29347/* We use char because int might match the return type of a gcc2
29348 builtin and then its argument prototype would still apply. */
29349char remove ();
29350int
29351main ()
29352{
29353remove ();
29354 ;
29355 return 0;
29356}
29357_ACEOF
29358rm -f conftest.$ac_objext conftest$ac_exeext
29359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29360 (eval $ac_link) 2>conftest.er1
a848cd7e 29361 ac_status=$?
ac1cb8d3
VS
29362 grep -v '^ *+' conftest.er1 >conftest.err
29363 rm -f conftest.er1
29364 cat conftest.err >&5
a848cd7e
SC
29365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366 (exit $ac_status); } &&
d25774ab
JS
29367 { ac_try='test -z "$ac_cxx_werror_flag"
29368 || test ! -s conftest.err'
ac1cb8d3
VS
29369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29370 (eval $ac_try) 2>&5
29371 ac_status=$?
29372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373 (exit $ac_status); }; } &&
29374 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29376 (eval $ac_try) 2>&5
29377 ac_status=$?
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); }; }; then
29380 ac_cv_lib_posix_remove=yes
29381else
29382 echo "$as_me: failed program was:" >&5
29383sed 's/^/| /' conftest.$ac_ext >&5
29384
29385ac_cv_lib_posix_remove=no
29386fi
ac1cb8d3
VS
29387rm -f conftest.err conftest.$ac_objext \
29388 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29389LIBS=$ac_check_lib_save_LIBS
29390fi
29391echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29392echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29393if test $ac_cv_lib_posix_remove = yes; then
29394 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29395fi
29396
29397 fi
29398
29399 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29400 echo "$as_me:$LINENO: checking for shmat" >&5
29401echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29402if test "${ac_cv_func_shmat+set}" = set; then
29403 echo $ECHO_N "(cached) $ECHO_C" >&6
29404else
29405 cat >conftest.$ac_ext <<_ACEOF
29406/* confdefs.h. */
29407_ACEOF
29408cat confdefs.h >>conftest.$ac_ext
29409cat >>conftest.$ac_ext <<_ACEOF
29410/* end confdefs.h. */
ac1cb8d3
VS
29411/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29413#define shmat innocuous_shmat
29414
a848cd7e
SC
29415/* System header to define __stub macros and hopefully few prototypes,
29416 which can conflict with char shmat (); below.
29417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29418 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29419
a848cd7e
SC
29420#ifdef __STDC__
29421# include <limits.h>
29422#else
29423# include <assert.h>
29424#endif
ac1cb8d3
VS
29425
29426#undef shmat
29427
a848cd7e
SC
29428/* Override any gcc2 internal prototype to avoid an error. */
29429#ifdef __cplusplus
29430extern "C"
29431{
29432#endif
29433/* We use char because int might match the return type of a gcc2
29434 builtin and then its argument prototype would still apply. */
29435char shmat ();
29436/* The GNU C library defines this for functions which it implements
29437 to always fail with ENOSYS. Some functions are actually named
29438 something starting with __ and the normal name is an alias. */
29439#if defined (__stub_shmat) || defined (__stub___shmat)
29440choke me
29441#else
29442char (*f) () = shmat;
29443#endif
29444#ifdef __cplusplus
29445}
29446#endif
29447
29448int
29449main ()
29450{
29451return f != shmat;
29452 ;
29453 return 0;
29454}
29455_ACEOF
29456rm -f conftest.$ac_objext conftest$ac_exeext
29457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29458 (eval $ac_link) 2>conftest.er1
a848cd7e 29459 ac_status=$?
ac1cb8d3
VS
29460 grep -v '^ *+' conftest.er1 >conftest.err
29461 rm -f conftest.er1
29462 cat conftest.err >&5
a848cd7e
SC
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); } &&
d25774ab
JS
29465 { ac_try='test -z "$ac_cxx_werror_flag"
29466 || test ! -s conftest.err'
ac1cb8d3
VS
29467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29468 (eval $ac_try) 2>&5
29469 ac_status=$?
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); }; } &&
29472 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474 (eval $ac_try) 2>&5
29475 ac_status=$?
29476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); }; }; then
29478 ac_cv_func_shmat=yes
29479else
29480 echo "$as_me: failed program was:" >&5
29481sed 's/^/| /' conftest.$ac_ext >&5
29482
29483ac_cv_func_shmat=no
29484fi
ac1cb8d3
VS
29485rm -f conftest.err conftest.$ac_objext \
29486 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29487fi
29488echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29489echo "${ECHO_T}$ac_cv_func_shmat" >&6
29490
29491 if test $ac_cv_func_shmat = no; then
29492 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29493echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29494if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29495 echo $ECHO_N "(cached) $ECHO_C" >&6
29496else
29497 ac_check_lib_save_LIBS=$LIBS
29498LIBS="-lipc $LIBS"
29499cat >conftest.$ac_ext <<_ACEOF
29500/* confdefs.h. */
29501_ACEOF
29502cat confdefs.h >>conftest.$ac_ext
29503cat >>conftest.$ac_ext <<_ACEOF
29504/* end confdefs.h. */
29505
29506/* Override any gcc2 internal prototype to avoid an error. */
29507#ifdef __cplusplus
29508extern "C"
29509#endif
29510/* We use char because int might match the return type of a gcc2
29511 builtin and then its argument prototype would still apply. */
29512char shmat ();
29513int
29514main ()
29515{
29516shmat ();
29517 ;
29518 return 0;
29519}
29520_ACEOF
29521rm -f conftest.$ac_objext conftest$ac_exeext
29522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29523 (eval $ac_link) 2>conftest.er1
a848cd7e 29524 ac_status=$?
ac1cb8d3
VS
29525 grep -v '^ *+' conftest.er1 >conftest.err
29526 rm -f conftest.er1
29527 cat conftest.err >&5
a848cd7e
SC
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); } &&
d25774ab
JS
29530 { ac_try='test -z "$ac_cxx_werror_flag"
29531 || test ! -s conftest.err'
ac1cb8d3
VS
29532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29533 (eval $ac_try) 2>&5
29534 ac_status=$?
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); }; } &&
29537 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539 (eval $ac_try) 2>&5
29540 ac_status=$?
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); }; }; then
29543 ac_cv_lib_ipc_shmat=yes
29544else
29545 echo "$as_me: failed program was:" >&5
29546sed 's/^/| /' conftest.$ac_ext >&5
29547
29548ac_cv_lib_ipc_shmat=no
29549fi
ac1cb8d3
VS
29550rm -f conftest.err conftest.$ac_objext \
29551 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29552LIBS=$ac_check_lib_save_LIBS
29553fi
29554echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29555echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29556if test $ac_cv_lib_ipc_shmat = yes; then
29557 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29558fi
29559
29560 fi
29561 fi
29562
29563 # Check for libraries that X11R6 Xt/Xaw programs need.
29564 ac_save_LDFLAGS=$LDFLAGS
29565 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29566 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29567 # check for ICE first), but we must link in the order -lSM -lICE or
29568 # we get undefined symbols. So assume we have SM if we have ICE.
29569 # These have to be linked with before -lX11, unlike the other
29570 # libraries we check for below, so use a different variable.
29571 # John Interrante, Karl Berry
29572 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29573echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29574if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29575 echo $ECHO_N "(cached) $ECHO_C" >&6
29576else
29577 ac_check_lib_save_LIBS=$LIBS
29578LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29579cat >conftest.$ac_ext <<_ACEOF
29580/* confdefs.h. */
29581_ACEOF
29582cat confdefs.h >>conftest.$ac_ext
29583cat >>conftest.$ac_ext <<_ACEOF
29584/* end confdefs.h. */
29585
29586/* Override any gcc2 internal prototype to avoid an error. */
29587#ifdef __cplusplus
29588extern "C"
29589#endif
29590/* We use char because int might match the return type of a gcc2
29591 builtin and then its argument prototype would still apply. */
29592char IceConnectionNumber ();
29593int
29594main ()
29595{
29596IceConnectionNumber ();
29597 ;
29598 return 0;
29599}
29600_ACEOF
29601rm -f conftest.$ac_objext conftest$ac_exeext
29602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29603 (eval $ac_link) 2>conftest.er1
a848cd7e 29604 ac_status=$?
ac1cb8d3
VS
29605 grep -v '^ *+' conftest.er1 >conftest.err
29606 rm -f conftest.er1
29607 cat conftest.err >&5
a848cd7e
SC
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); } &&
d25774ab
JS
29610 { ac_try='test -z "$ac_cxx_werror_flag"
29611 || test ! -s conftest.err'
ac1cb8d3
VS
29612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29613 (eval $ac_try) 2>&5
29614 ac_status=$?
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); }; } &&
29617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29619 (eval $ac_try) 2>&5
29620 ac_status=$?
29621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622 (exit $ac_status); }; }; then
29623 ac_cv_lib_ICE_IceConnectionNumber=yes
29624else
29625 echo "$as_me: failed program was:" >&5
29626sed 's/^/| /' conftest.$ac_ext >&5
29627
29628ac_cv_lib_ICE_IceConnectionNumber=no
29629fi
ac1cb8d3
VS
29630rm -f conftest.err conftest.$ac_objext \
29631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29632LIBS=$ac_check_lib_save_LIBS
29633fi
29634echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29635echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29636if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29637 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29638fi
29639
29640 LDFLAGS=$ac_save_LDFLAGS
29641
29642fi
29643
29644
29645 if test "$no_x" = "yes"; then
89d90d6d
VZ
29646 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29647echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29648 { (exit 1); exit 1; }; }
a848cd7e
SC
29649 fi
29650
74b84332
VS
29651 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29652 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29653 AFMINSTALL=afminstall
29654 COMPILED_X_PROGRAM=0
29655
74b84332
VS
29656 fi
29657
29658 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29659 if test "$wxUSE_NANOX" = "yes"; then
29660 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29661echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29662 if test "x$MICROWIN" = x ; then
29663 echo "$as_me:$LINENO: result: not found" >&5
29664echo "${ECHO_T}not found" >&6
29665 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29666echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29667 { (exit 1); exit 1; }; }
29668 else
29669 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29670echo "${ECHO_T}$MICROWIN" >&6
29671 cat >>confdefs.h <<\_ACEOF
29672#define wxUSE_NANOX 1
29673_ACEOF
29674
29675 fi
29676 fi
29677
29678 if test "$wxUSE_UNICODE" = "yes"; then
29679
29680 succeeded=no
29681
29682 if test -z "$PKG_CONFIG"; then
29683 # Extract the first word of "pkg-config", so it can be a program name with args.
29684set dummy pkg-config; ac_word=$2
29685echo "$as_me:$LINENO: checking for $ac_word" >&5
29686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29687if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29688 echo $ECHO_N "(cached) $ECHO_C" >&6
29689else
29690 case $PKG_CONFIG in
29691 [\\/]* | ?:[\\/]*)
29692 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29693 ;;
29694 *)
29695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29696for as_dir in $PATH
29697do
29698 IFS=$as_save_IFS
29699 test -z "$as_dir" && as_dir=.
29700 for ac_exec_ext in '' $ac_executable_extensions; do
29701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29702 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29704 break 2
29705 fi
29706done
29707done
29708
29709 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29710 ;;
29711esac
29712fi
29713PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29714
29715if test -n "$PKG_CONFIG"; then
29716 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29717echo "${ECHO_T}$PKG_CONFIG" >&6
29718else
29719 echo "$as_me:$LINENO: result: no" >&5
29720echo "${ECHO_T}no" >&6
29721fi
29722
29723 fi
29724
29725 if test "$PKG_CONFIG" = "no" ; then
29726 echo "*** The pkg-config script could not be found. Make sure it is"
29727 echo "*** in your path, or set the PKG_CONFIG environment variable"
29728 echo "*** to the full path to pkg-config."
29729 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29730 else
29731 PKG_CONFIG_MIN_VERSION=0.9.0
29732 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29733 echo "$as_me:$LINENO: checking for pangox" >&5
29734echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29735
29736 if $PKG_CONFIG --exists "pangox" ; then
29737 echo "$as_me:$LINENO: result: yes" >&5
29738echo "${ECHO_T}yes" >&6
29739 succeeded=yes
29740
29741 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29742echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29743 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29744 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29745echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29746
29747 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29748echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29749 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29750 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29751echo "${ECHO_T}$PANGOX_LIBS" >&6
29752 else
29753 PANGOX_CFLAGS=""
29754 PANGOX_LIBS=""
29755 ## If we have a custom action on failure, don't print errors, but
29756 ## do set a variable so people can do so.
29757 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29758
29759 fi
29760
29761
29762
29763 else
29764 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29765 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29766 fi
29767 fi
29768
29769 if test $succeeded = yes; then
29770
c92ad099 29771 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29772 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29773
29774 else
29775
29776 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29777echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29778 { (exit 1); exit 1; }; }
29779
29780
29781 fi
29782
29783
29784 succeeded=no
29785
29786 if test -z "$PKG_CONFIG"; then
29787 # Extract the first word of "pkg-config", so it can be a program name with args.
29788set dummy pkg-config; ac_word=$2
29789echo "$as_me:$LINENO: checking for $ac_word" >&5
29790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29791if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29792 echo $ECHO_N "(cached) $ECHO_C" >&6
29793else
29794 case $PKG_CONFIG in
29795 [\\/]* | ?:[\\/]*)
29796 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29797 ;;
29798 *)
29799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29800for as_dir in $PATH
29801do
29802 IFS=$as_save_IFS
29803 test -z "$as_dir" && as_dir=.
29804 for ac_exec_ext in '' $ac_executable_extensions; do
29805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29806 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29808 break 2
29809 fi
29810done
29811done
29812
29813 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29814 ;;
29815esac
29816fi
29817PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29818
29819if test -n "$PKG_CONFIG"; then
29820 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29821echo "${ECHO_T}$PKG_CONFIG" >&6
29822else
29823 echo "$as_me:$LINENO: result: no" >&5
29824echo "${ECHO_T}no" >&6
29825fi
29826
29827 fi
29828
29829 if test "$PKG_CONFIG" = "no" ; then
29830 echo "*** The pkg-config script could not be found. Make sure it is"
29831 echo "*** in your path, or set the PKG_CONFIG environment variable"
29832 echo "*** to the full path to pkg-config."
29833 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29834 else
29835 PKG_CONFIG_MIN_VERSION=0.9.0
29836 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29837 echo "$as_me:$LINENO: checking for pangoft2" >&5
29838echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29839
29840 if $PKG_CONFIG --exists "pangoft2" ; then
29841 echo "$as_me:$LINENO: result: yes" >&5
29842echo "${ECHO_T}yes" >&6
29843 succeeded=yes
29844
29845 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29846echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29847 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29848 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29849echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29850
29851 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29852echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29853 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29854 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29855echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29856 else
29857 PANGOFT2_CFLAGS=""
29858 PANGOFT2_LIBS=""
29859 ## If we have a custom action on failure, don't print errors, but
29860 ## do set a variable so people can do so.
29861 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29862
29863 fi
29864
29865
29866
29867 else
29868 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29869 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29870 fi
29871 fi
29872
29873 if test $succeeded = yes; then
29874
c92ad099 29875 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29876 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29877
29878 else
29879
29880 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29881echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29882 wxUSE_PRINTING_ARCHITECTURE="no"
29883
29884
29885 fi
29886
29887
29888 succeeded=no
29889
29890 if test -z "$PKG_CONFIG"; then
29891 # Extract the first word of "pkg-config", so it can be a program name with args.
29892set dummy pkg-config; ac_word=$2
29893echo "$as_me:$LINENO: checking for $ac_word" >&5
29894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29895if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29897else
29898 case $PKG_CONFIG in
29899 [\\/]* | ?:[\\/]*)
29900 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29901 ;;
29902 *)
29903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29904for as_dir in $PATH
29905do
29906 IFS=$as_save_IFS
29907 test -z "$as_dir" && as_dir=.
29908 for ac_exec_ext in '' $ac_executable_extensions; do
29909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29910 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29912 break 2
29913 fi
29914done
29915done
29916
29917 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29918 ;;
29919esac
29920fi
29921PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29922
29923if test -n "$PKG_CONFIG"; then
29924 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29925echo "${ECHO_T}$PKG_CONFIG" >&6
29926else
29927 echo "$as_me:$LINENO: result: no" >&5
29928echo "${ECHO_T}no" >&6
29929fi
29930
29931 fi
29932
29933 if test "$PKG_CONFIG" = "no" ; then
29934 echo "*** The pkg-config script could not be found. Make sure it is"
29935 echo "*** in your path, or set the PKG_CONFIG environment variable"
29936 echo "*** to the full path to pkg-config."
29937 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29938 else
29939 PKG_CONFIG_MIN_VERSION=0.9.0
29940 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29941 echo "$as_me:$LINENO: checking for pangoxft" >&5
29942echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29943
29944 if $PKG_CONFIG --exists "pangoxft" ; then
29945 echo "$as_me:$LINENO: result: yes" >&5
29946echo "${ECHO_T}yes" >&6
29947 succeeded=yes
29948
29949 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29950echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29951 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29952 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29953echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29954
29955 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29956echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29957 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29958 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29959echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29960 else
29961 PANGOXFT_CFLAGS=""
29962 PANGOXFT_LIBS=""
29963 ## If we have a custom action on failure, don't print errors, but
29964 ## do set a variable so people can do so.
29965 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29966
29967 fi
29968
29969
29970
29971 else
29972 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29973 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29974 fi
29975 fi
29976
29977 if test $succeeded = yes; then
29978
4ae1af05
MB
29979 cat >>confdefs.h <<\_ACEOF
29980#define HAVE_PANGO_XFT 1
29981_ACEOF
29982
c92ad099 29983 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29984 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29985
29986 else
29987
29988 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29989echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29990
29991
29992 fi
29993
e56f4f9e 29994 save_CXXFLAGS="$CXXFLAGS"
304205f1 29995 save_LIBS="$LIBS"
e56f4f9e 29996 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
29997 LIBS="$LIBS $PANGOX_LIBS"
29998
29999for ac_func in pango_font_family_is_monospace
30000do
30001as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30002echo "$as_me:$LINENO: checking for $ac_func" >&5
30003echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30004if eval "test \"\${$as_ac_var+set}\" = set"; then
30005 echo $ECHO_N "(cached) $ECHO_C" >&6
30006else
30007 cat >conftest.$ac_ext <<_ACEOF
30008/* confdefs.h. */
30009_ACEOF
30010cat confdefs.h >>conftest.$ac_ext
30011cat >>conftest.$ac_ext <<_ACEOF
30012/* end confdefs.h. */
30013/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30015#define $ac_func innocuous_$ac_func
30016
30017/* System header to define __stub macros and hopefully few prototypes,
30018 which can conflict with char $ac_func (); below.
30019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30020 <limits.h> exists even on freestanding compilers. */
30021
30022#ifdef __STDC__
30023# include <limits.h>
30024#else
30025# include <assert.h>
30026#endif
30027
30028#undef $ac_func
30029
30030/* Override any gcc2 internal prototype to avoid an error. */
30031#ifdef __cplusplus
30032extern "C"
30033{
30034#endif
30035/* We use char because int might match the return type of a gcc2
30036 builtin and then its argument prototype would still apply. */
30037char $ac_func ();
30038/* The GNU C library defines this for functions which it implements
30039 to always fail with ENOSYS. Some functions are actually named
30040 something starting with __ and the normal name is an alias. */
30041#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30042choke me
30043#else
30044char (*f) () = $ac_func;
30045#endif
30046#ifdef __cplusplus
30047}
30048#endif
30049
30050int
30051main ()
30052{
30053return f != $ac_func;
30054 ;
30055 return 0;
30056}
30057_ACEOF
30058rm -f conftest.$ac_objext conftest$ac_exeext
30059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30060 (eval $ac_link) 2>conftest.er1
30061 ac_status=$?
30062 grep -v '^ *+' conftest.er1 >conftest.err
30063 rm -f conftest.er1
30064 cat conftest.err >&5
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); } &&
d25774ab
JS
30067 { ac_try='test -z "$ac_cxx_werror_flag"
30068 || test ! -s conftest.err'
304205f1
VS
30069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30070 (eval $ac_try) 2>&5
30071 ac_status=$?
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); }; } &&
30074 { ac_try='test -s conftest$ac_exeext'
30075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30076 (eval $ac_try) 2>&5
30077 ac_status=$?
30078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); }; }; then
30080 eval "$as_ac_var=yes"
30081else
30082 echo "$as_me: failed program was:" >&5
30083sed 's/^/| /' conftest.$ac_ext >&5
30084
30085eval "$as_ac_var=no"
30086fi
30087rm -f conftest.err conftest.$ac_objext \
30088 conftest$ac_exeext conftest.$ac_ext
30089fi
30090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30091echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30092if test `eval echo '${'$as_ac_var'}'` = yes; then
30093 cat >>confdefs.h <<_ACEOF
30094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30095_ACEOF
30096
30097fi
30098done
30099
e56f4f9e 30100 CXXFLAGS="$save_CXXFLAGS"
304205f1 30101 LIBS="$save_LIBS"
a848cd7e
SC
30102 fi
30103
30104 wxUSE_UNIVERSAL="yes"
30105
30106 if test "$wxUSE_NANOX" = "yes"; then
30107 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30108 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"
30109 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30110 else
30111 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30112 fi
30113
a848cd7e
SC
30114 TOOLKIT=X11
30115 GUIDIST=X11_DIST
30116 fi
30117
30118 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
30119 if test "$wxUSE_UNICODE" = "yes"; then
30120 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30121echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30122 { (exit 1); exit 1; }; }
30123 fi
30124
74b84332
VS
30125 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30126echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 30127
74b84332
VS
30128ac_find_includes=
30129for ac_dir in $SEARCH_INCLUDE /usr/include;
30130 do
30131 if test -f "$ac_dir/Xm/Xm.h"; then
30132 ac_find_includes=$ac_dir
30133 break
30134 fi
30135 done
a848cd7e 30136
74b84332
VS
30137 if test "$ac_find_includes" != "" ; then
30138 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30139echo "${ECHO_T}found in $ac_find_includes" >&6
30140
30141 if test "x$ac_find_includes" = "x/usr/include"; then
30142 ac_path_to_include=""
30143 else
30144 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30145 result=$?
30146 if test $result = 0; then
30147 ac_path_to_include=""
30148 else
30149 ac_path_to_include=" -I$ac_find_includes"
30150 fi
a848cd7e
SC
30151 fi
30152
74b84332
VS
30153 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30154 else
e56f4f9e
VZ
30155 save_CXXFLAGS=$CXXFLAGS
30156 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 30157
74b84332 30158 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30159/* confdefs.h. */
30160_ACEOF
30161cat confdefs.h >>conftest.$ac_ext
30162cat >>conftest.$ac_ext <<_ACEOF
30163/* end confdefs.h. */
30164
74b84332
VS
30165 #include <Xm/Xm.h>
30166
a848cd7e
SC
30167int
30168main ()
30169{
30170
74b84332
VS
30171 int version;
30172 version = xmUseVersion;
30173
a848cd7e
SC
30174 ;
30175 return 0;
30176}
30177_ACEOF
74b84332
VS
30178rm -f conftest.$ac_objext
30179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30180 (eval $ac_compile) 2>conftest.er1
a848cd7e 30181 ac_status=$?
ac1cb8d3
VS
30182 grep -v '^ *+' conftest.er1 >conftest.err
30183 rm -f conftest.er1
30184 cat conftest.err >&5
a848cd7e
SC
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); } &&
d25774ab
JS
30187 { ac_try='test -z "$ac_cxx_werror_flag"
30188 || test ! -s conftest.err'
ac1cb8d3
VS
30189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30190 (eval $ac_try) 2>&5
30191 ac_status=$?
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; } &&
74b84332 30194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30196 (eval $ac_try) 2>&5
30197 ac_status=$?
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; }; then
74b84332
VS
30200
30201 echo "$as_me:$LINENO: result: found in default search path" >&5
30202echo "${ECHO_T}found in default search path" >&6
30203 COMPILED_X_PROGRAM=1
30204
a848cd7e
SC
30205else
30206 echo "$as_me: failed program was:" >&5
30207sed 's/^/| /' conftest.$ac_ext >&5
30208
a848cd7e 30209
74b84332
VS
30210 echo "$as_me:$LINENO: result: no" >&5
30211echo "${ECHO_T}no" >&6
e051b34e
MW
30212 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30213echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30214 { (exit 1); exit 1; }; }
a848cd7e 30215
a848cd7e 30216
a848cd7e 30217fi
74b84332 30218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30219
e56f4f9e 30220 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30221 fi
30222
0ad5d837
VZ
30223
30224 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30225echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30226
0ad5d837
VZ
30227 ac_find_libraries=
30228 for ac_dir in $SEARCH_LIB;
74b84332 30229 do
3eca31dc 30230 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30231 if test -f "$ac_dir/libXm.$ac_extension"; then
30232 ac_find_libraries=$ac_dir
30233 break 2
a848cd7e 30234 fi
74b84332
VS
30235 done
30236 done
a848cd7e 30237
0ad5d837
VZ
30238
30239 if test "x$ac_find_libraries" != "x" ; then
30240 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30241echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30242
74b84332 30243
0ad5d837 30244 if test "$ac_find_libraries" = "default location"; then
74b84332 30245 ac_path_to_link=""
a848cd7e 30246 else
0ad5d837
VZ
30247 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30248 result=$?
30249 if test $result = 0; then
30250 ac_path_to_link=""
30251 else
30252 ac_path_to_link=" -L$ac_find_libraries"
30253 fi
74b84332
VS
30254 fi
30255
0ad5d837
VZ
30256 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30257 else
e56f4f9e
VZ
30258 save_CXXFLAGS=$CXXFLAGS
30259 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30260 save_LIBS="$LIBS"
30261 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30262
0ad5d837 30263 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30264/* confdefs.h. */
30265_ACEOF
30266cat confdefs.h >>conftest.$ac_ext
30267cat >>conftest.$ac_ext <<_ACEOF
30268/* end confdefs.h. */
30269
0ad5d837 30270 #include <Xm/Xm.h>
74b84332 30271
a848cd7e
SC
30272int
30273main ()
30274{
74b84332 30275
0ad5d837
VZ
30276 int version;
30277 version = xmUseVersion;
74b84332 30278
a848cd7e
SC
30279 ;
30280 return 0;
30281}
30282_ACEOF
0ad5d837
VZ
30283rm -f conftest.$ac_objext conftest$ac_exeext
30284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30285 (eval $ac_link) 2>conftest.er1
a848cd7e 30286 ac_status=$?
ac1cb8d3
VS
30287 grep -v '^ *+' conftest.er1 >conftest.err
30288 rm -f conftest.er1
30289 cat conftest.err >&5
a848cd7e
SC
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); } &&
d25774ab
JS
30292 { ac_try='test -z "$ac_cxx_werror_flag"
30293 || test ! -s conftest.err'
ac1cb8d3
VS
30294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30295 (eval $ac_try) 2>&5
30296 ac_status=$?
30297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298 (exit $ac_status); }; } &&
0ad5d837 30299 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30301 (eval $ac_try) 2>&5
30302 ac_status=$?
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; }; then
74b84332 30305
0ad5d837 30306 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30307echo "${ECHO_T}found in default search path" >&6
0ad5d837 30308 COMPILED_X_PROGRAM=1
74b84332 30309
a848cd7e
SC
30310else
30311 echo "$as_me: failed program was:" >&5
30312sed 's/^/| /' conftest.$ac_ext >&5
30313
74b84332 30314
6f9cf1e6 30315 echo "$as_me:$LINENO: result: no" >&5
74b84332 30316echo "${ECHO_T}no" >&6
6f9cf1e6 30317 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30318echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30319 { (exit 1); exit 1; }; }
30320
30321
30322fi
0ad5d837
VZ
30323rm -f conftest.err conftest.$ac_objext \
30324 conftest$ac_exeext conftest.$ac_ext
74b84332 30325
e56f4f9e 30326 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30327 LIBS="$save_LIBS"
74b84332
VS
30328 fi
30329
30330 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30331echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30332 libp_link=""
30333 libsm_ice_link=""
30334 libs_found=0
30335 for libp in "" " -lXp"; do
30336 if test "$libs_found" = "0"; then
30337 for libsm_ice in "" " -lSM -lICE"; do
30338 if test "$libs_found" = "0"; then
30339 save_LIBS="$LIBS"
30340 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30341 save_CXXFLAGS=$CXXFLAGS
30342 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30343
30344 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30345/* confdefs.h. */
30346_ACEOF
30347cat confdefs.h >>conftest.$ac_ext
30348cat >>conftest.$ac_ext <<_ACEOF
30349/* end confdefs.h. */
30350
74b84332
VS
30351 #include <Xm/Xm.h>
30352 #include <Xm/List.h>
30353
a848cd7e
SC
30354int
30355main ()
30356{
74b84332
VS
30357
30358 XmString string = NULL;
30359 Widget w = NULL;
30360 int position = 0;
30361 XmListAddItem(w, string, position);
30362
a848cd7e
SC
30363 ;
30364 return 0;
30365}
30366_ACEOF
30367rm -f conftest.$ac_objext conftest$ac_exeext
30368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30369 (eval $ac_link) 2>conftest.er1
a848cd7e 30370 ac_status=$?
ac1cb8d3
VS
30371 grep -v '^ *+' conftest.er1 >conftest.err
30372 rm -f conftest.er1
30373 cat conftest.err >&5
a848cd7e
SC
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); } &&
d25774ab
JS
30376 { ac_try='test -z "$ac_cxx_werror_flag"
30377 || test ! -s conftest.err'
ac1cb8d3
VS
30378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30379 (eval $ac_try) 2>&5
30380 ac_status=$?
30381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382 (exit $ac_status); }; } &&
30383 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30385 (eval $ac_try) 2>&5
30386 ac_status=$?
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); }; }; then
30389
30390 libp_link="$libp"
30391 libsm_ice_link="$libsm_ice"
30392 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30393echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30394 libs_found=1
30395
30396else
30397 echo "$as_me: failed program was:" >&5
30398sed 's/^/| /' conftest.$ac_ext >&5
30399
30400
30401
30402fi
ac1cb8d3
VS
30403rm -f conftest.err conftest.$ac_objext \
30404 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30405
30406 LIBS="$save_LIBS"
e56f4f9e 30407 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30408 fi
30409 done
30410 fi
30411 done
30412
30413 if test "$libs_found" = "0"; then
30414 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30415echo "${ECHO_T}can't find the right libraries" >&6
30416 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30417echo "$as_me: error: can't link a simple motif program" >&2;}
30418 { (exit 1); exit 1; }; }
30419 fi
30420
62fa8b3a
MW
30421 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30422echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30423if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30425else
30426 ac_check_lib_save_LIBS=$LIBS
30427LIBS="-lSgm $LIBS"
30428cat >conftest.$ac_ext <<_ACEOF
30429/* confdefs.h. */
30430_ACEOF
30431cat confdefs.h >>conftest.$ac_ext
30432cat >>conftest.$ac_ext <<_ACEOF
30433/* end confdefs.h. */
30434
30435/* Override any gcc2 internal prototype to avoid an error. */
30436#ifdef __cplusplus
30437extern "C"
30438#endif
30439/* We use char because int might match the return type of a gcc2
30440 builtin and then its argument prototype would still apply. */
30441char SgCreateList ();
30442int
30443main ()
30444{
30445SgCreateList ();
30446 ;
30447 return 0;
30448}
30449_ACEOF
30450rm -f conftest.$ac_objext conftest$ac_exeext
30451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30452 (eval $ac_link) 2>conftest.er1
30453 ac_status=$?
30454 grep -v '^ *+' conftest.er1 >conftest.err
30455 rm -f conftest.er1
30456 cat conftest.err >&5
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); } &&
d25774ab
JS
30459 { ac_try='test -z "$ac_cxx_werror_flag"
30460 || test ! -s conftest.err'
62fa8b3a
MW
30461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30462 (eval $ac_try) 2>&5
30463 ac_status=$?
30464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465 (exit $ac_status); }; } &&
30466 { ac_try='test -s conftest$ac_exeext'
30467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30468 (eval $ac_try) 2>&5
30469 ac_status=$?
30470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30471 (exit $ac_status); }; }; then
30472 ac_cv_lib_Sgm_SgCreateList=yes
30473else
30474 echo "$as_me: failed program was:" >&5
30475sed 's/^/| /' conftest.$ac_ext >&5
30476
30477ac_cv_lib_Sgm_SgCreateList=no
30478fi
30479rm -f conftest.err conftest.$ac_objext \
30480 conftest$ac_exeext conftest.$ac_ext
30481LIBS=$ac_check_lib_save_LIBS
30482fi
30483echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30484echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30485if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30486 libsgm_link=" -lSgm"
30487fi
30488
30489
e56f4f9e
VZ
30490 save_CXXFLAGS=$CXXFLAGS
30491 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30492
a848cd7e
SC
30493 echo "$as_me:$LINENO: checking for Motif 2" >&5
30494echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30495if test "${wx_cv_lib_motif2+set}" = set; then
30496 echo $ECHO_N "(cached) $ECHO_C" >&6
30497else
30498 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30499/* confdefs.h. */
30500_ACEOF
30501cat confdefs.h >>conftest.$ac_ext
30502cat >>conftest.$ac_ext <<_ACEOF
30503/* end confdefs.h. */
30504
0ad5d837 30505 #include <Xm/Xm.h>
a848cd7e
SC
30506
30507int
30508main ()
30509{
30510
0ad5d837
VZ
30511 #if XmVersion < 2000
30512 Not Motif 2
30513 #endif
a848cd7e
SC
30514
30515 ;
30516 return 0;
30517}
30518_ACEOF
30519rm -f conftest.$ac_objext
30520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30521 (eval $ac_compile) 2>conftest.er1
a848cd7e 30522 ac_status=$?
ac1cb8d3
VS
30523 grep -v '^ *+' conftest.er1 >conftest.err
30524 rm -f conftest.er1
30525 cat conftest.err >&5
a848cd7e
SC
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); } &&
d25774ab
JS
30528 { ac_try='test -z "$ac_cxx_werror_flag"
30529 || test ! -s conftest.err'
ac1cb8d3
VS
30530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30531 (eval $ac_try) 2>&5
30532 ac_status=$?
30533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 (exit $ac_status); }; } &&
30535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30537 (eval $ac_try) 2>&5
30538 ac_status=$?
30539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540 (exit $ac_status); }; }; then
0ad5d837 30541 wx_cv_lib_motif2="yes"
a848cd7e
SC
30542else
30543 echo "$as_me: failed program was:" >&5
30544sed 's/^/| /' conftest.$ac_ext >&5
30545
0ad5d837
VZ
30546wx_cv_lib_motif2="no"
30547fi
30548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30549fi
30550echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30551echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30552 if test "$wx_cv_lib_motif2" = "yes"; then
30553 cat >>confdefs.h <<\_ACEOF
30554#define __WXMOTIF20__ 1
30555_ACEOF
a848cd7e 30556
0ad5d837
VZ
30557 else
30558 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30559#define __WXMOTIF20__ 0
30560_ACEOF
30561
0ad5d837 30562 fi
2113bc77
MW
30563
30564 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30565echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30566if test "${wx_cv_lib_lesstif+set}" = set; then
30567 echo $ECHO_N "(cached) $ECHO_C" >&6
30568else
30569 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30570/* confdefs.h. */
30571_ACEOF
30572cat confdefs.h >>conftest.$ac_ext
30573cat >>conftest.$ac_ext <<_ACEOF
30574/* end confdefs.h. */
30575
0ad5d837 30576 #include <Xm/Xm.h>
2113bc77
MW
30577
30578int
30579main ()
30580{
30581
0ad5d837
VZ
30582 #if !defined(LesstifVersion) || LesstifVersion <= 0
30583 Not Lesstif
30584 #endif
2113bc77
MW
30585
30586 ;
30587 return 0;
30588}
30589_ACEOF
30590rm -f conftest.$ac_objext
30591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30592 (eval $ac_compile) 2>conftest.er1
30593 ac_status=$?
30594 grep -v '^ *+' conftest.er1 >conftest.err
30595 rm -f conftest.er1
30596 cat conftest.err >&5
30597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598 (exit $ac_status); } &&
d25774ab
JS
30599 { ac_try='test -z "$ac_cxx_werror_flag"
30600 || test ! -s conftest.err'
2113bc77
MW
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_objext'
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
0ad5d837 30612 wx_cv_lib_lesstif="yes"
2113bc77
MW
30613else
30614 echo "$as_me: failed program was:" >&5
30615sed 's/^/| /' conftest.$ac_ext >&5
30616
0ad5d837
VZ
30617wx_cv_lib_lesstif="no"
30618fi
30619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30620
0ad5d837
VZ
30621fi
30622echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30623echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30624 if test "$wx_cv_lib_lesstif" = "yes"; then
30625 cat >>confdefs.h <<\_ACEOF
30626#define __WXLESSTIF__ 1
30627_ACEOF
30628
30629 else
30630 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30631#define __WXLESSTIF__ 0
30632_ACEOF
30633
0ad5d837 30634 fi
2113bc77 30635
e56f4f9e 30636 CXXFLAGS=$save_CXXFLAGS
a848cd7e 30637
62fa8b3a 30638 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30639 TOOLKIT=MOTIF
30640 GUIDIST=MOTIF_DIST
30641 fi
30642
74b84332 30643 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30644 if test "$wxUSE_LIBXPM" = "sys"; then
30645 echo "$as_me:$LINENO: checking for Xpm library" >&5
30646echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30647
0ad5d837
VZ
30648 ac_find_libraries=
30649 for ac_dir in $SEARCH_LIB;
a848cd7e 30650 do
3eca31dc 30651 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30652 if test -f "$ac_dir/libXpm.$ac_extension"; then
30653 ac_find_libraries=$ac_dir
30654 break 2
30655 fi
30656 done
30657 done
30658
30659 if test "$ac_find_libraries" != "" ; then
30660
0ad5d837 30661 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30662 ac_path_to_link=""
30663 else
0ad5d837
VZ
30664 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30665 result=$?
30666 if test $result = 0; then
30667 ac_path_to_link=""
30668 else
30669 ac_path_to_link=" -L$ac_find_libraries"
30670 fi
a848cd7e
SC
30671 fi
30672
30673 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30674 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30675echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30676
30677 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30678echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30679if test "${wx_cv_x11_xpm_h+set}" = set; then
30680 echo $ECHO_N "(cached) $ECHO_C" >&6
30681else
30682
e56f4f9e
VZ
30683 save_CXXFLAGS=$CXXFLAGS
30684 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30685
30686 cat >conftest.$ac_ext <<_ACEOF
30687/* confdefs.h. */
30688_ACEOF
30689cat confdefs.h >>conftest.$ac_ext
30690cat >>conftest.$ac_ext <<_ACEOF
30691/* end confdefs.h. */
30692
30693 #include <X11/xpm.h>
30694
30695int
30696main ()
30697{
30698
30699 int version;
30700 version = XpmLibraryVersion();
30701
30702 ;
30703 return 0;
30704}
30705_ACEOF
30706rm -f conftest.$ac_objext
30707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30708 (eval $ac_compile) 2>conftest.er1
a848cd7e 30709 ac_status=$?
ac1cb8d3
VS
30710 grep -v '^ *+' conftest.er1 >conftest.err
30711 rm -f conftest.er1
30712 cat conftest.err >&5
a848cd7e
SC
30713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714 (exit $ac_status); } &&
d25774ab
JS
30715 { ac_try='test -z "$ac_cxx_werror_flag"
30716 || test ! -s conftest.err'
ac1cb8d3
VS
30717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30718 (eval $ac_try) 2>&5
30719 ac_status=$?
30720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721 (exit $ac_status); }; } &&
30722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30724 (eval $ac_try) 2>&5
30725 ac_status=$?
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; }; then
30728 wx_cv_x11_xpm_h=yes
30729else
30730 echo "$as_me: failed program was:" >&5
30731sed 's/^/| /' conftest.$ac_ext >&5
30732
30733wx_cv_x11_xpm_h=no
30734
30735fi
ac1cb8d3 30736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 30737
e56f4f9e 30738 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30739
30740
30741fi
30742echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30743echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30744
30745 if test $wx_cv_x11_xpm_h = "yes"; then
30746 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30747 cat >>confdefs.h <<\_ACEOF
30748#define wxHAVE_LIB_XPM 1
30749_ACEOF
30750
30751 else
30752 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30753echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30754 fi
30755 fi
30756
30757 fi
30758
30759 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30760echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30761if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30762 echo $ECHO_N "(cached) $ECHO_C" >&6
30763else
30764 ac_check_lib_save_LIBS=$LIBS
30765LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30766cat >conftest.$ac_ext <<_ACEOF
30767/* confdefs.h. */
30768_ACEOF
30769cat confdefs.h >>conftest.$ac_ext
30770cat >>conftest.$ac_ext <<_ACEOF
30771/* end confdefs.h. */
30772
30773/* Override any gcc2 internal prototype to avoid an error. */
30774#ifdef __cplusplus
30775extern "C"
30776#endif
30777/* We use char because int might match the return type of a gcc2
30778 builtin and then its argument prototype would still apply. */
30779char XShapeQueryExtension ();
30780int
30781main ()
30782{
30783XShapeQueryExtension ();
30784 ;
30785 return 0;
30786}
30787_ACEOF
30788rm -f conftest.$ac_objext conftest$ac_exeext
30789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30790 (eval $ac_link) 2>conftest.er1
a848cd7e 30791 ac_status=$?
ac1cb8d3
VS
30792 grep -v '^ *+' conftest.er1 >conftest.err
30793 rm -f conftest.er1
30794 cat conftest.err >&5
a848cd7e
SC
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); } &&
d25774ab
JS
30797 { ac_try='test -z "$ac_cxx_werror_flag"
30798 || test ! -s conftest.err'
ac1cb8d3
VS
30799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30800 (eval $ac_try) 2>&5
30801 ac_status=$?
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; } &&
30804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30806 (eval $ac_try) 2>&5
30807 ac_status=$?
30808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809 (exit $ac_status); }; }; then
30810 ac_cv_lib_Xext_XShapeQueryExtension=yes
30811else
30812 echo "$as_me: failed program was:" >&5
30813sed 's/^/| /' conftest.$ac_ext >&5
30814
30815ac_cv_lib_Xext_XShapeQueryExtension=no
30816fi
ac1cb8d3
VS
30817rm -f conftest.err conftest.$ac_objext \
30818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30819LIBS=$ac_check_lib_save_LIBS
30820fi
30821echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30822echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30823if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30824
30825 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30826 wxHAVE_XEXT_LIB=1
30827
30828fi
30829
30830
30831 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
30832 save_CXXFLAGS="$CXXFLAGS"
30833 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30834
30835 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30836echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30837 cat >conftest.$ac_ext <<_ACEOF
30838/* confdefs.h. */
30839_ACEOF
30840cat confdefs.h >>conftest.$ac_ext
30841cat >>conftest.$ac_ext <<_ACEOF
30842/* end confdefs.h. */
30843
30844 #include <X11/Xlib.h>
30845 #include <X11/extensions/shape.h>
30846
30847int
30848main ()
30849{
30850
30851 int dummy1, dummy2;
30852 XShapeQueryExtension((Display*)NULL,
30853 (int*)NULL, (int*)NULL);
30854
30855 ;
30856 return 0;
30857}
30858_ACEOF
30859rm -f conftest.$ac_objext
30860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30861 (eval $ac_compile) 2>conftest.er1
a848cd7e 30862 ac_status=$?
ac1cb8d3
VS
30863 grep -v '^ *+' conftest.er1 >conftest.err
30864 rm -f conftest.er1
30865 cat conftest.err >&5
a848cd7e
SC
30866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 (exit $ac_status); } &&
d25774ab
JS
30868 { ac_try='test -z "$ac_cxx_werror_flag"
30869 || test ! -s conftest.err'
ac1cb8d3
VS
30870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30871 (eval $ac_try) 2>&5
30872 ac_status=$?
30873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874 (exit $ac_status); }; } &&
30875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30877 (eval $ac_try) 2>&5
30878 ac_status=$?
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); }; }; then
30881
30882 cat >>confdefs.h <<\_ACEOF
30883#define HAVE_XSHAPE 1
30884_ACEOF
30885
30886 echo "$as_me:$LINENO: result: found" >&5
30887echo "${ECHO_T}found" >&6
30888
30889else
30890 echo "$as_me: failed program was:" >&5
30891sed 's/^/| /' conftest.$ac_ext >&5
30892
30893
30894 echo "$as_me:$LINENO: result: not found" >&5
30895echo "${ECHO_T}not found" >&6
30896
30897fi
ac1cb8d3 30898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 30899 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
30900
30901 fi
30902 fi
30903
30904 if test "$wxUSE_MAC" = 1; then
30905 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30906echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30907 if test "$GCC" = yes; then
30908 echo "$as_me:$LINENO: result: gcc" >&5
30909echo "${ECHO_T}gcc" >&6
30910 CPPFLAGS_PASCAL="-fpascal-strings"
30911 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30912 echo "$as_me:$LINENO: result: xlc" >&5
30913echo "${ECHO_T}xlc" >&6
30914 CPPFLAGS_PASCAL="-qmacpstr"
30915 else
30916 echo "$as_me:$LINENO: result: none" >&5
30917echo "${ECHO_T}none" >&6
30918 fi
30919
1e9e8aba 30920 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30921 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30922 else
c92ad099 30923 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30924 fi
a848cd7e 30925
a848cd7e
SC
30926 TOOLKIT=MAC
30927 GUIDIST=MACX_DIST
dd21ced8 30928 WXBASEPORT="_carbon"
a848cd7e
SC
30929 fi
30930
30931 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30932 TOOLKIT=COCOA
30933 GUIDIST=COCOA_DIST
30934 fi
30935
30936 if test "$wxUSE_PM" = 1; then
30937 TOOLKIT=PM
de59c161
RD
30938 GUIDIST=PM_DIST
30939 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30940echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30941if test "${wx_cv_spbcdata+set}" = set; then
30942 echo $ECHO_N "(cached) $ECHO_C" >&6
30943else
30944
30945 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30946/* confdefs.h. */
30947_ACEOF
30948cat confdefs.h >>conftest.$ac_ext
30949cat >>conftest.$ac_ext <<_ACEOF
30950/* end confdefs.h. */
30951
30952 #define INCL_PM
30953 #include <os2.h>
30954
30955int
30956main ()
30957{
30958
30959 SPBCDATA test;
30960
30961 ;
30962 return 0;
30963}
30964_ACEOF
30965rm -f conftest.$ac_objext
30966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30967 (eval $ac_compile) 2>conftest.er1
de59c161 30968 ac_status=$?
ac1cb8d3
VS
30969 grep -v '^ *+' conftest.er1 >conftest.err
30970 rm -f conftest.er1
30971 cat conftest.err >&5
de59c161
RD
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); } &&
d25774ab
JS
30974 { ac_try='test -z "$ac_cxx_werror_flag"
30975 || test ! -s conftest.err'
ac1cb8d3
VS
30976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30977 (eval $ac_try) 2>&5
30978 ac_status=$?
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); }; } &&
30981 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30983 (eval $ac_try) 2>&5
30984 ac_status=$?
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; }; then
30987 wx_cv_spbcdata=yes
30988else
30989 echo "$as_me: failed program was:" >&5
30990sed 's/^/| /' conftest.$ac_ext >&5
30991
30992wx_cv_spbcdata=no
30993
30994fi
ac1cb8d3 30995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30996
30997
30998fi
30999echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31000echo "${ECHO_T}$wx_cv_spbcdata" >&6
31001
31002 if test $wx_cv_spbcdata = "yes"; then
31003 cat >>confdefs.h <<\_ACEOF
31004#define HAVE_SPBCDATA 1
31005_ACEOF
31006
31007 fi
a848cd7e
SC
31008 fi
31009
31010 if test "$TOOLKIT" = "PM" ; then
31011 TOOLKIT_DIR="os2"
31012 else
31013 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31014 fi
31015
a848cd7e 31016 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31017 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31018 WIDGET_SET=univ
a848cd7e
SC
31019 fi
31020
31021 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31022 DISTDIR="wx\$(TOOLKIT)"
31023else
31024 USE_GUI=0
31025
31026 TOOLKIT_DIR="base"
31027
31028 if test "$USE_WIN32" = 1 ; then
a848cd7e 31029 TOOLKIT="MSW"
a848cd7e
SC
31030 fi
31031
a848cd7e
SC
31032 GUIDIST="BASE_DIST"
31033 DISTDIR="wxBase"
31034fi
31035
31036
d12aef51
VZ
31037if test "$wxUSE_GUI" = "yes"; then
31038 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31039
31040for ac_header in X11/Xlib.h
31041do
31042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31043if eval "test \"\${$as_ac_Header+set}\" = set"; then
31044 echo "$as_me:$LINENO: checking for $ac_header" >&5
31045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31046if eval "test \"\${$as_ac_Header+set}\" = set"; then
31047 echo $ECHO_N "(cached) $ECHO_C" >&6
31048fi
31049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31051else
31052 # Is the header compilable?
31053echo "$as_me:$LINENO: checking $ac_header usability" >&5
31054echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31055cat >conftest.$ac_ext <<_ACEOF
31056/* confdefs.h. */
31057_ACEOF
31058cat confdefs.h >>conftest.$ac_ext
31059cat >>conftest.$ac_ext <<_ACEOF
31060/* end confdefs.h. */
31061$ac_includes_default
31062#include <$ac_header>
31063_ACEOF
31064rm -f conftest.$ac_objext
31065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31066 (eval $ac_compile) 2>conftest.er1
31067 ac_status=$?
31068 grep -v '^ *+' conftest.er1 >conftest.err
31069 rm -f conftest.er1
31070 cat conftest.err >&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } &&
d25774ab
JS
31073 { ac_try='test -z "$ac_cxx_werror_flag"
31074 || test ! -s conftest.err'
d12aef51
VZ
31075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31076 (eval $ac_try) 2>&5
31077 ac_status=$?
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; } &&
31080 { ac_try='test -s conftest.$ac_objext'
31081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31082 (eval $ac_try) 2>&5
31083 ac_status=$?
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); }; }; then
31086 ac_header_compiler=yes
31087else
31088 echo "$as_me: failed program was:" >&5
31089sed 's/^/| /' conftest.$ac_ext >&5
31090
31091ac_header_compiler=no
31092fi
31093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31094echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31095echo "${ECHO_T}$ac_header_compiler" >&6
31096
31097# Is the header present?
31098echo "$as_me:$LINENO: checking $ac_header presence" >&5
31099echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31100cat >conftest.$ac_ext <<_ACEOF
31101/* confdefs.h. */
31102_ACEOF
31103cat confdefs.h >>conftest.$ac_ext
31104cat >>conftest.$ac_ext <<_ACEOF
31105/* end confdefs.h. */
31106#include <$ac_header>
31107_ACEOF
31108if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31110 ac_status=$?
31111 grep -v '^ *+' conftest.er1 >conftest.err
31112 rm -f conftest.er1
31113 cat conftest.err >&5
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); } >/dev/null; then
31116 if test -s conftest.err; then
5d7b7554
VZ
31117 ac_cpp_err=$ac_cxx_preproc_warn_flag
31118 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
31119 else
31120 ac_cpp_err=
31121 fi
31122else
31123 ac_cpp_err=yes
31124fi
31125if test -z "$ac_cpp_err"; then
31126 ac_header_preproc=yes
31127else
31128 echo "$as_me: failed program was:" >&5
31129sed 's/^/| /' conftest.$ac_ext >&5
31130
31131 ac_header_preproc=no
31132fi
31133rm -f conftest.err conftest.$ac_ext
31134echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31135echo "${ECHO_T}$ac_header_preproc" >&6
31136
31137# So? What about this header?
5d7b7554 31138case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
31139 yes:no: )
31140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31141echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31143echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31144 ac_header_preproc=yes
31145 ;;
31146 no:yes:* )
31147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31148echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31150echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31152echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31154echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31156echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31158echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31159 (
31160 cat <<\_ASBOX
31161## ----------------------------------------- ##
31162## Report this to wx-dev@lists.wxwidgets.org ##
31163## ----------------------------------------- ##
31164_ASBOX
31165 ) |
31166 sed "s/^/$as_me: WARNING: /" >&2
31167 ;;
31168esac
31169echo "$as_me:$LINENO: checking for $ac_header" >&5
31170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31171if eval "test \"\${$as_ac_Header+set}\" = set"; then
31172 echo $ECHO_N "(cached) $ECHO_C" >&6
31173else
31174 eval "$as_ac_Header=\$ac_header_preproc"
31175fi
31176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31178
31179fi
31180if test `eval echo '${'$as_ac_Header'}'` = yes; then
31181 cat >>confdefs.h <<_ACEOF
31182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31183_ACEOF
31184
31185fi
31186
31187done
31188
31189
31190for ac_header in X11/XKBlib.h
31191do
31192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31193echo "$as_me:$LINENO: checking for $ac_header" >&5
31194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31195if eval "test \"\${$as_ac_Header+set}\" = set"; then
31196 echo $ECHO_N "(cached) $ECHO_C" >&6
31197else
31198 cat >conftest.$ac_ext <<_ACEOF
31199/* confdefs.h. */
31200_ACEOF
31201cat confdefs.h >>conftest.$ac_ext
31202cat >>conftest.$ac_ext <<_ACEOF
31203/* end confdefs.h. */
31204
31205 #if HAVE_X11_XLIB_H
31206 #include <X11/Xlib.h>
31207 #endif
31208
31209
31210#include <$ac_header>
31211_ACEOF
31212rm -f conftest.$ac_objext
31213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31214 (eval $ac_compile) 2>conftest.er1
31215 ac_status=$?
31216 grep -v '^ *+' conftest.er1 >conftest.err
31217 rm -f conftest.er1
31218 cat conftest.err >&5
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); } &&
d25774ab
JS
31221 { ac_try='test -z "$ac_cxx_werror_flag"
31222 || test ! -s conftest.err'
d12aef51
VZ
31223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31224 (eval $ac_try) 2>&5
31225 ac_status=$?
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); }; } &&
31228 { ac_try='test -s conftest.$ac_objext'
31229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31230 (eval $ac_try) 2>&5
31231 ac_status=$?
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); }; }; then
31234 eval "$as_ac_Header=yes"
31235else
31236 echo "$as_me: failed program was:" >&5
31237sed 's/^/| /' conftest.$ac_ext >&5
31238
31239eval "$as_ac_Header=no"
31240fi
31241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31242fi
31243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31245if test `eval echo '${'$as_ac_Header'}'` = yes; then
31246 cat >>confdefs.h <<_ACEOF
31247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31248_ACEOF
31249
31250fi
31251
31252done
31253
31254 fi
31255fi
31256
a848cd7e
SC
31257
31258
31259IODBC_C_SRC=""
31260
31261
31262if test "$TOOLKIT" != "MSW" ; then
31263
31264 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31265
31266 if test "${ac_cv_header_sql_h+set}" = set; then
31267 echo "$as_me:$LINENO: checking for sql.h" >&5
31268echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31269if test "${ac_cv_header_sql_h+set}" = set; then
31270 echo $ECHO_N "(cached) $ECHO_C" >&6
31271fi
31272echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31273echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31274else
31275 # Is the header compilable?
31276echo "$as_me:$LINENO: checking sql.h usability" >&5
31277echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31278cat >conftest.$ac_ext <<_ACEOF
31279/* confdefs.h. */
31280_ACEOF
31281cat confdefs.h >>conftest.$ac_ext
31282cat >>conftest.$ac_ext <<_ACEOF
31283/* end confdefs.h. */
31284$ac_includes_default
31285#include <sql.h>
31286_ACEOF
31287rm -f conftest.$ac_objext
31288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31289 (eval $ac_compile) 2>conftest.er1
a848cd7e 31290 ac_status=$?
ac1cb8d3
VS
31291 grep -v '^ *+' conftest.er1 >conftest.err
31292 rm -f conftest.er1
31293 cat conftest.err >&5
a848cd7e
SC
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); } &&
d25774ab
JS
31296 { ac_try='test -z "$ac_cxx_werror_flag"
31297 || test ! -s conftest.err'
ac1cb8d3
VS
31298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31299 (eval $ac_try) 2>&5
31300 ac_status=$?
31301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302 (exit $ac_status); }; } &&
31303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31305 (eval $ac_try) 2>&5
31306 ac_status=$?
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); }; }; then
31309 ac_header_compiler=yes
31310else
31311 echo "$as_me: failed program was:" >&5
31312sed 's/^/| /' conftest.$ac_ext >&5
31313
31314ac_header_compiler=no
31315fi
ac1cb8d3 31316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31317echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31318echo "${ECHO_T}$ac_header_compiler" >&6
31319
31320# Is the header present?
31321echo "$as_me:$LINENO: checking sql.h presence" >&5
31322echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31323cat >conftest.$ac_ext <<_ACEOF
31324/* confdefs.h. */
31325_ACEOF
31326cat confdefs.h >>conftest.$ac_ext
31327cat >>conftest.$ac_ext <<_ACEOF
31328/* end confdefs.h. */
31329#include <sql.h>
31330_ACEOF
31331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31333 ac_status=$?
31334 grep -v '^ *+' conftest.er1 >conftest.err
31335 rm -f conftest.er1
31336 cat conftest.err >&5
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); } >/dev/null; then
31339 if test -s conftest.err; then
5d7b7554
VZ
31340 ac_cpp_err=$ac_cxx_preproc_warn_flag
31341 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31342 else
31343 ac_cpp_err=
31344 fi
31345else
31346 ac_cpp_err=yes
31347fi
31348if test -z "$ac_cpp_err"; then
31349 ac_header_preproc=yes
31350else
31351 echo "$as_me: failed program was:" >&5
31352sed 's/^/| /' conftest.$ac_ext >&5
31353
31354 ac_header_preproc=no
31355fi
31356rm -f conftest.err conftest.$ac_ext
31357echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31358echo "${ECHO_T}$ac_header_preproc" >&6
31359
31360# So? What about this header?
5d7b7554 31361case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31362 yes:no: )
a848cd7e
SC
31363 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31364echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31365 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31366echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31367 ac_header_preproc=yes
a848cd7e 31368 ;;
ac1cb8d3 31369 no:yes:* )
a848cd7e
SC
31370 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31371echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31372 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31373echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31374 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31375echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31376 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31377echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31378 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31379echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31380 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31381echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31382 (
31383 cat <<\_ASBOX
ac1cb8d3
VS
31384## ----------------------------------------- ##
31385## Report this to wx-dev@lists.wxwidgets.org ##
31386## ----------------------------------------- ##
a848cd7e
SC
31387_ASBOX
31388 ) |
31389 sed "s/^/$as_me: WARNING: /" >&2
31390 ;;
31391esac
31392echo "$as_me:$LINENO: checking for sql.h" >&5
31393echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31394if test "${ac_cv_header_sql_h+set}" = set; then
31395 echo $ECHO_N "(cached) $ECHO_C" >&6
31396else
31397 ac_cv_header_sql_h=$ac_header_preproc
31398fi
31399echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31400echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31401
31402fi
31403if test $ac_cv_header_sql_h = yes; then
31404 found_sql_h=1
31405fi
31406
31407
31408 if test "x$found_sql_h" = "x1" ; then
31409 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31410echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31411if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31412 echo $ECHO_N "(cached) $ECHO_C" >&6
31413else
31414 ac_check_lib_save_LIBS=$LIBS
31415LIBS="-liodbc $LIBS"
31416cat >conftest.$ac_ext <<_ACEOF
31417/* confdefs.h. */
31418_ACEOF
31419cat confdefs.h >>conftest.$ac_ext
31420cat >>conftest.$ac_ext <<_ACEOF
31421/* end confdefs.h. */
31422
31423/* Override any gcc2 internal prototype to avoid an error. */
31424#ifdef __cplusplus
31425extern "C"
31426#endif
31427/* We use char because int might match the return type of a gcc2
31428 builtin and then its argument prototype would still apply. */
31429char SQLAllocEnv ();
31430int
31431main ()
31432{
31433SQLAllocEnv ();
31434 ;
31435 return 0;
31436}
31437_ACEOF
31438rm -f conftest.$ac_objext conftest$ac_exeext
31439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31440 (eval $ac_link) 2>conftest.er1
a848cd7e 31441 ac_status=$?
ac1cb8d3
VS
31442 grep -v '^ *+' conftest.er1 >conftest.err
31443 rm -f conftest.er1
31444 cat conftest.err >&5
a848cd7e
SC
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); } &&
d25774ab
JS
31447 { ac_try='test -z "$ac_cxx_werror_flag"
31448 || test ! -s conftest.err'
ac1cb8d3
VS
31449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31450 (eval $ac_try) 2>&5
31451 ac_status=$?
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); }; } &&
31454 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31456 (eval $ac_try) 2>&5
31457 ac_status=$?
31458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31459 (exit $ac_status); }; }; then
31460 ac_cv_lib_iodbc_SQLAllocEnv=yes
31461else
31462 echo "$as_me: failed program was:" >&5
31463sed 's/^/| /' conftest.$ac_ext >&5
31464
31465ac_cv_lib_iodbc_SQLAllocEnv=no
31466fi
ac1cb8d3
VS
31467rm -f conftest.err conftest.$ac_objext \
31468 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31469LIBS=$ac_check_lib_save_LIBS
31470fi
31471echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31472echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31473if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31474 ODBC_LINK=" -liodbc"
31475else
31476
31477 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31478echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31479if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31480 echo $ECHO_N "(cached) $ECHO_C" >&6
31481else
31482 ac_check_lib_save_LIBS=$LIBS
31483LIBS="-lunixodbc $LIBS"
31484cat >conftest.$ac_ext <<_ACEOF
31485/* confdefs.h. */
31486_ACEOF
31487cat confdefs.h >>conftest.$ac_ext
31488cat >>conftest.$ac_ext <<_ACEOF
31489/* end confdefs.h. */
31490
31491/* Override any gcc2 internal prototype to avoid an error. */
31492#ifdef __cplusplus
31493extern "C"
31494#endif
31495/* We use char because int might match the return type of a gcc2
31496 builtin and then its argument prototype would still apply. */
31497char SQLAllocEnv ();
31498int
31499main ()
31500{
31501SQLAllocEnv ();
31502 ;
31503 return 0;
31504}
31505_ACEOF
31506rm -f conftest.$ac_objext conftest$ac_exeext
31507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31508 (eval $ac_link) 2>conftest.er1
a848cd7e 31509 ac_status=$?
ac1cb8d3
VS
31510 grep -v '^ *+' conftest.er1 >conftest.err
31511 rm -f conftest.er1
31512 cat conftest.err >&5
a848cd7e
SC
31513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514 (exit $ac_status); } &&
d25774ab
JS
31515 { ac_try='test -z "$ac_cxx_werror_flag"
31516 || test ! -s conftest.err'
ac1cb8d3
VS
31517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31518 (eval $ac_try) 2>&5
31519 ac_status=$?
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); }; } &&
31522 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31524 (eval $ac_try) 2>&5
31525 ac_status=$?
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; }; then
31528 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31529else
31530 echo "$as_me: failed program was:" >&5
31531sed 's/^/| /' conftest.$ac_ext >&5
31532
31533ac_cv_lib_unixodbc_SQLAllocEnv=no
31534fi
ac1cb8d3
VS
31535rm -f conftest.err conftest.$ac_objext \
31536 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31537LIBS=$ac_check_lib_save_LIBS
31538fi
31539echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31540echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31541if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31542 ODBC_LINK=" -lunixodbc"
31543else
31544
31545 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31546echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31547if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31548 echo $ECHO_N "(cached) $ECHO_C" >&6
31549else
31550 ac_check_lib_save_LIBS=$LIBS
31551LIBS="-lodbc $LIBS"
31552cat >conftest.$ac_ext <<_ACEOF
31553/* confdefs.h. */
31554_ACEOF
31555cat confdefs.h >>conftest.$ac_ext
31556cat >>conftest.$ac_ext <<_ACEOF
31557/* end confdefs.h. */
31558
31559/* Override any gcc2 internal prototype to avoid an error. */
31560#ifdef __cplusplus
31561extern "C"
31562#endif
31563/* We use char because int might match the return type of a gcc2
31564 builtin and then its argument prototype would still apply. */
31565char SQLAllocEnv ();
31566int
31567main ()
31568{
31569SQLAllocEnv ();
31570 ;
31571 return 0;
31572}
31573_ACEOF
31574rm -f conftest.$ac_objext conftest$ac_exeext
31575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31576 (eval $ac_link) 2>conftest.er1
a848cd7e 31577 ac_status=$?
ac1cb8d3
VS
31578 grep -v '^ *+' conftest.er1 >conftest.err
31579 rm -f conftest.er1
31580 cat conftest.err >&5
a848cd7e
SC
31581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582 (exit $ac_status); } &&
d25774ab
JS
31583 { ac_try='test -z "$ac_cxx_werror_flag"
31584 || test ! -s conftest.err'
ac1cb8d3
VS
31585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31586 (eval $ac_try) 2>&5
31587 ac_status=$?
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); }; } &&
31590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31592 (eval $ac_try) 2>&5
31593 ac_status=$?
31594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); }; }; then
31596 ac_cv_lib_odbc_SQLAllocEnv=yes
31597else
31598 echo "$as_me: failed program was:" >&5
31599sed 's/^/| /' conftest.$ac_ext >&5
31600
31601ac_cv_lib_odbc_SQLAllocEnv=no
31602fi
ac1cb8d3
VS
31603rm -f conftest.err conftest.$ac_objext \
31604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31605LIBS=$ac_check_lib_save_LIBS
31606fi
31607echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31608echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31609if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31610 ODBC_LINK=" -lodbc"
31611fi
31612
31613
31614fi
31615
31616
31617fi
31618
31619 fi
31620 if test "x$ODBC_LINK" = "x" ; then
31621 if test "$wxUSE_ODBC" = "sys" ; then
31622 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31623echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31624 { (exit 1); exit 1; }; }
31625 else
31626 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31627echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31628 wxUSE_ODBC=builtin
31629 fi
31630 else
31631 wxUSE_ODBC=sys
31632 fi
31633 fi
a848cd7e 31634
2da0c077
RD
31635 if test "$wxUSE_ODBC" = "builtin" ; then
31636 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31637#define wxUSE_BUILTIN_IODBC 1
31638_ACEOF
31639
a848cd7e
SC
31640 fi
31641fi
31642
2da0c077
RD
31643if test "$wxUSE_ODBC" != "no" ; then
31644 cat >>confdefs.h <<\_ACEOF
31645#define wxUSE_ODBC 1
31646_ACEOF
31647
31648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31649
5ff751d6 31650 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31651fi
a848cd7e 31652
01cb68df 31653
a848cd7e 31654if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31655 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31656 echo "$as_me:$LINENO: checking for Xinerama" >&5
31657echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31658
0ad5d837
VZ
31659 ac_find_libraries=
31660 for ac_dir in $SEARCH_LIB;
31661 do
31662 for ac_extension in a so sl dylib dll.a; do
31663 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31664 ac_find_libraries=$ac_dir
31665 break 2
31666 fi
31667 done
31668 done
31669
a848cd7e
SC
31670 if test "$ac_find_libraries" != "" ; then
31671
0ad5d837 31672 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31673 ac_path_to_link=""
31674 else
0ad5d837
VZ
31675 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31676 result=$?
31677 if test $result = 0; then
31678 ac_path_to_link=""
31679 else
31680 ac_path_to_link=" -L$ac_find_libraries"
31681 fi
a848cd7e
SC
31682 fi
31683
31684 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31685 LDFLAGS="$LDFLAGS $ac_path_to_link"
31686 fi
31687 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31688 echo "$as_me:$LINENO: result: yes" >&5
31689echo "${ECHO_T}yes" >&6
31690
31691 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31692echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31693
0ad5d837
VZ
31694 ac_find_libraries=
31695 for ac_dir in $SEARCH_LIB;
a848cd7e 31696 do
3eca31dc 31697 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31698 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31699 ac_find_libraries=$ac_dir
31700 break 2
31701 fi
31702 done
31703 done
31704
31705 if test "$ac_find_libraries" != "" ; then
31706 echo "$as_me:$LINENO: result: yes" >&5
31707echo "${ECHO_T}yes" >&6
31708
31709for ac_header in X11/extensions/xf86vmode.h
31710do
31711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31712echo "$as_me:$LINENO: checking for $ac_header" >&5
31713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31714if eval "test \"\${$as_ac_Header+set}\" = set"; then
31715 echo $ECHO_N "(cached) $ECHO_C" >&6
31716else
31717 cat >conftest.$ac_ext <<_ACEOF
31718/* confdefs.h. */
31719_ACEOF
31720cat confdefs.h >>conftest.$ac_ext
31721cat >>conftest.$ac_ext <<_ACEOF
31722/* end confdefs.h. */
31723
31724 #if HAVE_X11_XLIB_H
31725 #include <X11/Xlib.h>
31726 #endif
31727
31728
31729#include <$ac_header>
31730_ACEOF
31731rm -f conftest.$ac_objext
31732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31733 (eval $ac_compile) 2>conftest.er1
a848cd7e 31734 ac_status=$?
ac1cb8d3
VS
31735 grep -v '^ *+' conftest.er1 >conftest.err
31736 rm -f conftest.er1
31737 cat conftest.err >&5
a848cd7e
SC
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); } &&
d25774ab
JS
31740 { ac_try='test -z "$ac_cxx_werror_flag"
31741 || test ! -s conftest.err'
ac1cb8d3
VS
31742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743 (eval $ac_try) 2>&5
31744 ac_status=$?
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; } &&
31747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31749 (eval $ac_try) 2>&5
31750 ac_status=$?
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); }; }; then
31753 eval "$as_ac_Header=yes"
31754else
31755 echo "$as_me: failed program was:" >&5
31756sed 's/^/| /' conftest.$ac_ext >&5
31757
31758eval "$as_ac_Header=no"
31759fi
ac1cb8d3 31760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31761fi
31762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31764if test `eval echo '${'$as_ac_Header'}'` = yes; then
31765 cat >>confdefs.h <<_ACEOF
31766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31767_ACEOF
31768
31769 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31770
31771fi
31772
31773done
31774
31775 else
31776 echo "$as_me:$LINENO: result: no" >&5
31777echo "${ECHO_T}no" >&6
31778 fi
31779
31780 else
31781 echo "$as_me:$LINENO: result: no" >&5
31782echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31783 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31784echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31785 wxUSE_DISPLAY="no"
31786 fi
01cb68df
RG
31787 elif test "$wxUSE_MSW" = 1; then
31788
e5efa97e 31789for ac_header in ddraw.h
01cb68df
RG
31790do
31791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31792echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31794if eval "test \"\${$as_ac_Header+set}\" = set"; then
31795 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31796else
5294a27e 31797 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31798/* confdefs.h. */
31799_ACEOF
31800cat confdefs.h >>conftest.$ac_ext
31801cat >>conftest.$ac_ext <<_ACEOF
31802/* end confdefs.h. */
5294a27e
VZ
31803#include <windows.h>
31804
01cb68df
RG
31805#include <$ac_header>
31806_ACEOF
31807rm -f conftest.$ac_objext
31808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31809 (eval $ac_compile) 2>conftest.er1
01cb68df 31810 ac_status=$?
ac1cb8d3
VS
31811 grep -v '^ *+' conftest.er1 >conftest.err
31812 rm -f conftest.er1
31813 cat conftest.err >&5
01cb68df
RG
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); } &&
d25774ab
JS
31816 { ac_try='test -z "$ac_cxx_werror_flag"
31817 || test ! -s conftest.err'
ac1cb8d3
VS
31818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31819 (eval $ac_try) 2>&5
31820 ac_status=$?
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; } &&
31823 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31825 (eval $ac_try) 2>&5
31826 ac_status=$?
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); }; }; then
5294a27e 31829 eval "$as_ac_Header=yes"
01cb68df
RG
31830else
31831 echo "$as_me: failed program was:" >&5
31832sed 's/^/| /' conftest.$ac_ext >&5
31833
5294a27e 31834eval "$as_ac_Header=no"
01cb68df 31835fi
ac1cb8d3 31836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31837fi
31838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31840if test `eval echo '${'$as_ac_Header'}'` = yes; then
31841 cat >>confdefs.h <<_ACEOF
31842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31843_ACEOF
31844
01cb68df
RG
31845fi
31846
31847done
31848
a848cd7e
SC
31849 fi
31850fi
31851
31852
31853USE_OPENGL=0
31854if test "$wxUSE_OPENGL" = "yes"; then
31855 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31856 OPENGL_LIBS="-framework OpenGL -framework AGL"
31857 elif test "$wxUSE_MSW" = 1; then
31858 OPENGL_LIBS="-lopengl32 -lglu32"
31859 else
31860
31861
31862ac_find_includes=
31863for ac_dir in $SEARCH_INCLUDE /usr/include;
31864 do
31865 if test -f "$ac_dir/GL/gl.h"; then
31866 ac_find_includes=$ac_dir
31867 break
31868 fi
31869 done
31870
31871 if test "$ac_find_includes" != "" ; then
31872 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31873echo "${ECHO_T}found in $ac_find_includes" >&6
31874
31875 if test "x$ac_find_includes" = "x/usr/include"; then
31876 ac_path_to_include=""
31877 else
31878 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31879 result=$?
31880 if test $result = 0; then
31881 ac_path_to_include=""
31882 else
31883 ac_path_to_include=" -I$ac_find_includes"
31884 fi
31885 fi
31886
c92ad099 31887 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31888 fi
31889
31890 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31891 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31892echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31893if test "${ac_cv_header_GL_gl_h+set}" = set; then
31894 echo $ECHO_N "(cached) $ECHO_C" >&6
31895fi
31896echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31897echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31898else
31899 # Is the header compilable?
31900echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31901echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31902cat >conftest.$ac_ext <<_ACEOF
31903/* confdefs.h. */
31904_ACEOF
31905cat confdefs.h >>conftest.$ac_ext
31906cat >>conftest.$ac_ext <<_ACEOF
31907/* end confdefs.h. */
31908$ac_includes_default
31909#include <GL/gl.h>
31910_ACEOF
31911rm -f conftest.$ac_objext
31912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31913 (eval $ac_compile) 2>conftest.er1
a848cd7e 31914 ac_status=$?
ac1cb8d3
VS
31915 grep -v '^ *+' conftest.er1 >conftest.err
31916 rm -f conftest.er1
31917 cat conftest.err >&5
a848cd7e
SC
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); } &&
d25774ab
JS
31920 { ac_try='test -z "$ac_cxx_werror_flag"
31921 || test ! -s conftest.err'
ac1cb8d3
VS
31922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31923 (eval $ac_try) 2>&5
31924 ac_status=$?
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); }; } &&
31927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31929 (eval $ac_try) 2>&5
31930 ac_status=$?
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); }; }; then
31933 ac_header_compiler=yes
31934else
31935 echo "$as_me: failed program was:" >&5
31936sed 's/^/| /' conftest.$ac_ext >&5
31937
31938ac_header_compiler=no
31939fi
ac1cb8d3 31940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31942echo "${ECHO_T}$ac_header_compiler" >&6
31943
31944# Is the header present?
31945echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31946echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31947cat >conftest.$ac_ext <<_ACEOF
31948/* confdefs.h. */
31949_ACEOF
31950cat confdefs.h >>conftest.$ac_ext
31951cat >>conftest.$ac_ext <<_ACEOF
31952/* end confdefs.h. */
31953#include <GL/gl.h>
31954_ACEOF
31955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31957 ac_status=$?
31958 grep -v '^ *+' conftest.er1 >conftest.err
31959 rm -f conftest.er1
31960 cat conftest.err >&5
31961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962 (exit $ac_status); } >/dev/null; then
31963 if test -s conftest.err; then
5d7b7554
VZ
31964 ac_cpp_err=$ac_cxx_preproc_warn_flag
31965 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31966 else
31967 ac_cpp_err=
31968 fi
31969else
31970 ac_cpp_err=yes
31971fi
31972if test -z "$ac_cpp_err"; then
31973 ac_header_preproc=yes
31974else
31975 echo "$as_me: failed program was:" >&5
31976sed 's/^/| /' conftest.$ac_ext >&5
31977
31978 ac_header_preproc=no
31979fi
31980rm -f conftest.err conftest.$ac_ext
31981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31982echo "${ECHO_T}$ac_header_preproc" >&6
31983
31984# So? What about this header?
5d7b7554 31985case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31986 yes:no: )
a848cd7e
SC
31987 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31988echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31989 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31990echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31991 ac_header_preproc=yes
a848cd7e 31992 ;;
ac1cb8d3 31993 no:yes:* )
a848cd7e
SC
31994 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31995echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31996 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31997echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31998 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31999echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32000 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32001echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32002 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32003echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32004 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32005echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32006 (
32007 cat <<\_ASBOX
ac1cb8d3
VS
32008## ----------------------------------------- ##
32009## Report this to wx-dev@lists.wxwidgets.org ##
32010## ----------------------------------------- ##
a848cd7e
SC
32011_ASBOX
32012 ) |
32013 sed "s/^/$as_me: WARNING: /" >&2
32014 ;;
32015esac
32016echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32017echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32018if test "${ac_cv_header_GL_gl_h+set}" = set; then
32019 echo $ECHO_N "(cached) $ECHO_C" >&6
32020else
32021 ac_cv_header_GL_gl_h=$ac_header_preproc
32022fi
32023echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32024echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32025
32026fi
32027if test $ac_cv_header_GL_gl_h = yes; then
32028
32029 found_gl=0
32030
32031 echo "$as_me:$LINENO: checking for -lGL" >&5
32032echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32033
0ad5d837
VZ
32034 ac_find_libraries=
32035 for ac_dir in $SEARCH_LIB;
a848cd7e 32036 do
3eca31dc 32037 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32038 if test -f "$ac_dir/libGL.$ac_extension"; then
32039 ac_find_libraries=$ac_dir
32040 break 2
32041 fi
32042 done
32043 done
32044
32045 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32046 echo "$as_me:$LINENO: result: yes" >&5
32047echo "${ECHO_T}yes" >&6
32048
a848cd7e 32049
0ad5d837 32050 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32051 ac_path_to_link=""
32052 else
0ad5d837
VZ
32053 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32054 result=$?
32055 if test $result = 0; then
32056 ac_path_to_link=""
32057 else
32058 ac_path_to_link=" -L$ac_find_libraries"
32059 fi
a848cd7e
SC
32060 fi
32061
32062 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32063 LDFLAGS_GL="$ac_path_to_link"
32064 fi
32065
69120ee4
VZ
32066 echo "$as_me:$LINENO: checking for -lGLU" >&5
32067echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32068
0ad5d837
VZ
32069 ac_find_libraries=
32070 for ac_dir in $SEARCH_LIB;
32071 do
32072 for ac_extension in a so sl dylib dll.a; do
32073 if test -f "$ac_dir/libGLU.$ac_extension"; then
32074 ac_find_libraries=$ac_dir
32075 break 2
32076 fi
32077 done
32078 done
32079
a848cd7e
SC
32080 if test "$ac_find_libraries" != "" ; then
32081
0ad5d837 32082 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32083 ac_path_to_link=""
32084 else
0ad5d837
VZ
32085 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32086 result=$?
32087 if test $result = 0; then
32088 ac_path_to_link=""
32089 else
32090 ac_path_to_link=" -L$ac_find_libraries"
32091 fi
a848cd7e
SC
32092 fi
32093
32094 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32095 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32096 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32097 fi
32098
32099 found_gl=1
32100 OPENGL_LIBS="-lGL -lGLU"
32101 echo "$as_me:$LINENO: result: yes" >&5
32102echo "${ECHO_T}yes" >&6
69120ee4
VZ
32103 else
32104 echo "$as_me:$LINENO: result: no" >&5
32105echo "${ECHO_T}no" >&6
a848cd7e 32106 fi
69120ee4
VZ
32107 else
32108 echo "$as_me:$LINENO: result: no" >&5
32109echo "${ECHO_T}no" >&6
a848cd7e
SC
32110 fi
32111
32112 if test "$found_gl" != 1; then
a848cd7e
SC
32113 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32114echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32115
0ad5d837
VZ
32116 ac_find_libraries=
32117 for ac_dir in $SEARCH_LIB;
a848cd7e 32118 do
3eca31dc 32119 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32120 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32121 ac_find_libraries=$ac_dir
32122 break 2
32123 fi
32124 done
32125 done
32126
32127 if test "$ac_find_libraries" != "" ; then
32128
0ad5d837 32129 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32130 ac_path_to_link=""
32131 else
0ad5d837
VZ
32132 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32133 result=$?
32134 if test $result = 0; then
32135 ac_path_to_link=""
32136 else
32137 ac_path_to_link=" -L$ac_find_libraries"
32138 fi
a848cd7e
SC
32139 fi
32140
32141 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32142 OPENGL_LIBS="-lMesaGL -lMesaGLU"
32143 echo "$as_me:$LINENO: result: yes" >&5
32144echo "${ECHO_T}yes" >&6
32145 else
32146 echo "$as_me:$LINENO: result: no" >&5
32147echo "${ECHO_T}no" >&6
32148 fi
32149 fi
32150
32151fi
32152
32153
32154
32155 if test "x$OPENGL_LIBS" = "x"; then
32156 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32157echo "$as_me: error: OpenGL libraries not available" >&2;}
32158 { (exit 1); exit 1; }; }
32159 fi
32160 fi
32161
32162 if test "$wxUSE_OPENGL" = "yes"; then
32163 USE_OPENGL=1
32164 cat >>confdefs.h <<\_ACEOF
32165#define wxUSE_OPENGL 1
32166_ACEOF
32167
32168 cat >>confdefs.h <<\_ACEOF
32169#define wxUSE_GLCANVAS 1
32170_ACEOF
32171
32172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32173 fi
32174fi
32175
a848cd7e
SC
32176
32177if test -n "$TOOLKIT" ; then
32178 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32179fi
32180
a848cd7e
SC
32181
32182
32183if test "$wxUSE_SHARED" = "yes"; then
32184 case "${host}" in
32185 *-pc-msdosdjgpp )
32186 wxUSE_SHARED=no
32187 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32188echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32189 ;;
32190 esac
32191fi
32192
a848cd7e 32193if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
32194
32195
32196 found_versioning=no
32197
32198
32199 if test $found_versioning = no ; then
32200 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32201echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32202if test "${wx_cv_version_script+set}" = set; then
32203 echo $ECHO_N "(cached) $ECHO_C" >&6
32204else
32205
32206 echo "VER_1 { *; };" >conftest.sym
32207 echo "int main() { return 0; }" >conftest.cpp
32208
32209 if { ac_try='
32210 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32211 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32213 (eval $ac_try) 2>&5
32214 ac_status=$?
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); }; } ; then
32217 if test -s conftest.stderr ; then
32218 wx_cv_version_script=no
32219 else
32220 wx_cv_version_script=yes
32221 fi
32222 else
32223 wx_cv_version_script=no
32224 fi
e5d4b470
MW
32225
32226 if test $wx_cv_version_script = yes
32227 then
32228 echo "struct B { virtual ~B() { } }; \
32229 struct D : public B { }; \
32230 void F() { D d; }" > conftest.cpp
32231
32232 if { ac_try='
32233 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32234 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32236 (eval $ac_try) 2>&5
32237 ac_status=$?
32238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239 (exit $ac_status); }; } &&
32240 { ac_try='
32241 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32242 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32244 (eval $ac_try) 2>&5
32245 ac_status=$?
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); }; }
32248 then
32249 if { ac_try='
32250 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32251 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32253 (eval $ac_try) 2>&5
32254 ac_status=$?
32255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256 (exit $ac_status); }; }
32257 then
32258 wx_cv_version_script=yes
32259 else
32260 wx_cv_version_script=no
32261 fi
32262 fi
32263 fi
32264
a848cd7e 32265 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32266 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32267
32268fi
32269echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32270echo "${ECHO_T}$wx_cv_version_script" >&6
32271 if test $wx_cv_version_script = yes ; then
32272 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32273 fi
32274 fi
32275
32276
32277 case "${host}" in
32278 *-*-linux* | *-*-gnu* )
32279 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32280 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32281 ;;
a848cd7e
SC
32282
32283 *-*-solaris2* )
32284 if test "$GCC" = yes ; then
c92ad099 32285 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32286
32287 saveLdflags="$LDFLAGS"
32288 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32289 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32290echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32291 cat >conftest.$ac_ext <<_ACEOF
32292/* confdefs.h. */
32293_ACEOF
32294cat confdefs.h >>conftest.$ac_ext
32295cat >>conftest.$ac_ext <<_ACEOF
32296/* end confdefs.h. */
32297
32298int
32299main ()
32300{
32301
32302 ;
32303 return 0;
32304}
32305_ACEOF
32306rm -f conftest.$ac_objext conftest$ac_exeext
32307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32308 (eval $ac_link) 2>conftest.er1
a848cd7e 32309 ac_status=$?
ac1cb8d3
VS
32310 grep -v '^ *+' conftest.er1 >conftest.err
32311 rm -f conftest.er1
32312 cat conftest.err >&5
a848cd7e
SC
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); } &&
d25774ab
JS
32315 { ac_try='test -z "$ac_cxx_werror_flag"
32316 || test ! -s conftest.err'
ac1cb8d3
VS
32317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318 (eval $ac_try) 2>&5
32319 ac_status=$?
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); }; } &&
32322 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324 (eval $ac_try) 2>&5
32325 ac_status=$?
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); }; }; then
32328
32329 echo "$as_me:$LINENO: result: yes" >&5
32330echo "${ECHO_T}yes" >&6
32331 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32332 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32333
32334else
32335 echo "$as_me: failed program was:" >&5
32336sed 's/^/| /' conftest.$ac_ext >&5
32337
32338
32339 echo "$as_me:$LINENO: result: no" >&5
32340echo "${ECHO_T}no" >&6
32341 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32342echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32343 LDFLAGS="$saveLdflags -Wl,-R,/"
32344 cat >conftest.$ac_ext <<_ACEOF
32345/* confdefs.h. */
32346_ACEOF
32347cat confdefs.h >>conftest.$ac_ext
32348cat >>conftest.$ac_ext <<_ACEOF
32349/* end confdefs.h. */
32350
32351int
32352main ()
32353{
32354
32355 ;
32356 return 0;
32357}
32358_ACEOF
32359rm -f conftest.$ac_objext conftest$ac_exeext
32360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32361 (eval $ac_link) 2>conftest.er1
a848cd7e 32362 ac_status=$?
ac1cb8d3
VS
32363 grep -v '^ *+' conftest.er1 >conftest.err
32364 rm -f conftest.er1
32365 cat conftest.err >&5
a848cd7e
SC
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); } &&
d25774ab
JS
32368 { ac_try='test -z "$ac_cxx_werror_flag"
32369 || test ! -s conftest.err'
ac1cb8d3
VS
32370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32371 (eval $ac_try) 2>&5
32372 ac_status=$?
32373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); }; } &&
32375 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32377 (eval $ac_try) 2>&5
32378 ac_status=$?
32379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 (exit $ac_status); }; }; then
32381
ffa0583f 32382 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32383echo "${ECHO_T}yes" >&6
ffa0583f
RL
32384 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32385 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32386
a848cd7e
SC
32387else
32388 echo "$as_me: failed program was:" >&5
32389sed 's/^/| /' conftest.$ac_ext >&5
32390
32391
32392 echo "$as_me:$LINENO: result: no" >&5
32393echo "${ECHO_T}no" >&6
32394
32395fi
ac1cb8d3
VS
32396rm -f conftest.err conftest.$ac_objext \
32397 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32398
32399fi
ac1cb8d3
VS
32400rm -f conftest.err conftest.$ac_objext \
32401 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32402 LDFLAGS="$saveLdflags"
32403 else
a848cd7e 32404 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32405 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32406 fi
32407 ;;
32408
cfda0ea8 32409 *-*-darwin* )
0caebc27
MW
32410 install_name_tool=`which install_name_tool`
32411 if test "$install_name_tool" -a -x "$install_name_tool"; then
32412 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32413 cat <<EOF >change-install-names
a848cd7e
SC
32414#!/bin/sh
32415libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32416inst_cmd="install_name_tool "
32417for i in \${libnames} ; do
32418 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32419done
32420\${inst_cmd} \${3}
32421EOF
0caebc27
MW
32422 chmod +x change-install-names
32423 fi
a848cd7e
SC
32424 ;;
32425
32426 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32427 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32428 ;;
a848cd7e 32429
81f90336
MW
32430 *-*-hpux* )
32431 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32432 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32433 ;;
81f90336 32434
a848cd7e 32435 esac
ceec2216 32436
ffa0583f
RL
32437 if test $wxUSE_RPATH = "no"; then
32438 SAMPLES_RPATH_FLAG=''
32439 SAMPLES_RPATH_POSTLINK=''
32440 WXCONFIG_RPATH=''
32441 fi
32442
32443 SHARED=1
32444
32445else
32446
ceec2216
RL
32447 config_linkage_component="-static"
32448 SHARED=0
ffa0583f 32449
ceec2216 32450fi
a848cd7e 32451
a848cd7e 32452
ceec2216
RL
32453UNICODE=0
32454lib_unicode_suffix=
32455WX_CHARTYPE="ansi"
32456if test "$wxUSE_UNICODE" = "yes"; then
32457 lib_unicode_suffix=u
32458 WX_CHARTYPE="unicode"
32459 UNICODE=1
a848cd7e
SC
32460fi
32461
ceec2216
RL
32462lib_debug_suffix=
32463WX_DEBUGTYPE="release"
32464DEBUG_FLAG=0
32465if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32466 lib_debug_suffix=d
32467 WX_DEBUGTYPE="debug"
32468 DEBUG_FLAG=1
32469fi
a848cd7e 32470
ceec2216
RL
32471WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32472WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32473
ceec2216
RL
32474DEBUG_INFO=0
32475if test "$wxUSE_DEBUG_INFO" = "yes"; then
32476 DEBUG_INFO=1
32477fi
a848cd7e 32478
ceec2216 32479WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32480
ceec2216 32481TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32482
ceec2216 32483TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32484
ceec2216
RL
32485if test "$cross_compiling" = "yes"; then
32486 HOST_SUFFIX="-$host_alias"
32487 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32488 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32489fi
32490
dd21ced8 32491WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32492if test "${TOOLKIT_DIR}" = "os2"; then
32493 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32494else
32495 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32496fi
ceec2216
RL
32497
32498
32499
1d1af5ea
DE
32500if test "$wxUSE_COCOA" = 1; then
32501
32502
32503 ac_ext=c
32504ac_cpp='$CPP $CPPFLAGS'
32505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32507ac_compiler_gnu=$ac_cv_c_compiler_gnu
32508
32509ac_ext=m
32510
32511 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32512echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32513 cat >conftest.$ac_ext <<_ACEOF
32514/* confdefs.h. */
32515_ACEOF
32516cat confdefs.h >>conftest.$ac_ext
32517cat >>conftest.$ac_ext <<_ACEOF
32518/* end confdefs.h. */
32519#include <AppKit/NSEvent.h>
32520#include <CoreFoundation/CoreFoundation.h>
32521
32522int
32523main ()
32524{
32525
32526 ;
32527 return 0;
32528}
32529_ACEOF
32530rm -f conftest.$ac_objext
32531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32532 (eval $ac_compile) 2>conftest.er1
32533 ac_status=$?
32534 grep -v '^ *+' conftest.er1 >conftest.err
32535 rm -f conftest.er1
32536 cat conftest.err >&5
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); } &&
d25774ab
JS
32539 { ac_try='test -z "$ac_c_werror_flag"
32540 || test ! -s conftest.err'
1d1af5ea
DE
32541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32542 (eval $ac_try) 2>&5
32543 ac_status=$?
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); }; } &&
32546 { ac_try='test -s conftest.$ac_objext'
32547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32548 (eval $ac_try) 2>&5
32549 ac_status=$?
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); }; }; then
32552 echo "$as_me:$LINENO: result: no" >&5
32553echo "${ECHO_T}no" >&6
32554else
32555 echo "$as_me: failed program was:" >&5
32556sed 's/^/| /' conftest.$ac_ext >&5
32557
32558echo "$as_me:$LINENO: result: yes" >&5
32559echo "${ECHO_T}yes" >&6
32560 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32561echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32562 cat >conftest.$ac_ext <<_ACEOF
32563/* confdefs.h. */
32564_ACEOF
32565cat confdefs.h >>conftest.$ac_ext
32566cat >>conftest.$ac_ext <<_ACEOF
32567/* end confdefs.h. */
32568#define __Point__ 1
32569#include <AppKit/NSEvent.h>
32570#include <CoreFoundation/CoreFoundation.h>
32571
32572int
32573main ()
32574{
32575
32576 ;
32577 return 0;
32578}
32579_ACEOF
32580rm -f conftest.$ac_objext
32581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32582 (eval $ac_compile) 2>conftest.er1
32583 ac_status=$?
32584 grep -v '^ *+' conftest.er1 >conftest.err
32585 rm -f conftest.er1
32586 cat conftest.err >&5
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); } &&
d25774ab
JS
32589 { ac_try='test -z "$ac_c_werror_flag"
32590 || test ! -s conftest.err'
1d1af5ea
DE
32591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32592 (eval $ac_try) 2>&5
32593 ac_status=$?
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); }; } &&
32596 { ac_try='test -s conftest.$ac_objext'
32597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32598 (eval $ac_try) 2>&5
32599 ac_status=$?
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); }; }; then
32602 echo "$as_me:$LINENO: result: yes" >&5
32603echo "${ECHO_T}yes" >&6
32604 cat >>confdefs.h <<\_ACEOF
32605#define __Point__ 1
32606_ACEOF
32607
32608
32609else
32610 echo "$as_me: failed program was:" >&5
32611sed 's/^/| /' conftest.$ac_ext >&5
32612
32613{ { echo "$as_me:$LINENO: error: no
32614See \`config.log' for more details." >&5
32615echo "$as_me: error: no
32616See \`config.log' for more details." >&2;}
32617 { (exit 1); exit 1; }; }
32618
32619fi
32620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32621
32622fi
32623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
32624 ac_ext=cc
32625ac_cpp='$CXXCPP $CPPFLAGS'
32626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
32629
32630fi
32631
a848cd7e 32632if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32633 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32634 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32635
a848cd7e 32636 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32637
32638 # Extract the first word of "Rez", so it can be a program name with args.
32639set dummy Rez; ac_word=$2
32640echo "$as_me:$LINENO: checking for $ac_word" >&5
32641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32642if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32643 echo $ECHO_N "(cached) $ECHO_C" >&6
32644else
8ced02f6
DE
32645 if test -n "$REZ"; then
32646 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32647else
32648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32649for as_dir in $PATH
32650do
32651 IFS=$as_save_IFS
32652 test -z "$as_dir" && as_dir=.
32653 for ac_exec_ext in '' $ac_executable_extensions; do
32654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32655 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32657 break 2
32658 fi
32659done
32660done
32661
8ced02f6 32662 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32663fi
32664fi
8ced02f6
DE
32665REZ=$ac_cv_prog_REZ
32666if test -n "$REZ"; then
32667 echo "$as_me:$LINENO: result: $REZ" >&5
32668echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32669else
32670 echo "$as_me:$LINENO: result: no" >&5
32671echo "${ECHO_T}no" >&6
32672fi
32673
32674 # Extract the first word of "DeRez", so it can be a program name with args.
32675set dummy DeRez; ac_word=$2
32676echo "$as_me:$LINENO: checking for $ac_word" >&5
32677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32678if test "${ac_cv_prog_DEREZ+set}" = set; then
32679 echo $ECHO_N "(cached) $ECHO_C" >&6
32680else
32681 if test -n "$DEREZ"; then
32682 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32683else
32684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32685for as_dir in $PATH
32686do
32687 IFS=$as_save_IFS
32688 test -z "$as_dir" && as_dir=.
32689 for ac_exec_ext in '' $ac_executable_extensions; do
32690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32691 ac_cv_prog_DEREZ="DeRez"
32692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32693 break 2
32694 fi
32695done
32696done
32697
32698 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32699fi
32700fi
32701DEREZ=$ac_cv_prog_DEREZ
32702if test -n "$DEREZ"; then
32703 echo "$as_me:$LINENO: result: $DEREZ" >&5
32704echo "${ECHO_T}$DEREZ" >&6
32705else
32706 echo "$as_me:$LINENO: result: no" >&5
32707echo "${ECHO_T}no" >&6
32708fi
32709
32710 # Extract the first word of "SetFile", so it can be a program name with args.
32711set dummy SetFile; ac_word=$2
32712echo "$as_me:$LINENO: checking for $ac_word" >&5
32713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32714if test "${ac_cv_prog_SETFILE+set}" = set; then
32715 echo $ECHO_N "(cached) $ECHO_C" >&6
32716else
32717 if test -n "$SETFILE"; then
32718 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32719else
32720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32721for as_dir in $PATH
32722do
32723 IFS=$as_save_IFS
32724 test -z "$as_dir" && as_dir=.
32725 for ac_exec_ext in '' $ac_executable_extensions; do
32726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32727 ac_cv_prog_SETFILE="SetFile"
32728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32729 break 2
32730 fi
32731done
32732done
32733
32734 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32735fi
32736fi
32737SETFILE=$ac_cv_prog_SETFILE
32738if test -n "$SETFILE"; then
32739 echo "$as_me:$LINENO: result: $SETFILE" >&5
32740echo "${ECHO_T}$SETFILE" >&6
32741else
32742 echo "$as_me:$LINENO: result: no" >&5
32743echo "${ECHO_T}no" >&6
32744fi
32745
32746
32747 MACSETFILE="\$(SETFILE)"
32748
32749 if test "$wxUSE_MAC" = 1; then
8ced02f6 32750 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32751 RESCOMP="$REZ"
32752 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32753 else
004ee6da
RL
32754 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32755 RESCOMP="echo -n \| $REZ"
32756 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32757 fi
004ee6da 32758
a848cd7e 32759else
ffa0583f 32760 MACSETFILE="@true"
a848cd7e 32761
8ced02f6 32762 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32763 RESCOMP="emxbind"
32764 WXCONFIG_RESFLAGS="-ep"
32765
32766 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32767 else
8ced02f6 32768 POSTLINK_COMMAND="@true"
a848cd7e 32769 fi
004ee6da 32770
a848cd7e
SC
32771fi
32772
32773
32774
32775echo "$as_me:$LINENO: checking for mode_t" >&5
32776echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32777if test "${ac_cv_type_mode_t+set}" = set; then
32778 echo $ECHO_N "(cached) $ECHO_C" >&6
32779else
32780 cat >conftest.$ac_ext <<_ACEOF
32781/* confdefs.h. */
32782_ACEOF
32783cat confdefs.h >>conftest.$ac_ext
32784cat >>conftest.$ac_ext <<_ACEOF
32785/* end confdefs.h. */
32786$ac_includes_default
32787int
32788main ()
32789{
32790if ((mode_t *) 0)
32791 return 0;
32792if (sizeof (mode_t))
32793 return 0;
32794 ;
32795 return 0;
32796}
32797_ACEOF
32798rm -f conftest.$ac_objext
32799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32800 (eval $ac_compile) 2>conftest.er1
a848cd7e 32801 ac_status=$?
ac1cb8d3
VS
32802 grep -v '^ *+' conftest.er1 >conftest.err
32803 rm -f conftest.er1
32804 cat conftest.err >&5
a848cd7e
SC
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); } &&
d25774ab
JS
32807 { ac_try='test -z "$ac_cxx_werror_flag"
32808 || test ! -s conftest.err'
ac1cb8d3
VS
32809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32810 (eval $ac_try) 2>&5
32811 ac_status=$?
32812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); }; } &&
32814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32816 (eval $ac_try) 2>&5
32817 ac_status=$?
32818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); }; }; then
32820 ac_cv_type_mode_t=yes
32821else
32822 echo "$as_me: failed program was:" >&5
32823sed 's/^/| /' conftest.$ac_ext >&5
32824
32825ac_cv_type_mode_t=no
32826fi
ac1cb8d3 32827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32828fi
32829echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32830echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32831if test $ac_cv_type_mode_t = yes; then
32832 :
32833else
32834
32835cat >>confdefs.h <<_ACEOF
32836#define mode_t int
32837_ACEOF
32838
32839fi
32840
32841echo "$as_me:$LINENO: checking for off_t" >&5
32842echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32843if test "${ac_cv_type_off_t+set}" = set; then
32844 echo $ECHO_N "(cached) $ECHO_C" >&6
32845else
32846 cat >conftest.$ac_ext <<_ACEOF
32847/* confdefs.h. */
32848_ACEOF
32849cat confdefs.h >>conftest.$ac_ext
32850cat >>conftest.$ac_ext <<_ACEOF
32851/* end confdefs.h. */
32852$ac_includes_default
32853int
32854main ()
32855{
32856if ((off_t *) 0)
32857 return 0;
32858if (sizeof (off_t))
32859 return 0;
32860 ;
32861 return 0;
32862}
32863_ACEOF
32864rm -f conftest.$ac_objext
32865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32866 (eval $ac_compile) 2>conftest.er1
a848cd7e 32867 ac_status=$?
ac1cb8d3
VS
32868 grep -v '^ *+' conftest.er1 >conftest.err
32869 rm -f conftest.er1
32870 cat conftest.err >&5
a848cd7e
SC
32871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872 (exit $ac_status); } &&
d25774ab
JS
32873 { ac_try='test -z "$ac_cxx_werror_flag"
32874 || test ! -s conftest.err'
ac1cb8d3
VS
32875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32876 (eval $ac_try) 2>&5
32877 ac_status=$?
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); }; } &&
32880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32882 (eval $ac_try) 2>&5
32883 ac_status=$?
32884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885 (exit $ac_status); }; }; then
32886 ac_cv_type_off_t=yes
32887else
32888 echo "$as_me: failed program was:" >&5
32889sed 's/^/| /' conftest.$ac_ext >&5
32890
32891ac_cv_type_off_t=no
32892fi
ac1cb8d3 32893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32894fi
32895echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32896echo "${ECHO_T}$ac_cv_type_off_t" >&6
32897if test $ac_cv_type_off_t = yes; then
32898 :
32899else
32900
32901cat >>confdefs.h <<_ACEOF
32902#define off_t long
32903_ACEOF
32904
32905fi
32906
32907echo "$as_me:$LINENO: checking for pid_t" >&5
32908echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32909if test "${ac_cv_type_pid_t+set}" = set; then
32910 echo $ECHO_N "(cached) $ECHO_C" >&6
32911else
32912 cat >conftest.$ac_ext <<_ACEOF
32913/* confdefs.h. */
32914_ACEOF
32915cat confdefs.h >>conftest.$ac_ext
32916cat >>conftest.$ac_ext <<_ACEOF
32917/* end confdefs.h. */
32918$ac_includes_default
32919int
32920main ()
32921{
32922if ((pid_t *) 0)
32923 return 0;
32924if (sizeof (pid_t))
32925 return 0;
32926 ;
32927 return 0;
32928}
32929_ACEOF
32930rm -f conftest.$ac_objext
32931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32932 (eval $ac_compile) 2>conftest.er1
a848cd7e 32933 ac_status=$?
ac1cb8d3
VS
32934 grep -v '^ *+' conftest.er1 >conftest.err
32935 rm -f conftest.er1
32936 cat conftest.err >&5
a848cd7e
SC
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } &&
d25774ab
JS
32939 { ac_try='test -z "$ac_cxx_werror_flag"
32940 || test ! -s conftest.err'
ac1cb8d3
VS
32941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32942 (eval $ac_try) 2>&5
32943 ac_status=$?
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; } &&
32946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32948 (eval $ac_try) 2>&5
32949 ac_status=$?
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); }; }; then
32952 ac_cv_type_pid_t=yes
32953else
32954 echo "$as_me: failed program was:" >&5
32955sed 's/^/| /' conftest.$ac_ext >&5
32956
32957ac_cv_type_pid_t=no
32958fi
ac1cb8d3 32959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32960fi
32961echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32962echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32963if test $ac_cv_type_pid_t = yes; then
32964 :
32965else
32966
32967cat >>confdefs.h <<_ACEOF
32968#define pid_t int
32969_ACEOF
32970
32971fi
32972
32973echo "$as_me:$LINENO: checking for size_t" >&5
32974echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32975if test "${ac_cv_type_size_t+set}" = set; then
32976 echo $ECHO_N "(cached) $ECHO_C" >&6
32977else
32978 cat >conftest.$ac_ext <<_ACEOF
32979/* confdefs.h. */
32980_ACEOF
32981cat confdefs.h >>conftest.$ac_ext
32982cat >>conftest.$ac_ext <<_ACEOF
32983/* end confdefs.h. */
32984$ac_includes_default
32985int
32986main ()
32987{
32988if ((size_t *) 0)
32989 return 0;
32990if (sizeof (size_t))
32991 return 0;
32992 ;
32993 return 0;
32994}
32995_ACEOF
32996rm -f conftest.$ac_objext
32997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32998 (eval $ac_compile) 2>conftest.er1
a848cd7e 32999 ac_status=$?
ac1cb8d3
VS
33000 grep -v '^ *+' conftest.er1 >conftest.err
33001 rm -f conftest.er1
33002 cat conftest.err >&5
a848cd7e
SC
33003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004 (exit $ac_status); } &&
d25774ab
JS
33005 { ac_try='test -z "$ac_cxx_werror_flag"
33006 || test ! -s conftest.err'
ac1cb8d3
VS
33007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33008 (eval $ac_try) 2>&5
33009 ac_status=$?
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); }; } &&
33012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33014 (eval $ac_try) 2>&5
33015 ac_status=$?
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); }; }; then
33018 ac_cv_type_size_t=yes
33019else
33020 echo "$as_me: failed program was:" >&5
33021sed 's/^/| /' conftest.$ac_ext >&5
33022
33023ac_cv_type_size_t=no
33024fi
ac1cb8d3 33025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33026fi
33027echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33028echo "${ECHO_T}$ac_cv_type_size_t" >&6
33029if test $ac_cv_type_size_t = yes; then
33030 :
33031else
33032
33033cat >>confdefs.h <<_ACEOF
33034#define size_t unsigned
33035_ACEOF
33036
33037fi
33038
33039echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33040echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33041if test "${ac_cv_type_uid_t+set}" = set; then
33042 echo $ECHO_N "(cached) $ECHO_C" >&6
33043else
33044 cat >conftest.$ac_ext <<_ACEOF
33045/* confdefs.h. */
33046_ACEOF
33047cat confdefs.h >>conftest.$ac_ext
33048cat >>conftest.$ac_ext <<_ACEOF
33049/* end confdefs.h. */
33050#include <sys/types.h>
33051
33052_ACEOF
33053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33054 $EGREP "uid_t" >/dev/null 2>&1; then
33055 ac_cv_type_uid_t=yes
33056else
33057 ac_cv_type_uid_t=no
33058fi
33059rm -f conftest*
33060
33061fi
33062echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33063echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33064if test $ac_cv_type_uid_t = no; then
33065
33066cat >>confdefs.h <<\_ACEOF
33067#define uid_t int
33068_ACEOF
33069
33070
33071cat >>confdefs.h <<\_ACEOF
33072#define gid_t int
33073_ACEOF
33074
33075fi
33076
33077
d51253e8
RL
33078echo "$as_me:$LINENO: checking for ssize_t" >&5
33079echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33080if test "${ac_cv_type_ssize_t+set}" = set; then
33081 echo $ECHO_N "(cached) $ECHO_C" >&6
33082else
33083 cat >conftest.$ac_ext <<_ACEOF
33084/* confdefs.h. */
33085_ACEOF
33086cat confdefs.h >>conftest.$ac_ext
33087cat >>conftest.$ac_ext <<_ACEOF
33088/* end confdefs.h. */
33089$ac_includes_default
33090int
33091main ()
33092{
33093if ((ssize_t *) 0)
33094 return 0;
33095if (sizeof (ssize_t))
33096 return 0;
33097 ;
33098 return 0;
33099}
33100_ACEOF
33101rm -f conftest.$ac_objext
33102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33103 (eval $ac_compile) 2>conftest.er1
33104 ac_status=$?
33105 grep -v '^ *+' conftest.er1 >conftest.err
33106 rm -f conftest.er1
33107 cat conftest.err >&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } &&
d25774ab
JS
33110 { ac_try='test -z "$ac_cxx_werror_flag"
33111 || test ! -s conftest.err'
d51253e8
RL
33112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33113 (eval $ac_try) 2>&5
33114 ac_status=$?
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); }; } &&
33117 { ac_try='test -s conftest.$ac_objext'
33118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33119 (eval $ac_try) 2>&5
33120 ac_status=$?
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; }; then
33123 ac_cv_type_ssize_t=yes
33124else
33125 echo "$as_me: failed program was:" >&5
33126sed 's/^/| /' conftest.$ac_ext >&5
33127
33128ac_cv_type_ssize_t=no
33129fi
33130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33131fi
33132echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33133echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33134if test $ac_cv_type_ssize_t = yes; then
33135
33136cat >>confdefs.h <<_ACEOF
33137#define HAVE_SSIZE_T 1
33138_ACEOF
33139
33140
33141fi
33142
33143
a848cd7e
SC
33144echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33145echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33146if test "${wx_cv_size_t_is_uint+set}" = set; then
33147 echo $ECHO_N "(cached) $ECHO_C" >&6
33148else
33149
33150 cat >conftest.$ac_ext <<_ACEOF
33151/* confdefs.h. */
33152_ACEOF
33153cat confdefs.h >>conftest.$ac_ext
33154cat >>conftest.$ac_ext <<_ACEOF
33155/* end confdefs.h. */
33156#include <stddef.h>
33157int
33158main ()
33159{
33160
33161 return 0; }
33162
33163 struct Foo { void foo(size_t); void foo(unsigned int); };
33164
33165 int bar() {
33166
33167 ;
33168 return 0;
33169}
33170_ACEOF
33171rm -f conftest.$ac_objext
33172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33173 (eval $ac_compile) 2>conftest.er1
a848cd7e 33174 ac_status=$?
ac1cb8d3
VS
33175 grep -v '^ *+' conftest.er1 >conftest.err
33176 rm -f conftest.er1
33177 cat conftest.err >&5
a848cd7e
SC
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); } &&
d25774ab
JS
33180 { ac_try='test -z "$ac_cxx_werror_flag"
33181 || test ! -s conftest.err'
ac1cb8d3
VS
33182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33183 (eval $ac_try) 2>&5
33184 ac_status=$?
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); }; } &&
33187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33189 (eval $ac_try) 2>&5
33190 ac_status=$?
33191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); }; }; then
33193 wx_cv_size_t_is_uint=no
33194else
33195 echo "$as_me: failed program was:" >&5
33196sed 's/^/| /' conftest.$ac_ext >&5
33197
33198wx_cv_size_t_is_uint=yes
33199
33200fi
ac1cb8d3 33201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33202
33203
33204fi
33205echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33206echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33207
33208if test "$wx_cv_size_t_is_uint" = "yes"; then
33209 cat >>confdefs.h <<\_ACEOF
33210#define wxSIZE_T_IS_UINT 1
33211_ACEOF
33212
33213else
33214 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33215echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33216if test "${wx_cv_size_t_is_ulong+set}" = set; then
33217 echo $ECHO_N "(cached) $ECHO_C" >&6
33218else
33219 cat >conftest.$ac_ext <<_ACEOF
33220/* confdefs.h. */
33221_ACEOF
33222cat confdefs.h >>conftest.$ac_ext
33223cat >>conftest.$ac_ext <<_ACEOF
33224/* end confdefs.h. */
33225#include <stddef.h>
33226int
33227main ()
33228{
33229
33230 return 0; }
33231
33232 struct Foo { void foo(size_t); void foo(unsigned long); };
33233
33234 int bar() {
33235
33236 ;
33237 return 0;
33238}
33239_ACEOF
33240rm -f conftest.$ac_objext
33241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33242 (eval $ac_compile) 2>conftest.er1
a848cd7e 33243 ac_status=$?
ac1cb8d3
VS
33244 grep -v '^ *+' conftest.er1 >conftest.err
33245 rm -f conftest.er1
33246 cat conftest.err >&5
a848cd7e
SC
33247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248 (exit $ac_status); } &&
d25774ab
JS
33249 { ac_try='test -z "$ac_cxx_werror_flag"
33250 || test ! -s conftest.err'
ac1cb8d3
VS
33251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33252 (eval $ac_try) 2>&5
33253 ac_status=$?
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 (exit $ac_status); }; } &&
33256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33258 (eval $ac_try) 2>&5
33259 ac_status=$?
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); }; }; then
33262 wx_cv_size_t_is_ulong=no
33263else
33264 echo "$as_me: failed program was:" >&5
33265sed 's/^/| /' conftest.$ac_ext >&5
33266
33267wx_cv_size_t_is_ulong=yes
33268
33269fi
ac1cb8d3 33270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33271
33272fi
33273echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33274echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33275
33276 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33277 cat >>confdefs.h <<\_ACEOF
33278#define wxSIZE_T_IS_ULONG 1
33279_ACEOF
33280
33281 fi
33282fi
33283
a848cd7e
SC
33284
33285echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33286echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33287if test "${wx_cv_struct_pw_gecos+set}" = set; then
33288 echo $ECHO_N "(cached) $ECHO_C" >&6
33289else
33290
33291 cat >conftest.$ac_ext <<_ACEOF
33292/* confdefs.h. */
33293_ACEOF
33294cat confdefs.h >>conftest.$ac_ext
33295cat >>conftest.$ac_ext <<_ACEOF
33296/* end confdefs.h. */
33297#include <pwd.h>
33298int
33299main ()
33300{
33301
33302 char *p;
33303 struct passwd *pw;
33304 p = pw->pw_gecos;
33305
33306 ;
33307 return 0;
33308}
33309_ACEOF
33310rm -f conftest.$ac_objext
33311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33312 (eval $ac_compile) 2>conftest.er1
a848cd7e 33313 ac_status=$?
ac1cb8d3
VS
33314 grep -v '^ *+' conftest.er1 >conftest.err
33315 rm -f conftest.er1
33316 cat conftest.err >&5
a848cd7e
SC
33317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318 (exit $ac_status); } &&
d25774ab
JS
33319 { ac_try='test -z "$ac_cxx_werror_flag"
33320 || test ! -s conftest.err'
ac1cb8d3
VS
33321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33322 (eval $ac_try) 2>&5
33323 ac_status=$?
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); }; } &&
33326 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33328 (eval $ac_try) 2>&5
33329 ac_status=$?
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); }; }; then
33332
33333 wx_cv_struct_pw_gecos=yes
33334
33335else
33336 echo "$as_me: failed program was:" >&5
33337sed 's/^/| /' conftest.$ac_ext >&5
33338
33339
33340 wx_cv_struct_pw_gecos=no
33341
33342
33343fi
ac1cb8d3 33344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33345
33346
33347fi
33348echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33349echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33350
33351if test "$wx_cv_struct_pw_gecos" = "yes"; then
33352 cat >>confdefs.h <<\_ACEOF
33353#define HAVE_PW_GECOS 1
33354_ACEOF
33355
33356fi
33357
33358
47a7e797 33359if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33360 cat >>confdefs.h <<\_ACEOF
33361#define wxUSE_WCHAR_T 1
33362_ACEOF
33363
33364
33365 WCSLEN_FOUND=0
33366 WCHAR_LINK=
33367
33368for ac_func in wcslen
33369do
33370as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33371echo "$as_me:$LINENO: checking for $ac_func" >&5
33372echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33373if eval "test \"\${$as_ac_var+set}\" = set"; then
33374 echo $ECHO_N "(cached) $ECHO_C" >&6
33375else
33376 cat >conftest.$ac_ext <<_ACEOF
33377/* confdefs.h. */
33378_ACEOF
33379cat confdefs.h >>conftest.$ac_ext
33380cat >>conftest.$ac_ext <<_ACEOF
33381/* end confdefs.h. */
ac1cb8d3
VS
33382/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33384#define $ac_func innocuous_$ac_func
33385
a848cd7e
SC
33386/* System header to define __stub macros and hopefully few prototypes,
33387 which can conflict with char $ac_func (); below.
33388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33389 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33390
a848cd7e
SC
33391#ifdef __STDC__
33392# include <limits.h>
33393#else
33394# include <assert.h>
33395#endif
ac1cb8d3
VS
33396
33397#undef $ac_func
33398
a848cd7e
SC
33399/* Override any gcc2 internal prototype to avoid an error. */
33400#ifdef __cplusplus
33401extern "C"
33402{
33403#endif
33404/* We use char because int might match the return type of a gcc2
33405 builtin and then its argument prototype would still apply. */
33406char $ac_func ();
33407/* The GNU C library defines this for functions which it implements
33408 to always fail with ENOSYS. Some functions are actually named
33409 something starting with __ and the normal name is an alias. */
33410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33411choke me
33412#else
33413char (*f) () = $ac_func;
33414#endif
33415#ifdef __cplusplus
33416}
33417#endif
33418
33419int
33420main ()
33421{
33422return f != $ac_func;
33423 ;
33424 return 0;
33425}
33426_ACEOF
33427rm -f conftest.$ac_objext conftest$ac_exeext
33428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33429 (eval $ac_link) 2>conftest.er1
a848cd7e 33430 ac_status=$?
ac1cb8d3
VS
33431 grep -v '^ *+' conftest.er1 >conftest.err
33432 rm -f conftest.er1
33433 cat conftest.err >&5
a848cd7e
SC
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); } &&
d25774ab
JS
33436 { ac_try='test -z "$ac_cxx_werror_flag"
33437 || test ! -s conftest.err'
ac1cb8d3
VS
33438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33439 (eval $ac_try) 2>&5
33440 ac_status=$?
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); }; } &&
33443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33445 (eval $ac_try) 2>&5
33446 ac_status=$?
33447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33448 (exit $ac_status); }; }; then
33449 eval "$as_ac_var=yes"
33450else
33451 echo "$as_me: failed program was:" >&5
33452sed 's/^/| /' conftest.$ac_ext >&5
33453
33454eval "$as_ac_var=no"
33455fi
ac1cb8d3
VS
33456rm -f conftest.err conftest.$ac_objext \
33457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33458fi
33459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33461if test `eval echo '${'$as_ac_var'}'` = yes; then
33462 cat >>confdefs.h <<_ACEOF
33463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33464_ACEOF
33465 WCSLEN_FOUND=1
33466fi
33467done
33468
33469
33470 if test "$WCSLEN_FOUND" = 0; then
33471 if test "$TOOLKIT" = "MSW"; then
33472 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33473echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33474if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33475 echo $ECHO_N "(cached) $ECHO_C" >&6
33476else
33477 ac_check_lib_save_LIBS=$LIBS
33478LIBS="-lmsvcrt $LIBS"
33479cat >conftest.$ac_ext <<_ACEOF
33480/* confdefs.h. */
33481_ACEOF
33482cat confdefs.h >>conftest.$ac_ext
33483cat >>conftest.$ac_ext <<_ACEOF
33484/* end confdefs.h. */
33485
33486/* Override any gcc2 internal prototype to avoid an error. */
33487#ifdef __cplusplus
33488extern "C"
33489#endif
33490/* We use char because int might match the return type of a gcc2
33491 builtin and then its argument prototype would still apply. */
33492char wcslen ();
33493int
33494main ()
33495{
33496wcslen ();
33497 ;
33498 return 0;
33499}
33500_ACEOF
33501rm -f conftest.$ac_objext conftest$ac_exeext
33502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33503 (eval $ac_link) 2>conftest.er1
a848cd7e 33504 ac_status=$?
ac1cb8d3
VS
33505 grep -v '^ *+' conftest.er1 >conftest.err
33506 rm -f conftest.er1
33507 cat conftest.err >&5
a848cd7e
SC
33508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509 (exit $ac_status); } &&
d25774ab
JS
33510 { ac_try='test -z "$ac_cxx_werror_flag"
33511 || test ! -s conftest.err'
ac1cb8d3
VS
33512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33513 (eval $ac_try) 2>&5
33514 ac_status=$?
33515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516 (exit $ac_status); }; } &&
33517 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33519 (eval $ac_try) 2>&5
33520 ac_status=$?
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); }; }; then
33523 ac_cv_lib_msvcrt_wcslen=yes
33524else
33525 echo "$as_me: failed program was:" >&5
33526sed 's/^/| /' conftest.$ac_ext >&5
33527
33528ac_cv_lib_msvcrt_wcslen=no
33529fi
ac1cb8d3
VS
33530rm -f conftest.err conftest.$ac_objext \
33531 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33532LIBS=$ac_check_lib_save_LIBS
33533fi
33534echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33535echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33536if test $ac_cv_lib_msvcrt_wcslen = yes; then
33537 WCHAR_OK=1
33538fi
33539
33540 else
33541 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33542echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33543if test "${ac_cv_lib_w_wcslen+set}" = set; then
33544 echo $ECHO_N "(cached) $ECHO_C" >&6
33545else
33546 ac_check_lib_save_LIBS=$LIBS
33547LIBS="-lw $LIBS"
33548cat >conftest.$ac_ext <<_ACEOF
33549/* confdefs.h. */
33550_ACEOF
33551cat confdefs.h >>conftest.$ac_ext
33552cat >>conftest.$ac_ext <<_ACEOF
33553/* end confdefs.h. */
33554
33555/* Override any gcc2 internal prototype to avoid an error. */
33556#ifdef __cplusplus
33557extern "C"
33558#endif
33559/* We use char because int might match the return type of a gcc2
33560 builtin and then its argument prototype would still apply. */
33561char wcslen ();
33562int
33563main ()
33564{
33565wcslen ();
33566 ;
33567 return 0;
33568}
33569_ACEOF
33570rm -f conftest.$ac_objext conftest$ac_exeext
33571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33572 (eval $ac_link) 2>conftest.er1
a848cd7e 33573 ac_status=$?
ac1cb8d3
VS
33574 grep -v '^ *+' conftest.er1 >conftest.err
33575 rm -f conftest.er1
33576 cat conftest.err >&5
a848cd7e
SC
33577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578 (exit $ac_status); } &&
d25774ab
JS
33579 { ac_try='test -z "$ac_cxx_werror_flag"
33580 || test ! -s conftest.err'
ac1cb8d3
VS
33581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33582 (eval $ac_try) 2>&5
33583 ac_status=$?
33584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33585 (exit $ac_status); }; } &&
33586 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33588 (eval $ac_try) 2>&5
33589 ac_status=$?
33590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591 (exit $ac_status); }; }; then
33592 ac_cv_lib_w_wcslen=yes
33593else
33594 echo "$as_me: failed program was:" >&5
33595sed 's/^/| /' conftest.$ac_ext >&5
33596
33597ac_cv_lib_w_wcslen=no
33598fi
ac1cb8d3
VS
33599rm -f conftest.err conftest.$ac_objext \
33600 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33601LIBS=$ac_check_lib_save_LIBS
33602fi
33603echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33604echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33605if test $ac_cv_lib_w_wcslen = yes; then
33606
33607 WCHAR_LINK=" -lw"
33608 WCSLEN_FOUND=1
33609
33610fi
33611
33612 fi
33613 fi
33614
33615 if test "$WCSLEN_FOUND" = 1; then
33616 cat >>confdefs.h <<\_ACEOF
33617#define HAVE_WCSLEN 1
33618_ACEOF
33619
33620 fi
33621
efdf6afe 33622 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33623 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33624 fi
33625
efdf6afe
VZ
33626 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33627echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33628if test "${ac_cv_type_mbstate_t+set}" = set; then
33629 echo $ECHO_N "(cached) $ECHO_C" >&6
33630else
33631 cat >conftest.$ac_ext <<_ACEOF
33632/* confdefs.h. */
33633_ACEOF
33634cat confdefs.h >>conftest.$ac_ext
33635cat >>conftest.$ac_ext <<_ACEOF
33636/* end confdefs.h. */
33637#include <wchar.h>
33638
33639int
33640main ()
33641{
33642if ((mbstate_t *) 0)
33643 return 0;
33644if (sizeof (mbstate_t))
33645 return 0;
33646 ;
33647 return 0;
33648}
33649_ACEOF
33650rm -f conftest.$ac_objext
33651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33652 (eval $ac_compile) 2>conftest.er1
33653 ac_status=$?
33654 grep -v '^ *+' conftest.er1 >conftest.err
33655 rm -f conftest.er1
33656 cat conftest.err >&5
33657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658 (exit $ac_status); } &&
d25774ab
JS
33659 { ac_try='test -z "$ac_cxx_werror_flag"
33660 || test ! -s conftest.err'
efdf6afe
VZ
33661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33662 (eval $ac_try) 2>&5
33663 ac_status=$?
33664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665 (exit $ac_status); }; } &&
33666 { ac_try='test -s conftest.$ac_objext'
33667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33668 (eval $ac_try) 2>&5
33669 ac_status=$?
33670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671 (exit $ac_status); }; }; then
33672 ac_cv_type_mbstate_t=yes
33673else
33674 echo "$as_me: failed program was:" >&5
33675sed 's/^/| /' conftest.$ac_ext >&5
33676
33677ac_cv_type_mbstate_t=no
33678fi
33679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33680fi
33681echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33682echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33683if test $ac_cv_type_mbstate_t = yes; then
33684
33685cat >>confdefs.h <<_ACEOF
33686#define HAVE_MBSTATE_T 1
33687_ACEOF
33688
a848cd7e
SC
33689
33690for ac_func in wcsrtombs
33691do
33692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33693echo "$as_me:$LINENO: checking for $ac_func" >&5
33694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33695if eval "test \"\${$as_ac_var+set}\" = set"; then
33696 echo $ECHO_N "(cached) $ECHO_C" >&6
33697else
33698 cat >conftest.$ac_ext <<_ACEOF
33699/* confdefs.h. */
33700_ACEOF
33701cat confdefs.h >>conftest.$ac_ext
33702cat >>conftest.$ac_ext <<_ACEOF
33703/* end confdefs.h. */
ac1cb8d3
VS
33704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33706#define $ac_func innocuous_$ac_func
33707
a848cd7e
SC
33708/* System header to define __stub macros and hopefully few prototypes,
33709 which can conflict with char $ac_func (); below.
33710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33711 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33712
a848cd7e
SC
33713#ifdef __STDC__
33714# include <limits.h>
33715#else
33716# include <assert.h>
33717#endif
ac1cb8d3
VS
33718
33719#undef $ac_func
33720
a848cd7e
SC
33721/* Override any gcc2 internal prototype to avoid an error. */
33722#ifdef __cplusplus
33723extern "C"
33724{
33725#endif
33726/* We use char because int might match the return type of a gcc2
33727 builtin and then its argument prototype would still apply. */
33728char $ac_func ();
33729/* The GNU C library defines this for functions which it implements
33730 to always fail with ENOSYS. Some functions are actually named
33731 something starting with __ and the normal name is an alias. */
33732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33733choke me
33734#else
33735char (*f) () = $ac_func;
33736#endif
33737#ifdef __cplusplus
33738}
33739#endif
33740
33741int
33742main ()
33743{
33744return f != $ac_func;
33745 ;
33746 return 0;
33747}
33748_ACEOF
33749rm -f conftest.$ac_objext conftest$ac_exeext
33750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33751 (eval $ac_link) 2>conftest.er1
a848cd7e 33752 ac_status=$?
ac1cb8d3
VS
33753 grep -v '^ *+' conftest.er1 >conftest.err
33754 rm -f conftest.er1
33755 cat conftest.err >&5
a848cd7e
SC
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); } &&
d25774ab
JS
33758 { ac_try='test -z "$ac_cxx_werror_flag"
33759 || test ! -s conftest.err'
ac1cb8d3
VS
33760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33761 (eval $ac_try) 2>&5
33762 ac_status=$?
33763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764 (exit $ac_status); }; } &&
33765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33767 (eval $ac_try) 2>&5
33768 ac_status=$?
33769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770 (exit $ac_status); }; }; then
33771 eval "$as_ac_var=yes"
33772else
33773 echo "$as_me: failed program was:" >&5
33774sed 's/^/| /' conftest.$ac_ext >&5
33775
33776eval "$as_ac_var=no"
33777fi
ac1cb8d3
VS
33778rm -f conftest.err conftest.$ac_objext \
33779 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33780fi
33781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33782echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33783if test `eval echo '${'$as_ac_var'}'` = yes; then
33784 cat >>confdefs.h <<_ACEOF
33785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33786_ACEOF
33787
33788fi
33789done
33790
efdf6afe
VZ
33791fi
33792
a848cd7e
SC
33793else
33794 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33795echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33796fi
33797
a848cd7e 33798
4a767dd5
VZ
33799
33800for ac_func in snprintf vsnprintf
a848cd7e
SC
33801do
33802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33803echo "$as_me:$LINENO: checking for $ac_func" >&5
33804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33805if eval "test \"\${$as_ac_var+set}\" = set"; then
33806 echo $ECHO_N "(cached) $ECHO_C" >&6
33807else
33808 cat >conftest.$ac_ext <<_ACEOF
33809/* confdefs.h. */
33810_ACEOF
33811cat confdefs.h >>conftest.$ac_ext
33812cat >>conftest.$ac_ext <<_ACEOF
33813/* end confdefs.h. */
ac1cb8d3
VS
33814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33816#define $ac_func innocuous_$ac_func
33817
a848cd7e
SC
33818/* System header to define __stub macros and hopefully few prototypes,
33819 which can conflict with char $ac_func (); below.
33820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33821 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33822
a848cd7e
SC
33823#ifdef __STDC__
33824# include <limits.h>
33825#else
33826# include <assert.h>
33827#endif
ac1cb8d3
VS
33828
33829#undef $ac_func
33830
a848cd7e
SC
33831/* Override any gcc2 internal prototype to avoid an error. */
33832#ifdef __cplusplus
33833extern "C"
33834{
33835#endif
33836/* We use char because int might match the return type of a gcc2
33837 builtin and then its argument prototype would still apply. */
33838char $ac_func ();
33839/* The GNU C library defines this for functions which it implements
33840 to always fail with ENOSYS. Some functions are actually named
33841 something starting with __ and the normal name is an alias. */
33842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33843choke me
33844#else
33845char (*f) () = $ac_func;
33846#endif
33847#ifdef __cplusplus
33848}
33849#endif
33850
33851int
33852main ()
33853{
33854return f != $ac_func;
33855 ;
33856 return 0;
33857}
33858_ACEOF
33859rm -f conftest.$ac_objext conftest$ac_exeext
33860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33861 (eval $ac_link) 2>conftest.er1
a848cd7e 33862 ac_status=$?
ac1cb8d3
VS
33863 grep -v '^ *+' conftest.er1 >conftest.err
33864 rm -f conftest.er1
33865 cat conftest.err >&5
a848cd7e
SC
33866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33867 (exit $ac_status); } &&
d25774ab
JS
33868 { ac_try='test -z "$ac_cxx_werror_flag"
33869 || test ! -s conftest.err'
ac1cb8d3
VS
33870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871 (eval $ac_try) 2>&5
33872 ac_status=$?
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; } &&
33875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33881 eval "$as_ac_var=yes"
33882else
33883 echo "$as_me: failed program was:" >&5
33884sed 's/^/| /' conftest.$ac_ext >&5
33885
33886eval "$as_ac_var=no"
33887fi
ac1cb8d3
VS
33888rm -f conftest.err conftest.$ac_objext \
33889 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33890fi
33891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33892echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33893if test `eval echo '${'$as_ac_var'}'` = yes; then
33894 cat >>confdefs.h <<_ACEOF
33895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33896_ACEOF
33897
33898fi
33899done
33900
33901
33902if test "$ac_cv_func_vsnprintf" = "yes"; then
33903 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33904echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33905if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33906 echo $ECHO_N "(cached) $ECHO_C" >&6
33907else
33908
efdf6afe 33909 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33910/* confdefs.h. */
33911_ACEOF
33912cat confdefs.h >>conftest.$ac_ext
33913cat >>conftest.$ac_ext <<_ACEOF
33914/* end confdefs.h. */
33915
33916 #include <stdio.h>
33917 #include <stdarg.h>
efdf6afe
VZ
33918 #ifdef __MSL__
33919 #if __MSL__ >= 0x6000
33920 namespace std {}
33921 using namespace std;
33922 #endif
33923 #endif
a848cd7e
SC
33924
33925int
33926main ()
33927{
33928
33929 char *buf;
33930 va_list ap;
62fa8b3a 33931 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33932
33933 ;
33934 return 0;
33935}
33936_ACEOF
33937rm -f conftest.$ac_objext
33938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33939 (eval $ac_compile) 2>conftest.er1
33940 ac_status=$?
33941 grep -v '^ *+' conftest.er1 >conftest.err
33942 rm -f conftest.er1
33943 cat conftest.err >&5
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); } &&
d25774ab
JS
33946 { ac_try='test -z "$ac_cxx_werror_flag"
33947 || test ! -s conftest.err'
c122b164
DE
33948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33949 (eval $ac_try) 2>&5
33950 ac_status=$?
33951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952 (exit $ac_status); }; } &&
33953 { ac_try='test -s conftest.$ac_objext'
33954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33955 (eval $ac_try) 2>&5
33956 ac_status=$?
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; }; then
33959 wx_cv_func_vsnprintf_decl=yes
33960else
33961 echo "$as_me: failed program was:" >&5
33962sed 's/^/| /' conftest.$ac_ext >&5
33963
a848cd7e
SC
33964wx_cv_func_vsnprintf_decl=no
33965
33966fi
ac1cb8d3 33967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33968
33969
33970fi
33971echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33972echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33973
33974 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33975 cat >>confdefs.h <<\_ACEOF
33976#define HAVE_VSNPRINTF_DECL 1
33977_ACEOF
33978
62fa8b3a
MW
33979
33980 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33981echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33982if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33983 echo $ECHO_N "(cached) $ECHO_C" >&6
33984else
33985
33986 cat >conftest.$ac_ext <<_ACEOF
33987/* confdefs.h. */
33988_ACEOF
33989cat confdefs.h >>conftest.$ac_ext
33990cat >>conftest.$ac_ext <<_ACEOF
33991/* end confdefs.h. */
33992
33993 #include <stdio.h>
33994 #include <stdarg.h>
33995 #ifdef __MSL__
33996 #if __MSL__ >= 0x6000
33997 namespace std {}
33998 using namespace std;
33999 #endif
34000 #endif
34001
34002int
34003main ()
34004{
34005
34006 char *buf;
34007 va_list ap;
34008 const char *fmt = "%s";
34009 vsnprintf(buf, 10u, fmt, ap);
34010
34011 ;
34012 return 0;
34013}
34014_ACEOF
34015rm -f conftest.$ac_objext
34016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34017 (eval $ac_compile) 2>conftest.er1
34018 ac_status=$?
34019 grep -v '^ *+' conftest.er1 >conftest.err
34020 rm -f conftest.er1
34021 cat conftest.err >&5
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); } &&
d25774ab
JS
34024 { ac_try='test -z "$ac_cxx_werror_flag"
34025 || test ! -s conftest.err'
62fa8b3a
MW
34026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34027 (eval $ac_try) 2>&5
34028 ac_status=$?
34029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030 (exit $ac_status); }; } &&
34031 { ac_try='test -s conftest.$ac_objext'
34032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34033 (eval $ac_try) 2>&5
34034 ac_status=$?
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); }; }; then
34037 wx_cv_func_broken_vsnprintf_decl=no
34038else
34039 echo "$as_me: failed program was:" >&5
34040sed 's/^/| /' conftest.$ac_ext >&5
34041
34042wx_cv_func_broken_vsnprintf_decl=yes
34043
34044fi
34045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34046
34047
34048fi
34049echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34050echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34051
34052 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34053 cat >>confdefs.h <<\_ACEOF
34054#define HAVE_BROKEN_VSNPRINTF_DECL 1
34055_ACEOF
34056
34057 fi
a848cd7e
SC
34058 fi
34059fi
34060
4a767dd5
VZ
34061if test "$ac_cv_func_snprintf" = "yes"; then
34062 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34063echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34064if test "${wx_cv_func_snprintf_decl+set}" = set; then
34065 echo $ECHO_N "(cached) $ECHO_C" >&6
34066else
34067
34068 cat >conftest.$ac_ext <<_ACEOF
34069/* confdefs.h. */
34070_ACEOF
34071cat confdefs.h >>conftest.$ac_ext
34072cat >>conftest.$ac_ext <<_ACEOF
34073/* end confdefs.h. */
34074
34075 #include <stdio.h>
34076 #include <stdarg.h>
34077 #ifdef __MSL__
34078 #if __MSL__ >= 0x6000
34079 namespace std {}
34080 using namespace std;
34081 #endif
34082 #endif
34083
34084int
34085main ()
34086{
34087
34088 char *buf;
62fa8b3a 34089 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34090
34091 ;
34092 return 0;
34093}
34094_ACEOF
34095rm -f conftest.$ac_objext
34096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34097 (eval $ac_compile) 2>conftest.er1
34098 ac_status=$?
34099 grep -v '^ *+' conftest.er1 >conftest.err
34100 rm -f conftest.er1
34101 cat conftest.err >&5
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); } &&
d25774ab
JS
34104 { ac_try='test -z "$ac_cxx_werror_flag"
34105 || test ! -s conftest.err'
4a767dd5
VZ
34106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34107 (eval $ac_try) 2>&5
34108 ac_status=$?
34109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110 (exit $ac_status); }; } &&
34111 { ac_try='test -s conftest.$ac_objext'
34112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34113 (eval $ac_try) 2>&5
34114 ac_status=$?
34115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116 (exit $ac_status); }; }; then
34117 wx_cv_func_snprintf_decl=yes
34118else
34119 echo "$as_me: failed program was:" >&5
34120sed 's/^/| /' conftest.$ac_ext >&5
34121
34122wx_cv_func_snprintf_decl=no
34123
34124fi
34125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34126
34127
34128fi
34129echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34130echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34131
34132 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34133 cat >>confdefs.h <<\_ACEOF
34134#define HAVE_SNPRINTF_DECL 1
34135_ACEOF
34136
62fa8b3a
MW
34137
34138 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34139echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34140if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34141 echo $ECHO_N "(cached) $ECHO_C" >&6
34142else
34143
34144 cat >conftest.$ac_ext <<_ACEOF
34145/* confdefs.h. */
34146_ACEOF
34147cat confdefs.h >>conftest.$ac_ext
34148cat >>conftest.$ac_ext <<_ACEOF
34149/* end confdefs.h. */
34150
34151 #include <stdio.h>
34152 #include <stdarg.h>
34153 #ifdef __MSL__
34154 #if __MSL__ >= 0x6000
34155 namespace std {}
34156 using namespace std;
34157 #endif
34158 #endif
34159
34160int
34161main ()
34162{
34163
34164 char *buf;
34165 const char *fmt = "%s";
34166 snprintf(buf, 10u, fmt, "wx");
34167
34168 ;
34169 return 0;
34170}
34171_ACEOF
34172rm -f conftest.$ac_objext
34173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34174 (eval $ac_compile) 2>conftest.er1
34175 ac_status=$?
34176 grep -v '^ *+' conftest.er1 >conftest.err
34177 rm -f conftest.er1
34178 cat conftest.err >&5
34179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180 (exit $ac_status); } &&
d25774ab
JS
34181 { ac_try='test -z "$ac_cxx_werror_flag"
34182 || test ! -s conftest.err'
62fa8b3a
MW
34183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34184 (eval $ac_try) 2>&5
34185 ac_status=$?
34186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34187 (exit $ac_status); }; } &&
34188 { ac_try='test -s conftest.$ac_objext'
34189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34190 (eval $ac_try) 2>&5
34191 ac_status=$?
34192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193 (exit $ac_status); }; }; then
34194 wx_cv_func_broken_snprintf_decl=no
34195else
34196 echo "$as_me: failed program was:" >&5
34197sed 's/^/| /' conftest.$ac_ext >&5
34198
34199wx_cv_func_broken_snprintf_decl=yes
34200
34201fi
34202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34203
34204
34205fi
34206echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34207echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34208
34209 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34210 cat >>confdefs.h <<\_ACEOF
34211#define HAVE_BROKEN_SNPRINTF_DECL 1
34212_ACEOF
34213
34214 fi
4a767dd5
VZ
34215 fi
34216fi
34217
a848cd7e
SC
34218if test "$wxUSE_UNICODE" = yes; then
34219
34220
34221
fbe47c7b
VS
34222
34223
34224
34225for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
34226do
34227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34228echo "$as_me:$LINENO: checking for $ac_func" >&5
34229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34230if eval "test \"\${$as_ac_var+set}\" = set"; then
34231 echo $ECHO_N "(cached) $ECHO_C" >&6
34232else
34233 cat >conftest.$ac_ext <<_ACEOF
34234/* confdefs.h. */
34235_ACEOF
34236cat confdefs.h >>conftest.$ac_ext
34237cat >>conftest.$ac_ext <<_ACEOF
34238/* end confdefs.h. */
ac1cb8d3
VS
34239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34241#define $ac_func innocuous_$ac_func
34242
a848cd7e
SC
34243/* System header to define __stub macros and hopefully few prototypes,
34244 which can conflict with char $ac_func (); below.
34245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34246 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34247
a848cd7e
SC
34248#ifdef __STDC__
34249# include <limits.h>
34250#else
34251# include <assert.h>
34252#endif
ac1cb8d3
VS
34253
34254#undef $ac_func
34255
a848cd7e
SC
34256/* Override any gcc2 internal prototype to avoid an error. */
34257#ifdef __cplusplus
34258extern "C"
34259{
34260#endif
34261/* We use char because int might match the return type of a gcc2
34262 builtin and then its argument prototype would still apply. */
34263char $ac_func ();
34264/* The GNU C library defines this for functions which it implements
34265 to always fail with ENOSYS. Some functions are actually named
34266 something starting with __ and the normal name is an alias. */
34267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34268choke me
34269#else
34270char (*f) () = $ac_func;
34271#endif
34272#ifdef __cplusplus
34273}
34274#endif
34275
34276int
34277main ()
34278{
34279return f != $ac_func;
34280 ;
34281 return 0;
34282}
34283_ACEOF
34284rm -f conftest.$ac_objext conftest$ac_exeext
34285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34286 (eval $ac_link) 2>conftest.er1
a848cd7e 34287 ac_status=$?
ac1cb8d3
VS
34288 grep -v '^ *+' conftest.er1 >conftest.err
34289 rm -f conftest.er1
34290 cat conftest.err >&5
a848cd7e
SC
34291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292 (exit $ac_status); } &&
d25774ab
JS
34293 { ac_try='test -z "$ac_cxx_werror_flag"
34294 || test ! -s conftest.err'
ac1cb8d3
VS
34295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34296 (eval $ac_try) 2>&5
34297 ac_status=$?
34298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34299 (exit $ac_status); }; } &&
34300 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34302 (eval $ac_try) 2>&5
34303 ac_status=$?
34304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305 (exit $ac_status); }; }; then
34306 eval "$as_ac_var=yes"
34307else
34308 echo "$as_me: failed program was:" >&5
34309sed 's/^/| /' conftest.$ac_ext >&5
34310
34311eval "$as_ac_var=no"
34312fi
ac1cb8d3
VS
34313rm -f conftest.err conftest.$ac_objext \
34314 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34315fi
34316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34317echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34318if test `eval echo '${'$as_ac_var'}'` = yes; then
34319 cat >>confdefs.h <<_ACEOF
34320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34321_ACEOF
34322
34323fi
34324done
34325
34326
34327 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34328echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34329 cat >conftest.$ac_ext <<_ACEOF
34330/* confdefs.h. */
34331_ACEOF
34332cat confdefs.h >>conftest.$ac_ext
34333cat >>conftest.$ac_ext <<_ACEOF
34334/* end confdefs.h. */
34335#include <wchar.h>
34336int
34337main ()
34338{
34339&_vsnwprintf;
34340 ;
34341 return 0;
34342}
34343_ACEOF
34344rm -f conftest.$ac_objext
34345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34346 (eval $ac_compile) 2>conftest.er1
a848cd7e 34347 ac_status=$?
ac1cb8d3
VS
34348 grep -v '^ *+' conftest.er1 >conftest.err
34349 rm -f conftest.er1
34350 cat conftest.err >&5
a848cd7e
SC
34351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34352 (exit $ac_status); } &&
d25774ab
JS
34353 { ac_try='test -z "$ac_cxx_werror_flag"
34354 || test ! -s conftest.err'
ac1cb8d3
VS
34355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34356 (eval $ac_try) 2>&5
34357 ac_status=$?
34358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359 (exit $ac_status); }; } &&
34360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34362 (eval $ac_try) 2>&5
34363 ac_status=$?
34364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34365 (exit $ac_status); }; }; then
34366 echo "$as_me:$LINENO: result: yes" >&5
34367echo "${ECHO_T}yes" >&6
34368 cat >>confdefs.h <<\_ACEOF
34369#define HAVE__VSNWPRINTF 1
34370_ACEOF
34371
34372else
34373 echo "$as_me: failed program was:" >&5
34374sed 's/^/| /' conftest.$ac_ext >&5
34375
34376echo "$as_me:$LINENO: result: no" >&5
34377echo "${ECHO_T}no" >&6
34378fi
ac1cb8d3 34379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34380fi
34381
6ebeb4c7
VZ
34382if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34383
34384for ac_func in fnmatch
34385do
34386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34387echo "$as_me:$LINENO: checking for $ac_func" >&5
34388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34389if eval "test \"\${$as_ac_var+set}\" = set"; then
34390 echo $ECHO_N "(cached) $ECHO_C" >&6
34391else
34392 cat >conftest.$ac_ext <<_ACEOF
34393/* confdefs.h. */
34394_ACEOF
34395cat confdefs.h >>conftest.$ac_ext
34396cat >>conftest.$ac_ext <<_ACEOF
34397/* end confdefs.h. */
34398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34400#define $ac_func innocuous_$ac_func
34401
34402/* System header to define __stub macros and hopefully few prototypes,
34403 which can conflict with char $ac_func (); below.
34404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34405 <limits.h> exists even on freestanding compilers. */
34406
34407#ifdef __STDC__
34408# include <limits.h>
34409#else
34410# include <assert.h>
34411#endif
34412
34413#undef $ac_func
34414
34415/* Override any gcc2 internal prototype to avoid an error. */
34416#ifdef __cplusplus
34417extern "C"
34418{
34419#endif
34420/* We use char because int might match the return type of a gcc2
34421 builtin and then its argument prototype would still apply. */
34422char $ac_func ();
34423/* The GNU C library defines this for functions which it implements
34424 to always fail with ENOSYS. Some functions are actually named
34425 something starting with __ and the normal name is an alias. */
34426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34427choke me
34428#else
34429char (*f) () = $ac_func;
34430#endif
34431#ifdef __cplusplus
34432}
34433#endif
34434
34435int
34436main ()
34437{
34438return f != $ac_func;
34439 ;
34440 return 0;
34441}
34442_ACEOF
34443rm -f conftest.$ac_objext conftest$ac_exeext
34444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34445 (eval $ac_link) 2>conftest.er1
34446 ac_status=$?
34447 grep -v '^ *+' conftest.er1 >conftest.err
34448 rm -f conftest.er1
34449 cat conftest.err >&5
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); } &&
d25774ab
JS
34452 { ac_try='test -z "$ac_cxx_werror_flag"
34453 || test ! -s conftest.err'
6ebeb4c7
VZ
34454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34455 (eval $ac_try) 2>&5
34456 ac_status=$?
34457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); }; } &&
34459 { ac_try='test -s conftest$ac_exeext'
34460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34461 (eval $ac_try) 2>&5
34462 ac_status=$?
34463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); }; }; then
34465 eval "$as_ac_var=yes"
34466else
34467 echo "$as_me: failed program was:" >&5
34468sed 's/^/| /' conftest.$ac_ext >&5
34469
34470eval "$as_ac_var=no"
34471fi
34472rm -f conftest.err conftest.$ac_objext \
34473 conftest$ac_exeext conftest.$ac_ext
34474fi
34475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34477if test `eval echo '${'$as_ac_var'}'` = yes; then
34478 cat >>confdefs.h <<_ACEOF
34479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34480_ACEOF
34481
34482fi
34483done
34484
34485fi
34486
34487if test "$wxUSE_FILE" = "yes"; then
34488
34489for ac_func in fsync
34490do
34491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34492echo "$as_me:$LINENO: checking for $ac_func" >&5
34493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34494if eval "test \"\${$as_ac_var+set}\" = set"; then
34495 echo $ECHO_N "(cached) $ECHO_C" >&6
34496else
34497 cat >conftest.$ac_ext <<_ACEOF
34498/* confdefs.h. */
34499_ACEOF
34500cat confdefs.h >>conftest.$ac_ext
34501cat >>conftest.$ac_ext <<_ACEOF
34502/* end confdefs.h. */
34503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34505#define $ac_func innocuous_$ac_func
34506
34507/* System header to define __stub macros and hopefully few prototypes,
34508 which can conflict with char $ac_func (); below.
34509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34510 <limits.h> exists even on freestanding compilers. */
34511
34512#ifdef __STDC__
34513# include <limits.h>
34514#else
34515# include <assert.h>
34516#endif
34517
34518#undef $ac_func
34519
34520/* Override any gcc2 internal prototype to avoid an error. */
34521#ifdef __cplusplus
34522extern "C"
34523{
34524#endif
34525/* We use char because int might match the return type of a gcc2
34526 builtin and then its argument prototype would still apply. */
34527char $ac_func ();
34528/* The GNU C library defines this for functions which it implements
34529 to always fail with ENOSYS. Some functions are actually named
34530 something starting with __ and the normal name is an alias. */
34531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34532choke me
34533#else
34534char (*f) () = $ac_func;
34535#endif
34536#ifdef __cplusplus
34537}
34538#endif
34539
34540int
34541main ()
34542{
34543return f != $ac_func;
34544 ;
34545 return 0;
34546}
34547_ACEOF
34548rm -f conftest.$ac_objext conftest$ac_exeext
34549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34550 (eval $ac_link) 2>conftest.er1
34551 ac_status=$?
34552 grep -v '^ *+' conftest.er1 >conftest.err
34553 rm -f conftest.er1
34554 cat conftest.err >&5
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); } &&
d25774ab
JS
34557 { ac_try='test -z "$ac_cxx_werror_flag"
34558 || test ! -s conftest.err'
6ebeb4c7
VZ
34559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34560 (eval $ac_try) 2>&5
34561 ac_status=$?
34562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34563 (exit $ac_status); }; } &&
34564 { ac_try='test -s conftest$ac_exeext'
34565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34566 (eval $ac_try) 2>&5
34567 ac_status=$?
34568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34569 (exit $ac_status); }; }; then
34570 eval "$as_ac_var=yes"
34571else
34572 echo "$as_me: failed program was:" >&5
34573sed 's/^/| /' conftest.$ac_ext >&5
34574
34575eval "$as_ac_var=no"
34576fi
34577rm -f conftest.err conftest.$ac_objext \
34578 conftest$ac_exeext conftest.$ac_ext
34579fi
34580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34581echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34582if test `eval echo '${'$as_ac_var'}'` = yes; then
34583 cat >>confdefs.h <<_ACEOF
34584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34585_ACEOF
34586
34587fi
34588done
34589
34590fi
a848cd7e
SC
34591
34592
34593if test "$TOOLKIT" != "MSW"; then
34594
34595
a848cd7e
SC
34596
34597
34598
34599# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34600if test "${with_libiconv_prefix+set}" = set; then
34601 withval="$with_libiconv_prefix"
34602
34603 for dir in `echo "$withval" | tr : ' '`; do
34604 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34605 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34606 done
34607
34608fi;
34609
34610 echo "$as_me:$LINENO: checking for iconv" >&5
34611echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34612if test "${am_cv_func_iconv+set}" = set; then
34613 echo $ECHO_N "(cached) $ECHO_C" >&6
34614else
34615
34616 am_cv_func_iconv="no, consider installing GNU libiconv"
34617 am_cv_lib_iconv=no
34618 cat >conftest.$ac_ext <<_ACEOF
34619/* confdefs.h. */
34620_ACEOF
34621cat confdefs.h >>conftest.$ac_ext
34622cat >>conftest.$ac_ext <<_ACEOF
34623/* end confdefs.h. */
34624#include <stdlib.h>
34625#include <iconv.h>
34626int
34627main ()
34628{
34629iconv_t cd = iconv_open("","");
34630 iconv(cd,NULL,NULL,NULL,NULL);
34631 iconv_close(cd);
34632 ;
34633 return 0;
34634}
34635_ACEOF
34636rm -f conftest.$ac_objext conftest$ac_exeext
34637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34638 (eval $ac_link) 2>conftest.er1
a848cd7e 34639 ac_status=$?
ac1cb8d3
VS
34640 grep -v '^ *+' conftest.er1 >conftest.err
34641 rm -f conftest.er1
34642 cat conftest.err >&5
a848cd7e
SC
34643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644 (exit $ac_status); } &&
d25774ab
JS
34645 { ac_try='test -z "$ac_cxx_werror_flag"
34646 || test ! -s conftest.err'
ac1cb8d3
VS
34647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34648 (eval $ac_try) 2>&5
34649 ac_status=$?
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); }; } &&
34652 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34654 (eval $ac_try) 2>&5
34655 ac_status=$?
34656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657 (exit $ac_status); }; }; then
34658 am_cv_func_iconv=yes
34659else
34660 echo "$as_me: failed program was:" >&5
34661sed 's/^/| /' conftest.$ac_ext >&5
34662
34663fi
ac1cb8d3
VS
34664rm -f conftest.err conftest.$ac_objext \
34665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34666 if test "$am_cv_func_iconv" != yes; then
34667 am_save_LIBS="$LIBS"
34668 LIBS="$LIBS -liconv"
34669 cat >conftest.$ac_ext <<_ACEOF
34670/* confdefs.h. */
34671_ACEOF
34672cat confdefs.h >>conftest.$ac_ext
34673cat >>conftest.$ac_ext <<_ACEOF
34674/* end confdefs.h. */
34675#include <stdlib.h>
34676#include <iconv.h>
34677int
34678main ()
34679{
34680iconv_t cd = iconv_open("","");
34681 iconv(cd,NULL,NULL,NULL,NULL);
34682 iconv_close(cd);
34683 ;
34684 return 0;
34685}
34686_ACEOF
34687rm -f conftest.$ac_objext conftest$ac_exeext
34688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34689 (eval $ac_link) 2>conftest.er1
a848cd7e 34690 ac_status=$?
ac1cb8d3
VS
34691 grep -v '^ *+' conftest.er1 >conftest.err
34692 rm -f conftest.er1
34693 cat conftest.err >&5
a848cd7e
SC
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); } &&
d25774ab
JS
34696 { ac_try='test -z "$ac_cxx_werror_flag"
34697 || test ! -s conftest.err'
ac1cb8d3
VS
34698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34699 (eval $ac_try) 2>&5
34700 ac_status=$?
34701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702 (exit $ac_status); }; } &&
34703 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34705 (eval $ac_try) 2>&5
34706 ac_status=$?
34707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34708 (exit $ac_status); }; }; then
34709 am_cv_lib_iconv=yes
34710 am_cv_func_iconv=yes
34711else
34712 echo "$as_me: failed program was:" >&5
34713sed 's/^/| /' conftest.$ac_ext >&5
34714
34715fi
ac1cb8d3
VS
34716rm -f conftest.err conftest.$ac_objext \
34717 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34718 LIBS="$am_save_LIBS"
34719 fi
34720
34721fi
34722echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34723echo "${ECHO_T}$am_cv_func_iconv" >&6
34724 if test "$am_cv_func_iconv" = yes; then
34725
34726cat >>confdefs.h <<\_ACEOF
34727#define HAVE_ICONV 1
34728_ACEOF
34729
34730 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34731echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34732if test "${wx_cv_func_iconv_const+set}" = set; then
34733 echo $ECHO_N "(cached) $ECHO_C" >&6
34734else
34735 cat >conftest.$ac_ext <<_ACEOF
34736/* confdefs.h. */
34737_ACEOF
34738cat confdefs.h >>conftest.$ac_ext
34739cat >>conftest.$ac_ext <<_ACEOF
34740/* end confdefs.h. */
34741
34742#include <stdlib.h>
34743#include <iconv.h>
34744extern
34745#ifdef __cplusplus
34746"C"
34747#endif
34748#if defined(__STDC__) || defined(__cplusplus)
34749size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34750#else
34751size_t iconv();
34752#endif
34753
34754int
34755main ()
34756{
34757
34758 ;
34759 return 0;
34760}
34761_ACEOF
34762rm -f conftest.$ac_objext
34763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34764 (eval $ac_compile) 2>conftest.er1
a848cd7e 34765 ac_status=$?
ac1cb8d3
VS
34766 grep -v '^ *+' conftest.er1 >conftest.err
34767 rm -f conftest.er1
34768 cat conftest.err >&5
a848cd7e
SC
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); } &&
d25774ab
JS
34771 { ac_try='test -z "$ac_cxx_werror_flag"
34772 || test ! -s conftest.err'
ac1cb8d3
VS
34773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34774 (eval $ac_try) 2>&5
34775 ac_status=$?
34776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777 (exit $ac_status); }; } &&
34778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34780 (eval $ac_try) 2>&5
34781 ac_status=$?
34782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34783 (exit $ac_status); }; }; then
34784 wx_cv_func_iconv_const="no"
34785else
34786 echo "$as_me: failed program was:" >&5
34787sed 's/^/| /' conftest.$ac_ext >&5
34788
34789wx_cv_func_iconv_const="yes"
34790
34791fi
ac1cb8d3 34792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34793
34794fi
34795echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34796echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34797
34798 iconv_const=
34799 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34800 iconv_const="const"
34801 fi
34802
34803
34804cat >>confdefs.h <<_ACEOF
34805#define ICONV_CONST $iconv_const
34806_ACEOF
34807
34808 fi
34809 LIBICONV=
34810 if test "$am_cv_lib_iconv" = yes; then
34811 LIBICONV="-liconv"
34812 fi
34813
34814
34815LIBS="$LIBICONV $LIBS"
a848cd7e
SC
34816
34817if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34818
34819for ac_func in sigaction
34820do
34821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34822echo "$as_me:$LINENO: checking for $ac_func" >&5
34823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34824if eval "test \"\${$as_ac_var+set}\" = set"; then
34825 echo $ECHO_N "(cached) $ECHO_C" >&6
34826else
34827 cat >conftest.$ac_ext <<_ACEOF
34828/* confdefs.h. */
34829_ACEOF
34830cat confdefs.h >>conftest.$ac_ext
34831cat >>conftest.$ac_ext <<_ACEOF
34832/* end confdefs.h. */
ac1cb8d3
VS
34833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34835#define $ac_func innocuous_$ac_func
34836
a848cd7e
SC
34837/* System header to define __stub macros and hopefully few prototypes,
34838 which can conflict with char $ac_func (); below.
34839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34840 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34841
a848cd7e
SC
34842#ifdef __STDC__
34843# include <limits.h>
34844#else
34845# include <assert.h>
34846#endif
ac1cb8d3
VS
34847
34848#undef $ac_func
34849
a848cd7e
SC
34850/* Override any gcc2 internal prototype to avoid an error. */
34851#ifdef __cplusplus
34852extern "C"
34853{
34854#endif
34855/* We use char because int might match the return type of a gcc2
34856 builtin and then its argument prototype would still apply. */
34857char $ac_func ();
34858/* The GNU C library defines this for functions which it implements
34859 to always fail with ENOSYS. Some functions are actually named
34860 something starting with __ and the normal name is an alias. */
34861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34862choke me
34863#else
34864char (*f) () = $ac_func;
34865#endif
34866#ifdef __cplusplus
34867}
34868#endif
34869
34870int
34871main ()
34872{
34873return f != $ac_func;
34874 ;
34875 return 0;
34876}
34877_ACEOF
34878rm -f conftest.$ac_objext conftest$ac_exeext
34879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34880 (eval $ac_link) 2>conftest.er1
a848cd7e 34881 ac_status=$?
ac1cb8d3
VS
34882 grep -v '^ *+' conftest.er1 >conftest.err
34883 rm -f conftest.er1
34884 cat conftest.err >&5
a848cd7e
SC
34885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886 (exit $ac_status); } &&
d25774ab
JS
34887 { ac_try='test -z "$ac_cxx_werror_flag"
34888 || test ! -s conftest.err'
ac1cb8d3
VS
34889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34890 (eval $ac_try) 2>&5
34891 ac_status=$?
34892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34893 (exit $ac_status); }; } &&
34894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34896 (eval $ac_try) 2>&5
34897 ac_status=$?
34898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34899 (exit $ac_status); }; }; then
34900 eval "$as_ac_var=yes"
34901else
34902 echo "$as_me: failed program was:" >&5
34903sed 's/^/| /' conftest.$ac_ext >&5
34904
34905eval "$as_ac_var=no"
34906fi
ac1cb8d3
VS
34907rm -f conftest.err conftest.$ac_objext \
34908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34909fi
34910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34911echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34912if test `eval echo '${'$as_ac_var'}'` = yes; then
34913 cat >>confdefs.h <<_ACEOF
34914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34915_ACEOF
34916
34917fi
34918done
34919
34920
34921 if test "$ac_cv_func_sigaction" = "no"; then
34922 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34923echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34924 wxUSE_ON_FATAL_EXCEPTION=no
34925 fi
34926
34927 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
34928 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34929echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34930if test "${wx_cv_type_sa_handler+set}" = set; then
34931 echo $ECHO_N "(cached) $ECHO_C" >&6
34932else
34933
34934 cat >conftest.$ac_ext <<_ACEOF
34935/* confdefs.h. */
34936_ACEOF
34937cat confdefs.h >>conftest.$ac_ext
34938cat >>conftest.$ac_ext <<_ACEOF
34939/* end confdefs.h. */
34940#include <signal.h>
34941int
34942main ()
34943{
34944
34945 extern void testSigHandler(int);
34946
34947 struct sigaction sa;
34948 sa.sa_handler = testSigHandler;
34949
34950 ;
34951 return 0;
34952}
34953_ACEOF
34954rm -f conftest.$ac_objext
34955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34956 (eval $ac_compile) 2>conftest.er1
a848cd7e 34957 ac_status=$?
ac1cb8d3
VS
34958 grep -v '^ *+' conftest.er1 >conftest.err
34959 rm -f conftest.er1
34960 cat conftest.err >&5
a848cd7e
SC
34961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962 (exit $ac_status); } &&
d25774ab
JS
34963 { ac_try='test -z "$ac_cxx_werror_flag"
34964 || test ! -s conftest.err'
ac1cb8d3
VS
34965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34966 (eval $ac_try) 2>&5
34967 ac_status=$?
34968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969 (exit $ac_status); }; } &&
34970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34972 (eval $ac_try) 2>&5
34973 ac_status=$?
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); }; }; then
34976
34977 wx_cv_type_sa_handler=int
34978
34979else
34980 echo "$as_me: failed program was:" >&5
34981sed 's/^/| /' conftest.$ac_ext >&5
34982
34983
34984 wx_cv_type_sa_handler=void
34985
34986fi
ac1cb8d3 34987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34988
34989fi
34990echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34991echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34992
a848cd7e
SC
34993 cat >>confdefs.h <<_ACEOF
34994#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34995_ACEOF
34996
34997 fi
34998fi
34999
eaff0f0d 35000if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
35001 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35002echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35003if test "${wx_cv_func_backtrace+set}" = set; then
35004 echo $ECHO_N "(cached) $ECHO_C" >&6
35005else
35006
35007 cat >conftest.$ac_ext <<_ACEOF
35008/* confdefs.h. */
35009_ACEOF
35010cat confdefs.h >>conftest.$ac_ext
35011cat >>conftest.$ac_ext <<_ACEOF
35012/* end confdefs.h. */
35013#include <execinfo.h>
35014int
35015main ()
35016{
35017
35018 void *trace[1];
35019 char **messages;
35020
35021 backtrace(trace, 1);
35022 messages = backtrace_symbols(trace, 1);
35023
35024 ;
35025 return 0;
35026}
35027_ACEOF
35028rm -f conftest.$ac_objext
35029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35030 (eval $ac_compile) 2>conftest.er1
35031 ac_status=$?
35032 grep -v '^ *+' conftest.er1 >conftest.err
35033 rm -f conftest.er1
35034 cat conftest.err >&5
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); } &&
d25774ab
JS
35037 { ac_try='test -z "$ac_cxx_werror_flag"
35038 || test ! -s conftest.err'
eaff0f0d
VZ
35039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35040 (eval $ac_try) 2>&5
35041 ac_status=$?
35042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043 (exit $ac_status); }; } &&
35044 { ac_try='test -s conftest.$ac_objext'
35045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35046 (eval $ac_try) 2>&5
35047 ac_status=$?
35048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35049 (exit $ac_status); }; }; then
35050 wx_cv_func_backtrace=yes
35051else
35052 echo "$as_me: failed program was:" >&5
35053sed 's/^/| /' conftest.$ac_ext >&5
35054
35055wx_cv_func_backtrace=no
35056
35057fi
35058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35059
35060
35061fi
35062echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35063echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35064
35065
35066 if test "$wx_cv_func_backtrace" = "no"; then
35067 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35068echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35069 wxUSE_STACKWALKER=no
35070 else
35071 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35072echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35073if test "${wx_cv_func_cxa_demangle+set}" = set; then
35074 echo $ECHO_N "(cached) $ECHO_C" >&6
35075else
35076
35077 cat >conftest.$ac_ext <<_ACEOF
35078/* confdefs.h. */
35079_ACEOF
35080cat confdefs.h >>conftest.$ac_ext
35081cat >>conftest.$ac_ext <<_ACEOF
35082/* end confdefs.h. */
35083#include <cxxabi.h>
35084int
35085main ()
35086{
35087
35088 int rc;
35089 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35090
35091 ;
35092 return 0;
35093}
35094_ACEOF
dfe0c803
JS
35095rm -f conftest.$ac_objext conftest$ac_exeext
35096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35097 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
35098 ac_status=$?
35099 grep -v '^ *+' conftest.er1 >conftest.err
35100 rm -f conftest.er1
35101 cat conftest.err >&5
35102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35103 (exit $ac_status); } &&
d25774ab
JS
35104 { ac_try='test -z "$ac_cxx_werror_flag"
35105 || test ! -s conftest.err'
eaff0f0d
VZ
35106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35107 (eval $ac_try) 2>&5
35108 ac_status=$?
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); }; } &&
dfe0c803 35111 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35114 ac_status=$?
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; }; then
35117 wx_cv_func_cxa_demangle=yes
35118else
35119 echo "$as_me: failed program was:" >&5
35120sed 's/^/| /' conftest.$ac_ext >&5
35121
35122wx_cv_func_cxa_demangle=no
35123
35124fi
dfe0c803
JS
35125rm -f conftest.err conftest.$ac_objext \
35126 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
35127
35128
35129fi
35130echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35131echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35132
35133 if test "$wx_cv_func_cxa_demangle" = "yes"; then
35134 cat >>confdefs.h <<\_ACEOF
35135#define HAVE_CXA_DEMANGLE 1
35136_ACEOF
35137
35138 fi
35139 fi
eaff0f0d
VZ
35140fi
35141
898beab1
DE
35142if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35143 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35144echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35145 wxUSE_STACKWALKER=no
35146fi
35147
35148
a848cd7e
SC
35149
35150
35151for ac_func in mkstemp mktemp
35152do
35153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35154echo "$as_me:$LINENO: checking for $ac_func" >&5
35155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35156if eval "test \"\${$as_ac_var+set}\" = set"; then
35157 echo $ECHO_N "(cached) $ECHO_C" >&6
35158else
35159 cat >conftest.$ac_ext <<_ACEOF
35160/* confdefs.h. */
35161_ACEOF
35162cat confdefs.h >>conftest.$ac_ext
35163cat >>conftest.$ac_ext <<_ACEOF
35164/* end confdefs.h. */
ac1cb8d3
VS
35165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35167#define $ac_func innocuous_$ac_func
35168
a848cd7e
SC
35169/* System header to define __stub macros and hopefully few prototypes,
35170 which can conflict with char $ac_func (); below.
35171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35172 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35173
a848cd7e
SC
35174#ifdef __STDC__
35175# include <limits.h>
35176#else
35177# include <assert.h>
35178#endif
ac1cb8d3
VS
35179
35180#undef $ac_func
35181
a848cd7e
SC
35182/* Override any gcc2 internal prototype to avoid an error. */
35183#ifdef __cplusplus
35184extern "C"
35185{
35186#endif
35187/* We use char because int might match the return type of a gcc2
35188 builtin and then its argument prototype would still apply. */
35189char $ac_func ();
35190/* The GNU C library defines this for functions which it implements
35191 to always fail with ENOSYS. Some functions are actually named
35192 something starting with __ and the normal name is an alias. */
35193#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35194choke me
35195#else
35196char (*f) () = $ac_func;
35197#endif
35198#ifdef __cplusplus
35199}
35200#endif
35201
35202int
35203main ()
35204{
35205return f != $ac_func;
35206 ;
35207 return 0;
35208}
35209_ACEOF
35210rm -f conftest.$ac_objext conftest$ac_exeext
35211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35212 (eval $ac_link) 2>conftest.er1
a848cd7e 35213 ac_status=$?
ac1cb8d3
VS
35214 grep -v '^ *+' conftest.er1 >conftest.err
35215 rm -f conftest.er1
35216 cat conftest.err >&5
a848cd7e
SC
35217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218 (exit $ac_status); } &&
d25774ab
JS
35219 { ac_try='test -z "$ac_cxx_werror_flag"
35220 || test ! -s conftest.err'
ac1cb8d3
VS
35221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35222 (eval $ac_try) 2>&5
35223 ac_status=$?
35224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35225 (exit $ac_status); }; } &&
35226 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35228 (eval $ac_try) 2>&5
35229 ac_status=$?
35230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231 (exit $ac_status); }; }; then
35232 eval "$as_ac_var=yes"
35233else
35234 echo "$as_me: failed program was:" >&5
35235sed 's/^/| /' conftest.$ac_ext >&5
35236
35237eval "$as_ac_var=no"
35238fi
ac1cb8d3
VS
35239rm -f conftest.err conftest.$ac_objext \
35240 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35241fi
35242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35244if test `eval echo '${'$as_ac_var'}'` = yes; then
35245 cat >>confdefs.h <<_ACEOF
35246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35247_ACEOF
35248 break
35249fi
35250done
35251
35252
35253echo "$as_me:$LINENO: checking for statfs" >&5
35254echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35255if test "${wx_cv_func_statfs+set}" = set; then
35256 echo $ECHO_N "(cached) $ECHO_C" >&6
35257else
35258 cat >conftest.$ac_ext <<_ACEOF
35259/* confdefs.h. */
35260_ACEOF
35261cat confdefs.h >>conftest.$ac_ext
35262cat >>conftest.$ac_ext <<_ACEOF
35263/* end confdefs.h. */
35264
35265 #if defined(__BSD__)
84ae7ca4
VZ
35266 #include <sys/param.h>
35267 #include <sys/mount.h>
a848cd7e 35268 #else
84ae7ca4 35269 #include <sys/vfs.h>
a848cd7e
SC
35270 #endif
35271
35272int
35273main ()
35274{
35275
35276 long l;
35277 struct statfs fs;
35278 statfs("/", &fs);
35279 l = fs.f_bsize;
35280 l += fs.f_blocks;
35281 l += fs.f_bavail;
35282
35283 ;
35284 return 0;
35285}
35286_ACEOF
35287rm -f conftest.$ac_objext
35288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35289 (eval $ac_compile) 2>conftest.er1
a848cd7e 35290 ac_status=$?
ac1cb8d3
VS
35291 grep -v '^ *+' conftest.er1 >conftest.err
35292 rm -f conftest.er1
35293 cat conftest.err >&5
a848cd7e
SC
35294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295 (exit $ac_status); } &&
d25774ab
JS
35296 { ac_try='test -z "$ac_cxx_werror_flag"
35297 || test ! -s conftest.err'
ac1cb8d3
VS
35298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299 (eval $ac_try) 2>&5
35300 ac_status=$?
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); }; } &&
35303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35305 (eval $ac_try) 2>&5
35306 ac_status=$?
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); }; }; then
84ae7ca4 35309 wx_cv_func_statfs=yes
a848cd7e
SC
35310else
35311 echo "$as_me: failed program was:" >&5
35312sed 's/^/| /' conftest.$ac_ext >&5
35313
84ae7ca4 35314wx_cv_func_statfs=no
a848cd7e
SC
35315
35316fi
ac1cb8d3 35317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35318
35319fi
35320echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35321echo "${ECHO_T}$wx_cv_func_statfs" >&6
35322
35323if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 35324 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
35325echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35326if test "${wx_cv_func_statfs_decl+set}" = set; then
35327 echo $ECHO_N "(cached) $ECHO_C" >&6
35328else
0683aca6
VZ
35329 cat >conftest.$ac_ext <<_ACEOF
35330/* confdefs.h. */
35331_ACEOF
35332cat confdefs.h >>conftest.$ac_ext
35333cat >>conftest.$ac_ext <<_ACEOF
35334/* end confdefs.h. */
84ae7ca4 35335
0683aca6
VZ
35336 #if defined(__BSD__)
35337 #include <sys/param.h>
35338 #include <sys/mount.h>
35339 #else
35340 #include <sys/vfs.h>
35341 #endif
35342
35343int
35344main ()
35345{
35346
35347 struct statfs fs;
35348 statfs("", &fs);
35349
35350 ;
35351 return 0;
35352}
35353_ACEOF
35354rm -f conftest.$ac_objext
35355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35356 (eval $ac_compile) 2>conftest.er1
35357 ac_status=$?
35358 grep -v '^ *+' conftest.er1 >conftest.err
35359 rm -f conftest.er1
35360 cat conftest.err >&5
35361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362 (exit $ac_status); } &&
d25774ab
JS
35363 { ac_try='test -z "$ac_cxx_werror_flag"
35364 || test ! -s conftest.err'
0683aca6
VZ
35365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35366 (eval $ac_try) 2>&5
35367 ac_status=$?
35368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35369 (exit $ac_status); }; } &&
35370 { ac_try='test -s conftest.$ac_objext'
35371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35372 (eval $ac_try) 2>&5
35373 ac_status=$?
35374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35375 (exit $ac_status); }; }; then
35376 wx_cv_func_statfs_decl=yes
35377else
35378 echo "$as_me: failed program was:" >&5
35379sed 's/^/| /' conftest.$ac_ext >&5
35380
35381wx_cv_func_statfs_decl=no
35382
35383fi
35384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
35385
35386fi
35387echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35388echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
35389
35390 if test "$wx_cv_func_statfs_decl" = "yes"; then
35391 cat >>confdefs.h <<\_ACEOF
35392#define HAVE_STATFS_DECL 1
35393_ACEOF
35394
35395 fi
35396
a848cd7e
SC
35397 wx_cv_type_statvfs_t="struct statfs"
35398 cat >>confdefs.h <<\_ACEOF
35399#define HAVE_STATFS 1
35400_ACEOF
35401
35402else
35403 echo "$as_me:$LINENO: checking for statvfs" >&5
35404echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35405if test "${wx_cv_func_statvfs+set}" = set; then
35406 echo $ECHO_N "(cached) $ECHO_C" >&6
35407else
35408 cat >conftest.$ac_ext <<_ACEOF
35409/* confdefs.h. */
35410_ACEOF
35411cat confdefs.h >>conftest.$ac_ext
35412cat >>conftest.$ac_ext <<_ACEOF
35413/* end confdefs.h. */
35414
35415 #include <stddef.h>
35416 #include <sys/statvfs.h>
35417
35418int
35419main ()
35420{
35421
35422 statvfs("/", NULL);
35423
35424 ;
35425 return 0;
35426}
35427_ACEOF
35428rm -f conftest.$ac_objext
35429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35430 (eval $ac_compile) 2>conftest.er1
a848cd7e 35431 ac_status=$?
ac1cb8d3
VS
35432 grep -v '^ *+' conftest.er1 >conftest.err
35433 rm -f conftest.er1
35434 cat conftest.err >&5
a848cd7e
SC
35435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); } &&
d25774ab
JS
35437 { ac_try='test -z "$ac_cxx_werror_flag"
35438 || test ! -s conftest.err'
ac1cb8d3
VS
35439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35440 (eval $ac_try) 2>&5
35441 ac_status=$?
35442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443 (exit $ac_status); }; } &&
35444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35446 (eval $ac_try) 2>&5
35447 ac_status=$?
35448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449 (exit $ac_status); }; }; then
35450 wx_cv_func_statvfs=yes
35451else
35452 echo "$as_me: failed program was:" >&5
35453sed 's/^/| /' conftest.$ac_ext >&5
35454
35455wx_cv_func_statvfs=no
35456
35457fi
ac1cb8d3 35458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35459
35460fi
35461echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35462echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35463
35464 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 35465 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
35466echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35467if test "${wx_cv_type_statvfs_t+set}" = set; then
35468 echo $ECHO_N "(cached) $ECHO_C" >&6
35469else
35470 cat >conftest.$ac_ext <<_ACEOF
35471/* confdefs.h. */
35472_ACEOF
35473cat confdefs.h >>conftest.$ac_ext
35474cat >>conftest.$ac_ext <<_ACEOF
35475/* end confdefs.h. */
35476
35477 #include <sys/statvfs.h>
35478
35479int
35480main ()
35481{
35482
35483 long l;
35484 statvfs_t fs;
35485 statvfs("/", &fs);
35486 l = fs.f_bsize;
35487 l += fs.f_blocks;
35488 l += fs.f_bavail;
35489
35490 ;
35491 return 0;
35492}
35493_ACEOF
35494rm -f conftest.$ac_objext
35495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35496 (eval $ac_compile) 2>conftest.er1
a848cd7e 35497 ac_status=$?
ac1cb8d3
VS
35498 grep -v '^ *+' conftest.er1 >conftest.err
35499 rm -f conftest.er1
35500 cat conftest.err >&5
a848cd7e
SC
35501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502 (exit $ac_status); } &&
d25774ab
JS
35503 { ac_try='test -z "$ac_cxx_werror_flag"
35504 || test ! -s conftest.err'
ac1cb8d3
VS
35505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35506 (eval $ac_try) 2>&5
35507 ac_status=$?
35508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509 (exit $ac_status); }; } &&
35510 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35512 (eval $ac_try) 2>&5
35513 ac_status=$?
35514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35515 (exit $ac_status); }; }; then
35516 wx_cv_type_statvfs_t=statvfs_t
35517else
35518 echo "$as_me: failed program was:" >&5
35519sed 's/^/| /' conftest.$ac_ext >&5
35520
35521
35522 cat >conftest.$ac_ext <<_ACEOF
35523/* confdefs.h. */
35524_ACEOF
35525cat confdefs.h >>conftest.$ac_ext
35526cat >>conftest.$ac_ext <<_ACEOF
35527/* end confdefs.h. */
35528
35529 #include <sys/statvfs.h>
35530
35531int
35532main ()
35533{
35534
35535 long l;
35536 struct statvfs fs;
35537 statvfs("/", &fs);
35538 l = fs.f_bsize;
35539 l += fs.f_blocks;
35540 l += fs.f_bavail;
35541
35542 ;
35543 return 0;
35544}
35545_ACEOF
35546rm -f conftest.$ac_objext
35547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35548 (eval $ac_compile) 2>conftest.er1
a848cd7e 35549 ac_status=$?
ac1cb8d3
VS
35550 grep -v '^ *+' conftest.er1 >conftest.err
35551 rm -f conftest.er1
35552 cat conftest.err >&5
a848cd7e
SC
35553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554 (exit $ac_status); } &&
d25774ab
JS
35555 { ac_try='test -z "$ac_cxx_werror_flag"
35556 || test ! -s conftest.err'
ac1cb8d3
VS
35557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35558 (eval $ac_try) 2>&5
35559 ac_status=$?
35560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561 (exit $ac_status); }; } &&
35562 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35564 (eval $ac_try) 2>&5
35565 ac_status=$?
35566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567 (exit $ac_status); }; }; then
35568 wx_cv_type_statvfs_t="struct statvfs"
35569else
35570 echo "$as_me: failed program was:" >&5
35571sed 's/^/| /' conftest.$ac_ext >&5
35572
35573wx_cv_type_statvfs_t="unknown"
35574
35575fi
ac1cb8d3 35576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35577
35578
35579fi
ac1cb8d3 35580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35581
35582fi
35583echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35584echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35585
a848cd7e
SC
35586 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35587 cat >>confdefs.h <<\_ACEOF
35588#define HAVE_STATVFS 1
35589_ACEOF
35590
35591 fi
35592 else
35593 wx_cv_type_statvfs_t="unknown"
35594 fi
35595fi
35596
35597if test "$wx_cv_type_statvfs_t" != "unknown"; then
35598 cat >>confdefs.h <<_ACEOF
35599#define WX_STATFS_T $wx_cv_type_statvfs_t
35600_ACEOF
35601
35602else
35603 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35604echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35605fi
35606
35607if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35608
35609
35610for ac_func in fcntl flock
35611do
35612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35613echo "$as_me:$LINENO: checking for $ac_func" >&5
35614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35615if eval "test \"\${$as_ac_var+set}\" = set"; then
35616 echo $ECHO_N "(cached) $ECHO_C" >&6
35617else
35618 cat >conftest.$ac_ext <<_ACEOF
35619/* confdefs.h. */
35620_ACEOF
35621cat confdefs.h >>conftest.$ac_ext
35622cat >>conftest.$ac_ext <<_ACEOF
35623/* end confdefs.h. */
ac1cb8d3
VS
35624/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35626#define $ac_func innocuous_$ac_func
35627
a848cd7e
SC
35628/* System header to define __stub macros and hopefully few prototypes,
35629 which can conflict with char $ac_func (); below.
35630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35631 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35632
a848cd7e
SC
35633#ifdef __STDC__
35634# include <limits.h>
35635#else
35636# include <assert.h>
35637#endif
ac1cb8d3
VS
35638
35639#undef $ac_func
35640
a848cd7e
SC
35641/* Override any gcc2 internal prototype to avoid an error. */
35642#ifdef __cplusplus
35643extern "C"
35644{
35645#endif
35646/* We use char because int might match the return type of a gcc2
35647 builtin and then its argument prototype would still apply. */
35648char $ac_func ();
35649/* The GNU C library defines this for functions which it implements
35650 to always fail with ENOSYS. Some functions are actually named
35651 something starting with __ and the normal name is an alias. */
35652#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35653choke me
35654#else
35655char (*f) () = $ac_func;
35656#endif
35657#ifdef __cplusplus
35658}
35659#endif
35660
35661int
35662main ()
35663{
35664return f != $ac_func;
35665 ;
35666 return 0;
35667}
35668_ACEOF
35669rm -f conftest.$ac_objext conftest$ac_exeext
35670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35671 (eval $ac_link) 2>conftest.er1
a848cd7e 35672 ac_status=$?
ac1cb8d3
VS
35673 grep -v '^ *+' conftest.er1 >conftest.err
35674 rm -f conftest.er1
35675 cat conftest.err >&5
a848cd7e
SC
35676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35677 (exit $ac_status); } &&
d25774ab
JS
35678 { ac_try='test -z "$ac_cxx_werror_flag"
35679 || test ! -s conftest.err'
ac1cb8d3
VS
35680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35681 (eval $ac_try) 2>&5
35682 ac_status=$?
35683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684 (exit $ac_status); }; } &&
35685 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35687 (eval $ac_try) 2>&5
35688 ac_status=$?
35689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690 (exit $ac_status); }; }; then
35691 eval "$as_ac_var=yes"
35692else
35693 echo "$as_me: failed program was:" >&5
35694sed 's/^/| /' conftest.$ac_ext >&5
35695
35696eval "$as_ac_var=no"
35697fi
ac1cb8d3
VS
35698rm -f conftest.err conftest.$ac_objext \
35699 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35700fi
35701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35702echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35703if test `eval echo '${'$as_ac_var'}'` = yes; then
35704 cat >>confdefs.h <<_ACEOF
35705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35706_ACEOF
35707 break
35708fi
35709done
35710
35711
35712 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35713 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35714echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35715 wxUSE_SNGLINST_CHECKER=no
35716 fi
35717fi
35718
35719
35720for ac_func in timegm
35721do
35722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35723echo "$as_me:$LINENO: checking for $ac_func" >&5
35724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35725if eval "test \"\${$as_ac_var+set}\" = set"; then
35726 echo $ECHO_N "(cached) $ECHO_C" >&6
35727else
35728 cat >conftest.$ac_ext <<_ACEOF
35729/* confdefs.h. */
35730_ACEOF
35731cat confdefs.h >>conftest.$ac_ext
35732cat >>conftest.$ac_ext <<_ACEOF
35733/* end confdefs.h. */
ac1cb8d3
VS
35734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35736#define $ac_func innocuous_$ac_func
35737
a848cd7e
SC
35738/* System header to define __stub macros and hopefully few prototypes,
35739 which can conflict with char $ac_func (); below.
35740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35741 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35742
a848cd7e
SC
35743#ifdef __STDC__
35744# include <limits.h>
35745#else
35746# include <assert.h>
35747#endif
ac1cb8d3
VS
35748
35749#undef $ac_func
35750
a848cd7e
SC
35751/* Override any gcc2 internal prototype to avoid an error. */
35752#ifdef __cplusplus
35753extern "C"
35754{
35755#endif
35756/* We use char because int might match the return type of a gcc2
35757 builtin and then its argument prototype would still apply. */
35758char $ac_func ();
35759/* The GNU C library defines this for functions which it implements
35760 to always fail with ENOSYS. Some functions are actually named
35761 something starting with __ and the normal name is an alias. */
35762#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35763choke me
35764#else
35765char (*f) () = $ac_func;
35766#endif
35767#ifdef __cplusplus
35768}
35769#endif
35770
35771int
35772main ()
35773{
35774return f != $ac_func;
35775 ;
35776 return 0;
35777}
35778_ACEOF
35779rm -f conftest.$ac_objext conftest$ac_exeext
35780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35781 (eval $ac_link) 2>conftest.er1
a848cd7e 35782 ac_status=$?
ac1cb8d3
VS
35783 grep -v '^ *+' conftest.er1 >conftest.err
35784 rm -f conftest.er1
35785 cat conftest.err >&5
a848cd7e
SC
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); } &&
d25774ab
JS
35788 { ac_try='test -z "$ac_cxx_werror_flag"
35789 || test ! -s conftest.err'
ac1cb8d3
VS
35790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35791 (eval $ac_try) 2>&5
35792 ac_status=$?
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); }; } &&
35795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35797 (eval $ac_try) 2>&5
35798 ac_status=$?
35799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800 (exit $ac_status); }; }; then
35801 eval "$as_ac_var=yes"
35802else
35803 echo "$as_me: failed program was:" >&5
35804sed 's/^/| /' conftest.$ac_ext >&5
35805
35806eval "$as_ac_var=no"
35807fi
ac1cb8d3
VS
35808rm -f conftest.err conftest.$ac_objext \
35809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35810fi
35811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35812echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35813if test `eval echo '${'$as_ac_var'}'` = yes; then
35814 cat >>confdefs.h <<_ACEOF
35815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35816_ACEOF
35817
35818fi
35819done
35820
35821
35822
35823
35824for ac_func in putenv setenv
35825do
35826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35827echo "$as_me:$LINENO: checking for $ac_func" >&5
35828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35829if eval "test \"\${$as_ac_var+set}\" = set"; then
35830 echo $ECHO_N "(cached) $ECHO_C" >&6
35831else
35832 cat >conftest.$ac_ext <<_ACEOF
35833/* confdefs.h. */
35834_ACEOF
35835cat confdefs.h >>conftest.$ac_ext
35836cat >>conftest.$ac_ext <<_ACEOF
35837/* end confdefs.h. */
ac1cb8d3
VS
35838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35840#define $ac_func innocuous_$ac_func
35841
a848cd7e
SC
35842/* System header to define __stub macros and hopefully few prototypes,
35843 which can conflict with char $ac_func (); below.
35844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35845 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35846
a848cd7e
SC
35847#ifdef __STDC__
35848# include <limits.h>
35849#else
35850# include <assert.h>
35851#endif
ac1cb8d3
VS
35852
35853#undef $ac_func
35854
a848cd7e
SC
35855/* Override any gcc2 internal prototype to avoid an error. */
35856#ifdef __cplusplus
35857extern "C"
35858{
35859#endif
35860/* We use char because int might match the return type of a gcc2
35861 builtin and then its argument prototype would still apply. */
35862char $ac_func ();
35863/* The GNU C library defines this for functions which it implements
35864 to always fail with ENOSYS. Some functions are actually named
35865 something starting with __ and the normal name is an alias. */
35866#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35867choke me
35868#else
35869char (*f) () = $ac_func;
35870#endif
35871#ifdef __cplusplus
35872}
35873#endif
35874
35875int
35876main ()
35877{
35878return f != $ac_func;
35879 ;
35880 return 0;
35881}
35882_ACEOF
35883rm -f conftest.$ac_objext conftest$ac_exeext
35884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35885 (eval $ac_link) 2>conftest.er1
a848cd7e 35886 ac_status=$?
ac1cb8d3
VS
35887 grep -v '^ *+' conftest.er1 >conftest.err
35888 rm -f conftest.er1
35889 cat conftest.err >&5
a848cd7e
SC
35890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891 (exit $ac_status); } &&
d25774ab
JS
35892 { ac_try='test -z "$ac_cxx_werror_flag"
35893 || test ! -s conftest.err'
ac1cb8d3
VS
35894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35895 (eval $ac_try) 2>&5
35896 ac_status=$?
35897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); }; } &&
35899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35901 (eval $ac_try) 2>&5
35902 ac_status=$?
35903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904 (exit $ac_status); }; }; then
35905 eval "$as_ac_var=yes"
35906else
35907 echo "$as_me: failed program was:" >&5
35908sed 's/^/| /' conftest.$ac_ext >&5
35909
35910eval "$as_ac_var=no"
35911fi
ac1cb8d3
VS
35912rm -f conftest.err conftest.$ac_objext \
35913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35914fi
35915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35917if test `eval echo '${'$as_ac_var'}'` = yes; then
35918 cat >>confdefs.h <<_ACEOF
35919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35920_ACEOF
35921 break
35922fi
35923done
35924
35925
35926HAVE_SOME_SLEEP_FUNC=0
35927if test "$USE_BEOS" = 1; then
35928 cat >>confdefs.h <<\_ACEOF
35929#define HAVE_SLEEP 1
35930_ACEOF
35931
35932 HAVE_SOME_SLEEP_FUNC=1
35933fi
35934
35935if test "$USE_DARWIN" = 1; then
35936 cat >>confdefs.h <<\_ACEOF
35937#define HAVE_USLEEP 1
35938_ACEOF
35939
35940 HAVE_SOME_SLEEP_FUNC=1
35941fi
35942
35943if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35944 POSIX4_LINK=
35945
35946for ac_func in nanosleep
35947do
35948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35949echo "$as_me:$LINENO: checking for $ac_func" >&5
35950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35951if eval "test \"\${$as_ac_var+set}\" = set"; then
35952 echo $ECHO_N "(cached) $ECHO_C" >&6
35953else
35954 cat >conftest.$ac_ext <<_ACEOF
35955/* confdefs.h. */
35956_ACEOF
35957cat confdefs.h >>conftest.$ac_ext
35958cat >>conftest.$ac_ext <<_ACEOF
35959/* end confdefs.h. */
ac1cb8d3
VS
35960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35962#define $ac_func innocuous_$ac_func
35963
a848cd7e
SC
35964/* System header to define __stub macros and hopefully few prototypes,
35965 which can conflict with char $ac_func (); below.
35966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35967 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35968
a848cd7e
SC
35969#ifdef __STDC__
35970# include <limits.h>
35971#else
35972# include <assert.h>
35973#endif
ac1cb8d3
VS
35974
35975#undef $ac_func
35976
a848cd7e
SC
35977/* Override any gcc2 internal prototype to avoid an error. */
35978#ifdef __cplusplus
35979extern "C"
35980{
35981#endif
35982/* We use char because int might match the return type of a gcc2
35983 builtin and then its argument prototype would still apply. */
35984char $ac_func ();
35985/* The GNU C library defines this for functions which it implements
35986 to always fail with ENOSYS. Some functions are actually named
35987 something starting with __ and the normal name is an alias. */
35988#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35989choke me
35990#else
35991char (*f) () = $ac_func;
35992#endif
35993#ifdef __cplusplus
35994}
35995#endif
35996
35997int
35998main ()
35999{
36000return f != $ac_func;
36001 ;
36002 return 0;
36003}
36004_ACEOF
36005rm -f conftest.$ac_objext conftest$ac_exeext
36006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36007 (eval $ac_link) 2>conftest.er1
a848cd7e 36008 ac_status=$?
ac1cb8d3
VS
36009 grep -v '^ *+' conftest.er1 >conftest.err
36010 rm -f conftest.er1
36011 cat conftest.err >&5
a848cd7e
SC
36012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); } &&
d25774ab
JS
36014 { ac_try='test -z "$ac_cxx_werror_flag"
36015 || test ! -s conftest.err'
ac1cb8d3
VS
36016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36017 (eval $ac_try) 2>&5
36018 ac_status=$?
36019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020 (exit $ac_status); }; } &&
36021 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023 (eval $ac_try) 2>&5
36024 ac_status=$?
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); }; }; then
36027 eval "$as_ac_var=yes"
36028else
36029 echo "$as_me: failed program was:" >&5
36030sed 's/^/| /' conftest.$ac_ext >&5
36031
36032eval "$as_ac_var=no"
36033fi
ac1cb8d3
VS
36034rm -f conftest.err conftest.$ac_objext \
36035 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36036fi
36037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36038echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36039if test `eval echo '${'$as_ac_var'}'` = yes; then
36040 cat >>confdefs.h <<_ACEOF
36041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36042_ACEOF
36043 cat >>confdefs.h <<\_ACEOF
36044#define HAVE_NANOSLEEP 1
36045_ACEOF
36046
36047else
36048
36049 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36050echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36051if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36052 echo $ECHO_N "(cached) $ECHO_C" >&6
36053else
36054 ac_check_lib_save_LIBS=$LIBS
36055LIBS="-lposix4 $LIBS"
36056cat >conftest.$ac_ext <<_ACEOF
36057/* confdefs.h. */
36058_ACEOF
36059cat confdefs.h >>conftest.$ac_ext
36060cat >>conftest.$ac_ext <<_ACEOF
36061/* end confdefs.h. */
36062
36063/* Override any gcc2 internal prototype to avoid an error. */
36064#ifdef __cplusplus
36065extern "C"
36066#endif
36067/* We use char because int might match the return type of a gcc2
36068 builtin and then its argument prototype would still apply. */
36069char nanosleep ();
36070int
36071main ()
36072{
36073nanosleep ();
36074 ;
36075 return 0;
36076}
36077_ACEOF
36078rm -f conftest.$ac_objext conftest$ac_exeext
36079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36080 (eval $ac_link) 2>conftest.er1
a848cd7e 36081 ac_status=$?
ac1cb8d3
VS
36082 grep -v '^ *+' conftest.er1 >conftest.err
36083 rm -f conftest.er1
36084 cat conftest.err >&5
a848cd7e
SC
36085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36086 (exit $ac_status); } &&
d25774ab
JS
36087 { ac_try='test -z "$ac_cxx_werror_flag"
36088 || test ! -s conftest.err'
ac1cb8d3
VS
36089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36090 (eval $ac_try) 2>&5
36091 ac_status=$?
36092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093 (exit $ac_status); }; } &&
36094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36096 (eval $ac_try) 2>&5
36097 ac_status=$?
36098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099 (exit $ac_status); }; }; then
36100 ac_cv_lib_posix4_nanosleep=yes
36101else
36102 echo "$as_me: failed program was:" >&5
36103sed 's/^/| /' conftest.$ac_ext >&5
36104
36105ac_cv_lib_posix4_nanosleep=no
36106fi
ac1cb8d3
VS
36107rm -f conftest.err conftest.$ac_objext \
36108 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36109LIBS=$ac_check_lib_save_LIBS
36110fi
36111echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36112echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36113if test $ac_cv_lib_posix4_nanosleep = yes; then
36114
36115 cat >>confdefs.h <<\_ACEOF
36116#define HAVE_NANOSLEEP 1
36117_ACEOF
36118
36119 POSIX4_LINK=" -lposix4"
36120
36121else
36122
36123
36124for ac_func in usleep
36125do
36126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36127echo "$as_me:$LINENO: checking for $ac_func" >&5
36128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36129if eval "test \"\${$as_ac_var+set}\" = set"; then
36130 echo $ECHO_N "(cached) $ECHO_C" >&6
36131else
36132 cat >conftest.$ac_ext <<_ACEOF
36133/* confdefs.h. */
36134_ACEOF
36135cat confdefs.h >>conftest.$ac_ext
36136cat >>conftest.$ac_ext <<_ACEOF
36137/* end confdefs.h. */
ac1cb8d3
VS
36138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36140#define $ac_func innocuous_$ac_func
36141
a848cd7e
SC
36142/* System header to define __stub macros and hopefully few prototypes,
36143 which can conflict with char $ac_func (); below.
36144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36145 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36146
a848cd7e
SC
36147#ifdef __STDC__
36148# include <limits.h>
36149#else
36150# include <assert.h>
36151#endif
ac1cb8d3
VS
36152
36153#undef $ac_func
36154
a848cd7e
SC
36155/* Override any gcc2 internal prototype to avoid an error. */
36156#ifdef __cplusplus
36157extern "C"
36158{
36159#endif
36160/* We use char because int might match the return type of a gcc2
36161 builtin and then its argument prototype would still apply. */
36162char $ac_func ();
36163/* The GNU C library defines this for functions which it implements
36164 to always fail with ENOSYS. Some functions are actually named
36165 something starting with __ and the normal name is an alias. */
36166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36167choke me
36168#else
36169char (*f) () = $ac_func;
36170#endif
36171#ifdef __cplusplus
36172}
36173#endif
36174
36175int
36176main ()
36177{
36178return f != $ac_func;
36179 ;
36180 return 0;
36181}
36182_ACEOF
36183rm -f conftest.$ac_objext conftest$ac_exeext
36184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36185 (eval $ac_link) 2>conftest.er1
a848cd7e 36186 ac_status=$?
ac1cb8d3
VS
36187 grep -v '^ *+' conftest.er1 >conftest.err
36188 rm -f conftest.er1
36189 cat conftest.err >&5
a848cd7e
SC
36190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36191 (exit $ac_status); } &&
d25774ab
JS
36192 { ac_try='test -z "$ac_cxx_werror_flag"
36193 || test ! -s conftest.err'
ac1cb8d3
VS
36194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36195 (eval $ac_try) 2>&5
36196 ac_status=$?
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); }; } &&
36199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36201 (eval $ac_try) 2>&5
36202 ac_status=$?
36203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36204 (exit $ac_status); }; }; then
36205 eval "$as_ac_var=yes"
36206else
36207 echo "$as_me: failed program was:" >&5
36208sed 's/^/| /' conftest.$ac_ext >&5
36209
36210eval "$as_ac_var=no"
36211fi
ac1cb8d3
VS
36212rm -f conftest.err conftest.$ac_objext \
36213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36214fi
36215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36216echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36217if test `eval echo '${'$as_ac_var'}'` = yes; then
36218 cat >>confdefs.h <<_ACEOF
36219#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36220_ACEOF
36221 cat >>confdefs.h <<\_ACEOF
36222#define HAVE_USLEEP 1
36223_ACEOF
36224
36225else
36226 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36227echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36228
36229fi
36230done
36231
36232
36233
36234fi
36235
36236
36237
36238fi
36239done
36240
36241fi
36242
36243
36244
36245for ac_func in uname gethostname
36246do
36247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36248echo "$as_me:$LINENO: checking for $ac_func" >&5
36249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36250if eval "test \"\${$as_ac_var+set}\" = set"; then
36251 echo $ECHO_N "(cached) $ECHO_C" >&6
36252else
36253 cat >conftest.$ac_ext <<_ACEOF
36254/* confdefs.h. */
36255_ACEOF
36256cat confdefs.h >>conftest.$ac_ext
36257cat >>conftest.$ac_ext <<_ACEOF
36258/* end confdefs.h. */
ac1cb8d3
VS
36259/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36261#define $ac_func innocuous_$ac_func
36262
a848cd7e
SC
36263/* System header to define __stub macros and hopefully few prototypes,
36264 which can conflict with char $ac_func (); below.
36265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36266 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36267
a848cd7e
SC
36268#ifdef __STDC__
36269# include <limits.h>
36270#else
36271# include <assert.h>
36272#endif
ac1cb8d3
VS
36273
36274#undef $ac_func
36275
a848cd7e
SC
36276/* Override any gcc2 internal prototype to avoid an error. */
36277#ifdef __cplusplus
36278extern "C"
36279{
36280#endif
36281/* We use char because int might match the return type of a gcc2
36282 builtin and then its argument prototype would still apply. */
36283char $ac_func ();
36284/* The GNU C library defines this for functions which it implements
36285 to always fail with ENOSYS. Some functions are actually named
36286 something starting with __ and the normal name is an alias. */
36287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36288choke me
36289#else
36290char (*f) () = $ac_func;
36291#endif
36292#ifdef __cplusplus
36293}
36294#endif
36295
36296int
36297main ()
36298{
36299return f != $ac_func;
36300 ;
36301 return 0;
36302}
36303_ACEOF
36304rm -f conftest.$ac_objext conftest$ac_exeext
36305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36306 (eval $ac_link) 2>conftest.er1
a848cd7e 36307 ac_status=$?
ac1cb8d3
VS
36308 grep -v '^ *+' conftest.er1 >conftest.err
36309 rm -f conftest.er1
36310 cat conftest.err >&5
a848cd7e
SC
36311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312 (exit $ac_status); } &&
d25774ab
JS
36313 { ac_try='test -z "$ac_cxx_werror_flag"
36314 || test ! -s conftest.err'
ac1cb8d3
VS
36315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36316 (eval $ac_try) 2>&5
36317 ac_status=$?
36318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36319 (exit $ac_status); }; } &&
36320 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36322 (eval $ac_try) 2>&5
36323 ac_status=$?
36324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36325 (exit $ac_status); }; }; then
36326 eval "$as_ac_var=yes"
36327else
36328 echo "$as_me: failed program was:" >&5
36329sed 's/^/| /' conftest.$ac_ext >&5
36330
36331eval "$as_ac_var=no"
36332fi
ac1cb8d3
VS
36333rm -f conftest.err conftest.$ac_objext \
36334 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36335fi
36336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36337echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36338if test `eval echo '${'$as_ac_var'}'` = yes; then
36339 cat >>confdefs.h <<_ACEOF
36340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36341_ACEOF
36342 break
36343fi
36344done
36345
36346
a848cd7e
SC
36347
36348for ac_func in strtok_r
36349do
36350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36351echo "$as_me:$LINENO: checking for $ac_func" >&5
36352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36353if eval "test \"\${$as_ac_var+set}\" = set"; then
36354 echo $ECHO_N "(cached) $ECHO_C" >&6
36355else
36356 cat >conftest.$ac_ext <<_ACEOF
36357/* confdefs.h. */
36358_ACEOF
36359cat confdefs.h >>conftest.$ac_ext
36360cat >>conftest.$ac_ext <<_ACEOF
36361/* end confdefs.h. */
ac1cb8d3
VS
36362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36364#define $ac_func innocuous_$ac_func
36365
a848cd7e
SC
36366/* System header to define __stub macros and hopefully few prototypes,
36367 which can conflict with char $ac_func (); below.
36368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36369 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36370
a848cd7e
SC
36371#ifdef __STDC__
36372# include <limits.h>
36373#else
36374# include <assert.h>
36375#endif
ac1cb8d3
VS
36376
36377#undef $ac_func
36378
a848cd7e
SC
36379/* Override any gcc2 internal prototype to avoid an error. */
36380#ifdef __cplusplus
36381extern "C"
36382{
36383#endif
36384/* We use char because int might match the return type of a gcc2
36385 builtin and then its argument prototype would still apply. */
36386char $ac_func ();
36387/* The GNU C library defines this for functions which it implements
36388 to always fail with ENOSYS. Some functions are actually named
36389 something starting with __ and the normal name is an alias. */
36390#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36391choke me
36392#else
36393char (*f) () = $ac_func;
36394#endif
36395#ifdef __cplusplus
36396}
36397#endif
36398
36399int
36400main ()
36401{
36402return f != $ac_func;
36403 ;
36404 return 0;
36405}
36406_ACEOF
36407rm -f conftest.$ac_objext conftest$ac_exeext
36408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36409 (eval $ac_link) 2>conftest.er1
a848cd7e 36410 ac_status=$?
ac1cb8d3
VS
36411 grep -v '^ *+' conftest.er1 >conftest.err
36412 rm -f conftest.er1
36413 cat conftest.err >&5
a848cd7e
SC
36414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415 (exit $ac_status); } &&
d25774ab
JS
36416 { ac_try='test -z "$ac_cxx_werror_flag"
36417 || test ! -s conftest.err'
ac1cb8d3
VS
36418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419 (eval $ac_try) 2>&5
36420 ac_status=$?
36421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422 (exit $ac_status); }; } &&
36423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36425 (eval $ac_try) 2>&5
36426 ac_status=$?
36427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428 (exit $ac_status); }; }; then
36429 eval "$as_ac_var=yes"
36430else
36431 echo "$as_me: failed program was:" >&5
36432sed 's/^/| /' conftest.$ac_ext >&5
36433
36434eval "$as_ac_var=no"
36435fi
ac1cb8d3
VS
36436rm -f conftest.err conftest.$ac_objext \
36437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36438fi
36439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36440echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36441if test `eval echo '${'$as_ac_var'}'` = yes; then
36442 cat >>confdefs.h <<_ACEOF
36443#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36444_ACEOF
36445
36446fi
36447done
36448
36449
a848cd7e
SC
36450INET_LINK=
36451
36452for ac_func in inet_addr
36453do
36454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36455echo "$as_me:$LINENO: checking for $ac_func" >&5
36456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36457if eval "test \"\${$as_ac_var+set}\" = set"; then
36458 echo $ECHO_N "(cached) $ECHO_C" >&6
36459else
36460 cat >conftest.$ac_ext <<_ACEOF
36461/* confdefs.h. */
36462_ACEOF
36463cat confdefs.h >>conftest.$ac_ext
36464cat >>conftest.$ac_ext <<_ACEOF
36465/* end confdefs.h. */
ac1cb8d3
VS
36466/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36468#define $ac_func innocuous_$ac_func
36469
a848cd7e
SC
36470/* System header to define __stub macros and hopefully few prototypes,
36471 which can conflict with char $ac_func (); below.
36472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36473 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36474
a848cd7e
SC
36475#ifdef __STDC__
36476# include <limits.h>
36477#else
36478# include <assert.h>
36479#endif
ac1cb8d3
VS
36480
36481#undef $ac_func
36482
a848cd7e
SC
36483/* Override any gcc2 internal prototype to avoid an error. */
36484#ifdef __cplusplus
36485extern "C"
36486{
36487#endif
36488/* We use char because int might match the return type of a gcc2
36489 builtin and then its argument prototype would still apply. */
36490char $ac_func ();
36491/* The GNU C library defines this for functions which it implements
36492 to always fail with ENOSYS. Some functions are actually named
36493 something starting with __ and the normal name is an alias. */
36494#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36495choke me
36496#else
36497char (*f) () = $ac_func;
36498#endif
36499#ifdef __cplusplus
36500}
36501#endif
36502
36503int
36504main ()
36505{
36506return f != $ac_func;
36507 ;
36508 return 0;
36509}
36510_ACEOF
36511rm -f conftest.$ac_objext conftest$ac_exeext
36512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36513 (eval $ac_link) 2>conftest.er1
a848cd7e 36514 ac_status=$?
ac1cb8d3
VS
36515 grep -v '^ *+' conftest.er1 >conftest.err
36516 rm -f conftest.er1
36517 cat conftest.err >&5
a848cd7e
SC
36518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519 (exit $ac_status); } &&
d25774ab
JS
36520 { ac_try='test -z "$ac_cxx_werror_flag"
36521 || test ! -s conftest.err'
ac1cb8d3
VS
36522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36523 (eval $ac_try) 2>&5
36524 ac_status=$?
36525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36526 (exit $ac_status); }; } &&
36527 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36529 (eval $ac_try) 2>&5
36530 ac_status=$?
36531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); }; }; then
36533 eval "$as_ac_var=yes"
36534else
36535 echo "$as_me: failed program was:" >&5
36536sed 's/^/| /' conftest.$ac_ext >&5
36537
36538eval "$as_ac_var=no"
36539fi
ac1cb8d3
VS
36540rm -f conftest.err conftest.$ac_objext \
36541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36542fi
36543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36544echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36545if test `eval echo '${'$as_ac_var'}'` = yes; then
36546 cat >>confdefs.h <<_ACEOF
36547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36548_ACEOF
36549 cat >>confdefs.h <<\_ACEOF
36550#define HAVE_INET_ADDR 1
36551_ACEOF
36552
36553else
36554
36555 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36556echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36557if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36558 echo $ECHO_N "(cached) $ECHO_C" >&6
36559else
36560 ac_check_lib_save_LIBS=$LIBS
36561LIBS="-lnsl $LIBS"
36562cat >conftest.$ac_ext <<_ACEOF
36563/* confdefs.h. */
36564_ACEOF
36565cat confdefs.h >>conftest.$ac_ext
36566cat >>conftest.$ac_ext <<_ACEOF
36567/* end confdefs.h. */
36568
36569/* Override any gcc2 internal prototype to avoid an error. */
36570#ifdef __cplusplus
36571extern "C"
36572#endif
36573/* We use char because int might match the return type of a gcc2
36574 builtin and then its argument prototype would still apply. */
36575char inet_addr ();
36576int
36577main ()
36578{
36579inet_addr ();
36580 ;
36581 return 0;
36582}
36583_ACEOF
36584rm -f conftest.$ac_objext conftest$ac_exeext
36585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36586 (eval $ac_link) 2>conftest.er1
a848cd7e 36587 ac_status=$?
ac1cb8d3
VS
36588 grep -v '^ *+' conftest.er1 >conftest.err
36589 rm -f conftest.er1
36590 cat conftest.err >&5
a848cd7e
SC
36591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592 (exit $ac_status); } &&
d25774ab
JS
36593 { ac_try='test -z "$ac_cxx_werror_flag"
36594 || test ! -s conftest.err'
ac1cb8d3
VS
36595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36596 (eval $ac_try) 2>&5
36597 ac_status=$?
36598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36599 (exit $ac_status); }; } &&
36600 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36602 (eval $ac_try) 2>&5
36603 ac_status=$?
36604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605 (exit $ac_status); }; }; then
36606 ac_cv_lib_nsl_inet_addr=yes
36607else
36608 echo "$as_me: failed program was:" >&5
36609sed 's/^/| /' conftest.$ac_ext >&5
36610
36611ac_cv_lib_nsl_inet_addr=no
36612fi
ac1cb8d3
VS
36613rm -f conftest.err conftest.$ac_objext \
36614 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36615LIBS=$ac_check_lib_save_LIBS
36616fi
36617echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36618echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36619if test $ac_cv_lib_nsl_inet_addr = yes; then
36620 INET_LINK="nsl"
36621else
36622
36623 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36624echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36625if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36626 echo $ECHO_N "(cached) $ECHO_C" >&6
36627else
36628 ac_check_lib_save_LIBS=$LIBS
36629LIBS="-lresolv $LIBS"
36630cat >conftest.$ac_ext <<_ACEOF
36631/* confdefs.h. */
36632_ACEOF
36633cat confdefs.h >>conftest.$ac_ext
36634cat >>conftest.$ac_ext <<_ACEOF
36635/* end confdefs.h. */
36636
36637/* Override any gcc2 internal prototype to avoid an error. */
36638#ifdef __cplusplus
36639extern "C"
36640#endif
36641/* We use char because int might match the return type of a gcc2
36642 builtin and then its argument prototype would still apply. */
36643char inet_addr ();
36644int
36645main ()
36646{
36647inet_addr ();
36648 ;
36649 return 0;
36650}
36651_ACEOF
36652rm -f conftest.$ac_objext conftest$ac_exeext
36653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36654 (eval $ac_link) 2>conftest.er1
a848cd7e 36655 ac_status=$?
ac1cb8d3
VS
36656 grep -v '^ *+' conftest.er1 >conftest.err
36657 rm -f conftest.er1
36658 cat conftest.err >&5
a848cd7e
SC
36659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36660 (exit $ac_status); } &&
d25774ab
JS
36661 { ac_try='test -z "$ac_cxx_werror_flag"
36662 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
36668 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36670 (eval $ac_try) 2>&5
36671 ac_status=$?
36672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36673 (exit $ac_status); }; }; then
36674 ac_cv_lib_resolv_inet_addr=yes
36675else
36676 echo "$as_me: failed program was:" >&5
36677sed 's/^/| /' conftest.$ac_ext >&5
36678
36679ac_cv_lib_resolv_inet_addr=no
36680fi
ac1cb8d3
VS
36681rm -f conftest.err conftest.$ac_objext \
36682 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36683LIBS=$ac_check_lib_save_LIBS
36684fi
36685echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36686echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36687if test $ac_cv_lib_resolv_inet_addr = yes; then
36688 INET_LINK="resolv"
36689else
36690
36691 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36692echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36693if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36694 echo $ECHO_N "(cached) $ECHO_C" >&6
36695else
36696 ac_check_lib_save_LIBS=$LIBS
36697LIBS="-lsocket $LIBS"
36698cat >conftest.$ac_ext <<_ACEOF
36699/* confdefs.h. */
36700_ACEOF
36701cat confdefs.h >>conftest.$ac_ext
36702cat >>conftest.$ac_ext <<_ACEOF
36703/* end confdefs.h. */
36704
36705/* Override any gcc2 internal prototype to avoid an error. */
36706#ifdef __cplusplus
36707extern "C"
36708#endif
36709/* We use char because int might match the return type of a gcc2
36710 builtin and then its argument prototype would still apply. */
36711char inet_addr ();
36712int
36713main ()
36714{
36715inet_addr ();
36716 ;
36717 return 0;
36718}
36719_ACEOF
36720rm -f conftest.$ac_objext conftest$ac_exeext
36721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36722 (eval $ac_link) 2>conftest.er1
a848cd7e 36723 ac_status=$?
ac1cb8d3
VS
36724 grep -v '^ *+' conftest.er1 >conftest.err
36725 rm -f conftest.er1
36726 cat conftest.err >&5
a848cd7e
SC
36727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728 (exit $ac_status); } &&
d25774ab
JS
36729 { ac_try='test -z "$ac_cxx_werror_flag"
36730 || test ! -s conftest.err'
ac1cb8d3
VS
36731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36732 (eval $ac_try) 2>&5
36733 ac_status=$?
36734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735 (exit $ac_status); }; } &&
36736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36738 (eval $ac_try) 2>&5
36739 ac_status=$?
36740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741 (exit $ac_status); }; }; then
36742 ac_cv_lib_socket_inet_addr=yes
36743else
36744 echo "$as_me: failed program was:" >&5
36745sed 's/^/| /' conftest.$ac_ext >&5
36746
36747ac_cv_lib_socket_inet_addr=no
36748fi
ac1cb8d3
VS
36749rm -f conftest.err conftest.$ac_objext \
36750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36751LIBS=$ac_check_lib_save_LIBS
36752fi
36753echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36754echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36755if test $ac_cv_lib_socket_inet_addr = yes; then
36756 INET_LINK="socket"
36757
36758fi
36759
36760
36761
36762fi
36763
36764
36765
36766fi
36767
36768
36769
36770fi
36771done
36772
36773
36774
36775for ac_func in inet_aton
36776do
36777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36778echo "$as_me:$LINENO: checking for $ac_func" >&5
36779echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36780if eval "test \"\${$as_ac_var+set}\" = set"; then
36781 echo $ECHO_N "(cached) $ECHO_C" >&6
36782else
36783 cat >conftest.$ac_ext <<_ACEOF
36784/* confdefs.h. */
36785_ACEOF
36786cat confdefs.h >>conftest.$ac_ext
36787cat >>conftest.$ac_ext <<_ACEOF
36788/* end confdefs.h. */
ac1cb8d3
VS
36789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36791#define $ac_func innocuous_$ac_func
36792
a848cd7e
SC
36793/* System header to define __stub macros and hopefully few prototypes,
36794 which can conflict with char $ac_func (); below.
36795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36796 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36797
a848cd7e
SC
36798#ifdef __STDC__
36799# include <limits.h>
36800#else
36801# include <assert.h>
36802#endif
ac1cb8d3
VS
36803
36804#undef $ac_func
36805
a848cd7e
SC
36806/* Override any gcc2 internal prototype to avoid an error. */
36807#ifdef __cplusplus
36808extern "C"
36809{
36810#endif
36811/* We use char because int might match the return type of a gcc2
36812 builtin and then its argument prototype would still apply. */
36813char $ac_func ();
36814/* The GNU C library defines this for functions which it implements
36815 to always fail with ENOSYS. Some functions are actually named
36816 something starting with __ and the normal name is an alias. */
36817#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36818choke me
36819#else
36820char (*f) () = $ac_func;
36821#endif
36822#ifdef __cplusplus
36823}
36824#endif
36825
36826int
36827main ()
36828{
36829return f != $ac_func;
36830 ;
36831 return 0;
36832}
36833_ACEOF
36834rm -f conftest.$ac_objext conftest$ac_exeext
36835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36836 (eval $ac_link) 2>conftest.er1
a848cd7e 36837 ac_status=$?
ac1cb8d3
VS
36838 grep -v '^ *+' conftest.er1 >conftest.err
36839 rm -f conftest.er1
36840 cat conftest.err >&5
a848cd7e
SC
36841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842 (exit $ac_status); } &&
d25774ab
JS
36843 { ac_try='test -z "$ac_cxx_werror_flag"
36844 || test ! -s conftest.err'
ac1cb8d3
VS
36845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36846 (eval $ac_try) 2>&5
36847 ac_status=$?
36848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36849 (exit $ac_status); }; } &&
36850 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36852 (eval $ac_try) 2>&5
36853 ac_status=$?
36854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855 (exit $ac_status); }; }; then
36856 eval "$as_ac_var=yes"
36857else
36858 echo "$as_me: failed program was:" >&5
36859sed 's/^/| /' conftest.$ac_ext >&5
36860
36861eval "$as_ac_var=no"
36862fi
ac1cb8d3
VS
36863rm -f conftest.err conftest.$ac_objext \
36864 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36865fi
36866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36867echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36868if test `eval echo '${'$as_ac_var'}'` = yes; then
36869 cat >>confdefs.h <<_ACEOF
36870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36871_ACEOF
36872 cat >>confdefs.h <<\_ACEOF
36873#define HAVE_INET_ATON 1
36874_ACEOF
36875
36876else
36877
36878 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36879echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36880echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36881if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36882 echo $ECHO_N "(cached) $ECHO_C" >&6
36883else
36884 ac_check_lib_save_LIBS=$LIBS
36885LIBS="-l$INET_LINK $LIBS"
36886cat >conftest.$ac_ext <<_ACEOF
36887/* confdefs.h. */
36888_ACEOF
36889cat confdefs.h >>conftest.$ac_ext
36890cat >>conftest.$ac_ext <<_ACEOF
36891/* end confdefs.h. */
36892
36893/* Override any gcc2 internal prototype to avoid an error. */
36894#ifdef __cplusplus
36895extern "C"
36896#endif
36897/* We use char because int might match the return type of a gcc2
36898 builtin and then its argument prototype would still apply. */
36899char inet_aton ();
36900int
36901main ()
36902{
36903inet_aton ();
36904 ;
36905 return 0;
36906}
36907_ACEOF
36908rm -f conftest.$ac_objext conftest$ac_exeext
36909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36910 (eval $ac_link) 2>conftest.er1
a848cd7e 36911 ac_status=$?
ac1cb8d3
VS
36912 grep -v '^ *+' conftest.er1 >conftest.err
36913 rm -f conftest.er1
36914 cat conftest.err >&5
a848cd7e
SC
36915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36916 (exit $ac_status); } &&
d25774ab
JS
36917 { ac_try='test -z "$ac_cxx_werror_flag"
36918 || test ! -s conftest.err'
ac1cb8d3
VS
36919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36920 (eval $ac_try) 2>&5
36921 ac_status=$?
36922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923 (exit $ac_status); }; } &&
36924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36926 (eval $ac_try) 2>&5
36927 ac_status=$?
36928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36929 (exit $ac_status); }; }; then
36930 eval "$as_ac_Lib=yes"
36931else
36932 echo "$as_me: failed program was:" >&5
36933sed 's/^/| /' conftest.$ac_ext >&5
36934
36935eval "$as_ac_Lib=no"
36936fi
ac1cb8d3
VS
36937rm -f conftest.err conftest.$ac_objext \
36938 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36939LIBS=$ac_check_lib_save_LIBS
36940fi
36941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36942echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36943if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36944 cat >>confdefs.h <<\_ACEOF
36945#define HAVE_INET_ATON 1
36946_ACEOF
36947
36948fi
36949
36950
36951fi
36952done
36953
36954
36955if test "x$INET_LINK" != "x"; then
36956 cat >>confdefs.h <<\_ACEOF
36957#define HAVE_INET_ADDR 1
36958_ACEOF
36959
36960 INET_LINK=" -l$INET_LINK"
36961fi
36962
36963fi
36964
36965
36966
36967EXTRALIBS_ESD=
36968echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36969echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36970if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36971 echo $ECHO_N "(cached) $ECHO_C" >&6
36972else
36973 ac_check_lib_save_LIBS=$LIBS
36974LIBS="-lesd $LIBS"
36975cat >conftest.$ac_ext <<_ACEOF
36976/* confdefs.h. */
36977_ACEOF
36978cat confdefs.h >>conftest.$ac_ext
36979cat >>conftest.$ac_ext <<_ACEOF
36980/* end confdefs.h. */
36981
36982/* Override any gcc2 internal prototype to avoid an error. */
36983#ifdef __cplusplus
36984extern "C"
36985#endif
36986/* We use char because int might match the return type of a gcc2
36987 builtin and then its argument prototype would still apply. */
36988char esd_close ();
36989int
36990main ()
36991{
36992esd_close ();
36993 ;
36994 return 0;
36995}
36996_ACEOF
36997rm -f conftest.$ac_objext conftest$ac_exeext
36998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36999 (eval $ac_link) 2>conftest.er1
a848cd7e 37000 ac_status=$?
ac1cb8d3
VS
37001 grep -v '^ *+' conftest.er1 >conftest.err
37002 rm -f conftest.er1
37003 cat conftest.err >&5
a848cd7e
SC
37004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005 (exit $ac_status); } &&
d25774ab
JS
37006 { ac_try='test -z "$ac_cxx_werror_flag"
37007 || test ! -s conftest.err'
ac1cb8d3
VS
37008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37009 (eval $ac_try) 2>&5
37010 ac_status=$?
37011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37012 (exit $ac_status); }; } &&
37013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37015 (eval $ac_try) 2>&5
37016 ac_status=$?
37017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37018 (exit $ac_status); }; }; then
37019 ac_cv_lib_esd_esd_close=yes
37020else
37021 echo "$as_me: failed program was:" >&5
37022sed 's/^/| /' conftest.$ac_ext >&5
37023
37024ac_cv_lib_esd_esd_close=no
37025fi
ac1cb8d3
VS
37026rm -f conftest.err conftest.$ac_objext \
37027 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37028LIBS=$ac_check_lib_save_LIBS
37029fi
37030echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37031echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37032if test $ac_cv_lib_esd_esd_close = yes; then
37033
37034
37035for ac_header in esd.h
37036do
37037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37038if eval "test \"\${$as_ac_Header+set}\" = set"; then
37039 echo "$as_me:$LINENO: checking for $ac_header" >&5
37040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37041if eval "test \"\${$as_ac_Header+set}\" = set"; then
37042 echo $ECHO_N "(cached) $ECHO_C" >&6
37043fi
37044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37046else
37047 # Is the header compilable?
37048echo "$as_me:$LINENO: checking $ac_header usability" >&5
37049echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37050cat >conftest.$ac_ext <<_ACEOF
37051/* confdefs.h. */
37052_ACEOF
37053cat confdefs.h >>conftest.$ac_ext
37054cat >>conftest.$ac_ext <<_ACEOF
37055/* end confdefs.h. */
37056$ac_includes_default
37057#include <$ac_header>
37058_ACEOF
37059rm -f conftest.$ac_objext
37060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37061 (eval $ac_compile) 2>conftest.er1
a848cd7e 37062 ac_status=$?
ac1cb8d3
VS
37063 grep -v '^ *+' conftest.er1 >conftest.err
37064 rm -f conftest.er1
37065 cat conftest.err >&5
a848cd7e
SC
37066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37067 (exit $ac_status); } &&
d25774ab
JS
37068 { ac_try='test -z "$ac_cxx_werror_flag"
37069 || test ! -s conftest.err'
ac1cb8d3
VS
37070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37071 (eval $ac_try) 2>&5
37072 ac_status=$?
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); }; } &&
37075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37077 (eval $ac_try) 2>&5
37078 ac_status=$?
37079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37080 (exit $ac_status); }; }; then
37081 ac_header_compiler=yes
37082else
37083 echo "$as_me: failed program was:" >&5
37084sed 's/^/| /' conftest.$ac_ext >&5
37085
37086ac_header_compiler=no
37087fi
ac1cb8d3 37088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37089echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37090echo "${ECHO_T}$ac_header_compiler" >&6
37091
37092# Is the header present?
37093echo "$as_me:$LINENO: checking $ac_header presence" >&5
37094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37095cat >conftest.$ac_ext <<_ACEOF
37096/* confdefs.h. */
37097_ACEOF
37098cat confdefs.h >>conftest.$ac_ext
37099cat >>conftest.$ac_ext <<_ACEOF
37100/* end confdefs.h. */
37101#include <$ac_header>
37102_ACEOF
37103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37105 ac_status=$?
37106 grep -v '^ *+' conftest.er1 >conftest.err
37107 rm -f conftest.er1
37108 cat conftest.err >&5
37109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37110 (exit $ac_status); } >/dev/null; then
37111 if test -s conftest.err; then
5d7b7554
VZ
37112 ac_cpp_err=$ac_cxx_preproc_warn_flag
37113 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37114 else
37115 ac_cpp_err=
37116 fi
37117else
37118 ac_cpp_err=yes
37119fi
37120if test -z "$ac_cpp_err"; then
37121 ac_header_preproc=yes
37122else
37123 echo "$as_me: failed program was:" >&5
37124sed 's/^/| /' conftest.$ac_ext >&5
37125
37126 ac_header_preproc=no
37127fi
37128rm -f conftest.err conftest.$ac_ext
37129echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37130echo "${ECHO_T}$ac_header_preproc" >&6
37131
37132# So? What about this header?
5d7b7554 37133case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37134 yes:no: )
a848cd7e
SC
37135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37139 ac_header_preproc=yes
a848cd7e 37140 ;;
ac1cb8d3 37141 no:yes:* )
a848cd7e
SC
37142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37154 (
37155 cat <<\_ASBOX
ac1cb8d3
VS
37156## ----------------------------------------- ##
37157## Report this to wx-dev@lists.wxwidgets.org ##
37158## ----------------------------------------- ##
a848cd7e
SC
37159_ASBOX
37160 ) |
37161 sed "s/^/$as_me: WARNING: /" >&2
37162 ;;
37163esac
37164echo "$as_me:$LINENO: checking for $ac_header" >&5
37165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37166if eval "test \"\${$as_ac_Header+set}\" = set"; then
37167 echo $ECHO_N "(cached) $ECHO_C" >&6
37168else
ac1cb8d3 37169 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37170fi
37171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37173
37174fi
37175if test `eval echo '${'$as_ac_Header'}'` = yes; then
37176 cat >>confdefs.h <<_ACEOF
37177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37178_ACEOF
37179
37180 EXTRALIBS_ESD="-lesd"
37181
37182fi
37183
37184done
37185
37186
37187fi
37188
37189
37190
37191echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37192echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37193cat >conftest.$ac_ext <<_ACEOF
37194/* confdefs.h. */
37195_ACEOF
37196cat confdefs.h >>conftest.$ac_ext
37197cat >>conftest.$ac_ext <<_ACEOF
37198/* end confdefs.h. */
37199#ifdef __linux__
37200 #include <linux/cdrom.h>
37201 #else
37202 /* For Solaris */
37203 #include <sys/cdio.h>
37204 #endif
37205
37206int
37207main ()
37208{
37209struct cdrom_tocentry entry, old_entry;
37210 ;
37211 return 0;
37212}
37213_ACEOF
37214rm -f conftest.$ac_objext
37215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37216 (eval $ac_compile) 2>conftest.er1
a848cd7e 37217 ac_status=$?
ac1cb8d3
VS
37218 grep -v '^ *+' conftest.er1 >conftest.err
37219 rm -f conftest.er1
37220 cat conftest.err >&5
a848cd7e
SC
37221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37222 (exit $ac_status); } &&
d25774ab
JS
37223 { ac_try='test -z "$ac_cxx_werror_flag"
37224 || test ! -s conftest.err'
ac1cb8d3
VS
37225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37226 (eval $ac_try) 2>&5
37227 ac_status=$?
37228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37229 (exit $ac_status); }; } &&
37230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37232 (eval $ac_try) 2>&5
37233 ac_status=$?
37234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37235 (exit $ac_status); }; }; then
37236 echo "$as_me:$LINENO: result: yes" >&5
37237echo "${ECHO_T}yes" >&6
37238 cat >>confdefs.h <<\_ACEOF
37239#define HAVE_KNOWN_CDROM_INTERFACE 1
37240_ACEOF
37241
37242else
37243 echo "$as_me: failed program was:" >&5
37244sed 's/^/| /' conftest.$ac_ext >&5
37245
37246echo "$as_me:$LINENO: result: no" >&5
37247echo "${ECHO_T}no" >&6
37248fi
ac1cb8d3 37249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37250
37251
37252cat >confcache <<\_ACEOF
37253# This file is a shell script that caches the results of configure
37254# tests run on this system so they can be shared between configure
37255# scripts and configure runs, see configure's option --config-cache.
37256# It is not useful on other systems. If it contains results you don't
37257# want to keep, you may remove or edit it.
37258#
37259# config.status only pays attention to the cache file if you give it
37260# the --recheck option to rerun configure.
37261#
37262# `ac_cv_env_foo' variables (set or unset) will be overridden when
37263# loading this file, other *unset* `ac_cv_foo' will be assigned the
37264# following values.
37265
37266_ACEOF
37267
37268# The following way of writing the cache mishandles newlines in values,
37269# but we know of no workaround that is simple, portable, and efficient.
37270# So, don't put newlines in cache variables' values.
37271# Ultrix sh set writes to stderr and can't be redirected directly,
37272# and sets the high bit in the cache file unless we assign to the vars.
37273{
37274 (set) 2>&1 |
37275 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37276 *ac_space=\ *)
37277 # `set' does not quote correctly, so add quotes (double-quote
37278 # substitution turns \\\\ into \\, and sed turns \\ into \).
37279 sed -n \
ac1cb8d3
VS
37280 "s/'/'\\\\''/g;
37281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37282 ;;
37283 *)
37284 # `set' quotes correctly as required by POSIX, so do not add quotes.
37285 sed -n \
ac1cb8d3 37286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37287 ;;
37288 esac;
37289} |
37290 sed '
37291 t clear
37292 : clear
37293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37294 t end
37295 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37296 : end' >>confcache
37297if diff $cache_file confcache >/dev/null 2>&1; then :; else
37298 if test -w $cache_file; then
37299 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37300 cat confcache >$cache_file
37301 else
37302 echo "not updating unwritable cache $cache_file"
37303 fi
37304fi
37305rm -f confcache
37306
37307
a848cd7e
SC
37308if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37309
37310
37311 THREADS_LINK=
e56f4f9e 37312 THREADS_CXXFLAGS=
a848cd7e
SC
37313
37314 if test "$wxUSE_THREADS" = "yes" ; then
37315 if test "$USE_BEOS" = 1; then
37316 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37317echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37318 wxUSE_THREADS="no"
37319 fi
37320 fi
37321
37322 if test "$wxUSE_THREADS" = "yes" ; then
37323
37324
37325 THREAD_OPTS="-pthread"
37326 case "${host}" in
37327 *-*-solaris2* | *-*-sunos4* )
37328 if test "x$GCC" = "xyes"; then
37329 THREAD_OPTS="-pthreads $THREAD_OPTS"
37330 else
37331 THREAD_OPTS="-mt $THREAD_OPTS"
37332 fi
37333 ;;
37334 *-*-freebsd*)
37335 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37336 ;;
37337 *-*-darwin* | *-*-cygwin* )
37338 THREAD_OPTS=""
37339 ;;
37340 *-*-aix*)
37341 THREAD_OPTS="pthreads"
37342 ;;
37343 *-hp-hpux* )
00421666
MW
37344 if test "x$GCC" = "xyes"; then
37345 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37346 THREAD_OPTS=""
37347 else
0093c2fc 37348 THREAD_OPTS="-mt"
a848cd7e
SC
37349 fi
37350 ;;
37351
37352 *-*-irix* )
37353 if test "x$GCC" = "xyes"; then
37354 THREAD_OPTS=""
37355 fi
37356 ;;
37357
37358 *-*-*UnixWare*)
37359 if test "x$GCC" != "xyes"; then
37360 THREAD_OPTS="-Ethread"
37361 fi
37362 ;;
37363 esac
37364
37365 THREAD_OPTS="$THREAD_OPTS pthread none"
37366
37367 THREADS_OK=no
37368 for flag in $THREAD_OPTS; do
37369 case $flag in
37370 none)
37371 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37372echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37373 ;;
37374
37375 -*)
37376 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37377echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37378 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37379 ;;
37380
37381 *)
37382 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37383echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37384 THREADS_LINK="-l$flag"
37385 ;;
37386 esac
37387
37388 save_LIBS="$LIBS"
e56f4f9e 37389 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37390 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37391 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37392
37393 cat >conftest.$ac_ext <<_ACEOF
37394/* confdefs.h. */
37395_ACEOF
37396cat confdefs.h >>conftest.$ac_ext
37397cat >>conftest.$ac_ext <<_ACEOF
37398/* end confdefs.h. */
37399#include <pthread.h>
37400int
37401main ()
37402{
37403pthread_create(0,0,0,0);
37404 ;
37405 return 0;
37406}
37407_ACEOF
37408rm -f conftest.$ac_objext conftest$ac_exeext
37409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37410 (eval $ac_link) 2>conftest.er1
a848cd7e 37411 ac_status=$?
ac1cb8d3
VS
37412 grep -v '^ *+' conftest.er1 >conftest.err
37413 rm -f conftest.er1
37414 cat conftest.err >&5
a848cd7e
SC
37415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416 (exit $ac_status); } &&
d25774ab
JS
37417 { ac_try='test -z "$ac_cxx_werror_flag"
37418 || test ! -s conftest.err'
ac1cb8d3
VS
37419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37420 (eval $ac_try) 2>&5
37421 ac_status=$?
37422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423 (exit $ac_status); }; } &&
37424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37426 (eval $ac_try) 2>&5
37427 ac_status=$?
37428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429 (exit $ac_status); }; }; then
37430 THREADS_OK=yes
37431else
37432 echo "$as_me: failed program was:" >&5
37433sed 's/^/| /' conftest.$ac_ext >&5
37434
37435fi
ac1cb8d3
VS
37436rm -f conftest.err conftest.$ac_objext \
37437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37438
37439 LIBS="$save_LIBS"
e56f4f9e 37440 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
37441
37442 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37443echo "${ECHO_T}$THREADS_OK" >&6
37444 if test "x$THREADS_OK" = "xyes"; then
37445 break;
37446 fi
37447
37448 THREADS_LINK=""
e56f4f9e 37449 THREADS_CXXFLAGS=""
a848cd7e
SC
37450 done
37451
37452 if test "x$THREADS_OK" != "xyes"; then
37453 wxUSE_THREADS=no
37454 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37455echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37456 else
e56f4f9e 37457 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
37458 LIBS="$THREADS_LINK $LIBS"
37459
37460 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37461echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37462 flag=no
37463 case "${host}" in
37464 *-aix*)
37465 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37466 flag="-D_THREAD_SAFE"
37467 ;;
37468 *-freebsd*)
37469 flag="-D_THREAD_SAFE"
37470 ;;
37471 *-hp-hpux* )
37472 flag="-D_REENTRANT"
37473 if test "x$GCC" != "xyes"; then
37474 flag="$flag -D_RWSTD_MULTI_THREAD"
37475 fi
37476 ;;
37477 *solaris* | alpha*-osf*)
37478 flag="-D_REENTRANT"
37479 ;;
37480 esac
37481 echo "$as_me:$LINENO: result: ${flag}" >&5
37482echo "${ECHO_T}${flag}" >&6
37483 if test "x$flag" != xno; then
e56f4f9e 37484 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
37485 fi
37486
e56f4f9e 37487 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
37488 fi
37489 fi
37490
37491 if test "$wxUSE_THREADS" = "yes" ; then
37492
37493for ac_func in thr_setconcurrency
37494do
37495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37496echo "$as_me:$LINENO: checking for $ac_func" >&5
37497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37498if eval "test \"\${$as_ac_var+set}\" = set"; then
37499 echo $ECHO_N "(cached) $ECHO_C" >&6
37500else
37501 cat >conftest.$ac_ext <<_ACEOF
37502/* confdefs.h. */
37503_ACEOF
37504cat confdefs.h >>conftest.$ac_ext
37505cat >>conftest.$ac_ext <<_ACEOF
37506/* end confdefs.h. */
ac1cb8d3
VS
37507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37509#define $ac_func innocuous_$ac_func
37510
a848cd7e
SC
37511/* System header to define __stub macros and hopefully few prototypes,
37512 which can conflict with char $ac_func (); below.
37513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37514 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37515
a848cd7e
SC
37516#ifdef __STDC__
37517# include <limits.h>
37518#else
37519# include <assert.h>
37520#endif
ac1cb8d3
VS
37521
37522#undef $ac_func
37523
a848cd7e
SC
37524/* Override any gcc2 internal prototype to avoid an error. */
37525#ifdef __cplusplus
37526extern "C"
37527{
37528#endif
37529/* We use char because int might match the return type of a gcc2
37530 builtin and then its argument prototype would still apply. */
37531char $ac_func ();
37532/* The GNU C library defines this for functions which it implements
37533 to always fail with ENOSYS. Some functions are actually named
37534 something starting with __ and the normal name is an alias. */
37535#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37536choke me
37537#else
37538char (*f) () = $ac_func;
37539#endif
37540#ifdef __cplusplus
37541}
37542#endif
37543
37544int
37545main ()
37546{
37547return f != $ac_func;
37548 ;
37549 return 0;
37550}
37551_ACEOF
37552rm -f conftest.$ac_objext conftest$ac_exeext
37553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37554 (eval $ac_link) 2>conftest.er1
a848cd7e 37555 ac_status=$?
ac1cb8d3
VS
37556 grep -v '^ *+' conftest.er1 >conftest.err
37557 rm -f conftest.er1
37558 cat conftest.err >&5
a848cd7e
SC
37559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560 (exit $ac_status); } &&
d25774ab
JS
37561 { ac_try='test -z "$ac_cxx_werror_flag"
37562 || test ! -s conftest.err'
ac1cb8d3
VS
37563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37564 (eval $ac_try) 2>&5
37565 ac_status=$?
37566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567 (exit $ac_status); }; } &&
37568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37570 (eval $ac_try) 2>&5
37571 ac_status=$?
37572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37573 (exit $ac_status); }; }; then
37574 eval "$as_ac_var=yes"
37575else
37576 echo "$as_me: failed program was:" >&5
37577sed 's/^/| /' conftest.$ac_ext >&5
37578
37579eval "$as_ac_var=no"
37580fi
ac1cb8d3
VS
37581rm -f conftest.err conftest.$ac_objext \
37582 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37583fi
37584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37585echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37586if test `eval echo '${'$as_ac_var'}'` = yes; then
37587 cat >>confdefs.h <<_ACEOF
37588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37589_ACEOF
37590
37591fi
37592done
37593
37594
6ebeb4c7
VZ
37595 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37596echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37597if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37598 echo $ECHO_N "(cached) $ECHO_C" >&6
37599else
37600
37601 cat >conftest.$ac_ext <<_ACEOF
37602/* confdefs.h. */
37603_ACEOF
37604cat confdefs.h >>conftest.$ac_ext
37605cat >>conftest.$ac_ext <<_ACEOF
37606/* end confdefs.h. */
37607#include <pthread.h>
37608 void ThreadCleanupFunc(void *p);
37609
37610int
37611main ()
37612{
37613
37614 void *p;
37615 pthread_cleanup_push(ThreadCleanupFunc, p);
37616 pthread_cleanup_pop(0);
37617
37618 ;
37619 return 0;
37620}
37621_ACEOF
37622rm -f conftest.$ac_objext
37623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37624 (eval $ac_compile) 2>conftest.er1
37625 ac_status=$?
37626 grep -v '^ *+' conftest.er1 >conftest.err
37627 rm -f conftest.er1
37628 cat conftest.err >&5
37629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630 (exit $ac_status); } &&
d25774ab
JS
37631 { ac_try='test -z "$ac_cxx_werror_flag"
37632 || test ! -s conftest.err'
6ebeb4c7
VZ
37633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37634 (eval $ac_try) 2>&5
37635 ac_status=$?
37636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37637 (exit $ac_status); }; } &&
37638 { ac_try='test -s conftest.$ac_objext'
37639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37640 (eval $ac_try) 2>&5
37641 ac_status=$?
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); }; }; then
37644
37645 wx_cv_func_pthread_cleanup=yes
37646
37647else
37648 echo "$as_me: failed program was:" >&5
37649sed 's/^/| /' conftest.$ac_ext >&5
37650
37651
37652 wx_cv_func_pthread_cleanup=no
37653
37654
37655fi
37656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37657
37658fi
37659echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37660echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37661 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37662 cat >>confdefs.h <<\_ACEOF
37663#define wxHAVE_PTHREAD_CLEANUP 1
37664_ACEOF
37665
37666 fi
37667
a848cd7e
SC
37668
37669for ac_header in sched.h
37670do
37671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37672if eval "test \"\${$as_ac_Header+set}\" = set"; then
37673 echo "$as_me:$LINENO: checking for $ac_header" >&5
37674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37675if eval "test \"\${$as_ac_Header+set}\" = set"; then
37676 echo $ECHO_N "(cached) $ECHO_C" >&6
37677fi
37678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37680else
37681 # Is the header compilable?
37682echo "$as_me:$LINENO: checking $ac_header usability" >&5
37683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37684cat >conftest.$ac_ext <<_ACEOF
37685/* confdefs.h. */
37686_ACEOF
37687cat confdefs.h >>conftest.$ac_ext
37688cat >>conftest.$ac_ext <<_ACEOF
37689/* end confdefs.h. */
37690$ac_includes_default
37691#include <$ac_header>
37692_ACEOF
37693rm -f conftest.$ac_objext
37694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37695 (eval $ac_compile) 2>conftest.er1
a848cd7e 37696 ac_status=$?
ac1cb8d3
VS
37697 grep -v '^ *+' conftest.er1 >conftest.err
37698 rm -f conftest.er1
37699 cat conftest.err >&5
a848cd7e
SC
37700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37701 (exit $ac_status); } &&
d25774ab
JS
37702 { ac_try='test -z "$ac_cxx_werror_flag"
37703 || test ! -s conftest.err'
ac1cb8d3
VS
37704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37705 (eval $ac_try) 2>&5
37706 ac_status=$?
37707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37708 (exit $ac_status); }; } &&
37709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37711 (eval $ac_try) 2>&5
37712 ac_status=$?
37713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37714 (exit $ac_status); }; }; then
37715 ac_header_compiler=yes
37716else
37717 echo "$as_me: failed program was:" >&5
37718sed 's/^/| /' conftest.$ac_ext >&5
37719
37720ac_header_compiler=no
37721fi
ac1cb8d3 37722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37724echo "${ECHO_T}$ac_header_compiler" >&6
37725
37726# Is the header present?
37727echo "$as_me:$LINENO: checking $ac_header presence" >&5
37728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37729cat >conftest.$ac_ext <<_ACEOF
37730/* confdefs.h. */
37731_ACEOF
37732cat confdefs.h >>conftest.$ac_ext
37733cat >>conftest.$ac_ext <<_ACEOF
37734/* end confdefs.h. */
37735#include <$ac_header>
37736_ACEOF
37737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37739 ac_status=$?
37740 grep -v '^ *+' conftest.er1 >conftest.err
37741 rm -f conftest.er1
37742 cat conftest.err >&5
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); } >/dev/null; then
37745 if test -s conftest.err; then
5d7b7554
VZ
37746 ac_cpp_err=$ac_cxx_preproc_warn_flag
37747 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37748 else
37749 ac_cpp_err=
37750 fi
37751else
37752 ac_cpp_err=yes
37753fi
37754if test -z "$ac_cpp_err"; then
37755 ac_header_preproc=yes
37756else
37757 echo "$as_me: failed program was:" >&5
37758sed 's/^/| /' conftest.$ac_ext >&5
37759
37760 ac_header_preproc=no
37761fi
37762rm -f conftest.err conftest.$ac_ext
37763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37764echo "${ECHO_T}$ac_header_preproc" >&6
37765
37766# So? What about this header?
5d7b7554 37767case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37768 yes:no: )
a848cd7e
SC
37769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37773 ac_header_preproc=yes
a848cd7e 37774 ;;
ac1cb8d3 37775 no:yes:* )
a848cd7e
SC
37776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37783echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37788 (
37789 cat <<\_ASBOX
ac1cb8d3
VS
37790## ----------------------------------------- ##
37791## Report this to wx-dev@lists.wxwidgets.org ##
37792## ----------------------------------------- ##
a848cd7e
SC
37793_ASBOX
37794 ) |
37795 sed "s/^/$as_me: WARNING: /" >&2
37796 ;;
37797esac
37798echo "$as_me:$LINENO: checking for $ac_header" >&5
37799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37800if eval "test \"\${$as_ac_Header+set}\" = set"; then
37801 echo $ECHO_N "(cached) $ECHO_C" >&6
37802else
ac1cb8d3 37803 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37804fi
37805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37807
37808fi
37809if test `eval echo '${'$as_ac_Header'}'` = yes; then
37810 cat >>confdefs.h <<_ACEOF
37811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37812_ACEOF
37813
37814fi
37815
37816done
37817
37818 if test "$ac_cv_header_sched_h" = "yes"; then
37819 echo "$as_me:$LINENO: checking for sched_yield" >&5
37820echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37821if test "${ac_cv_func_sched_yield+set}" = set; then
37822 echo $ECHO_N "(cached) $ECHO_C" >&6
37823else
37824 cat >conftest.$ac_ext <<_ACEOF
37825/* confdefs.h. */
37826_ACEOF
37827cat confdefs.h >>conftest.$ac_ext
37828cat >>conftest.$ac_ext <<_ACEOF
37829/* end confdefs.h. */
ac1cb8d3
VS
37830/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37832#define sched_yield innocuous_sched_yield
37833
a848cd7e
SC
37834/* System header to define __stub macros and hopefully few prototypes,
37835 which can conflict with char sched_yield (); below.
37836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37837 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37838
a848cd7e
SC
37839#ifdef __STDC__
37840# include <limits.h>
37841#else
37842# include <assert.h>
37843#endif
ac1cb8d3
VS
37844
37845#undef sched_yield
37846
a848cd7e
SC
37847/* Override any gcc2 internal prototype to avoid an error. */
37848#ifdef __cplusplus
37849extern "C"
37850{
37851#endif
37852/* We use char because int might match the return type of a gcc2
37853 builtin and then its argument prototype would still apply. */
37854char sched_yield ();
37855/* The GNU C library defines this for functions which it implements
37856 to always fail with ENOSYS. Some functions are actually named
37857 something starting with __ and the normal name is an alias. */
37858#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37859choke me
37860#else
37861char (*f) () = sched_yield;
37862#endif
37863#ifdef __cplusplus
37864}
37865#endif
37866
37867int
37868main ()
37869{
37870return f != sched_yield;
37871 ;
37872 return 0;
37873}
37874_ACEOF
37875rm -f conftest.$ac_objext conftest$ac_exeext
37876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37877 (eval $ac_link) 2>conftest.er1
a848cd7e 37878 ac_status=$?
ac1cb8d3
VS
37879 grep -v '^ *+' conftest.er1 >conftest.err
37880 rm -f conftest.er1
37881 cat conftest.err >&5
a848cd7e
SC
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883 (exit $ac_status); } &&
d25774ab
JS
37884 { ac_try='test -z "$ac_cxx_werror_flag"
37885 || test ! -s conftest.err'
ac1cb8d3
VS
37886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37887 (eval $ac_try) 2>&5
37888 ac_status=$?
37889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37890 (exit $ac_status); }; } &&
37891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37893 (eval $ac_try) 2>&5
37894 ac_status=$?
37895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896 (exit $ac_status); }; }; then
37897 ac_cv_func_sched_yield=yes
37898else
37899 echo "$as_me: failed program was:" >&5
37900sed 's/^/| /' conftest.$ac_ext >&5
37901
37902ac_cv_func_sched_yield=no
37903fi
ac1cb8d3
VS
37904rm -f conftest.err conftest.$ac_objext \
37905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37906fi
37907echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37908echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37909if test $ac_cv_func_sched_yield = yes; then
37910 cat >>confdefs.h <<\_ACEOF
37911#define HAVE_SCHED_YIELD 1
37912_ACEOF
37913
37914else
37915
37916 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37917echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37918if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37919 echo $ECHO_N "(cached) $ECHO_C" >&6
37920else
37921 ac_check_lib_save_LIBS=$LIBS
37922LIBS="-lposix4 $LIBS"
37923cat >conftest.$ac_ext <<_ACEOF
37924/* confdefs.h. */
37925_ACEOF
37926cat confdefs.h >>conftest.$ac_ext
37927cat >>conftest.$ac_ext <<_ACEOF
37928/* end confdefs.h. */
37929
37930/* Override any gcc2 internal prototype to avoid an error. */
37931#ifdef __cplusplus
37932extern "C"
37933#endif
37934/* We use char because int might match the return type of a gcc2
37935 builtin and then its argument prototype would still apply. */
37936char sched_yield ();
37937int
37938main ()
37939{
37940sched_yield ();
37941 ;
37942 return 0;
37943}
37944_ACEOF
37945rm -f conftest.$ac_objext conftest$ac_exeext
37946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37947 (eval $ac_link) 2>conftest.er1
a848cd7e 37948 ac_status=$?
ac1cb8d3
VS
37949 grep -v '^ *+' conftest.er1 >conftest.err
37950 rm -f conftest.er1
37951 cat conftest.err >&5
a848cd7e
SC
37952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953 (exit $ac_status); } &&
d25774ab
JS
37954 { ac_try='test -z "$ac_cxx_werror_flag"
37955 || test ! -s conftest.err'
ac1cb8d3
VS
37956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37957 (eval $ac_try) 2>&5
37958 ac_status=$?
37959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37960 (exit $ac_status); }; } &&
37961 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37963 (eval $ac_try) 2>&5
37964 ac_status=$?
37965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37966 (exit $ac_status); }; }; then
37967 ac_cv_lib_posix4_sched_yield=yes
37968else
37969 echo "$as_me: failed program was:" >&5
37970sed 's/^/| /' conftest.$ac_ext >&5
37971
37972ac_cv_lib_posix4_sched_yield=no
37973fi
ac1cb8d3
VS
37974rm -f conftest.err conftest.$ac_objext \
37975 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37976LIBS=$ac_check_lib_save_LIBS
37977fi
37978echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37979echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37980if test $ac_cv_lib_posix4_sched_yield = yes; then
37981 cat >>confdefs.h <<\_ACEOF
37982#define HAVE_SCHED_YIELD 1
37983_ACEOF
37984 POSIX4_LINK=" -lposix4"
37985else
37986 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37987echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37988
37989fi
37990
37991
37992
37993fi
37994
37995 fi
37996
37997 HAVE_PRIOR_FUNCS=0
37998 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37999echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38000if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38001 echo $ECHO_N "(cached) $ECHO_C" >&6
38002else
38003 cat >conftest.$ac_ext <<_ACEOF
38004/* confdefs.h. */
38005_ACEOF
38006cat confdefs.h >>conftest.$ac_ext
38007cat >>conftest.$ac_ext <<_ACEOF
38008/* end confdefs.h. */
ac1cb8d3
VS
38009/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38011#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38012
a848cd7e
SC
38013/* System header to define __stub macros and hopefully few prototypes,
38014 which can conflict with char pthread_attr_getschedpolicy (); below.
38015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38016 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38017
a848cd7e
SC
38018#ifdef __STDC__
38019# include <limits.h>
38020#else
38021# include <assert.h>
38022#endif
ac1cb8d3
VS
38023
38024#undef pthread_attr_getschedpolicy
38025
a848cd7e
SC
38026/* Override any gcc2 internal prototype to avoid an error. */
38027#ifdef __cplusplus
38028extern "C"
38029{
38030#endif
38031/* We use char because int might match the return type of a gcc2
38032 builtin and then its argument prototype would still apply. */
38033char pthread_attr_getschedpolicy ();
38034/* The GNU C library defines this for functions which it implements
38035 to always fail with ENOSYS. Some functions are actually named
38036 something starting with __ and the normal name is an alias. */
38037#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38038choke me
38039#else
38040char (*f) () = pthread_attr_getschedpolicy;
38041#endif
38042#ifdef __cplusplus
38043}
38044#endif
38045
38046int
38047main ()
38048{
38049return f != pthread_attr_getschedpolicy;
38050 ;
38051 return 0;
38052}
38053_ACEOF
38054rm -f conftest.$ac_objext conftest$ac_exeext
38055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38056 (eval $ac_link) 2>conftest.er1
a848cd7e 38057 ac_status=$?
ac1cb8d3
VS
38058 grep -v '^ *+' conftest.er1 >conftest.err
38059 rm -f conftest.er1
38060 cat conftest.err >&5
a848cd7e
SC
38061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38062 (exit $ac_status); } &&
d25774ab
JS
38063 { ac_try='test -z "$ac_cxx_werror_flag"
38064 || test ! -s conftest.err'
ac1cb8d3
VS
38065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38066 (eval $ac_try) 2>&5
38067 ac_status=$?
38068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069 (exit $ac_status); }; } &&
38070 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38072 (eval $ac_try) 2>&5
38073 ac_status=$?
38074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38075 (exit $ac_status); }; }; then
38076 ac_cv_func_pthread_attr_getschedpolicy=yes
38077else
38078 echo "$as_me: failed program was:" >&5
38079sed 's/^/| /' conftest.$ac_ext >&5
38080
38081ac_cv_func_pthread_attr_getschedpolicy=no
38082fi
ac1cb8d3
VS
38083rm -f conftest.err conftest.$ac_objext \
38084 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38085fi
38086echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38087echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38088if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38089 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38090echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38091if test "${ac_cv_func_pthread_attr_setschedparam+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_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38102#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38103
a848cd7e
SC
38104/* System header to define __stub macros and hopefully few prototypes,
38105 which can conflict with char pthread_attr_setschedparam (); 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_attr_setschedparam
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_attr_setschedparam ();
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_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38129choke me
38130#else
38131char (*f) () = pthread_attr_setschedparam;
38132#endif
38133#ifdef __cplusplus
38134}
38135#endif
38136
38137int
38138main ()
38139{
38140return f != pthread_attr_setschedparam;
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); } &&
d25774ab
JS
38154 { ac_try='test -z "$ac_cxx_werror_flag"
38155 || test ! -s conftest.err'
ac1cb8d3
VS
38156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38157 (eval $ac_try) 2>&5
38158 ac_status=$?
38159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38160 (exit $ac_status); }; } &&
38161 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38163 (eval $ac_try) 2>&5
38164 ac_status=$?
38165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38166 (exit $ac_status); }; }; then
38167 ac_cv_func_pthread_attr_setschedparam=yes
38168else
38169 echo "$as_me: failed program was:" >&5
38170sed 's/^/| /' conftest.$ac_ext >&5
38171
38172ac_cv_func_pthread_attr_setschedparam=no
38173fi
ac1cb8d3
VS
38174rm -f conftest.err conftest.$ac_objext \
38175 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38176fi
38177echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38178echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38179if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38180 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38181echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38182if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38183 echo $ECHO_N "(cached) $ECHO_C" >&6
38184else
38185 cat >conftest.$ac_ext <<_ACEOF
38186/* confdefs.h. */
38187_ACEOF
38188cat confdefs.h >>conftest.$ac_ext
38189cat >>conftest.$ac_ext <<_ACEOF
38190/* end confdefs.h. */
ac1cb8d3
VS
38191/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38193#define sched_get_priority_max innocuous_sched_get_priority_max
38194
a848cd7e
SC
38195/* System header to define __stub macros and hopefully few prototypes,
38196 which can conflict with char sched_get_priority_max (); below.
38197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38198 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38199
a848cd7e
SC
38200#ifdef __STDC__
38201# include <limits.h>
38202#else
38203# include <assert.h>
38204#endif
ac1cb8d3
VS
38205
38206#undef sched_get_priority_max
38207
a848cd7e
SC
38208/* Override any gcc2 internal prototype to avoid an error. */
38209#ifdef __cplusplus
38210extern "C"
38211{
38212#endif
38213/* We use char because int might match the return type of a gcc2
38214 builtin and then its argument prototype would still apply. */
38215char sched_get_priority_max ();
38216/* The GNU C library defines this for functions which it implements
38217 to always fail with ENOSYS. Some functions are actually named
38218 something starting with __ and the normal name is an alias. */
38219#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38220choke me
38221#else
38222char (*f) () = sched_get_priority_max;
38223#endif
38224#ifdef __cplusplus
38225}
38226#endif
38227
38228int
38229main ()
38230{
38231return f != sched_get_priority_max;
38232 ;
38233 return 0;
38234}
38235_ACEOF
38236rm -f conftest.$ac_objext conftest$ac_exeext
38237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38238 (eval $ac_link) 2>conftest.er1
a848cd7e 38239 ac_status=$?
ac1cb8d3
VS
38240 grep -v '^ *+' conftest.er1 >conftest.err
38241 rm -f conftest.er1
38242 cat conftest.err >&5
a848cd7e
SC
38243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244 (exit $ac_status); } &&
d25774ab
JS
38245 { ac_try='test -z "$ac_cxx_werror_flag"
38246 || test ! -s conftest.err'
ac1cb8d3
VS
38247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38248 (eval $ac_try) 2>&5
38249 ac_status=$?
38250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38251 (exit $ac_status); }; } &&
38252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38254 (eval $ac_try) 2>&5
38255 ac_status=$?
38256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38257 (exit $ac_status); }; }; then
38258 ac_cv_func_sched_get_priority_max=yes
38259else
38260 echo "$as_me: failed program was:" >&5
38261sed 's/^/| /' conftest.$ac_ext >&5
38262
38263ac_cv_func_sched_get_priority_max=no
38264fi
ac1cb8d3
VS
38265rm -f conftest.err conftest.$ac_objext \
38266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38267fi
38268echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38269echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38270if test $ac_cv_func_sched_get_priority_max = yes; then
38271 HAVE_PRIOR_FUNCS=1
38272else
38273 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38274echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38275if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38276 echo $ECHO_N "(cached) $ECHO_C" >&6
38277else
38278 ac_check_lib_save_LIBS=$LIBS
38279LIBS="-lposix4 $LIBS"
38280cat >conftest.$ac_ext <<_ACEOF
38281/* confdefs.h. */
38282_ACEOF
38283cat confdefs.h >>conftest.$ac_ext
38284cat >>conftest.$ac_ext <<_ACEOF
38285/* end confdefs.h. */
38286
38287/* Override any gcc2 internal prototype to avoid an error. */
38288#ifdef __cplusplus
38289extern "C"
38290#endif
38291/* We use char because int might match the return type of a gcc2
38292 builtin and then its argument prototype would still apply. */
38293char sched_get_priority_max ();
38294int
38295main ()
38296{
38297sched_get_priority_max ();
38298 ;
38299 return 0;
38300}
38301_ACEOF
38302rm -f conftest.$ac_objext conftest$ac_exeext
38303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38304 (eval $ac_link) 2>conftest.er1
a848cd7e 38305 ac_status=$?
ac1cb8d3
VS
38306 grep -v '^ *+' conftest.er1 >conftest.err
38307 rm -f conftest.er1
38308 cat conftest.err >&5
a848cd7e
SC
38309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38310 (exit $ac_status); } &&
d25774ab
JS
38311 { ac_try='test -z "$ac_cxx_werror_flag"
38312 || test ! -s conftest.err'
ac1cb8d3
VS
38313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38314 (eval $ac_try) 2>&5
38315 ac_status=$?
38316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38317 (exit $ac_status); }; } &&
38318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38320 (eval $ac_try) 2>&5
38321 ac_status=$?
38322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38323 (exit $ac_status); }; }; then
38324 ac_cv_lib_posix4_sched_get_priority_max=yes
38325else
38326 echo "$as_me: failed program was:" >&5
38327sed 's/^/| /' conftest.$ac_ext >&5
38328
38329ac_cv_lib_posix4_sched_get_priority_max=no
38330fi
ac1cb8d3
VS
38331rm -f conftest.err conftest.$ac_objext \
38332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38333LIBS=$ac_check_lib_save_LIBS
38334fi
38335echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38336echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38337if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38338
38339 HAVE_PRIOR_FUNCS=1
38340 POSIX4_LINK=" -lposix4"
38341
38342fi
38343
38344
38345fi
38346
38347
38348fi
38349
38350
38351fi
38352
38353
38354 if test "$HAVE_PRIOR_FUNCS" = 1; then
38355 cat >>confdefs.h <<\_ACEOF
38356#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38357_ACEOF
38358
38359 else
38360 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38361echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38362 fi
38363
38364 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38365echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38366if test "${ac_cv_func_pthread_cancel+set}" = set; then
38367 echo $ECHO_N "(cached) $ECHO_C" >&6
38368else
38369 cat >conftest.$ac_ext <<_ACEOF
38370/* confdefs.h. */
38371_ACEOF
38372cat confdefs.h >>conftest.$ac_ext
38373cat >>conftest.$ac_ext <<_ACEOF
38374/* end confdefs.h. */
ac1cb8d3
VS
38375/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38377#define pthread_cancel innocuous_pthread_cancel
38378
a848cd7e
SC
38379/* System header to define __stub macros and hopefully few prototypes,
38380 which can conflict with char pthread_cancel (); below.
38381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38382 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38383
a848cd7e
SC
38384#ifdef __STDC__
38385# include <limits.h>
38386#else
38387# include <assert.h>
38388#endif
ac1cb8d3
VS
38389
38390#undef pthread_cancel
38391
a848cd7e
SC
38392/* Override any gcc2 internal prototype to avoid an error. */
38393#ifdef __cplusplus
38394extern "C"
38395{
38396#endif
38397/* We use char because int might match the return type of a gcc2
38398 builtin and then its argument prototype would still apply. */
38399char pthread_cancel ();
38400/* The GNU C library defines this for functions which it implements
38401 to always fail with ENOSYS. Some functions are actually named
38402 something starting with __ and the normal name is an alias. */
38403#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38404choke me
38405#else
38406char (*f) () = pthread_cancel;
38407#endif
38408#ifdef __cplusplus
38409}
38410#endif
38411
38412int
38413main ()
38414{
38415return f != pthread_cancel;
38416 ;
38417 return 0;
38418}
38419_ACEOF
38420rm -f conftest.$ac_objext conftest$ac_exeext
38421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38422 (eval $ac_link) 2>conftest.er1
a848cd7e 38423 ac_status=$?
ac1cb8d3
VS
38424 grep -v '^ *+' conftest.er1 >conftest.err
38425 rm -f conftest.er1
38426 cat conftest.err >&5
a848cd7e
SC
38427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38428 (exit $ac_status); } &&
d25774ab
JS
38429 { ac_try='test -z "$ac_cxx_werror_flag"
38430 || test ! -s conftest.err'
ac1cb8d3
VS
38431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38432 (eval $ac_try) 2>&5
38433 ac_status=$?
38434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435 (exit $ac_status); }; } &&
38436 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38438 (eval $ac_try) 2>&5
38439 ac_status=$?
38440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38441 (exit $ac_status); }; }; then
38442 ac_cv_func_pthread_cancel=yes
38443else
38444 echo "$as_me: failed program was:" >&5
38445sed 's/^/| /' conftest.$ac_ext >&5
38446
38447ac_cv_func_pthread_cancel=no
38448fi
ac1cb8d3
VS
38449rm -f conftest.err conftest.$ac_objext \
38450 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38451fi
38452echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38453echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38454if test $ac_cv_func_pthread_cancel = yes; then
38455 cat >>confdefs.h <<\_ACEOF
38456#define HAVE_PTHREAD_CANCEL 1
38457_ACEOF
38458
38459else
38460 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38461echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38462fi
38463
38464
abc736fd
MW
38465 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38466echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38467if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38468 echo $ECHO_N "(cached) $ECHO_C" >&6
38469else
38470 cat >conftest.$ac_ext <<_ACEOF
38471/* confdefs.h. */
38472_ACEOF
38473cat confdefs.h >>conftest.$ac_ext
38474cat >>conftest.$ac_ext <<_ACEOF
38475/* end confdefs.h. */
38476/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38478#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38479
38480/* System header to define __stub macros and hopefully few prototypes,
38481 which can conflict with char pthread_attr_setstacksize (); below.
38482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38483 <limits.h> exists even on freestanding compilers. */
38484
38485#ifdef __STDC__
38486# include <limits.h>
38487#else
38488# include <assert.h>
38489#endif
38490
38491#undef pthread_attr_setstacksize
38492
38493/* Override any gcc2 internal prototype to avoid an error. */
38494#ifdef __cplusplus
38495extern "C"
38496{
38497#endif
38498/* We use char because int might match the return type of a gcc2
38499 builtin and then its argument prototype would still apply. */
38500char pthread_attr_setstacksize ();
38501/* The GNU C library defines this for functions which it implements
38502 to always fail with ENOSYS. Some functions are actually named
38503 something starting with __ and the normal name is an alias. */
38504#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38505choke me
38506#else
38507char (*f) () = pthread_attr_setstacksize;
38508#endif
38509#ifdef __cplusplus
38510}
38511#endif
38512
38513int
38514main ()
38515{
38516return f != pthread_attr_setstacksize;
38517 ;
38518 return 0;
38519}
38520_ACEOF
38521rm -f conftest.$ac_objext conftest$ac_exeext
38522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38523 (eval $ac_link) 2>conftest.er1
38524 ac_status=$?
38525 grep -v '^ *+' conftest.er1 >conftest.err
38526 rm -f conftest.er1
38527 cat conftest.err >&5
38528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38529 (exit $ac_status); } &&
d25774ab
JS
38530 { ac_try='test -z "$ac_cxx_werror_flag"
38531 || test ! -s conftest.err'
abc736fd
MW
38532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38533 (eval $ac_try) 2>&5
38534 ac_status=$?
38535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536 (exit $ac_status); }; } &&
38537 { ac_try='test -s conftest$ac_exeext'
38538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38539 (eval $ac_try) 2>&5
38540 ac_status=$?
38541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38542 (exit $ac_status); }; }; then
38543 ac_cv_func_pthread_attr_setstacksize=yes
38544else
38545 echo "$as_me: failed program was:" >&5
38546sed 's/^/| /' conftest.$ac_ext >&5
38547
38548ac_cv_func_pthread_attr_setstacksize=no
38549fi
38550rm -f conftest.err conftest.$ac_objext \
38551 conftest$ac_exeext conftest.$ac_ext
38552fi
38553echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38554echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38555if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38556 cat >>confdefs.h <<\_ACEOF
38557#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38558_ACEOF
38559
38560fi
38561
a848cd7e
SC
38562
38563
38564 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38565echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38566if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38567 echo $ECHO_N "(cached) $ECHO_C" >&6
38568else
38569
38570 cat >conftest.$ac_ext <<_ACEOF
38571/* confdefs.h. */
38572_ACEOF
38573cat confdefs.h >>conftest.$ac_ext
38574cat >>conftest.$ac_ext <<_ACEOF
38575/* end confdefs.h. */
38576#include <pthread.h>
38577int
38578main ()
38579{
38580
38581 pthread_mutexattr_t attr;
38582 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38583
38584 ;
38585 return 0;
38586}
38587_ACEOF
38588rm -f conftest.$ac_objext
38589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38590 (eval $ac_compile) 2>conftest.er1
a848cd7e 38591 ac_status=$?
ac1cb8d3
VS
38592 grep -v '^ *+' conftest.er1 >conftest.err
38593 rm -f conftest.er1
38594 cat conftest.err >&5
a848cd7e
SC
38595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38596 (exit $ac_status); } &&
d25774ab
JS
38597 { ac_try='test -z "$ac_cxx_werror_flag"
38598 || test ! -s conftest.err'
ac1cb8d3
VS
38599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38600 (eval $ac_try) 2>&5
38601 ac_status=$?
38602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603 (exit $ac_status); }; } &&
38604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38606 (eval $ac_try) 2>&5
38607 ac_status=$?
38608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38609 (exit $ac_status); }; }; then
123dca7d 38610 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38611else
38612 echo "$as_me: failed program was:" >&5
38613sed 's/^/| /' conftest.$ac_ext >&5
38614
123dca7d 38615wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38616
38617fi
ac1cb8d3 38618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38619
38620fi
38621echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38622echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38623
38624 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38625 cat >>confdefs.h <<\_ACEOF
38626#define HAVE_PTHREAD_MUTEXATTR_T 1
38627_ACEOF
38628
123dca7d
VZ
38629
38630 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38631echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38632if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38633 echo $ECHO_N "(cached) $ECHO_C" >&6
38634else
38635
38636 cat >conftest.$ac_ext <<_ACEOF
38637/* confdefs.h. */
38638_ACEOF
38639cat confdefs.h >>conftest.$ac_ext
38640cat >>conftest.$ac_ext <<_ACEOF
38641/* end confdefs.h. */
38642#include <pthread.h>
38643int
38644main ()
38645{
38646
38647 pthread_mutexattr_t attr;
38648 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38649
38650 ;
38651 return 0;
38652}
38653_ACEOF
38654rm -f conftest.$ac_objext
38655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38656 (eval $ac_compile) 2>conftest.er1
38657 ac_status=$?
38658 grep -v '^ *+' conftest.er1 >conftest.err
38659 rm -f conftest.er1
38660 cat conftest.err >&5
38661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38662 (exit $ac_status); } &&
d25774ab
JS
38663 { ac_try='test -z "$ac_cxx_werror_flag"
38664 || test ! -s conftest.err'
123dca7d
VZ
38665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38666 (eval $ac_try) 2>&5
38667 ac_status=$?
38668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669 (exit $ac_status); }; } &&
38670 { ac_try='test -s conftest.$ac_objext'
38671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38672 (eval $ac_try) 2>&5
38673 ac_status=$?
38674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38675 (exit $ac_status); }; }; then
38676 wx_cv_func_pthread_mutexattr_settype_decl=yes
38677else
38678 echo "$as_me: failed program was:" >&5
38679sed 's/^/| /' conftest.$ac_ext >&5
38680
38681wx_cv_func_pthread_mutexattr_settype_decl=no
38682
38683fi
38684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38685
38686fi
38687echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38688echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38689 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38690 cat >>confdefs.h <<\_ACEOF
38691#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38692_ACEOF
38693
38694 fi
a848cd7e
SC
38695 else
38696 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38697echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38698if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38699 echo $ECHO_N "(cached) $ECHO_C" >&6
38700else
38701
38702 cat >conftest.$ac_ext <<_ACEOF
38703/* confdefs.h. */
38704_ACEOF
38705cat confdefs.h >>conftest.$ac_ext
38706cat >>conftest.$ac_ext <<_ACEOF
38707/* end confdefs.h. */
38708#include <pthread.h>
38709int
38710main ()
38711{
38712
38713 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38714
38715 ;
38716 return 0;
38717}
38718_ACEOF
38719rm -f conftest.$ac_objext
38720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38721 (eval $ac_compile) 2>conftest.er1
a848cd7e 38722 ac_status=$?
ac1cb8d3
VS
38723 grep -v '^ *+' conftest.er1 >conftest.err
38724 rm -f conftest.er1
38725 cat conftest.err >&5
a848cd7e
SC
38726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727 (exit $ac_status); } &&
d25774ab
JS
38728 { ac_try='test -z "$ac_cxx_werror_flag"
38729 || test ! -s conftest.err'
ac1cb8d3
VS
38730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38731 (eval $ac_try) 2>&5
38732 ac_status=$?
38733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734 (exit $ac_status); }; } &&
38735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38737 (eval $ac_try) 2>&5
38738 ac_status=$?
38739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38740 (exit $ac_status); }; }; then
38741
38742 wx_cv_type_pthread_rec_mutex_init=yes
38743
38744else
38745 echo "$as_me: failed program was:" >&5
38746sed 's/^/| /' conftest.$ac_ext >&5
38747
38748
38749 wx_cv_type_pthread_rec_mutex_init=no
38750
38751
38752fi
ac1cb8d3 38753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38754
38755fi
38756echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38757echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38758 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38759 cat >>confdefs.h <<\_ACEOF
38760#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38761_ACEOF
38762
38763 else
38764 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38765echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38766 fi
38767 fi
38768 fi
38769
38770else
38771 if test "$wxUSE_THREADS" = "yes" ; then
38772 case "${host}" in
38773 *-*-mingw32* )
38774 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38775echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38776if test "${wx_cv_cflags_mthread+set}" = set; then
38777 echo $ECHO_N "(cached) $ECHO_C" >&6
38778else
38779
e56f4f9e
VZ
38780 CXXFLAGS_OLD="$CXXFLAGS"
38781 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
38782 cat >conftest.$ac_ext <<_ACEOF
38783/* confdefs.h. */
38784_ACEOF
38785cat confdefs.h >>conftest.$ac_ext
38786cat >>conftest.$ac_ext <<_ACEOF
38787/* end confdefs.h. */
38788
38789int
38790main ()
38791{
38792
38793 ;
38794 return 0;
38795}
38796_ACEOF
38797rm -f conftest.$ac_objext
38798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38799 (eval $ac_compile) 2>conftest.er1
a848cd7e 38800 ac_status=$?
ac1cb8d3
VS
38801 grep -v '^ *+' conftest.er1 >conftest.err
38802 rm -f conftest.er1
38803 cat conftest.err >&5
a848cd7e
SC
38804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805 (exit $ac_status); } &&
d25774ab
JS
38806 { ac_try='test -z "$ac_cxx_werror_flag"
38807 || test ! -s conftest.err'
ac1cb8d3
VS
38808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38809 (eval $ac_try) 2>&5
38810 ac_status=$?
38811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38812 (exit $ac_status); }; } &&
38813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38815 (eval $ac_try) 2>&5
38816 ac_status=$?
38817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38818 (exit $ac_status); }; }; then
38819 wx_cv_cflags_mthread=yes
38820else
38821 echo "$as_me: failed program was:" >&5
38822sed 's/^/| /' conftest.$ac_ext >&5
38823
38824wx_cv_cflags_mthread=no
38825
38826fi
ac1cb8d3 38827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38828
38829
38830fi
38831echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38832echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38833
38834 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 38835 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
38836 LDFLAGS="$LDFLAGS -mthreads"
38837 else
e56f4f9e 38838 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
38839 fi
38840 ;;
38841 *-pc-os2*emx )
5ff751d6
VZ
38842 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38843 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38844 LDFLAGS="$LDFLAGS -Zmt"
38845 ;;
38846 esac
38847 fi
38848fi
38849
004ee6da
RL
38850echo "$as_me:$LINENO: checking for localtime_r" >&5
38851echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38852if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38853 echo $ECHO_N "(cached) $ECHO_C" >&6
38854else
38855 cat >conftest.$ac_ext <<_ACEOF
38856/* confdefs.h. */
38857_ACEOF
38858cat confdefs.h >>conftest.$ac_ext
38859cat >>conftest.$ac_ext <<_ACEOF
38860/* end confdefs.h. */
004ee6da 38861/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38863#define localtime_r innocuous_localtime_r
ac1cb8d3 38864
a848cd7e 38865/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38866 which can conflict with char localtime_r (); below.
a848cd7e
SC
38867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38868 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38869
a848cd7e
SC
38870#ifdef __STDC__
38871# include <limits.h>
38872#else
38873# include <assert.h>
38874#endif
ac1cb8d3 38875
004ee6da 38876#undef localtime_r
ac1cb8d3 38877
a848cd7e
SC
38878/* Override any gcc2 internal prototype to avoid an error. */
38879#ifdef __cplusplus
38880extern "C"
38881{
38882#endif
38883/* We use char because int might match the return type of a gcc2
38884 builtin and then its argument prototype would still apply. */
004ee6da 38885char localtime_r ();
a848cd7e
SC
38886/* The GNU C library defines this for functions which it implements
38887 to always fail with ENOSYS. Some functions are actually named
38888 something starting with __ and the normal name is an alias. */
004ee6da 38889#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38890choke me
38891#else
004ee6da 38892char (*f) () = localtime_r;
a848cd7e
SC
38893#endif
38894#ifdef __cplusplus
38895}
38896#endif
38897
38898int
38899main ()
38900{
004ee6da
RL
38901return f != localtime_r;
38902 ;
38903 return 0;
38904}
38905_ACEOF
38906rm -f conftest.$ac_objext conftest$ac_exeext
38907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38908 (eval $ac_link) 2>conftest.er1
38909 ac_status=$?
38910 grep -v '^ *+' conftest.er1 >conftest.err
38911 rm -f conftest.er1
38912 cat conftest.err >&5
38913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38914 (exit $ac_status); } &&
d25774ab
JS
38915 { ac_try='test -z "$ac_cxx_werror_flag"
38916 || test ! -s conftest.err'
004ee6da
RL
38917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38918 (eval $ac_try) 2>&5
38919 ac_status=$?
38920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38921 (exit $ac_status); }; } &&
38922 { ac_try='test -s conftest$ac_exeext'
38923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38924 (eval $ac_try) 2>&5
38925 ac_status=$?
38926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38927 (exit $ac_status); }; }; then
38928 ac_cv_func_localtime_r=yes
38929else
38930 echo "$as_me: failed program was:" >&5
38931sed 's/^/| /' conftest.$ac_ext >&5
38932
38933ac_cv_func_localtime_r=no
38934fi
38935rm -f conftest.err conftest.$ac_objext \
38936 conftest$ac_exeext conftest.$ac_ext
38937fi
38938echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38939echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38940if test $ac_cv_func_localtime_r = yes; then
38941 cat >>confdefs.h <<\_ACEOF
38942#define HAVE_LOCALTIME_R 1
38943_ACEOF
38944
38945fi
38946
38947echo "$as_me:$LINENO: checking for gmtime_r" >&5
38948echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38949if test "${ac_cv_func_gmtime_r+set}" = set; then
38950 echo $ECHO_N "(cached) $ECHO_C" >&6
38951else
38952 cat >conftest.$ac_ext <<_ACEOF
38953/* confdefs.h. */
38954_ACEOF
38955cat confdefs.h >>conftest.$ac_ext
38956cat >>conftest.$ac_ext <<_ACEOF
38957/* end confdefs.h. */
38958/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38960#define gmtime_r innocuous_gmtime_r
38961
38962/* System header to define __stub macros and hopefully few prototypes,
38963 which can conflict with char gmtime_r (); below.
38964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38965 <limits.h> exists even on freestanding compilers. */
38966
38967#ifdef __STDC__
38968# include <limits.h>
38969#else
38970# include <assert.h>
38971#endif
38972
38973#undef gmtime_r
38974
38975/* Override any gcc2 internal prototype to avoid an error. */
38976#ifdef __cplusplus
38977extern "C"
38978{
38979#endif
38980/* We use char because int might match the return type of a gcc2
38981 builtin and then its argument prototype would still apply. */
38982char gmtime_r ();
38983/* The GNU C library defines this for functions which it implements
38984 to always fail with ENOSYS. Some functions are actually named
38985 something starting with __ and the normal name is an alias. */
38986#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38987choke me
38988#else
38989char (*f) () = gmtime_r;
38990#endif
38991#ifdef __cplusplus
38992}
38993#endif
38994
38995int
38996main ()
38997{
38998return f != gmtime_r;
38999 ;
39000 return 0;
39001}
39002_ACEOF
39003rm -f conftest.$ac_objext conftest$ac_exeext
39004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39005 (eval $ac_link) 2>conftest.er1
39006 ac_status=$?
39007 grep -v '^ *+' conftest.er1 >conftest.err
39008 rm -f conftest.er1
39009 cat conftest.err >&5
39010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39011 (exit $ac_status); } &&
d25774ab
JS
39012 { ac_try='test -z "$ac_cxx_werror_flag"
39013 || test ! -s conftest.err'
004ee6da
RL
39014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39015 (eval $ac_try) 2>&5
39016 ac_status=$?
39017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39018 (exit $ac_status); }; } &&
39019 { ac_try='test -s conftest$ac_exeext'
39020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39021 (eval $ac_try) 2>&5
39022 ac_status=$?
39023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39024 (exit $ac_status); }; }; then
39025 ac_cv_func_gmtime_r=yes
39026else
39027 echo "$as_me: failed program was:" >&5
39028sed 's/^/| /' conftest.$ac_ext >&5
39029
39030ac_cv_func_gmtime_r=no
39031fi
39032rm -f conftest.err conftest.$ac_objext \
39033 conftest$ac_exeext conftest.$ac_ext
39034fi
39035echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39036echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39037if test $ac_cv_func_gmtime_r = yes; then
39038 cat >>confdefs.h <<\_ACEOF
39039#define HAVE_GMTIME_R 1
39040_ACEOF
39041
39042fi
39043
39044echo "$as_me:$LINENO: checking for readdir_r" >&5
39045echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39046if test "${ac_cv_func_readdir_r+set}" = set; then
39047 echo $ECHO_N "(cached) $ECHO_C" >&6
39048else
39049 cat >conftest.$ac_ext <<_ACEOF
39050/* confdefs.h. */
39051_ACEOF
39052cat confdefs.h >>conftest.$ac_ext
39053cat >>conftest.$ac_ext <<_ACEOF
39054/* end confdefs.h. */
39055/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39057#define readdir_r innocuous_readdir_r
39058
39059/* System header to define __stub macros and hopefully few prototypes,
39060 which can conflict with char readdir_r (); below.
39061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39062 <limits.h> exists even on freestanding compilers. */
39063
39064#ifdef __STDC__
39065# include <limits.h>
39066#else
39067# include <assert.h>
39068#endif
39069
39070#undef readdir_r
39071
39072/* Override any gcc2 internal prototype to avoid an error. */
39073#ifdef __cplusplus
39074extern "C"
39075{
39076#endif
39077/* We use char because int might match the return type of a gcc2
39078 builtin and then its argument prototype would still apply. */
39079char readdir_r ();
39080/* The GNU C library defines this for functions which it implements
39081 to always fail with ENOSYS. Some functions are actually named
39082 something starting with __ and the normal name is an alias. */
39083#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39084choke me
39085#else
39086char (*f) () = readdir_r;
39087#endif
39088#ifdef __cplusplus
39089}
39090#endif
39091
39092int
39093main ()
39094{
39095return f != readdir_r;
39096 ;
39097 return 0;
39098}
39099_ACEOF
39100rm -f conftest.$ac_objext conftest$ac_exeext
39101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39102 (eval $ac_link) 2>conftest.er1
39103 ac_status=$?
39104 grep -v '^ *+' conftest.er1 >conftest.err
39105 rm -f conftest.er1
39106 cat conftest.err >&5
39107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39108 (exit $ac_status); } &&
d25774ab
JS
39109 { ac_try='test -z "$ac_cxx_werror_flag"
39110 || test ! -s conftest.err'
004ee6da
RL
39111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39112 (eval $ac_try) 2>&5
39113 ac_status=$?
39114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39115 (exit $ac_status); }; } &&
39116 { ac_try='test -s conftest$ac_exeext'
39117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39118 (eval $ac_try) 2>&5
39119 ac_status=$?
39120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121 (exit $ac_status); }; }; then
39122 ac_cv_func_readdir_r=yes
39123else
39124 echo "$as_me: failed program was:" >&5
39125sed 's/^/| /' conftest.$ac_ext >&5
39126
39127ac_cv_func_readdir_r=no
39128fi
39129rm -f conftest.err conftest.$ac_objext \
39130 conftest$ac_exeext conftest.$ac_ext
39131fi
39132echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39133echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39134if test $ac_cv_func_readdir_r = yes; then
39135 cat >>confdefs.h <<\_ACEOF
39136#define HAVE_READDIR_R 1
39137_ACEOF
39138
39139fi
39140
004ee6da 39141
004ee6da
RL
39142
39143
39144 ac_ext=c
39145ac_cpp='$CPP $CPPFLAGS'
39146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39148ac_compiler_gnu=$ac_cv_c_compiler_gnu
39149
39150 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39151echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39152
39153 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39154 echo $ECHO_N "(cached) $ECHO_C" >&6
39155else
39156
39157
39158################################################################
39159
39160ac_cv_func_which_gethostbyname_r=unknown
39161
39162#
39163# ONE ARGUMENT (sanity check)
39164#
39165
39166# This should fail, as there is no variant of gethostbyname_r() that takes
39167# a single argument. If it actually compiles, then we can assume that
39168# netdb.h is not declaring the function, and the compiler is thereby
39169# assuming an implicit prototype. In which case, we're out of luck.
39170#
39171cat >conftest.$ac_ext <<_ACEOF
39172/* confdefs.h. */
39173_ACEOF
39174cat confdefs.h >>conftest.$ac_ext
39175cat >>conftest.$ac_ext <<_ACEOF
39176/* end confdefs.h. */
39177#include <netdb.h>
39178int
39179main ()
39180{
39181
39182 char *name = "www.gnu.org";
39183 (void)gethostbyname_r(name) /* ; */
39184
39185 ;
39186 return 0;
39187}
39188_ACEOF
39189rm -f conftest.$ac_objext
39190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39191 (eval $ac_compile) 2>conftest.er1
39192 ac_status=$?
39193 grep -v '^ *+' conftest.er1 >conftest.err
39194 rm -f conftest.er1
39195 cat conftest.err >&5
39196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39197 (exit $ac_status); } &&
d25774ab
JS
39198 { ac_try='test -z "$ac_c_werror_flag"
39199 || test ! -s conftest.err'
004ee6da
RL
39200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39201 (eval $ac_try) 2>&5
39202 ac_status=$?
39203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39204 (exit $ac_status); }; } &&
39205 { ac_try='test -s conftest.$ac_objext'
39206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39207 (eval $ac_try) 2>&5
39208 ac_status=$?
39209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39210 (exit $ac_status); }; }; then
39211 ac_cv_func_which_gethostbyname_r=no
39212else
39213 echo "$as_me: failed program was:" >&5
39214sed 's/^/| /' conftest.$ac_ext >&5
39215
39216fi
39217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39218
39219#
39220# SIX ARGUMENTS
39221# (e.g. Linux)
39222#
39223
39224if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39225
39226cat >conftest.$ac_ext <<_ACEOF
39227/* confdefs.h. */
39228_ACEOF
39229cat confdefs.h >>conftest.$ac_ext
39230cat >>conftest.$ac_ext <<_ACEOF
39231/* end confdefs.h. */
39232#include <netdb.h>
39233int
39234main ()
39235{
39236
39237 char *name = "www.gnu.org";
39238 struct hostent ret, *retp;
39239 char buf[1024];
39240 int buflen = 1024;
39241 int my_h_errno;
39242 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39243
39244 ;
39245 return 0;
39246}
39247_ACEOF
39248rm -f conftest.$ac_objext
39249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39250 (eval $ac_compile) 2>conftest.er1
39251 ac_status=$?
39252 grep -v '^ *+' conftest.er1 >conftest.err
39253 rm -f conftest.er1
39254 cat conftest.err >&5
39255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39256 (exit $ac_status); } &&
d25774ab
JS
39257 { ac_try='test -z "$ac_c_werror_flag"
39258 || test ! -s conftest.err'
004ee6da
RL
39259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39260 (eval $ac_try) 2>&5
39261 ac_status=$?
39262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39263 (exit $ac_status); }; } &&
39264 { ac_try='test -s conftest.$ac_objext'
39265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39266 (eval $ac_try) 2>&5
39267 ac_status=$?
39268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39269 (exit $ac_status); }; }; then
39270 ac_cv_func_which_gethostbyname_r=six
39271else
39272 echo "$as_me: failed program was:" >&5
39273sed 's/^/| /' conftest.$ac_ext >&5
39274
39275fi
39276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39277
39278fi
39279
39280#
39281# FIVE ARGUMENTS
39282# (e.g. Solaris)
39283#
39284
39285if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39286
39287cat >conftest.$ac_ext <<_ACEOF
39288/* confdefs.h. */
39289_ACEOF
39290cat confdefs.h >>conftest.$ac_ext
39291cat >>conftest.$ac_ext <<_ACEOF
39292/* end confdefs.h. */
39293#include <netdb.h>
39294int
39295main ()
39296{
39297
39298 char *name = "www.gnu.org";
39299 struct hostent ret;
39300 char buf[1024];
39301 int buflen = 1024;
39302 int my_h_errno;
39303 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39304
39305 ;
39306 return 0;
39307}
39308_ACEOF
39309rm -f conftest.$ac_objext
39310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39311 (eval $ac_compile) 2>conftest.er1
39312 ac_status=$?
39313 grep -v '^ *+' conftest.er1 >conftest.err
39314 rm -f conftest.er1
39315 cat conftest.err >&5
39316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39317 (exit $ac_status); } &&
d25774ab
JS
39318 { ac_try='test -z "$ac_c_werror_flag"
39319 || test ! -s conftest.err'
004ee6da
RL
39320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39321 (eval $ac_try) 2>&5
39322 ac_status=$?
39323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39324 (exit $ac_status); }; } &&
39325 { ac_try='test -s conftest.$ac_objext'
39326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39327 (eval $ac_try) 2>&5
39328 ac_status=$?
39329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39330 (exit $ac_status); }; }; then
39331 ac_cv_func_which_gethostbyname_r=five
39332else
39333 echo "$as_me: failed program was:" >&5
39334sed 's/^/| /' conftest.$ac_ext >&5
39335
39336fi
39337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39338
39339fi
39340
39341#
39342# THREE ARGUMENTS
39343# (e.g. AIX, HP-UX, Tru64)
39344#
39345
39346if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39347
39348cat >conftest.$ac_ext <<_ACEOF
39349/* confdefs.h. */
39350_ACEOF
39351cat confdefs.h >>conftest.$ac_ext
39352cat >>conftest.$ac_ext <<_ACEOF
39353/* end confdefs.h. */
39354#include <netdb.h>
39355int
39356main ()
39357{
39358
39359 char *name = "www.gnu.org";
39360 struct hostent ret;
39361 struct hostent_data data;
39362 (void)gethostbyname_r(name, &ret, &data) /* ; */
39363
39364 ;
39365 return 0;
39366}
39367_ACEOF
39368rm -f conftest.$ac_objext
39369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39370 (eval $ac_compile) 2>conftest.er1
39371 ac_status=$?
39372 grep -v '^ *+' conftest.er1 >conftest.err
39373 rm -f conftest.er1
39374 cat conftest.err >&5
39375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39376 (exit $ac_status); } &&
d25774ab
JS
39377 { ac_try='test -z "$ac_c_werror_flag"
39378 || test ! -s conftest.err'
004ee6da
RL
39379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39380 (eval $ac_try) 2>&5
39381 ac_status=$?
39382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39383 (exit $ac_status); }; } &&
39384 { ac_try='test -s conftest.$ac_objext'
39385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39386 (eval $ac_try) 2>&5
39387 ac_status=$?
39388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389 (exit $ac_status); }; }; then
39390 ac_cv_func_which_gethostbyname_r=three
39391else
39392 echo "$as_me: failed program was:" >&5
39393sed 's/^/| /' conftest.$ac_ext >&5
39394
39395fi
39396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39397
39398fi
39399
39400################################################################
39401
39402
39403fi
39404
39405case "$ac_cv_func_which_gethostbyname_r" in
39406 three)
39407 echo "$as_me:$LINENO: result: three" >&5
39408echo "${ECHO_T}three" >&6
39409 cat >>confdefs.h <<\_ACEOF
39410#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39411_ACEOF
39412
39413 ;;
39414
39415 five)
39416 echo "$as_me:$LINENO: result: five" >&5
39417echo "${ECHO_T}five" >&6
39418 cat >>confdefs.h <<\_ACEOF
39419#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39420_ACEOF
39421
39422 ;;
39423
39424 six)
39425 echo "$as_me:$LINENO: result: six" >&5
39426echo "${ECHO_T}six" >&6
39427 cat >>confdefs.h <<\_ACEOF
39428#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39429_ACEOF
39430
39431 ;;
39432
39433 no)
39434 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39435echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39436 ;;
39437
39438 unknown)
39439 echo "$as_me:$LINENO: result: can't tell" >&5
39440echo "${ECHO_T}can't tell" >&6
39441 ;;
39442
39443 *)
39444 { { echo "$as_me:$LINENO: error: internal error" >&5
39445echo "$as_me: error: internal error" >&2;}
39446 { (exit 1); exit 1; }; }
39447 ;;
39448esac
39449
5ec3bc43
JS
39450ac_ext=cc
39451ac_cpp='$CXXCPP $CPPFLAGS'
39452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39455
39456
39457
39458 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39459 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39460 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39461echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39462if test "${ac_cv_func_gethostbyname+set}" = set; then
39463 echo $ECHO_N "(cached) $ECHO_C" >&6
39464else
39465 cat >conftest.$ac_ext <<_ACEOF
39466/* confdefs.h. */
39467_ACEOF
39468cat confdefs.h >>conftest.$ac_ext
39469cat >>conftest.$ac_ext <<_ACEOF
39470/* end confdefs.h. */
39471/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39473#define gethostbyname innocuous_gethostbyname
39474
39475/* System header to define __stub macros and hopefully few prototypes,
39476 which can conflict with char gethostbyname (); below.
39477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39478 <limits.h> exists even on freestanding compilers. */
39479
39480#ifdef __STDC__
39481# include <limits.h>
39482#else
39483# include <assert.h>
39484#endif
39485
39486#undef gethostbyname
39487
39488/* Override any gcc2 internal prototype to avoid an error. */
39489#ifdef __cplusplus
39490extern "C"
39491{
39492#endif
39493/* We use char because int might match the return type of a gcc2
39494 builtin and then its argument prototype would still apply. */
39495char gethostbyname ();
39496/* The GNU C library defines this for functions which it implements
39497 to always fail with ENOSYS. Some functions are actually named
39498 something starting with __ and the normal name is an alias. */
39499#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39500choke me
39501#else
39502char (*f) () = gethostbyname;
39503#endif
39504#ifdef __cplusplus
39505}
39506#endif
39507
39508int
39509main ()
39510{
39511return f != gethostbyname;
39512 ;
39513 return 0;
39514}
39515_ACEOF
39516rm -f conftest.$ac_objext conftest$ac_exeext
39517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39518 (eval $ac_link) 2>conftest.er1
39519 ac_status=$?
39520 grep -v '^ *+' conftest.er1 >conftest.err
39521 rm -f conftest.er1
39522 cat conftest.err >&5
39523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524 (exit $ac_status); } &&
d25774ab
JS
39525 { ac_try='test -z "$ac_cxx_werror_flag"
39526 || test ! -s conftest.err'
004ee6da
RL
39527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39528 (eval $ac_try) 2>&5
39529 ac_status=$?
39530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39531 (exit $ac_status); }; } &&
39532 { ac_try='test -s conftest$ac_exeext'
39533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39534 (eval $ac_try) 2>&5
39535 ac_status=$?
39536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39537 (exit $ac_status); }; }; then
39538 ac_cv_func_gethostbyname=yes
39539else
39540 echo "$as_me: failed program was:" >&5
39541sed 's/^/| /' conftest.$ac_ext >&5
39542
39543ac_cv_func_gethostbyname=no
39544fi
39545rm -f conftest.err conftest.$ac_objext \
39546 conftest$ac_exeext conftest.$ac_ext
39547fi
39548echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39549echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39550if test $ac_cv_func_gethostbyname = yes; then
39551 cat >>confdefs.h <<\_ACEOF
39552#define HAVE_GETHOSTBYNAME 1
39553_ACEOF
39554
39555fi
39556
39557 fi
39558 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39559echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39560if test "${ac_cv_func_getservbyname_r+set}" = set; then
39561 echo $ECHO_N "(cached) $ECHO_C" >&6
39562else
39563 cat >conftest.$ac_ext <<_ACEOF
39564/* confdefs.h. */
39565_ACEOF
39566cat confdefs.h >>conftest.$ac_ext
39567cat >>conftest.$ac_ext <<_ACEOF
39568/* end confdefs.h. */
39569/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39571#define getservbyname_r innocuous_getservbyname_r
39572
39573/* System header to define __stub macros and hopefully few prototypes,
39574 which can conflict with char getservbyname_r (); below.
39575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39576 <limits.h> exists even on freestanding compilers. */
39577
39578#ifdef __STDC__
39579# include <limits.h>
39580#else
39581# include <assert.h>
39582#endif
39583
39584#undef getservbyname_r
39585
39586/* Override any gcc2 internal prototype to avoid an error. */
39587#ifdef __cplusplus
39588extern "C"
39589{
39590#endif
39591/* We use char because int might match the return type of a gcc2
39592 builtin and then its argument prototype would still apply. */
39593char getservbyname_r ();
39594/* The GNU C library defines this for functions which it implements
39595 to always fail with ENOSYS. Some functions are actually named
39596 something starting with __ and the normal name is an alias. */
39597#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39598choke me
39599#else
39600char (*f) () = getservbyname_r;
39601#endif
39602#ifdef __cplusplus
39603}
39604#endif
39605
39606int
39607main ()
39608{
39609return f != getservbyname_r;
39610 ;
39611 return 0;
39612}
39613_ACEOF
39614rm -f conftest.$ac_objext conftest$ac_exeext
39615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39616 (eval $ac_link) 2>conftest.er1
39617 ac_status=$?
39618 grep -v '^ *+' conftest.er1 >conftest.err
39619 rm -f conftest.er1
39620 cat conftest.err >&5
39621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622 (exit $ac_status); } &&
d25774ab
JS
39623 { ac_try='test -z "$ac_cxx_werror_flag"
39624 || test ! -s conftest.err'
004ee6da
RL
39625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39626 (eval $ac_try) 2>&5
39627 ac_status=$?
39628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39629 (exit $ac_status); }; } &&
39630 { ac_try='test -s conftest$ac_exeext'
39631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39632 (eval $ac_try) 2>&5
39633 ac_status=$?
39634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39635 (exit $ac_status); }; }; then
39636 ac_cv_func_getservbyname_r=yes
39637else
39638 echo "$as_me: failed program was:" >&5
39639sed 's/^/| /' conftest.$ac_ext >&5
39640
39641ac_cv_func_getservbyname_r=no
39642fi
39643rm -f conftest.err conftest.$ac_objext \
39644 conftest$ac_exeext conftest.$ac_ext
39645fi
39646echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39647echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39648if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39649 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39650/* confdefs.h. */
39651_ACEOF
39652cat confdefs.h >>conftest.$ac_ext
39653cat >>conftest.$ac_ext <<_ACEOF
39654/* end confdefs.h. */
99879bbf 39655#include <netdb.h>
004ee6da
RL
39656int
39657main ()
39658{
39659
99879bbf
MR
39660 char *name;
39661 char *proto;
39662 struct servent *se;
39663 struct servent_data data;
39664 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39665
39666 ;
39667 return 0;
39668}
39669_ACEOF
39670rm -f conftest.$ac_objext
39671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39672 (eval $ac_compile) 2>conftest.er1
39673 ac_status=$?
39674 grep -v '^ *+' conftest.er1 >conftest.err
39675 rm -f conftest.er1
39676 cat conftest.err >&5
39677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39678 (exit $ac_status); } &&
d25774ab
JS
39679 { ac_try='test -z "$ac_cxx_werror_flag"
39680 || test ! -s conftest.err'
004ee6da
RL
39681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39682 (eval $ac_try) 2>&5
39683 ac_status=$?
39684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39685 (exit $ac_status); }; } &&
39686 { ac_try='test -s conftest.$ac_objext'
39687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39688 (eval $ac_try) 2>&5
39689 ac_status=$?
39690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39691 (exit $ac_status); }; }; then
39692 ac_cv_func_which_getservbyname_r=four
39693else
39694 echo "$as_me: failed program was:" >&5
39695sed 's/^/| /' conftest.$ac_ext >&5
39696
99879bbf 39697cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39698/* confdefs.h. */
39699_ACEOF
39700cat confdefs.h >>conftest.$ac_ext
39701cat >>conftest.$ac_ext <<_ACEOF
39702/* end confdefs.h. */
99879bbf 39703#include <netdb.h>
004ee6da
RL
39704int
39705main ()
39706{
39707
99879bbf
MR
39708 char *name;
39709 char *proto;
39710 struct servent *se, *res;
39711 char buffer[2048];
39712 int buflen = 2048;
39713 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39714
39715 ;
39716 return 0;
39717}
39718_ACEOF
39719rm -f conftest.$ac_objext
39720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39721 (eval $ac_compile) 2>conftest.er1
39722 ac_status=$?
39723 grep -v '^ *+' conftest.er1 >conftest.err
39724 rm -f conftest.er1
39725 cat conftest.err >&5
39726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39727 (exit $ac_status); } &&
d25774ab
JS
39728 { ac_try='test -z "$ac_cxx_werror_flag"
39729 || test ! -s conftest.err'
004ee6da
RL
39730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39731 (eval $ac_try) 2>&5
39732 ac_status=$?
39733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39734 (exit $ac_status); }; } &&
39735 { ac_try='test -s conftest.$ac_objext'
39736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39737 (eval $ac_try) 2>&5
39738 ac_status=$?
39739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39740 (exit $ac_status); }; }; then
39741 ac_cv_func_which_getservbyname_r=six
39742else
39743 echo "$as_me: failed program was:" >&5
39744sed 's/^/| /' conftest.$ac_ext >&5
39745
99879bbf 39746cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39747/* confdefs.h. */
39748_ACEOF
39749cat confdefs.h >>conftest.$ac_ext
39750cat >>conftest.$ac_ext <<_ACEOF
39751/* end confdefs.h. */
99879bbf 39752#include <netdb.h>
004ee6da
RL
39753int
39754main ()
39755{
39756
99879bbf
MR
39757 char *name;
39758 char *proto;
39759 struct servent *se;
39760 char buffer[2048];
39761 int buflen = 2048;
39762 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39763
39764 ;
39765 return 0;
39766}
39767_ACEOF
39768rm -f conftest.$ac_objext
39769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39770 (eval $ac_compile) 2>conftest.er1
39771 ac_status=$?
39772 grep -v '^ *+' conftest.er1 >conftest.err
39773 rm -f conftest.er1
39774 cat conftest.err >&5
39775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39776 (exit $ac_status); } &&
d25774ab
JS
39777 { ac_try='test -z "$ac_cxx_werror_flag"
39778 || test ! -s conftest.err'
004ee6da
RL
39779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39780 (eval $ac_try) 2>&5
39781 ac_status=$?
39782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39783 (exit $ac_status); }; } &&
39784 { ac_try='test -s conftest.$ac_objext'
39785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39786 (eval $ac_try) 2>&5
39787 ac_status=$?
39788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39789 (exit $ac_status); }; }; then
39790 ac_cv_func_which_getservbyname_r=five
39791else
39792 echo "$as_me: failed program was:" >&5
39793sed 's/^/| /' conftest.$ac_ext >&5
39794
39795ac_cv_func_which_getservbyname_r=no
99879bbf 39796
004ee6da
RL
39797fi
39798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39799
004ee6da
RL
39800fi
39801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39802
004ee6da
RL
39803fi
39804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39805else
39806 ac_cv_func_which_getservbyname_r=no
39807fi
39808
004ee6da
RL
39809
39810if test $ac_cv_func_which_getservbyname_r = six; then
39811 cat >>confdefs.h <<\_ACEOF
39812#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39813_ACEOF
39814
39815elif test $ac_cv_func_which_getservbyname_r = five; then
39816 cat >>confdefs.h <<\_ACEOF
39817#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39818_ACEOF
39819
39820elif test $ac_cv_func_which_getservbyname_r = four; then
39821 cat >>confdefs.h <<\_ACEOF
39822#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39823_ACEOF
39824
004ee6da
RL
39825fi
39826
39827
39828 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39829 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39830
39831for ac_func in getservbyname
39832do
39833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39834echo "$as_me:$LINENO: checking for $ac_func" >&5
39835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39836if eval "test \"\${$as_ac_var+set}\" = set"; then
39837 echo $ECHO_N "(cached) $ECHO_C" >&6
39838else
39839 cat >conftest.$ac_ext <<_ACEOF
39840/* confdefs.h. */
39841_ACEOF
39842cat confdefs.h >>conftest.$ac_ext
39843cat >>conftest.$ac_ext <<_ACEOF
39844/* end confdefs.h. */
39845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39847#define $ac_func innocuous_$ac_func
39848
39849/* System header to define __stub macros and hopefully few prototypes,
39850 which can conflict with char $ac_func (); below.
39851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39852 <limits.h> exists even on freestanding compilers. */
39853
39854#ifdef __STDC__
39855# include <limits.h>
39856#else
39857# include <assert.h>
39858#endif
39859
39860#undef $ac_func
39861
39862/* Override any gcc2 internal prototype to avoid an error. */
39863#ifdef __cplusplus
39864extern "C"
39865{
39866#endif
39867/* We use char because int might match the return type of a gcc2
39868 builtin and then its argument prototype would still apply. */
39869char $ac_func ();
39870/* The GNU C library defines this for functions which it implements
39871 to always fail with ENOSYS. Some functions are actually named
39872 something starting with __ and the normal name is an alias. */
39873#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39874choke me
39875#else
39876char (*f) () = $ac_func;
39877#endif
39878#ifdef __cplusplus
39879}
39880#endif
39881
39882int
39883main ()
39884{
39885return f != $ac_func;
39886 ;
39887 return 0;
39888}
39889_ACEOF
39890rm -f conftest.$ac_objext conftest$ac_exeext
39891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39892 (eval $ac_link) 2>conftest.er1
39893 ac_status=$?
39894 grep -v '^ *+' conftest.er1 >conftest.err
39895 rm -f conftest.er1
39896 cat conftest.err >&5
39897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39898 (exit $ac_status); } &&
d25774ab
JS
39899 { ac_try='test -z "$ac_cxx_werror_flag"
39900 || test ! -s conftest.err'
004ee6da
RL
39901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39902 (eval $ac_try) 2>&5
39903 ac_status=$?
39904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39905 (exit $ac_status); }; } &&
39906 { ac_try='test -s conftest$ac_exeext'
39907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39908 (eval $ac_try) 2>&5
39909 ac_status=$?
39910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39911 (exit $ac_status); }; }; then
39912 eval "$as_ac_var=yes"
39913else
39914 echo "$as_me: failed program was:" >&5
39915sed 's/^/| /' conftest.$ac_ext >&5
39916
39917eval "$as_ac_var=no"
39918fi
39919rm -f conftest.err conftest.$ac_objext \
39920 conftest$ac_exeext conftest.$ac_ext
39921fi
39922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39923echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39924if test `eval echo '${'$as_ac_var'}'` = yes; then
39925 cat >>confdefs.h <<_ACEOF
39926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39927_ACEOF
39928 cat >>confdefs.h <<\_ACEOF
39929#define HAVE_GETSERVBYNAME 1
39930_ACEOF
39931
39932fi
39933done
39934
39935 fi
39936
004ee6da
RL
39937if test "$wxUSE_THREADS" = "yes"; then
39938 cat >>confdefs.h <<\_ACEOF
39939#define wxUSE_THREADS 1
39940_ACEOF
39941
39942
39943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39944else
39945 if test "$ac_cv_func_strtok_r" = "yes"; then
39946 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39947echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39948 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39949 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39950 echo "$as_me:$LINENO: result: yes" >&5
39951echo "${ECHO_T}yes" >&6
39952 else
39953 echo "$as_me:$LINENO: result: no" >&5
39954echo "${ECHO_T}no" >&6
39955 fi
39956 fi
39957fi
39958
39959if test "$WXGTK20" = 1 ; then
39960 cat >>confdefs.h <<_ACEOF
39961#define __WXGTK20__ $WXGTK20
39962_ACEOF
39963
39964 WXGTK12=1
39965fi
39966
39967if test "$WXGTK12" = 1 ; then
39968 cat >>confdefs.h <<_ACEOF
39969#define __WXGTK12__ $WXGTK12
39970_ACEOF
39971
39972fi
39973
39974if test "$WXGTK127" = 1 ; then
39975 cat >>confdefs.h <<_ACEOF
39976#define __WXGTK127__ $WXGTK127
39977_ACEOF
39978
39979fi
39980
39981if test "$WXGPE" = 1 ; then
39982 cat >>confdefs.h <<_ACEOF
39983#define __WXGPE__ $WXGPE
39984_ACEOF
39985
39986fi
39987
39988DEBUG_CFLAGS=
39989if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39990 DEBUG_CFLAGS="-g"
39991 wxUSE_OPTIMISE=no
39992fi
39993
39994if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39995 wxUSE_DEBUG_INFO=yes
39996 if test "$GCC" = yes; then
39997 DEBUG_CFLAGS="-ggdb"
39998 fi
39999fi
40000
40001if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40002 cat >>confdefs.h <<\_ACEOF
40003#define WXDEBUG 1
40004_ACEOF
40005
40006 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40007else
40008 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
40009 if test "x$wxGTK_VERSION" = "x1" ; then
40010 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40011 fi
004ee6da
RL
40012 fi
40013fi
40014
40015if test "$wxUSE_MEM_TRACING" = "yes" ; then
40016 cat >>confdefs.h <<\_ACEOF
40017#define wxUSE_MEMORY_TRACING 1
40018_ACEOF
40019
40020 cat >>confdefs.h <<\_ACEOF
40021#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40022_ACEOF
40023
40024 cat >>confdefs.h <<\_ACEOF
40025#define wxUSE_DEBUG_NEW_ALWAYS 1
40026_ACEOF
40027
40028 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40029fi
40030
40031if test "$wxUSE_DMALLOC" = "yes" ; then
40032 DMALLOC_LIBS="-ldmallocthcxx"
40033fi
40034
40035PROFILE_FLAGS=
40036if test "$wxUSE_PROFILE" = "yes" ; then
40037 PROFILE_FLAGS=" -pg"
40038fi
40039
40040if test "$GCC" = "yes" ; then
40041 if test "$wxUSE_NO_RTTI" = "yes" ; then
40042 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40043 fi
40044 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40045 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40046 fi
40047 if test "$wxUSE_PERMISSIVE" = "yes" ; then
40048 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40049 fi
40050
40051 case "${host}" in
40052 powerpc*-*-aix* )
40053 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40054 ;;
40055 *-hppa* )
40056 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40057 ;;
40058 esac
40059fi
40060
40061OPTIMISE_CFLAGS=
40062if test "$wxUSE_OPTIMISE" = "no" ; then
40063 if test "$GCC" = yes ; then
40064 OPTIMISE_CFLAGS="-O0"
40065 fi
40066else
40067 if test "$GCC" = yes ; then
e5efa97e
VZ
40068 case "${host}" in
40069 *-pc-os2_emx | *-pc-os2-emx )
40070 OPTIMISE_CFLAGS="-O2"
40071 ;;
40072 *)
40073 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40074 ;;
40075 esac
004ee6da
RL
40076 else
40077 OPTIMISE_CFLAGS="-O"
40078 fi
40079fi
40080
40081
40082if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40083 cat >>confdefs.h <<\_ACEOF
40084#define WXWIN_COMPATIBILITY_2_4 1
40085_ACEOF
40086
40087
40088 WXWIN_COMPATIBILITY_2_6="yes"
40089fi
40090
40091if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40092 cat >>confdefs.h <<\_ACEOF
40093#define WXWIN_COMPATIBILITY_2_6 1
40094_ACEOF
40095
40096fi
40097
40098
40099if test "$wxUSE_GUI" = "yes"; then
40100 cat >>confdefs.h <<\_ACEOF
40101#define wxUSE_GUI 1
40102_ACEOF
40103
40104
40105 fi
40106
40107
40108if test "$wxUSE_UNIX" = "yes"; then
40109 cat >>confdefs.h <<\_ACEOF
40110#define wxUSE_UNIX 1
40111_ACEOF
40112
40113fi
40114
40115
40116if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40117
40118 HAVE_DL_FUNCS=0
40119 HAVE_SHL_FUNCS=0
40120 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40121 if test "$USE_DARWIN" = 1; then
40122 HAVE_DL_FUNCS=1
40123 elif test "$USE_DOS" = 1; then
40124 HAVE_DL_FUNCS=0
40125 else
40126
40127for ac_func in dlopen
40128do
40129as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40130echo "$as_me:$LINENO: checking for $ac_func" >&5
40131echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40132if eval "test \"\${$as_ac_var+set}\" = set"; then
40133 echo $ECHO_N "(cached) $ECHO_C" >&6
40134else
40135 cat >conftest.$ac_ext <<_ACEOF
40136/* confdefs.h. */
40137_ACEOF
40138cat confdefs.h >>conftest.$ac_ext
40139cat >>conftest.$ac_ext <<_ACEOF
40140/* end confdefs.h. */
40141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40143#define $ac_func innocuous_$ac_func
40144
40145/* System header to define __stub macros and hopefully few prototypes,
40146 which can conflict with char $ac_func (); below.
40147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40148 <limits.h> exists even on freestanding compilers. */
40149
40150#ifdef __STDC__
40151# include <limits.h>
40152#else
40153# include <assert.h>
40154#endif
40155
40156#undef $ac_func
40157
40158/* Override any gcc2 internal prototype to avoid an error. */
40159#ifdef __cplusplus
40160extern "C"
40161{
40162#endif
40163/* We use char because int might match the return type of a gcc2
40164 builtin and then its argument prototype would still apply. */
40165char $ac_func ();
40166/* The GNU C library defines this for functions which it implements
40167 to always fail with ENOSYS. Some functions are actually named
40168 something starting with __ and the normal name is an alias. */
40169#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40170choke me
40171#else
40172char (*f) () = $ac_func;
40173#endif
40174#ifdef __cplusplus
40175}
40176#endif
40177
40178int
40179main ()
40180{
40181return f != $ac_func;
a848cd7e
SC
40182 ;
40183 return 0;
40184}
40185_ACEOF
40186rm -f conftest.$ac_objext conftest$ac_exeext
40187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40188 (eval $ac_link) 2>conftest.er1
a848cd7e 40189 ac_status=$?
ac1cb8d3
VS
40190 grep -v '^ *+' conftest.er1 >conftest.err
40191 rm -f conftest.er1
40192 cat conftest.err >&5
a848cd7e
SC
40193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40194 (exit $ac_status); } &&
d25774ab
JS
40195 { ac_try='test -z "$ac_cxx_werror_flag"
40196 || test ! -s conftest.err'
ac1cb8d3
VS
40197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40198 (eval $ac_try) 2>&5
40199 ac_status=$?
40200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40201 (exit $ac_status); }; } &&
40202 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40204 (eval $ac_try) 2>&5
40205 ac_status=$?
40206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40207 (exit $ac_status); }; }; then
40208 eval "$as_ac_var=yes"
40209else
40210 echo "$as_me: failed program was:" >&5
40211sed 's/^/| /' conftest.$ac_ext >&5
40212
40213eval "$as_ac_var=no"
40214fi
ac1cb8d3
VS
40215rm -f conftest.err conftest.$ac_objext \
40216 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40217fi
40218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40219echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40220if test `eval echo '${'$as_ac_var'}'` = yes; then
40221 cat >>confdefs.h <<_ACEOF
40222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40223_ACEOF
40224
40225 cat >>confdefs.h <<\_ACEOF
40226#define HAVE_DLOPEN 1
40227_ACEOF
40228
40229 HAVE_DL_FUNCS=1
40230
40231else
40232
40233 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40234echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40235if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40236 echo $ECHO_N "(cached) $ECHO_C" >&6
40237else
40238 ac_check_lib_save_LIBS=$LIBS
40239LIBS="-ldl $LIBS"
40240cat >conftest.$ac_ext <<_ACEOF
40241/* confdefs.h. */
40242_ACEOF
40243cat confdefs.h >>conftest.$ac_ext
40244cat >>conftest.$ac_ext <<_ACEOF
40245/* end confdefs.h. */
40246
40247/* Override any gcc2 internal prototype to avoid an error. */
40248#ifdef __cplusplus
40249extern "C"
40250#endif
40251/* We use char because int might match the return type of a gcc2
40252 builtin and then its argument prototype would still apply. */
40253char dlopen ();
40254int
40255main ()
40256{
40257dlopen ();
40258 ;
40259 return 0;
40260}
40261_ACEOF
40262rm -f conftest.$ac_objext conftest$ac_exeext
40263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40264 (eval $ac_link) 2>conftest.er1
a848cd7e 40265 ac_status=$?
ac1cb8d3
VS
40266 grep -v '^ *+' conftest.er1 >conftest.err
40267 rm -f conftest.er1
40268 cat conftest.err >&5
a848cd7e
SC
40269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40270 (exit $ac_status); } &&
d25774ab
JS
40271 { ac_try='test -z "$ac_cxx_werror_flag"
40272 || test ! -s conftest.err'
ac1cb8d3
VS
40273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40274 (eval $ac_try) 2>&5
40275 ac_status=$?
40276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40277 (exit $ac_status); }; } &&
40278 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40280 (eval $ac_try) 2>&5
40281 ac_status=$?
40282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40283 (exit $ac_status); }; }; then
40284 ac_cv_lib_dl_dlopen=yes
40285else
40286 echo "$as_me: failed program was:" >&5
40287sed 's/^/| /' conftest.$ac_ext >&5
40288
40289ac_cv_lib_dl_dlopen=no
40290fi
ac1cb8d3
VS
40291rm -f conftest.err conftest.$ac_objext \
40292 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40293LIBS=$ac_check_lib_save_LIBS
40294fi
40295echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40296echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40297if test $ac_cv_lib_dl_dlopen = yes; then
40298
40299 cat >>confdefs.h <<\_ACEOF
40300#define HAVE_DLOPEN 1
40301_ACEOF
40302
40303 HAVE_DL_FUNCS=1
40304 DL_LINK=" -ldl$DL_LINK"
40305
40306else
40307
40308
40309for ac_func in shl_load
40310do
40311as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40312echo "$as_me:$LINENO: checking for $ac_func" >&5
40313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40314if eval "test \"\${$as_ac_var+set}\" = set"; then
40315 echo $ECHO_N "(cached) $ECHO_C" >&6
40316else
40317 cat >conftest.$ac_ext <<_ACEOF
40318/* confdefs.h. */
40319_ACEOF
40320cat confdefs.h >>conftest.$ac_ext
40321cat >>conftest.$ac_ext <<_ACEOF
40322/* end confdefs.h. */
ac1cb8d3
VS
40323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40325#define $ac_func innocuous_$ac_func
40326
a848cd7e
SC
40327/* System header to define __stub macros and hopefully few prototypes,
40328 which can conflict with char $ac_func (); below.
40329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40330 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40331
a848cd7e
SC
40332#ifdef __STDC__
40333# include <limits.h>
40334#else
40335# include <assert.h>
40336#endif
ac1cb8d3
VS
40337
40338#undef $ac_func
40339
a848cd7e
SC
40340/* Override any gcc2 internal prototype to avoid an error. */
40341#ifdef __cplusplus
40342extern "C"
40343{
40344#endif
40345/* We use char because int might match the return type of a gcc2
40346 builtin and then its argument prototype would still apply. */
40347char $ac_func ();
40348/* The GNU C library defines this for functions which it implements
40349 to always fail with ENOSYS. Some functions are actually named
40350 something starting with __ and the normal name is an alias. */
40351#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40352choke me
40353#else
40354char (*f) () = $ac_func;
40355#endif
40356#ifdef __cplusplus
40357}
40358#endif
40359
40360int
40361main ()
40362{
40363return f != $ac_func;
40364 ;
40365 return 0;
40366}
40367_ACEOF
40368rm -f conftest.$ac_objext conftest$ac_exeext
40369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40370 (eval $ac_link) 2>conftest.er1
a848cd7e 40371 ac_status=$?
ac1cb8d3
VS
40372 grep -v '^ *+' conftest.er1 >conftest.err
40373 rm -f conftest.er1
40374 cat conftest.err >&5
a848cd7e
SC
40375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40376 (exit $ac_status); } &&
d25774ab
JS
40377 { ac_try='test -z "$ac_cxx_werror_flag"
40378 || test ! -s conftest.err'
ac1cb8d3
VS
40379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40380 (eval $ac_try) 2>&5
40381 ac_status=$?
40382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40383 (exit $ac_status); }; } &&
40384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40386 (eval $ac_try) 2>&5
40387 ac_status=$?
40388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40389 (exit $ac_status); }; }; then
40390 eval "$as_ac_var=yes"
40391else
40392 echo "$as_me: failed program was:" >&5
40393sed 's/^/| /' conftest.$ac_ext >&5
40394
40395eval "$as_ac_var=no"
40396fi
ac1cb8d3
VS
40397rm -f conftest.err conftest.$ac_objext \
40398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40399fi
40400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40401echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40402if test `eval echo '${'$as_ac_var'}'` = yes; then
40403 cat >>confdefs.h <<_ACEOF
40404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40405_ACEOF
40406
40407 cat >>confdefs.h <<\_ACEOF
40408#define HAVE_SHL_LOAD 1
40409_ACEOF
40410
40411 HAVE_SHL_FUNCS=1
40412
40413else
40414
40415 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40416echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40417if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40418 echo $ECHO_N "(cached) $ECHO_C" >&6
40419else
40420 ac_check_lib_save_LIBS=$LIBS
40421LIBS="-lshl_load $LIBS"
40422cat >conftest.$ac_ext <<_ACEOF
40423/* confdefs.h. */
40424_ACEOF
40425cat confdefs.h >>conftest.$ac_ext
40426cat >>conftest.$ac_ext <<_ACEOF
40427/* end confdefs.h. */
40428
40429/* Override any gcc2 internal prototype to avoid an error. */
40430#ifdef __cplusplus
40431extern "C"
40432#endif
40433/* We use char because int might match the return type of a gcc2
40434 builtin and then its argument prototype would still apply. */
40435char dld ();
40436int
40437main ()
40438{
40439dld ();
40440 ;
40441 return 0;
40442}
40443_ACEOF
40444rm -f conftest.$ac_objext conftest$ac_exeext
40445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40446 (eval $ac_link) 2>conftest.er1
a848cd7e 40447 ac_status=$?
ac1cb8d3
VS
40448 grep -v '^ *+' conftest.er1 >conftest.err
40449 rm -f conftest.er1
40450 cat conftest.err >&5
a848cd7e
SC
40451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40452 (exit $ac_status); } &&
d25774ab
JS
40453 { ac_try='test -z "$ac_cxx_werror_flag"
40454 || test ! -s conftest.err'
ac1cb8d3
VS
40455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40456 (eval $ac_try) 2>&5
40457 ac_status=$?
40458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40459 (exit $ac_status); }; } &&
40460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40462 (eval $ac_try) 2>&5
40463 ac_status=$?
40464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40465 (exit $ac_status); }; }; then
40466 ac_cv_lib_shl_load_dld=yes
40467else
40468 echo "$as_me: failed program was:" >&5
40469sed 's/^/| /' conftest.$ac_ext >&5
40470
40471ac_cv_lib_shl_load_dld=no
40472fi
ac1cb8d3
VS
40473rm -f conftest.err conftest.$ac_objext \
40474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40475LIBS=$ac_check_lib_save_LIBS
40476fi
40477echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40478echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40479if test $ac_cv_lib_shl_load_dld = yes; then
40480
40481 HAVE_SHL_FUNCS=1
40482 DL_LINK=" -ldld$DL_LINK"
40483
40484fi
40485
40486
40487fi
40488done
40489
40490
40491fi
40492
40493
40494fi
40495done
40496
40497
40498 if test "$HAVE_DL_FUNCS" = 1; then
40499
40500for ac_func in dlerror
40501do
40502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40503echo "$as_me:$LINENO: checking for $ac_func" >&5
40504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40505if eval "test \"\${$as_ac_var+set}\" = set"; then
40506 echo $ECHO_N "(cached) $ECHO_C" >&6
40507else
40508 cat >conftest.$ac_ext <<_ACEOF
40509/* confdefs.h. */
40510_ACEOF
40511cat confdefs.h >>conftest.$ac_ext
40512cat >>conftest.$ac_ext <<_ACEOF
40513/* end confdefs.h. */
ac1cb8d3
VS
40514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40516#define $ac_func innocuous_$ac_func
40517
a848cd7e
SC
40518/* System header to define __stub macros and hopefully few prototypes,
40519 which can conflict with char $ac_func (); below.
40520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40521 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40522
a848cd7e
SC
40523#ifdef __STDC__
40524# include <limits.h>
40525#else
40526# include <assert.h>
40527#endif
ac1cb8d3
VS
40528
40529#undef $ac_func
40530
a848cd7e
SC
40531/* Override any gcc2 internal prototype to avoid an error. */
40532#ifdef __cplusplus
40533extern "C"
40534{
40535#endif
40536/* We use char because int might match the return type of a gcc2
40537 builtin and then its argument prototype would still apply. */
40538char $ac_func ();
40539/* The GNU C library defines this for functions which it implements
40540 to always fail with ENOSYS. Some functions are actually named
40541 something starting with __ and the normal name is an alias. */
40542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40543choke me
40544#else
40545char (*f) () = $ac_func;
40546#endif
40547#ifdef __cplusplus
40548}
40549#endif
40550
40551int
40552main ()
40553{
40554return f != $ac_func;
40555 ;
40556 return 0;
40557}
40558_ACEOF
40559rm -f conftest.$ac_objext conftest$ac_exeext
40560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40561 (eval $ac_link) 2>conftest.er1
a848cd7e 40562 ac_status=$?
ac1cb8d3
VS
40563 grep -v '^ *+' conftest.er1 >conftest.err
40564 rm -f conftest.er1
40565 cat conftest.err >&5
a848cd7e
SC
40566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40567 (exit $ac_status); } &&
d25774ab
JS
40568 { ac_try='test -z "$ac_cxx_werror_flag"
40569 || test ! -s conftest.err'
ac1cb8d3
VS
40570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40571 (eval $ac_try) 2>&5
40572 ac_status=$?
40573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574 (exit $ac_status); }; } &&
40575 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40577 (eval $ac_try) 2>&5
40578 ac_status=$?
40579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40580 (exit $ac_status); }; }; then
40581 eval "$as_ac_var=yes"
40582else
40583 echo "$as_me: failed program was:" >&5
40584sed 's/^/| /' conftest.$ac_ext >&5
40585
40586eval "$as_ac_var=no"
40587fi
ac1cb8d3
VS
40588rm -f conftest.err conftest.$ac_objext \
40589 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40590fi
40591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40592echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40593if test `eval echo '${'$as_ac_var'}'` = yes; then
40594 cat >>confdefs.h <<_ACEOF
40595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40596_ACEOF
40597 cat >>confdefs.h <<\_ACEOF
40598#define HAVE_DLERROR 1
40599_ACEOF
40600
40601else
40602
40603 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40604echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40605if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40606 echo $ECHO_N "(cached) $ECHO_C" >&6
40607else
40608 ac_check_lib_save_LIBS=$LIBS
40609LIBS="-ldl $LIBS"
40610cat >conftest.$ac_ext <<_ACEOF
40611/* confdefs.h. */
40612_ACEOF
40613cat confdefs.h >>conftest.$ac_ext
40614cat >>conftest.$ac_ext <<_ACEOF
40615/* end confdefs.h. */
40616
40617/* Override any gcc2 internal prototype to avoid an error. */
40618#ifdef __cplusplus
40619extern "C"
40620#endif
40621/* We use char because int might match the return type of a gcc2
40622 builtin and then its argument prototype would still apply. */
40623char dlerror ();
40624int
40625main ()
40626{
40627dlerror ();
40628 ;
40629 return 0;
40630}
40631_ACEOF
40632rm -f conftest.$ac_objext conftest$ac_exeext
40633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40634 (eval $ac_link) 2>conftest.er1
a848cd7e 40635 ac_status=$?
ac1cb8d3
VS
40636 grep -v '^ *+' conftest.er1 >conftest.err
40637 rm -f conftest.er1
40638 cat conftest.err >&5
a848cd7e
SC
40639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40640 (exit $ac_status); } &&
d25774ab
JS
40641 { ac_try='test -z "$ac_cxx_werror_flag"
40642 || test ! -s conftest.err'
ac1cb8d3
VS
40643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40644 (eval $ac_try) 2>&5
40645 ac_status=$?
40646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40647 (exit $ac_status); }; } &&
40648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40650 (eval $ac_try) 2>&5
40651 ac_status=$?
40652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40653 (exit $ac_status); }; }; then
40654 ac_cv_lib_dl_dlerror=yes
40655else
40656 echo "$as_me: failed program was:" >&5
40657sed 's/^/| /' conftest.$ac_ext >&5
40658
40659ac_cv_lib_dl_dlerror=no
40660fi
ac1cb8d3
VS
40661rm -f conftest.err conftest.$ac_objext \
40662 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40663LIBS=$ac_check_lib_save_LIBS
40664fi
40665echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40666echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40667if test $ac_cv_lib_dl_dlerror = yes; then
40668 cat >>confdefs.h <<\_ACEOF
40669#define HAVE_DLERROR 1
40670_ACEOF
40671
40672fi
40673
40674
40675
40676fi
40677done
40678
40679 fi
40680 fi
40681
40682 if test "$HAVE_DL_FUNCS" = 0; then
40683 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40684 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40685 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40686echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40687 wxUSE_DYNAMIC_LOADER=no
40688 wxUSE_DYNLIB_CLASS=no
40689 else
40690 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40691echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40692 fi
40693 fi
40694 fi
40695 fi
40696fi
40697
40698if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40699 cat >>confdefs.h <<\_ACEOF
40700#define wxUSE_DYNAMIC_LOADER 1
40701_ACEOF
40702
40703fi
40704if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40705 cat >>confdefs.h <<\_ACEOF
40706#define wxUSE_DYNLIB_CLASS 1
40707_ACEOF
40708
40709fi
40710
40711
40712
40713if test "$wxUSE_PLUGINS" = "yes" ; then
40714 if test "$wxUSE_SHARED" = "no" ; then
40715 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40716echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40717 wxUSE_PLUGINS=no
40718 fi
40719 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40720 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40721echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40722 wxUSE_PLUGINS=no
40723 fi
40724 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40725 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40726echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40727 wxUSE_PLUGINS=no
40728 fi
40729 if test "$wxUSE_PLUGINS" = "yes" ; then
40730 cat >>confdefs.h <<\_ACEOF
40731#define wxUSE_PLUGINS 1
40732_ACEOF
40733
40734 fi
40735fi
40736
40737
40738if test "$wxUSE_STL" = "yes"; then
40739 cat >>confdefs.h <<\_ACEOF
40740#define wxUSE_STL 1
40741_ACEOF
40742
40743fi
40744
40745if test "$wxUSE_APPLE_IEEE" = "yes"; then
40746 cat >>confdefs.h <<\_ACEOF
40747#define wxUSE_APPLE_IEEE 1
40748_ACEOF
40749
40750fi
40751
40752if test "$wxUSE_TIMER" = "yes"; then
40753 cat >>confdefs.h <<\_ACEOF
40754#define wxUSE_TIMER 1
40755_ACEOF
40756
40757fi
40758
9c112555 40759if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40760 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40761echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40762if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40763 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40764else
d12aef51
VZ
40765
40766 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40767/* confdefs.h. */
40768_ACEOF
40769cat confdefs.h >>conftest.$ac_ext
40770cat >>conftest.$ac_ext <<_ACEOF
40771/* end confdefs.h. */
d12aef51
VZ
40772
40773 #include <sys/soundcard.h>
40774
40775int
40776main ()
40777{
40778
40779 ioctl(0, SNDCTL_DSP_SYNC, 0);
40780
40781 ;
40782 return 0;
40783}
a848cd7e 40784_ACEOF
d12aef51
VZ
40785rm -f conftest.$ac_objext conftest$ac_exeext
40786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40787 (eval $ac_link) 2>conftest.er1
a848cd7e 40788 ac_status=$?
ac1cb8d3
VS
40789 grep -v '^ *+' conftest.er1 >conftest.err
40790 rm -f conftest.er1
40791 cat conftest.err >&5
a848cd7e
SC
40792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40793 (exit $ac_status); } &&
d25774ab
JS
40794 { ac_try='test -z "$ac_cxx_werror_flag"
40795 || test ! -s conftest.err'
ac1cb8d3
VS
40796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40797 (eval $ac_try) 2>&5
40798 ac_status=$?
40799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40800 (exit $ac_status); }; } &&
d12aef51 40801 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40803 (eval $ac_try) 2>&5
40804 ac_status=$?
40805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40806 (exit $ac_status); }; }; then
d12aef51 40807 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40808else
40809 echo "$as_me: failed program was:" >&5
40810sed 's/^/| /' conftest.$ac_ext >&5
40811
a848cd7e 40812
d12aef51
VZ
40813 saveLibs="$LIBS"
40814 LIBS="$saveLibs -lossaudio"
40815 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40816/* confdefs.h. */
40817_ACEOF
40818cat confdefs.h >>conftest.$ac_ext
40819cat >>conftest.$ac_ext <<_ACEOF
40820/* end confdefs.h. */
d12aef51
VZ
40821
40822 #include <sys/soundcard.h>
40823
40824int
40825main ()
40826{
40827
40828 ioctl(0, SNDCTL_DSP_SYNC, 0);
40829
40830 ;
40831 return 0;
40832}
a848cd7e 40833_ACEOF
d12aef51
VZ
40834rm -f conftest.$ac_objext conftest$ac_exeext
40835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40836 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40837 ac_status=$?
40838 grep -v '^ *+' conftest.er1 >conftest.err
40839 rm -f conftest.er1
40840 cat conftest.err >&5
40841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40842 (exit $ac_status); } &&
d25774ab
JS
40843 { ac_try='test -z "$ac_cxx_werror_flag"
40844 || test ! -s conftest.err'
d12aef51
VZ
40845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40846 (eval $ac_try) 2>&5
40847 ac_status=$?
40848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40849 (exit $ac_status); }; } &&
40850 { ac_try='test -s conftest$ac_exeext'
40851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40852 (eval $ac_try) 2>&5
40853 ac_status=$?
40854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40855 (exit $ac_status); }; }; then
40856 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40857else
40858 echo "$as_me: failed program was:" >&5
40859sed 's/^/| /' conftest.$ac_ext >&5
40860
a848cd7e 40861
d12aef51
VZ
40862 LIBS="$saveLibs"
40863 ac_cv_header_sys_soundcard=no
40864
40865
a848cd7e 40866fi
d12aef51
VZ
40867rm -f conftest.err conftest.$ac_objext \
40868 conftest$ac_exeext conftest.$ac_ext
40869
a848cd7e
SC
40870
40871fi
d12aef51
VZ
40872rm -f conftest.err conftest.$ac_objext \
40873 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40874
40875fi
d12aef51
VZ
40876echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40877echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40878
d12aef51
VZ
40879 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40880 cat >>confdefs.h <<\_ACEOF
40881#define HAVE_SYS_SOUNDCARD_H 1
40882_ACEOF
a848cd7e 40883
d12aef51
VZ
40884 else
40885 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40886 fi
9c112555
MW
40887fi
40888WITH_PLUGIN_SDL=0
40889if test "$wxUSE_SOUND" = "yes"; then
40890 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40891 if test "$wxUSE_LIBSDL" != "no"; then
40892
40893# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40894if test "${with_sdl_prefix+set}" = set; then
40895 withval="$with_sdl_prefix"
40896 sdl_prefix="$withval"
40897else
40898 sdl_prefix=""
40899fi;
40900
40901# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40902if test "${with_sdl_exec_prefix+set}" = set; then
40903 withval="$with_sdl_exec_prefix"
40904 sdl_exec_prefix="$withval"
40905else
40906 sdl_exec_prefix=""
40907fi;
40908# Check whether --enable-sdltest or --disable-sdltest was given.
40909if test "${enable_sdltest+set}" = set; then
40910 enableval="$enable_sdltest"
40911
40912else
40913 enable_sdltest=yes
40914fi;
40915
40916 if test x$sdl_exec_prefix != x ; then
40917 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40918 if test x${SDL_CONFIG+set} != xset ; then
40919 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40920 fi
40921 fi
40922 if test x$sdl_prefix != x ; then
40923 sdl_args="$sdl_args --prefix=$sdl_prefix"
40924 if test x${SDL_CONFIG+set} != xset ; then
40925 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40926 fi
40927 fi
40928
40929
40930 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40931 # Extract the first word of "sdl-config", so it can be a program name with args.
40932set dummy sdl-config; ac_word=$2
40933echo "$as_me:$LINENO: checking for $ac_word" >&5
40934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40935if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40936 echo $ECHO_N "(cached) $ECHO_C" >&6
40937else
40938 case $SDL_CONFIG in
40939 [\\/]* | ?:[\\/]*)
40940 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40941 ;;
40942 *)
40943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40944for as_dir in $PATH
40945do
40946 IFS=$as_save_IFS
40947 test -z "$as_dir" && as_dir=.
40948 for ac_exec_ext in '' $ac_executable_extensions; do
40949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40950 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40952 break 2
40953 fi
40954done
40955done
40956
40957 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40958 ;;
40959esac
40960fi
40961SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40962
40963if test -n "$SDL_CONFIG"; then
40964 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40965echo "${ECHO_T}$SDL_CONFIG" >&6
40966else
40967 echo "$as_me:$LINENO: result: no" >&5
40968echo "${ECHO_T}no" >&6
40969fi
40970
40971 min_sdl_version=1.2.0
40972 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40973echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40974 no_sdl=""
40975 if test "$SDL_CONFIG" = "no" ; then
40976 no_sdl=yes
40977 else
40978 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40979 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40980
40981 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40982 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40983 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40984 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40985 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40986 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40987 if test "x$enable_sdltest" = "xyes" ; then
40988 ac_save_CFLAGS="$CFLAGS"
94acd38e 40989 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40990 ac_save_LIBS="$LIBS"
40991 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40992 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40993 LIBS="$LIBS $SDL_LIBS"
40994 rm -f conf.sdltest
40995 if test "$cross_compiling" = yes; then
40996 echo $ac_n "cross compiling; assumed OK... $ac_c"
40997else
40998 cat >conftest.$ac_ext <<_ACEOF
40999/* confdefs.h. */
41000_ACEOF
41001cat confdefs.h >>conftest.$ac_ext
41002cat >>conftest.$ac_ext <<_ACEOF
41003/* end confdefs.h. */
41004
41005#include <stdio.h>
41006#include <stdlib.h>
41007#include <string.h>
41008#include "SDL.h"
41009
41010char*
41011my_strdup (char *str)
41012{
41013 char *new_str;
41014
41015 if (str)
41016 {
41017 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41018 strcpy (new_str, str);
41019 }
41020 else
41021 new_str = NULL;
41022
41023 return new_str;
41024}
41025
41026int main (int argc, char *argv[])
41027{
41028 int major, minor, micro;
41029 char *tmp_version;
41030
41031 /* This hangs on some systems (?)
41032 system ("touch conf.sdltest");
41033 */
41034 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41035
41036 /* HP/UX 9 (%@#!) writes to sscanf strings */
41037 tmp_version = my_strdup("$min_sdl_version");
41038 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41039 printf("%s, bad version string\n", "$min_sdl_version");
41040 exit(1);
41041 }
41042
41043 if (($sdl_major_version > major) ||
41044 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41045 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41046 {
41047 return 0;
41048 }
41049 else
41050 {
41051 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41052 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41053 printf("*** best to upgrade to the required version.\n");
41054 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41055 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41056 printf("*** config.cache before re-running configure\n");
41057 return 1;
41058 }
41059}
41060
41061
41062_ACEOF
41063rm -f conftest$ac_exeext
41064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41065 (eval $ac_link) 2>&5
41066 ac_status=$?
41067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41070 (eval $ac_try) 2>&5
41071 ac_status=$?
41072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073 (exit $ac_status); }; }; then
41074 :
41075else
41076 echo "$as_me: program exited with status $ac_status" >&5
41077echo "$as_me: failed program was:" >&5
41078sed 's/^/| /' conftest.$ac_ext >&5
41079
41080( exit $ac_status )
41081no_sdl=yes
41082fi
ac1cb8d3 41083rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41084fi
41085 CFLAGS="$ac_save_CFLAGS"
94acd38e 41086 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41087 LIBS="$ac_save_LIBS"
41088 fi
41089 fi
41090 if test "x$no_sdl" = x ; then
41091 echo "$as_me:$LINENO: result: yes" >&5
41092echo "${ECHO_T}yes" >&6
41093
41094 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 41095 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
41096 cat >>confdefs.h <<\_ACEOF
41097#define wxUSE_LIBSDL 1
41098_ACEOF
41099
41100
41101 else
41102 echo "$as_me:$LINENO: result: no" >&5
41103echo "${ECHO_T}no" >&6
41104 if test "$SDL_CONFIG" = "no" ; then
41105 echo "*** The sdl-config script installed by SDL could not be found"
41106 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41107 echo "*** your path, or set the SDL_CONFIG environment variable to the"
41108 echo "*** full path to sdl-config."
41109 else
41110 if test -f conf.sdltest ; then
41111 :
41112 else
41113 echo "*** Could not run SDL test program, checking why..."
41114 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41115 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41116 LIBS="$LIBS $SDL_LIBS"
41117 cat >conftest.$ac_ext <<_ACEOF
41118/* confdefs.h. */
41119_ACEOF
41120cat confdefs.h >>conftest.$ac_ext
41121cat >>conftest.$ac_ext <<_ACEOF
41122/* end confdefs.h. */
41123
41124#include <stdio.h>
41125#include "SDL.h"
41126
41127int main(int argc, char *argv[])
41128{ return 0; }
41129#undef main
41130#define main K_and_R_C_main
41131
41132int
41133main ()
41134{
41135 return 0;
41136 ;
41137 return 0;
41138}
41139_ACEOF
41140rm -f conftest.$ac_objext conftest$ac_exeext
41141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41142 (eval $ac_link) 2>conftest.er1
a848cd7e 41143 ac_status=$?
ac1cb8d3
VS
41144 grep -v '^ *+' conftest.er1 >conftest.err
41145 rm -f conftest.er1
41146 cat conftest.err >&5
a848cd7e
SC
41147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41148 (exit $ac_status); } &&
d25774ab
JS
41149 { ac_try='test -z "$ac_cxx_werror_flag"
41150 || test ! -s conftest.err'
ac1cb8d3
VS
41151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41152 (eval $ac_try) 2>&5
41153 ac_status=$?
41154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41155 (exit $ac_status); }; } &&
41156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41158 (eval $ac_try) 2>&5
41159 ac_status=$?
41160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161 (exit $ac_status); }; }; then
41162 echo "*** The test program compiled, but did not run. This usually means"
41163 echo "*** that the run-time linker is not finding SDL or finding the wrong"
41164 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41165 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41166 echo "*** to the installed location Also, make sure you have run ldconfig if that"
41167 echo "*** is required on your system"
41168 echo "***"
41169 echo "*** If you have an old version installed, it is best to remove it, although"
41170 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41171else
41172 echo "$as_me: failed program was:" >&5
41173sed 's/^/| /' conftest.$ac_ext >&5
41174
41175 echo "*** The test program failed to compile or link. See the file config.log for the"
41176 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41177 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41178 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41179fi
ac1cb8d3
VS
41180rm -f conftest.err conftest.$ac_objext \
41181 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41182 CFLAGS="$ac_save_CFLAGS"
94acd38e 41183 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41184 LIBS="$ac_save_LIBS"
41185 fi
41186 fi
41187 SDL_CFLAGS=""
41188 SDL_LIBS=""
41189 wxUSE_LIBSDL="no"
41190 fi
41191
41192
41193 rm -f conf.sdltest
41194
41195 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41196 WITH_PLUGIN_SDL=1
41197 fi
41198 fi
41199 fi
41200
41201 cat >>confdefs.h <<\_ACEOF
41202#define wxUSE_SOUND 1
41203_ACEOF
41204
41205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41206fi
41207
d1c38808
VZ
41208if test "$WXGTK20" = 1; then
41209 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41210 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41211
41212
41213 succeeded=no
41214
41215 if test -z "$PKG_CONFIG"; then
41216 # Extract the first word of "pkg-config", so it can be a program name with args.
41217set dummy pkg-config; ac_word=$2
41218echo "$as_me:$LINENO: checking for $ac_word" >&5
41219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41220if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41221 echo $ECHO_N "(cached) $ECHO_C" >&6
41222else
41223 case $PKG_CONFIG in
41224 [\\/]* | ?:[\\/]*)
41225 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41226 ;;
41227 *)
41228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41229for as_dir in $PATH
41230do
41231 IFS=$as_save_IFS
41232 test -z "$as_dir" && as_dir=.
41233 for ac_exec_ext in '' $ac_executable_extensions; do
41234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41235 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41237 break 2
41238 fi
41239done
41240done
41241
41242 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41243 ;;
41244esac
41245fi
41246PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41247
41248if test -n "$PKG_CONFIG"; then
41249 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41250echo "${ECHO_T}$PKG_CONFIG" >&6
41251else
41252 echo "$as_me:$LINENO: result: no" >&5
41253echo "${ECHO_T}no" >&6
41254fi
41255
41256 fi
41257
41258 if test "$PKG_CONFIG" = "no" ; then
41259 echo "*** The pkg-config script could not be found. Make sure it is"
41260 echo "*** in your path, or set the PKG_CONFIG environment variable"
41261 echo "*** to the full path to pkg-config."
41262 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41263 else
41264 PKG_CONFIG_MIN_VERSION=0.9.0
41265 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
41266 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
41267echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 41268
ffa762ff 41269 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
41270 echo "$as_me:$LINENO: result: yes" >&5
41271echo "${ECHO_T}yes" >&6
41272 succeeded=yes
41273
41274 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
41275echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 41276 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41277 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
41278echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
41279
41280 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
41281echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 41282 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41283 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
41284echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
41285 else
41286 LIBGNOMEPRINTUI_CFLAGS=""
41287 LIBGNOMEPRINTUI_LIBS=""
41288 ## If we have a custom action on failure, don't print errors, but
41289 ## do set a variable so people can do so.
ffa762ff 41290 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41291
41292 fi
41293
41294
41295
41296 else
41297 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41298 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41299 fi
41300 fi
41301
41302 if test $succeeded = yes; then
41303
c92ad099 41304 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
41305 cat >>confdefs.h <<\_ACEOF
41306#define wxUSE_LIBGNOMEPRINT 1
41307_ACEOF
41308
41309
41310 else
41311
41312 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41313echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41314 wxUSE_LIBGNOMEPRINT="no"
41315
41316
41317 fi
41318
41319 fi
41320 fi
41321fi
41322
2b850ae1
RR
41323if test "$WXGTK20" = 1; then
41324 if test "$wxUSE_MIMETYPE" = "yes" ; then
41325 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41326
41327
41328 succeeded=no
41329
41330 if test -z "$PKG_CONFIG"; then
41331 # Extract the first word of "pkg-config", so it can be a program name with args.
41332set dummy pkg-config; ac_word=$2
41333echo "$as_me:$LINENO: checking for $ac_word" >&5
41334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41335if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41336 echo $ECHO_N "(cached) $ECHO_C" >&6
41337else
41338 case $PKG_CONFIG in
41339 [\\/]* | ?:[\\/]*)
41340 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41341 ;;
41342 *)
41343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41344for as_dir in $PATH
41345do
41346 IFS=$as_save_IFS
41347 test -z "$as_dir" && as_dir=.
41348 for ac_exec_ext in '' $ac_executable_extensions; do
41349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41350 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41352 break 2
41353 fi
41354done
41355done
41356
41357 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41358 ;;
41359esac
41360fi
41361PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41362
41363if test -n "$PKG_CONFIG"; then
41364 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41365echo "${ECHO_T}$PKG_CONFIG" >&6
41366else
41367 echo "$as_me:$LINENO: result: no" >&5
41368echo "${ECHO_T}no" >&6
41369fi
41370
41371 fi
41372
41373 if test "$PKG_CONFIG" = "no" ; then
41374 echo "*** The pkg-config script could not be found. Make sure it is"
41375 echo "*** in your path, or set the PKG_CONFIG environment variable"
41376 echo "*** to the full path to pkg-config."
41377 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41378 else
41379 PKG_CONFIG_MIN_VERSION=0.9.0
41380 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41381 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
41382echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
41383
41384 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
41385 echo "$as_me:$LINENO: result: yes" >&5
41386echo "${ECHO_T}yes" >&6
41387 succeeded=yes
41388
41389 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
41390echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41391 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41392 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41393echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41394
41395 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41396echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41397 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41398 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41399echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41400 else
41401 GNOMEVFS_CFLAGS=""
41402 GNOMEVFS_LIBS=""
41403 ## If we have a custom action on failure, don't print errors, but
41404 ## do set a variable so people can do so.
41405 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41406
41407 fi
41408
41409
41410
41411 else
41412 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41413 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41414 fi
41415 fi
41416
41417 if test $succeeded = yes; then
41418
41419 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41420 cat >>confdefs.h <<\_ACEOF
41421#define wxUSE_LIBGNOMEVFS 1
41422_ACEOF
41423
41424
41425 else
41426
41427 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41428echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41429 wxUSE_LIBGNOMEVFS="no"
41430
41431
41432 fi
41433
41434 fi
41435 fi
41436fi
41437
3565d135
RR
41438if test "$WXGTK20" = 1; then
41439 if test "$wxUSE_LIBHILDON" = "yes" ; then
41440
41441 succeeded=no
41442
41443 if test -z "$PKG_CONFIG"; then
41444 # Extract the first word of "pkg-config", so it can be a program name with args.
41445set dummy pkg-config; ac_word=$2
41446echo "$as_me:$LINENO: checking for $ac_word" >&5
41447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41448if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41449 echo $ECHO_N "(cached) $ECHO_C" >&6
41450else
41451 case $PKG_CONFIG in
41452 [\\/]* | ?:[\\/]*)
41453 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41454 ;;
41455 *)
41456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41457for as_dir in $PATH
41458do
41459 IFS=$as_save_IFS
41460 test -z "$as_dir" && as_dir=.
41461 for ac_exec_ext in '' $ac_executable_extensions; do
41462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41463 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41465 break 2
41466 fi
41467done
41468done
41469
41470 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41471 ;;
41472esac
41473fi
41474PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41475
41476if test -n "$PKG_CONFIG"; then
41477 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41478echo "${ECHO_T}$PKG_CONFIG" >&6
41479else
41480 echo "$as_me:$LINENO: result: no" >&5
41481echo "${ECHO_T}no" >&6
41482fi
41483
41484 fi
41485
41486 if test "$PKG_CONFIG" = "no" ; then
41487 echo "*** The pkg-config script could not be found. Make sure it is"
41488 echo "*** in your path, or set the PKG_CONFIG environment variable"
41489 echo "*** to the full path to pkg-config."
41490 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41491 else
41492 PKG_CONFIG_MIN_VERSION=0.9.0
41493 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41494 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41495echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41496
41497 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41498 echo "$as_me:$LINENO: result: yes" >&5
41499echo "${ECHO_T}yes" >&6
41500 succeeded=yes
41501
41502 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41503echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41504 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41505 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41506echo "${ECHO_T}$HILDON_CFLAGS" >&6
41507
41508 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41509echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41510 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41511 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41512echo "${ECHO_T}$HILDON_LIBS" >&6
41513 else
41514 HILDON_CFLAGS=""
41515 HILDON_LIBS=""
41516 ## If we have a custom action on failure, don't print errors, but
41517 ## do set a variable so people can do so.
41518 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41519
41520 fi
41521
41522
41523
41524 else
41525 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41526 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41527 fi
41528 fi
41529
41530 if test $succeeded = yes; then
41531
41532 EXTRALIBS_HILDON="$HILDON_LIBS"
41533 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41534 cat >>confdefs.h <<\_ACEOF
41535#define wxUSE_LIBHILDON 1
41536_ACEOF
41537
41538
41539 else
41540
41541 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41542echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41543 wxUSE_LIBHILDON="no"
41544
41545
41546 fi
41547
41548 fi
41549fi
d1c38808 41550
a848cd7e
SC
41551if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41552 cat >>confdefs.h <<\_ACEOF
41553#define wxUSE_CMDLINE_PARSER 1
41554_ACEOF
41555
41556fi
41557
41558if test "$wxUSE_STOPWATCH" = "yes"; then
41559 cat >>confdefs.h <<\_ACEOF
41560#define wxUSE_STOPWATCH 1
41561_ACEOF
41562
41563fi
41564
41565if test "$wxUSE_DATETIME" = "yes"; then
41566 cat >>confdefs.h <<\_ACEOF
41567#define wxUSE_DATETIME 1
41568_ACEOF
41569
41570fi
41571
41572if test "$wxUSE_FILE" = "yes"; then
41573 cat >>confdefs.h <<\_ACEOF
41574#define wxUSE_FILE 1
41575_ACEOF
41576
41577fi
41578
41579if test "$wxUSE_FFILE" = "yes"; then
41580 cat >>confdefs.h <<\_ACEOF
41581#define wxUSE_FFILE 1
41582_ACEOF
41583
41584fi
41585
41586if test "$wxUSE_FILESYSTEM" = "yes"; then
41587 cat >>confdefs.h <<\_ACEOF
41588#define wxUSE_FILESYSTEM 1
41589_ACEOF
41590
41591fi
41592
41593if test "$wxUSE_FS_ZIP" = "yes"; then
41594 cat >>confdefs.h <<\_ACEOF
41595#define wxUSE_FS_ZIP 1
41596_ACEOF
41597
41598fi
41599
9e8e867f 41600if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41601 cat >>confdefs.h <<\_ACEOF
9e8e867f 41602#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41603_ACEOF
41604
41605fi
41606
41607if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41608 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41609 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41610echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41611 elif test "$wxUSE_ZLIB" = "no"; then
41612 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41613echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41614 else
41615 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41616#define wxUSE_ZIPSTREAM 1
41617_ACEOF
41618
81f90336 41619 fi
a848cd7e
SC
41620fi
41621
a848cd7e 41622if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41623 if test "$USE_UNIX" != 1; then
41624 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41625echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41626 wxUSE_ON_FATAL_EXCEPTION=no
41627 else
41628 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41629#define wxUSE_ON_FATAL_EXCEPTION 1
41630_ACEOF
41631
18228ab4 41632 fi
a848cd7e
SC
41633fi
41634
eaff0f0d
VZ
41635if test "$wxUSE_STACKWALKER" = "yes"; then
41636 cat >>confdefs.h <<\_ACEOF
41637#define wxUSE_STACKWALKER 1
41638_ACEOF
41639
41640fi
41641
36b6448c 41642if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41643 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41644 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41645echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41646 wxUSE_DEBUGREPORT=no
41647 else
41648 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41649#define wxUSE_DEBUGREPORT 1
41650_ACEOF
41651
21dfc162
MW
41652 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41654 fi
dfe0c803 41655 fi
36b6448c
VZ
41656fi
41657
a848cd7e
SC
41658if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41659 cat >>confdefs.h <<\_ACEOF
41660#define wxUSE_SNGLINST_CHECKER 1
41661_ACEOF
41662
41663fi
41664
41665if test "$wxUSE_BUSYINFO" = "yes"; then
41666 cat >>confdefs.h <<\_ACEOF
41667#define wxUSE_BUSYINFO 1
41668_ACEOF
41669
41670fi
41671
41672if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41673 cat >>confdefs.h <<\_ACEOF
41674#define wxUSE_STD_IOSTREAM 1
41675_ACEOF
41676
41677fi
41678
59746b65
MW
41679if test "$wxUSE_STD_STRING" = "yes"; then
41680 cat >>confdefs.h <<\_ACEOF
41681#define wxUSE_STD_STRING 1
41682_ACEOF
41683
41684fi
41685
07158944
VZ
41686if test "$wxUSE_STDPATHS" = "yes"; then
41687 cat >>confdefs.h <<\_ACEOF
41688#define wxUSE_STDPATHS 1
41689_ACEOF
41690
41691fi
41692
a848cd7e
SC
41693if test "$wxUSE_TEXTBUFFER" = "yes"; then
41694 cat >>confdefs.h <<\_ACEOF
41695#define wxUSE_TEXTBUFFER 1
41696_ACEOF
41697
41698fi
41699
41700if test "$wxUSE_TEXTFILE" = "yes"; then
41701 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41702 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41703echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41704 else
41705 cat >>confdefs.h <<\_ACEOF
41706#define wxUSE_TEXTFILE 1
41707_ACEOF
41708
41709 fi
41710fi
41711
41712if test "$wxUSE_CONFIG" = "yes" ; then
41713 if test "$wxUSE_TEXTFILE" != "yes"; then
41714 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41715echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41716 else
41717 cat >>confdefs.h <<\_ACEOF
41718#define wxUSE_CONFIG 1
89be85c2
VS
41719_ACEOF
41720
41721 cat >>confdefs.h <<\_ACEOF
41722#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41723_ACEOF
41724
41725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41726 fi
41727fi
41728
41729if test "$wxUSE_INTL" = "yes" ; then
41730 if test "$wxUSE_FILE" != "yes"; then
41731 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41732echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41733 else
41734 cat >>confdefs.h <<\_ACEOF
41735#define wxUSE_INTL 1
41736_ACEOF
41737
41738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41739 GUIDIST="$GUIDIST INTL_DIST"
41740 fi
41741fi
41742
41743if test "$wxUSE_LOG" = "yes"; then
41744 cat >>confdefs.h <<\_ACEOF
41745#define wxUSE_LOG 1
41746_ACEOF
41747
41748
41749 if test "$wxUSE_LOGGUI" = "yes"; then
41750 cat >>confdefs.h <<\_ACEOF
41751#define wxUSE_LOGGUI 1
41752_ACEOF
41753
41754 fi
41755
41756 if test "$wxUSE_LOGWINDOW" = "yes"; then
41757 cat >>confdefs.h <<\_ACEOF
41758#define wxUSE_LOGWINDOW 1
41759_ACEOF
41760
41761 fi
41762
41763 if test "$wxUSE_LOGDIALOG" = "yes"; then
41764 cat >>confdefs.h <<\_ACEOF
41765#define wxUSE_LOG_DIALOG 1
41766_ACEOF
41767
41768 fi
0b78747f
MW
41769
41770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41771fi
41772
41773if test "$wxUSE_LONGLONG" = "yes"; then
41774 cat >>confdefs.h <<\_ACEOF
41775#define wxUSE_LONGLONG 1
41776_ACEOF
41777
41778fi
41779
41780if test "$wxUSE_GEOMETRY" = "yes"; then
41781 cat >>confdefs.h <<\_ACEOF
41782#define wxUSE_GEOMETRY 1
41783_ACEOF
41784
41785fi
41786
a848cd7e
SC
41787if test "$wxUSE_STREAMS" = "yes" ; then
41788 cat >>confdefs.h <<\_ACEOF
41789#define wxUSE_STREAMS 1
41790_ACEOF
41791
41792fi
41793
41794
41795if test "$wxUSE_DATETIME" = "yes"; then
41796
41797for ac_func in strptime
41798do
41799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41800echo "$as_me:$LINENO: checking for $ac_func" >&5
41801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41802if eval "test \"\${$as_ac_var+set}\" = set"; then
41803 echo $ECHO_N "(cached) $ECHO_C" >&6
41804else
41805 cat >conftest.$ac_ext <<_ACEOF
41806/* confdefs.h. */
41807_ACEOF
41808cat confdefs.h >>conftest.$ac_ext
41809cat >>conftest.$ac_ext <<_ACEOF
41810/* end confdefs.h. */
ac1cb8d3
VS
41811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41813#define $ac_func innocuous_$ac_func
41814
a848cd7e
SC
41815/* System header to define __stub macros and hopefully few prototypes,
41816 which can conflict with char $ac_func (); below.
41817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41818 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41819
a848cd7e
SC
41820#ifdef __STDC__
41821# include <limits.h>
41822#else
41823# include <assert.h>
41824#endif
ac1cb8d3
VS
41825
41826#undef $ac_func
41827
a848cd7e
SC
41828/* Override any gcc2 internal prototype to avoid an error. */
41829#ifdef __cplusplus
41830extern "C"
41831{
41832#endif
41833/* We use char because int might match the return type of a gcc2
41834 builtin and then its argument prototype would still apply. */
41835char $ac_func ();
41836/* The GNU C library defines this for functions which it implements
41837 to always fail with ENOSYS. Some functions are actually named
41838 something starting with __ and the normal name is an alias. */
41839#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41840choke me
41841#else
41842char (*f) () = $ac_func;
41843#endif
41844#ifdef __cplusplus
41845}
41846#endif
41847
41848int
41849main ()
41850{
41851return f != $ac_func;
41852 ;
41853 return 0;
41854}
41855_ACEOF
41856rm -f conftest.$ac_objext conftest$ac_exeext
41857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41858 (eval $ac_link) 2>conftest.er1
a848cd7e 41859 ac_status=$?
ac1cb8d3
VS
41860 grep -v '^ *+' conftest.er1 >conftest.err
41861 rm -f conftest.er1
41862 cat conftest.err >&5
a848cd7e
SC
41863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41864 (exit $ac_status); } &&
d25774ab
JS
41865 { ac_try='test -z "$ac_cxx_werror_flag"
41866 || test ! -s conftest.err'
ac1cb8d3
VS
41867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41868 (eval $ac_try) 2>&5
41869 ac_status=$?
41870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41871 (exit $ac_status); }; } &&
41872 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41874 (eval $ac_try) 2>&5
41875 ac_status=$?
41876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41877 (exit $ac_status); }; }; then
41878 eval "$as_ac_var=yes"
41879else
41880 echo "$as_me: failed program was:" >&5
41881sed 's/^/| /' conftest.$ac_ext >&5
41882
41883eval "$as_ac_var=no"
41884fi
ac1cb8d3
VS
41885rm -f conftest.err conftest.$ac_objext \
41886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41887fi
41888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41889echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41890if test `eval echo '${'$as_ac_var'}'` = yes; then
41891 cat >>confdefs.h <<_ACEOF
41892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41893_ACEOF
41894
41895fi
41896done
41897
f536f005
VZ
41898 if test "$ac_cv_func_strptime" = "yes"; then
41899 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41900echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41901if test "${wx_cv_func_strptime_decl+set}" = set; then
41902 echo $ECHO_N "(cached) $ECHO_C" >&6
41903else
41904
f536f005
VZ
41905 cat >conftest.$ac_ext <<_ACEOF
41906/* confdefs.h. */
41907_ACEOF
41908cat confdefs.h >>conftest.$ac_ext
41909cat >>conftest.$ac_ext <<_ACEOF
41910/* end confdefs.h. */
41911
41912 #include <time.h>
41913
41914int
41915main ()
41916{
41917
41918 struct tm t;
41919 strptime("foo", "bar", &t);
41920
41921 ;
41922 return 0;
41923}
41924_ACEOF
41925rm -f conftest.$ac_objext
41926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41927 (eval $ac_compile) 2>conftest.er1
41928 ac_status=$?
41929 grep -v '^ *+' conftest.er1 >conftest.err
41930 rm -f conftest.er1
41931 cat conftest.err >&5
41932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41933 (exit $ac_status); } &&
d25774ab
JS
41934 { ac_try='test -z "$ac_cxx_werror_flag"
41935 || test ! -s conftest.err'
f536f005
VZ
41936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41937 (eval $ac_try) 2>&5
41938 ac_status=$?
41939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940 (exit $ac_status); }; } &&
41941 { ac_try='test -s conftest.$ac_objext'
41942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41943 (eval $ac_try) 2>&5
41944 ac_status=$?
41945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946 (exit $ac_status); }; }; then
41947 wx_cv_func_strptime_decl=yes
41948else
41949 echo "$as_me: failed program was:" >&5
41950sed 's/^/| /' conftest.$ac_ext >&5
41951
41952wx_cv_func_strptime_decl=no
41953
41954fi
41955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
41956
41957
41958fi
41959echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41960echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41961 fi
41962 if test "$wx_cv_func_strptime_decl" = "yes"; then
41963 cat >>confdefs.h <<\_ACEOF
41964#define HAVE_STRPTIME_DECL 1
41965_ACEOF
41966
41967 fi
a848cd7e
SC
41968
41969 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41970echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41971if test "${wx_cv_var_timezone+set}" = set; then
41972 echo $ECHO_N "(cached) $ECHO_C" >&6
41973else
41974
41975 cat >conftest.$ac_ext <<_ACEOF
41976/* confdefs.h. */
41977_ACEOF
41978cat confdefs.h >>conftest.$ac_ext
41979cat >>conftest.$ac_ext <<_ACEOF
41980/* end confdefs.h. */
41981
41982 #include <time.h>
41983
41984int
41985main ()
41986{
41987
41988 int tz;
41989 tz = timezone;
41990
41991 ;
41992 return 0;
41993}
41994_ACEOF
41995rm -f conftest.$ac_objext
41996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41997 (eval $ac_compile) 2>conftest.er1
a848cd7e 41998 ac_status=$?
ac1cb8d3
VS
41999 grep -v '^ *+' conftest.er1 >conftest.err
42000 rm -f conftest.er1
42001 cat conftest.err >&5
a848cd7e
SC
42002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42003 (exit $ac_status); } &&
d25774ab
JS
42004 { ac_try='test -z "$ac_cxx_werror_flag"
42005 || test ! -s conftest.err'
ac1cb8d3
VS
42006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42007 (eval $ac_try) 2>&5
42008 ac_status=$?
42009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010 (exit $ac_status); }; } &&
42011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42013 (eval $ac_try) 2>&5
42014 ac_status=$?
42015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016 (exit $ac_status); }; }; then
42017
42018 wx_cv_var_timezone=timezone
42019
42020else
42021 echo "$as_me: failed program was:" >&5
42022sed 's/^/| /' conftest.$ac_ext >&5
42023
42024
42025 cat >conftest.$ac_ext <<_ACEOF
42026/* confdefs.h. */
42027_ACEOF
42028cat confdefs.h >>conftest.$ac_ext
42029cat >>conftest.$ac_ext <<_ACEOF
42030/* end confdefs.h. */
42031
42032 #include <time.h>
42033
42034int
42035main ()
42036{
42037
42038 int tz;
42039 tz = _timezone;
42040
42041 ;
42042 return 0;
42043}
42044_ACEOF
42045rm -f conftest.$ac_objext
42046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42047 (eval $ac_compile) 2>conftest.er1
a848cd7e 42048 ac_status=$?
ac1cb8d3
VS
42049 grep -v '^ *+' conftest.er1 >conftest.err
42050 rm -f conftest.er1
42051 cat conftest.err >&5
a848cd7e
SC
42052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42053 (exit $ac_status); } &&
d25774ab
JS
42054 { ac_try='test -z "$ac_cxx_werror_flag"
42055 || test ! -s conftest.err'
ac1cb8d3
VS
42056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42057 (eval $ac_try) 2>&5
42058 ac_status=$?
42059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42060 (exit $ac_status); }; } &&
42061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42063 (eval $ac_try) 2>&5
42064 ac_status=$?
42065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42066 (exit $ac_status); }; }; then
42067
42068 wx_cv_var_timezone=_timezone
42069
42070else
42071 echo "$as_me: failed program was:" >&5
42072sed 's/^/| /' conftest.$ac_ext >&5
42073
42074
42075 cat >conftest.$ac_ext <<_ACEOF
42076/* confdefs.h. */
42077_ACEOF
42078cat confdefs.h >>conftest.$ac_ext
42079cat >>conftest.$ac_ext <<_ACEOF
42080/* end confdefs.h. */
42081
42082 #include <time.h>
42083
42084int
42085main ()
42086{
42087
42088 int tz;
42089 tz = __timezone;
42090
42091 ;
42092 return 0;
42093}
42094_ACEOF
42095rm -f conftest.$ac_objext
42096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42097 (eval $ac_compile) 2>conftest.er1
a848cd7e 42098 ac_status=$?
ac1cb8d3
VS
42099 grep -v '^ *+' conftest.er1 >conftest.err
42100 rm -f conftest.er1
42101 cat conftest.err >&5
a848cd7e
SC
42102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42103 (exit $ac_status); } &&
d25774ab
JS
42104 { ac_try='test -z "$ac_cxx_werror_flag"
42105 || test ! -s conftest.err'
ac1cb8d3
VS
42106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42107 (eval $ac_try) 2>&5
42108 ac_status=$?
42109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42110 (exit $ac_status); }; } &&
42111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42113 (eval $ac_try) 2>&5
42114 ac_status=$?
42115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42116 (exit $ac_status); }; }; then
42117
42118 wx_cv_var_timezone=__timezone
42119
42120else
42121 echo "$as_me: failed program was:" >&5
42122sed 's/^/| /' conftest.$ac_ext >&5
42123
42124
42125 if test "$USE_DOS" = 0 ; then
42126 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42127echo "$as_me: WARNING: no timezone variable" >&2;}
42128 fi
42129
42130
42131fi
ac1cb8d3 42132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42133
42134
42135fi
ac1cb8d3 42136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42137
42138
42139fi
ac1cb8d3 42140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42141
42142
42143fi
42144echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42145echo "${ECHO_T}$wx_cv_var_timezone" >&6
42146
42147 if test "x$wx_cv_var_timezone" != x ; then
42148 cat >>confdefs.h <<_ACEOF
42149#define WX_TIMEZONE $wx_cv_var_timezone
42150_ACEOF
42151
42152 fi
42153
42154
42155for ac_func in localtime
42156do
42157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42158echo "$as_me:$LINENO: checking for $ac_func" >&5
42159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42160if eval "test \"\${$as_ac_var+set}\" = set"; then
42161 echo $ECHO_N "(cached) $ECHO_C" >&6
42162else
42163 cat >conftest.$ac_ext <<_ACEOF
42164/* confdefs.h. */
42165_ACEOF
42166cat confdefs.h >>conftest.$ac_ext
42167cat >>conftest.$ac_ext <<_ACEOF
42168/* end confdefs.h. */
ac1cb8d3
VS
42169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42171#define $ac_func innocuous_$ac_func
42172
a848cd7e
SC
42173/* System header to define __stub macros and hopefully few prototypes,
42174 which can conflict with char $ac_func (); below.
42175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42176 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42177
a848cd7e
SC
42178#ifdef __STDC__
42179# include <limits.h>
42180#else
42181# include <assert.h>
42182#endif
ac1cb8d3
VS
42183
42184#undef $ac_func
42185
a848cd7e
SC
42186/* Override any gcc2 internal prototype to avoid an error. */
42187#ifdef __cplusplus
42188extern "C"
42189{
42190#endif
42191/* We use char because int might match the return type of a gcc2
42192 builtin and then its argument prototype would still apply. */
42193char $ac_func ();
42194/* The GNU C library defines this for functions which it implements
42195 to always fail with ENOSYS. Some functions are actually named
42196 something starting with __ and the normal name is an alias. */
42197#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42198choke me
42199#else
42200char (*f) () = $ac_func;
42201#endif
42202#ifdef __cplusplus
42203}
42204#endif
42205
42206int
42207main ()
42208{
42209return f != $ac_func;
42210 ;
42211 return 0;
42212}
42213_ACEOF
42214rm -f conftest.$ac_objext conftest$ac_exeext
42215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42216 (eval $ac_link) 2>conftest.er1
a848cd7e 42217 ac_status=$?
ac1cb8d3
VS
42218 grep -v '^ *+' conftest.er1 >conftest.err
42219 rm -f conftest.er1
42220 cat conftest.err >&5
a848cd7e
SC
42221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42222 (exit $ac_status); } &&
d25774ab
JS
42223 { ac_try='test -z "$ac_cxx_werror_flag"
42224 || test ! -s conftest.err'
ac1cb8d3
VS
42225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42226 (eval $ac_try) 2>&5
42227 ac_status=$?
42228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42229 (exit $ac_status); }; } &&
42230 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42232 (eval $ac_try) 2>&5
42233 ac_status=$?
42234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42235 (exit $ac_status); }; }; then
42236 eval "$as_ac_var=yes"
42237else
42238 echo "$as_me: failed program was:" >&5
42239sed 's/^/| /' conftest.$ac_ext >&5
42240
42241eval "$as_ac_var=no"
42242fi
ac1cb8d3
VS
42243rm -f conftest.err conftest.$ac_objext \
42244 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42245fi
42246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42247echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42248if test `eval echo '${'$as_ac_var'}'` = yes; then
42249 cat >>confdefs.h <<_ACEOF
42250#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42251_ACEOF
42252
42253fi
42254done
42255
42256
42257 if test "$ac_cv_func_localtime" = "yes"; then
42258 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42259echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42260if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42261 echo $ECHO_N "(cached) $ECHO_C" >&6
42262else
42263
42264 cat >conftest.$ac_ext <<_ACEOF
42265/* confdefs.h. */
42266_ACEOF
42267cat confdefs.h >>conftest.$ac_ext
42268cat >>conftest.$ac_ext <<_ACEOF
42269/* end confdefs.h. */
42270
42271 #include <time.h>
42272
42273int
42274main ()
42275{
42276
42277 struct tm tm;
42278 tm.tm_gmtoff++;
42279
42280 ;
42281 return 0;
42282}
42283_ACEOF
42284rm -f conftest.$ac_objext
42285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42286 (eval $ac_compile) 2>conftest.er1
a848cd7e 42287 ac_status=$?
ac1cb8d3
VS
42288 grep -v '^ *+' conftest.er1 >conftest.err
42289 rm -f conftest.er1
42290 cat conftest.err >&5
a848cd7e
SC
42291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42292 (exit $ac_status); } &&
d25774ab
JS
42293 { ac_try='test -z "$ac_cxx_werror_flag"
42294 || test ! -s conftest.err'
ac1cb8d3
VS
42295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42296 (eval $ac_try) 2>&5
42297 ac_status=$?
42298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42299 (exit $ac_status); }; } &&
42300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42302 (eval $ac_try) 2>&5
42303 ac_status=$?
42304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42305 (exit $ac_status); }; }; then
42306
42307 wx_cv_struct_tm_has_gmtoff=yes
42308
42309else
42310 echo "$as_me: failed program was:" >&5
42311sed 's/^/| /' conftest.$ac_ext >&5
42312
42313wx_cv_struct_tm_has_gmtoff=no
42314
42315fi
ac1cb8d3 42316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42317
42318fi
42319echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42320echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42321 fi
42322
42323 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42324 cat >>confdefs.h <<\_ACEOF
42325#define WX_GMTOFF_IN_TM 1
42326_ACEOF
42327
42328 fi
42329
42330
42331
42332for ac_func in gettimeofday ftime
42333do
42334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42335echo "$as_me:$LINENO: checking for $ac_func" >&5
42336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42337if eval "test \"\${$as_ac_var+set}\" = set"; then
42338 echo $ECHO_N "(cached) $ECHO_C" >&6
42339else
42340 cat >conftest.$ac_ext <<_ACEOF
42341/* confdefs.h. */
42342_ACEOF
42343cat confdefs.h >>conftest.$ac_ext
42344cat >>conftest.$ac_ext <<_ACEOF
42345/* end confdefs.h. */
ac1cb8d3
VS
42346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42348#define $ac_func innocuous_$ac_func
42349
a848cd7e
SC
42350/* System header to define __stub macros and hopefully few prototypes,
42351 which can conflict with char $ac_func (); below.
42352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42353 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42354
a848cd7e
SC
42355#ifdef __STDC__
42356# include <limits.h>
42357#else
42358# include <assert.h>
42359#endif
ac1cb8d3
VS
42360
42361#undef $ac_func
42362
a848cd7e
SC
42363/* Override any gcc2 internal prototype to avoid an error. */
42364#ifdef __cplusplus
42365extern "C"
42366{
42367#endif
42368/* We use char because int might match the return type of a gcc2
42369 builtin and then its argument prototype would still apply. */
42370char $ac_func ();
42371/* The GNU C library defines this for functions which it implements
42372 to always fail with ENOSYS. Some functions are actually named
42373 something starting with __ and the normal name is an alias. */
42374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42375choke me
42376#else
42377char (*f) () = $ac_func;
42378#endif
42379#ifdef __cplusplus
42380}
42381#endif
42382
42383int
42384main ()
42385{
42386return f != $ac_func;
42387 ;
42388 return 0;
42389}
42390_ACEOF
42391rm -f conftest.$ac_objext conftest$ac_exeext
42392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42393 (eval $ac_link) 2>conftest.er1
a848cd7e 42394 ac_status=$?
ac1cb8d3
VS
42395 grep -v '^ *+' conftest.er1 >conftest.err
42396 rm -f conftest.er1
42397 cat conftest.err >&5
a848cd7e
SC
42398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42399 (exit $ac_status); } &&
d25774ab
JS
42400 { ac_try='test -z "$ac_cxx_werror_flag"
42401 || test ! -s conftest.err'
ac1cb8d3
VS
42402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42403 (eval $ac_try) 2>&5
42404 ac_status=$?
42405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42406 (exit $ac_status); }; } &&
42407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42409 (eval $ac_try) 2>&5
42410 ac_status=$?
42411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42412 (exit $ac_status); }; }; then
42413 eval "$as_ac_var=yes"
42414else
42415 echo "$as_me: failed program was:" >&5
42416sed 's/^/| /' conftest.$ac_ext >&5
42417
42418eval "$as_ac_var=no"
42419fi
ac1cb8d3
VS
42420rm -f conftest.err conftest.$ac_objext \
42421 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42422fi
42423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42424echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42425if test `eval echo '${'$as_ac_var'}'` = yes; then
42426 cat >>confdefs.h <<_ACEOF
42427#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42428_ACEOF
42429 break
42430fi
42431done
42432
42433
42434 if test "$ac_cv_func_gettimeofday" = "yes"; then
42435 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42436echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42437if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42438 echo $ECHO_N "(cached) $ECHO_C" >&6
42439else
42440
5d7b7554 42441 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42442/* confdefs.h. */
42443_ACEOF
42444cat confdefs.h >>conftest.$ac_ext
42445cat >>conftest.$ac_ext <<_ACEOF
42446/* end confdefs.h. */
42447
42448 #include <sys/time.h>
42449 #include <unistd.h>
42450
42451int
42452main ()
42453{
42454
42455 struct timeval tv;
42456 gettimeofday(&tv, NULL);
42457
42458 ;
42459 return 0;
42460}
42461_ACEOF
42462rm -f conftest.$ac_objext
42463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42464 (eval $ac_compile) 2>conftest.er1
a848cd7e 42465 ac_status=$?
ac1cb8d3
VS
42466 grep -v '^ *+' conftest.er1 >conftest.err
42467 rm -f conftest.er1
42468 cat conftest.err >&5
a848cd7e
SC
42469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42470 (exit $ac_status); } &&
d25774ab
JS
42471 { ac_try='test -z "$ac_cxx_werror_flag"
42472 || test ! -s conftest.err'
ac1cb8d3
VS
42473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42474 (eval $ac_try) 2>&5
42475 ac_status=$?
42476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42477 (exit $ac_status); }; } &&
42478 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42480 (eval $ac_try) 2>&5
42481 ac_status=$?
42482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42483 (exit $ac_status); }; }; then
42484 wx_cv_func_gettimeofday_has_2_args=yes
42485else
42486 echo "$as_me: failed program was:" >&5
42487sed 's/^/| /' conftest.$ac_ext >&5
42488
42489cat >conftest.$ac_ext <<_ACEOF
42490/* confdefs.h. */
42491_ACEOF
42492cat confdefs.h >>conftest.$ac_ext
42493cat >>conftest.$ac_ext <<_ACEOF
42494/* end confdefs.h. */
42495
42496 #include <sys/time.h>
42497 #include <unistd.h>
42498
42499int
42500main ()
42501{
42502
42503 struct timeval tv;
42504 gettimeofday(&tv);
42505
42506 ;
42507 return 0;
42508}
42509_ACEOF
42510rm -f conftest.$ac_objext
42511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42512 (eval $ac_compile) 2>conftest.er1
a848cd7e 42513 ac_status=$?
ac1cb8d3
VS
42514 grep -v '^ *+' conftest.er1 >conftest.err
42515 rm -f conftest.er1
42516 cat conftest.err >&5
a848cd7e
SC
42517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42518 (exit $ac_status); } &&
d25774ab
JS
42519 { ac_try='test -z "$ac_cxx_werror_flag"
42520 || test ! -s conftest.err'
ac1cb8d3
VS
42521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42522 (eval $ac_try) 2>&5
42523 ac_status=$?
42524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42525 (exit $ac_status); }; } &&
42526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42528 (eval $ac_try) 2>&5
42529 ac_status=$?
42530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531 (exit $ac_status); }; }; then
42532 wx_cv_func_gettimeofday_has_2_args=no
42533else
42534 echo "$as_me: failed program was:" >&5
42535sed 's/^/| /' conftest.$ac_ext >&5
42536
42537
42538 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42539echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42540 wx_cv_func_gettimeofday_has_2_args=unknown
42541
42542
42543fi
ac1cb8d3 42544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42545
42546fi
ac1cb8d3 42547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42548
42549fi
42550echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42551echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42552
42553 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42554 cat >>confdefs.h <<\_ACEOF
42555#define WX_GETTIMEOFDAY_NO_TZ 1
42556_ACEOF
42557
42558 fi
42559 fi
42560
42561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42562fi
42563
42564
42565if test "$wxUSE_SOCKETS" = "yes"; then
42566 if test "$wxUSE_MGL" = "1"; then
42567 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42568echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42569 wxUSE_SOCKETS="no"
42570 fi
42571fi
42572
42573if test "$wxUSE_SOCKETS" = "yes"; then
42574 if test "$TOOLKIT" != "MSW"; then
42575 echo "$as_me:$LINENO: checking for socket" >&5
42576echo $ECHO_N "checking for socket... $ECHO_C" >&6
42577if test "${ac_cv_func_socket+set}" = set; then
42578 echo $ECHO_N "(cached) $ECHO_C" >&6
42579else
42580 cat >conftest.$ac_ext <<_ACEOF
42581/* confdefs.h. */
42582_ACEOF
42583cat confdefs.h >>conftest.$ac_ext
42584cat >>conftest.$ac_ext <<_ACEOF
42585/* end confdefs.h. */
ac1cb8d3
VS
42586/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42588#define socket innocuous_socket
42589
a848cd7e
SC
42590/* System header to define __stub macros and hopefully few prototypes,
42591 which can conflict with char socket (); below.
42592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42593 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42594
a848cd7e
SC
42595#ifdef __STDC__
42596# include <limits.h>
42597#else
42598# include <assert.h>
42599#endif
ac1cb8d3
VS
42600
42601#undef socket
42602
a848cd7e
SC
42603/* Override any gcc2 internal prototype to avoid an error. */
42604#ifdef __cplusplus
42605extern "C"
42606{
42607#endif
42608/* We use char because int might match the return type of a gcc2
42609 builtin and then its argument prototype would still apply. */
42610char socket ();
42611/* The GNU C library defines this for functions which it implements
42612 to always fail with ENOSYS. Some functions are actually named
42613 something starting with __ and the normal name is an alias. */
42614#if defined (__stub_socket) || defined (__stub___socket)
42615choke me
42616#else
42617char (*f) () = socket;
42618#endif
42619#ifdef __cplusplus
42620}
42621#endif
42622
42623int
42624main ()
42625{
42626return f != socket;
42627 ;
42628 return 0;
42629}
42630_ACEOF
42631rm -f conftest.$ac_objext conftest$ac_exeext
42632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42633 (eval $ac_link) 2>conftest.er1
a848cd7e 42634 ac_status=$?
ac1cb8d3
VS
42635 grep -v '^ *+' conftest.er1 >conftest.err
42636 rm -f conftest.er1
42637 cat conftest.err >&5
a848cd7e
SC
42638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42639 (exit $ac_status); } &&
d25774ab
JS
42640 { ac_try='test -z "$ac_cxx_werror_flag"
42641 || test ! -s conftest.err'
ac1cb8d3
VS
42642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42643 (eval $ac_try) 2>&5
42644 ac_status=$?
42645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42646 (exit $ac_status); }; } &&
42647 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42649 (eval $ac_try) 2>&5
42650 ac_status=$?
42651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42652 (exit $ac_status); }; }; then
42653 ac_cv_func_socket=yes
42654else
42655 echo "$as_me: failed program was:" >&5
42656sed 's/^/| /' conftest.$ac_ext >&5
42657
42658ac_cv_func_socket=no
42659fi
ac1cb8d3
VS
42660rm -f conftest.err conftest.$ac_objext \
42661 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42662fi
42663echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42664echo "${ECHO_T}$ac_cv_func_socket" >&6
42665if test $ac_cv_func_socket = yes; then
42666 :
42667else
42668
42669 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42670echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42671if test "${ac_cv_lib_socket_socket+set}" = set; then
42672 echo $ECHO_N "(cached) $ECHO_C" >&6
42673else
42674 ac_check_lib_save_LIBS=$LIBS
42675LIBS="-lsocket $LIBS"
42676cat >conftest.$ac_ext <<_ACEOF
42677/* confdefs.h. */
42678_ACEOF
42679cat confdefs.h >>conftest.$ac_ext
42680cat >>conftest.$ac_ext <<_ACEOF
42681/* end confdefs.h. */
42682
42683/* Override any gcc2 internal prototype to avoid an error. */
42684#ifdef __cplusplus
42685extern "C"
42686#endif
42687/* We use char because int might match the return type of a gcc2
42688 builtin and then its argument prototype would still apply. */
42689char socket ();
42690int
42691main ()
42692{
42693socket ();
42694 ;
42695 return 0;
42696}
42697_ACEOF
42698rm -f conftest.$ac_objext conftest$ac_exeext
42699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42700 (eval $ac_link) 2>conftest.er1
a848cd7e 42701 ac_status=$?
ac1cb8d3
VS
42702 grep -v '^ *+' conftest.er1 >conftest.err
42703 rm -f conftest.er1
42704 cat conftest.err >&5
a848cd7e
SC
42705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706 (exit $ac_status); } &&
d25774ab
JS
42707 { ac_try='test -z "$ac_cxx_werror_flag"
42708 || test ! -s conftest.err'
ac1cb8d3
VS
42709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42710 (eval $ac_try) 2>&5
42711 ac_status=$?
42712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42713 (exit $ac_status); }; } &&
42714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42716 (eval $ac_try) 2>&5
42717 ac_status=$?
42718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42719 (exit $ac_status); }; }; then
42720 ac_cv_lib_socket_socket=yes
42721else
42722 echo "$as_me: failed program was:" >&5
42723sed 's/^/| /' conftest.$ac_ext >&5
42724
42725ac_cv_lib_socket_socket=no
42726fi
ac1cb8d3
VS
42727rm -f conftest.err conftest.$ac_objext \
42728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42729LIBS=$ac_check_lib_save_LIBS
42730fi
42731echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42732echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42733if test $ac_cv_lib_socket_socket = yes; then
42734 if test "$INET_LINK" != " -lsocket"; then
42735 INET_LINK="$INET_LINK -lsocket"
42736 fi
42737else
42738
42739 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42740echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42741 wxUSE_SOCKETS=no
42742
42743
42744fi
42745
42746
42747
42748fi
42749
42750 fi
42751fi
42752
42753if test "$wxUSE_SOCKETS" = "yes" ; then
42754 if test "$TOOLKIT" != "MSW"; then
5d7b7554 42755 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42756echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42757if test "${wx_cv_type_getsockname3+set}" = set; then
42758 echo $ECHO_N "(cached) $ECHO_C" >&6
42759else
42760
42761 cat >conftest.$ac_ext <<_ACEOF
42762/* confdefs.h. */
42763_ACEOF
42764cat confdefs.h >>conftest.$ac_ext
42765cat >>conftest.$ac_ext <<_ACEOF
42766/* end confdefs.h. */
42767
42768 #include <sys/types.h>
42769 #include <sys/socket.h>
42770
42771int
42772main ()
42773{
42774
42775 socklen_t len;
42776 getsockname(0, 0, &len);
42777
42778 ;
42779 return 0;
42780}
42781_ACEOF
42782rm -f conftest.$ac_objext
42783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42784 (eval $ac_compile) 2>conftest.er1
a848cd7e 42785 ac_status=$?
ac1cb8d3
VS
42786 grep -v '^ *+' conftest.er1 >conftest.err
42787 rm -f conftest.er1
42788 cat conftest.err >&5
a848cd7e
SC
42789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42790 (exit $ac_status); } &&
d25774ab
JS
42791 { ac_try='test -z "$ac_cxx_werror_flag"
42792 || test ! -s conftest.err'
ac1cb8d3
VS
42793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42794 (eval $ac_try) 2>&5
42795 ac_status=$?
42796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42797 (exit $ac_status); }; } &&
42798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42800 (eval $ac_try) 2>&5
42801 ac_status=$?
42802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803 (exit $ac_status); }; }; then
42804 wx_cv_type_getsockname3=socklen_t
42805else
42806 echo "$as_me: failed program was:" >&5
42807sed 's/^/| /' conftest.$ac_ext >&5
42808
42809
6459a506 42810 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42811 if test "$GCC" = yes ; then
c92ad099 42812 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42813 fi
42814
42815 cat >conftest.$ac_ext <<_ACEOF
42816/* confdefs.h. */
42817_ACEOF
42818cat confdefs.h >>conftest.$ac_ext
42819cat >>conftest.$ac_ext <<_ACEOF
42820/* end confdefs.h. */
42821
42822 #include <sys/types.h>
42823 #include <sys/socket.h>
42824
42825int
42826main ()
42827{
42828
42829 size_t len;
42830 getsockname(0, 0, &len);
42831
42832 ;
42833 return 0;
42834}
42835_ACEOF
42836rm -f conftest.$ac_objext
42837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42838 (eval $ac_compile) 2>conftest.er1
a848cd7e 42839 ac_status=$?
ac1cb8d3
VS
42840 grep -v '^ *+' conftest.er1 >conftest.err
42841 rm -f conftest.er1
42842 cat conftest.err >&5
a848cd7e
SC
42843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42844 (exit $ac_status); } &&
d25774ab
JS
42845 { ac_try='test -z "$ac_cxx_werror_flag"
42846 || test ! -s conftest.err'
ac1cb8d3
VS
42847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42848 (eval $ac_try) 2>&5
42849 ac_status=$?
42850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42851 (exit $ac_status); }; } &&
42852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42854 (eval $ac_try) 2>&5
42855 ac_status=$?
42856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42857 (exit $ac_status); }; }; then
42858 wx_cv_type_getsockname3=size_t
42859else
42860 echo "$as_me: failed program was:" >&5
42861sed 's/^/| /' conftest.$ac_ext >&5
42862
42863cat >conftest.$ac_ext <<_ACEOF
42864/* confdefs.h. */
42865_ACEOF
42866cat confdefs.h >>conftest.$ac_ext
42867cat >>conftest.$ac_ext <<_ACEOF
42868/* end confdefs.h. */
42869
42870 #include <sys/types.h>
42871 #include <sys/socket.h>
42872
42873int
42874main ()
42875{
42876
42877 int len;
42878 getsockname(0, 0, &len);
42879
42880 ;
42881 return 0;
42882}
42883_ACEOF
42884rm -f conftest.$ac_objext
42885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42886 (eval $ac_compile) 2>conftest.er1
a848cd7e 42887 ac_status=$?
ac1cb8d3
VS
42888 grep -v '^ *+' conftest.er1 >conftest.err
42889 rm -f conftest.er1
42890 cat conftest.err >&5
a848cd7e
SC
42891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42892 (exit $ac_status); } &&
d25774ab
JS
42893 { ac_try='test -z "$ac_cxx_werror_flag"
42894 || test ! -s conftest.err'
ac1cb8d3
VS
42895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42896 (eval $ac_try) 2>&5
42897 ac_status=$?
42898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42899 (exit $ac_status); }; } &&
42900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42902 (eval $ac_try) 2>&5
42903 ac_status=$?
42904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42905 (exit $ac_status); }; }; then
42906 wx_cv_type_getsockname3=int
42907else
42908 echo "$as_me: failed program was:" >&5
42909sed 's/^/| /' conftest.$ac_ext >&5
42910
42911wx_cv_type_getsockname3=unknown
42912
42913fi
ac1cb8d3 42914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42915
42916fi
ac1cb8d3 42917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42918
6459a506 42919 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42920
42921
42922fi
ac1cb8d3 42923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42924
42925fi
42926echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42927echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42928
42929 if test "$wx_cv_type_getsockname3" = "unknown"; then
42930 wxUSE_SOCKETS=no
42931 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42932echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42933 else
42934 cat >>confdefs.h <<_ACEOF
9e03e02d 42935#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42936_ACEOF
42937
42938 fi
42939 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42940echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42941if test "${wx_cv_type_getsockopt5+set}" = set; then
42942 echo $ECHO_N "(cached) $ECHO_C" >&6
42943else
42944
42945 cat >conftest.$ac_ext <<_ACEOF
42946/* confdefs.h. */
42947_ACEOF
42948cat confdefs.h >>conftest.$ac_ext
42949cat >>conftest.$ac_ext <<_ACEOF
42950/* end confdefs.h. */
42951
42952 #include <sys/types.h>
42953 #include <sys/socket.h>
42954
42955int
42956main ()
42957{
42958
42959 socklen_t len;
42960 getsockopt(0, 0, 0, 0, &len);
42961
42962 ;
42963 return 0;
42964}
42965_ACEOF
42966rm -f conftest.$ac_objext
42967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42968 (eval $ac_compile) 2>conftest.er1
42969 ac_status=$?
42970 grep -v '^ *+' conftest.er1 >conftest.err
42971 rm -f conftest.er1
42972 cat conftest.err >&5
42973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42974 (exit $ac_status); } &&
d25774ab
JS
42975 { ac_try='test -z "$ac_cxx_werror_flag"
42976 || test ! -s conftest.err'
5b674b9d
DE
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); }; } &&
42982 { ac_try='test -s conftest.$ac_objext'
42983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42984 (eval $ac_try) 2>&5
42985 ac_status=$?
42986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42987 (exit $ac_status); }; }; then
42988 wx_cv_type_getsockopt5=socklen_t
42989else
42990 echo "$as_me: failed program was:" >&5
42991sed 's/^/| /' conftest.$ac_ext >&5
42992
42993
6459a506 42994 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42995 if test "$GCC" = yes ; then
c92ad099 42996 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42997 fi
42998
42999 cat >conftest.$ac_ext <<_ACEOF
43000/* confdefs.h. */
43001_ACEOF
43002cat confdefs.h >>conftest.$ac_ext
43003cat >>conftest.$ac_ext <<_ACEOF
43004/* end confdefs.h. */
43005
43006 #include <sys/types.h>
43007 #include <sys/socket.h>
43008
43009int
43010main ()
43011{
43012
43013 size_t len;
43014 getsockopt(0, 0, 0, 0, &len);
43015
43016 ;
43017 return 0;
43018}
43019_ACEOF
43020rm -f conftest.$ac_objext
43021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43022 (eval $ac_compile) 2>conftest.er1
43023 ac_status=$?
43024 grep -v '^ *+' conftest.er1 >conftest.err
43025 rm -f conftest.er1
43026 cat conftest.err >&5
43027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43028 (exit $ac_status); } &&
d25774ab
JS
43029 { ac_try='test -z "$ac_cxx_werror_flag"
43030 || test ! -s conftest.err'
5b674b9d
DE
43031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43032 (eval $ac_try) 2>&5
43033 ac_status=$?
43034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43035 (exit $ac_status); }; } &&
43036 { ac_try='test -s conftest.$ac_objext'
43037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43038 (eval $ac_try) 2>&5
43039 ac_status=$?
43040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43041 (exit $ac_status); }; }; then
43042 wx_cv_type_getsockopt5=size_t
43043else
43044 echo "$as_me: failed program was:" >&5
43045sed 's/^/| /' conftest.$ac_ext >&5
43046
43047cat >conftest.$ac_ext <<_ACEOF
43048/* confdefs.h. */
43049_ACEOF
43050cat confdefs.h >>conftest.$ac_ext
43051cat >>conftest.$ac_ext <<_ACEOF
43052/* end confdefs.h. */
43053
43054 #include <sys/types.h>
43055 #include <sys/socket.h>
43056
43057int
43058main ()
43059{
43060
43061 int len;
43062 getsockopt(0, 0, 0, 0, &len);
43063
43064 ;
43065 return 0;
43066}
43067_ACEOF
43068rm -f conftest.$ac_objext
43069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43070 (eval $ac_compile) 2>conftest.er1
43071 ac_status=$?
43072 grep -v '^ *+' conftest.er1 >conftest.err
43073 rm -f conftest.er1
43074 cat conftest.err >&5
43075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43076 (exit $ac_status); } &&
d25774ab
JS
43077 { ac_try='test -z "$ac_cxx_werror_flag"
43078 || test ! -s conftest.err'
5b674b9d
DE
43079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43080 (eval $ac_try) 2>&5
43081 ac_status=$?
43082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43083 (exit $ac_status); }; } &&
43084 { ac_try='test -s conftest.$ac_objext'
43085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43086 (eval $ac_try) 2>&5
43087 ac_status=$?
43088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43089 (exit $ac_status); }; }; then
43090 wx_cv_type_getsockopt5=int
43091else
43092 echo "$as_me: failed program was:" >&5
43093sed 's/^/| /' conftest.$ac_ext >&5
43094
43095wx_cv_type_getsockopt5=unknown
43096
43097fi
43098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43099
43100fi
43101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43102
6459a506 43103 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
43104
43105
43106fi
43107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43108
43109fi
43110echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43111echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43112
43113 if test "$wx_cv_type_getsockopt5" = "unknown"; then
43114 wxUSE_SOCKETS=no
43115 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43116echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43117 else
43118 cat >>confdefs.h <<_ACEOF
43119#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
43120_ACEOF
43121
43122 fi
43123 fi
43124fi
43125
43126if test "$wxUSE_SOCKETS" = "yes" ; then
43127 cat >>confdefs.h <<\_ACEOF
43128#define wxUSE_SOCKETS 1
43129_ACEOF
43130
43131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43132fi
43133
43134if test "$wxUSE_PROTOCOL" = "yes"; then
43135 if test "$wxUSE_SOCKETS" != "yes"; then
43136 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43137echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43138 wxUSE_PROTOCOL=no
43139 fi
43140fi
43141
43142if test "$wxUSE_PROTOCOL" = "yes"; then
43143 cat >>confdefs.h <<\_ACEOF
43144#define wxUSE_PROTOCOL 1
43145_ACEOF
43146
43147
43148 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43149 cat >>confdefs.h <<\_ACEOF
43150#define wxUSE_PROTOCOL_HTTP 1
43151_ACEOF
43152
43153 fi
43154 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43155 cat >>confdefs.h <<\_ACEOF
43156#define wxUSE_PROTOCOL_FTP 1
43157_ACEOF
43158
43159 fi
43160 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43161 cat >>confdefs.h <<\_ACEOF
43162#define wxUSE_PROTOCOL_FILE 1
43163_ACEOF
43164
43165 fi
43166else
43167 if test "$wxUSE_FS_INET" = "yes"; then
43168 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43169echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43170 wxUSE_FS_INET="no"
43171 fi
43172fi
43173
43174if test "$wxUSE_URL" = "yes"; then
43175 if test "$wxUSE_PROTOCOL" != "yes"; then
43176 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43177echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43178 wxUSE_URL=no
43179 fi
43180 if test "$wxUSE_URL" = "yes"; then
43181 cat >>confdefs.h <<\_ACEOF
43182#define wxUSE_URL 1
43183_ACEOF
43184
43185 fi
43186fi
43187
43188if test "$wxUSE_FS_INET" = "yes"; then
43189 cat >>confdefs.h <<\_ACEOF
43190#define wxUSE_FS_INET 1
43191_ACEOF
43192
43193fi
43194
43195
ee45c548
MW
43196if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43197 wxUSE_JOYSTICK=no
43198
43199 if test "$TOOLKIT" = "MSW"; then
43200 wxUSE_JOYSTICK=yes
43201
43202 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43203 if test "$USE_DARWIN" = 1; then
43204 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43205echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
43206 cat >conftest.$ac_ext <<_ACEOF
43207/* confdefs.h. */
43208_ACEOF
43209cat confdefs.h >>conftest.$ac_ext
43210cat >>conftest.$ac_ext <<_ACEOF
43211/* end confdefs.h. */
43212 #include <IOKit/hid/IOHIDLib.h>
43213int
43214main ()
43215{
43216 IOHIDQueueInterface *qi = NULL;
43217 IOHIDCallbackFunction cb = NULL;
43218 qi->setEventCallout(NULL, cb, NULL, NULL);
43219 ;
43220 return 0;
43221}
43222_ACEOF
43223rm -f conftest.$ac_objext
43224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43225 (eval $ac_compile) 2>conftest.er1
43226 ac_status=$?
43227 grep -v '^ *+' conftest.er1 >conftest.err
43228 rm -f conftest.er1
43229 cat conftest.err >&5
43230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43231 (exit $ac_status); } &&
d25774ab
JS
43232 { ac_try='test -z "$ac_cxx_werror_flag"
43233 || test ! -s conftest.err'
ee45c548
MW
43234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43235 (eval $ac_try) 2>&5
43236 ac_status=$?
43237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43238 (exit $ac_status); }; } &&
43239 { ac_try='test -s conftest.$ac_objext'
43240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43241 (eval $ac_try) 2>&5
43242 ac_status=$?
43243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43244 (exit $ac_status); }; }; then
43245 wxUSE_JOYSTICK=yes
a848cd7e 43246
ee45c548
MW
43247else
43248 echo "$as_me: failed program was:" >&5
43249sed 's/^/| /' conftest.$ac_ext >&5
43250
43251fi
43252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
43253 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43254echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43255 fi
43256
43257 else
a848cd7e
SC
43258
43259for ac_header in linux/joystick.h
43260do
43261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43262if eval "test \"\${$as_ac_Header+set}\" = set"; then
43263 echo "$as_me:$LINENO: checking for $ac_header" >&5
43264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43265if eval "test \"\${$as_ac_Header+set}\" = set"; then
43266 echo $ECHO_N "(cached) $ECHO_C" >&6
43267fi
43268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43270else
43271 # Is the header compilable?
43272echo "$as_me:$LINENO: checking $ac_header usability" >&5
43273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43274cat >conftest.$ac_ext <<_ACEOF
43275/* confdefs.h. */
43276_ACEOF
43277cat confdefs.h >>conftest.$ac_ext
43278cat >>conftest.$ac_ext <<_ACEOF
43279/* end confdefs.h. */
43280$ac_includes_default
43281#include <$ac_header>
43282_ACEOF
43283rm -f conftest.$ac_objext
43284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43285 (eval $ac_compile) 2>conftest.er1
a848cd7e 43286 ac_status=$?
ac1cb8d3
VS
43287 grep -v '^ *+' conftest.er1 >conftest.err
43288 rm -f conftest.er1
43289 cat conftest.err >&5
a848cd7e
SC
43290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43291 (exit $ac_status); } &&
d25774ab
JS
43292 { ac_try='test -z "$ac_cxx_werror_flag"
43293 || test ! -s conftest.err'
ac1cb8d3
VS
43294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43295 (eval $ac_try) 2>&5
43296 ac_status=$?
43297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298 (exit $ac_status); }; } &&
43299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43301 (eval $ac_try) 2>&5
43302 ac_status=$?
43303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304 (exit $ac_status); }; }; then
43305 ac_header_compiler=yes
43306else
43307 echo "$as_me: failed program was:" >&5
43308sed 's/^/| /' conftest.$ac_ext >&5
43309
43310ac_header_compiler=no
43311fi
ac1cb8d3 43312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43314echo "${ECHO_T}$ac_header_compiler" >&6
43315
43316# Is the header present?
43317echo "$as_me:$LINENO: checking $ac_header presence" >&5
43318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43319cat >conftest.$ac_ext <<_ACEOF
43320/* confdefs.h. */
43321_ACEOF
43322cat confdefs.h >>conftest.$ac_ext
43323cat >>conftest.$ac_ext <<_ACEOF
43324/* end confdefs.h. */
43325#include <$ac_header>
43326_ACEOF
43327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43329 ac_status=$?
43330 grep -v '^ *+' conftest.er1 >conftest.err
43331 rm -f conftest.er1
43332 cat conftest.err >&5
43333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43334 (exit $ac_status); } >/dev/null; then
43335 if test -s conftest.err; then
5d7b7554
VZ
43336 ac_cpp_err=$ac_cxx_preproc_warn_flag
43337 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43338 else
43339 ac_cpp_err=
43340 fi
43341else
43342 ac_cpp_err=yes
43343fi
43344if test -z "$ac_cpp_err"; then
43345 ac_header_preproc=yes
43346else
43347 echo "$as_me: failed program was:" >&5
43348sed 's/^/| /' conftest.$ac_ext >&5
43349
43350 ac_header_preproc=no
43351fi
43352rm -f conftest.err conftest.$ac_ext
43353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43354echo "${ECHO_T}$ac_header_preproc" >&6
43355
43356# So? What about this header?
5d7b7554 43357case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43358 yes:no: )
a848cd7e
SC
43359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43363 ac_header_preproc=yes
a848cd7e 43364 ;;
ac1cb8d3 43365 no:yes:* )
a848cd7e
SC
43366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43369echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43373echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43378 (
43379 cat <<\_ASBOX
ac1cb8d3
VS
43380## ----------------------------------------- ##
43381## Report this to wx-dev@lists.wxwidgets.org ##
43382## ----------------------------------------- ##
a848cd7e
SC
43383_ASBOX
43384 ) |
43385 sed "s/^/$as_me: WARNING: /" >&2
43386 ;;
43387esac
43388echo "$as_me:$LINENO: checking for $ac_header" >&5
43389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43390if eval "test \"\${$as_ac_Header+set}\" = set"; then
43391 echo $ECHO_N "(cached) $ECHO_C" >&6
43392else
ac1cb8d3 43393 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43394fi
43395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43397
43398fi
43399if test `eval echo '${'$as_ac_Header'}'` = yes; then
43400 cat >>confdefs.h <<_ACEOF
43401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43402_ACEOF
ee45c548 43403 wxUSE_JOYSTICK=yes
a848cd7e
SC
43404fi
43405
43406done
43407
ee45c548 43408 fi
4cb1d3da 43409
ee45c548
MW
43410 if test "$wxUSE_JOYSTICK" = "yes"; then
43411 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43412#define wxUSE_JOYSTICK 1
43413_ACEOF
43414
ee45c548
MW
43415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43416 else
43417 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43418echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43419 fi
43420fi
43421
43422
43423
43424if test "$wxUSE_FONTMAP" = "yes" ; then
43425 cat >>confdefs.h <<\_ACEOF
43426#define wxUSE_FONTMAP 1
43427_ACEOF
43428
43429fi
43430
43431if test "$wxUSE_UNICODE" = "yes" ; then
43432 cat >>confdefs.h <<\_ACEOF
43433#define wxUSE_UNICODE 1
43434_ACEOF
43435
43436
43437 if test "$USE_WIN32" != 1; then
43438 wxUSE_UNICODE_MSLU=no
43439 fi
43440
43441 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43442 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43443echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43444if test "${ac_cv_lib_unicows_main+set}" = set; then
43445 echo $ECHO_N "(cached) $ECHO_C" >&6
43446else
43447 ac_check_lib_save_LIBS=$LIBS
43448LIBS="-lunicows $LIBS"
43449cat >conftest.$ac_ext <<_ACEOF
43450/* confdefs.h. */
43451_ACEOF
43452cat confdefs.h >>conftest.$ac_ext
43453cat >>conftest.$ac_ext <<_ACEOF
43454/* end confdefs.h. */
43455
43456
43457int
43458main ()
43459{
43460main ();
43461 ;
43462 return 0;
43463}
43464_ACEOF
43465rm -f conftest.$ac_objext conftest$ac_exeext
43466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43467 (eval $ac_link) 2>conftest.er1
a848cd7e 43468 ac_status=$?
ac1cb8d3
VS
43469 grep -v '^ *+' conftest.er1 >conftest.err
43470 rm -f conftest.er1
43471 cat conftest.err >&5
a848cd7e
SC
43472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43473 (exit $ac_status); } &&
d25774ab
JS
43474 { ac_try='test -z "$ac_cxx_werror_flag"
43475 || test ! -s conftest.err'
ac1cb8d3
VS
43476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43477 (eval $ac_try) 2>&5
43478 ac_status=$?
43479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43480 (exit $ac_status); }; } &&
43481 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43483 (eval $ac_try) 2>&5
43484 ac_status=$?
43485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43486 (exit $ac_status); }; }; then
43487 ac_cv_lib_unicows_main=yes
43488else
43489 echo "$as_me: failed program was:" >&5
43490sed 's/^/| /' conftest.$ac_ext >&5
43491
43492ac_cv_lib_unicows_main=no
43493fi
ac1cb8d3
VS
43494rm -f conftest.err conftest.$ac_objext \
43495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43496LIBS=$ac_check_lib_save_LIBS
43497fi
43498echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43499echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43500if test $ac_cv_lib_unicows_main = yes; then
43501
43502 cat >>confdefs.h <<\_ACEOF
43503#define wxUSE_UNICODE_MSLU 1
43504_ACEOF
43505
43506
43507else
43508
43509 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43510 Applications will only run on Windows NT/2000/XP!" >&5
43511echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43512 Applications will only run on Windows NT/2000/XP!" >&2;}
43513 wxUSE_UNICODE_MSLU=no
43514
43515fi
43516
43517 fi
43518fi
43519
43520if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43521 cat >>confdefs.h <<\_ACEOF
43522#define wxUSE_EXPERIMENTAL_PRINTF 1
43523_ACEOF
43524
43525fi
43526
43527
43528if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43529 cat >>confdefs.h <<\_ACEOF
43530#define wxUSE_POSTSCRIPT 1
43531_ACEOF
43532
43533fi
43534
43535cat >>confdefs.h <<\_ACEOF
43536#define wxUSE_AFM_FOR_POSTSCRIPT 1
43537_ACEOF
43538
43539
43540cat >>confdefs.h <<\_ACEOF
43541#define wxUSE_NORMALIZED_PS_FONTS 1
43542_ACEOF
43543
43544
43545
43546if test "$wxUSE_CONSTRAINTS" = "yes"; then
43547 cat >>confdefs.h <<\_ACEOF
43548#define wxUSE_CONSTRAINTS 1
43549_ACEOF
43550
43551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43552fi
43553
8a7b1113
VZ
43554if test "$wxUSE_MDI" = "yes"; then
43555 cat >>confdefs.h <<\_ACEOF
43556#define wxUSE_MDI 1
43557_ACEOF
43558
43559
43560 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43561 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43562#define wxUSE_MDI_ARCHITECTURE 1
43563_ACEOF
43564
8a7b1113
VZ
43565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43566 fi
a848cd7e
SC
43567fi
43568
43569if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43570 cat >>confdefs.h <<\_ACEOF
43571#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43572_ACEOF
43573
43574 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43575 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43577 fi
43578fi
43579
43580if test "$wxUSE_HELP" = "yes"; then
43581 cat >>confdefs.h <<\_ACEOF
43582#define wxUSE_HELP 1
43583_ACEOF
43584
43585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43586
43587 if test "$wxUSE_MSW" = 1; then
43588 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43589 cat >>confdefs.h <<\_ACEOF
43590#define wxUSE_MS_HTML_HELP 1
43591_ACEOF
43592
43593 fi
43594 fi
43595
43596 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43597 if test "$wxUSE_HTML" = "yes"; then
43598 cat >>confdefs.h <<\_ACEOF
43599#define wxUSE_WXHTML_HELP 1
43600_ACEOF
43601
43602 else
43603 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43604echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43605 wxUSE_WXHTML_HELP=no
43606 fi
43607 fi
43608fi
43609
43610if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43611 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43612 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43613echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43614 else
43615 cat >>confdefs.h <<\_ACEOF
43616#define wxUSE_PRINTING_ARCHITECTURE 1
43617_ACEOF
43618
43619 fi
43620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43621fi
43622
43623if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43624 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43625echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43626 { (exit 1); exit 1; }; }
43627fi
43628
43629
efdf6afe
VZ
43630if test "$wxUSE_METAFILE" = "yes"; then
43631 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43632 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43633echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43634 wxUSE_METAFILE=no
43635 fi
43636fi
43637
43638
a848cd7e
SC
43639if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43640 -o "$wxUSE_CLIPBOARD" = "yes" \
43641 -o "$wxUSE_OLE" = "yes" \
43642 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43643
43644for ac_header in ole2.h
43645do
43646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43647if eval "test \"\${$as_ac_Header+set}\" = set"; then
43648 echo "$as_me:$LINENO: checking for $ac_header" >&5
43649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43650if eval "test \"\${$as_ac_Header+set}\" = set"; then
43651 echo $ECHO_N "(cached) $ECHO_C" >&6
43652fi
43653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43655else
43656 # Is the header compilable?
43657echo "$as_me:$LINENO: checking $ac_header usability" >&5
43658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43659cat >conftest.$ac_ext <<_ACEOF
43660/* confdefs.h. */
43661_ACEOF
43662cat confdefs.h >>conftest.$ac_ext
43663cat >>conftest.$ac_ext <<_ACEOF
43664/* end confdefs.h. */
43665$ac_includes_default
43666#include <$ac_header>
43667_ACEOF
43668rm -f conftest.$ac_objext
43669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43670 (eval $ac_compile) 2>conftest.er1
a848cd7e 43671 ac_status=$?
ac1cb8d3
VS
43672 grep -v '^ *+' conftest.er1 >conftest.err
43673 rm -f conftest.er1
43674 cat conftest.err >&5
a848cd7e
SC
43675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43676 (exit $ac_status); } &&
d25774ab
JS
43677 { ac_try='test -z "$ac_cxx_werror_flag"
43678 || test ! -s conftest.err'
ac1cb8d3
VS
43679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43680 (eval $ac_try) 2>&5
43681 ac_status=$?
43682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43683 (exit $ac_status); }; } &&
43684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43686 (eval $ac_try) 2>&5
43687 ac_status=$?
43688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43689 (exit $ac_status); }; }; then
43690 ac_header_compiler=yes
43691else
43692 echo "$as_me: failed program was:" >&5
43693sed 's/^/| /' conftest.$ac_ext >&5
43694
43695ac_header_compiler=no
43696fi
ac1cb8d3 43697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43698echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43699echo "${ECHO_T}$ac_header_compiler" >&6
43700
43701# Is the header present?
43702echo "$as_me:$LINENO: checking $ac_header presence" >&5
43703echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43704cat >conftest.$ac_ext <<_ACEOF
43705/* confdefs.h. */
43706_ACEOF
43707cat confdefs.h >>conftest.$ac_ext
43708cat >>conftest.$ac_ext <<_ACEOF
43709/* end confdefs.h. */
43710#include <$ac_header>
43711_ACEOF
43712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43714 ac_status=$?
43715 grep -v '^ *+' conftest.er1 >conftest.err
43716 rm -f conftest.er1
43717 cat conftest.err >&5
43718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43719 (exit $ac_status); } >/dev/null; then
43720 if test -s conftest.err; then
5d7b7554
VZ
43721 ac_cpp_err=$ac_cxx_preproc_warn_flag
43722 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43723 else
43724 ac_cpp_err=
43725 fi
43726else
43727 ac_cpp_err=yes
43728fi
43729if test -z "$ac_cpp_err"; then
43730 ac_header_preproc=yes
43731else
43732 echo "$as_me: failed program was:" >&5
43733sed 's/^/| /' conftest.$ac_ext >&5
43734
43735 ac_header_preproc=no
43736fi
43737rm -f conftest.err conftest.$ac_ext
43738echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43739echo "${ECHO_T}$ac_header_preproc" >&6
43740
43741# So? What about this header?
5d7b7554 43742case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43743 yes:no: )
a848cd7e
SC
43744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43745echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43747echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43748 ac_header_preproc=yes
a848cd7e 43749 ;;
ac1cb8d3 43750 no:yes:* )
a848cd7e
SC
43751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43752echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43754echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43756echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43758echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43760echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43762echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43763 (
43764 cat <<\_ASBOX
ac1cb8d3
VS
43765## ----------------------------------------- ##
43766## Report this to wx-dev@lists.wxwidgets.org ##
43767## ----------------------------------------- ##
a848cd7e
SC
43768_ASBOX
43769 ) |
43770 sed "s/^/$as_me: WARNING: /" >&2
43771 ;;
43772esac
43773echo "$as_me:$LINENO: checking for $ac_header" >&5
43774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43775if eval "test \"\${$as_ac_Header+set}\" = set"; then
43776 echo $ECHO_N "(cached) $ECHO_C" >&6
43777else
ac1cb8d3 43778 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43779fi
43780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43782
43783fi
43784if test `eval echo '${'$as_ac_Header'}'` = yes; then
43785 cat >>confdefs.h <<_ACEOF
43786#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43787_ACEOF
43788
43789fi
43790
43791done
43792
43793
43794 if test "$ac_cv_header_ole2_h" = "yes" ; then
43795 if test "$GCC" = yes ; then
a848cd7e
SC
43796 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43797echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43798 cat >conftest.$ac_ext <<_ACEOF
43799/* confdefs.h. */
43800_ACEOF
43801cat confdefs.h >>conftest.$ac_ext
43802cat >>conftest.$ac_ext <<_ACEOF
43803/* end confdefs.h. */
43804#include <windows.h>
43805 #include <ole2.h>
43806int
43807main ()
43808{
43809
43810 ;
43811 return 0;
43812}
43813_ACEOF
43814rm -f conftest.$ac_objext
43815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43816 (eval $ac_compile) 2>conftest.er1
a848cd7e 43817 ac_status=$?
ac1cb8d3
VS
43818 grep -v '^ *+' conftest.er1 >conftest.err
43819 rm -f conftest.er1
43820 cat conftest.err >&5
a848cd7e
SC
43821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43822 (exit $ac_status); } &&
d25774ab
JS
43823 { ac_try='test -z "$ac_cxx_werror_flag"
43824 || test ! -s conftest.err'
ac1cb8d3
VS
43825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43826 (eval $ac_try) 2>&5
43827 ac_status=$?
43828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43829 (exit $ac_status); }; } &&
43830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43832 (eval $ac_try) 2>&5
43833 ac_status=$?
43834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43835 (exit $ac_status); }; }; then
43836 echo "$as_me:$LINENO: result: no" >&5
43837echo "${ECHO_T}no" >&6
43838else
43839 echo "$as_me: failed program was:" >&5
43840sed 's/^/| /' conftest.$ac_ext >&5
43841
43842echo "$as_me:$LINENO: result: yes" >&5
43843echo "${ECHO_T}yes" >&6
5ff751d6 43844 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43845fi
ac1cb8d3 43846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43847 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43848 if test "$wxUSE_OLE" = "yes" ; then
43849 cat >>confdefs.h <<\_ACEOF
43850#define wxUSE_OLE 1
43851_ACEOF
43852
0b78747f 43853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43854 fi
43855 fi
43856
43857 if test "$wxUSE_DATAOBJ" = "yes" ; then
43858 cat >>confdefs.h <<\_ACEOF
43859#define wxUSE_DATAOBJ 1
43860_ACEOF
43861
43862 fi
43863 else
43864 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43865echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43866
43867 wxUSE_CLIPBOARD=no
43868 wxUSE_DRAG_AND_DROP=no
43869 wxUSE_DATAOBJ=no
43870 wxUSE_OLE=no
43871 fi
43872
43873 if test "$wxUSE_METAFILE" = "yes"; then
43874 cat >>confdefs.h <<\_ACEOF
43875#define wxUSE_METAFILE 1
43876_ACEOF
43877
43878
43879 cat >>confdefs.h <<\_ACEOF
43880#define wxUSE_ENH_METAFILE 1
43881_ACEOF
43882
43883 fi
43884fi
43885
43886if test "$wxUSE_IPC" = "yes"; then
0b78747f 43887 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43888 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43889echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43890 wxUSE_IPC=no
a848cd7e
SC
43891 fi
43892
0b78747f
MW
43893 if test "$wxUSE_IPC" = "yes"; then
43894 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43895#define wxUSE_IPC 1
43896_ACEOF
43897
0b78747f
MW
43898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43899 fi
a848cd7e
SC
43900fi
43901
eb730a0c 43902if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43903 if test "$wxUSE_MGL" = 1; then
43904 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43905echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43906 wxUSE_DATAOBJ=no
43907 else
43908 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43909#define wxUSE_DATAOBJ 1
43910_ACEOF
43911
2113bc77 43912 fi
eb730a0c
JS
43913else
43914 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43915echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43916 wxUSE_CLIPBOARD=no
43917 wxUSE_DRAG_AND_DROP=no
43918fi
43919
a848cd7e
SC
43920if test "$wxUSE_CLIPBOARD" = "yes"; then
43921 if test "$wxUSE_MGL" = 1; then
43922 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43923echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43924 wxUSE_CLIPBOARD=no
43925 fi
43926
43927 if test "$wxUSE_CLIPBOARD" = "yes"; then
43928 cat >>confdefs.h <<\_ACEOF
43929#define wxUSE_CLIPBOARD 1
43930_ACEOF
43931
a848cd7e
SC
43932 fi
43933fi
43934
43935if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43936 if test "$wxUSE_GTK" = 1; then
43937 if test "$WXGTK12" != 1; then
43938 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43939echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43940 wxUSE_DRAG_AND_DROP=no
43941 fi
43942 fi
43943
43944 if test "$wxUSE_MOTIF" = 1; then
43945 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43946echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43947 wxUSE_DRAG_AND_DROP=no
43948 fi
43949
43950 if test "$wxUSE_X11" = 1; then
43951 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43952echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43953 wxUSE_DRAG_AND_DROP=no
43954 fi
43955
43956 if test "$wxUSE_MGL" = 1; then
43957 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43958echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43959 wxUSE_DRAG_AND_DROP=no
43960 fi
43961
43962 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43963 cat >>confdefs.h <<\_ACEOF
43964#define wxUSE_DRAG_AND_DROP 1
43965_ACEOF
43966
43967 fi
43968
43969fi
43970
43971if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43972 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43973fi
43974
43975if test "$wxUSE_SPLINES" = "yes" ; then
43976 cat >>confdefs.h <<\_ACEOF
43977#define wxUSE_SPLINES 1
43978_ACEOF
43979
43980fi
43981
fbe2ca43
SN
43982if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43983 cat >>confdefs.h <<\_ACEOF
43984#define wxUSE_MOUSEWHEEL 1
43985_ACEOF
43986
43987fi
43988
a848cd7e
SC
43989
43990USES_CONTROLS=0
43991if test "$wxUSE_CONTROLS" = "yes"; then
43992 USES_CONTROLS=1
43993fi
43994
43995if test "$wxUSE_ACCEL" = "yes"; then
43996 cat >>confdefs.h <<\_ACEOF
43997#define wxUSE_ACCEL 1
43998_ACEOF
43999
44000 USES_CONTROLS=1
44001fi
44002
44003if test "$wxUSE_BUTTON" = "yes"; then
44004 cat >>confdefs.h <<\_ACEOF
44005#define wxUSE_BUTTON 1
44006_ACEOF
44007
44008 USES_CONTROLS=1
44009fi
44010
44011if test "$wxUSE_BMPBUTTON" = "yes"; then
44012 cat >>confdefs.h <<\_ACEOF
44013#define wxUSE_BMPBUTTON 1
44014_ACEOF
44015
44016 USES_CONTROLS=1
44017fi
44018
44019if test "$wxUSE_CALCTRL" = "yes"; then
44020 cat >>confdefs.h <<\_ACEOF
44021#define wxUSE_CALENDARCTRL 1
44022_ACEOF
44023
44024 USES_CONTROLS=1
44025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44026fi
44027
44028if test "$wxUSE_CARET" = "yes"; then
44029 cat >>confdefs.h <<\_ACEOF
44030#define wxUSE_CARET 1
44031_ACEOF
44032
44033 USES_CONTROLS=1
44034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44035fi
44036
44037if test "$wxUSE_COMBOBOX" = "yes"; then
44038 cat >>confdefs.h <<\_ACEOF
44039#define wxUSE_COMBOBOX 1
44040_ACEOF
44041
44042 USES_CONTROLS=1
44043fi
44044
a57d600f 44045if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 44046 cat >>confdefs.h <<\_ACEOF
a57d600f 44047#define wxUSE_COMBOCTRL 1
642bcba9
VZ
44048_ACEOF
44049
44050 USES_CONTROLS=1
44051fi
44052
a848cd7e
SC
44053if test "$wxUSE_CHOICE" = "yes"; then
44054 cat >>confdefs.h <<\_ACEOF
44055#define wxUSE_CHOICE 1
44056_ACEOF
44057
44058 USES_CONTROLS=1
44059fi
44060
92bbdbcd
WS
44061if test "$wxUSE_CHOICEBOOK" = "yes"; then
44062 cat >>confdefs.h <<\_ACEOF
44063#define wxUSE_CHOICEBOOK 1
44064_ACEOF
44065
44066 USES_CONTROLS=1
44067fi
44068
a848cd7e
SC
44069if test "$wxUSE_CHECKBOX" = "yes"; then
44070 cat >>confdefs.h <<\_ACEOF
44071#define wxUSE_CHECKBOX 1
44072_ACEOF
44073
44074 USES_CONTROLS=1
44075fi
44076
44077if test "$wxUSE_CHECKLST" = "yes"; then
44078 cat >>confdefs.h <<\_ACEOF
44079#define wxUSE_CHECKLISTBOX 1
44080_ACEOF
44081
44082 USES_CONTROLS=1
44083 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44084fi
44085
da98e9be
VZ
44086if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44087 cat >>confdefs.h <<\_ACEOF
44088#define wxUSE_DATEPICKCTRL 1
44089_ACEOF
44090
44091 USES_CONTROLS=1
44092fi
44093
a848cd7e
SC
44094if test "$wxUSE_DISPLAY" = "yes"; then
44095 cat >>confdefs.h <<\_ACEOF
44096#define wxUSE_DISPLAY 1
44097_ACEOF
44098
0b78747f 44099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
44100fi
44101
44102if test "$wxUSE_GAUGE" = "yes"; then
44103 cat >>confdefs.h <<\_ACEOF
44104#define wxUSE_GAUGE 1
44105_ACEOF
44106
44107 USES_CONTROLS=1
44108fi
44109
44110if test "$wxUSE_GRID" = "yes"; then
44111 cat >>confdefs.h <<\_ACEOF
44112#define wxUSE_GRID 1
44113_ACEOF
44114
44115 USES_CONTROLS=1
44116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44117fi
44118
20e34ecc
RR
44119if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44120 cat >>confdefs.h <<\_ACEOF
44121#define wxUSE_DATAVIEWCTRL 1
44122_ACEOF
44123
44124 USES_CONTROLS=1
44125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44126fi
44127
a848cd7e
SC
44128if test "$wxUSE_IMAGLIST" = "yes"; then
44129 cat >>confdefs.h <<\_ACEOF
44130#define wxUSE_IMAGLIST 1
44131_ACEOF
44132
44133fi
44134
44135if test "$wxUSE_LISTBOOK" = "yes"; then
44136 cat >>confdefs.h <<\_ACEOF
44137#define wxUSE_LISTBOOK 1
44138_ACEOF
44139
44140 USES_CONTROLS=1
44141fi
44142
44143if test "$wxUSE_LISTBOX" = "yes"; then
44144 cat >>confdefs.h <<\_ACEOF
44145#define wxUSE_LISTBOX 1
44146_ACEOF
44147
44148 USES_CONTROLS=1
0b78747f 44149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
44150fi
44151
44152if test "$wxUSE_LISTCTRL" = "yes"; then
44153 if test "$wxUSE_IMAGLIST" = "yes"; then
44154 cat >>confdefs.h <<\_ACEOF
44155#define wxUSE_LISTCTRL 1
44156_ACEOF
44157
44158 USES_CONTROLS=1
44159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44160 else
44161 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44162echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44163 fi
44164fi
44165
44166if test "$wxUSE_NOTEBOOK" = "yes"; then
44167 cat >>confdefs.h <<\_ACEOF
44168#define wxUSE_NOTEBOOK 1
44169_ACEOF
44170
44171 USES_CONTROLS=1
44172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44173fi
44174
a57d600f 44175if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 44176 cat >>confdefs.h <<\_ACEOF
a57d600f 44177#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
44178_ACEOF
44179
44180 USES_CONTROLS=1
44181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44182fi
44183
a848cd7e
SC
44184
44185if test "$wxUSE_RADIOBOX" = "yes"; then
44186 cat >>confdefs.h <<\_ACEOF
44187#define wxUSE_RADIOBOX 1
44188_ACEOF
44189
44190 USES_CONTROLS=1
44191fi
44192
44193if test "$wxUSE_RADIOBTN" = "yes"; then
44194 cat >>confdefs.h <<\_ACEOF
44195#define wxUSE_RADIOBTN 1
44196_ACEOF
44197
44198 USES_CONTROLS=1
44199fi
44200
44201if test "$wxUSE_SASH" = "yes"; then
44202 cat >>confdefs.h <<\_ACEOF
44203#define wxUSE_SASH 1
44204_ACEOF
44205
44206 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44207fi
44208
44209if test "$wxUSE_SCROLLBAR" = "yes"; then
44210 cat >>confdefs.h <<\_ACEOF
44211#define wxUSE_SCROLLBAR 1
44212_ACEOF
44213
44214 USES_CONTROLS=1
44215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44216fi
44217
44218if test "$wxUSE_SLIDER" = "yes"; then
44219 cat >>confdefs.h <<\_ACEOF
44220#define wxUSE_SLIDER 1
44221_ACEOF
44222
44223 USES_CONTROLS=1
44224fi
44225
44226if test "$wxUSE_SPINBTN" = "yes"; then
44227 cat >>confdefs.h <<\_ACEOF
44228#define wxUSE_SPINBTN 1
44229_ACEOF
44230
44231 USES_CONTROLS=1
44232fi
44233
44234if test "$wxUSE_SPINCTRL" = "yes"; then
44235 cat >>confdefs.h <<\_ACEOF
44236#define wxUSE_SPINCTRL 1
44237_ACEOF
44238
44239 USES_CONTROLS=1
44240fi
44241
44242if test "$wxUSE_SPLITTER" = "yes"; then
44243 cat >>confdefs.h <<\_ACEOF
44244#define wxUSE_SPLITTER 1
44245_ACEOF
44246
44247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44248fi
44249
44250if test "$wxUSE_STATBMP" = "yes"; then
44251 cat >>confdefs.h <<\_ACEOF
44252#define wxUSE_STATBMP 1
44253_ACEOF
44254
44255 USES_CONTROLS=1
44256fi
44257
44258if test "$wxUSE_STATBOX" = "yes"; then
44259 cat >>confdefs.h <<\_ACEOF
44260#define wxUSE_STATBOX 1
44261_ACEOF
44262
44263 USES_CONTROLS=1
44264fi
44265
44266if test "$wxUSE_STATTEXT" = "yes"; then
44267 cat >>confdefs.h <<\_ACEOF
44268#define wxUSE_STATTEXT 1
44269_ACEOF
44270
44271 USES_CONTROLS=1
44272fi
44273
44274if test "$wxUSE_STATLINE" = "yes"; then
44275 cat >>confdefs.h <<\_ACEOF
44276#define wxUSE_STATLINE 1
44277_ACEOF
44278
44279 USES_CONTROLS=1
44280fi
44281
44282if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
44283 cat >>confdefs.h <<\_ACEOF
44284#define wxUSE_NATIVE_STATUSBAR 1
44285_ACEOF
44286
a848cd7e
SC
44287 cat >>confdefs.h <<\_ACEOF
44288#define wxUSE_STATUSBAR 1
44289_ACEOF
44290
44291 USES_CONTROLS=1
44292
44293 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44294fi
44295
f10e38c4 44296if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
44297 cat >>confdefs.h <<\_ACEOF
44298#define wxUSE_TAB_DIALOG 1
44299_ACEOF
44300
a848cd7e
SC
44301fi
44302
44303if test "$wxUSE_TEXTCTRL" = "yes"; then
44304 cat >>confdefs.h <<\_ACEOF
44305#define wxUSE_TEXTCTRL 1
44306_ACEOF
44307
44308 USES_CONTROLS=1
44309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44310fi
44311
44312if test "$wxUSE_TOGGLEBTN" = "yes"; then
44313 if test "$wxUSE_COCOA" = 1 ; then
44314 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44315echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44316 wxUSE_TOGGLEBTN=no
44317 fi
a848cd7e
SC
44318
44319 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44320 cat >>confdefs.h <<\_ACEOF
44321#define wxUSE_TOGGLEBTN 1
44322_ACEOF
44323
44324 USES_CONTROLS=1
44325 fi
44326fi
44327
44328if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44329 cat >>confdefs.h <<\_ACEOF
44330#define wxUSE_TOOLBAR_SIMPLE 1
44331_ACEOF
44332
44333 wxUSE_TOOLBAR="yes"
44334 USES_CONTROLS=1
44335fi
44336
44337if test "$wxUSE_TOOLBAR" = "yes"; then
44338 cat >>confdefs.h <<\_ACEOF
44339#define wxUSE_TOOLBAR 1
44340_ACEOF
44341
44342 USES_CONTROLS=1
44343
44344 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44345 wxUSE_TOOLBAR_NATIVE="yes"
44346 fi
44347
44348 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44349 cat >>confdefs.h <<\_ACEOF
44350#define wxUSE_TOOLBAR_NATIVE 1
44351_ACEOF
44352
44353 USES_CONTROLS=1
44354 fi
44355
44356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44357fi
44358
44359if test "$wxUSE_TOOLTIPS" = "yes"; then
44360 if test "$wxUSE_MOTIF" = 1; then
44361 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44362echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44363 else
44364 if test "$wxUSE_UNIVERSAL" = "yes"; then
44365 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44366echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44367 else
44368 cat >>confdefs.h <<\_ACEOF
44369#define wxUSE_TOOLTIPS 1
44370_ACEOF
44371
44372 fi
44373 fi
44374fi
44375
0093c2fc
VZ
44376if test "$wxUSE_TREEBOOK" = "yes"; then
44377 cat >>confdefs.h <<\_ACEOF
44378#define wxUSE_TREEBOOK 1
44379_ACEOF
44380
44381 USES_CONTROLS=1
44382fi
44383
5ec3bc43
JS
44384if test "$wxUSE_TOOLBOOK" = "yes"; then
44385 cat >>confdefs.h <<\_ACEOF
44386#define wxUSE_TOOLBOOK 1
44387_ACEOF
44388
44389 USES_CONTROLS=1
44390fi
44391
a848cd7e
SC
44392if test "$wxUSE_TREECTRL" = "yes"; then
44393 if test "$wxUSE_IMAGLIST" = "yes"; then
44394 cat >>confdefs.h <<\_ACEOF
44395#define wxUSE_TREECTRL 1
44396_ACEOF
44397
44398 USES_CONTROLS=1
44399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44400 else
44401 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44402echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44403 fi
44404fi
44405
44406if test "$wxUSE_POPUPWIN" = "yes"; then
44407 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44408 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44409echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44410 else
44411 if test "$wxUSE_PM" = 1; then
44412 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44413echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44414 else
44415 cat >>confdefs.h <<\_ACEOF
44416#define wxUSE_POPUPWIN 1
44417_ACEOF
44418
0b78747f 44419 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44420
44421 USES_CONTROLS=1
44422 fi
44423 fi
44424fi
44425
0dcd06dd 44426if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44427 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44428 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44429echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44430 else
44431 cat >>confdefs.h <<\_ACEOF
44432#define wxUSE_DIALUP_MANAGER 1
44433_ACEOF
44434
44435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44436 fi
44437fi
44438
a848cd7e
SC
44439if test "$wxUSE_TIPWINDOW" = "yes"; then
44440 if test "$wxUSE_PM" = 1; then
44441 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44442echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44443 else
44444 cat >>confdefs.h <<\_ACEOF
44445#define wxUSE_TIPWINDOW 1
44446_ACEOF
44447
44448 fi
44449fi
44450
44451if test "$USES_CONTROLS" = 1; then
44452 cat >>confdefs.h <<\_ACEOF
44453#define wxUSE_CONTROLS 1
44454_ACEOF
44455
44456fi
44457
44458
44459if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44460 cat >>confdefs.h <<\_ACEOF
44461#define wxUSE_ACCESSIBILITY 1
44462_ACEOF
44463
44464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44465fi
44466
38b4a946
VZ
44467if test "$wxUSE_DC_CACHEING" = "yes"; then
44468 cat >>confdefs.h <<\_ACEOF
44469#define wxUSE_DC_CACHEING 1
44470_ACEOF
44471
44472fi
44473
a848cd7e
SC
44474if test "$wxUSE_DRAGIMAGE" = "yes"; then
44475 cat >>confdefs.h <<\_ACEOF
44476#define wxUSE_DRAGIMAGE 1
44477_ACEOF
44478
44479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44480fi
44481
44482if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44483 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44484 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44485echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44486 else
44487 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44488#define wxUSE_EXCEPTIONS 1
44489_ACEOF
44490
07bea8f0
VS
44491 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44492 fi
a848cd7e
SC
44493fi
44494
44495USE_HTML=0
44496if test "$wxUSE_HTML" = "yes"; then
44497 cat >>confdefs.h <<\_ACEOF
44498#define wxUSE_HTML 1
44499_ACEOF
44500
44501 USE_HTML=1
44502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44503 if test "$wxUSE_MAC" = 1; then
44504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44505 fi
a848cd7e 44506fi
646b6ec1 44507if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44508 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44509 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44510 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44511 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44512echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44513if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44514 echo $ECHO_N "(cached) $ECHO_C" >&6
44515else
44516 cat >conftest.$ac_ext <<_ACEOF
44517/* confdefs.h. */
44518_ACEOF
44519cat confdefs.h >>conftest.$ac_ext
44520cat >>conftest.$ac_ext <<_ACEOF
44521/* end confdefs.h. */
44522#include <Carbon/Carbon.h>
44523
44524#include <WebKit/HIWebView.h>
44525_ACEOF
44526rm -f conftest.$ac_objext
44527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44528 (eval $ac_compile) 2>conftest.er1
44529 ac_status=$?
44530 grep -v '^ *+' conftest.er1 >conftest.err
44531 rm -f conftest.er1
44532 cat conftest.err >&5
44533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44534 (exit $ac_status); } &&
d25774ab
JS
44535 { ac_try='test -z "$ac_cxx_werror_flag"
44536 || test ! -s conftest.err'
07bea8f0
VS
44537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44538 (eval $ac_try) 2>&5
44539 ac_status=$?
44540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44541 (exit $ac_status); }; } &&
44542 { ac_try='test -s conftest.$ac_objext'
44543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44544 (eval $ac_try) 2>&5
44545 ac_status=$?
44546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44547 (exit $ac_status); }; }; then
44548 ac_cv_header_WebKit_HIWebView_h=yes
44549else
44550 echo "$as_me: failed program was:" >&5
44551sed 's/^/| /' conftest.$ac_ext >&5
44552
44553ac_cv_header_WebKit_HIWebView_h=no
44554fi
44555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44556fi
44557echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44558echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44559if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44560
44561 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44562#define wxUSE_WEBKIT 1
44563_ACEOF
44564
07bea8f0
VS
44565 WEBKIT_LINK="-framework WebKit"
44566
44567else
44568
44569 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44570echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44571 wxUSE_WEBKIT=no
44572
646b6ec1
VS
44573fi
44574
07bea8f0
VS
44575
44576 CPPFLAGS="$old_CPPFLAGS"
44577 elif test "$wxUSE_COCOA" = 1; then
44578 cat >>confdefs.h <<\_ACEOF
44579#define wxUSE_WEBKIT 1
44580_ACEOF
44581
44582 else
44583 wxUSE_WEBKIT=no
44584 fi
44585fi
44586
9a8f0513
VS
44587USE_XRC=0
44588if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44589 if test "$wxUSE_XML" != "yes"; then
44590 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44591echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44592 wxUSE_XRC=no
44593 else
44594 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44595#define wxUSE_XRC 1
44596_ACEOF
44597
d2ebf0b7
VS
44598 USE_XRC=1
44599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44600 fi
9a8f0513 44601fi
07bea8f0 44602
a848cd7e
SC
44603if test "$wxUSE_MENUS" = "yes"; then
44604 cat >>confdefs.h <<\_ACEOF
44605#define wxUSE_MENUS 1
44606_ACEOF
44607
44608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44609fi
44610
44611if test "$wxUSE_METAFILE" = "yes"; then
44612 cat >>confdefs.h <<\_ACEOF
44613#define wxUSE_METAFILE 1
44614_ACEOF
44615
44616fi
44617
44618if test "$wxUSE_MIMETYPE" = "yes"; then
44619 cat >>confdefs.h <<\_ACEOF
44620#define wxUSE_MIMETYPE 1
44621_ACEOF
44622
44623fi
44624
44625if test "$wxUSE_MINIFRAME" = "yes"; then
44626 cat >>confdefs.h <<\_ACEOF
44627#define wxUSE_MINIFRAME 1
44628_ACEOF
44629
44630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44631fi
44632
44633if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44634 cat >>confdefs.h <<\_ACEOF
44635#define wxUSE_SYSTEM_OPTIONS 1
44636_ACEOF
44637
44638 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44639 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44641 fi
44642fi
44643
44644
44645if test "$wxUSE_VALIDATORS" = "yes"; then
44646 cat >>confdefs.h <<\_ACEOF
44647#define wxUSE_VALIDATORS 1
44648_ACEOF
44649
44650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44651fi
44652
44653if test "$wxUSE_PALETTE" = "yes" ; then
44654 cat >>confdefs.h <<\_ACEOF
44655#define wxUSE_PALETTE 1
44656_ACEOF
44657
44658fi
44659
44660if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44661 LIBS=" -lunicows $LIBS"
44662fi
44663
91dea314
MW
44664USE_RICHTEXT=0
44665if test "$wxUSE_RICHTEXT" = "yes"; then
44666 cat >>confdefs.h <<\_ACEOF
44667#define wxUSE_RICHTEXT 1
44668_ACEOF
44669
44670 USE_RICHTEXT=1
44671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44672fi
44673
a848cd7e
SC
44674
44675if test "$wxUSE_IMAGE" = "yes" ; then
44676 cat >>confdefs.h <<\_ACEOF
44677#define wxUSE_IMAGE 1
44678_ACEOF
44679
44680
44681 if test "$wxUSE_GIF" = "yes" ; then
44682 cat >>confdefs.h <<\_ACEOF
44683#define wxUSE_GIF 1
44684_ACEOF
44685
44686 fi
44687
44688 if test "$wxUSE_PCX" = "yes" ; then
44689 cat >>confdefs.h <<\_ACEOF
44690#define wxUSE_PCX 1
44691_ACEOF
44692
44693 fi
44694
44695 if test "$wxUSE_IFF" = "yes" ; then
44696 cat >>confdefs.h <<\_ACEOF
44697#define wxUSE_IFF 1
44698_ACEOF
44699
44700 fi
44701
44702 if test "$wxUSE_PNM" = "yes" ; then
44703 cat >>confdefs.h <<\_ACEOF
44704#define wxUSE_PNM 1
44705_ACEOF
44706
44707 fi
44708
44709 if test "$wxUSE_XPM" = "yes" ; then
44710 cat >>confdefs.h <<\_ACEOF
44711#define wxUSE_XPM 1
44712_ACEOF
44713
44714 fi
44715
44716 if test "$wxUSE_ICO_CUR" = "yes" ; then
44717 cat >>confdefs.h <<\_ACEOF
44718#define wxUSE_ICO_CUR 1
44719_ACEOF
44720
44721 fi
44722fi
44723
44724
44725if test "$wxUSE_CHOICEDLG" = "yes"; then
44726 cat >>confdefs.h <<\_ACEOF
44727#define wxUSE_CHOICEDLG 1
44728_ACEOF
44729
44730fi
44731
44732if test "$wxUSE_COLOURDLG" = "yes"; then
44733 cat >>confdefs.h <<\_ACEOF
44734#define wxUSE_COLOURDLG 1
44735_ACEOF
44736
44737fi
44738
44739if test "$wxUSE_FILEDLG" = "yes"; then
44740 cat >>confdefs.h <<\_ACEOF
44741#define wxUSE_FILEDLG 1
44742_ACEOF
44743
44744fi
44745
44746if test "$wxUSE_FINDREPLDLG" = "yes"; then
44747 cat >>confdefs.h <<\_ACEOF
44748#define wxUSE_FINDREPLDLG 1
44749_ACEOF
44750
44751fi
44752
44753if test "$wxUSE_FONTDLG" = "yes"; then
44754 cat >>confdefs.h <<\_ACEOF
44755#define wxUSE_FONTDLG 1
44756_ACEOF
44757
44758fi
44759
44760if test "$wxUSE_DIRDLG" = "yes"; then
44761 if test "$wxUSE_TREECTRL" != "yes"; then
44762 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44763echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44764 else
44765 cat >>confdefs.h <<\_ACEOF
44766#define wxUSE_DIRDLG 1
44767_ACEOF
44768
44769 fi
44770fi
44771
44772if test "$wxUSE_MSGDLG" = "yes"; then
44773 cat >>confdefs.h <<\_ACEOF
44774#define wxUSE_MSGDLG 1
44775_ACEOF
44776
44777fi
44778
44779if test "$wxUSE_NUMBERDLG" = "yes"; then
44780 cat >>confdefs.h <<\_ACEOF
44781#define wxUSE_NUMBERDLG 1
44782_ACEOF
44783
44784fi
44785
44786if test "$wxUSE_PROGRESSDLG" = "yes"; then
44787 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44788 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44789echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44790 else
44791 cat >>confdefs.h <<\_ACEOF
44792#define wxUSE_PROGRESSDLG 1
44793_ACEOF
44794
44795 fi
44796fi
44797
44798if test "$wxUSE_SPLASH" = "yes"; then
44799 cat >>confdefs.h <<\_ACEOF
44800#define wxUSE_SPLASH 1
44801_ACEOF
44802
2057db16 44803 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44804fi
44805
44806if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44807 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44808 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44809echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44810 else
44811 cat >>confdefs.h <<\_ACEOF
44812#define wxUSE_STARTUP_TIPS 1
44813_ACEOF
44814
44815 fi
44816fi
44817
44818if test "$wxUSE_TEXTDLG" = "yes"; then
44819 cat >>confdefs.h <<\_ACEOF
44820#define wxUSE_TEXTDLG 1
44821_ACEOF
44822
44823fi
44824
44825if test "$wxUSE_WIZARDDLG" = "yes"; then
44826 cat >>confdefs.h <<\_ACEOF
44827#define wxUSE_WIZARDDLG 1
44828_ACEOF
44829
44830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44831fi
44832
44833
f10e38c4
VZ
44834USE_MEDIA=0
44835
ce756cb0 44836if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44837 if test "$wxUSE_GTK" = 1; then
44838 wxUSE_GSTREAMER="yes"
44839
f10e38c4
VZ
44840 GST_VERSION_MAJOR=0
44841 GST_VERSION_MINOR=10
44842 GST_VERSION_RELEASE=0
44843 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44844 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
44845
44846 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 44847
dae87f93 44848 succeeded=no
ce756cb0 44849
dae87f93
RN
44850 if test -z "$PKG_CONFIG"; then
44851 # Extract the first word of "pkg-config", so it can be a program name with args.
44852set dummy pkg-config; ac_word=$2
44853echo "$as_me:$LINENO: checking for $ac_word" >&5
44854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44855if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44856 echo $ECHO_N "(cached) $ECHO_C" >&6
44857else
44858 case $PKG_CONFIG in
44859 [\\/]* | ?:[\\/]*)
44860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44861 ;;
44862 *)
44863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44864for as_dir in $PATH
44865do
44866 IFS=$as_save_IFS
44867 test -z "$as_dir" && as_dir=.
44868 for ac_exec_ext in '' $ac_executable_extensions; do
44869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44872 break 2
44873 fi
44874done
44875done
44876
44877 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44878 ;;
44879esac
44880fi
44881PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44882
44883if test -n "$PKG_CONFIG"; then
44884 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44885echo "${ECHO_T}$PKG_CONFIG" >&6
44886else
44887 echo "$as_me:$LINENO: result: no" >&5
44888echo "${ECHO_T}no" >&6
44889fi
44890
44891 fi
44892
44893 if test "$PKG_CONFIG" = "no" ; then
44894 echo "*** The pkg-config script could not be found. Make sure it is"
44895 echo "*** in your path, or set the PKG_CONFIG environment variable"
44896 echo "*** to the full path to pkg-config."
44897 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44898 else
44899 PKG_CONFIG_MIN_VERSION=0.9.0
44900 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
f10e38c4
VZ
44901 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44902 gstreamer-plugins-base-$GST_MAJORMINOR
44903 gconf-2.0" >&5
44904echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44905 gstreamer-plugins-base-$GST_MAJORMINOR
44906 gconf-2.0... $ECHO_C" >&6
44907
44908 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44909 gstreamer-plugins-base-$GST_MAJORMINOR
44910 gconf-2.0" ; then
dae87f93 44911 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44912echo "${ECHO_T}yes" >&6
dae87f93 44913 succeeded=yes
ce756cb0 44914
f10e38c4
VZ
44915 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44916echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44917 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44918 gstreamer-plugins-base-$GST_MAJORMINOR
44919 gconf-2.0"`
44920 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44921echo "${ECHO_T}$GST_CFLAGS" >&6
44922
44923 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44924echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44925 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44926 gstreamer-plugins-base-$GST_MAJORMINOR
44927 gconf-2.0"`
44928 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44929echo "${ECHO_T}$GST_LIBS" >&6
dae87f93 44930 else
f10e38c4
VZ
44931 GST_CFLAGS=""
44932 GST_LIBS=""
dae87f93
RN
44933 ## If we have a custom action on failure, don't print errors, but
44934 ## do set a variable so people can do so.
f10e38c4
VZ
44935 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44936 gstreamer-plugins-base-$GST_MAJORMINOR
44937 gconf-2.0"`
ce756cb0 44938
dae87f93
RN
44939 fi
44940
44941
44942
44943 else
44944 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44945 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44946 fi
44947 fi
44948
44949 if test $succeeded = yes; then
44950
f10e38c4
VZ
44951 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44952 LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
ce756cb0 44953
ce756cb0 44954 else
dae87f93 44955
f10e38c4 44956 GST_VERSION_MINOR=8
dae87f93
RN
44957
44958 fi
44959
f10e38c4
VZ
44960 else
44961 GST_VERSION_MINOR=8
44962 fi
dae87f93 44963
f10e38c4
VZ
44964 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44965 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 44966
f10e38c4 44967 if test x$GST_VERSION_MINOR = x8; then
dae87f93 44968
f10e38c4 44969 succeeded=no
dae87f93 44970
f10e38c4
VZ
44971 if test -z "$PKG_CONFIG"; then
44972 # Extract the first word of "pkg-config", so it can be a program name with args.
44973set dummy pkg-config; ac_word=$2
dae87f93
RN
44974echo "$as_me:$LINENO: checking for $ac_word" >&5
44975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f10e38c4 44976if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
dae87f93
RN
44977 echo $ECHO_N "(cached) $ECHO_C" >&6
44978else
f10e38c4
VZ
44979 case $PKG_CONFIG in
44980 [\\/]* | ?:[\\/]*)
44981 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44982 ;;
44983 *)
44984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae87f93
RN
44985for as_dir in $PATH
44986do
44987 IFS=$as_save_IFS
44988 test -z "$as_dir" && as_dir=.
44989 for ac_exec_ext in '' $ac_executable_extensions; do
44990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f10e38c4 44991 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
dae87f93
RN
44992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44993 break 2
ce756cb0 44994 fi
dae87f93
RN
44995done
44996done
44997
f10e38c4
VZ
44998 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44999 ;;
45000esac
dae87f93 45001fi
f10e38c4
VZ
45002PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45003
45004if test -n "$PKG_CONFIG"; then
45005 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45006echo "${ECHO_T}$PKG_CONFIG" >&6
dae87f93
RN
45007else
45008 echo "$as_me:$LINENO: result: no" >&5
45009echo "${ECHO_T}no" >&6
45010fi
45011
f10e38c4 45012 fi
ce756cb0 45013
f10e38c4
VZ
45014 if test "$PKG_CONFIG" = "no" ; then
45015 echo "*** The pkg-config script could not be found. Make sure it is"
45016 echo "*** in your path, or set the PKG_CONFIG environment variable"
45017 echo "*** to the full path to pkg-config."
45018 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45019 else
45020 PKG_CONFIG_MIN_VERSION=0.9.0
45021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
45022 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
45023 gstreamer-interfaces-$GST_MAJORMINOR
45024 gstreamer-gconf-$GST_MAJORMINOR" >&5
45025echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
45026 gstreamer-interfaces-$GST_MAJORMINOR
45027 gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
45028
45029 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
45030 gstreamer-interfaces-$GST_MAJORMINOR
45031 gstreamer-gconf-$GST_MAJORMINOR" ; then
45032 echo "$as_me:$LINENO: result: yes" >&5
45033echo "${ECHO_T}yes" >&6
45034 succeeded=yes
dae87f93 45035
f10e38c4
VZ
45036 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45037echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
45038 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
45039 gstreamer-interfaces-$GST_MAJORMINOR
45040 gstreamer-gconf-$GST_MAJORMINOR"`
45041 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45042echo "${ECHO_T}$GST_CFLAGS" >&6
45043
45044 echo "$as_me:$LINENO: checking GST_LIBS" >&5
45045echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
45046 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
45047 gstreamer-interfaces-$GST_MAJORMINOR
45048 gstreamer-gconf-$GST_MAJORMINOR"`
45049 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45050echo "${ECHO_T}$GST_LIBS" >&6
45051 else
45052 GST_CFLAGS=""
45053 GST_LIBS=""
45054 ## If we have a custom action on failure, don't print errors, but
45055 ## do set a variable so people can do so.
45056 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
45057 gstreamer-interfaces-$GST_MAJORMINOR
45058 gstreamer-gconf-$GST_MAJORMINOR"`
dae87f93 45059
dae87f93
RN
45060 fi
45061
45062
ce756cb0 45063
f10e38c4
VZ
45064 else
45065 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45066 echo "*** See http://www.freedesktop.org/software/pkgconfig"
45067 fi
45068 fi
ce756cb0 45069
f10e38c4 45070 if test $succeeded = yes; then
dae87f93 45071
f10e38c4
VZ
45072 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45073 LIBS="$LIBS $GST_LIBS"
dae87f93 45074
f10e38c4 45075 else
ce756cb0 45076
f10e38c4
VZ
45077 { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
45078echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
45079 wxUSE_GSTREAMER="no"
ce756cb0 45080
f10e38c4 45081 fi
ce756cb0 45082
dae87f93 45083 fi
ce756cb0 45084
f10e38c4 45085
dae87f93
RN
45086 if test "$wxUSE_GSTREAMER" = "yes"; then
45087 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45088#define wxUSE_GSTREAMER 1
45089_ACEOF
45090
dae87f93
RN
45091 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
45092echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
45093 fi
45094 fi
f10e38c4 45095 USE_MEDIA=1
ce756cb0
RN
45096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45097 cat >>confdefs.h <<\_ACEOF
45098#define wxUSE_MEDIACTRL 1
45099_ACEOF
45100
45101fi
45102
45103
a848cd7e
SC
45104if test "$cross_compiling" = "yes"; then
45105 OSINFO="\"$host\""
45106else
45107 OSINFO=`uname -s -r -m`
45108 OSINFO="\"$OSINFO\""
45109fi
45110
45111cat >>confdefs.h <<_ACEOF
45112#define WXWIN_OS_DESCRIPTION $OSINFO
45113_ACEOF
45114
45115
45116
45117if test "x$prefix" != "xNONE"; then
45118 wxPREFIX=$prefix
45119else
45120 wxPREFIX=$ac_default_prefix
45121fi
45122
45123cat >>confdefs.h <<_ACEOF
45124#define wxINSTALL_PREFIX "$wxPREFIX"
45125_ACEOF
45126
45127
a848cd7e
SC
45128
45129
45130CORE_BASE_LIBS="net base"
45131CORE_GUI_LIBS="adv core"
45132
45133if test "$wxUSE_XML" = "yes" ; then
45134 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45135fi
45136if test "$wxUSE_ODBC" != "no" ; then
45137 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45138 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45139fi
45140if test "$wxUSE_HTML" = "yes" ; then
45141 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45142fi
61639efb
VZ
45143if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45144 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45145fi
9a8f0513
VS
45146if test "$wxUSE_XRC" = "yes" ; then
45147 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45148fi
a848cd7e
SC
45149
45150if test "$wxUSE_GUI" != "yes"; then
45151 CORE_GUI_LIBS=""
45152fi
45153
45154
45155
45156
45157
5d7b7554
VZ
45158ac_ext=c
45159ac_cpp='$CPP $CPPFLAGS'
45160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45162ac_compiler_gnu=$ac_cv_c_compiler_gnu
45163
a848cd7e
SC
45164
45165
a848cd7e 45166if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 45167 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
45168 if test "$USE_DARWIN" = 1; then
45169 LDFLAGS="$LDFLAGS -framework QuickTime"
45170 else
45171 LDFLAGS="$LDFLAGS -lQuickTimeLib"
45172 fi
07bea8f0 45173 fi
5dcf30a0 45174 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
45175 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45176 else
45177 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 45178 fi
a848cd7e
SC
45179fi
45180if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 45181 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
45182 if test "$wxUSE_MEDIACTRL" = "yes"; then
45183 LDFLAGS="$LDFLAGS -framework QuickTime"
45184 fi
a848cd7e 45185fi
19b27e78
MW
45186if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45187 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45188fi
a848cd7e 45189
a848cd7e
SC
45190LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45191
a848cd7e
SC
45192if test "$wxUSE_GUI" = "yes"; then
45193
45194
8bce5cda
MW
45195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45196 dynamic erase event exec font image minimal mobile \
45197 mobile/wxedit mobile/styles propsize render \
9e39d889 45198 rotate shaped vscroll widgets"
a848cd7e
SC
45199
45200 if test "$wxUSE_MONOLITHIC" != "yes"; then
45201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45202 fi
0b78747f 45203 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45205 if test "$wxUSE_UNIVERSAL" != "yes"; then
45206 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45207 fi
45208 fi
45209 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45210 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45211 fi
a848cd7e
SC
45212else
45213 SAMPLES_SUBDIRS="console"
45214fi
45215
45216
48f625bc 45217if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45218 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45219elif test "$GCC" = yes ; then
45220 CWARNINGS="-Wall -Wundef"
45221fi
45222
48f625bc 45223if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45224 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45225elif test "$GXX" = yes ; then
45226 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45227fi
a848cd7e 45228
a848cd7e 45229
5ff751d6
VZ
45230WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45231WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45232
45233
c92ad099 45234CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45235 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45236 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45237 $CPPFLAGS `
5ff751d6 45238
8aeeb05c 45239C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45240CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45241CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45242
45243WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45244
a848cd7e 45245
95986553
DE
45246if test "x$MWCC" = "xyes"; then
45247
45248 CC="$CC -cwd source -I-"
45249 CXX="$CXX -cwd source -I-"
45250fi
45251
a848cd7e 45252
0c3c69fc 45253LIBS=`echo $LIBS`
a848cd7e
SC
45254EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45255EXTRALIBS_XML="$EXPAT_LINK"
45256EXTRALIBS_HTML="$MSPACK_LINK"
45257EXTRALIBS_ODBC="$ODBC_LINK"
45258if test "$wxUSE_GUI" = "yes"; then
2b850ae1 45259 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45260fi
45261if test "$wxUSE_OPENGL" = "yes"; then
45262 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45263fi
45264
8aeeb05c 45265LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45266
5ff751d6 45267WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45268
45269if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45270 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45271fi
45272if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45273 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45274fi
45275if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45276 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45277fi
45278if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45279 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45280fi
45281if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45282 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45283fi
45284if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45285 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45286fi
45287if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45288 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45289fi
45290
45291for i in $wxconfig_3rdparty ; do
5ff751d6 45292 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45293done
45294
45295
45296if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45297 WXUNIV=1
45298else
45299 WXUNIV=0
45300fi
45301
45302
45303
45304
45305
45306
45307
45308
45309
45310if test $wxUSE_MONOLITHIC = "yes" ; then
45311 MONOLITHIC=1
45312else
45313 MONOLITHIC=0
45314fi
45315
45316if test $wxUSE_PLUGINS = "yes" ; then
45317 USE_PLUGINS=1
45318else
45319 USE_PLUGINS=0
45320fi
45321
45322if test $wxUSE_ODBC != "no" ; then
45323 USE_ODBC=1
45324else
45325 USE_ODBC=0
45326fi
45327
16358932
VZ
45328if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45329 USE_QA=1
45330else
45331 USE_QA=0
45332fi
45333
a848cd7e
SC
45334if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45335 OFFICIAL_BUILD=1
45336else
45337 OFFICIAL_BUILD=0
45338fi
45339
45340
45341
45342
45343
45344
45345
45346
45347
45348
45349
45350
45351
45352
45353
45354
45355
45356
45357
ceec2216 45358
d1c38808 45359
3565d135 45360
2b850ae1 45361
a848cd7e
SC
45362
45363
45364TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45365
45366
45367
45368
45369
45370
45371
45372
4d4ff94c
VZ
45373case "$TOOLKIT" in
45374 GTK)
45375 TOOLKIT_USER="GTK+"
45376 if test "$WXGTK20" = 1; then
45377 TOOLKIT_USER="$TOOLKIT_USER 2"
45378 fi
9a8f0513 45379 ;;
4d4ff94c
VZ
45380
45381 *)
45382 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45383 ;;
4d4ff94c 45384esac
a848cd7e 45385
fb00f58d
JS
45386if test "$wxUSE_WINE" = "yes"; then
45387 BAKEFILE_FORCE_PLATFORM=win32
45388fi
45389
7afc46ab
KO
45390if test "$wxUSE_MAC" = 1 ; then
45391 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45392 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45393 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45394 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45395 bk_use_pch=no
45396 fi
45397 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45398 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45399 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45400fi
45401
9a8f0513 45402
1e9e8aba
DE
45403
45404
a848cd7e 45405 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45406 if test "x${host}" = "x" ; then
45407 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45408echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45409 { (exit 1); exit 1; }; }
45410 fi
45411
a848cd7e
SC
45412 BAKEFILE_HOST="${host}"
45413 fi
45414
45415 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45416
45417 if test -n "$ac_tool_prefix"; then
45418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45419set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45420echo "$as_me:$LINENO: checking for $ac_word" >&5
45421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45422if test "${ac_cv_prog_RANLIB+set}" = set; then
45423 echo $ECHO_N "(cached) $ECHO_C" >&6
45424else
45425 if test -n "$RANLIB"; then
45426 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45427else
45428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45429for as_dir in $PATH
45430do
45431 IFS=$as_save_IFS
45432 test -z "$as_dir" && as_dir=.
45433 for ac_exec_ext in '' $ac_executable_extensions; do
45434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45435 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45437 break 2
45438 fi
45439done
45440done
45441
45442fi
45443fi
45444RANLIB=$ac_cv_prog_RANLIB
45445if test -n "$RANLIB"; then
45446 echo "$as_me:$LINENO: result: $RANLIB" >&5
45447echo "${ECHO_T}$RANLIB" >&6
45448else
45449 echo "$as_me:$LINENO: result: no" >&5
45450echo "${ECHO_T}no" >&6
45451fi
45452
45453fi
45454if test -z "$ac_cv_prog_RANLIB"; then
45455 ac_ct_RANLIB=$RANLIB
45456 # Extract the first word of "ranlib", so it can be a program name with args.
45457set dummy ranlib; ac_word=$2
45458echo "$as_me:$LINENO: checking for $ac_word" >&5
45459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45460if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45461 echo $ECHO_N "(cached) $ECHO_C" >&6
45462else
45463 if test -n "$ac_ct_RANLIB"; then
45464 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45465else
45466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45467for as_dir in $PATH
45468do
45469 IFS=$as_save_IFS
45470 test -z "$as_dir" && as_dir=.
45471 for ac_exec_ext in '' $ac_executable_extensions; do
45472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45473 ac_cv_prog_ac_ct_RANLIB="ranlib"
45474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45475 break 2
45476 fi
45477done
45478done
45479
45480 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45481fi
45482fi
45483ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45484if test -n "$ac_ct_RANLIB"; then
45485 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45486echo "${ECHO_T}$ac_ct_RANLIB" >&6
45487else
45488 echo "$as_me:$LINENO: result: no" >&5
45489echo "${ECHO_T}no" >&6
45490fi
45491
45492 RANLIB=$ac_ct_RANLIB
45493else
45494 RANLIB="$ac_cv_prog_RANLIB"
45495fi
45496
45497 # Find a good install program. We prefer a C program (faster),
45498# so one script is as good as another. But avoid the broken or
45499# incompatible versions:
45500# SysV /etc/install, /usr/sbin/install
45501# SunOS /usr/etc/install
45502# IRIX /sbin/install
45503# AIX /bin/install
45504# AmigaOS /C/install, which installs bootblocks on floppy discs
45505# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45506# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45507# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45508# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45509# ./install, which can be erroneously created by make from ./install.sh.
45510echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45511echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45512if test -z "$INSTALL"; then
45513if test "${ac_cv_path_install+set}" = set; then
45514 echo $ECHO_N "(cached) $ECHO_C" >&6
45515else
45516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45517for as_dir in $PATH
45518do
45519 IFS=$as_save_IFS
45520 test -z "$as_dir" && as_dir=.
45521 # Account for people who put trailing slashes in PATH elements.
45522case $as_dir/ in
45523 ./ | .// | /cC/* | \
45524 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45525 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45526 /usr/ucb/* ) ;;
45527 *)
45528 # OSF1 and SCO ODT 3.0 have their own names for install.
45529 # Don't use installbsd from OSF since it installs stuff as root
45530 # by default.
45531 for ac_prog in ginstall scoinst install; do
45532 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45533 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45534 if test $ac_prog = install &&
45535 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45536 # AIX install. It has an incompatible calling convention.
45537 :
45538 elif test $ac_prog = install &&
45539 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45540 # program-specific install script used by HP pwplus--don't use.
45541 :
45542 else
45543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45544 break 3
45545 fi
45546 fi
a848cd7e
SC
45547 done
45548 done
45549 ;;
45550esac
45551done
45552
45553
45554fi
45555 if test "${ac_cv_path_install+set}" = set; then
45556 INSTALL=$ac_cv_path_install
45557 else
45558 # As a last resort, use the slow shell script. We don't cache a
45559 # path for INSTALL within a source directory, because that will
45560 # break other packages using the cache if that directory is
45561 # removed, or if the path is relative.
45562 INSTALL=$ac_install_sh
45563 fi
45564fi
45565echo "$as_me:$LINENO: result: $INSTALL" >&5
45566echo "${ECHO_T}$INSTALL" >&6
45567
45568# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45569# It thinks the first close brace ends the variable substitution.
45570test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45571
45572test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45573
45574test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45575
45576 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45577echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45578LN_S=$as_ln_s
45579if test "$LN_S" = "ln -s"; then
45580 echo "$as_me:$LINENO: result: yes" >&5
45581echo "${ECHO_T}yes" >&6
45582else
45583 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45584echo "${ECHO_T}no, using $LN_S" >&6
45585fi
45586
45587
45588 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45589echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45590set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45591if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45592 echo $ECHO_N "(cached) $ECHO_C" >&6
45593else
45594 cat >conftest.make <<\_ACEOF
45595all:
45596 @echo 'ac_maketemp="$(MAKE)"'
45597_ACEOF
45598# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45599eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45600if test -n "$ac_maketemp"; then
45601 eval ac_cv_prog_make_${ac_make}_set=yes
45602else
45603 eval ac_cv_prog_make_${ac_make}_set=no
45604fi
45605rm -f conftest.make
45606fi
45607if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45608 echo "$as_me:$LINENO: result: yes" >&5
45609echo "${ECHO_T}yes" >&6
45610 SET_MAKE=
45611else
45612 echo "$as_me:$LINENO: result: no" >&5
45613echo "${ECHO_T}no" >&6
45614 SET_MAKE="MAKE=${MAKE-make}"
45615fi
45616
45617
45618
45619 if test -n "$ac_tool_prefix"; then
45620 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45621set dummy ${ac_tool_prefix}ar; ac_word=$2
45622echo "$as_me:$LINENO: checking for $ac_word" >&5
45623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45624if test "${ac_cv_prog_AR+set}" = set; then
45625 echo $ECHO_N "(cached) $ECHO_C" >&6
45626else
45627 if test -n "$AR"; then
45628 ac_cv_prog_AR="$AR" # Let the user override the test.
45629else
45630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45631for as_dir in $PATH
45632do
45633 IFS=$as_save_IFS
45634 test -z "$as_dir" && as_dir=.
45635 for ac_exec_ext in '' $ac_executable_extensions; do
45636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45637 ac_cv_prog_AR="${ac_tool_prefix}ar"
45638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45639 break 2
45640 fi
45641done
45642done
45643
45644fi
45645fi
45646AR=$ac_cv_prog_AR
45647if test -n "$AR"; then
45648 echo "$as_me:$LINENO: result: $AR" >&5
45649echo "${ECHO_T}$AR" >&6
45650else
45651 echo "$as_me:$LINENO: result: no" >&5
45652echo "${ECHO_T}no" >&6
45653fi
45654
45655fi
45656if test -z "$ac_cv_prog_AR"; then
45657 ac_ct_AR=$AR
45658 # Extract the first word of "ar", so it can be a program name with args.
45659set dummy ar; ac_word=$2
45660echo "$as_me:$LINENO: checking for $ac_word" >&5
45661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45662if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45663 echo $ECHO_N "(cached) $ECHO_C" >&6
45664else
45665 if test -n "$ac_ct_AR"; then
45666 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45667else
45668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45669for as_dir in $PATH
45670do
45671 IFS=$as_save_IFS
45672 test -z "$as_dir" && as_dir=.
45673 for ac_exec_ext in '' $ac_executable_extensions; do
45674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45675 ac_cv_prog_ac_ct_AR="ar"
45676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45677 break 2
45678 fi
45679done
45680done
45681
45682 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45683fi
45684fi
45685ac_ct_AR=$ac_cv_prog_ac_ct_AR
45686if test -n "$ac_ct_AR"; then
45687 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45688echo "${ECHO_T}$ac_ct_AR" >&6
45689else
45690 echo "$as_me:$LINENO: result: no" >&5
45691echo "${ECHO_T}no" >&6
45692fi
45693
45694 AR=$ac_ct_AR
45695else
45696 AR="$ac_cv_prog_AR"
45697fi
45698
45699 if test -n "$ac_tool_prefix"; then
45700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45701set dummy ${ac_tool_prefix}strip; ac_word=$2
45702echo "$as_me:$LINENO: checking for $ac_word" >&5
45703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45704if test "${ac_cv_prog_STRIP+set}" = set; then
45705 echo $ECHO_N "(cached) $ECHO_C" >&6
45706else
45707 if test -n "$STRIP"; then
45708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45709else
45710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45711for as_dir in $PATH
45712do
45713 IFS=$as_save_IFS
45714 test -z "$as_dir" && as_dir=.
45715 for ac_exec_ext in '' $ac_executable_extensions; do
45716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45717 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45719 break 2
45720 fi
45721done
45722done
45723
45724fi
45725fi
45726STRIP=$ac_cv_prog_STRIP
45727if test -n "$STRIP"; then
45728 echo "$as_me:$LINENO: result: $STRIP" >&5
45729echo "${ECHO_T}$STRIP" >&6
45730else
45731 echo "$as_me:$LINENO: result: no" >&5
45732echo "${ECHO_T}no" >&6
45733fi
45734
45735fi
45736if test -z "$ac_cv_prog_STRIP"; then
45737 ac_ct_STRIP=$STRIP
45738 # Extract the first word of "strip", so it can be a program name with args.
45739set dummy strip; ac_word=$2
45740echo "$as_me:$LINENO: checking for $ac_word" >&5
45741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45742if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45743 echo $ECHO_N "(cached) $ECHO_C" >&6
45744else
45745 if test -n "$ac_ct_STRIP"; then
45746 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45747else
45748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45749for as_dir in $PATH
45750do
45751 IFS=$as_save_IFS
45752 test -z "$as_dir" && as_dir=.
45753 for ac_exec_ext in '' $ac_executable_extensions; do
45754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45755 ac_cv_prog_ac_ct_STRIP="strip"
45756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45757 break 2
45758 fi
45759done
45760done
45761
45762 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45763fi
45764fi
45765ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45766if test -n "$ac_ct_STRIP"; then
45767 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45768echo "${ECHO_T}$ac_ct_STRIP" >&6
45769else
45770 echo "$as_me:$LINENO: result: no" >&5
45771echo "${ECHO_T}no" >&6
45772fi
45773
45774 STRIP=$ac_ct_STRIP
45775else
45776 STRIP="$ac_cv_prog_STRIP"
45777fi
45778
45779 if test -n "$ac_tool_prefix"; then
45780 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45781set dummy ${ac_tool_prefix}nm; ac_word=$2
45782echo "$as_me:$LINENO: checking for $ac_word" >&5
45783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45784if test "${ac_cv_prog_NM+set}" = set; then
45785 echo $ECHO_N "(cached) $ECHO_C" >&6
45786else
45787 if test -n "$NM"; then
45788 ac_cv_prog_NM="$NM" # Let the user override the test.
45789else
45790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45791for as_dir in $PATH
45792do
45793 IFS=$as_save_IFS
45794 test -z "$as_dir" && as_dir=.
45795 for ac_exec_ext in '' $ac_executable_extensions; do
45796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45797 ac_cv_prog_NM="${ac_tool_prefix}nm"
45798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45799 break 2
45800 fi
45801done
45802done
45803
45804fi
45805fi
45806NM=$ac_cv_prog_NM
45807if test -n "$NM"; then
45808 echo "$as_me:$LINENO: result: $NM" >&5
45809echo "${ECHO_T}$NM" >&6
45810else
45811 echo "$as_me:$LINENO: result: no" >&5
45812echo "${ECHO_T}no" >&6
45813fi
45814
45815fi
45816if test -z "$ac_cv_prog_NM"; then
45817 ac_ct_NM=$NM
45818 # Extract the first word of "nm", so it can be a program name with args.
45819set dummy nm; ac_word=$2
45820echo "$as_me:$LINENO: checking for $ac_word" >&5
45821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45822if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45823 echo $ECHO_N "(cached) $ECHO_C" >&6
45824else
45825 if test -n "$ac_ct_NM"; then
45826 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45827else
45828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45829for as_dir in $PATH
45830do
45831 IFS=$as_save_IFS
45832 test -z "$as_dir" && as_dir=.
45833 for ac_exec_ext in '' $ac_executable_extensions; do
45834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45835 ac_cv_prog_ac_ct_NM="nm"
45836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45837 break 2
45838 fi
45839done
45840done
45841
45842 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45843fi
45844fi
45845ac_ct_NM=$ac_cv_prog_ac_ct_NM
45846if test -n "$ac_ct_NM"; then
45847 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45848echo "${ECHO_T}$ac_ct_NM" >&6
45849else
45850 echo "$as_me:$LINENO: result: no" >&5
45851echo "${ECHO_T}no" >&6
45852fi
45853
45854 NM=$ac_ct_NM
45855else
45856 NM="$ac_cv_prog_NM"
45857fi
45858
45859
45860 case ${BAKEFILE_HOST} in
45861 *-hp-hpux* )
1e9e8aba 45862 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45863 ;;
45864 *) INSTALL_DIR="$INSTALL -d"
45865 ;;
45866 esac
45867
45868
45869 LDFLAGS_GUI=
45870 case ${BAKEFILE_HOST} in
45871 *-*-cygwin* | *-*-mingw32* )
45872 LDFLAGS_GUI="-mwindows"
45873 esac
45874
45875
45876 fi
45877
45878 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45879echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45880if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45881 echo $ECHO_N "(cached) $ECHO_C" >&6
45882else
45883
45884 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45885 egrep -s GNU > /dev/null); then
45886 bakefile_cv_prog_makeisgnu="yes"
45887 else
45888 bakefile_cv_prog_makeisgnu="no"
45889 fi
45890
45891fi
45892echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45893echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45894
45895 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45896 IF_GNU_MAKE=""
45897 else
45898 IF_GNU_MAKE="#"
45899 fi
45900
45901
45902
45903 PLATFORM_UNIX=0
45904 PLATFORM_WIN32=0
45905 PLATFORM_MSDOS=0
45906 PLATFORM_MAC=0
1e9e8aba 45907 PLATFORM_MACOS=0
a848cd7e
SC
45908 PLATFORM_MACOSX=0
45909 PLATFORM_OS2=0
1e9e8aba 45910 PLATFORM_BEOS=0
a848cd7e
SC
45911
45912 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45913 case "${BAKEFILE_HOST}" in
810b94f0 45914 *-*-mingw32* )
a848cd7e
SC
45915 PLATFORM_WIN32=1
45916 ;;
45917 *-pc-msdosdjgpp )
45918 PLATFORM_MSDOS=1
45919 ;;
45920 *-pc-os2_emx | *-pc-os2-emx )
45921 PLATFORM_OS2=1
45922 ;;
47bd5406 45923 *-*-darwin* )
a848cd7e
SC
45924 PLATFORM_MAC=1
45925 PLATFORM_MACOSX=1
45926 ;;
1e9e8aba
DE
45927 *-*-beos* )
45928 PLATFORM_BEOS=1
45929 ;;
45930 powerpc-apple-macos* )
45931 PLATFORM_MAC=1
45932 PLATFORM_MACOS=1
45933 ;;
a848cd7e
SC
45934 * )
45935 PLATFORM_UNIX=1
45936 ;;
45937 esac
45938 else
45939 case "$BAKEFILE_FORCE_PLATFORM" in
45940 win32 )
45941 PLATFORM_WIN32=1
45942 ;;
45943 msdos )
45944 PLATFORM_MSDOS=1
45945 ;;
45946 os2 )
45947 PLATFORM_OS2=1
45948 ;;
45949 darwin )
45950 PLATFORM_MAC=1
45951 PLATFORM_MACOSX=1
45952 ;;
45953 unix )
45954 PLATFORM_UNIX=1
45955 ;;
1e9e8aba
DE
45956 beos )
45957 PLATFORM_BEOS=1
45958 ;;
a848cd7e
SC
45959 * )
45960 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45961echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45962 { (exit 1); exit 1; }; }
45963 ;;
45964 esac
45965 fi
45966
45967
45968
45969
45970
45971
45972
45973
45974
1e9e8aba
DE
45975
45976
a848cd7e
SC
45977 # Check whether --enable-omf or --disable-omf was given.
45978if test "${enable_omf+set}" = set; then
45979 enableval="$enable_omf"
45980 bk_os2_use_omf="$enableval"
45981fi;
45982
45983 case "${BAKEFILE_HOST}" in
45984 *-*-darwin* )
47bd5406
VZ
45985 if test "x$GCC" = "xyes"; then
45986 CFLAGS="$CFLAGS -fno-common"
45987 CXXFLAGS="$CXXFLAGS -fno-common"
45988 fi
45989 if test "x$XLCC" = "xyes"; then
45990 CFLAGS="$CFLAGS -qnocommon"
45991 CXXFLAGS="$CXXFLAGS -qnocommon"
45992 fi
a848cd7e
SC
45993 ;;
45994
45995 *-pc-os2_emx | *-pc-os2-emx )
45996 if test "x$bk_os2_use_omf" = "xyes" ; then
45997 AR=emxomfar
45998 RANLIB=:
45999 LDFLAGS="-Zomf $LDFLAGS"
46000 CFLAGS="-Zomf $CFLAGS"
46001 CXXFLAGS="-Zomf $CXXFLAGS"
46002 OS2_LIBEXT="lib"
46003 else
46004 OS2_LIBEXT="a"
46005 fi
46006 ;;
1e9e8aba
DE
46007
46008 i*86-*-beos* )
46009 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46010 ;;
a848cd7e
SC
46011 esac
46012
46013
46014 SO_SUFFIX="so"
46015 SO_SUFFIX_MODULE="so"
46016 EXEEXT=""
46017 LIBPREFIX="lib"
46018 LIBEXT=".a"
46019 DLLPREFIX="lib"
46020 DLLPREFIX_MODULE=""
46021 DLLIMP_SUFFIX=""
810b94f0 46022 dlldir="$libdir"
a848cd7e
SC
46023
46024 case "${BAKEFILE_HOST}" in
46025 *-hp-hpux* )
46026 SO_SUFFIX="sl"
46027 SO_SUFFIX_MODULE="sl"
46028 ;;
46029 *-*-aix* )
46030 SO_SUFFIX="a"
46031 SO_SUFFIX_MODULE="a"
46032 ;;
810b94f0
MW
46033 *-*-cygwin* )
46034 SO_SUFFIX="dll"
46035 SO_SUFFIX_MODULE="dll"
46036 DLLIMP_SUFFIX="dll.a"
46037 EXEEXT=".exe"
46038 DLLPREFIX="cyg"
46039 dlldir="$bindir"
46040 ;;
46041 *-*-mingw32* )
a848cd7e
SC
46042 SO_SUFFIX="dll"
46043 SO_SUFFIX_MODULE="dll"
46044 DLLIMP_SUFFIX="dll.a"
46045 EXEEXT=".exe"
46046 DLLPREFIX=""
810b94f0 46047 dlldir="$bindir"
a848cd7e
SC
46048 ;;
46049 *-pc-msdosdjgpp )
46050 EXEEXT=".exe"
46051 DLLPREFIX=""
810b94f0 46052 dlldir="$bindir"
a848cd7e
SC
46053 ;;
46054 *-pc-os2_emx | *-pc-os2-emx )
46055 SO_SUFFIX="dll"
46056 SO_SUFFIX_MODULE="dll"
46057 DLLIMP_SUFFIX=$OS2_LIBEXT
46058 EXEEXT=".exe"
46059 DLLPREFIX=""
46060 LIBPREFIX=""
46061 LIBEXT=".$OS2_LIBEXT"
810b94f0 46062 dlldir="$bindir"
a848cd7e 46063 ;;
47bd5406 46064 *-*-darwin* )
a848cd7e
SC
46065 SO_SUFFIX="dylib"
46066 SO_SUFFIX_MODULE="bundle"
46067 ;;
46068 esac
46069
46070 if test "x$DLLIMP_SUFFIX" = "x" ; then
46071 DLLIMP_SUFFIX="$SO_SUFFIX"
46072 fi
46073
46074
46075
46076
46077
46078
46079
46080
46081
46082
46083
810b94f0 46084
1e9e8aba
DE
46085 PIC_FLAG=""
46086 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46087 PIC_FLAG="-fPIC"
46088 fi
46089
1e9e8aba
DE
46090 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46091 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46092 WINDOWS_IMPLIB=0
1e9e8aba 46093
a848cd7e
SC
46094 case "${BAKEFILE_HOST}" in
46095 *-hp-hpux* )
1e9e8aba 46096 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46097 LDFLAGS="$LDFLAGS -L/usr/lib"
46098
46099 SHARED_LD_CC="${CC} -b -o"
46100 SHARED_LD_CXX="${CXX} -b -o"
46101 PIC_FLAG="+Z"
46102 fi
46103 ;;
46104
46105 *-*-linux* )
46106 if test "x$GCC" != "xyes"; then
46107 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46108echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46109if test "${bakefile_cv_prog_icc+set}" = set; then
46110 echo $ECHO_N "(cached) $ECHO_C" >&6
46111else
46112
46113 cat >conftest.$ac_ext <<_ACEOF
46114/* confdefs.h. */
46115_ACEOF
46116cat confdefs.h >>conftest.$ac_ext
46117cat >>conftest.$ac_ext <<_ACEOF
46118/* end confdefs.h. */
46119
46120int
46121main ()
46122{
46123
46124 #ifndef __INTEL_COMPILER
e5efa97e 46125 This is not ICC
a848cd7e
SC
46126 #endif
46127
46128 ;
46129 return 0;
46130}
46131_ACEOF
46132rm -f conftest.$ac_objext
46133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46134 (eval $ac_compile) 2>conftest.er1
a848cd7e 46135 ac_status=$?
ac1cb8d3
VS
46136 grep -v '^ *+' conftest.er1 >conftest.err
46137 rm -f conftest.er1
46138 cat conftest.err >&5
a848cd7e
SC
46139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46140 (exit $ac_status); } &&
d25774ab
JS
46141 { ac_try='test -z "$ac_c_werror_flag"
46142 || test ! -s conftest.err'
ac1cb8d3
VS
46143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46144 (eval $ac_try) 2>&5
46145 ac_status=$?
46146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46147 (exit $ac_status); }; } &&
46148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46150 (eval $ac_try) 2>&5
46151 ac_status=$?
46152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46153 (exit $ac_status); }; }; then
46154 bakefile_cv_prog_icc=yes
46155else
46156 echo "$as_me: failed program was:" >&5
46157sed 's/^/| /' conftest.$ac_ext >&5
46158
46159bakefile_cv_prog_icc=no
46160
46161fi
ac1cb8d3 46162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46163
46164fi
46165echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46166echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46167 if test "$bakefile_cv_prog_icc" = "yes"; then
46168 PIC_FLAG="-KPIC"
46169 fi
46170 fi
46171 ;;
46172
46173 *-*-solaris2* )
46174 if test "x$GCC" != xyes ; then
46175 SHARED_LD_CC="${CC} -G -o"
46176 SHARED_LD_CXX="${CXX} -G -o"
46177 PIC_FLAG="-KPIC"
46178 fi
46179 ;;
46180
46181 *-*-darwin* )
46182
473276a9
VS
46183D='$'
46184cat <<EOF >shared-ld-sh
a848cd7e
SC
46185#!/bin/sh
46186#-----------------------------------------------------------------------------
46187#-- Name: distrib/mac/shared-ld-sh
46188#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46189#-- Author: Gilles Depeyrot
46190#-- Copyright: (c) 2002 Gilles Depeyrot
46191#-- Licence: any use permitted
46192#-----------------------------------------------------------------------------
46193
46194verbose=0
46195args=""
46196objects=""
46197linking_flag="-dynamiclib"
810b94f0 46198ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46199
473276a9
VS
46200while test ${D}# -gt 0; do
46201 case ${D}1 in
a848cd7e
SC
46202
46203 -v)
46204 verbose=1
46205 ;;
46206
46207 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46208 # collect these options and values
473276a9 46209 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46210 shift
46211 ;;
46212
810b94f0
MW
46213 -s|-Wl,*)
46214 # collect these load args
46215 ldargs="${D}{ldargs} ${D}1"
2113bc77 46216 ;;
810b94f0
MW
46217
46218 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46219 # collect these options
473276a9 46220 args="${D}{args} ${D}1"
a848cd7e
SC
46221 ;;
46222
46223 -dynamiclib|-bundle)
473276a9 46224 linking_flag="${D}1"
a848cd7e
SC
46225 ;;
46226
46227 -*)
473276a9 46228 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46229 exit 1
46230 ;;
46231
46232 *.o | *.a | *.dylib)
46233 # collect object files
473276a9 46234 objects="${D}{objects} ${D}1"
a848cd7e
SC
46235 ;;
46236
46237 *)
473276a9 46238 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46239 exit 1
46240 ;;
46241
46242 esac
46243 shift
46244done
46245
810b94f0
MW
46246status=0
46247
a848cd7e
SC
46248#
46249# Link one module containing all the others
46250#
473276a9 46251if test ${D}{verbose} = 1; then
810b94f0 46252 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46253fi
810b94f0 46254c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46255status=${D}?
a848cd7e
SC
46256
46257#
810b94f0
MW
46258# Link the shared library from the single module created, but only if the
46259# previous command didn't fail:
a848cd7e 46260#
810b94f0
MW
46261if test ${D}{status} = 0; then
46262 if test ${D}{verbose} = 1; then
46263 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46264 fi
46265 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46266 status=${D}?
a848cd7e
SC
46267fi
46268
46269#
46270# Remove intermediate module
46271#
473276a9 46272rm -f master.${D}${D}.o
a848cd7e 46273
810b94f0 46274exit ${D}status
a848cd7e 46275EOF
473276a9 46276
583d6b4b
VZ
46277 chmod +x shared-ld-sh
46278
46279 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46280 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46281
46282
46283 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46284echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46285if test "${bakefile_cv_gcc31+set}" = set; then
46286 echo $ECHO_N "(cached) $ECHO_C" >&6
46287else
46288
46289 cat >conftest.$ac_ext <<_ACEOF
46290/* confdefs.h. */
46291_ACEOF
46292cat confdefs.h >>conftest.$ac_ext
46293cat >>conftest.$ac_ext <<_ACEOF
46294/* end confdefs.h. */
46295
46296int
46297main ()
46298{
46299
46300 #if (__GNUC__ < 3) || \
46301 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46302 This is old gcc
583d6b4b 46303 #endif
a848cd7e 46304
583d6b4b
VZ
46305 ;
46306 return 0;
46307}
46308_ACEOF
46309rm -f conftest.$ac_objext
46310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46311 (eval $ac_compile) 2>conftest.er1
46312 ac_status=$?
46313 grep -v '^ *+' conftest.er1 >conftest.err
46314 rm -f conftest.er1
46315 cat conftest.err >&5
46316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46317 (exit $ac_status); } &&
d25774ab
JS
46318 { ac_try='test -z "$ac_c_werror_flag"
46319 || test ! -s conftest.err'
583d6b4b
VZ
46320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46321 (eval $ac_try) 2>&5
46322 ac_status=$?
46323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46324 (exit $ac_status); }; } &&
46325 { ac_try='test -s conftest.$ac_objext'
46326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46327 (eval $ac_try) 2>&5
46328 ac_status=$?
46329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46330 (exit $ac_status); }; }; then
46331
46332 bakefile_cv_gcc31=yes
46333
46334else
46335 echo "$as_me: failed program was:" >&5
46336sed 's/^/| /' conftest.$ac_ext >&5
46337
46338
46339 bakefile_cv_gcc31=no
46340
46341
46342fi
46343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46344
46345fi
46346echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46347echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46348 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46349 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46350 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46351 else
46352 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46353 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46354 fi
46355
47bd5406
VZ
46356 if test "x$GCC" == "xyes"; then
46357 PIC_FLAG="-dynamic -fPIC"
46358 fi
46359 if test "x$XLCC" = "xyes"; then
46360 PIC_FLAG="-dynamic -DPIC"
46361 fi
a848cd7e
SC
46362 ;;
46363
46364 *-*-aix* )
f6b50c59 46365 if test "x$GCC" = "xyes"; then
583d6b4b 46366 PIC_FLAG=""
f6b50c59 46367
583d6b4b
VZ
46368 case "${BAKEFILE_HOST}" in
46369 *-*-aix5* )
46370 LD_EXPFULL="-Wl,-bexpfull"
46371 ;;
46372 esac
f6b50c59 46373
583d6b4b
VZ
46374 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46375 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46376 else
46377 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46378set dummy makeC++SharedLib; ac_word=$2
46379echo "$as_me:$LINENO: checking for $ac_word" >&5
46380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46381if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46382 echo $ECHO_N "(cached) $ECHO_C" >&6
46383else
46384 if test -n "$AIX_CXX_LD"; then
46385 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46386else
46387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46388for as_dir in $PATH
46389do
46390 IFS=$as_save_IFS
46391 test -z "$as_dir" && as_dir=.
46392 for ac_exec_ext in '' $ac_executable_extensions; do
46393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46394 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46396 break 2
46397 fi
46398done
46399done
46400
46401 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46402fi
46403fi
46404AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46405if test -n "$AIX_CXX_LD"; then
46406 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46407echo "${ECHO_T}$AIX_CXX_LD" >&6
46408else
46409 echo "$as_me:$LINENO: result: no" >&5
46410echo "${ECHO_T}no" >&6
46411fi
46412
f6b50c59 46413 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46414 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46415 fi
46416 ;;
46417
46418 *-*-beos* )
1e9e8aba
DE
46419 SHARED_LD_CC="${LD} -nostart -o"
46420 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46421 ;;
46422
46423 *-*-irix* )
46424 if test "x$GCC" != "xyes"; then
46425 PIC_FLAG="-KPIC"
46426 fi
46427 ;;
46428
46429 *-*-cygwin* | *-*-mingw32* )
46430 PIC_FLAG=""
1e9e8aba
DE
46431 SHARED_LD_CC="\$(CC) -shared -o"
46432 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46433 WINDOWS_IMPLIB=1
a848cd7e
SC
46434 ;;
46435
46436 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46437 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46438 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46439 PIC_FLAG=""
473276a9
VS
46440
46441D='$'
46442cat <<EOF >dllar.sh
46443#!/bin/sh
46444#
46445# dllar - a tool to build both a .dll and an .a file
46446# from a set of object (.o) files for EMX/OS2.
46447#
46448# Written by Andrew Zabolotny, bit@freya.etu.ru
46449# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46450#
46451# This script will accept a set of files on the command line.
46452# All the public symbols from the .o files will be exported into
46453# a .DEF file, then linker will be run (through gcc) against them to
46454# build a shared library consisting of all given .o files. All libraries
46455# (.a) will be first decompressed into component .o files then act as
46456# described above. You can optionally give a description (-d "description")
46457# which will be put into .DLL. To see the list of accepted options (as well
46458# as command-line format) simply run this program without options. The .DLL
46459# is built to be imported by name (there is no guarantee that new versions
46460# of the library you build will have same ordinals for same symbols).
46461#
46462# dllar is free software; you can redistribute it and/or modify
46463# it under the terms of the GNU General Public License as published by
46464# the Free Software Foundation; either version 2, or (at your option)
46465# any later version.
46466#
46467# dllar is distributed in the hope that it will be useful,
46468# but WITHOUT ANY WARRANTY; without even the implied warranty of
46469# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46470# GNU General Public License for more details.
46471#
46472# You should have received a copy of the GNU General Public License
46473# along with dllar; see the file COPYING. If not, write to the Free
46474# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46475# 02111-1307, USA.
46476
46477# To successfuly run this program you will need:
46478# - Current drive should have LFN support (HPFS, ext2, network, etc)
46479# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46480# - gcc
46481# (used to build the .dll)
46482# - emxexp
46483# (used to create .def file from .o files)
46484# - emximp
46485# (used to create .a file from .def file)
46486# - GNU text utilites (cat, sort, uniq)
46487# used to process emxexp output
46488# - GNU file utilities (mv, rm)
46489# - GNU sed
46490# - lxlite (optional, see flag below)
46491# (used for general .dll cleanup)
46492#
46493
46494flag_USE_LXLITE=1;
46495
46496#
46497# helper functions
46498# basnam, variant of basename, which does _not_ remove the path, _iff_
46499# second argument (suffix to remove) is given
46500basnam(){
46501 case ${D}# in
46502 1)
1e9e8aba 46503 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46504 ;;
46505 2)
46506 echo ${D}1 | sed 's/'${D}2'${D}//'
46507 ;;
46508 *)
46509 echo "error in basnam ${D}*"
46510 exit 8
46511 ;;
46512 esac
46513}
46514
46515# Cleanup temporary files and output
46516CleanUp() {
46517 cd ${D}curDir
46518 for i in ${D}inputFiles ; do
46519 case ${D}i in
46520 *!)
46521 rm -rf \`basnam ${D}i !\`
46522 ;;
46523 *)
46524 ;;
46525 esac
46526 done
46527
46528 # Kill result in case of failure as there is just to many stupid make/nmake
46529 # things out there which doesn't do this.
1e9e8aba 46530 if [ ${D}# -eq 0 ]; then
473276a9
VS
46531 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46532 fi
46533}
46534
46535# Print usage and exit script with rc=1.
46536PrintHelp() {
b1d22ded
DE
46537 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46538 echo ' [-name-mangler-script script.sh]'
46539 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46540 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46541 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46542 echo ' [*.o] [*.a]'
473276a9
VS
46543 echo '*> "output_file" should have no extension.'
46544 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46545 echo ' The import library name is derived from this and is set to "name".a,'
46546 echo ' unless overridden by -import'
46547 echo '*> "importlib_name" should have no extension.'
46548 echo ' If it has the .o, or .a extension, it is automatically removed.'
46549 echo ' This name is used as the import library name and may be longer and'
46550 echo ' more descriptive than the DLL name which has to follow the old '
46551 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46552 echo '*> "script.sh may be given to override the output_file name by a'
46553 echo ' different name. It is mainly useful if the regular make process'
46554 echo ' of some package does not take into account OS/2 restriction of'
46555 echo ' DLL name lengths. It takes the importlib name as input and is'
46556 echo ' supposed to procude a shorter name as output. The script should'
46557 echo ' expect to get importlib_name without extension and should produce'
46558 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46559 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46560 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46561 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46562 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46563 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46564 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46565 echo ' If the last character of a symbol is "*", all symbols beginning'
46566 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46567 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46568 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46569 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46570 echo ' C runtime DLLs.'
b1d22ded 46571 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46572 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46573 echo ' unchanged to GCC at the end of command line.'
46574 echo '*> If you create a DLL from a library and you do not specify -o,'
46575 echo ' the basename for DLL and import library will be set to library name,'
46576 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46577 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46578 echo ' library will be renamed into gcc_s.a.'
46579 echo '--------'
46580 echo 'Example:'
46581 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46582 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46583 CleanUp
46584 exit 1
46585}
46586
46587# Execute a command.
46588# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46589# @Uses Whatever CleanUp() uses.
46590doCommand() {
46591 echo "${D}*"
46592 eval ${D}*
46593 rcCmd=${D}?
46594
1e9e8aba 46595 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46596 echo "command failed, exit code="${D}rcCmd
46597 CleanUp
46598 exit ${D}rcCmd
46599 fi
46600}
46601
46602# main routine
46603# setup globals
46604cmdLine=${D}*
46605outFile=""
46606outimpFile=""
46607inputFiles=""
b1d22ded 46608renameScript=""
473276a9
VS
46609description=""
46610CC=gcc.exe
46611CFLAGS="-s -Zcrtdll"
46612EXTRA_CFLAGS=""
46613EXPORT_BY_ORDINALS=0
46614exclude_symbols=""
46615library_flags=""
46616curDir=\`pwd\`
46617curDirS=curDir
46618case ${D}curDirS in
46619*/)
46620 ;;
46621*)
46622 curDirS=${D}{curDirS}"/"
46623 ;;
46624esac
46625# Parse commandline
46626libsToLink=0
b1d22ded 46627omfLinking=0
1e9e8aba 46628while [ ${D}1 ]; do
473276a9
VS
46629 case ${D}1 in
46630 -ord*)
46631 EXPORT_BY_ORDINALS=1;
46632 ;;
46633 -o*)
46634 shift
46635 outFile=${D}1
46636 ;;
46637 -i*)
46638 shift
46639 outimpFile=${D}1
46640 ;;
b1d22ded
DE
46641 -name-mangler-script)
46642 shift
46643 renameScript=${D}1
46644 ;;
473276a9
VS
46645 -d*)
46646 shift
46647 description=${D}1
46648 ;;
46649 -f*)
46650 shift
46651 CFLAGS=${D}1
46652 ;;
46653 -c*)
46654 shift
46655 CC=${D}1
46656 ;;
46657 -h*)
46658 PrintHelp
46659 ;;
46660 -ex*)
46661 shift
46662 exclude_symbols=${D}{exclude_symbols}${D}1" "
46663 ;;
46664 -libf*)
46665 shift
46666 library_flags=${D}{library_flags}${D}1" "
46667 ;;
46668 -nocrt*)
46669 CFLAGS="-s"
46670 ;;
46671 -nolxl*)
46672 flag_USE_LXLITE=0
46673 ;;
46674 -* | /*)
46675 case ${D}1 in
46676 -L* | -l*)
46677 libsToLink=1
46678 ;;
b1d22ded
DE
46679 -Zomf)
46680 omfLinking=1
46681 ;;
473276a9
VS
46682 *)
46683 ;;
46684 esac
46685 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46686 ;;
b1d22ded
DE
46687 *.dll)
46688 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46689 if [ ${D}omfLinking -eq 1 ]; then
46690 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46691 else
46692 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46693 fi
46694 ;;
473276a9
VS
46695 *)
46696 found=0;
1e9e8aba 46697 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46698 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46699 else
46700 for file in ${D}1 ; do
1e9e8aba 46701 if [ -f ${D}file ]; then
473276a9
VS
46702 inputFiles="${D}{inputFiles} ${D}file"
46703 found=1
46704 fi
46705 done
1e9e8aba 46706 if [ ${D}found -eq 0 ]; then
473276a9
VS
46707 echo "ERROR: No file(s) found: "${D}1
46708 exit 8
46709 fi
46710 fi
46711 ;;
46712 esac
46713 shift
46714done # iterate cmdline words
46715
46716#
1e9e8aba 46717if [ -z "${D}inputFiles" ]; then
473276a9
VS
46718 echo "dllar: no input files"
46719 PrintHelp
46720fi
46721
46722# Now extract all .o files from .a files
46723newInputFiles=""
46724for file in ${D}inputFiles ; do
46725 case ${D}file in
46726 *.a | *.lib)
46727 case ${D}file in
46728 *.a)
46729 suffix=".a"
46730 AR="ar"
46731 ;;
46732 *.lib)
46733 suffix=".lib"
46734 AR="emxomfar"
46735 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46736 ;;
46737 *)
46738 ;;
46739 esac
46740 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46741 mkdir ${D}dirname
1e9e8aba 46742 if [ ${D}? -ne 0 ]; then
473276a9
VS
46743 echo "Failed to create subdirectory ./${D}dirname"
46744 CleanUp
46745 exit 8;
46746 fi
46747 # Append '!' to indicate archive
46748 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46749 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46750 cd ${D}curDir
46751 found=0;
46752 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46753 if [ -f ${D}subfile ]; then
473276a9 46754 found=1
1e9e8aba 46755 if [ -s ${D}subfile ]; then
473276a9
VS
46756 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46757 newInputFiles="${D}newInputFiles ${D}subfile"
46758 fi
46759 fi
46760 done
1e9e8aba
DE
46761 if [ ${D}found -eq 0 ]; then
46762 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46763 fi
46764 ;;
46765 *)
46766 newInputFiles="${D}{newInputFiles} ${D}file"
46767 ;;
46768 esac
46769done
46770inputFiles="${D}newInputFiles"
46771
46772# Output filename(s).
46773do_backup=0;
1e9e8aba 46774if [ -z ${D}outFile ]; then
473276a9
VS
46775 do_backup=1;
46776 set outFile ${D}inputFiles; outFile=${D}2
46777fi
46778
46779# If it is an archive, remove the '!' and the '_%' suffixes
46780case ${D}outFile in
46781*_%!)
46782 outFile=\`basnam ${D}outFile _%!\`
46783 ;;
46784*)
46785 ;;
46786esac
46787case ${D}outFile in
46788*.dll)
46789 outFile=\`basnam ${D}outFile .dll\`
46790 ;;
46791*.DLL)
46792 outFile=\`basnam ${D}outFile .DLL\`
46793 ;;
46794*.o)
46795 outFile=\`basnam ${D}outFile .o\`
46796 ;;
46797*.obj)
46798 outFile=\`basnam ${D}outFile .obj\`
46799 ;;
46800*.a)
46801 outFile=\`basnam ${D}outFile .a\`
46802 ;;
46803*.lib)
46804 outFile=\`basnam ${D}outFile .lib\`
46805 ;;
46806*)
46807 ;;
46808esac
46809case ${D}outimpFile in
46810*.a)
46811 outimpFile=\`basnam ${D}outimpFile .a\`
46812 ;;
46813*.lib)
46814 outimpFile=\`basnam ${D}outimpFile .lib\`
46815 ;;
46816*)
46817 ;;
46818esac
1e9e8aba 46819if [ -z ${D}outimpFile ]; then
473276a9
VS
46820 outimpFile=${D}outFile
46821fi
46822defFile="${D}{outFile}.def"
46823arcFile="${D}{outimpFile}.a"
46824arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46825
46826#create ${D}dllFile as something matching 8.3 restrictions,
46827if [ -z ${D}renameScript ] ; then
46828 dllFile="${D}outFile"
46829else
46830 dllFile=\`${D}renameScript ${D}outimpFile\`
46831fi
473276a9 46832
1e9e8aba
DE
46833if [ ${D}do_backup -ne 0 ] ; then
46834 if [ -f ${D}arcFile ] ; then
473276a9
VS
46835 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46836 fi
1e9e8aba 46837 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46838 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46839 fi
46840fi
46841
46842# Extract public symbols from all the object files.
46843tmpdefFile=${D}{defFile}_%
46844rm -f ${D}tmpdefFile
46845for file in ${D}inputFiles ; do
46846 case ${D}file in
46847 *!)
46848 ;;
46849 *)
46850 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46851 ;;
46852 esac
46853done
46854
46855# Create the def file.
46856rm -f ${D}defFile
46857echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46858dllFile="${D}{dllFile}.dll"
46859if [ ! -z ${D}description ]; then
1e9e8aba 46860 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46861fi
46862echo "EXPORTS" >> ${D}defFile
46863
46864doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46865grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46866
46867# Checks if the export is ok or not.
46868for word in ${D}exclude_symbols; do
46869 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46870 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46871done
46872
46873
1e9e8aba
DE
46874if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46875 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46876 sed '
46877 N
46878 : loop
1e9e8aba 46879 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46880 t loop
46881 ' > ${D}{tmpdefFile}%
46882 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46883else
46884 rm -f ${D}{tmpdefFile}%
46885fi
46886cat ${D}tmpdefFile >> ${D}defFile
46887rm -f ${D}tmpdefFile
46888
46889# Do linking, create implib, and apply lxlite.
46890gccCmdl="";
46891for file in ${D}inputFiles ; do
46892 case ${D}file in
46893 *!)
46894 ;;
46895 *)
46896 gccCmdl="${D}gccCmdl ${D}file"
46897 ;;
46898 esac
46899done
46900doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46901touch "${D}{outFile}.dll"
46902
46903doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46904if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46905 add_flags="";
1e9e8aba 46906 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46907 add_flags="-ynd"
46908 fi
46909 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46910fi
46911doCommand "emxomf -s -l ${D}arcFile"
46912
46913# Successful exit.
46914CleanUp 1
46915exit 0
46916EOF
46917
46918 chmod +x dllar.sh
a848cd7e
SC
46919 ;;
46920
1e9e8aba 46921 powerpc-apple-macos* | \
0ad5d837 46922 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46923 *-*-sunos4* | \
46924 *-*-osf* | \
46925 *-*-dgux5* | \
47a7e797
MW
46926 *-*-sysv5* | \
46927 *-pc-msdosdjgpp )
a848cd7e
SC
46928 ;;
46929
46930 *)
46931 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46932echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46933 { (exit 1); exit 1; }; }
46934 esac
46935
2057db16
VS
46936 if test "x$PIC_FLAG" != "x" ; then
46937 PIC_FLAG="$PIC_FLAG -DPIC"
46938 fi
46939
a848cd7e
SC
46940 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46941 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46942 fi
46943 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46944 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46945 fi
46946
46947
46948
46949
46950
46951
46952
46953
810b94f0 46954
a848cd7e
SC
46955 USE_SOVERSION=0
46956 USE_SOVERLINUX=0
46957 USE_SOVERSOLARIS=0
810b94f0 46958 USE_SOVERCYGWIN=0
a848cd7e
SC
46959 USE_SOSYMLINKS=0
46960 USE_MACVERSION=0
46961 SONAME_FLAG=
46962
46963 case "${BAKEFILE_HOST}" in
0ad5d837 46964 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46965 SONAME_FLAG="-Wl,-soname,"
46966 USE_SOVERSION=1
46967 USE_SOVERLINUX=1
46968 USE_SOSYMLINKS=1
46969 ;;
46970
a848cd7e
SC
46971 *-*-solaris2* )
46972 SONAME_FLAG="-h "
46973 USE_SOVERSION=1
46974 USE_SOVERSOLARIS=1
46975 USE_SOSYMLINKS=1
46976 ;;
46977
46978 *-*-darwin* )
46979 USE_MACVERSION=1
46980 USE_SOVERSION=1
46981 USE_SOSYMLINKS=1
46982 ;;
810b94f0
MW
46983
46984 *-*-cygwin* )
46985 USE_SOVERSION=1
46986 USE_SOVERCYGWIN=1
46987 ;;
a848cd7e
SC
46988 esac
46989
46990
46991
46992
46993
46994
46995
46996
46997
810b94f0 46998
f10e38c4
VZ
46999 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47000if test "${enable_dependency_tracking+set}" = set; then
47001 enableval="$enable_dependency_tracking"
47002 bk_use_trackdeps="$enableval"
47003fi;
47004
a848cd7e
SC
47005 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47006echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 47007
f10e38c4
VZ
47008 if test "x$bk_use_trackdeps" = "xno" ; then
47009 DEPS_TRACKING=0
47010 echo "$as_me:$LINENO: result: disabled" >&5
47011echo "${ECHO_T}disabled" >&6
47012 else
47013 DEPS_TRACKING=1
47014
47015 if test "x$GCC" = "xyes"; then
47016 DEPSMODE=gcc
47017 case "${BAKEFILE_HOST}" in
47018 *-*-darwin* )
47019 DEPSFLAG="-no-cpp-precomp -MMD"
47020 ;;
47021 * )
47022 DEPSFLAG="-MMD"
47023 ;;
47024 esac
47025 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 47026echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
47027 elif test "x$MWCC" = "xyes"; then
47028 DEPSMODE=mwcc
47029 DEPSFLAG="-MM"
47030 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 47031echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
47032 elif test "x$SUNCC" = "xyes"; then
47033 DEPSMODE=unixcc
47034 DEPSFLAG="-xM1"
47035 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 47036echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
47037 elif test "x$SGICC" = "xyes"; then
47038 DEPSMODE=unixcc
47039 DEPSFLAG="-M"
47040 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 47041echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
47042 elif test "x$HPCC" = "xyes"; then
47043 DEPSMODE=unixcc
47044 DEPSFLAG="+make"
47045 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 47046echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
47047 elif test "x$COMPAQCC" = "xyes"; then
47048 DEPSMODE=gcc
47049 DEPSFLAG="-MD"
47050 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 47051echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
47052 else
47053 DEPS_TRACKING=0
47054 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 47055echo "${ECHO_T}none" >&6
f10e38c4 47056 fi
a848cd7e 47057
f10e38c4 47058 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47059
47060D='$'
47061cat <<EOF >bk-deps
a848cd7e
SC
47062#!/bin/sh
47063
47064# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47065# script. It is used to track C/C++ files dependencies in portable way.
47066#
47067# Permission is given to use this file in any way.
47068
473276a9 47069DEPSMODE=${DEPSMODE}
a848cd7e 47070DEPSDIR=.deps
0ad5d837 47071DEPSFLAG="${DEPSFLAG}"
a848cd7e 47072
473276a9 47073mkdir -p ${D}DEPSDIR
a848cd7e 47074
473276a9 47075if test ${D}DEPSMODE = gcc ; then
0ad5d837 47076 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47077 status=${D}?
47078 if test ${D}{status} != 0 ; then
47079 exit ${D}{status}
a848cd7e
SC
47080 fi
47081 # move created file to the location we want it in:
473276a9
VS
47082 while test ${D}# -gt 0; do
47083 case "${D}1" in
a848cd7e
SC
47084 -o )
47085 shift
473276a9 47086 objfile=${D}1
a848cd7e
SC
47087 ;;
47088 -* )
47089 ;;
47090 * )
473276a9 47091 srcfile=${D}1
a848cd7e
SC
47092 ;;
47093 esac
47094 shift
47095 done
1e9e8aba
DE
47096 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47097 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47098 if test -f ${D}depfile ; then
47099 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47100 rm -f ${D}depfile
a848cd7e 47101 else
a1aa0349 47102 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47103 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47104 if test ! -f ${D}depfile ; then
47105 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47106 depfile="${D}objfile.d"
47107 fi
473276a9
VS
47108 if test -f ${D}depfile ; then
47109 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47110 rm -f ${D}depfile
a848cd7e
SC
47111 fi
47112 fi
47113 exit 0
81f90336 47114elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47115 ${D}* || exit ${D}?
81f90336
MW
47116 # Run mwcc again with -MM and redirect into the dep file we want
47117 # NOTE: We can't use shift here because we need ${D}* to be valid
47118 prevarg=
47119 for arg in ${D}* ; do
47120 if test "${D}prevarg" = "-o"; then
47121 objfile=${D}arg
47122 else
47123 case "${D}arg" in
47124 -* )
47125 ;;
47126 * )
47127 srcfile=${D}arg
47128 ;;
47129 esac
47130 fi
47131 prevarg="${D}arg"
47132 done
0ad5d837 47133 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47134 exit 0
0ad5d837 47135elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47136 ${D}* || exit ${D}?
a9e5b1f0
MW
47137 # Run compiler again with deps flag and redirect into the dep file.
47138 # It doesn't work if the '-o FILE' option is used, but without it the
47139 # dependency file will contain the wrong name for the object. So it is
47140 # removed from the command line, and the dep file is fixed with sed.
47141 cmd=""
47142 while test ${D}# -gt 0; do
47143 case "${D}1" in
47144 -o )
47145 shift
47146 objfile=${D}1
47147 ;;
47148 * )
47149 eval arg${D}#=\\${D}1
47150 cmd="${D}cmd \\${D}arg${D}#"
47151 ;;
47152 esac
47153 shift
47154 done
0ad5d837 47155 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47156 exit 0
a848cd7e 47157else
473276a9
VS
47158 ${D}*
47159 exit ${D}?
a848cd7e
SC
47160fi
47161EOF
473276a9 47162
f10e38c4
VZ
47163 chmod +x bk-deps
47164 fi
a848cd7e
SC
47165 fi
47166
47167
47168
47169
a848cd7e
SC
47170 case ${BAKEFILE_HOST} in
47171 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47172 if test -n "$ac_tool_prefix"; then
47173 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47174set dummy ${ac_tool_prefix}windres; ac_word=$2
47175echo "$as_me:$LINENO: checking for $ac_word" >&5
47176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47177if test "${ac_cv_prog_WINDRES+set}" = set; then
47178 echo $ECHO_N "(cached) $ECHO_C" >&6
47179else
47180 if test -n "$WINDRES"; then
47181 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47182else
47183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47184for as_dir in $PATH
47185do
47186 IFS=$as_save_IFS
47187 test -z "$as_dir" && as_dir=.
47188 for ac_exec_ext in '' $ac_executable_extensions; do
47189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47190 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47192 break 2
47193 fi
47194done
47195done
47196
47197fi
47198fi
47199WINDRES=$ac_cv_prog_WINDRES
47200if test -n "$WINDRES"; then
47201 echo "$as_me:$LINENO: result: $WINDRES" >&5
47202echo "${ECHO_T}$WINDRES" >&6
47203else
47204 echo "$as_me:$LINENO: result: no" >&5
47205echo "${ECHO_T}no" >&6
47206fi
47207
47208fi
47209if test -z "$ac_cv_prog_WINDRES"; then
47210 ac_ct_WINDRES=$WINDRES
47211 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47212set dummy windres; ac_word=$2
47213echo "$as_me:$LINENO: checking for $ac_word" >&5
47214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47215if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47216 echo $ECHO_N "(cached) $ECHO_C" >&6
47217else
8ced02f6
DE
47218 if test -n "$ac_ct_WINDRES"; then
47219 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47220else
47221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47222for as_dir in $PATH
47223do
47224 IFS=$as_save_IFS
47225 test -z "$as_dir" && as_dir=.
47226 for ac_exec_ext in '' $ac_executable_extensions; do
47227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47228 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47230 break 2
47231 fi
47232done
47233done
47234
a848cd7e
SC
47235fi
47236fi
8ced02f6
DE
47237ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47238if test -n "$ac_ct_WINDRES"; then
47239 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47240echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47241else
47242 echo "$as_me:$LINENO: result: no" >&5
47243echo "${ECHO_T}no" >&6
47244fi
47245
8ced02f6
DE
47246 WINDRES=$ac_ct_WINDRES
47247else
47248 WINDRES="$ac_cv_prog_WINDRES"
47249fi
47250
a848cd7e
SC
47251 ;;
47252
1e9e8aba 47253 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47254 # Extract the first word of "Rez", so it can be a program name with args.
47255set dummy Rez; ac_word=$2
47256echo "$as_me:$LINENO: checking for $ac_word" >&5
47257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47258if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47259 echo $ECHO_N "(cached) $ECHO_C" >&6
47260else
8ced02f6
DE
47261 if test -n "$REZ"; then
47262 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47263else
47264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47265for as_dir in $PATH
47266do
47267 IFS=$as_save_IFS
47268 test -z "$as_dir" && as_dir=.
47269 for ac_exec_ext in '' $ac_executable_extensions; do
47270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47271 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47273 break 2
47274 fi
47275done
47276done
47277
8ced02f6 47278 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47279fi
47280fi
8ced02f6
DE
47281REZ=$ac_cv_prog_REZ
47282if test -n "$REZ"; then
47283 echo "$as_me:$LINENO: result: $REZ" >&5
47284echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47285else
47286 echo "$as_me:$LINENO: result: no" >&5
47287echo "${ECHO_T}no" >&6
47288fi
47289
47290 # Extract the first word of "SetFile", so it can be a program name with args.
47291set dummy SetFile; ac_word=$2
47292echo "$as_me:$LINENO: checking for $ac_word" >&5
47293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47294if test "${ac_cv_prog_SETFILE+set}" = set; then
47295 echo $ECHO_N "(cached) $ECHO_C" >&6
47296else
47297 if test -n "$SETFILE"; then
47298 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47299else
47300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47301for as_dir in $PATH
47302do
47303 IFS=$as_save_IFS
47304 test -z "$as_dir" && as_dir=.
47305 for ac_exec_ext in '' $ac_executable_extensions; do
47306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47307 ac_cv_prog_SETFILE="SetFile"
47308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47309 break 2
47310 fi
47311done
47312done
47313
47314 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47315fi
47316fi
47317SETFILE=$ac_cv_prog_SETFILE
47318if test -n "$SETFILE"; then
47319 echo "$as_me:$LINENO: result: $SETFILE" >&5
47320echo "${ECHO_T}$SETFILE" >&6
47321else
47322 echo "$as_me:$LINENO: result: no" >&5
47323echo "${ECHO_T}no" >&6
47324fi
47325
47326 ;;
47327 esac
47328
47329
47330
47331
47332
8ced02f6 47333
f10e38c4 47334 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47335
dcc1b6ad 47336
f10e38c4 47337BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47338
646b6ec1 47339
74b84332 47340
a848cd7e
SC
47341 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47342if test "${enable_precomp_headers+set}" = set; then
47343 enableval="$enable_precomp_headers"
47344 bk_use_pch="$enableval"
47345fi;
47346
47347 GCC_PCH=0
f10e38c4
VZ
47348 ICC_PCH=0
47349 USE_PCH=0
a848cd7e 47350
5c60e845
MW
47351 case ${BAKEFILE_HOST} in
47352 *-*-cygwin* )
47353 bk_use_pch="no"
47354 ;;
47355 esac
47356
a848cd7e
SC
47357 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47358 if test "x$GCC" = "xyes"; then
47359 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47360echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47361 cat >conftest.$ac_ext <<_ACEOF
47362/* confdefs.h. */
47363_ACEOF
47364cat confdefs.h >>conftest.$ac_ext
47365cat >>conftest.$ac_ext <<_ACEOF
47366/* end confdefs.h. */
47367
47368int
47369main ()
47370{
47371
47372 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47373 There is no PCH support
a848cd7e
SC
47374 #endif
47375 #if (__GNUC__ < 3)
e5efa97e 47376 There is no PCH support
a848cd7e
SC
47377 #endif
47378 #if (__GNUC__ == 3) && \
47379 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47380 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47381 ( defined(__INTEL_COMPILER) )
e5efa97e 47382 There is no PCH support
a848cd7e
SC
47383 #endif
47384
47385 ;
47386 return 0;
47387}
47388_ACEOF
47389rm -f conftest.$ac_objext
47390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47391 (eval $ac_compile) 2>conftest.er1
a848cd7e 47392 ac_status=$?
ac1cb8d3
VS
47393 grep -v '^ *+' conftest.er1 >conftest.err
47394 rm -f conftest.er1
47395 cat conftest.err >&5
a848cd7e
SC
47396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47397 (exit $ac_status); } &&
d25774ab
JS
47398 { ac_try='test -z "$ac_c_werror_flag"
47399 || test ! -s conftest.err'
ac1cb8d3
VS
47400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47401 (eval $ac_try) 2>&5
47402 ac_status=$?
47403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47404 (exit $ac_status); }; } &&
47405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47407 (eval $ac_try) 2>&5
47408 ac_status=$?
47409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47410 (exit $ac_status); }; }; then
47411
47412 echo "$as_me:$LINENO: result: yes" >&5
47413echo "${ECHO_T}yes" >&6
a848cd7e
SC
47414 GCC_PCH=1
47415
47416else
47417 echo "$as_me: failed program was:" >&5
47418sed 's/^/| /' conftest.$ac_ext >&5
47419
47420
f10e38c4
VZ
47421 cat >conftest.$ac_ext <<_ACEOF
47422/* confdefs.h. */
47423_ACEOF
47424cat confdefs.h >>conftest.$ac_ext
47425cat >>conftest.$ac_ext <<_ACEOF
47426/* end confdefs.h. */
47427
47428int
47429main ()
47430{
47431
47432 #if !defined(__INTEL_COMPILER) || \
47433 (__INTEL_COMPILER < 800)
e5efa97e 47434 There is no PCH support
f10e38c4
VZ
47435 #endif
47436
47437 ;
47438 return 0;
47439}
47440_ACEOF
47441rm -f conftest.$ac_objext
47442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47443 (eval $ac_compile) 2>conftest.er1
47444 ac_status=$?
47445 grep -v '^ *+' conftest.er1 >conftest.err
47446 rm -f conftest.er1
47447 cat conftest.err >&5
47448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47449 (exit $ac_status); } &&
d25774ab
JS
47450 { ac_try='test -z "$ac_c_werror_flag"
47451 || test ! -s conftest.err'
f10e38c4
VZ
47452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47453 (eval $ac_try) 2>&5
47454 ac_status=$?
47455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47456 (exit $ac_status); }; } &&
47457 { ac_try='test -s conftest.$ac_objext'
47458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47459 (eval $ac_try) 2>&5
47460 ac_status=$?
47461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47462 (exit $ac_status); }; }; then
47463
47464 echo "$as_me:$LINENO: result: yes" >&5
47465echo "${ECHO_T}yes" >&6
47466 ICC_PCH=1
47467
47468else
47469 echo "$as_me: failed program was:" >&5
47470sed 's/^/| /' conftest.$ac_ext >&5
47471
47472
47473 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47474echo "${ECHO_T}no" >&6
47475
47476fi
ac1cb8d3 47477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47478
47479fi
47480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47481 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47482 USE_PCH=1
1e9e8aba
DE
47483
47484D='$'
47485cat <<EOF >bk-make-pch
a848cd7e
SC
47486#!/bin/sh
47487
47488# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47489# script. It is used to generated precompiled headers.
47490#
47491# Permission is given to use this file in any way.
47492
1e9e8aba
DE
47493outfile="${D}{1}"
47494header="${D}{2}"
a848cd7e
SC
47495shift
47496shift
47497
f10e38c4
VZ
47498compiler=""
47499headerfile=""
47500
1e9e8aba 47501while test ${D}{#} -gt 0; do
f10e38c4 47502 add_to_cmdline=1
1e9e8aba 47503 case "${D}{1}" in
a848cd7e 47504 -I* )
1e9e8aba
DE
47505 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47506 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47507 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47508 fi
47509 ;;
f10e38c4
VZ
47510 -use-pch|-use_pch )
47511 shift
47512 add_to_cmdline=0
47513 ;;
a848cd7e 47514 esac
f10e38c4
VZ
47515 if test ${D}add_to_cmdline = 1 ; then
47516 compiler="${D}{compiler} ${D}{1}"
47517 fi
a848cd7e
SC
47518 shift
47519done
47520
1e9e8aba 47521if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47522 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47523else
1e9e8aba
DE
47524 if test -f ${D}{outfile} ; then
47525 rm -f ${D}{outfile}
a848cd7e 47526 else
1e9e8aba 47527 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47528 fi
1e9e8aba 47529 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47530 mkdir -p .deps
f10e38c4
VZ
47531 if test "x${GCC_PCH}" = "x1" ; then
47532 # can do this because gcc is >= 3.4:
47533 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47534 elif test "x${ICC_PCH}" = "x1" ; then
47535 filename=pch_gen-${D}${D}
47536 file=${D}{filename}.c
47537 dfile=${D}{filename}.d
47538 cat > ${D}file <<EOT
47539#include "${D}header"
47540EOT
47541 # using -MF icc complains about differing command lines in creation/use
47542 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47543 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47544 rm -f ${D}file ${D}dfile ${D}{filename}.o
47545 fi
1e9e8aba 47546 exit ${D}{?}
a848cd7e
SC
47547fi
47548EOF
1e9e8aba 47549
a848cd7e
SC
47550 chmod +x bk-make-pch
47551 fi
47552 fi
47553 fi
47554
47555
47556
f10e38c4 47557
a848cd7e
SC
47558 COND_BUILD_DEBUG="#"
47559 if test "x$BUILD" = "xdebug" ; then
47560 COND_BUILD_DEBUG=""
47561 fi
47562
47563 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47564 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47565 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47566 fi
47567
47568 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47569 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47570 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47571 fi
47572
47573 COND_BUILD_DEBUG_UNICODE_0="#"
47574 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47575 COND_BUILD_DEBUG_UNICODE_0=""
47576 fi
47577
47578 COND_BUILD_DEBUG_UNICODE_1="#"
47579 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47580 COND_BUILD_DEBUG_UNICODE_1=""
47581 fi
47582
47583 COND_BUILD_RELEASE="#"
47584 if test "x$BUILD" = "xrelease" ; then
47585 COND_BUILD_RELEASE=""
47586 fi
47587
47588 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47589 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47590 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47591 fi
47592
47593 COND_BUILD_RELEASE_UNICODE_0="#"
47594 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47595 COND_BUILD_RELEASE_UNICODE_0=""
47596 fi
47597
47598 COND_BUILD_RELEASE_UNICODE_1="#"
47599 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47600 COND_BUILD_RELEASE_UNICODE_1=""
47601 fi
47602
47603 COND_DEBUG_FLAG_1="#"
47604 if test "x$DEBUG_FLAG" = "x1" ; then
47605 COND_DEBUG_FLAG_1=""
47606 fi
47607
47608 COND_DEBUG_INFO_0="#"
47609 if test "x$DEBUG_INFO" = "x0" ; then
47610 COND_DEBUG_INFO_0=""
47611 fi
47612
47613 COND_DEBUG_INFO_1="#"
47614 if test "x$DEBUG_INFO" = "x1" ; then
47615 COND_DEBUG_INFO_1=""
47616 fi
47617
47618 COND_DEPS_TRACKING_0="#"
47619 if test "x$DEPS_TRACKING" = "x0" ; then
47620 COND_DEPS_TRACKING_0=""
47621 fi
47622
47623 COND_DEPS_TRACKING_1="#"
47624 if test "x$DEPS_TRACKING" = "x1" ; then
47625 COND_DEPS_TRACKING_1=""
47626 fi
47627
47628 COND_GCC_PCH_1="#"
47629 if test "x$GCC_PCH" = "x1" ; then
47630 COND_GCC_PCH_1=""
47631 fi
47632
f10e38c4
VZ
47633 COND_ICC_PCH_1="#"
47634 if test "x$ICC_PCH" = "x1" ; then
47635 COND_ICC_PCH_1=""
47636 fi
47637
a848cd7e
SC
47638 COND_MONOLITHIC_0="#"
47639 if test "x$MONOLITHIC" = "x0" ; then
47640 COND_MONOLITHIC_0=""
47641 fi
47642
47643 COND_MONOLITHIC_0_SHARED_0="#"
47644 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47645 COND_MONOLITHIC_0_SHARED_0=""
47646 fi
47647
47648 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47649 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47650 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47651 fi
47652
90970d69
DE
47653 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47654 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47655 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47656 fi
47657
f10e38c4
VZ
47658 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47659 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47660 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47661 fi
47662
a848cd7e
SC
47663 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47664 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47665 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47666 fi
47667
6671c68b
VZ
47668 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47669 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47670 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47671 fi
47672
a848cd7e
SC
47673 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47674 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47675 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47676 fi
47677
ceec2216
RL
47678 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47679 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47680 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47681 fi
47682
a848cd7e
SC
47683 COND_MONOLITHIC_0_SHARED_1="#"
47684 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47685 COND_MONOLITHIC_0_SHARED_1=""
47686 fi
47687
47688 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47689 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47690 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47691 fi
47692
90970d69
DE
47693 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47694 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47695 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47696 fi
47697
f10e38c4
VZ
47698 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
47699 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47700 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
47701 fi
47702
a848cd7e
SC
47703 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47704 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47705 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47706 fi
47707
6671c68b
VZ
47708 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47709 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47710 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47711 fi
47712
a848cd7e
SC
47713 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47714 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47715 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47716 fi
47717
ceec2216
RL
47718 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47719 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47720 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47721 fi
47722
e5efa97e
VZ
47723 COND_MONOLITHIC_0_USE_MEDIA_1="#"
47724 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
47725 COND_MONOLITHIC_0_USE_MEDIA_1=""
47726 fi
47727
a848cd7e
SC
47728 COND_MONOLITHIC_0_USE_ODBC_1="#"
47729 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47730 COND_MONOLITHIC_0_USE_ODBC_1=""
47731 fi
47732
47733 COND_MONOLITHIC_1="#"
47734 if test "x$MONOLITHIC" = "x1" ; then
47735 COND_MONOLITHIC_1=""
47736 fi
47737
47738 COND_MONOLITHIC_1_SHARED_0="#"
47739 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47740 COND_MONOLITHIC_1_SHARED_0=""
47741 fi
47742
47743 COND_MONOLITHIC_1_SHARED_1="#"
47744 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47745 COND_MONOLITHIC_1_SHARED_1=""
47746 fi
47747
47748 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47749 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47750 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47751 fi
47752
47753 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47754 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47755 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47756 fi
47757
eb730a0c
JS
47758 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47759 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47760 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47761 fi
47762
a848cd7e
SC
47763 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47764 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47765 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47766 fi
47767
47768 COND_PLATFORM_MACOSX_1="#"
47769 if test "x$PLATFORM_MACOSX" = "x1" ; then
47770 COND_PLATFORM_MACOSX_1=""
47771 fi
47772
a30f955f
VS
47773 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47774 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47775 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47776 fi
47777
a848cd7e
SC
47778 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47779 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47780 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47781 fi
47782
47783 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47784 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47785 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47786 fi
47787
47788 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47789 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47790 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47791 fi
47792
fc480dc1
DE
47793 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47794 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47795 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47796 fi
47797
1e9e8aba
DE
47798 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47799 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47800 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47801 fi
47802
ebee3cd0
VS
47803 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47804 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47805 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47806 fi
47807
47808 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47809 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47810 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47811 fi
47812
a848cd7e
SC
47813 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47814 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47815 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47816 fi
47817
47818 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47819 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47820 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47821 fi
47822
b48a2016
DE
47823 COND_PLATFORM_MACOS_1="#"
47824 if test "x$PLATFORM_MACOS" = "x1" ; then
47825 COND_PLATFORM_MACOS_1=""
47826 fi
47827
083508af
MW
47828 COND_PLATFORM_MAC_1="#"
47829 if test "x$PLATFORM_MAC" = "x1" ; then
47830 COND_PLATFORM_MAC_1=""
47831 fi
47832
e5efa97e
VZ
47833 COND_PLATFORM_MSDOS_0="#"
47834 if test "x$PLATFORM_MSDOS" = "x0" ; then
47835 COND_PLATFORM_MSDOS_0=""
47836 fi
47837
83d8eb47
MW
47838 COND_PLATFORM_MSDOS_1="#"
47839 if test "x$PLATFORM_MSDOS" = "x1" ; then
47840 COND_PLATFORM_MSDOS_1=""
47841 fi
47842
a848cd7e
SC
47843 COND_PLATFORM_OS2_1="#"
47844 if test "x$PLATFORM_OS2" = "x1" ; then
47845 COND_PLATFORM_OS2_1=""
47846 fi
47847
47848 COND_PLATFORM_UNIX_0="#"
47849 if test "x$PLATFORM_UNIX" = "x0" ; then
47850 COND_PLATFORM_UNIX_0=""
47851 fi
47852
47853 COND_PLATFORM_UNIX_1="#"
47854 if test "x$PLATFORM_UNIX" = "x1" ; then
47855 COND_PLATFORM_UNIX_1=""
47856 fi
47857
47858 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47859 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47860 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47861 fi
47862
47863 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47864 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47865 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47866 fi
47867
47868 COND_PLATFORM_WIN32_0="#"
47869 if test "x$PLATFORM_WIN32" = "x0" ; then
47870 COND_PLATFORM_WIN32_0=""
47871 fi
47872
47873 COND_PLATFORM_WIN32_1="#"
47874 if test "x$PLATFORM_WIN32" = "x1" ; then
47875 COND_PLATFORM_WIN32_1=""
47876 fi
47877
47878 COND_SHARED_0="#"
47879 if test "x$SHARED" = "x0" ; then
47880 COND_SHARED_0=""
47881 fi
47882
083508af
MW
47883 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47884 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47885 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47886 fi
47887
47888 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47889 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47890 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47891 fi
47892
47893 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47894 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47895 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47896 fi
47897
a848cd7e
SC
47898 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47899 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47900 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47901 fi
47902
47903 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47904 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47905 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47906 fi
47907
47908 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47909 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47910 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47911 fi
47912
47913 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47914 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47915 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47916 fi
47917
083508af
MW
47918 COND_SHARED_0_USE_XRC_1="#"
47919 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47920 COND_SHARED_0_USE_XRC_1=""
47921 fi
47922
a848cd7e
SC
47923 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47924 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47925 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47926 fi
47927
47928 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47929 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47930 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47931 fi
47932
47933 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47934 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47935 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47936 fi
47937
47938 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47939 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47940 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47941 fi
47942
47943 COND_SHARED_1="#"
47944 if test "x$SHARED" = "x1" ; then
47945 COND_SHARED_1=""
47946 fi
47947
47948 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47949 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47950 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47951 fi
47952
083508af
MW
47953 COND_SHARED_1_USE_XRC_1="#"
47954 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47955 COND_SHARED_1_USE_XRC_1=""
47956 fi
47957
a30f955f
VS
47958 COND_TOOLKIT_="#"
47959 if test "x$TOOLKIT" = "x" ; then
47960 COND_TOOLKIT_=""
47961 fi
47962
a848cd7e
SC
47963 COND_TOOLKIT_COCOA="#"
47964 if test "x$TOOLKIT" = "xCOCOA" ; then
47965 COND_TOOLKIT_COCOA=""
47966 fi
47967
a49baeab
DE
47968 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47969 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47970 COND_TOOLKIT_COCOA_USE_GUI_1=""
47971 fi
47972
a848cd7e
SC
47973 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47974 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47975 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47976 fi
47977
47978 COND_TOOLKIT_GTK="#"
47979 if test "x$TOOLKIT" = "xGTK" ; then
47980 COND_TOOLKIT_GTK=""
47981 fi
47982
d044deea
MW
47983 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47984 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47985 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47986 fi
47987
47988 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
47989 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
47990 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
47991 fi
47992
47993 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
47994 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
47995 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
47996 fi
47997
47998 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
47999 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48000 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48001 fi
48002
48003 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48004 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48005 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48006 fi
48007
48008 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48009 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48010 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48011 fi
48012
a848cd7e
SC
48013 COND_TOOLKIT_GTK_USE_GUI_1="#"
48014 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48015 COND_TOOLKIT_GTK_USE_GUI_1=""
48016 fi
48017
a848cd7e
SC
48018 COND_TOOLKIT_MAC="#"
48019 if test "x$TOOLKIT" = "xMAC" ; then
48020 COND_TOOLKIT_MAC=""
48021 fi
48022
48023 COND_TOOLKIT_MAC_USE_GUI_1="#"
48024 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48025 COND_TOOLKIT_MAC_USE_GUI_1=""
48026 fi
48027
48028 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48029 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48030 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48031 fi
48032
48033 COND_TOOLKIT_MGL="#"
48034 if test "x$TOOLKIT" = "xMGL" ; then
48035 COND_TOOLKIT_MGL=""
48036 fi
48037
48038 COND_TOOLKIT_MGL_USE_GUI_1="#"
48039 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48040 COND_TOOLKIT_MGL_USE_GUI_1=""
48041 fi
48042
48043 COND_TOOLKIT_MOTIF="#"
48044 if test "x$TOOLKIT" = "xMOTIF" ; then
48045 COND_TOOLKIT_MOTIF=""
48046 fi
48047
48048 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48049 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48050 COND_TOOLKIT_MOTIF_USE_GUI_1=""
48051 fi
48052
48053 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48054 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48055 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48056 fi
48057
48058 COND_TOOLKIT_MSW="#"
48059 if test "x$TOOLKIT" = "xMSW" ; then
48060 COND_TOOLKIT_MSW=""
48061 fi
48062
48063 COND_TOOLKIT_MSW_USE_GUI_1="#"
48064 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48065 COND_TOOLKIT_MSW_USE_GUI_1=""
48066 fi
48067
48068 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48069 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48070 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48071 fi
48072
0ee4059d
DE
48073 COND_TOOLKIT_MSW_WXUNIV_0="#"
48074 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48075 COND_TOOLKIT_MSW_WXUNIV_0=""
48076 fi
48077
a848cd7e
SC
48078 COND_TOOLKIT_PM="#"
48079 if test "x$TOOLKIT" = "xPM" ; then
48080 COND_TOOLKIT_PM=""
48081 fi
48082
48083 COND_TOOLKIT_PM_USE_GUI_1="#"
48084 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48085 COND_TOOLKIT_PM_USE_GUI_1=""
48086 fi
48087
48088 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48089 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48090 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48091 fi
48092
3fd9c298
DE
48093 COND_TOOLKIT_WINCE="#"
48094 if test "x$TOOLKIT" = "xWINCE" ; then
48095 COND_TOOLKIT_WINCE=""
48096 fi
48097
48098 COND_TOOLKIT_WINCE_USE_GUI_1="#"
48099 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48100 COND_TOOLKIT_WINCE_USE_GUI_1=""
48101 fi
48102
48103 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48104 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48105 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48106 fi
48107
0ee4059d
DE
48108 COND_TOOLKIT_WINCE_WXUNIV_0="#"
48109 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48110 COND_TOOLKIT_WINCE_WXUNIV_0=""
48111 fi
48112
a848cd7e
SC
48113 COND_TOOLKIT_X11="#"
48114 if test "x$TOOLKIT" = "xX11" ; then
48115 COND_TOOLKIT_X11=""
48116 fi
48117
48118 COND_TOOLKIT_X11_USE_GUI_1="#"
48119 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48120 COND_TOOLKIT_X11_USE_GUI_1=""
48121 fi
48122
48123 COND_UNICODE_1="#"
48124 if test "x$UNICODE" = "x1" ; then
48125 COND_UNICODE_1=""
48126 fi
48127
48128 COND_USE_EXCEPTIONS_0="#"
48129 if test "x$USE_EXCEPTIONS" = "x0" ; then
48130 COND_USE_EXCEPTIONS_0=""
48131 fi
48132
48133 COND_USE_EXCEPTIONS_1="#"
48134 if test "x$USE_EXCEPTIONS" = "x1" ; then
48135 COND_USE_EXCEPTIONS_1=""
48136 fi
48137
48138 COND_USE_GUI_0="#"
48139 if test "x$USE_GUI" = "x0" ; then
48140 COND_USE_GUI_0=""
48141 fi
48142
48143 COND_USE_GUI_1="#"
48144 if test "x$USE_GUI" = "x1" ; then
48145 COND_USE_GUI_1=""
48146 fi
48147
48148 COND_USE_GUI_1_WXUNIV_0="#"
48149 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48150 COND_USE_GUI_1_WXUNIV_0=""
48151 fi
48152
48153 COND_USE_GUI_1_WXUNIV_1="#"
48154 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48155 COND_USE_GUI_1_WXUNIV_1=""
48156 fi
48157
48158 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48159 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48160 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48161 fi
48162
48163 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48164 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48165 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48166 fi
48167
48168 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48169 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48170 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48171 fi
48172
083508af
MW
48173 COND_USE_ODBC_1="#"
48174 if test "x$USE_ODBC" = "x1" ; then
48175 COND_USE_ODBC_1=""
48176 fi
48177
48178 COND_USE_OPENGL_1="#"
48179 if test "x$USE_OPENGL" = "x1" ; then
48180 COND_USE_OPENGL_1=""
48181 fi
48182
f10e38c4
VZ
48183 COND_USE_PCH_1="#"
48184 if test "x$USE_PCH" = "x1" ; then
48185 COND_USE_PCH_1=""
48186 fi
48187
a848cd7e
SC
48188 COND_USE_PLUGINS_0="#"
48189 if test "x$USE_PLUGINS" = "x0" ; then
48190 COND_USE_PLUGINS_0=""
48191 fi
48192
0b78747f
MW
48193 COND_USE_RTTI_0="#"
48194 if test "x$USE_RTTI" = "x0" ; then
48195 COND_USE_RTTI_0=""
48196 fi
48197
48198 COND_USE_RTTI_1="#"
48199 if test "x$USE_RTTI" = "x1" ; then
48200 COND_USE_RTTI_1=""
48201 fi
48202
a848cd7e
SC
48203 COND_USE_SOSYMLINKS_1="#"
48204 if test "x$USE_SOSYMLINKS" = "x1" ; then
48205 COND_USE_SOSYMLINKS_1=""
48206 fi
48207
eb730a0c
JS
48208 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48209 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48210 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48211 fi
48212
a848cd7e
SC
48213 COND_USE_SOVERLINUX_1="#"
48214 if test "x$USE_SOVERLINUX" = "x1" ; then
48215 COND_USE_SOVERLINUX_1=""
48216 fi
48217
48218 COND_USE_SOVERSION_0="#"
48219 if test "x$USE_SOVERSION" = "x0" ; then
48220 COND_USE_SOVERSION_0=""
48221 fi
48222
48223 COND_USE_SOVERSOLARIS_1="#"
48224 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48225 COND_USE_SOVERSOLARIS_1=""
48226 fi
48227
0b78747f
MW
48228 COND_USE_THREADS_0="#"
48229 if test "x$USE_THREADS" = "x0" ; then
48230 COND_USE_THREADS_0=""
48231 fi
48232
48233 COND_USE_THREADS_1="#"
48234 if test "x$USE_THREADS" = "x1" ; then
48235 COND_USE_THREADS_1=""
48236 fi
48237
a13a7f89
RL
48238 COND_USE_XRC_1="#"
48239 if test "x$USE_XRC" = "x1" ; then
48240 COND_USE_XRC_1=""
48241 fi
48242
eb730a0c
JS
48243 COND_WINDOWS_IMPLIB_1="#"
48244 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48245 COND_WINDOWS_IMPLIB_1=""
48246 fi
48247
a848cd7e
SC
48248 COND_WITH_PLUGIN_SDL_1="#"
48249 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48250 COND_WITH_PLUGIN_SDL_1=""
48251 fi
48252
1e6eb025
VZ
48253 COND_WXUNIV_0="#"
48254 if test "x$WXUNIV" = "x0" ; then
48255 COND_WXUNIV_0=""
48256 fi
48257
a848cd7e
SC
48258 COND_WXUNIV_1="#"
48259 if test "x$WXUNIV" = "x1" ; then
48260 COND_WXUNIV_1=""
48261 fi
48262
48263 COND_WXUSE_EXPAT_BUILTIN="#"
48264 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48265 COND_WXUSE_EXPAT_BUILTIN=""
48266 fi
48267
48268 COND_WXUSE_LIBJPEG_BUILTIN="#"
48269 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48270 COND_WXUSE_LIBJPEG_BUILTIN=""
48271 fi
48272
48273 COND_WXUSE_LIBPNG_BUILTIN="#"
48274 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48275 COND_WXUSE_LIBPNG_BUILTIN=""
48276 fi
48277
48278 COND_WXUSE_LIBTIFF_BUILTIN="#"
48279 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48280 COND_WXUSE_LIBTIFF_BUILTIN=""
48281 fi
48282
48283 COND_WXUSE_ODBC_BUILTIN="#"
48284 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48285 COND_WXUSE_ODBC_BUILTIN=""
48286 fi
48287
48288 COND_WXUSE_REGEX_BUILTIN="#"
48289 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48290 COND_WXUSE_REGEX_BUILTIN=""
48291 fi
48292
48293 COND_WXUSE_ZLIB_BUILTIN="#"
48294 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48295 COND_WXUSE_ZLIB_BUILTIN=""
48296 fi
48297
48298
48299
810b94f0
MW
48300 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48301 { { 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
48302echo "$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;}
48303 { (exit 1); exit 1; }; }
48304 fi
48305
2057db16
VS
48306 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48307 { { 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
48308echo "$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;}
48309 { (exit 1); exit 1; }; }
48310 fi
48311
a848cd7e 48312
7afc46ab
KO
48313
48314if test "$wxUSE_MAC" = 1 ; then
48315 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
48316 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48317 mv temp bk-deps
48318 chmod +x bk-deps
48319 fi
48320fi
48321
ceec2216
RL
48322if test "$wxUSE_SHARED" = "yes"; then
48323
48324 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48325 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48326
5b674b9d
DE
48327 case "${host}" in
48328 *-pc-os2_emx | *-pc-os2-emx )
48329 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48330 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48331 cp -p ${srcdir}/src/os2/dllnames.sh .
48332 cp -p ${srcdir}/src/os2/dllar.sh .
48333 ;;
48334 esac
ceec2216
RL
48335else
48336
48337 EXE_LINKER="$CXX -o"
48338
48339fi
69120ee4
VZ
48340if test "$wxUSE_OMF" = "yes"; then
48341 case "${host}" in
48342 *-pc-os2_emx | *-pc-os2-emx )
48343 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48344 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48345 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48346 ;;
48347 esac
48348fi
a848cd7e 48349
c08ebc62 48350if test $GCC_PCH = 1 ; then
254e8e29 48351 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48352fi
a848cd7e 48353
5ff751d6 48354WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48355
48356SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48357
48358
48359
48360
48361
48362
48363
48364
48365
48366
48367
48368
48369
48370
48371
48372
48373
48374
48375
48376
48377
48378
48379
48380
48381
48382
48383
48384
48385
48386
48387
48388
48389
48390
48391
48392
48393
48394
48395
48396
48397
48398
a848cd7e
SC
48399
48400
48401
48402
48403
48404
48405
48406
48407
48408
48409
48410
a848cd7e
SC
48411
48412
ddd14b14 48413
370d2fd7 48414
8ced02f6 48415
a848cd7e
SC
48416
48417
48418echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48419echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48420set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48421if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48422 echo $ECHO_N "(cached) $ECHO_C" >&6
48423else
48424 cat >conftest.make <<\_ACEOF
48425all:
48426 @echo 'ac_maketemp="$(MAKE)"'
48427_ACEOF
48428# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48429eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48430if test -n "$ac_maketemp"; then
48431 eval ac_cv_prog_make_${ac_make}_set=yes
48432else
48433 eval ac_cv_prog_make_${ac_make}_set=no
48434fi
48435rm -f conftest.make
48436fi
48437if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48438 echo "$as_me:$LINENO: result: yes" >&5
48439echo "${ECHO_T}yes" >&6
48440 SET_MAKE=
48441else
48442 echo "$as_me:$LINENO: result: no" >&5
48443echo "${ECHO_T}no" >&6
48444 SET_MAKE="MAKE=${MAKE-make}"
48445fi
48446
48447
a848cd7e 48448
ceec2216
RL
48449 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48450
a848cd7e 48451
5c60e845
MW
48452if test "$USE_WIN32" = 1; then
48453 ac_config_commands="$ac_config_commands
48454 rcdefs.h
48455 "
48456
48457fi
48458
ceec2216 48459 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48460
a848cd7e 48461
ceec2216 48462 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48463
ceec2216
RL
48464
48465 ac_config_files="$ac_config_files version-script Makefile"
48466
48467
5c60e845 48468 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48469
48470
9103d280 48471
1c14217d 48472if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48473if test "$wxUSE_GUI" = "yes"; then
48474 SUBDIRS="samples demos utils contrib"
48475else SUBDIRS="samples utils"
48476fi
48477
48478
48479
48480# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48481if test "${with_cppunit_prefix+set}" = set; then
48482 withval="$with_cppunit_prefix"
48483 cppunit_config_prefix="$withval"
48484else
48485 cppunit_config_prefix=""
48486fi;
48487
48488# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48489if test "${with_cppunit_exec_prefix+set}" = set; then
48490 withval="$with_cppunit_exec_prefix"
48491 cppunit_config_exec_prefix="$withval"
48492else
48493 cppunit_config_exec_prefix=""
48494fi;
48495
48496 if test x$cppunit_config_exec_prefix != x ; then
48497 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48498 if test x${CPPUNIT_CONFIG+set} != xset ; then
48499 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48500 fi
48501 fi
48502 if test x$cppunit_config_prefix != x ; then
48503 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48504 if test x${CPPUNIT_CONFIG+set} != xset ; then
48505 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48506 fi
48507 fi
48508
48509 # Extract the first word of "cppunit-config", so it can be a program name with args.
48510set dummy cppunit-config; ac_word=$2
48511echo "$as_me:$LINENO: checking for $ac_word" >&5
48512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48513if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48514 echo $ECHO_N "(cached) $ECHO_C" >&6
48515else
48516 case $CPPUNIT_CONFIG in
48517 [\\/]* | ?:[\\/]*)
48518 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48519 ;;
48520 *)
48521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48522for as_dir in $PATH
48523do
48524 IFS=$as_save_IFS
48525 test -z "$as_dir" && as_dir=.
48526 for ac_exec_ext in '' $ac_executable_extensions; do
48527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48528 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48530 break 2
48531 fi
48532done
48533done
48534
48535 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48536 ;;
48537esac
48538fi
48539CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48540
48541if test -n "$CPPUNIT_CONFIG"; then
48542 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48543echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48544else
48545 echo "$as_me:$LINENO: result: no" >&5
48546echo "${ECHO_T}no" >&6
48547fi
48548
48549 cppunit_version_min=1.8.0
48550
48551 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48552echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48553 no_cppunit=""
48554 if test "$CPPUNIT_CONFIG" = "no" ; then
48555 no_cppunit=yes
48556 else
48557 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48558 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48559 cppunit_version=`$CPPUNIT_CONFIG --version`
48560
48561 cppunit_major_version=`echo $cppunit_version | \
48562 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48563 cppunit_minor_version=`echo $cppunit_version | \
48564 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48565 cppunit_micro_version=`echo $cppunit_version | \
48566 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48567
48568 cppunit_major_min=`echo $cppunit_version_min | \
48569 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48570 cppunit_minor_min=`echo $cppunit_version_min | \
48571 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48572 cppunit_micro_min=`echo $cppunit_version_min | \
48573 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48574
48575 cppunit_version_proper=`expr \
48576 $cppunit_major_version \> $cppunit_major_min \| \
48577 $cppunit_major_version \= $cppunit_major_min \& \
48578 $cppunit_minor_version \> $cppunit_minor_min \| \
48579 $cppunit_major_version \= $cppunit_major_min \& \
48580 $cppunit_minor_version \= $cppunit_minor_min \& \
48581 $cppunit_micro_version \>= $cppunit_micro_min `
48582
48583 if test "$cppunit_version_proper" = "1" ; then
48584 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48585echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48586 else
48587 echo "$as_me:$LINENO: result: no" >&5
48588echo "${ECHO_T}no" >&6
48589 no_cppunit=yes
48590 fi
48591 fi
48592
48593 if test "x$no_cppunit" = x ; then
c2218763 48594 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48595 else
48596 CPPUNIT_CFLAGS=""
48597 CPPUNIT_LIBS=""
c2218763 48598 :
a848cd7e
SC
48599 fi
48600
48601
48602
48603
48604
48605for subdir in `echo $SUBDIRS`; do
48606 if test -d ${srcdir}/${subdir} ; then
48607 if test "$wxUSE_GUI" = "yes"; then
48608 if test ${subdir} = "samples"; then
48609 makefiles="samples/Makefile.in $makefiles"
48610 for sample in `echo $SAMPLES_SUBDIRS`; do
48611 if test -d $srcdir/samples/$sample; then
48612 makefiles="samples/$sample/Makefile.in $makefiles"
48613 fi
48614 done
9c112555
MW
48615 else
48616 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48617 eval "disabled=\$$disabled_var"
48618 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48619 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48620 fi
48621 else if test ${subdir} = "samples"; then
48622 makefiles="samples/Makefile.in samples/console/Makefile.in"
48623 elif test ${subdir} = "utils"; then
6537ccf8
VS
48624 makefiles=""
48625 for util in HelpGen tex2rtf ; do
48626 if test -d $srcdir/utils/$util ; then
48627 makefiles="utils/$util/Makefile.in \
48628 utils/$util/src/Makefile.in \
48629 $makefiles"
48630 fi
48631 done
a848cd7e
SC
48632 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48633 fi
48634 fi
48635
48636 for mkin in $makefiles ; do
48637 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48638 ac_config_files="$ac_config_files $mk"
48639
48640 done
48641 fi
48642done
1c14217d 48643fi
a848cd7e
SC
48644cat >confcache <<\_ACEOF
48645# This file is a shell script that caches the results of configure
48646# tests run on this system so they can be shared between configure
48647# scripts and configure runs, see configure's option --config-cache.
48648# It is not useful on other systems. If it contains results you don't
48649# want to keep, you may remove or edit it.
48650#
48651# config.status only pays attention to the cache file if you give it
48652# the --recheck option to rerun configure.
48653#
48654# `ac_cv_env_foo' variables (set or unset) will be overridden when
48655# loading this file, other *unset* `ac_cv_foo' will be assigned the
48656# following values.
48657
48658_ACEOF
48659
48660# The following way of writing the cache mishandles newlines in values,
48661# but we know of no workaround that is simple, portable, and efficient.
48662# So, don't put newlines in cache variables' values.
48663# Ultrix sh set writes to stderr and can't be redirected directly,
48664# and sets the high bit in the cache file unless we assign to the vars.
48665{
48666 (set) 2>&1 |
48667 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48668 *ac_space=\ *)
48669 # `set' does not quote correctly, so add quotes (double-quote
48670 # substitution turns \\\\ into \\, and sed turns \\ into \).
48671 sed -n \
ac1cb8d3
VS
48672 "s/'/'\\\\''/g;
48673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48674 ;;
48675 *)
48676 # `set' quotes correctly as required by POSIX, so do not add quotes.
48677 sed -n \
ac1cb8d3 48678 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48679 ;;
48680 esac;
48681} |
48682 sed '
48683 t clear
48684 : clear
48685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48686 t end
48687 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48688 : end' >>confcache
48689if diff $cache_file confcache >/dev/null 2>&1; then :; else
48690 if test -w $cache_file; then
48691 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48692 cat confcache >$cache_file
48693 else
48694 echo "not updating unwritable cache $cache_file"
48695 fi
48696fi
48697rm -f confcache
48698
48699test "x$prefix" = xNONE && prefix=$ac_default_prefix
48700# Let make expand exec_prefix.
48701test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48702
48703# VPATH may cause trouble with some makes, so we remove $(srcdir),
48704# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48705# trailing colons and then remove the whole line if VPATH becomes empty
48706# (actually we leave an empty line to preserve line numbers).
48707if test "x$srcdir" = x.; then
ac1cb8d3 48708 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48709s/:*\$(srcdir):*/:/;
48710s/:*\${srcdir}:*/:/;
48711s/:*@srcdir@:*/:/;
ac1cb8d3 48712s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48713s/:*$//;
ac1cb8d3 48714s/^[^=]*=[ ]*$//;
a848cd7e
SC
48715}'
48716fi
48717
48718DEFS=-DHAVE_CONFIG_H
48719
48720ac_libobjs=
48721ac_ltlibobjs=
48722for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48723 # 1. Remove the extension, and $U if already installed.
48724 ac_i=`echo "$ac_i" |
ac1cb8d3 48725 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48726 # 2. Add them.
48727 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48728 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48729done
48730LIBOBJS=$ac_libobjs
48731
48732LTLIBOBJS=$ac_ltlibobjs
48733
48734
48735
48736: ${CONFIG_STATUS=./config.status}
48737ac_clean_files_save=$ac_clean_files
48738ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48739{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48740echo "$as_me: creating $CONFIG_STATUS" >&6;}
48741cat >$CONFIG_STATUS <<_ACEOF
48742#! $SHELL
48743# Generated by $as_me.
48744# Run this file to recreate the current configuration.
48745# Compiler output produced by configure, useful for debugging
48746# configure, is in config.log if it exists.
48747
48748debug=false
48749ac_cs_recheck=false
48750ac_cs_silent=false
48751SHELL=\${CONFIG_SHELL-$SHELL}
48752_ACEOF
48753
48754cat >>$CONFIG_STATUS <<\_ACEOF
48755## --------------------- ##
48756## M4sh Initialization. ##
48757## --------------------- ##
48758
48759# Be Bourne compatible
48760if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48761 emulate sh
48762 NULLCMD=:
48763 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48764 # is contrary to our usage. Disable this feature.
48765 alias -g '${1+"$@"}'='"$@"'
48766elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48767 set -o posix
48768fi
ac1cb8d3 48769DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48770
48771# Support unset when possible.
ac1cb8d3 48772if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48773 as_unset=unset
48774else
48775 as_unset=false
48776fi
48777
48778
48779# Work around bugs in pre-3.0 UWIN ksh.
48780$as_unset ENV MAIL MAILPATH
48781PS1='$ '
48782PS2='> '
48783PS4='+ '
48784
48785# NLS nuisances.
48786for as_var in \
48787 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48788 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48789 LC_TELEPHONE LC_TIME
48790do
ac1cb8d3 48791 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48792 eval $as_var=C; export $as_var
48793 else
48794 $as_unset $as_var
48795 fi
48796done
48797
48798# Required to use basename.
48799if expr a : '\(a\)' >/dev/null 2>&1; then
48800 as_expr=expr
48801else
48802 as_expr=false
48803fi
48804
48805if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48806 as_basename=basename
48807else
48808 as_basename=false
48809fi
48810
48811
48812# Name of the executable.
48813as_me=`$as_basename "$0" ||
48814$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48815 X"$0" : 'X\(//\)$' \| \
48816 X"$0" : 'X\(/\)$' \| \
48817 . : '\(.\)' 2>/dev/null ||
48818echo X/"$0" |
48819 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48820 /^X\/\(\/\/\)$/{ s//\1/; q; }
48821 /^X\/\(\/\).*/{ s//\1/; q; }
48822 s/.*/./; q'`
48823
48824
48825# PATH needs CR, and LINENO needs CR and PATH.
48826# Avoid depending upon Character Ranges.
48827as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48828as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48829as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48830as_cr_digits='0123456789'
48831as_cr_alnum=$as_cr_Letters$as_cr_digits
48832
48833# The user is always right.
48834if test "${PATH_SEPARATOR+set}" != set; then
48835 echo "#! /bin/sh" >conf$$.sh
48836 echo "exit 0" >>conf$$.sh
48837 chmod +x conf$$.sh
48838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48839 PATH_SEPARATOR=';'
48840 else
48841 PATH_SEPARATOR=:
48842 fi
48843 rm -f conf$$.sh
48844fi
48845
48846
48847 as_lineno_1=$LINENO
48848 as_lineno_2=$LINENO
48849 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48850 test "x$as_lineno_1" != "x$as_lineno_2" &&
48851 test "x$as_lineno_3" = "x$as_lineno_2" || {
48852 # Find who we are. Look in the path if we contain no path at all
48853 # relative or not.
48854 case $0 in
48855 *[\\/]* ) as_myself=$0 ;;
48856 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48857for as_dir in $PATH
48858do
48859 IFS=$as_save_IFS
48860 test -z "$as_dir" && as_dir=.
48861 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48862done
48863
48864 ;;
48865 esac
48866 # We did not find ourselves, most probably we were run as `sh COMMAND'
48867 # in which case we are not to be found in the path.
48868 if test "x$as_myself" = x; then
48869 as_myself=$0
48870 fi
48871 if test ! -f "$as_myself"; then
48872 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48873echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48874 { (exit 1); exit 1; }; }
48875 fi
48876 case $CONFIG_SHELL in
48877 '')
48878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48879for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48880do
48881 IFS=$as_save_IFS
48882 test -z "$as_dir" && as_dir=.
48883 for as_base in sh bash ksh sh5; do
48884 case $as_dir in
48885 /*)
48886 if ("$as_dir/$as_base" -c '
48887 as_lineno_1=$LINENO
48888 as_lineno_2=$LINENO
48889 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48890 test "x$as_lineno_1" != "x$as_lineno_2" &&
48891 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48892 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48893 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48894 CONFIG_SHELL=$as_dir/$as_base
48895 export CONFIG_SHELL
48896 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48897 fi;;
48898 esac
48899 done
48900done
48901;;
48902 esac
48903
48904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48905 # uniformly replaced by the line number. The first 'sed' inserts a
48906 # line-number line before each line; the second 'sed' does the real
48907 # work. The second script uses 'N' to pair each line-number line
48908 # with the numbered line, and appends trailing '-' during
48909 # substitution so that $LINENO is not a special case at line end.
48910 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48911 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48912 sed '=' <$as_myself |
48913 sed '
48914 N
48915 s,$,-,
48916 : loop
48917 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48918 t loop
48919 s,-$,,
48920 s,^['$as_cr_digits']*\n,,
48921 ' >$as_me.lineno &&
48922 chmod +x $as_me.lineno ||
48923 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48924echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48925 { (exit 1); exit 1; }; }
48926
48927 # Don't try to exec as it changes $[0], causing all sort of problems
48928 # (the dirname of $[0] is not the place where we might find the
48929 # original and so on. Autoconf is especially sensible to this).
48930 . ./$as_me.lineno
48931 # Exit status is that of the last command.
48932 exit
48933}
48934
48935
48936case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48937 *c*,-n*) ECHO_N= ECHO_C='
48938' ECHO_T=' ' ;;
48939 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48940 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48941esac
48942
48943if expr a : '\(a\)' >/dev/null 2>&1; then
48944 as_expr=expr
48945else
48946 as_expr=false
48947fi
48948
48949rm -f conf$$ conf$$.exe conf$$.file
48950echo >conf$$.file
48951if ln -s conf$$.file conf$$ 2>/dev/null; then
48952 # We could just check for DJGPP; but this test a) works b) is more generic
48953 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48954 if test -f conf$$.exe; then
48955 # Don't use ln at all; we don't have any links
48956 as_ln_s='cp -p'
48957 else
48958 as_ln_s='ln -s'
48959 fi
48960elif ln conf$$.file conf$$ 2>/dev/null; then
48961 as_ln_s=ln
48962else
48963 as_ln_s='cp -p'
48964fi
48965rm -f conf$$ conf$$.exe conf$$.file
48966
48967if mkdir -p . 2>/dev/null; then
48968 as_mkdir_p=:
48969else
ac1cb8d3 48970 test -d ./-p && rmdir ./-p
a848cd7e
SC
48971 as_mkdir_p=false
48972fi
48973
48974as_executable_p="test -f"
48975
48976# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48977as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48978
48979# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48980as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48981
48982
48983# IFS
48984# We need space, tab and new line, in precisely that order.
48985as_nl='
48986'
48987IFS=" $as_nl"
48988
48989# CDPATH.
48990$as_unset CDPATH
48991
48992exec 6>&1
48993
48994# Open the log real soon, to keep \$[0] and so on meaningful, and to
48995# report actual input values of CONFIG_FILES etc. instead of their
48996# values after options handling. Logging --version etc. is OK.
48997exec 5>>config.log
48998{
48999 echo
49000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49001## Running $as_me. ##
49002_ASBOX
49003} >&5
49004cat >&5 <<_CSEOF
49005
dd8df4fc 49006This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 49007generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
49008
49009 CONFIG_FILES = $CONFIG_FILES
49010 CONFIG_HEADERS = $CONFIG_HEADERS
49011 CONFIG_LINKS = $CONFIG_LINKS
49012 CONFIG_COMMANDS = $CONFIG_COMMANDS
49013 $ $0 $@
49014
49015_CSEOF
49016echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49017echo >&5
49018_ACEOF
49019
49020# Files that config.status was made for.
49021if test -n "$ac_config_files"; then
49022 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49023fi
49024
49025if test -n "$ac_config_headers"; then
49026 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49027fi
49028
49029if test -n "$ac_config_links"; then
49030 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49031fi
49032
49033if test -n "$ac_config_commands"; then
49034 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49035fi
49036
49037cat >>$CONFIG_STATUS <<\_ACEOF
49038
49039ac_cs_usage="\
49040\`$as_me' instantiates files from templates according to the
49041current configuration.
49042
49043Usage: $0 [OPTIONS] [FILE]...
49044
49045 -h, --help print this help, then exit
49046 -V, --version print version number, then exit
49047 -q, --quiet do not print progress messages
49048 -d, --debug don't remove temporary files
49049 --recheck update $as_me by reconfiguring in the same conditions
49050 --file=FILE[:TEMPLATE]
ac1cb8d3 49051 instantiate the configuration file FILE
a848cd7e 49052 --header=FILE[:TEMPLATE]
ac1cb8d3 49053 instantiate the configuration header FILE
a848cd7e
SC
49054
49055Configuration files:
49056$config_files
49057
49058Configuration headers:
49059$config_headers
49060
49061Configuration commands:
49062$config_commands
49063
49064Report bugs to <bug-autoconf@gnu.org>."
49065_ACEOF
49066
49067cat >>$CONFIG_STATUS <<_ACEOF
49068ac_cs_version="\\
dd8df4fc 49069wxWidgets config.status 2.7.0
ac1cb8d3 49070configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
49071 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49072
ac1cb8d3 49073Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
49074This config.status script is free software; the Free Software Foundation
49075gives unlimited permission to copy, distribute and modify it."
49076srcdir=$srcdir
49077INSTALL="$INSTALL"
49078_ACEOF
49079
49080cat >>$CONFIG_STATUS <<\_ACEOF
49081# If no file are specified by the user, then we need to provide default
49082# value. By we need to know if files were specified by the user.
49083ac_need_defaults=:
49084while test $# != 0
49085do
49086 case $1 in
49087 --*=*)
49088 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49089 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49090 ac_shift=:
49091 ;;
49092 -*)
49093 ac_option=$1
49094 ac_optarg=$2
49095 ac_shift=shift
49096 ;;
49097 *) # This is not an option, so the user has probably given explicit
49098 # arguments.
49099 ac_option=$1
49100 ac_need_defaults=false;;
49101 esac
49102
49103 case $ac_option in
49104 # Handling of the options.
49105_ACEOF
49106cat >>$CONFIG_STATUS <<\_ACEOF
49107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49108 ac_cs_recheck=: ;;
49109 --version | --vers* | -V )
49110 echo "$ac_cs_version"; exit 0 ;;
49111 --he | --h)
49112 # Conflict between --help and --header
49113 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49114Try \`$0 --help' for more information." >&5
49115echo "$as_me: error: ambiguous option: $1
49116Try \`$0 --help' for more information." >&2;}
49117 { (exit 1); exit 1; }; };;
49118 --help | --hel | -h )
49119 echo "$ac_cs_usage"; exit 0 ;;
49120 --debug | --d* | -d )
49121 debug=: ;;
49122 --file | --fil | --fi | --f )
49123 $ac_shift
49124 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49125 ac_need_defaults=false;;
49126 --header | --heade | --head | --hea )
49127 $ac_shift
49128 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49129 ac_need_defaults=false;;
49130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49132 ac_cs_silent=: ;;
49133
49134 # This is an error.
49135 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49136Try \`$0 --help' for more information." >&5
49137echo "$as_me: error: unrecognized option: $1
49138Try \`$0 --help' for more information." >&2;}
49139 { (exit 1); exit 1; }; } ;;
49140
49141 *) ac_config_targets="$ac_config_targets $1" ;;
49142
49143 esac
49144 shift
49145done
49146
49147ac_configure_extra_args=
49148
49149if $ac_cs_silent; then
49150 exec 6>/dev/null
49151 ac_configure_extra_args="$ac_configure_extra_args --silent"
49152fi
49153
49154_ACEOF
49155cat >>$CONFIG_STATUS <<_ACEOF
49156if \$ac_cs_recheck; then
49157 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49158 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49159fi
49160
49161_ACEOF
49162
49163cat >>$CONFIG_STATUS <<_ACEOF
49164#
49165# INIT-COMMANDS section.
49166#
49167
5c60e845
MW
49168
49169 CPP="$CPP"
49170 infile="$srcdir/include/wx/msw/genrcdefs.h"
49171 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49172
49173
ceec2216
RL
49174 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49175 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49176 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49177 LN_S="${LN_S}"
a848cd7e
SC
49178
49179
49180_ACEOF
49181
49182
49183
49184cat >>$CONFIG_STATUS <<\_ACEOF
49185for ac_config_target in $ac_config_targets
49186do
49187 case "$ac_config_target" in
49188 # Handling of arguments.
ceec2216
RL
49189 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49190 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49191 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49192 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49193 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49194 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49195 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49196 "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
49197 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49198echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49199 { (exit 1); exit 1; }; };;
49200 esac
49201done
49202
49203# If the user did not use the arguments to specify the items to instantiate,
49204# then the envvar interface is used. Set only those that are not.
49205# We use the long form for the default assignment because of an extremely
49206# bizarre bug on SunOS 4.1.3.
49207if $ac_need_defaults; then
49208 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49209 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49210 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49211fi
49212
49213# Have a temporary directory for convenience. Make it in the build tree
49214# simply because there is no reason to put it here, and in addition,
49215# creating and moving files from /tmp can sometimes cause problems.
49216# Create a temporary directory, and hook for its removal unless debugging.
49217$debug ||
49218{
49219 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49220 trap '{ (exit 1); exit 1; }' 1 2 13 15
49221}
49222
49223# Create a (secure) tmp directory for tmp files.
49224
49225{
49226 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49227 test -n "$tmp" && test -d "$tmp"
49228} ||
49229{
49230 tmp=./confstat$$-$RANDOM
49231 (umask 077 && mkdir $tmp)
49232} ||
49233{
49234 echo "$me: cannot create a temporary directory in ." >&2
49235 { (exit 1); exit 1; }
49236}
49237
49238_ACEOF
49239
49240cat >>$CONFIG_STATUS <<_ACEOF
49241
49242#
49243# CONFIG_FILES section.
49244#
49245
49246# No need to generate the scripts if there are no CONFIG_FILES.
49247# This happens for instance when ./config.status config.h
49248if test -n "\$CONFIG_FILES"; then
49249 # Protect against being on the right side of a sed subst in config.status.
49250 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49251 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49252s,@SHELL@,$SHELL,;t t
49253s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49254s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49255s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49256s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49257s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49258s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49259s,@exec_prefix@,$exec_prefix,;t t
49260s,@prefix@,$prefix,;t t
49261s,@program_transform_name@,$program_transform_name,;t t
49262s,@bindir@,$bindir,;t t
49263s,@sbindir@,$sbindir,;t t
49264s,@libexecdir@,$libexecdir,;t t
49265s,@datadir@,$datadir,;t t
49266s,@sysconfdir@,$sysconfdir,;t t
49267s,@sharedstatedir@,$sharedstatedir,;t t
49268s,@localstatedir@,$localstatedir,;t t
49269s,@libdir@,$libdir,;t t
49270s,@includedir@,$includedir,;t t
49271s,@oldincludedir@,$oldincludedir,;t t
49272s,@infodir@,$infodir,;t t
49273s,@mandir@,$mandir,;t t
49274s,@build_alias@,$build_alias,;t t
49275s,@host_alias@,$host_alias,;t t
49276s,@target_alias@,$target_alias,;t t
49277s,@DEFS@,$DEFS,;t t
49278s,@ECHO_C@,$ECHO_C,;t t
49279s,@ECHO_N@,$ECHO_N,;t t
49280s,@ECHO_T@,$ECHO_T,;t t
49281s,@LIBS@,$LIBS,;t t
49282s,@build@,$build,;t t
49283s,@build_cpu@,$build_cpu,;t t
49284s,@build_vendor@,$build_vendor,;t t
49285s,@build_os@,$build_os,;t t
49286s,@host@,$host,;t t
49287s,@host_cpu@,$host_cpu,;t t
49288s,@host_vendor@,$host_vendor,;t t
49289s,@host_os@,$host_os,;t t
49290s,@target@,$target,;t t
49291s,@target_cpu@,$target_cpu,;t t
49292s,@target_vendor@,$target_vendor,;t t
49293s,@target_os@,$target_os,;t t
49294s,@CC@,$CC,;t t
49295s,@CFLAGS@,$CFLAGS,;t t
49296s,@LDFLAGS@,$LDFLAGS,;t t
49297s,@CPPFLAGS@,$CPPFLAGS,;t t
49298s,@ac_ct_CC@,$ac_ct_CC,;t t
49299s,@EXEEXT@,$EXEEXT,;t t
49300s,@OBJEXT@,$OBJEXT,;t t
49301s,@CPP@,$CPP,;t t
49302s,@EGREP@,$EGREP,;t t
49303s,@CXX@,$CXX,;t t
49304s,@CXXFLAGS@,$CXXFLAGS,;t t
49305s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49306s,@RANLIB@,$RANLIB,;t t
49307s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49308s,@AR@,$AR,;t t
8c80d384 49309s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49310s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49311s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49312s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49313s,@STRIP@,$STRIP,;t t
8c80d384 49314s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49315s,@WINDRES@,$WINDRES,;t t
49316s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49317s,@DLLTOOL@,$DLLTOOL,;t t
49318s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49319s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49320s,@LN_S@,$LN_S,;t t
49321s,@CXXCPP@,$CXXCPP,;t t
49322s,@subdirs@,$subdirs,;t t
49323s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49324s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49325s,@GTK_LIBS@,$GTK_LIBS,;t t
49326s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49327s,@X_CFLAGS@,$X_CFLAGS,;t t
49328s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49329s,@X_LIBS@,$X_LIBS,;t t
49330s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49331s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49332s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49333s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49334s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49335s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49336s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49337s,@REZ@,$REZ,;t t
a848cd7e
SC
49338s,@DEREZ@,$DEREZ,;t t
49339s,@SETFILE@,$SETFILE,;t t
49340s,@LIBICONV@,$LIBICONV,;t t
49341s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49342s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49343s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49344s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49345s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49346s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49347s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49348s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49349s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49350s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49351s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49352s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49353s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49354s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49355s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49356s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49357s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49358s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49359s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49360s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49361s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49362s,@VENDOR@,$VENDOR,;t t
49363s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49364s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49365s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49366s,@WXUNIV@,$WXUNIV,;t t
49367s,@MONOLITHIC@,$MONOLITHIC,;t t
49368s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49369s,@EXTRALIBS@,$EXTRALIBS,;t t
49370s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49371s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49372s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49373s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49374s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49375s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49376s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49377s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49378s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49379s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49380s,@UNICODE@,$UNICODE,;t t
49381s,@BUILD@,$BUILD,;t t
49382s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49383s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49384s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49385s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49386s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49387s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49388s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49389s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49390s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49391s,@SET_MAKE@,$SET_MAKE,;t t
49392s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49393s,@NM@,$NM,;t t
49394s,@ac_ct_NM@,$ac_ct_NM,;t t
49395s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49396s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49397s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49398s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49399s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49400s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49401s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49402s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49403s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49404s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49405s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49406s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49407s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49408s,@LIBPREFIX@,$LIBPREFIX,;t t
49409s,@LIBEXT@,$LIBEXT,;t t
49410s,@DLLPREFIX@,$DLLPREFIX,;t t
49411s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49412s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49413s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49414s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49415s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49416s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49417s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49418s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49419s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49420s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49421s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49422s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49423s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49424s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49425s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49426s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49427s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49428s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49429s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49430s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49431s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49432s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49433s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49434s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49435s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49436s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49437s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49438s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49439s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49440s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49441s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49442s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49443s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49444s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49445s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49446s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49447s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49448s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49449s,@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 49450s,@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 49451s,@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 49452s,@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 49453s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49454s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49455s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49456s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49457s,@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 49458s,@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 49459s,@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 49460s,@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 49461s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49462s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49463s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49464s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49465s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49466s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49467s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49468s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49469s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49470s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49471s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49472s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49473s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49474s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49475s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49476s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49477s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49478s,@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
49479s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49480s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49481s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49482s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49483s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49484s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49485s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49486s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49487s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49488s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49489s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49490s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49491s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49492s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49493s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49494s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49495s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49496s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49497s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49498s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49499s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49500s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49501s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49502s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49503s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49504s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49505s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49506s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49507s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49508s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49509s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49510s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49511s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49512s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49513s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49514s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49515s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49516s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49517s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49518s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49519s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49520s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49521s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49522s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49523s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49524s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49525s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49526s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49527s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49528s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49529s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49530s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49531s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49532s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49533s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49534s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49535s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49536s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49537s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49538s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49539s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49540s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49541s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49542s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49543s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49544s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49545s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49546s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49547s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49548s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49549s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49550s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49551s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49552s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49553s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49554s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 49555s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 49556s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49557s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49558s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49559s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49560s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49561s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49562s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49563s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49564s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49565s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49566s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49567s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49568s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49569s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49570s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49571s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49572s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49573s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49574s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49575s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49576s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49577s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49578s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49579s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49580s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49581s,@USE_GUI@,$USE_GUI,;t t
49582s,@AFMINSTALL@,$AFMINSTALL,;t t
49583s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49584s,@TOOLKIT@,$TOOLKIT,;t t
49585s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49586s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49587s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49588s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49589s,@WIDGET_SET@,$WIDGET_SET,;t t
49590s,@WX_RELEASE@,$WX_RELEASE,;t t
49591s,@WX_VERSION@,$WX_VERSION,;t t
49592s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49593s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49594s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49595s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49596s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49597s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49598s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49599s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49600s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49601s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49602s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49603s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49604s,@DISTDIR@,$DISTDIR,;t t
49605s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49606s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49607s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49608s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49609s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49610s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49611s,@RESFLAGS@,$RESFLAGS,;t t
49612s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49613s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49614s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49615s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49616s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49617s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49618s,@GCC@,$GCC,;t t
a848cd7e
SC
49619s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49620s,@LIBOBJS@,$LIBOBJS,;t t
49621s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49622CEOF
49623
49624_ACEOF
49625
49626 cat >>$CONFIG_STATUS <<\_ACEOF
49627 # Split the substitutions into bite-sized pieces for seds with
49628 # small command number limits, like on Digital OSF/1 and HP-UX.
49629 ac_max_sed_lines=48
49630 ac_sed_frag=1 # Number of current file.
49631 ac_beg=1 # First line for current file.
49632 ac_end=$ac_max_sed_lines # Line after last line for current file.
49633 ac_more_lines=:
49634 ac_sed_cmds=
49635 while $ac_more_lines; do
49636 if test $ac_beg -gt 1; then
49637 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49638 else
49639 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49640 fi
49641 if test ! -s $tmp/subs.frag; then
49642 ac_more_lines=false
49643 else
49644 # The purpose of the label and of the branching condition is to
49645 # speed up the sed processing (if there are no `@' at all, there
49646 # is no need to browse any of the substitutions).
49647 # These are the two extra sed commands mentioned above.
49648 (echo ':t
49649 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49650 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49651 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49652 else
ac1cb8d3 49653 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49654 fi
49655 ac_sed_frag=`expr $ac_sed_frag + 1`
49656 ac_beg=$ac_end
49657 ac_end=`expr $ac_end + $ac_max_sed_lines`
49658 fi
49659 done
49660 if test -z "$ac_sed_cmds"; then
49661 ac_sed_cmds=cat
49662 fi
49663fi # test -n "$CONFIG_FILES"
49664
49665_ACEOF
49666cat >>$CONFIG_STATUS <<\_ACEOF
49667for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49668 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49669 case $ac_file in
49670 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49671 cat >$tmp/stdin
49672 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49673 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49674 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49675 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49676 * ) ac_file_in=$ac_file.in ;;
49677 esac
49678
49679 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49680 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49681$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49682 X"$ac_file" : 'X\(//\)[^/]' \| \
49683 X"$ac_file" : 'X\(//\)$' \| \
49684 X"$ac_file" : 'X\(/\)' \| \
49685 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49686echo X"$ac_file" |
49687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49689 /^X\(\/\/\)$/{ s//\1/; q; }
49690 /^X\(\/\).*/{ s//\1/; q; }
49691 s/.*/./; q'`
49692 { if $as_mkdir_p; then
49693 mkdir -p "$ac_dir"
49694 else
49695 as_dir="$ac_dir"
49696 as_dirs=
49697 while test ! -d "$as_dir"; do
49698 as_dirs="$as_dir $as_dirs"
49699 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49700$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49701 X"$as_dir" : 'X\(//\)[^/]' \| \
49702 X"$as_dir" : 'X\(//\)$' \| \
49703 X"$as_dir" : 'X\(/\)' \| \
49704 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49705echo X"$as_dir" |
49706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49708 /^X\(\/\/\)$/{ s//\1/; q; }
49709 /^X\(\/\).*/{ s//\1/; q; }
49710 s/.*/./; q'`
49711 done
49712 test ! -n "$as_dirs" || mkdir $as_dirs
49713 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49714echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49715 { (exit 1); exit 1; }; }; }
49716
49717 ac_builddir=.
49718
49719if test "$ac_dir" != .; then
49720 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49721 # A "../" for each directory in $ac_dir_suffix.
49722 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49723else
49724 ac_dir_suffix= ac_top_builddir=
49725fi
49726
49727case $srcdir in
49728 .) # No --srcdir option. We are building in place.
49729 ac_srcdir=.
49730 if test -z "$ac_top_builddir"; then
49731 ac_top_srcdir=.
49732 else
49733 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49734 fi ;;
49735 [\\/]* | ?:[\\/]* ) # Absolute path.
49736 ac_srcdir=$srcdir$ac_dir_suffix;
49737 ac_top_srcdir=$srcdir ;;
49738 *) # Relative path.
49739 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49740 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49741esac
ac1cb8d3
VS
49742
49743# Do not use `cd foo && pwd` to compute absolute paths, because
49744# the directories may not exist.
49745case `pwd` in
49746.) ac_abs_builddir="$ac_dir";;
49747*)
49748 case "$ac_dir" in
49749 .) ac_abs_builddir=`pwd`;;
49750 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49751 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49752 esac;;
49753esac
49754case $ac_abs_builddir in
49755.) ac_abs_top_builddir=${ac_top_builddir}.;;
49756*)
49757 case ${ac_top_builddir}. in
49758 .) ac_abs_top_builddir=$ac_abs_builddir;;
49759 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49760 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49761 esac;;
49762esac
49763case $ac_abs_builddir in
49764.) ac_abs_srcdir=$ac_srcdir;;
49765*)
49766 case $ac_srcdir in
49767 .) ac_abs_srcdir=$ac_abs_builddir;;
49768 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49769 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49770 esac;;
49771esac
49772case $ac_abs_builddir in
49773.) ac_abs_top_srcdir=$ac_top_srcdir;;
49774*)
49775 case $ac_top_srcdir in
49776 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49777 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49778 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49779 esac;;
49780esac
a848cd7e
SC
49781
49782
49783 case $INSTALL in
49784 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49785 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49786 esac
49787
d25774ab
JS
49788 if test x"$ac_file" != x-; then
49789 { echo "$as_me:$LINENO: creating $ac_file" >&5
49790echo "$as_me: creating $ac_file" >&6;}
49791 rm -f "$ac_file"
49792 fi
a848cd7e
SC
49793 # Let's still pretend it is `configure' which instantiates (i.e., don't
49794 # use $as_me), people would be surprised to read:
49795 # /* config.h. Generated by config.status. */
49796 if test x"$ac_file" = x-; then
49797 configure_input=
49798 else
49799 configure_input="$ac_file. "
49800 fi
49801 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49802 sed 's,.*/,,'` by configure."
a848cd7e
SC
49803
49804 # First look for the input files in the build tree, otherwise in the
49805 # src tree.
49806 ac_file_inputs=`IFS=:
49807 for f in $ac_file_in; do
49808 case $f in
49809 -) echo $tmp/stdin ;;
49810 [\\/$]*)
ac1cb8d3
VS
49811 # Absolute (can't be DOS-style, as IFS=:)
49812 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49813echo "$as_me: error: cannot find input file: $f" >&2;}
49814 { (exit 1); exit 1; }; }
ac1cb8d3 49815 echo "$f";;
a848cd7e 49816 *) # Relative
ac1cb8d3
VS
49817 if test -f "$f"; then
49818 # Build tree
49819 echo "$f"
49820 elif test -f "$srcdir/$f"; then
49821 # Source tree
49822 echo "$srcdir/$f"
49823 else
49824 # /dev/null tree
49825 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49826echo "$as_me: error: cannot find input file: $f" >&2;}
49827 { (exit 1); exit 1; }; }
ac1cb8d3 49828 fi;;
a848cd7e
SC
49829 esac
49830 done` || { (exit 1); exit 1; }
49831_ACEOF
49832cat >>$CONFIG_STATUS <<_ACEOF
49833 sed "$ac_vpsub
49834$extrasub
49835_ACEOF
49836cat >>$CONFIG_STATUS <<\_ACEOF
49837:t
49838/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49839s,@configure_input@,$configure_input,;t t
49840s,@srcdir@,$ac_srcdir,;t t
49841s,@abs_srcdir@,$ac_abs_srcdir,;t t
49842s,@top_srcdir@,$ac_top_srcdir,;t t
49843s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49844s,@builddir@,$ac_builddir,;t t
49845s,@abs_builddir@,$ac_abs_builddir,;t t
49846s,@top_builddir@,$ac_top_builddir,;t t
49847s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49848s,@INSTALL@,$ac_INSTALL,;t t
49849" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49850 rm -f $tmp/stdin
49851 if test x"$ac_file" != x-; then
49852 mv $tmp/out $ac_file
49853 else
49854 cat $tmp/out
49855 rm -f $tmp/out
49856 fi
49857
ceec2216
RL
49858 # Run the commands associated with the file.
49859 case $ac_file in
49860 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49861 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49862 esac
a848cd7e
SC
49863done
49864_ACEOF
49865cat >>$CONFIG_STATUS <<\_ACEOF
49866
49867#
49868# CONFIG_HEADER section.
49869#
49870
49871# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49872# NAME is the cpp macro being defined and VALUE is the value it is being given.
49873#
49874# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49875ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49876ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49877ac_dC=' '
49878ac_dD=',;t'
49879# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49880ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49881ac_uB='$,\1#\2define\3'
49882ac_uC=' '
49883ac_uD=',;t'
49884
49885for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49886 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49887 case $ac_file in
49888 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49889 cat >$tmp/stdin
49890 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49891 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49892 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49893 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49894 * ) ac_file_in=$ac_file.in ;;
49895 esac
49896
49897 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49898echo "$as_me: creating $ac_file" >&6;}
49899
49900 # First look for the input files in the build tree, otherwise in the
49901 # src tree.
49902 ac_file_inputs=`IFS=:
49903 for f in $ac_file_in; do
49904 case $f in
49905 -) echo $tmp/stdin ;;
49906 [\\/$]*)
ac1cb8d3
VS
49907 # Absolute (can't be DOS-style, as IFS=:)
49908 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49909echo "$as_me: error: cannot find input file: $f" >&2;}
49910 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49911 # Do quote $f, to prevent DOS paths from being IFS'd.
49912 echo "$f";;
a848cd7e 49913 *) # Relative
ac1cb8d3
VS
49914 if test -f "$f"; then
49915 # Build tree
49916 echo "$f"
49917 elif test -f "$srcdir/$f"; then
49918 # Source tree
49919 echo "$srcdir/$f"
49920 else
49921 # /dev/null tree
49922 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49923echo "$as_me: error: cannot find input file: $f" >&2;}
49924 { (exit 1); exit 1; }; }
ac1cb8d3 49925 fi;;
a848cd7e
SC
49926 esac
49927 done` || { (exit 1); exit 1; }
49928 # Remove the trailing spaces.
ac1cb8d3 49929 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49930
49931_ACEOF
49932
49933# Transform confdefs.h into two sed scripts, `conftest.defines' and
49934# `conftest.undefs', that substitutes the proper values into
49935# config.h.in to produce config.h. The first handles `#define'
49936# templates, and the second `#undef' templates.
49937# And first: Protect against being on the right side of a sed subst in
49938# config.status. Protect against being in an unquoted here document
49939# in config.status.
49940rm -f conftest.defines conftest.undefs
49941# Using a here document instead of a string reduces the quoting nightmare.
49942# Putting comments in sed scripts is not portable.
49943#
49944# `end' is used to avoid that the second main sed command (meant for
49945# 0-ary CPP macros) applies to n-ary macro definitions.
49946# See the Autoconf documentation for `clear'.
49947cat >confdef2sed.sed <<\_ACEOF
49948s/[\\&,]/\\&/g
49949s,[\\$`],\\&,g
49950t clear
49951: clear
ac1cb8d3 49952s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49953t end
ac1cb8d3 49954s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49955: end
49956_ACEOF
49957# If some macros were called several times there might be several times
49958# the same #defines, which is useless. Nevertheless, we may not want to
49959# sort them, since we want the *last* AC-DEFINE to be honored.
49960uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49961sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49962rm -f confdef2sed.sed
49963
49964# This sed command replaces #undef with comments. This is necessary, for
49965# example, in the case of _POSIX_SOURCE, which is predefined and required
49966# on some systems where configure will not decide to define it.
49967cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49968s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49969_ACEOF
49970
49971# Break up conftest.defines because some shells have a limit on the size
49972# of here documents, and old seds have small limits too (100 cmds).
49973echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49974echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49975echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49976echo ' :' >>$CONFIG_STATUS
49977rm -f conftest.tail
49978while grep . conftest.defines >/dev/null
49979do
49980 # Write a limited-size here document to $tmp/defines.sed.
49981 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49982 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49983 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49984 # Work around the forget-to-reset-the-flag bug.
49985 echo 't clr' >>$CONFIG_STATUS
49986 echo ': clr' >>$CONFIG_STATUS
49987 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49988 echo 'CEOF
49989 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49990 rm -f $tmp/in
49991 mv $tmp/out $tmp/in
49992' >>$CONFIG_STATUS
49993 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49994 rm -f conftest.defines
49995 mv conftest.tail conftest.defines
49996done
49997rm -f conftest.defines
49998echo ' fi # grep' >>$CONFIG_STATUS
49999echo >>$CONFIG_STATUS
50000
50001# Break up conftest.undefs because some shells have a limit on the size
50002# of here documents, and old seds have small limits too (100 cmds).
50003echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50004rm -f conftest.tail
50005while grep . conftest.undefs >/dev/null
50006do
50007 # Write a limited-size here document to $tmp/undefs.sed.
50008 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50009 # Speed up: don't consider the non `#undef'
ac1cb8d3 50010 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
50011 # Work around the forget-to-reset-the-flag bug.
50012 echo 't clr' >>$CONFIG_STATUS
50013 echo ': clr' >>$CONFIG_STATUS
50014 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50015 echo 'CEOF
50016 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50017 rm -f $tmp/in
50018 mv $tmp/out $tmp/in
50019' >>$CONFIG_STATUS
50020 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50021 rm -f conftest.undefs
50022 mv conftest.tail conftest.undefs
50023done
50024rm -f conftest.undefs
50025
50026cat >>$CONFIG_STATUS <<\_ACEOF
50027 # Let's still pretend it is `configure' which instantiates (i.e., don't
50028 # use $as_me), people would be surprised to read:
50029 # /* config.h. Generated by config.status. */
50030 if test x"$ac_file" = x-; then
50031 echo "/* Generated by configure. */" >$tmp/config.h
50032 else
50033 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50034 fi
50035 cat $tmp/in >>$tmp/config.h
50036 rm -f $tmp/in
50037 if test x"$ac_file" != x-; then
50038 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50039 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50040echo "$as_me: $ac_file is unchanged" >&6;}
50041 else
50042 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50043$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50044 X"$ac_file" : 'X\(//\)[^/]' \| \
50045 X"$ac_file" : 'X\(//\)$' \| \
50046 X"$ac_file" : 'X\(/\)' \| \
50047 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50048echo X"$ac_file" |
50049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50051 /^X\(\/\/\)$/{ s//\1/; q; }
50052 /^X\(\/\).*/{ s//\1/; q; }
50053 s/.*/./; q'`
50054 { if $as_mkdir_p; then
50055 mkdir -p "$ac_dir"
50056 else
50057 as_dir="$ac_dir"
50058 as_dirs=
50059 while test ! -d "$as_dir"; do
50060 as_dirs="$as_dir $as_dirs"
50061 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50062$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50063 X"$as_dir" : 'X\(//\)[^/]' \| \
50064 X"$as_dir" : 'X\(//\)$' \| \
50065 X"$as_dir" : 'X\(/\)' \| \
50066 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50067echo X"$as_dir" |
50068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50070 /^X\(\/\/\)$/{ s//\1/; q; }
50071 /^X\(\/\).*/{ s//\1/; q; }
50072 s/.*/./; q'`
50073 done
50074 test ! -n "$as_dirs" || mkdir $as_dirs
50075 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50076echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50077 { (exit 1); exit 1; }; }; }
50078
50079 rm -f $ac_file
50080 mv $tmp/config.h $ac_file
50081 fi
50082 else
50083 cat $tmp/config.h
50084 rm -f $tmp/config.h
50085 fi
50086done
50087_ACEOF
50088cat >>$CONFIG_STATUS <<\_ACEOF
50089
50090#
50091# CONFIG_COMMANDS section.
50092#
50093for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50094 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50095 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50096 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50097$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50098 X"$ac_dest" : 'X\(//\)[^/]' \| \
50099 X"$ac_dest" : 'X\(//\)$' \| \
50100 X"$ac_dest" : 'X\(/\)' \| \
50101 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50102echo X"$ac_dest" |
50103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50105 /^X\(\/\/\)$/{ s//\1/; q; }
50106 /^X\(\/\).*/{ s//\1/; q; }
50107 s/.*/./; q'`
ac1cb8d3
VS
50108 { if $as_mkdir_p; then
50109 mkdir -p "$ac_dir"
50110 else
50111 as_dir="$ac_dir"
50112 as_dirs=
50113 while test ! -d "$as_dir"; do
50114 as_dirs="$as_dir $as_dirs"
50115 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50116$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50117 X"$as_dir" : 'X\(//\)[^/]' \| \
50118 X"$as_dir" : 'X\(//\)$' \| \
50119 X"$as_dir" : 'X\(/\)' \| \
50120 . : '\(.\)' 2>/dev/null ||
50121echo X"$as_dir" |
50122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50123 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50124 /^X\(\/\/\)$/{ s//\1/; q; }
50125 /^X\(\/\).*/{ s//\1/; q; }
50126 s/.*/./; q'`
50127 done
50128 test ! -n "$as_dirs" || mkdir $as_dirs
50129 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50130echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50131 { (exit 1); exit 1; }; }; }
50132
a848cd7e
SC
50133 ac_builddir=.
50134
50135if test "$ac_dir" != .; then
50136 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50137 # A "../" for each directory in $ac_dir_suffix.
50138 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50139else
50140 ac_dir_suffix= ac_top_builddir=
50141fi
50142
50143case $srcdir in
50144 .) # No --srcdir option. We are building in place.
50145 ac_srcdir=.
50146 if test -z "$ac_top_builddir"; then
50147 ac_top_srcdir=.
50148 else
50149 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50150 fi ;;
50151 [\\/]* | ?:[\\/]* ) # Absolute path.
50152 ac_srcdir=$srcdir$ac_dir_suffix;
50153 ac_top_srcdir=$srcdir ;;
50154 *) # Relative path.
50155 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50156 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50157esac
ac1cb8d3
VS
50158
50159# Do not use `cd foo && pwd` to compute absolute paths, because
50160# the directories may not exist.
50161case `pwd` in
50162.) ac_abs_builddir="$ac_dir";;
50163*)
50164 case "$ac_dir" in
50165 .) ac_abs_builddir=`pwd`;;
50166 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50167 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50168 esac;;
50169esac
50170case $ac_abs_builddir in
50171.) ac_abs_top_builddir=${ac_top_builddir}.;;
50172*)
50173 case ${ac_top_builddir}. in
50174 .) ac_abs_top_builddir=$ac_abs_builddir;;
50175 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50176 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50177 esac;;
50178esac
50179case $ac_abs_builddir in
50180.) ac_abs_srcdir=$ac_srcdir;;
50181*)
50182 case $ac_srcdir in
50183 .) ac_abs_srcdir=$ac_abs_builddir;;
50184 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50185 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50186 esac;;
50187esac
50188case $ac_abs_builddir in
50189.) ac_abs_top_srcdir=$ac_top_srcdir;;
50190*)
50191 case $ac_top_srcdir in
50192 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50193 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50194 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50195 esac;;
50196esac
a848cd7e
SC
50197
50198
50199 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50200echo "$as_me: executing $ac_dest commands" >&6;}
50201 case $ac_dest in
5c60e845
MW
50202 rcdefs.h )
50203 mkdir -p $outdir &&
50204 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50205 ;;
ceec2216
RL
50206 wx-config ) rm -f wx-config
50207 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50208 ;;
a848cd7e
SC
50209 esac
50210done
50211_ACEOF
50212
50213cat >>$CONFIG_STATUS <<\_ACEOF
50214
50215{ (exit 0); exit 0; }
50216_ACEOF
50217chmod +x $CONFIG_STATUS
50218ac_clean_files=$ac_clean_files_save
50219
50220
50221# configure is writing to config.log, and then calls config.status.
50222# config.status does its own redirection, appending to config.log.
50223# Unfortunately, on DOS this fails, as config.log is still kept open
50224# by configure, so config.status won't be able to write to it; its
50225# output is simply discarded. So we exec the FD to /dev/null,
50226# effectively closing config.log, so it can be properly (re)opened and
50227# appended to by config.status. When coming back to configure, we
50228# need to make the FD available again.
50229if test "$no_create" != yes; then
50230 ac_cs_success=:
50231 ac_config_status_args=
50232 test "$silent" = yes &&
50233 ac_config_status_args="$ac_config_status_args --quiet"
50234 exec 5>/dev/null
50235 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50236 exec 5>>config.log
50237 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50238 # would make configure fail if this is the last instruction.
50239 $ac_cs_success || { (exit 1); exit 1; }
50240fi
50241
50242#
50243# CONFIG_SUBDIRS section.
50244#
50245if test "$no_recursion" != yes; then
50246
50247 # Remove --cache-file and --srcdir arguments so they do not pile up.
50248 ac_sub_configure_args=
50249 ac_prev=
50250 for ac_arg in $ac_configure_args; do
50251 if test -n "$ac_prev"; then
50252 ac_prev=
50253 continue
50254 fi
50255 case $ac_arg in
50256 -cache-file | --cache-file | --cache-fil | --cache-fi \
50257 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50258 ac_prev=cache_file ;;
50259 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50260 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50261 | --c=*)
50262 ;;
50263 --config-cache | -C)
50264 ;;
50265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50266 ac_prev=srcdir ;;
50267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50268 ;;
50269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50270 ac_prev=prefix ;;
50271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50272 ;;
50273 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50274 esac
50275 done
50276
50277 # Always prepend --prefix to ensure using the same prefix
50278 # in subdir configurations.
50279 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50280
50281 ac_popdir=`pwd`
50282 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50283
50284 # Do not complain, so a configure script can configure whichever
50285 # parts of a large source tree are present.
50286 test -d $srcdir/$ac_dir || continue
50287
50288 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50289echo "$as_me: configuring in $ac_dir" >&6;}
50290 { if $as_mkdir_p; then
50291 mkdir -p "$ac_dir"
50292 else
50293 as_dir="$ac_dir"
50294 as_dirs=
50295 while test ! -d "$as_dir"; do
50296 as_dirs="$as_dir $as_dirs"
50297 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50299 X"$as_dir" : 'X\(//\)[^/]' \| \
50300 X"$as_dir" : 'X\(//\)$' \| \
50301 X"$as_dir" : 'X\(/\)' \| \
50302 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50303echo X"$as_dir" |
50304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50306 /^X\(\/\/\)$/{ s//\1/; q; }
50307 /^X\(\/\).*/{ s//\1/; q; }
50308 s/.*/./; q'`
50309 done
50310 test ! -n "$as_dirs" || mkdir $as_dirs
50311 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50312echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50313 { (exit 1); exit 1; }; }; }
50314
50315 ac_builddir=.
50316
50317if test "$ac_dir" != .; then
50318 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50319 # A "../" for each directory in $ac_dir_suffix.
50320 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50321else
50322 ac_dir_suffix= ac_top_builddir=
50323fi
50324
50325case $srcdir in
50326 .) # No --srcdir option. We are building in place.
50327 ac_srcdir=.
50328 if test -z "$ac_top_builddir"; then
50329 ac_top_srcdir=.
50330 else
50331 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50332 fi ;;
50333 [\\/]* | ?:[\\/]* ) # Absolute path.
50334 ac_srcdir=$srcdir$ac_dir_suffix;
50335 ac_top_srcdir=$srcdir ;;
50336 *) # Relative path.
50337 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50338 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50339esac
ac1cb8d3
VS
50340
50341# Do not use `cd foo && pwd` to compute absolute paths, because
50342# the directories may not exist.
50343case `pwd` in
50344.) ac_abs_builddir="$ac_dir";;
50345*)
50346 case "$ac_dir" in
50347 .) ac_abs_builddir=`pwd`;;
50348 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50349 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50350 esac;;
50351esac
50352case $ac_abs_builddir in
50353.) ac_abs_top_builddir=${ac_top_builddir}.;;
50354*)
50355 case ${ac_top_builddir}. in
50356 .) ac_abs_top_builddir=$ac_abs_builddir;;
50357 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50358 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50359 esac;;
50360esac
50361case $ac_abs_builddir in
50362.) ac_abs_srcdir=$ac_srcdir;;
50363*)
50364 case $ac_srcdir in
50365 .) ac_abs_srcdir=$ac_abs_builddir;;
50366 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50367 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50368 esac;;
50369esac
50370case $ac_abs_builddir in
50371.) ac_abs_top_srcdir=$ac_top_srcdir;;
50372*)
50373 case $ac_top_srcdir in
50374 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50375 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50376 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50377 esac;;
50378esac
a848cd7e
SC
50379
50380
50381 cd $ac_dir
50382
50383 # Check for guested configure; otherwise get Cygnus style configure.
50384 if test -f $ac_srcdir/configure.gnu; then
50385 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50386 elif test -f $ac_srcdir/configure; then
50387 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50388 elif test -f $ac_srcdir/configure.in; then
50389 ac_sub_configure=$ac_configure
50390 else
50391 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50392echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50393 ac_sub_configure=
50394 fi
50395
50396 # The recursion is here.
50397 if test -n "$ac_sub_configure"; then
50398 # Make the cache file name correct relative to the subdirectory.
50399 case $cache_file in
50400 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50401 *) # Relative path.
ac1cb8d3 50402 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50403 esac
50404
50405 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50406echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50407 # The eval makes quoting arguments work.
50408 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50409 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50410 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50411echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50412 { (exit 1); exit 1; }; }
50413 fi
50414
d25774ab 50415 cd $ac_popdir
a848cd7e
SC
50416 done
50417fi
50418
50419
50420echo
77ffb593 50421echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50422echo ""
4d4ff94c 50423echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50424echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50425
77ffb593
JS
50426echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50427echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50428echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50429
77ffb593 50430echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50431echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50432echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50433
77ffb593 50434echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50435echo " jpeg ${wxUSE_LIBJPEG-none}"
50436echo " png ${wxUSE_LIBPNG-none}"
50437echo " regex ${wxUSE_REGEX}"
50438echo " tiff ${wxUSE_LIBTIFF-none}"
50439if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50440echo " xpm ${wxUSE_LIBXPM-none}"
50441fi
50442echo " zlib ${wxUSE_ZLIB}"
50443echo " odbc ${wxUSE_ODBC}"
50444echo " expat ${wxUSE_EXPAT}"
50445echo " libmspack ${wxUSE_LIBMSPACK}"
50446echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50447echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
2b850ae1 50448echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
3565d135 50449echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50450
50451echo ""
50452