]> git.saurik.com Git - wxWidgets.git/blame - configure
only check for lib directory for architectures which have multiple ABIs (Solaris...
[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.
eb730a0c 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.2.
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'
eb730a0c
JS
273PACKAGE_VERSION='2.6.2'
274PACKAGE_STRING='wxWidgets 2.6.2'
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"
8c80d384 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 RESCOMP ac_ct_RESCOMP 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 DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT 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 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 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_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_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_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_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_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_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 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_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_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_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 WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG 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
eb730a0c 797\`configure' configures wxWidgets 2.6.2 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
eb730a0c 863 short | recursive ) echo "Configuration of wxWidgets 2.6.2:";;
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
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
38b4a946 1032 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
38b4a946 1035 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1036 --enable-palette use wxPalette class
1037 --enable-image use wxImage class
1038 --enable-gif use gif images (GIF file format)
1039 --enable-pcx use pcx images (PCX file format)
1040 --enable-iff use iff images (IFF file format)
1041 --enable-pnm use pnm images (PNM file format)
1042 --enable-xpm use xpm images (XPM file format)
1043 --enable-icocur use Windows ICO and CUR formats
77ffb593 1044 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1045 --enable-vendor=VENDOR vendor name (win32 DLL only)
1046 --disable-largefile omit support for large files
1047 --disable-gtktest do not try to compile and run a test GTK+ program
1048 --disable-gtktest Do not try to compile and run a test GTK program
1049 --disable-sdltest Do not try to compile and run a test SDL program
1050 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1051 --disable-precomp-headers
1052 don't use precompiled headers even if compiler can
a848cd7e
SC
1053
1054Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1057 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1058 --with-motif use Motif/Lesstif
1059 --with-mac use Mac OS X
1060 --with-cocoa use Cocoa
1061 --with-wine use Wine
1062 --with-msw use MS-Windows
1063 --with-pm use OS/2 Presentation Manager
1064 --with-mgl use SciTech MGL
1065 --with-microwin use MicroWindows
1066 --with-x11 use X11
1067 --with-libpng use libpng (PNG image format)
1068 --with-libjpeg use libjpeg (JPEG file format)
1069 --with-libtiff use libtiff (TIFF file format)
1070 --with-libxpm use libxpm (XPM file format)
1071 --with-libmspack use libmspack (CHM help files loading)
1072 --with-sdl use SDL for audio on Unix
d51253e8 1073 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1074 --with-opengl use OpenGL (or Mesa)
1075 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1076 --with-regex enable support for wxRegEx class
1077 --with-zlib use zlib for LZW compression
1078 --with-odbc use the IODBC and wxODBC classes
1079 --with-expat enable XML support using expat parser
ceec2216 1080 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1081 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1082 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1083 --with-x use the X Window System
1084 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1085 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1086 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1087 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1088 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1089
1090Some influential environment variables:
dcc1b6ad
VS
1091 CC C compiler command
1092 CFLAGS C compiler flags
1093 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1094 nonstandard directory <lib dir>
1095 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1096 headers in a nonstandard directory <include dir>
1097 CPP C preprocessor
1098 CXX C++ compiler command
1099 CXXFLAGS C++ compiler flags
1100 CXXCPP C++ preprocessor
a848cd7e
SC
1101
1102Use these variables to override the choices made by `configure' or to help
1103it to find libraries and programs with nonstandard names/locations.
1104
77ffb593 1105Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1106_ACEOF
1107fi
1108
1109if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1111 ac_popdir=`pwd`
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1114 ac_builddir=.
1115
1116if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120else
1121 ac_dir_suffix= ac_top_builddir=
1122fi
1123
1124case $srcdir in
1125 .) # No --srcdir option. We are building in place.
1126 ac_srcdir=.
1127 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=.
1129 else
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131 fi ;;
1132 [\\/]* | ?:[\\/]* ) # Absolute path.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1135 *) # Relative path.
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138esac
ac1cb8d3
VS
1139
1140# Do not use `cd foo && pwd` to compute absolute paths, because
1141# the directories may not exist.
1142case `pwd` in
1143.) ac_abs_builddir="$ac_dir";;
1144*)
1145 case "$ac_dir" in
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_top_builddir=${ac_top_builddir}.;;
1153*)
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_srcdir=$ac_srcdir;;
1162*)
1163 case $ac_srcdir in
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167 esac;;
1168esac
1169case $ac_abs_builddir in
1170.) ac_abs_top_srcdir=$ac_top_srcdir;;
1171*)
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176 esac;;
1177esac
a848cd7e
SC
1178
1179 cd $ac_dir
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1182 echo
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1185 echo
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1188 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1189 echo
1190 $ac_configure --help
1191 else
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193 fi
6ebeb4c7 1194 cd "$ac_popdir"
a848cd7e
SC
1195 done
1196fi
1197
1198test -n "$ac_init_help" && exit 0
1199if $ac_init_version; then
1200 cat <<\_ACEOF
eb730a0c 1201wxWidgets configure 2.6.2
ac1cb8d3 1202generated by GNU Autoconf 2.59
a848cd7e 1203
ac1cb8d3 1204Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1205This configure script is free software; the Free Software Foundation
1206gives unlimited permission to copy, distribute and modify it.
1207_ACEOF
1208 exit 0
1209fi
1210exec 5>config.log
1211cat >&5 <<_ACEOF
1212This file contains any messages produced by compilers while
1213running configure, to aid debugging if configure makes a mistake.
1214
eb730a0c 1215It was created by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 1216generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1217
1218 $ $0 $@
1219
1220_ACEOF
1221{
1222cat <<_ASUNAME
1223## --------- ##
1224## Platform. ##
1225## --------- ##
1226
1227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235
1236/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1237/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1240/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1241/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1242/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1243
1244_ASUNAME
1245
1246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247for as_dir in $PATH
1248do
1249 IFS=$as_save_IFS
1250 test -z "$as_dir" && as_dir=.
1251 echo "PATH: $as_dir"
1252done
1253
1254} >&5
1255
1256cat >&5 <<_ACEOF
1257
1258
1259## ----------- ##
1260## Core tests. ##
1261## ----------- ##
1262
1263_ACEOF
1264
1265
1266# Keep a trace of the command line.
1267# Strip out --no-create and --no-recursion so they do not pile up.
1268# Strip out --silent because we don't want to record it for future runs.
1269# Also quote any args containing shell meta-characters.
1270# Make two passes to allow for proper duplicate-argument suppression.
1271ac_configure_args=
1272ac_configure_args0=
1273ac_configure_args1=
1274ac_sep=
1275ac_must_keep_next=false
1276for ac_pass in 1 2
1277do
1278 for ac_arg
1279 do
1280 case $ac_arg in
1281 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283 | -silent | --silent | --silen | --sile | --sil)
1284 continue ;;
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 esac
1288 case $ac_pass in
1289 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 2)
1291 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292 if test $ac_must_keep_next = true; then
ac1cb8d3 1293 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1294 else
ac1cb8d3
VS
1295 case $ac_arg in
1296 *=* | --config-cache | -C | -disable-* | --disable-* \
1297 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299 | -with-* | --with-* | -without-* | --without-* | --x)
1300 case "$ac_configure_args0 " in
1301 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302 esac
1303 ;;
1304 -* ) ac_must_keep_next=true ;;
1305 esac
a848cd7e
SC
1306 fi
1307 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308 # Get rid of the leading space.
1309 ac_sep=" "
1310 ;;
1311 esac
1312 done
1313done
1314$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317# When interrupted or exit'd, cleanup temporary files, and complete
1318# config.log. We remove comments because anyway the quotes in there
1319# would cause problems or look ugly.
1320# WARNING: Be sure not to use single quotes in there, as some shells,
1321# such as our DU 5.0 friend, will then `close' the trap.
1322trap 'exit_status=$?
1323 # Save into config.log some information that might help in debugging.
1324 {
1325 echo
1326
1327 cat <<\_ASBOX
1328## ---------------- ##
1329## Cache variables. ##
1330## ---------------- ##
1331_ASBOX
1332 echo
1333 # The following way of writing the cache mishandles newlines in values,
1334{
1335 (set) 2>&1 |
1336 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337 *ac_space=\ *)
1338 sed -n \
ac1cb8d3
VS
1339 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1341 ;;
1342 *)
1343 sed -n \
ac1cb8d3 1344 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1345 ;;
1346 esac;
1347}
1348 echo
1349
1350 cat <<\_ASBOX
1351## ----------------- ##
1352## Output variables. ##
1353## ----------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_vars
1357 do
1358 eval ac_val=$`echo $ac_var`
1359 echo "$ac_var='"'"'$ac_val'"'"'"
1360 done | sort
1361 echo
1362
1363 if test -n "$ac_subst_files"; then
1364 cat <<\_ASBOX
1365## ------------- ##
1366## Output files. ##
1367## ------------- ##
1368_ASBOX
1369 echo
1370 for ac_var in $ac_subst_files
1371 do
1372 eval ac_val=$`echo $ac_var`
ac1cb8d3 1373 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1374 done | sort
1375 echo
1376 fi
1377
1378 if test -s confdefs.h; then
1379 cat <<\_ASBOX
1380## ----------- ##
1381## confdefs.h. ##
1382## ----------- ##
1383_ASBOX
1384 echo
1385 sed "/^$/d" confdefs.h | sort
1386 echo
1387 fi
1388 test "$ac_signal" != 0 &&
1389 echo "$as_me: caught signal $ac_signal"
1390 echo "$as_me: exit $exit_status"
1391 } >&5
ac1cb8d3 1392 rm -f core *.core &&
a848cd7e
SC
1393 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394 exit $exit_status
1395 ' 0
1396for ac_signal in 1 2 13 15; do
1397 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398done
1399ac_signal=0
1400
1401# confdefs.h avoids OS command line length limits that DEFS can exceed.
1402rm -rf conftest* confdefs.h
1403# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404echo >confdefs.h
1405
1406# Predefined preprocessor variables.
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_NAME "$PACKAGE_NAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_VERSION "$PACKAGE_VERSION"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_STRING "$PACKAGE_STRING"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430_ACEOF
1431
1432
1433# Let the site file select an alternate cache file if it wants to.
1434# Prefer explicitly selected file to automatically selected ones.
1435if test -z "$CONFIG_SITE"; then
1436 if test "x$prefix" != xNONE; then
1437 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438 else
1439 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440 fi
1441fi
1442for ac_site_file in $CONFIG_SITE; do
1443 if test -r "$ac_site_file"; then
1444 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445echo "$as_me: loading site script $ac_site_file" >&6;}
1446 sed 's/^/| /' "$ac_site_file" >&5
1447 . "$ac_site_file"
1448 fi
1449done
1450
1451if test -r "$cache_file"; then
1452 # Some versions of bash will fail to source /dev/null (special
1453 # files actually), so we avoid doing that.
1454 if test -f "$cache_file"; then
1455 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456echo "$as_me: loading cache $cache_file" >&6;}
1457 case $cache_file in
1458 [\\/]* | ?:[\\/]* ) . $cache_file;;
1459 *) . ./$cache_file;;
1460 esac
1461 fi
1462else
1463 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464echo "$as_me: creating cache $cache_file" >&6;}
1465 >$cache_file
1466fi
1467
1468# Check that the precious variables saved in the cache have kept the same
1469# value.
1470ac_cache_corrupted=false
1471for ac_var in `(set) 2>&1 |
ac1cb8d3 1472 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474 eval ac_new_set=\$ac_env_${ac_var}_set
1475 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476 eval ac_new_val="\$ac_env_${ac_var}_value"
1477 case $ac_old_set,$ac_new_set in
1478 set,)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,set)
1483 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1486 ,);;
1487 *)
1488 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1489 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1490echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1491 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1492echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1493 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1494echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1495 ac_cache_corrupted=:
a848cd7e
SC
1496 fi;;
1497 esac
1498 # Pass precious variables to config.status.
1499 if test "$ac_new_set" = set; then
1500 case $ac_new_val in
1501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503 *) ac_arg=$ac_var=$ac_new_val ;;
1504 esac
1505 case " $ac_configure_args " in
1506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1507 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508 esac
1509 fi
1510done
1511if $ac_cache_corrupted; then
1512 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516 { (exit 1); exit 1; }; }
1517fi
1518
1519ac_ext=c
1520ac_cpp='$CPP $CPPFLAGS'
1521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554ac_aux_dir=
1555for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1556 if test -f $ac_dir/install-sh; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 break
1560 elif test -f $ac_dir/install.sh; then
1561 ac_aux_dir=$ac_dir
1562 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 break
1564 elif test -f $ac_dir/shtool; then
1565 ac_aux_dir=$ac_dir
1566 ac_install_sh="$ac_aux_dir/shtool install -c"
1567 break
1568 fi
1569done
1570if test -z "$ac_aux_dir"; then
1571 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1572echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1573 { (exit 1); exit 1; }; }
1574fi
1575ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578
1579# Make sure we can run config.sub.
1580$ac_config_sub sun4 >/dev/null 2>&1 ||
1581 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1582echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585echo "$as_me:$LINENO: checking build system type" >&5
1586echo $ECHO_N "checking build system type... $ECHO_C" >&6
1587if test "${ac_cv_build+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 ac_cv_build_alias=$build_alias
1591test -z "$ac_cv_build_alias" &&
1592 ac_cv_build_alias=`$ac_config_guess`
1593test -z "$ac_cv_build_alias" &&
1594 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1595echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1596 { (exit 1); exit 1; }; }
1597ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1599echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1601
1602fi
1603echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1604echo "${ECHO_T}$ac_cv_build" >&6
1605build=$ac_cv_build
1606build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611echo "$as_me:$LINENO: checking host system type" >&5
1612echo $ECHO_N "checking host system type... $ECHO_C" >&6
1613if test "${ac_cv_host+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616 ac_cv_host_alias=$host_alias
1617test -z "$ac_cv_host_alias" &&
1618 ac_cv_host_alias=$ac_cv_build_alias
1619ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1621echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624fi
1625echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1626echo "${ECHO_T}$ac_cv_host" >&6
1627host=$ac_cv_host
1628host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633echo "$as_me:$LINENO: checking target system type" >&5
1634echo $ECHO_N "checking target system type... $ECHO_C" >&6
1635if test "${ac_cv_target+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 ac_cv_target_alias=$target_alias
1639test "x$ac_cv_target_alias" = "x" &&
1640 ac_cv_target_alias=$ac_cv_host_alias
1641ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1648echo "${ECHO_T}$ac_cv_target" >&6
1649target=$ac_cv_target
1650target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655# The aliases save the names the user supplied, while $host etc.
1656# will get canonicalized.
1657test -n "$target_alias" &&
1658 test "$program_prefix$program_suffix$program_transform_name" = \
1659 NONENONEs,x,x, &&
1660 program_prefix=${target_alias}-
1661
1662
1663
ceec2216 1664wx_major_version_number=2
e0d84535 1665wx_minor_version_number=6
eb730a0c 1666wx_release_number=2
063c96c1 1667wx_subrelease_number=1
a848cd7e 1668
ceec2216
RL
1669WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1670WX_VERSION=$WX_RELEASE.$wx_release_number
1671WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1672
ceec2216 1673WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1674
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
a03b8b04
RD
1727DEFAULT_STD_FLAG=yes
1728
a848cd7e
SC
1729case "${host}" in
1730 *-hp-hpux* )
1731 USE_HPUX=1
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1734 SO_SUFFIX=sl
1735 cat >>confdefs.h <<\_ACEOF
1736#define __HPUX__ 1
1737_ACEOF
1738
1739 ;;
1740 *-*-linux* )
1741 USE_LINUX=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __LINUX__ 1
1744_ACEOF
1745
1746 TMP=`uname -m`
1747 if test "x$TMP" = "xalpha"; then
1748 USE_ALPHA=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __ALPHA__ 1
1751_ACEOF
1752
1753 fi
1754 DEFAULT_DEFAULT_wxUSE_GTK=1
1755 ;;
1756 *-*-gnu* | *-*-k*bsd*-gnu )
1757 USE_GNU=1
1758 TMP=`uname -m`
1759 if test "x$TMP" = "xalpha"; then
1760 USE_ALPHA=1
1761 cat >>confdefs.h <<\_ACEOF
1762#define __ALPHA__ 1
1763_ACEOF
1764
1765 fi
1766 DEFAULT_DEFAULT_wxUSE_GTK=1
1767 ;;
1768 *-*-irix5* | *-*-irix6* )
1769 USE_SGI=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SGI__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SVR4__ 1
1777_ACEOF
1778
1779 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1780 ;;
1781 *-*-solaris2* )
1782 USE_SUN=1
1783 USE_SOLARIS=1
1784 USE_SVR4=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SUN__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SOLARIS__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SVR4__ 1
1795_ACEOF
1796
1797 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1798 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1799 ;;
1800 *-*-sunos4* )
1801 USE_SUN=1
1802 USE_SUNOS=1
1803 USE_BSD=1
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUN__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __SUNOS__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __BSD__ 1
1814_ACEOF
1815
1816 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1817 ;;
1818 *-*-freebsd*)
1819 USE_BSD=1
1820 USE_FREEBSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __FREEBSD__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_GTK=1
1830 ;;
1831 *-*-openbsd*)
1832 USE_BSD=1
1833 USE_OPENBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __OPENBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-netbsd*)
1845 USE_BSD=1
1846 USE_NETBSD=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __NETBSD__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __BSD__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_GTK=1
1856 ;;
1857 *-*-osf* )
1858 USE_ALPHA=1
1859 USE_OSF=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __OSF__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1870 ;;
1871 *-*-dgux5* )
1872 USE_ALPHA=1
1873 USE_SVR4=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __ALPHA__ 1
1876_ACEOF
1877
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SVR4__ 1
1880_ACEOF
1881
1882 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883 ;;
1884 *-*-sysv5* )
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SYSV__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SVR4__ 1
1893_ACEOF
1894
1895 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1896 ;;
1897 *-*-aix* )
1898 USE_AIX=1
1899 USE_SYSV=1
1900 USE_SVR4=1
1901 SO_SUFFIX=a
1902 cat >>confdefs.h <<\_ACEOF
1903#define __AIX__ 1
1904_ACEOF
1905
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
1917 *-*-*UnixWare*)
1918 USE_SYSV=1
1919 USE_SVR4=1
1920 USE_UNIXWARE=1
1921 cat >>confdefs.h <<\_ACEOF
1922#define __UNIXWARE__ 1
1923_ACEOF
1924
1925 ;;
1926
1927 *-*-cygwin* | *-*-mingw32* )
1928 SO_SUFFIX=dll
1929 PROGRAM_EXT=".exe"
a848cd7e 1930 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1931 DEFAULT_STD_FLAG=no
a848cd7e
SC
1932 ;;
1933
1934 *-pc-msdosdjgpp )
1935 USE_UNIX=0
1936 USE_DOS=1
1937 cat >>confdefs.h <<\_ACEOF
1938#define __DOS__ 1
1939_ACEOF
1940
1941 PROGRAM_EXT=".exe"
1942 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1943 ;;
1944
1945 *-pc-os2_emx | *-pc-os2-emx )
1946 cat >>confdefs.h <<\_ACEOF
1947#define __EMX__ 1
1948_ACEOF
1949
1950 USE_OS2=1
1951 cat >>confdefs.h <<\_ACEOF
1952#define __OS2__ 1
1953_ACEOF
1954
1955 PROGRAM_EXT=".exe"
1956 DEFAULT_DEFAULT_wxUSE_PM=1
1957 CXX=gcc
1958 LDFLAGS="$LDFLAGS -Zcrtdll"
1959 ac_executable_extensions=".exe"
1960 export ac_executable_extensions
1961 ac_save_IFS="$IFS"
1962 IFS='\\'
1963 ac_TEMP_PATH=
1964 for ac_dir in $PATH; do
1965 IFS=$ac_save_IFS
1966 if test -z "$ac_TEMP_PATH"; then
1967 ac_TEMP_PATH="$ac_dir"
1968 else
1969 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1970 fi
1971 done
1972 export PATH="$ac_TEMP_PATH"
1973 unset ac_TEMP_PATH
a03b8b04 1974 DEFAULT_STD_FLAG=no
a848cd7e
SC
1975 ;;
1976
cfda0ea8 1977 *-*-darwin* )
a848cd7e
SC
1978 USE_BSD=1
1979 USE_DARWIN=1
1980 SO_SUFFIX=dylib
1981 cat >>confdefs.h <<\_ACEOF
1982#define __BSD__ 1
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define __DARWIN__ 1
a848cd7e
SC
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define TARGET_CARBON 1
1991_ACEOF
1992
1993 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1994 DEFAULT_STD_FLAG=no
a848cd7e 1995 ;;
1e9e8aba
DE
1996 powerpc-apple-macos* )
1997 USE_UNIX=0
1998 ac_cv_c_bigendian=yes
1999 SO_SUFFIX=shlib
2000 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2001 DEFAULT_STD_FLAG=no
1e9e8aba 2002 ;;
a848cd7e
SC
2003
2004 *-*-beos* )
2005 USE_BEOS=1
2006 cat >>confdefs.h <<\_ACEOF
2007#define __BEOS__ 1
2008_ACEOF
2009
2010 ;;
2011
2012 *)
2013 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2014echo "$as_me: error: unknown system type ${host}." >&2;}
2015 { (exit 1); exit 1; }; }
2016esac
2017
2018
2019
2020
2021 wx_arg_cache_file="configarg.cache"
2022 echo "loading argument cache $wx_arg_cache_file"
2023 rm -f ${wx_arg_cache_file}.tmp
2024 touch ${wx_arg_cache_file}.tmp
2025 touch ${wx_arg_cache_file}
2026
2027
2028DEBUG_CONFIGURE=0
2029if test $DEBUG_CONFIGURE = 1; then
2030 DEFAULT_wxUSE_UNIVERSAL=no
2031 DEFAULT_wxUSE_STL=no
2032
2033 DEFAULT_wxUSE_NANOX=no
2034
2035 DEFAULT_wxUSE_THREADS=yes
2036
2037 DEFAULT_wxUSE_SHARED=yes
2038 DEFAULT_wxUSE_OPTIMISE=no
2039 DEFAULT_wxUSE_PROFILE=no
2040 DEFAULT_wxUSE_NO_DEPS=no
2041 DEFAULT_wxUSE_NO_RTTI=no
2042 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2043 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2044 DEFAULT_wxUSE_PERMISSIVE=no
2045 DEFAULT_wxUSE_DEBUG_FLAG=yes
2046 DEFAULT_wxUSE_DEBUG_INFO=yes
2047 DEFAULT_wxUSE_DEBUG_GDB=yes
2048 DEFAULT_wxUSE_MEM_TRACING=no
2049 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2050 DEFAULT_wxUSE_DMALLOC=no
2051 DEFAULT_wxUSE_APPLE_IEEE=no
2052
2053 DEFAULT_wxUSE_EXCEPTIONS=no
2054 DEFAULT_wxUSE_LOG=yes
2055 DEFAULT_wxUSE_LOGWINDOW=no
2056 DEFAULT_wxUSE_LOGGUI=no
2057 DEFAULT_wxUSE_LOGDIALOG=no
2058
2059 DEFAULT_wxUSE_GUI=yes
2060 DEFAULT_wxUSE_CONTROLS=no
2061
2062 DEFAULT_wxUSE_REGEX=no
2063 DEFAULT_wxUSE_XML=no
2064 DEFAULT_wxUSE_EXPAT=no
2065 DEFAULT_wxUSE_ZLIB=no
2066 DEFAULT_wxUSE_LIBPNG=no
2067 DEFAULT_wxUSE_LIBJPEG=no
2068 DEFAULT_wxUSE_LIBTIFF=no
2069 DEFAULT_wxUSE_LIBXPM=no
2070 DEFAULT_wxUSE_LIBMSPACK=no
2071 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2072 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2073 DEFAULT_wxUSE_ODBC=no
2074 DEFAULT_wxUSE_OPENGL=no
2075
2076 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2077 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2078 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2079 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2080 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2081 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2082 DEFAULT_wxUSE_CMDLINE_PARSER=no
2083 DEFAULT_wxUSE_DATETIME=no
2084 DEFAULT_wxUSE_TIMER=no
2085 DEFAULT_wxUSE_STOPWATCH=no
2086 DEFAULT_wxUSE_FILE=no
2087 DEFAULT_wxUSE_FFILE=no
07158944 2088 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2089 DEFAULT_wxUSE_TEXTBUFFER=no
2090 DEFAULT_wxUSE_TEXTFILE=no
2091 DEFAULT_wxUSE_SOUND=no
3b57de8b 2092 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2093 DEFAULT_wxUSE_INTL=no
2094 DEFAULT_wxUSE_CONFIG=no
2095 DEFAULT_wxUSE_FONTMAP=no
2096 DEFAULT_wxUSE_STREAMS=no
2097 DEFAULT_wxUSE_SOCKETS=no
2098 DEFAULT_wxUSE_OLE=no
2099 DEFAULT_wxUSE_DATAOBJ=no
2100 DEFAULT_wxUSE_DIALUP_MANAGER=no
2101 DEFAULT_wxUSE_JOYSTICK=no
2102 DEFAULT_wxUSE_DYNLIB_CLASS=no
2103 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2104 DEFAULT_wxUSE_LONGLONG=no
2105 DEFAULT_wxUSE_GEOMETRY=no
2106
2107 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2108 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2109 DEFAULT_wxUSE_POSTSCRIPT=no
2110
2111 DEFAULT_wxUSE_CLIPBOARD=no
2112 DEFAULT_wxUSE_TOOLTIPS=no
2113 DEFAULT_wxUSE_DRAG_AND_DROP=no
2114 DEFAULT_wxUSE_DRAGIMAGE=no
2115 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2116 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2117
8a7b1113 2118 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2119 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2120 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2121 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2122
2123 DEFAULT_wxUSE_RESOURCES=no
2124 DEFAULT_wxUSE_CONSTRAINTS=no
2125 DEFAULT_wxUSE_IPC=no
2126 DEFAULT_wxUSE_HELP=no
2127 DEFAULT_wxUSE_MS_HTML_HELP=no
2128 DEFAULT_wxUSE_WXHTML_HELP=no
2129 DEFAULT_wxUSE_TREELAYOUT=no
2130 DEFAULT_wxUSE_METAFILE=no
2131 DEFAULT_wxUSE_MIMETYPE=no
2132 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2133 DEFAULT_wxUSE_PROTOCOL=no
2134 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2135 DEFAULT_wxUSE_PROTOCOL_FTP=no
2136 DEFAULT_wxUSE_PROTOCOL_FILE=no
2137 DEFAULT_wxUSE_URL=no
2138
2139 DEFAULT_wxUSE_COMMONDLGS=no
2140 DEFAULT_wxUSE_CHOICEDLG=no
2141 DEFAULT_wxUSE_COLOURDLG=no
2142 DEFAULT_wxUSE_DIRDLG=no
2143 DEFAULT_wxUSE_FILEDLG=no
2144 DEFAULT_wxUSE_FINDREPLDLG=no
2145 DEFAULT_wxUSE_FONTDLG=no
2146 DEFAULT_wxUSE_MSGDLG=no
2147 DEFAULT_wxUSE_NUMBERDLG=no
2148 DEFAULT_wxUSE_TEXTDLG=no
2149 DEFAULT_wxUSE_SPLASH=no
2150 DEFAULT_wxUSE_STARTUP_TIPS=no
2151 DEFAULT_wxUSE_PROGRESSDLG=no
2152 DEFAULT_wxUSE_WIZARDDLG=no
2153
2154 DEFAULT_wxUSE_MENUS=no
2155 DEFAULT_wxUSE_MINIFRAME=no
2156 DEFAULT_wxUSE_HTML=no
9a8f0513 2157 DEFAULT_wxUSE_XRC=no
646b6ec1 2158 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2159 DEFAULT_wxUSE_FILESYSTEM=no
2160 DEFAULT_wxUSE_FS_INET=no
2161 DEFAULT_wxUSE_FS_ZIP=no
2162 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2163 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2164 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2165 DEFAULT_wxUSE_VALIDATORS=no
2166
2167 DEFAULT_wxUSE_ACCEL=no
2168 DEFAULT_wxUSE_BUTTON=no
2169 DEFAULT_wxUSE_BMPBUTTON=no
2170 DEFAULT_wxUSE_CALCTRL=no
2171 DEFAULT_wxUSE_CARET=no
2172 DEFAULT_wxUSE_CHECKBOX=no
2173 DEFAULT_wxUSE_CHECKLST=no
2174 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2175 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2176 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2177 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2178 DEFAULT_wxUSE_DISPLAY=no
2179 DEFAULT_wxUSE_GAUGE=no
2180 DEFAULT_wxUSE_GRID=no
2181 DEFAULT_wxUSE_IMAGLIST=no
2182 DEFAULT_wxUSE_LISTBOOK=no
2183 DEFAULT_wxUSE_LISTBOX=no
2184 DEFAULT_wxUSE_LISTCTRL=no
2185 DEFAULT_wxUSE_NOTEBOOK=no
2186 DEFAULT_wxUSE_RADIOBOX=no
2187 DEFAULT_wxUSE_RADIOBTN=no
2188 DEFAULT_wxUSE_SASH=no
2189 DEFAULT_wxUSE_SCROLLBAR=no
2190 DEFAULT_wxUSE_SLIDER=no
2191 DEFAULT_wxUSE_SPINBTN=no
2192 DEFAULT_wxUSE_SPINCTRL=no
2193 DEFAULT_wxUSE_SPLITTER=no
2194 DEFAULT_wxUSE_STATBMP=no
2195 DEFAULT_wxUSE_STATBOX=no
2196 DEFAULT_wxUSE_STATLINE=no
2197 DEFAULT_wxUSE_STATTEXT=no
2198 DEFAULT_wxUSE_STATUSBAR=yes
2199 DEFAULT_wxUSE_TABDIALOG=no
2200 DEFAULT_wxUSE_TEXTCTRL=no
2201 DEFAULT_wxUSE_TOGGLEBTN=no
2202 DEFAULT_wxUSE_TOOLBAR=no
2203 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2204 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2205 DEFAULT_wxUSE_TREECTRL=no
2206 DEFAULT_wxUSE_POPUPWIN=no
2207 DEFAULT_wxUSE_TIPWINDOW=no
2208
2209 DEFAULT_wxUSE_UNICODE=no
2210 DEFAULT_wxUSE_UNICODE_MSLU=no
2211 DEFAULT_wxUSE_WCSRTOMBS=no
2212
2213 DEFAULT_wxUSE_PALETTE=no
2214 DEFAULT_wxUSE_IMAGE=no
2215 DEFAULT_wxUSE_GIF=no
2216 DEFAULT_wxUSE_PCX=no
2217 DEFAULT_wxUSE_PNM=no
2218 DEFAULT_wxUSE_IFF=no
2219 DEFAULT_wxUSE_XPM=no
2220 DEFAULT_wxUSE_ICO_CUR=no
2221 DEFAULT_wxUSE_ACCESSIBILITY=no
2222
2223 DEFAULT_wxUSE_MONOLITHIC=no
2224 DEFAULT_wxUSE_PLUGINS=no
2225 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2226else
2227 DEFAULT_wxUSE_UNIVERSAL=no
2228 DEFAULT_wxUSE_STL=no
2229
2230 DEFAULT_wxUSE_NANOX=no
2231
2232 DEFAULT_wxUSE_THREADS=yes
2233
2234 DEFAULT_wxUSE_SHARED=yes
2235 DEFAULT_wxUSE_OPTIMISE=yes
2236 DEFAULT_wxUSE_PROFILE=no
2237 DEFAULT_wxUSE_NO_DEPS=no
2238 DEFAULT_wxUSE_NO_RTTI=no
2239 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2240 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2241 DEFAULT_wxUSE_PERMISSIVE=no
2242 DEFAULT_wxUSE_DEBUG_FLAG=no
2243 DEFAULT_wxUSE_DEBUG_INFO=no
2244 DEFAULT_wxUSE_DEBUG_GDB=no
2245 DEFAULT_wxUSE_MEM_TRACING=no
2246 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2247 DEFAULT_wxUSE_DMALLOC=no
2248 DEFAULT_wxUSE_APPLE_IEEE=yes
2249
2250 DEFAULT_wxUSE_EXCEPTIONS=yes
2251 DEFAULT_wxUSE_LOG=yes
2252 DEFAULT_wxUSE_LOGWINDOW=yes
2253 DEFAULT_wxUSE_LOGGUI=yes
2254 DEFAULT_wxUSE_LOGDIALOG=yes
2255
2256 DEFAULT_wxUSE_GUI=yes
2257
2258 DEFAULT_wxUSE_REGEX=yes
2259 DEFAULT_wxUSE_XML=yes
2260 DEFAULT_wxUSE_EXPAT=yes
2261 DEFAULT_wxUSE_ZLIB=yes
2262 DEFAULT_wxUSE_LIBPNG=yes
2263 DEFAULT_wxUSE_LIBJPEG=yes
2264 DEFAULT_wxUSE_LIBTIFF=yes
2265 DEFAULT_wxUSE_LIBXPM=yes
2266 DEFAULT_wxUSE_LIBMSPACK=yes
2267 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2268 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2269 DEFAULT_wxUSE_ODBC=no
52cb607e 2270 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2271
2272 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2273 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2274 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2275 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2276 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2277 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2278 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2279 DEFAULT_wxUSE_DATETIME=yes
2280 DEFAULT_wxUSE_TIMER=yes
2281 DEFAULT_wxUSE_STOPWATCH=yes
2282 DEFAULT_wxUSE_FILE=yes
2283 DEFAULT_wxUSE_FFILE=yes
07158944 2284 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2285 DEFAULT_wxUSE_TEXTBUFFER=yes
2286 DEFAULT_wxUSE_TEXTFILE=yes
2287 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2288 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2289 DEFAULT_wxUSE_INTL=yes
2290 DEFAULT_wxUSE_CONFIG=yes
2291 DEFAULT_wxUSE_FONTMAP=yes
2292 DEFAULT_wxUSE_STREAMS=yes
2293 DEFAULT_wxUSE_SOCKETS=yes
2294 DEFAULT_wxUSE_OLE=yes
2295 DEFAULT_wxUSE_DATAOBJ=yes
2296 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2297 DEFAULT_wxUSE_JOYSTICK=yes
2298 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2299 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2300 DEFAULT_wxUSE_LONGLONG=yes
2301 DEFAULT_wxUSE_GEOMETRY=yes
2302
2303 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2304 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2305 DEFAULT_wxUSE_POSTSCRIPT=yes
2306
2307 DEFAULT_wxUSE_CLIPBOARD=yes
2308 DEFAULT_wxUSE_TOOLTIPS=yes
2309 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2310 DEFAULT_wxUSE_DRAGIMAGE=yes
2311 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2312 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2313
8a7b1113 2314 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2315 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2316 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2318
2319 DEFAULT_wxUSE_RESOURCES=no
2320 DEFAULT_wxUSE_CONSTRAINTS=yes
2321 DEFAULT_wxUSE_IPC=yes
2322 DEFAULT_wxUSE_HELP=yes
2323 DEFAULT_wxUSE_MS_HTML_HELP=yes
2324 DEFAULT_wxUSE_WXHTML_HELP=yes
2325 DEFAULT_wxUSE_TREELAYOUT=yes
2326 DEFAULT_wxUSE_METAFILE=yes
2327 DEFAULT_wxUSE_MIMETYPE=yes
2328 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2329 DEFAULT_wxUSE_PROTOCOL=yes
2330 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2331 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2333 DEFAULT_wxUSE_URL=yes
2334
2335 DEFAULT_wxUSE_COMMONDLGS=yes
2336 DEFAULT_wxUSE_CHOICEDLG=yes
2337 DEFAULT_wxUSE_COLOURDLG=yes
2338 DEFAULT_wxUSE_DIRDLG=yes
2339 DEFAULT_wxUSE_FILEDLG=yes
2340 DEFAULT_wxUSE_FINDREPLDLG=yes
2341 DEFAULT_wxUSE_FONTDLG=yes
2342 DEFAULT_wxUSE_MSGDLG=yes
2343 DEFAULT_wxUSE_NUMBERDLG=yes
2344 DEFAULT_wxUSE_TEXTDLG=yes
2345 DEFAULT_wxUSE_SPLASH=yes
2346 DEFAULT_wxUSE_STARTUP_TIPS=yes
2347 DEFAULT_wxUSE_PROGRESSDLG=yes
2348 DEFAULT_wxUSE_WIZARDDLG=yes
2349
2350 DEFAULT_wxUSE_MENUS=yes
2351 DEFAULT_wxUSE_MINIFRAME=yes
2352 DEFAULT_wxUSE_HTML=yes
9a8f0513 2353 DEFAULT_wxUSE_XRC=yes
646b6ec1 2354 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_FILESYSTEM=yes
2356 DEFAULT_wxUSE_FS_INET=yes
2357 DEFAULT_wxUSE_FS_ZIP=yes
2358 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2359 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2360 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2361 DEFAULT_wxUSE_VALIDATORS=yes
2362
2363 DEFAULT_wxUSE_ACCEL=yes
2364 DEFAULT_wxUSE_BUTTON=yes
2365 DEFAULT_wxUSE_BMPBUTTON=yes
2366 DEFAULT_wxUSE_CALCTRL=yes
2367 DEFAULT_wxUSE_CARET=yes
2368 DEFAULT_wxUSE_CHECKBOX=yes
2369 DEFAULT_wxUSE_CHECKLST=yes
2370 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2371 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2372 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2373 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2374 DEFAULT_wxUSE_DISPLAY=yes
2375 DEFAULT_wxUSE_GAUGE=yes
2376 DEFAULT_wxUSE_GRID=yes
2377 DEFAULT_wxUSE_IMAGLIST=yes
2378 DEFAULT_wxUSE_LISTBOOK=yes
2379 DEFAULT_wxUSE_LISTBOX=yes
2380 DEFAULT_wxUSE_LISTCTRL=yes
2381 DEFAULT_wxUSE_NOTEBOOK=yes
2382 DEFAULT_wxUSE_RADIOBOX=yes
2383 DEFAULT_wxUSE_RADIOBTN=yes
2384 DEFAULT_wxUSE_SASH=yes
2385 DEFAULT_wxUSE_SCROLLBAR=yes
2386 DEFAULT_wxUSE_SLIDER=yes
2387 DEFAULT_wxUSE_SPINBTN=yes
2388 DEFAULT_wxUSE_SPINCTRL=yes
2389 DEFAULT_wxUSE_SPLITTER=yes
2390 DEFAULT_wxUSE_STATBMP=yes
2391 DEFAULT_wxUSE_STATBOX=yes
2392 DEFAULT_wxUSE_STATLINE=yes
2393 DEFAULT_wxUSE_STATTEXT=yes
2394 DEFAULT_wxUSE_STATUSBAR=yes
2395 DEFAULT_wxUSE_TABDIALOG=no
2396 DEFAULT_wxUSE_TEXTCTRL=yes
2397 DEFAULT_wxUSE_TOGGLEBTN=yes
2398 DEFAULT_wxUSE_TOOLBAR=yes
2399 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2400 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2401 DEFAULT_wxUSE_TREECTRL=yes
2402 DEFAULT_wxUSE_POPUPWIN=yes
2403 DEFAULT_wxUSE_TIPWINDOW=yes
2404
78de529b 2405 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2406 DEFAULT_wxUSE_UNICODE_MSLU=yes
2407 DEFAULT_wxUSE_WCSRTOMBS=no
2408
2409 DEFAULT_wxUSE_PALETTE=yes
2410 DEFAULT_wxUSE_IMAGE=yes
2411 DEFAULT_wxUSE_GIF=yes
2412 DEFAULT_wxUSE_PCX=yes
2413 DEFAULT_wxUSE_IFF=no
2414 DEFAULT_wxUSE_PNM=yes
2415 DEFAULT_wxUSE_XPM=yes
2416 DEFAULT_wxUSE_ICO_CUR=yes
2417 DEFAULT_wxUSE_ACCESSIBILITY=no
2418
2419 DEFAULT_wxUSE_MONOLITHIC=no
2420 DEFAULT_wxUSE_PLUGINS=no
2421 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2422
f34ca037 2423 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2424fi
2425
2426
2427
f34ca037 2428
a848cd7e
SC
2429for toolkit in `echo $ALL_TOOLKITS`; do
2430 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2431 if test "x$LINE" != "x" ; then
2432 has_toolkit_in_cache=1
2433 eval "DEFAULT_$LINE"
2434 eval "CACHE_$toolkit=1"
f34ca037
MW
2435
2436 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2437 if test "x$LINE" != "x" ; then
2438 eval "DEFAULT_$LINE"
2439 fi
a848cd7e
SC
2440 fi
2441done
2442
2443
2444
2445 enablestring=
2446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2447echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2448 no_cache=0
2449 # Check whether --enable-gui or --disable-gui was given.
2450if test "${enable_gui+set}" = set; then
2451 enableval="$enable_gui"
2452
2453 if test "$enableval" = yes; then
2454 ac_cv_use_gui='wxUSE_GUI=yes'
2455 else
2456 ac_cv_use_gui='wxUSE_GUI=no'
2457 fi
2458
2459else
2460
2461 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2462 if test "x$LINE" != x ; then
2463 eval "DEFAULT_$LINE"
2464 else
2465 no_cache=1
2466 fi
2467
2468 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2469
2470fi;
2471
2472 eval "$ac_cv_use_gui"
2473 if test "$no_cache" != 1; then
2474 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2475 fi
2476
2477 if test "$wxUSE_GUI" = yes; then
2478 echo "$as_me:$LINENO: result: yes" >&5
2479echo "${ECHO_T}yes" >&6
2480 else
2481 echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6
2483 fi
2484
2485
2486 enablestring=
2487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2488echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2489 no_cache=0
2490 # Check whether --enable-monolithic or --disable-monolithic was given.
2491if test "${enable_monolithic+set}" = set; then
2492 enableval="$enable_monolithic"
2493
2494 if test "$enableval" = yes; then
2495 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2496 else
2497 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2498 fi
2499
2500else
2501
2502 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2503 if test "x$LINE" != x ; then
2504 eval "DEFAULT_$LINE"
2505 else
2506 no_cache=1
2507 fi
2508
2509 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2510
2511fi;
2512
2513 eval "$ac_cv_use_monolithic"
2514 if test "$no_cache" != 1; then
2515 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2516 fi
2517
2518 if test "$wxUSE_MONOLITHIC" = yes; then
2519 echo "$as_me:$LINENO: result: yes" >&5
2520echo "${ECHO_T}yes" >&6
2521 else
2522 echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6
2524 fi
2525
2526
2527 enablestring=
2528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2529echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2530 no_cache=0
2531 # Check whether --enable-plugins or --disable-plugins was given.
2532if test "${enable_plugins+set}" = set; then
2533 enableval="$enable_plugins"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2537 else
2538 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2539 fi
2540
2541else
2542
2543 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2551
2552fi;
2553
2554 eval "$ac_cv_use_plugins"
2555 if test "$no_cache" != 1; then
2556 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2557 fi
2558
2559 if test "$wxUSE_PLUGINS" = yes; then
2560 echo "$as_me:$LINENO: result: yes" >&5
2561echo "${ECHO_T}yes" >&6
2562 else
2563 echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6
2565 fi
2566
2567
2568if test "$wxUSE_GUI" = "yes"; then
2569
2570
2571 enablestring=
2572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2573echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2574 no_cache=0
2575 # Check whether --enable-universal or --disable-universal was given.
2576if test "${enable_universal+set}" = set; then
2577 enableval="$enable_universal"
2578
2579 if test "$enableval" = yes; then
2580 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2581 else
2582 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2583 fi
2584
2585else
2586
2587 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2588 if test "x$LINE" != x ; then
2589 eval "DEFAULT_$LINE"
2590 else
2591 no_cache=1
2592 fi
2593
2594 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2595
2596fi;
2597
2598 eval "$ac_cv_use_universal"
2599 if test "$no_cache" != 1; then
2600 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2601 fi
2602
2603 if test "$wxUSE_UNIVERSAL" = yes; then
2604 echo "$as_me:$LINENO: result: yes" >&5
2605echo "${ECHO_T}yes" >&6
2606 else
2607 echo "$as_me:$LINENO: result: no" >&5
2608echo "${ECHO_T}no" >&6
2609 fi
2610
2611
2612# Check whether --with-gtk or --without-gtk was given.
2613if test "${with_gtk+set}" = set; then
2614 withval="$with_gtk"
2615 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2616fi;
2617
2618# Check whether --with-motif or --without-motif was given.
2619if test "${with_motif+set}" = set; then
2620 withval="$with_motif"
2621 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2622fi;
2623
2624# Check whether --with-mac or --without-mac was given.
2625if test "${with_mac+set}" = set; then
2626 withval="$with_mac"
c228d3a4 2627 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2628fi;
2629
2630# Check whether --with-cocoa or --without-cocoa was given.
2631if test "${with_cocoa+set}" = set; then
2632 withval="$with_cocoa"
c228d3a4 2633 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2634fi;
2635
2636# Check whether --with-wine or --without-wine was given.
2637if test "${with_wine+set}" = set; then
2638 withval="$with_wine"
2639 wxUSE_WINE="$withval" CACHE_WINE=1
2640fi;
2641
2642# Check whether --with-msw or --without-msw was given.
2643if test "${with_msw+set}" = set; then
2644 withval="$with_msw"
2645 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-pm or --without-pm was given.
2649if test "${with_pm+set}" = set; then
2650 withval="$with_pm"
2651 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-mgl or --without-mgl was given.
2655if test "${with_mgl+set}" = set; then
2656 withval="$with_mgl"
2657 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660# Check whether --with-microwin or --without-microwin was given.
2661if test "${with_microwin+set}" = set; then
2662 withval="$with_microwin"
2663 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2664fi;
2665
2666# Check whether --with-x11 or --without-x11 was given.
2667if test "${with_x11+set}" = set; then
2668 withval="$with_x11"
2669 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2670fi;
2671
2672 enablestring=
2673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2674echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2675 no_cache=0
2676 # Check whether --enable-nanox or --disable-nanox was given.
2677if test "${enable_nanox+set}" = set; then
2678 enableval="$enable_nanox"
2679
2680 if test "$enableval" = yes; then
2681 ac_cv_use_nanox='wxUSE_NANOX=yes'
2682 else
2683 ac_cv_use_nanox='wxUSE_NANOX=no'
2684 fi
2685
2686else
2687
2688 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2689 if test "x$LINE" != x ; then
2690 eval "DEFAULT_$LINE"
2691 else
2692 no_cache=1
2693 fi
2694
2695 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2696
2697fi;
2698
2699 eval "$ac_cv_use_nanox"
2700 if test "$no_cache" != 1; then
2701 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2702 fi
2703
2704 if test "$wxUSE_NANOX" = yes; then
2705 echo "$as_me:$LINENO: result: yes" >&5
2706echo "${ECHO_T}yes" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710 fi
2711
2712
f34ca037
MW
2713# Check whether --enable-gtk2 or --disable-gtk2 was given.
2714if test "${enable_gtk2+set}" = set; then
2715 enableval="$enable_gtk2"
2716 wxUSE_GTK2="$enableval"
2717fi;
a848cd7e 2718
a848cd7e
SC
2719 enablestring=
2720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2721echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2722 no_cache=0
2723 # Check whether --enable-gpe or --disable-gpe was given.
2724if test "${enable_gpe+set}" = set; then
2725 enableval="$enable_gpe"
2726
2727 if test "$enableval" = yes; then
2728 ac_cv_use_gpe='wxUSE_GPE=yes'
2729 else
2730 ac_cv_use_gpe='wxUSE_GPE=no'
2731 fi
2732
2733else
2734
2735 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2736 if test "x$LINE" != x ; then
2737 eval "DEFAULT_$LINE"
2738 else
2739 no_cache=1
2740 fi
2741
2742 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2743
2744fi;
2745
2746 eval "$ac_cv_use_gpe"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_GPE" = yes; then
2752 echo "$as_me:$LINENO: result: yes" >&5
2753echo "${ECHO_T}yes" >&6
2754 else
2755 echo "$as_me:$LINENO: result: no" >&5
2756echo "${ECHO_T}no" >&6
2757 fi
2758
2759
2760
2761 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2762echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2763 no_cache=0
2764
2765# Check whether --with-libpng or --without-libpng was given.
2766if test "${with_libpng+set}" = set; then
2767 withval="$with_libpng"
2768
2769 if test "$withval" = yes; then
2770 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2771 elif test "$withval" = no; then
2772 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2773 elif test "$withval" = sys; then
2774 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2775 elif test "$withval" = builtin; then
2776 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2777 else
2778 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2779echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2780 { (exit 1); exit 1; }; }
2781 fi
2782
2783else
2784
2785 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2793
2794fi;
2795
2796 eval "$ac_cv_use_libpng"
2797 if test "$no_cache" != 1; then
2798 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2799 fi
2800
2801 if test "$wxUSE_LIBPNG" = yes; then
2802 echo "$as_me:$LINENO: result: yes" >&5
2803echo "${ECHO_T}yes" >&6
2804 elif test "$wxUSE_LIBPNG" = no; then
2805 echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807 elif test "$wxUSE_LIBPNG" = sys; then
2808 echo "$as_me:$LINENO: result: system version" >&5
2809echo "${ECHO_T}system version" >&6
2810 elif test "$wxUSE_LIBPNG" = builtin; then
2811 echo "$as_me:$LINENO: result: builtin version" >&5
2812echo "${ECHO_T}builtin version" >&6
2813 else
2814 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2815echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2816 { (exit 1); exit 1; }; }
2817 fi
2818
2819
2820 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2821echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2822 no_cache=0
2823
2824# Check whether --with-libjpeg or --without-libjpeg was given.
2825if test "${with_libjpeg+set}" = set; then
2826 withval="$with_libjpeg"
2827
2828 if test "$withval" = yes; then
2829 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2830 elif test "$withval" = no; then
2831 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2832 elif test "$withval" = sys; then
2833 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2834 elif test "$withval" = builtin; then
2835 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2836 else
2837 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2838echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2839 { (exit 1); exit 1; }; }
2840 fi
2841
2842else
2843
2844 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2845 if test "x$LINE" != x ; then
2846 eval "DEFAULT_$LINE"
2847 else
2848 no_cache=1
2849 fi
2850
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2852
2853fi;
2854
2855 eval "$ac_cv_use_libjpeg"
2856 if test "$no_cache" != 1; then
2857 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2858 fi
2859
2860 if test "$wxUSE_LIBJPEG" = yes; then
2861 echo "$as_me:$LINENO: result: yes" >&5
2862echo "${ECHO_T}yes" >&6
2863 elif test "$wxUSE_LIBJPEG" = no; then
2864 echo "$as_me:$LINENO: result: no" >&5
2865echo "${ECHO_T}no" >&6
2866 elif test "$wxUSE_LIBJPEG" = sys; then
2867 echo "$as_me:$LINENO: result: system version" >&5
2868echo "${ECHO_T}system version" >&6
2869 elif test "$wxUSE_LIBJPEG" = builtin; then
2870 echo "$as_me:$LINENO: result: builtin version" >&5
2871echo "${ECHO_T}builtin version" >&6
2872 else
2873 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2874echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2875 { (exit 1); exit 1; }; }
2876 fi
2877
2878
2879 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2880echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2881 no_cache=0
2882
2883# Check whether --with-libtiff or --without-libtiff was given.
2884if test "${with_libtiff+set}" = set; then
2885 withval="$with_libtiff"
2886
2887 if test "$withval" = yes; then
2888 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2889 elif test "$withval" = no; then
2890 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2891 elif test "$withval" = sys; then
2892 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2893 elif test "$withval" = builtin; then
2894 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2895 else
2896 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2897echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2898 { (exit 1); exit 1; }; }
2899 fi
2900
2901else
2902
2903 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2911
2912fi;
2913
2914 eval "$ac_cv_use_libtiff"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_LIBTIFF" = yes; then
2920 echo "$as_me:$LINENO: result: yes" >&5
2921echo "${ECHO_T}yes" >&6
2922 elif test "$wxUSE_LIBTIFF" = no; then
2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
2925 elif test "$wxUSE_LIBTIFF" = sys; then
2926 echo "$as_me:$LINENO: result: system version" >&5
2927echo "${ECHO_T}system version" >&6
2928 elif test "$wxUSE_LIBTIFF" = builtin; then
2929 echo "$as_me:$LINENO: result: builtin version" >&5
2930echo "${ECHO_T}builtin version" >&6
2931 else
2932 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2933echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2934 { (exit 1); exit 1; }; }
2935 fi
2936
2937
2938 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2939echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2940 no_cache=0
2941
2942# Check whether --with-libxpm or --without-libxpm was given.
2943if test "${with_libxpm+set}" = set; then
2944 withval="$with_libxpm"
2945
2946 if test "$withval" = yes; then
2947 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2948 elif test "$withval" = no; then
2949 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2950 elif test "$withval" = sys; then
2951 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2952 elif test "$withval" = builtin; then
2953 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2954 else
2955 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2956echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2957 { (exit 1); exit 1; }; }
2958 fi
2959
2960else
2961
2962 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2963 if test "x$LINE" != x ; then
2964 eval "DEFAULT_$LINE"
2965 else
2966 no_cache=1
2967 fi
2968
2969 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2970
2971fi;
2972
2973 eval "$ac_cv_use_libxpm"
2974 if test "$no_cache" != 1; then
2975 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2976 fi
2977
2978 if test "$wxUSE_LIBXPM" = yes; then
2979 echo "$as_me:$LINENO: result: yes" >&5
2980echo "${ECHO_T}yes" >&6
2981 elif test "$wxUSE_LIBXPM" = no; then
2982 echo "$as_me:$LINENO: result: no" >&5
2983echo "${ECHO_T}no" >&6
2984 elif test "$wxUSE_LIBXPM" = sys; then
2985 echo "$as_me:$LINENO: result: system version" >&5
2986echo "${ECHO_T}system version" >&6
2987 elif test "$wxUSE_LIBXPM" = builtin; then
2988 echo "$as_me:$LINENO: result: builtin version" >&5
2989echo "${ECHO_T}builtin version" >&6
2990 else
2991 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2992echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2993 { (exit 1); exit 1; }; }
2994 fi
2995
2996
2997 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2998echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2999 no_cache=0
3000
3001# Check whether --with-libmspack or --without-libmspack was given.
3002if test "${with_libmspack+set}" = set; then
3003 withval="$with_libmspack"
3004
3005 if test "$withval" = yes; then
3006 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3007 else
3008 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3009 fi
3010
3011else
3012
3013 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3021
3022fi;
3023
3024 eval "$ac_cv_use_libmspack"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_LIBMSPACK" = yes; then
3030 echo "$as_me:$LINENO: result: yes" >&5
3031echo "${ECHO_T}yes" >&6
3032 else
3033 echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035 fi
3036
3037
3038 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3039echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3040 no_cache=0
3041
3042# Check whether --with-sdl or --without-sdl was given.
3043if test "${with_sdl+set}" = set; then
3044 withval="$with_sdl"
3045
3046 if test "$withval" = yes; then
3047 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3048 else
3049 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3050 fi
3051
3052else
3053
3054 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3055 if test "x$LINE" != x ; then
3056 eval "DEFAULT_$LINE"
3057 else
3058 no_cache=1
3059 fi
3060
3061 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3062
3063fi;
3064
3065 eval "$ac_cv_use_sdl"
3066 if test "$no_cache" != 1; then
3067 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3068 fi
3069
3070 if test "$wxUSE_LIBSDL" = yes; then
3071 echo "$as_me:$LINENO: result: yes" >&5
3072echo "${ECHO_T}yes" >&6
3073 else
3074 echo "$as_me:$LINENO: result: no" >&5
3075echo "${ECHO_T}no" >&6
3076 fi
3077
3078
d1c38808
VZ
3079 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3080echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3081 no_cache=0
3082
3083# Check whether --with-gnomeprint or --without-gnomeprint was given.
3084if test "${with_gnomeprint+set}" = set; then
3085 withval="$with_gnomeprint"
3086
3087 if test "$withval" = yes; then
3088 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3089 else
3090 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${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_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3103
3104fi;
3105
3106 eval "$ac_cv_use_gnomeprint"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_LIBGNOMEPRINT" = 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
a848cd7e
SC
3120 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3121echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3122 no_cache=0
3123
3124# Check whether --with-opengl or --without-opengl was given.
3125if test "${with_opengl+set}" = set; then
3126 withval="$with_opengl"
3127
3128 if test "$withval" = yes; then
3129 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3130 else
3131 ac_cv_use_opengl='wxUSE_OPENGL=no'
3132 fi
3133
3134else
3135
3136 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3144
3145fi;
3146
3147 eval "$ac_cv_use_opengl"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_OPENGL" = yes; then
3153 echo "$as_me:$LINENO: result: yes" >&5
3154echo "${ECHO_T}yes" >&6
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158 fi
3159
3160
3161fi
3162
3163
3164 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3165echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3166 no_cache=0
3167
3168# Check whether --with-dmalloc or --without-dmalloc was given.
3169if test "${with_dmalloc+set}" = set; then
3170 withval="$with_dmalloc"
3171
3172 if test "$withval" = yes; then
3173 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3174 else
3175 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3176 fi
3177
3178else
3179
3180 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3181 if test "x$LINE" != x ; then
3182 eval "DEFAULT_$LINE"
3183 else
3184 no_cache=1
3185 fi
3186
3187 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3188
3189fi;
3190
3191 eval "$ac_cv_use_dmalloc"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_DMALLOC" = yes; then
3197 echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
3199 else
3200 echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
3202 fi
3203
3204
3205 echo "$as_me:$LINENO: checking for --with-regex" >&5
3206echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3207 no_cache=0
3208
3209# Check whether --with-regex or --without-regex was given.
3210if test "${with_regex+set}" = set; then
3211 withval="$with_regex"
3212
3213 if test "$withval" = yes; then
3214 ac_cv_use_regex='wxUSE_REGEX=yes'
3215 elif test "$withval" = no; then
3216 ac_cv_use_regex='wxUSE_REGEX=no'
3217 elif test "$withval" = sys; then
3218 ac_cv_use_regex='wxUSE_REGEX=sys'
3219 elif test "$withval" = builtin; then
3220 ac_cv_use_regex='wxUSE_REGEX=builtin'
3221 else
3222 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3223echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3224 { (exit 1); exit 1; }; }
3225 fi
3226
3227else
3228
3229 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3237
3238fi;
3239
3240 eval "$ac_cv_use_regex"
3241 if test "$no_cache" != 1; then
3242 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3243 fi
3244
3245 if test "$wxUSE_REGEX" = yes; then
3246 echo "$as_me:$LINENO: result: yes" >&5
3247echo "${ECHO_T}yes" >&6
3248 elif test "$wxUSE_REGEX" = no; then
3249 echo "$as_me:$LINENO: result: no" >&5
3250echo "${ECHO_T}no" >&6
3251 elif test "$wxUSE_REGEX" = sys; then
3252 echo "$as_me:$LINENO: result: system version" >&5
3253echo "${ECHO_T}system version" >&6
3254 elif test "$wxUSE_REGEX" = builtin; then
3255 echo "$as_me:$LINENO: result: builtin version" >&5
3256echo "${ECHO_T}builtin version" >&6
3257 else
3258 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3259echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263
3264 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3265echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3266 no_cache=0
3267
3268# Check whether --with-zlib or --without-zlib was given.
3269if test "${with_zlib+set}" = set; then
3270 withval="$with_zlib"
3271
3272 if test "$withval" = yes; then
3273 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3274 elif test "$withval" = no; then
3275 ac_cv_use_zlib='wxUSE_ZLIB=no'
3276 elif test "$withval" = sys; then
3277 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3278 elif test "$withval" = builtin; then
3279 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3280 else
3281 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3282echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3283 { (exit 1); exit 1; }; }
3284 fi
3285
3286else
3287
3288 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3296
3297fi;
3298
3299 eval "$ac_cv_use_zlib"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_ZLIB" = yes; then
3305 echo "$as_me:$LINENO: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
3307 elif test "$wxUSE_ZLIB" = no; then
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310 elif test "$wxUSE_ZLIB" = sys; then
3311 echo "$as_me:$LINENO: result: system version" >&5
3312echo "${ECHO_T}system version" >&6
3313 elif test "$wxUSE_ZLIB" = builtin; then
3314 echo "$as_me:$LINENO: result: builtin version" >&5
3315echo "${ECHO_T}builtin version" >&6
3316 else
3317 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3318echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3319 { (exit 1); exit 1; }; }
3320 fi
3321
3322
3323 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3324echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3325 no_cache=0
3326
3327# Check whether --with-odbc or --without-odbc was given.
3328if test "${with_odbc+set}" = set; then
3329 withval="$with_odbc"
3330
3331 if test "$withval" = yes; then
3332 ac_cv_use_odbc='wxUSE_ODBC=yes'
3333 elif test "$withval" = no; then
3334 ac_cv_use_odbc='wxUSE_ODBC=no'
3335 elif test "$withval" = sys; then
3336 ac_cv_use_odbc='wxUSE_ODBC=sys'
3337 elif test "$withval" = builtin; then
3338 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3339 else
3340 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3341echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3342 { (exit 1); exit 1; }; }
3343 fi
3344
3345else
3346
3347 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3355
3356fi;
3357
3358 eval "$ac_cv_use_odbc"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_ODBC" = yes; then
3364 echo "$as_me:$LINENO: result: yes" >&5
3365echo "${ECHO_T}yes" >&6
3366 elif test "$wxUSE_ODBC" = no; then
3367 echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
3369 elif test "$wxUSE_ODBC" = sys; then
3370 echo "$as_me:$LINENO: result: system version" >&5
3371echo "${ECHO_T}system version" >&6
3372 elif test "$wxUSE_ODBC" = builtin; then
3373 echo "$as_me:$LINENO: result: builtin version" >&5
3374echo "${ECHO_T}builtin version" >&6
3375 else
3376 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3377echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3378 { (exit 1); exit 1; }; }
3379 fi
3380
3381
3382 echo "$as_me:$LINENO: checking for --with-expat" >&5
3383echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3384 no_cache=0
3385
3386# Check whether --with-expat or --without-expat was given.
3387if test "${with_expat+set}" = set; then
3388 withval="$with_expat"
3389
3390 if test "$withval" = yes; then
3391 ac_cv_use_expat='wxUSE_EXPAT=yes'
3392 elif test "$withval" = no; then
3393 ac_cv_use_expat='wxUSE_EXPAT=no'
3394 elif test "$withval" = sys; then
3395 ac_cv_use_expat='wxUSE_EXPAT=sys'
3396 elif test "$withval" = builtin; then
3397 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3398 else
3399 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3400echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3401 { (exit 1); exit 1; }; }
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3414
3415fi;
3416
3417 eval "$ac_cv_use_expat"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_EXPAT" = yes; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
3425 elif test "$wxUSE_EXPAT" = no; then
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428 elif test "$wxUSE_EXPAT" = sys; then
3429 echo "$as_me:$LINENO: result: system version" >&5
3430echo "${ECHO_T}system version" >&6
3431 elif test "$wxUSE_EXPAT" = builtin; then
3432 echo "$as_me:$LINENO: result: builtin version" >&5
3433echo "${ECHO_T}builtin version" >&6
3434 else
3435 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3436echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3437 { (exit 1); exit 1; }; }
3438 fi
3439
3440
3441
3442
3443 enablestring=
3444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3445echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3446 no_cache=0
3447 # Check whether --enable-shared or --disable-shared was given.
3448if test "${enable_shared+set}" = set; then
3449 enableval="$enable_shared"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_shared='wxUSE_SHARED=yes'
3453 else
3454 ac_cv_use_shared='wxUSE_SHARED=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3467
3468fi;
3469
3470 eval "$ac_cv_use_shared"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_SHARED" = yes; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477echo "${ECHO_T}yes" >&6
3478 else
3479 echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6
3481 fi
3482
3483
3484 enablestring=
3485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3486echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3487 no_cache=0
3488 # Check whether --enable-optimise or --disable-optimise was given.
3489if test "${enable_optimise+set}" = set; then
3490 enableval="$enable_optimise"
3491
3492 if test "$enableval" = yes; then
3493 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3494 else
3495 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3496 fi
3497
3498else
3499
3500 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3501 if test "x$LINE" != x ; then
3502 eval "DEFAULT_$LINE"
3503 else
3504 no_cache=1
3505 fi
3506
3507 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3508
3509fi;
3510
3511 eval "$ac_cv_use_optimise"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_OPTIMISE" = yes; then
3517 echo "$as_me:$LINENO: result: yes" >&5
3518echo "${ECHO_T}yes" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521echo "${ECHO_T}no" >&6
3522 fi
3523
3524
3525 enablestring=
3526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3527echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3528 no_cache=0
3529 # Check whether --enable-debug or --disable-debug was given.
3530if test "${enable_debug+set}" = set; then
3531 enableval="$enable_debug"
3532
3533 if test "$enableval" = yes; then
3534 ac_cv_use_debug='wxUSE_DEBUG=yes'
3535 else
3536 ac_cv_use_debug='wxUSE_DEBUG=no'
3537 fi
3538
3539else
3540
3541 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3549
3550fi;
3551
3552 eval "$ac_cv_use_debug"
3553 if test "$no_cache" != 1; then
3554 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3555 fi
3556
3557 if test "$wxUSE_DEBUG" = yes; then
3558 echo "$as_me:$LINENO: result: yes" >&5
3559echo "${ECHO_T}yes" >&6
3560 else
3561 echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
3563 fi
3564
3565
3566 enablestring=
3567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3568echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3569 no_cache=0
3570 # Check whether --enable-stl or --disable-stl was given.
3571if test "${enable_stl+set}" = set; then
3572 enableval="$enable_stl"
3573
3574 if test "$enableval" = yes; then
3575 ac_cv_use_stl='wxUSE_STL=yes'
3576 else
3577 ac_cv_use_stl='wxUSE_STL=no'
3578 fi
3579
3580else
3581
3582 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3590
3591fi;
3592
3593 eval "$ac_cv_use_stl"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_STL" = yes; then
3599 echo "$as_me:$LINENO: result: yes" >&5
3600echo "${ECHO_T}yes" >&6
3601 else
3602 echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
3604 fi
3605
3606if test "$USE_OS2" = "1"; then
69120ee4 3607 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3608
3609 enablestring=
3610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3611echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3612 no_cache=0
3613 # Check whether --enable-omf or --disable-omf was given.
3614if test "${enable_omf+set}" = set; then
3615 enableval="$enable_omf"
3616
3617 if test "$enableval" = yes; then
3618 ac_cv_use_omf='wxUSE_OMF=yes'
3619 else
3620 ac_cv_use_omf='wxUSE_OMF=no'
3621 fi
3622
3623else
3624
3625 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3626 if test "x$LINE" != x ; then
3627 eval "DEFAULT_$LINE"
3628 else
3629 no_cache=1
3630 fi
3631
3632 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3633
3634fi;
3635
3636 eval "$ac_cv_use_omf"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_OMF" = yes; then
3642 echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6
3644 else
3645 echo "$as_me:$LINENO: result: no" >&5
3646echo "${ECHO_T}no" >&6
3647 fi
3648
3649fi
3650
3651if test "$wxUSE_DEBUG" = "yes"; then
3652 DEFAULT_wxUSE_DEBUG_FLAG=yes
3653 DEFAULT_wxUSE_DEBUG_INFO=yes
3654 BUILD=debug
3655elif test "$wxUSE_DEBUG" = "no"; then
3656 DEFAULT_wxUSE_DEBUG_FLAG=no
3657 DEFAULT_wxUSE_DEBUG_INFO=no
3658 BUILD=release
3659fi
3660
3661
3662 enablestring=
3663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3664echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3665 no_cache=0
3666 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3667if test "${enable_debug_flag+set}" = set; then
3668 enableval="$enable_debug_flag"
3669
3670 if test "$enableval" = yes; then
3671 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3672 else
3673 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3674 fi
3675
3676else
3677
3678 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3686
3687fi;
3688
3689 eval "$ac_cv_use_debug_flag"
3690 if test "$no_cache" != 1; then
3691 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3692 fi
3693
3694 if test "$wxUSE_DEBUG_FLAG" = yes; then
3695 echo "$as_me:$LINENO: result: yes" >&5
3696echo "${ECHO_T}yes" >&6
3697 else
3698 echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
3700 fi
3701
3702
3703 enablestring=
3704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3705echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3706 no_cache=0
3707 # Check whether --enable-debug_info or --disable-debug_info was given.
3708if test "${enable_debug_info+set}" = set; then
3709 enableval="$enable_debug_info"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3713 else
3714 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3715 fi
3716
3717else
3718
3719 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3727
3728fi;
3729
3730 eval "$ac_cv_use_debug_info"
3731 if test "$no_cache" != 1; then
3732 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3733 fi
3734
3735 if test "$wxUSE_DEBUG_INFO" = yes; then
3736 echo "$as_me:$LINENO: result: yes" >&5
3737echo "${ECHO_T}yes" >&6
3738 else
3739 echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6
3741 fi
3742
3743
3744 enablestring=
3745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3746echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3747 no_cache=0
3748 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3749if test "${enable_debug_gdb+set}" = set; then
3750 enableval="$enable_debug_gdb"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3754 else
3755 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3756 fi
3757
3758else
3759
3760 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3768
3769fi;
3770
3771 eval "$ac_cv_use_debug_gdb"
3772 if test "$no_cache" != 1; then
3773 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3774 fi
3775
3776 if test "$wxUSE_DEBUG_GDB" = yes; then
3777 echo "$as_me:$LINENO: result: yes" >&5
3778echo "${ECHO_T}yes" >&6
3779 else
3780 echo "$as_me:$LINENO: result: no" >&5
3781echo "${ECHO_T}no" >&6
3782 fi
3783
3784
3785 enablestring=
3786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3787echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3788 no_cache=0
3789 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3790if test "${enable_debug_cntxt+set}" = set; then
3791 enableval="$enable_debug_cntxt"
3792
3793 if test "$enableval" = yes; then
3794 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3795 else
3796 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3797 fi
3798
3799else
3800
3801 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3802 if test "x$LINE" != x ; then
3803 eval "DEFAULT_$LINE"
3804 else
3805 no_cache=1
3806 fi
3807
3808 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3809
3810fi;
3811
3812 eval "$ac_cv_use_debug_cntxt"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3818 echo "$as_me:$LINENO: result: yes" >&5
3819echo "${ECHO_T}yes" >&6
3820 else
3821 echo "$as_me:$LINENO: result: no" >&5
3822echo "${ECHO_T}no" >&6
3823 fi
3824
3825
3826 enablestring=
3827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3828echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3829 no_cache=0
3830 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3831if test "${enable_mem_tracing+set}" = set; then
3832 enableval="$enable_mem_tracing"
3833
3834 if test "$enableval" = yes; then
3835 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3836 else
3837 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3838 fi
3839
3840else
3841
3842 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3843 if test "x$LINE" != x ; then
3844 eval "DEFAULT_$LINE"
3845 else
3846 no_cache=1
3847 fi
3848
3849 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3850
3851fi;
3852
3853 eval "$ac_cv_use_mem_tracing"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_MEM_TRACING" = yes; then
3859 echo "$as_me:$LINENO: result: yes" >&5
3860echo "${ECHO_T}yes" >&6
3861 else
3862 echo "$as_me:$LINENO: result: no" >&5
3863echo "${ECHO_T}no" >&6
3864 fi
3865
3866
3867 enablestring=
3868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3869echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3870 no_cache=0
3871 # Check whether --enable-profile or --disable-profile was given.
3872if test "${enable_profile+set}" = set; then
3873 enableval="$enable_profile"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_profile='wxUSE_PROFILE=yes'
3877 else
3878 ac_cv_use_profile='wxUSE_PROFILE=no'
3879 fi
3880
3881else
3882
3883 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3891
3892fi;
3893
3894 eval "$ac_cv_use_profile"
3895 if test "$no_cache" != 1; then
3896 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3897 fi
3898
3899 if test "$wxUSE_PROFILE" = yes; then
3900 echo "$as_me:$LINENO: result: yes" >&5
3901echo "${ECHO_T}yes" >&6
3902 else
3903 echo "$as_me:$LINENO: result: no" >&5
3904echo "${ECHO_T}no" >&6
3905 fi
3906
3907
3908 enablestring=
3909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3910echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3911 no_cache=0
3912 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3913if test "${enable_no_rtti+set}" = set; then
3914 enableval="$enable_no_rtti"
3915
3916 if test "$enableval" = yes; then
3917 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3918 else
3919 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3920 fi
3921
3922else
3923
3924 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3925 if test "x$LINE" != x ; then
3926 eval "DEFAULT_$LINE"
3927 else
3928 no_cache=1
3929 fi
3930
3931 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3932
3933fi;
3934
3935 eval "$ac_cv_use_no_rtti"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_NO_RTTI" = yes; then
3941 echo "$as_me:$LINENO: result: yes" >&5
3942echo "${ECHO_T}yes" >&6
3943 else
3944 echo "$as_me:$LINENO: result: no" >&5
3945echo "${ECHO_T}no" >&6
3946 fi
3947
3948
3949 enablestring=
3950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3951echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3952 no_cache=0
3953 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3954if test "${enable_no_exceptions+set}" = set; then
3955 enableval="$enable_no_exceptions"
3956
3957 if test "$enableval" = yes; then
3958 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3959 else
3960 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3961 fi
3962
3963else
3964
3965 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3966 if test "x$LINE" != x ; then
3967 eval "DEFAULT_$LINE"
3968 else
3969 no_cache=1
3970 fi
3971
3972 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3973
3974fi;
3975
3976 eval "$ac_cv_use_no_exceptions"
3977 if test "$no_cache" != 1; then
3978 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3979 fi
3980
3981 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3982 echo "$as_me:$LINENO: result: yes" >&5
3983echo "${ECHO_T}yes" >&6
3984 else
3985 echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987 fi
3988
3989
3990 enablestring=
3991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3992echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3993 no_cache=0
3994 # Check whether --enable-permissive or --disable-permissive was given.
3995if test "${enable_permissive+set}" = set; then
3996 enableval="$enable_permissive"
3997
3998 if test "$enableval" = yes; then
3999 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4000 else
4001 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4002 fi
4003
4004else
4005
4006 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4014
4015fi;
4016
4017 eval "$ac_cv_use_permissive"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_PERMISSIVE" = yes; then
4023 echo "$as_me:$LINENO: result: yes" >&5
4024echo "${ECHO_T}yes" >&6
4025 else
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
4028 fi
4029
4030
4031 enablestring=
4032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4033echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4034 no_cache=0
4035 # Check whether --enable-no_deps or --disable-no_deps was given.
4036if test "${enable_no_deps+set}" = set; then
4037 enableval="$enable_no_deps"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4041 else
4042 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4043 fi
4044
4045else
4046
4047 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4055
4056fi;
4057
4058 eval "$ac_cv_use_no_deps"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_NO_DEPS" = yes; then
4064 echo "$as_me:$LINENO: result: yes" >&5
4065echo "${ECHO_T}yes" >&6
4066 else
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
4069 fi
4070
4071
4072
4073 enablestring=
4074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4075echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4076 no_cache=0
4077 # Check whether --enable-compat22 or --disable-compat22 was given.
4078if test "${enable_compat22+set}" = set; then
4079 enableval="$enable_compat22"
4080
4081 if test "$enableval" = yes; then
4082 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4083 else
4084 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4085 fi
4086
4087else
4088
4089 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4090 if test "x$LINE" != x ; then
4091 eval "DEFAULT_$LINE"
4092 else
4093 no_cache=1
4094 fi
4095
4096 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4097
4098fi;
4099
4100 eval "$ac_cv_use_compat22"
4101 if test "$no_cache" != 1; then
4102 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4103 fi
4104
4105 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4106 echo "$as_me:$LINENO: result: yes" >&5
4107echo "${ECHO_T}yes" >&6
4108 else
4109 echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
4111 fi
4112
4113
4114 enablestring=disable
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4116echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4117 no_cache=0
4118 # Check whether --enable-compat24 or --disable-compat24 was given.
4119if test "${enable_compat24+set}" = set; then
4120 enableval="$enable_compat24"
4121
4122 if test "$enableval" = yes; then
4123 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4124 else
4125 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4126 fi
4127
4128else
4129
4130 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4138
4139fi;
4140
4141 eval "$ac_cv_use_compat24"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4147 echo "$as_me:$LINENO: result: yes" >&5
4148echo "${ECHO_T}yes" >&6
4149 else
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152 fi
4153
4154
ffa0583f
RL
4155
4156 enablestring=
4157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4158echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4159 no_cache=0
4160 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4161if test "${enable_rpath+set}" = set; then
4162 enableval="$enable_rpath"
ffa0583f
RL
4163
4164 if test "$enableval" = yes; then
4165 ac_cv_use_rpath='wxUSE_RPATH=yes'
4166 else
4167 ac_cv_use_rpath='wxUSE_RPATH=no'
4168 fi
4169
4170else
4171
4172 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4173 if test "x$LINE" != x ; then
4174 eval "DEFAULT_$LINE"
4175 else
4176 no_cache=1
4177 fi
4178
4179 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4180
a848cd7e
SC
4181fi;
4182
ffa0583f
RL
4183 eval "$ac_cv_use_rpath"
4184 if test "$no_cache" != 1; then
4185 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4186 fi
4187
4188 if test "$wxUSE_RPATH" = yes; then
4189 echo "$as_me:$LINENO: result: yes" >&5
4190echo "${ECHO_T}yes" >&6
4191 else
4192 echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
4194 fi
4195
a848cd7e
SC
4196
4197
4198
4199
4200 enablestring=
4201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4202echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4203 no_cache=0
4204 # Check whether --enable-intl or --disable-intl was given.
4205if test "${enable_intl+set}" = set; then
4206 enableval="$enable_intl"
4207
4208 if test "$enableval" = yes; then
4209 ac_cv_use_intl='wxUSE_INTL=yes'
4210 else
4211 ac_cv_use_intl='wxUSE_INTL=no'
4212 fi
4213
4214else
4215
4216 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4217 if test "x$LINE" != x ; then
4218 eval "DEFAULT_$LINE"
4219 else
4220 no_cache=1
4221 fi
4222
4223 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4224
4225fi;
4226
4227 eval "$ac_cv_use_intl"
4228 if test "$no_cache" != 1; then
4229 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4230 fi
4231
4232 if test "$wxUSE_INTL" = yes; then
4233 echo "$as_me:$LINENO: result: yes" >&5
4234echo "${ECHO_T}yes" >&6
4235 else
4236 echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238 fi
4239
4240
4241 enablestring=
4242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4243echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4244 no_cache=0
4245 # Check whether --enable-config or --disable-config was given.
4246if test "${enable_config+set}" = set; then
4247 enableval="$enable_config"
4248
4249 if test "$enableval" = yes; then
4250 ac_cv_use_config='wxUSE_CONFIG=yes'
4251 else
4252 ac_cv_use_config='wxUSE_CONFIG=no'
4253 fi
4254
4255else
4256
4257 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4265
4266fi;
4267
4268 eval "$ac_cv_use_config"
4269 if test "$no_cache" != 1; then
4270 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4271 fi
4272
4273 if test "$wxUSE_CONFIG" = yes; then
4274 echo "$as_me:$LINENO: result: yes" >&5
4275echo "${ECHO_T}yes" >&6
4276 else
4277 echo "$as_me:$LINENO: result: no" >&5
4278echo "${ECHO_T}no" >&6
4279 fi
4280
4281
4282
4283 enablestring=
4284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4285echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4286 no_cache=0
4287 # Check whether --enable-protocols or --disable-protocols was given.
4288if test "${enable_protocols+set}" = set; then
4289 enableval="$enable_protocols"
4290
4291 if test "$enableval" = yes; then
4292 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4293 else
4294 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4295 fi
4296
4297else
4298
4299 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4300 if test "x$LINE" != x ; then
4301 eval "DEFAULT_$LINE"
4302 else
4303 no_cache=1
4304 fi
4305
4306 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4307
4308fi;
4309
4310 eval "$ac_cv_use_protocols"
4311 if test "$no_cache" != 1; then
4312 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4313 fi
4314
4315 if test "$wxUSE_PROTOCOL" = yes; then
4316 echo "$as_me:$LINENO: result: yes" >&5
4317echo "${ECHO_T}yes" >&6
4318 else
4319 echo "$as_me:$LINENO: result: no" >&5
4320echo "${ECHO_T}no" >&6
4321 fi
4322
4323
4324 enablestring=
4325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4326echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4327 no_cache=0
4328 # Check whether --enable-ftp or --disable-ftp was given.
4329if test "${enable_ftp+set}" = set; then
4330 enableval="$enable_ftp"
4331
4332 if test "$enableval" = yes; then
4333 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4334 else
4335 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4336 fi
4337
4338else
4339
4340 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4341 if test "x$LINE" != x ; then
4342 eval "DEFAULT_$LINE"
4343 else
4344 no_cache=1
4345 fi
4346
4347 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4348
4349fi;
4350
4351 eval "$ac_cv_use_ftp"
4352 if test "$no_cache" != 1; then
4353 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4354 fi
4355
4356 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4357 echo "$as_me:$LINENO: result: yes" >&5
4358echo "${ECHO_T}yes" >&6
4359 else
4360 echo "$as_me:$LINENO: result: no" >&5
4361echo "${ECHO_T}no" >&6
4362 fi
4363
4364
4365 enablestring=
4366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4367echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4368 no_cache=0
4369 # Check whether --enable-http or --disable-http was given.
4370if test "${enable_http+set}" = set; then
4371 enableval="$enable_http"
4372
4373 if test "$enableval" = yes; then
4374 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4375 else
4376 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4377 fi
4378
4379else
4380
4381 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4382 if test "x$LINE" != x ; then
4383 eval "DEFAULT_$LINE"
4384 else
4385 no_cache=1
4386 fi
4387
4388 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4389
4390fi;
4391
4392 eval "$ac_cv_use_http"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4398 echo "$as_me:$LINENO: result: yes" >&5
4399echo "${ECHO_T}yes" >&6
4400 else
4401 echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6
4403 fi
4404
4405
4406 enablestring=
4407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4408echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4409 no_cache=0
4410 # Check whether --enable-fileproto or --disable-fileproto was given.
4411if test "${enable_fileproto+set}" = set; then
4412 enableval="$enable_fileproto"
4413
4414 if test "$enableval" = yes; then
4415 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4416 else
4417 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4418 fi
4419
4420else
4421
4422 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4423 if test "x$LINE" != x ; then
4424 eval "DEFAULT_$LINE"
4425 else
4426 no_cache=1
4427 fi
4428
4429 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4430
4431fi;
4432
4433 eval "$ac_cv_use_fileproto"
4434 if test "$no_cache" != 1; then
4435 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4436 fi
4437
4438 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4439 echo "$as_me:$LINENO: result: yes" >&5
4440echo "${ECHO_T}yes" >&6
4441 else
4442 echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6
4444 fi
4445
4446
4447 enablestring=
4448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4449echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4450 no_cache=0
4451 # Check whether --enable-sockets or --disable-sockets was given.
4452if test "${enable_sockets+set}" = set; then
4453 enableval="$enable_sockets"
4454
4455 if test "$enableval" = yes; then
4456 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4457 else
4458 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4459 fi
4460
4461else
4462
4463 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4464 if test "x$LINE" != x ; then
4465 eval "DEFAULT_$LINE"
4466 else
4467 no_cache=1
4468 fi
4469
4470 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4471
4472fi;
4473
4474 eval "$ac_cv_use_sockets"
4475 if test "$no_cache" != 1; then
4476 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4477 fi
4478
4479 if test "$wxUSE_SOCKETS" = yes; then
4480 echo "$as_me:$LINENO: result: yes" >&5
4481echo "${ECHO_T}yes" >&6
4482 else
4483 echo "$as_me:$LINENO: result: no" >&5
4484echo "${ECHO_T}no" >&6
4485 fi
4486
4487
4488 enablestring=
4489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4490echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4491 no_cache=0
4492 # Check whether --enable-ole or --disable-ole was given.
4493if test "${enable_ole+set}" = set; then
4494 enableval="$enable_ole"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_ole='wxUSE_OLE=yes'
4498 else
4499 ac_cv_use_ole='wxUSE_OLE=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4512
4513fi;
4514
4515 eval "$ac_cv_use_ole"
4516 if test "$no_cache" != 1; then
4517 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4518 fi
4519
4520 if test "$wxUSE_OLE" = yes; then
4521 echo "$as_me:$LINENO: result: yes" >&5
4522echo "${ECHO_T}yes" >&6
4523 else
4524 echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
4526 fi
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-dataobj or --disable-dataobj was given.
4534if test "${enable_dataobj+set}" = set; then
4535 enableval="$enable_dataobj"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4539 else
4540 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4553
4554fi;
4555
4556 eval "$ac_cv_use_dataobj"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_DATAOBJ" = yes; then
4562 echo "$as_me:$LINENO: result: yes" >&5
4563echo "${ECHO_T}yes" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567 fi
4568
4569
4570
4571 enablestring=
4572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4573echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4574 no_cache=0
4575 # Check whether --enable-ipc or --disable-ipc was given.
4576if test "${enable_ipc+set}" = set; then
4577 enableval="$enable_ipc"
4578
4579 if test "$enableval" = yes; then
4580 ac_cv_use_ipc='wxUSE_IPC=yes'
4581 else
4582 ac_cv_use_ipc='wxUSE_IPC=no'
4583 fi
4584
4585else
4586
4587 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4588 if test "x$LINE" != x ; then
4589 eval "DEFAULT_$LINE"
4590 else
4591 no_cache=1
4592 fi
4593
4594 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4595
4596fi;
4597
4598 eval "$ac_cv_use_ipc"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_IPC" = yes; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605echo "${ECHO_T}yes" >&6
4606 else
4607 echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6
4609 fi
4610
4611
4612
4613 enablestring=
4614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4615echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4616 no_cache=0
4617 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4618if test "${enable_apple_ieee+set}" = set; then
4619 enableval="$enable_apple_ieee"
4620
4621 if test "$enableval" = yes; then
4622 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4623 else
4624 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4625 fi
4626
4627else
4628
4629 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4630 if test "x$LINE" != x ; then
4631 eval "DEFAULT_$LINE"
4632 else
4633 no_cache=1
4634 fi
4635
4636 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4637
4638fi;
4639
4640 eval "$ac_cv_use_apple_ieee"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_APPLE_IEEE" = yes; then
4646 echo "$as_me:$LINENO: result: yes" >&5
4647echo "${ECHO_T}yes" >&6
4648 else
4649 echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6
4651 fi
4652
4653
81f90336
MW
4654 enablestring=
4655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4656echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4657 no_cache=0
4658 # Check whether --enable-arcstream or --disable-arcstream was given.
4659if test "${enable_arcstream+set}" = set; then
4660 enableval="$enable_arcstream"
4661
4662 if test "$enableval" = yes; then
9e8e867f 4663 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4664 else
9e8e867f 4665 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4666 fi
4667
4668else
4669
9e8e867f 4670 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
9e8e867f 4677 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4678
4679fi;
4680
4681 eval "$ac_cv_use_arcstream"
4682 if test "$no_cache" != 1; then
4683 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4684 fi
4685
9e8e867f 4686 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4687 echo "$as_me:$LINENO: result: yes" >&5
4688echo "${ECHO_T}yes" >&6
4689 else
4690 echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6
4692 fi
4693
4694
a848cd7e 4695 enablestring=
36b6448c
VZ
4696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4697echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4698 no_cache=0
36b6448c
VZ
4699 # Check whether --enable-backtrace or --disable-backtrace was given.
4700if test "${enable_backtrace+set}" = set; then
4701 enableval="$enable_backtrace"
a848cd7e
SC
4702
4703 if test "$enableval" = yes; then
36b6448c 4704 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4705 else
36b6448c 4706 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4707 fi
4708
4709else
4710
36b6448c 4711 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4712 if test "x$LINE" != x ; then
4713 eval "DEFAULT_$LINE"
4714 else
4715 no_cache=1
4716 fi
4717
36b6448c 4718 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4719
4720fi;
4721
36b6448c 4722 eval "$ac_cv_use_backtrace"
a848cd7e 4723 if test "$no_cache" != 1; then
36b6448c 4724 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4725 fi
4726
36b6448c 4727 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4728 echo "$as_me:$LINENO: result: yes" >&5
4729echo "${ECHO_T}yes" >&6
4730 else
4731 echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6
4733 fi
4734
4735
eaff0f0d 4736 enablestring=
36b6448c
VZ
4737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4738echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4739 no_cache=0
36b6448c
VZ
4740 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4741if test "${enable_catch_segvs+set}" = set; then
4742 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4743
4744 if test "$enableval" = yes; then
36b6448c 4745 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4746 else
36b6448c 4747 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4748 fi
4749
4750else
4751
36b6448c 4752 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4753 if test "x$LINE" != x ; then
4754 eval "DEFAULT_$LINE"
4755 else
4756 no_cache=1
4757 fi
4758
36b6448c 4759 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4760
4761fi;
4762
36b6448c 4763 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4764 if test "$no_cache" != 1; then
36b6448c 4765 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4766 fi
4767
36b6448c 4768 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4769 echo "$as_me:$LINENO: result: yes" >&5
4770echo "${ECHO_T}yes" >&6
4771 else
4772 echo "$as_me:$LINENO: result: no" >&5
4773echo "${ECHO_T}no" >&6
4774 fi
4775
4776
a848cd7e
SC
4777 enablestring=
4778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4779echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4780 no_cache=0
4781 # Check whether --enable-cmdline or --disable-cmdline was given.
4782if test "${enable_cmdline+set}" = set; then
4783 enableval="$enable_cmdline"
4784
4785 if test "$enableval" = yes; then
4786 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4787 else
4788 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4789 fi
4790
4791else
4792
4793 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4794 if test "x$LINE" != x ; then
4795 eval "DEFAULT_$LINE"
4796 else
4797 no_cache=1
4798 fi
4799
4800 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4801
4802fi;
4803
4804 eval "$ac_cv_use_cmdline"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4810 echo "$as_me:$LINENO: result: yes" >&5
4811echo "${ECHO_T}yes" >&6
4812 else
4813 echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815 fi
4816
4817
4818 enablestring=
4819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4820echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4821 no_cache=0
4822 # Check whether --enable-datetime or --disable-datetime was given.
4823if test "${enable_datetime+set}" = set; then
4824 enableval="$enable_datetime"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4828 else
4829 ac_cv_use_datetime='wxUSE_DATETIME=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4842
4843fi;
4844
4845 eval "$ac_cv_use_datetime"
4846 if test "$no_cache" != 1; then
4847 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4848 fi
4849
4850 if test "$wxUSE_DATETIME" = yes; then
4851 echo "$as_me:$LINENO: result: yes" >&5
4852echo "${ECHO_T}yes" >&6
4853 else
4854 echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856 fi
4857
4858
36b6448c
VZ
4859 enablestring=
4860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4861echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4862 no_cache=0
4863 # Check whether --enable-debugreport or --disable-debugreport was given.
4864if test "${enable_debugreport+set}" = set; then
4865 enableval="$enable_debugreport"
4866
4867 if test "$enableval" = yes; then
4868 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4869 else
4870 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4871 fi
4872
4873else
4874
4875 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
4882 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4883
4884fi;
4885
4886 eval "$ac_cv_use_debugreport"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_DEBUGREPORT" = yes; then
4892 echo "$as_me:$LINENO: result: yes" >&5
4893echo "${ECHO_T}yes" >&6
4894 else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897 fi
4898
4899
a848cd7e
SC
4900 enablestring=
4901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4902echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4903 no_cache=0
4904 # Check whether --enable-dialupman or --disable-dialupman was given.
4905if test "${enable_dialupman+set}" = set; then
4906 enableval="$enable_dialupman"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4910 else
4911 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4924
4925fi;
4926
4927 eval "$ac_cv_use_dialupman"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4933 echo "$as_me:$LINENO: result: yes" >&5
4934echo "${ECHO_T}yes" >&6
4935 else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938 fi
4939
4940
4941 enablestring=
4942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4943echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4944 no_cache=0
4945 # Check whether --enable-dynlib or --disable-dynlib was given.
4946if test "${enable_dynlib+set}" = set; then
4947 enableval="$enable_dynlib"
4948
4949 if test "$enableval" = yes; then
4950 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4951 else
4952 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4953 fi
4954
4955else
4956
4957 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4965
4966fi;
4967
4968 eval "$ac_cv_use_dynlib"
4969 if test "$no_cache" != 1; then
4970 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4971 fi
4972
4973 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4974 echo "$as_me:$LINENO: result: yes" >&5
4975echo "${ECHO_T}yes" >&6
4976 else
4977 echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6
4979 fi
4980
4981
4982 enablestring=
4983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4984echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4985 no_cache=0
4986 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4987if test "${enable_dynamicloader+set}" = set; then
4988 enableval="$enable_dynamicloader"
4989
4990 if test "$enableval" = yes; then
4991 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4992 else
4993 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4994 fi
4995
4996else
4997
4998 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5006
5007fi;
5008
5009 eval "$ac_cv_use_dynamicloader"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5015 echo "$as_me:$LINENO: result: yes" >&5
5016echo "${ECHO_T}yes" >&6
5017 else
5018 echo "$as_me:$LINENO: result: no" >&5
5019echo "${ECHO_T}no" >&6
5020 fi
5021
5022
5023 enablestring=
5024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5025echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5026 no_cache=0
5027 # Check whether --enable-exceptions or --disable-exceptions was given.
5028if test "${enable_exceptions+set}" = set; then
5029 enableval="$enable_exceptions"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5033 else
5034 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5035 fi
5036
5037else
5038
5039 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5047
5048fi;
5049
5050 eval "$ac_cv_use_exceptions"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_EXCEPTIONS" = yes; then
5056 echo "$as_me:$LINENO: result: yes" >&5
5057echo "${ECHO_T}yes" >&6
5058 else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061 fi
5062
5063
5064 enablestring=
5065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5066echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5067 no_cache=0
5068 # Check whether --enable-ffile or --disable-ffile was given.
5069if test "${enable_ffile+set}" = set; then
5070 enableval="$enable_ffile"
5071
5072 if test "$enableval" = yes; then
5073 ac_cv_use_ffile='wxUSE_FFILE=yes'
5074 else
5075 ac_cv_use_ffile='wxUSE_FFILE=no'
5076 fi
5077
5078else
5079
5080 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5088
5089fi;
5090
5091 eval "$ac_cv_use_ffile"
5092 if test "$no_cache" != 1; then
5093 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5094 fi
5095
5096 if test "$wxUSE_FFILE" = yes; then
5097 echo "$as_me:$LINENO: result: yes" >&5
5098echo "${ECHO_T}yes" >&6
5099 else
5100 echo "$as_me:$LINENO: result: no" >&5
5101echo "${ECHO_T}no" >&6
5102 fi
5103
5104
5105 enablestring=
5106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5107echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5108 no_cache=0
5109 # Check whether --enable-file or --disable-file was given.
5110if test "${enable_file+set}" = set; then
5111 enableval="$enable_file"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_file='wxUSE_FILE=yes'
5115 else
5116 ac_cv_use_file='wxUSE_FILE=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5129
5130fi;
5131
5132 eval "$ac_cv_use_file"
5133 if test "$no_cache" != 1; then
5134 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5135 fi
5136
5137 if test "$wxUSE_FILE" = yes; then
5138 echo "$as_me:$LINENO: result: yes" >&5
5139echo "${ECHO_T}yes" >&6
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
5143 fi
5144
5145
5146 enablestring=
5147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5148echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5149 no_cache=0
5150 # Check whether --enable-filesystem or --disable-filesystem was given.
5151if test "${enable_filesystem+set}" = set; then
5152 enableval="$enable_filesystem"
5153
5154 if test "$enableval" = yes; then
5155 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5156 else
5157 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5158 fi
5159
5160else
5161
5162 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5170
5171fi;
5172
5173 eval "$ac_cv_use_filesystem"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_FILESYSTEM" = yes; then
5179 echo "$as_me:$LINENO: result: yes" >&5
5180echo "${ECHO_T}yes" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184 fi
5185
5186
5187 enablestring=
5188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5189echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5190 no_cache=0
5191 # Check whether --enable-fontmap or --disable-fontmap was given.
5192if test "${enable_fontmap+set}" = set; then
5193 enableval="$enable_fontmap"
5194
5195 if test "$enableval" = yes; then
5196 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5197 else
5198 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5199 fi
5200
5201else
5202
5203 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5204 if test "x$LINE" != x ; then
5205 eval "DEFAULT_$LINE"
5206 else
5207 no_cache=1
5208 fi
5209
5210 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5211
5212fi;
5213
5214 eval "$ac_cv_use_fontmap"
5215 if test "$no_cache" != 1; then
5216 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5217 fi
5218
5219 if test "$wxUSE_FONTMAP" = yes; then
5220 echo "$as_me:$LINENO: result: yes" >&5
5221echo "${ECHO_T}yes" >&6
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
5225 fi
5226
5227
5228 enablestring=
5229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5230echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5231 no_cache=0
5232 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5233if test "${enable_fs_inet+set}" = set; then
5234 enableval="$enable_fs_inet"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5238 else
5239 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5240 fi
5241
5242else
5243
5244 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5252
5253fi;
5254
5255 eval "$ac_cv_use_fs_inet"
5256 if test "$no_cache" != 1; then
5257 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5258 fi
5259
5260 if test "$wxUSE_FS_INET" = yes; then
5261 echo "$as_me:$LINENO: result: yes" >&5
5262echo "${ECHO_T}yes" >&6
5263 else
5264 echo "$as_me:$LINENO: result: no" >&5
5265echo "${ECHO_T}no" >&6
5266 fi
5267
5268
5269 enablestring=
5270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5271echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5272 no_cache=0
5273 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5274if test "${enable_fs_zip+set}" = set; then
5275 enableval="$enable_fs_zip"
5276
5277 if test "$enableval" = yes; then
5278 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5279 else
5280 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5281 fi
5282
5283else
5284
5285 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5286 if test "x$LINE" != x ; then
5287 eval "DEFAULT_$LINE"
5288 else
5289 no_cache=1
5290 fi
5291
5292 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5293
5294fi;
5295
5296 eval "$ac_cv_use_fs_zip"
5297 if test "$no_cache" != 1; then
5298 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5299 fi
5300
5301 if test "$wxUSE_FS_ZIP" = yes; then
5302 echo "$as_me:$LINENO: result: yes" >&5
5303echo "${ECHO_T}yes" >&6
5304 else
5305 echo "$as_me:$LINENO: result: no" >&5
5306echo "${ECHO_T}no" >&6
5307 fi
5308
5309
5310 enablestring=
5311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5312echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5313 no_cache=0
5314 # Check whether --enable-geometry or --disable-geometry was given.
5315if test "${enable_geometry+set}" = set; then
5316 enableval="$enable_geometry"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5320 else
5321 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5322 fi
5323
5324else
5325
5326 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5334
5335fi;
5336
5337 eval "$ac_cv_use_geometry"
5338 if test "$no_cache" != 1; then
5339 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5340 fi
5341
5342 if test "$wxUSE_GEOMETRY" = yes; then
5343 echo "$as_me:$LINENO: result: yes" >&5
5344echo "${ECHO_T}yes" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348 fi
5349
5350
5351 enablestring=
5352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5353echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5354 no_cache=0
5355 # Check whether --enable-log or --disable-log was given.
5356if test "${enable_log+set}" = set; then
5357 enableval="$enable_log"
5358
5359 if test "$enableval" = yes; then
5360 ac_cv_use_log='wxUSE_LOG=yes'
5361 else
5362 ac_cv_use_log='wxUSE_LOG=no'
5363 fi
5364
5365else
5366
5367 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5368 if test "x$LINE" != x ; then
5369 eval "DEFAULT_$LINE"
5370 else
5371 no_cache=1
5372 fi
5373
5374 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5375
5376fi;
5377
5378 eval "$ac_cv_use_log"
5379 if test "$no_cache" != 1; then
5380 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5381 fi
5382
5383 if test "$wxUSE_LOG" = yes; then
5384 echo "$as_me:$LINENO: result: yes" >&5
5385echo "${ECHO_T}yes" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389 fi
5390
5391
5392 enablestring=
5393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5394echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5395 no_cache=0
5396 # Check whether --enable-longlong or --disable-longlong was given.
5397if test "${enable_longlong+set}" = set; then
5398 enableval="$enable_longlong"
5399
5400 if test "$enableval" = yes; then
5401 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5402 else
5403 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5404 fi
5405
5406else
5407
5408 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5409 if test "x$LINE" != x ; then
5410 eval "DEFAULT_$LINE"
5411 else
5412 no_cache=1
5413 fi
5414
5415 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5416
5417fi;
5418
5419 eval "$ac_cv_use_longlong"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_LONGLONG" = yes; then
5425 echo "$as_me:$LINENO: result: yes" >&5
5426echo "${ECHO_T}yes" >&6
5427 else
5428 echo "$as_me:$LINENO: result: no" >&5
5429echo "${ECHO_T}no" >&6
5430 fi
5431
5432
5433 enablestring=
5434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5435echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5436 no_cache=0
5437 # Check whether --enable-mimetype or --disable-mimetype was given.
5438if test "${enable_mimetype+set}" = set; then
5439 enableval="$enable_mimetype"
5440
5441 if test "$enableval" = yes; then
5442 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5443 else
5444 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5445 fi
5446
5447else
5448
5449 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5450 if test "x$LINE" != x ; then
5451 eval "DEFAULT_$LINE"
5452 else
5453 no_cache=1
5454 fi
5455
5456 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5457
5458fi;
5459
5460 eval "$ac_cv_use_mimetype"
5461 if test "$no_cache" != 1; then
5462 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5463 fi
5464
5465 if test "$wxUSE_MIMETYPE" = yes; then
5466 echo "$as_me:$LINENO: result: yes" >&5
5467echo "${ECHO_T}yes" >&6
5468 else
5469 echo "$as_me:$LINENO: result: no" >&5
5470echo "${ECHO_T}no" >&6
5471 fi
5472
5473
5474 enablestring=
5475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5476echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5477 no_cache=0
5478 # Check whether --enable-mslu or --disable-mslu was given.
5479if test "${enable_mslu+set}" = set; then
5480 enableval="$enable_mslu"
5481
5482 if test "$enableval" = yes; then
5483 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5484 else
5485 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5486 fi
5487
5488else
5489
5490 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5491 if test "x$LINE" != x ; then
5492 eval "DEFAULT_$LINE"
5493 else
5494 no_cache=1
5495 fi
5496
5497 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5498
5499fi;
5500
5501 eval "$ac_cv_use_mslu"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_UNICODE_MSLU" = yes; then
5507 echo "$as_me:$LINENO: result: yes" >&5
5508echo "${ECHO_T}yes" >&6
5509 else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512 fi
5513
5514
5515 enablestring=
5516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5517echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5518 no_cache=0
5519 # Check whether --enable-snglinst or --disable-snglinst was given.
5520if test "${enable_snglinst+set}" = set; then
5521 enableval="$enable_snglinst"
5522
5523 if test "$enableval" = yes; then
5524 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5525 else
5526 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5527 fi
5528
5529else
5530
5531 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5539
5540fi;
5541
5542 eval "$ac_cv_use_snglinst"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5548 echo "$as_me:$LINENO: result: yes" >&5
5549echo "${ECHO_T}yes" >&6
5550 else
5551 echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6
5553 fi
5554
5555
5556 enablestring=
07158944
VZ
5557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5558echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5559 no_cache=0
07158944
VZ
5560 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5561if test "${enable_std_iostreams+set}" = set; then
5562 enableval="$enable_std_iostreams"
a848cd7e
SC
5563
5564 if test "$enableval" = yes; then
07158944 5565 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5566 else
07158944 5567 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5568 fi
5569
5570else
5571
07158944 5572 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
07158944 5579 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5580
5581fi;
5582
07158944 5583 eval "$ac_cv_use_std_iostreams"
a848cd7e 5584 if test "$no_cache" != 1; then
07158944 5585 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5586 fi
5587
07158944 5588 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5589 echo "$as_me:$LINENO: result: yes" >&5
5590echo "${ECHO_T}yes" >&6
5591 else
5592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594 fi
5595
5596
59746b65
MW
5597 enablestring=
5598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5599echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5600 no_cache=0
5601 # Check whether --enable-std_string or --disable-std_string was given.
5602if test "${enable_std_string+set}" = set; then
5603 enableval="$enable_std_string"
5604
5605 if test "$enableval" = yes; then
5606 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5607 else
5608 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5609 fi
5610
5611else
5612
5613 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5621
5622fi;
5623
5624 eval "$ac_cv_use_std_string"
5625 if test "$no_cache" != 1; then
5626 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5627 fi
5628
5629 if test "$wxUSE_STD_STRING" = yes; then
5630 echo "$as_me:$LINENO: result: yes" >&5
5631echo "${ECHO_T}yes" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635 fi
5636
5637
a848cd7e 5638 enablestring=
07158944
VZ
5639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5640echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5641 no_cache=0
07158944
VZ
5642 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5643if test "${enable_stdpaths+set}" = set; then
5644 enableval="$enable_stdpaths"
a848cd7e
SC
5645
5646 if test "$enableval" = yes; then
07158944 5647 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5648 else
07158944 5649 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5650 fi
5651
5652else
5653
07158944 5654 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5655 if test "x$LINE" != x ; then
5656 eval "DEFAULT_$LINE"
5657 else
5658 no_cache=1
5659 fi
5660
07158944 5661 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5662
5663fi;
5664
07158944 5665 eval "$ac_cv_use_stdpaths"
a848cd7e 5666 if test "$no_cache" != 1; then
07158944 5667 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5668 fi
5669
07158944 5670 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5671 echo "$as_me:$LINENO: result: yes" >&5
5672echo "${ECHO_T}yes" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676 fi
5677
5678
5679 enablestring=
5680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5681echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5682 no_cache=0
5683 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5684if test "${enable_stopwatch+set}" = set; then
5685 enableval="$enable_stopwatch"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5689 else
5690 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5691 fi
5692
5693else
5694
5695 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5703
5704fi;
5705
5706 eval "$ac_cv_use_stopwatch"
5707 if test "$no_cache" != 1; then
5708 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5709 fi
5710
5711 if test "$wxUSE_STOPWATCH" = yes; then
5712 echo "$as_me:$LINENO: result: yes" >&5
5713echo "${ECHO_T}yes" >&6
5714 else
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717 fi
5718
5719
07158944
VZ
5720 enablestring=
5721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5722echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5723 no_cache=0
5724 # Check whether --enable-streams or --disable-streams was given.
5725if test "${enable_streams+set}" = set; then
5726 enableval="$enable_streams"
5727
5728 if test "$enableval" = yes; then
5729 ac_cv_use_streams='wxUSE_STREAMS=yes'
5730 else
5731 ac_cv_use_streams='wxUSE_STREAMS=no'
5732 fi
5733
5734else
5735
5736 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 else
5740 no_cache=1
5741 fi
5742
5743 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5744
5745fi;
5746
5747 eval "$ac_cv_use_streams"
5748 if test "$no_cache" != 1; then
5749 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5750 fi
5751
5752 if test "$wxUSE_STREAMS" = yes; then
5753 echo "$as_me:$LINENO: result: yes" >&5
5754echo "${ECHO_T}yes" >&6
5755 else
5756 echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758 fi
5759
5760
a848cd7e
SC
5761 enablestring=
5762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5763echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5764 no_cache=0
5765 # Check whether --enable-system_options or --disable-system_options was given.
5766if test "${enable_system_options+set}" = set; then
5767 enableval="$enable_system_options"
5768
5769 if test "$enableval" = yes; then
5770 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5771 else
5772 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5773 fi
5774
5775else
5776
5777 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5778 if test "x$LINE" != x ; then
5779 eval "DEFAULT_$LINE"
5780 else
5781 no_cache=1
5782 fi
5783
5784 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5785
5786fi;
5787
5788 eval "$ac_cv_use_system_options"
5789 if test "$no_cache" != 1; then
5790 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5791 fi
5792
5793 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5794 echo "$as_me:$LINENO: result: yes" >&5
5795echo "${ECHO_T}yes" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799 fi
5800
5801
5802 enablestring=
5803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5804echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5805 no_cache=0
5806 # Check whether --enable-textbuf or --disable-textbuf was given.
5807if test "${enable_textbuf+set}" = set; then
5808 enableval="$enable_textbuf"
5809
5810 if test "$enableval" = yes; then
5811 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5812 else
5813 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5814 fi
5815
5816else
5817
5818 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5819 if test "x$LINE" != x ; then
5820 eval "DEFAULT_$LINE"
5821 else
5822 no_cache=1
5823 fi
5824
5825 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5826
5827fi;
5828
5829 eval "$ac_cv_use_textbuf"
5830 if test "$no_cache" != 1; then
5831 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5832 fi
5833
5834 if test "$wxUSE_TEXTBUFFER" = yes; then
5835 echo "$as_me:$LINENO: result: yes" >&5
5836echo "${ECHO_T}yes" >&6
5837 else
5838 echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840 fi
5841
5842
5843 enablestring=
5844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5845echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5846 no_cache=0
5847 # Check whether --enable-textfile or --disable-textfile was given.
5848if test "${enable_textfile+set}" = set; then
5849 enableval="$enable_textfile"
5850
5851 if test "$enableval" = yes; then
5852 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5853 else
5854 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5855 fi
5856
5857else
5858
5859 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
5866 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5867
5868fi;
5869
5870 eval "$ac_cv_use_textfile"
5871 if test "$no_cache" != 1; then
5872 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5873 fi
5874
5875 if test "$wxUSE_TEXTFILE" = yes; then
5876 echo "$as_me:$LINENO: result: yes" >&5
5877echo "${ECHO_T}yes" >&6
5878 else
5879 echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6
5881 fi
5882
5883
5884 enablestring=
5885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5886echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5887 no_cache=0
5888 # Check whether --enable-timer or --disable-timer was given.
5889if test "${enable_timer+set}" = set; then
5890 enableval="$enable_timer"
5891
5892 if test "$enableval" = yes; then
5893 ac_cv_use_timer='wxUSE_TIMER=yes'
5894 else
5895 ac_cv_use_timer='wxUSE_TIMER=no'
5896 fi
5897
5898else
5899
5900 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5901 if test "x$LINE" != x ; then
5902 eval "DEFAULT_$LINE"
5903 else
5904 no_cache=1
5905 fi
5906
5907 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5908
5909fi;
5910
5911 eval "$ac_cv_use_timer"
5912 if test "$no_cache" != 1; then
5913 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5914 fi
5915
5916 if test "$wxUSE_TIMER" = yes; then
5917 echo "$as_me:$LINENO: result: yes" >&5
5918echo "${ECHO_T}yes" >&6
5919 else
5920 echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6
5922 fi
5923
5924
5925 enablestring=
5926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5927echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5928 no_cache=0
5929 # Check whether --enable-unicode or --disable-unicode was given.
5930if test "${enable_unicode+set}" = set; then
5931 enableval="$enable_unicode"
5932
5933 if test "$enableval" = yes; then
5934 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5935 else
5936 ac_cv_use_unicode='wxUSE_UNICODE=no'
5937 fi
5938
5939else
5940
5941 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5942 if test "x$LINE" != x ; then
5943 eval "DEFAULT_$LINE"
5944 else
5945 no_cache=1
5946 fi
5947
5948 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5949
5950fi;
5951
5952 eval "$ac_cv_use_unicode"
5953 if test "$no_cache" != 1; then
5954 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5955 fi
5956
5957 if test "$wxUSE_UNICODE" = yes; then
5958 echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6
5960 else
5961 echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6
5963 fi
5964
5965
5966 enablestring=
5967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5968echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5969 no_cache=0
5970 # Check whether --enable-sound or --disable-sound was given.
5971if test "${enable_sound+set}" = set; then
5972 enableval="$enable_sound"
5973
5974 if test "$enableval" = yes; then
5975 ac_cv_use_sound='wxUSE_SOUND=yes'
5976 else
5977 ac_cv_use_sound='wxUSE_SOUND=no'
5978 fi
5979
5980else
5981
5982 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5983 if test "x$LINE" != x ; then
5984 eval "DEFAULT_$LINE"
5985 else
5986 no_cache=1
5987 fi
5988
5989 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5990
5991fi;
5992
5993 eval "$ac_cv_use_sound"
5994 if test "$no_cache" != 1; then
5995 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5996 fi
5997
5998 if test "$wxUSE_SOUND" = yes; then
5999 echo "$as_me:$LINENO: result: yes" >&5
6000echo "${ECHO_T}yes" >&6
6001 else
6002 echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6
6004 fi
6005
6006
3b57de8b
RL
6007 enablestring=
6008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6009echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6010 no_cache=0
6011 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6012if test "${enable_mediactrl+set}" = set; then
6013 enableval="$enable_mediactrl"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6017 else
6018 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6019 fi
6020
6021else
6022
6023 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6031
6032fi;
6033
6034 eval "$ac_cv_use_mediactrl"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_MEDIACTRL" = yes; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045 fi
6046
6047
a848cd7e
SC
6048 enablestring=
6049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6050echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6051 no_cache=0
6052 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6053if test "${enable_wxprintfv+set}" = set; then
6054 enableval="$enable_wxprintfv"
6055
6056 if test "$enableval" = yes; then
6057 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6058 else
6059 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6060 fi
6061
6062else
6063
6064 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6072
6073fi;
6074
6075 eval "$ac_cv_use_wxprintfv"
6076 if test "$no_cache" != 1; then
6077 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6078 fi
6079
6080 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6081 echo "$as_me:$LINENO: result: yes" >&5
6082echo "${ECHO_T}yes" >&6
6083 else
6084 echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086 fi
6087
6088
6089 enablestring=
6090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6091echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6092 no_cache=0
6093 # Check whether --enable-zipstream or --disable-zipstream was given.
6094if test "${enable_zipstream+set}" = set; then
6095 enableval="$enable_zipstream"
6096
6097 if test "$enableval" = yes; then
6098 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6099 else
6100 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6101 fi
6102
6103else
6104
6105 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6106 if test "x$LINE" != x ; then
6107 eval "DEFAULT_$LINE"
6108 else
6109 no_cache=1
6110 fi
6111
6112 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6113
6114fi;
6115
6116 eval "$ac_cv_use_zipstream"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_ZIPSTREAM" = yes; then
6122 echo "$as_me:$LINENO: result: yes" >&5
6123echo "${ECHO_T}yes" >&6
6124 else
6125 echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6
6127 fi
6128
6129
a848cd7e
SC
6130
6131 enablestring=
6132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6133echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6134 no_cache=0
6135 # Check whether --enable-url or --disable-url was given.
6136if test "${enable_url+set}" = set; then
6137 enableval="$enable_url"
6138
6139 if test "$enableval" = yes; then
6140 ac_cv_use_url='wxUSE_URL=yes'
6141 else
6142 ac_cv_use_url='wxUSE_URL=no'
6143 fi
6144
6145else
6146
6147 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6148 if test "x$LINE" != x ; then
6149 eval "DEFAULT_$LINE"
6150 else
6151 no_cache=1
6152 fi
6153
6154 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6155
6156fi;
6157
6158 eval "$ac_cv_use_url"
6159 if test "$no_cache" != 1; then
6160 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6161 fi
6162
6163 if test "$wxUSE_URL" = yes; then
6164 echo "$as_me:$LINENO: result: yes" >&5
6165echo "${ECHO_T}yes" >&6
6166 else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169 fi
6170
6171
6172 enablestring=
6173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6174echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6175 no_cache=0
6176 # Check whether --enable-protocol or --disable-protocol was given.
6177if test "${enable_protocol+set}" = set; then
6178 enableval="$enable_protocol"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6182 else
6183 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6196
6197fi;
6198
6199 eval "$ac_cv_use_protocol"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_PROTOCOL" = yes; then
6205 echo "$as_me:$LINENO: result: yes" >&5
6206echo "${ECHO_T}yes" >&6
6207 else
6208 echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210 fi
6211
6212
6213 enablestring=
6214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6215echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6216 no_cache=0
6217 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6218if test "${enable_protocol_http+set}" = set; then
6219 enableval="$enable_protocol_http"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6223 else
6224 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6225 fi
6226
6227else
6228
6229 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6237
6238fi;
6239
6240 eval "$ac_cv_use_protocol_http"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6246 echo "$as_me:$LINENO: result: yes" >&5
6247echo "${ECHO_T}yes" >&6
6248 else
6249 echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251 fi
6252
6253
6254 enablestring=
6255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6256echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6257 no_cache=0
6258 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6259if test "${enable_protocol_ftp+set}" = set; then
6260 enableval="$enable_protocol_ftp"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6264 else
6265 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6266 fi
6267
6268else
6269
6270 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6271 if test "x$LINE" != x ; then
6272 eval "DEFAULT_$LINE"
6273 else
6274 no_cache=1
6275 fi
6276
6277 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6278
6279fi;
6280
6281 eval "$ac_cv_use_protocol_ftp"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6287 echo "$as_me:$LINENO: result: yes" >&5
6288echo "${ECHO_T}yes" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
6292 fi
6293
6294
6295 enablestring=
6296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6297echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6298 no_cache=0
6299 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6300if test "${enable_protocol_file+set}" = set; then
6301 enableval="$enable_protocol_file"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6305 else
6306 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6319
6320fi;
6321
6322 eval "$ac_cv_use_protocol_file"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6328 echo "$as_me:$LINENO: result: yes" >&5
6329echo "${ECHO_T}yes" >&6
6330 else
6331 echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6
6333 fi
6334
6335
6336
6337
6338
6339 enablestring=
6340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6341echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6342 no_cache=0
6343 # Check whether --enable-threads or --disable-threads was given.
6344if test "${enable_threads+set}" = set; then
6345 enableval="$enable_threads"
6346
6347 if test "$enableval" = yes; then
6348 ac_cv_use_threads='wxUSE_THREADS=yes'
6349 else
6350 ac_cv_use_threads='wxUSE_THREADS=no'
6351 fi
6352
6353else
6354
6355 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
6362 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6363
6364fi;
6365
6366 eval "$ac_cv_use_threads"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6369 fi
6370
6371 if test "$wxUSE_THREADS" = yes; then
6372 echo "$as_me:$LINENO: result: yes" >&5
6373echo "${ECHO_T}yes" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377 fi
6378
6379
6380if test "$wxUSE_GUI" = "yes"; then
6381
6382
6383
6384 enablestring=
6385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6386echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6387 no_cache=0
6388 # Check whether --enable-docview or --disable-docview was given.
6389if test "${enable_docview+set}" = set; then
6390 enableval="$enable_docview"
6391
6392 if test "$enableval" = yes; then
6393 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6394 else
6395 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6396 fi
6397
6398else
6399
6400 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6408
6409fi;
6410
6411 eval "$ac_cv_use_docview"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6414 fi
6415
6416 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6417 echo "$as_me:$LINENO: result: yes" >&5
6418echo "${ECHO_T}yes" >&6
6419 else
6420 echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6
6422 fi
6423
6424
6425 enablestring=
6426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6427echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6428 no_cache=0
6429 # Check whether --enable-help or --disable-help was given.
6430if test "${enable_help+set}" = set; then
6431 enableval="$enable_help"
6432
6433 if test "$enableval" = yes; then
6434 ac_cv_use_help='wxUSE_HELP=yes'
6435 else
6436 ac_cv_use_help='wxUSE_HELP=no'
6437 fi
6438
6439else
6440
6441 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6442 if test "x$LINE" != x ; then
6443 eval "DEFAULT_$LINE"
6444 else
6445 no_cache=1
6446 fi
6447
6448 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6449
6450fi;
6451
6452 eval "$ac_cv_use_help"
6453 if test "$no_cache" != 1; then
6454 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6455 fi
6456
6457 if test "$wxUSE_HELP" = yes; then
6458 echo "$as_me:$LINENO: result: yes" >&5
6459echo "${ECHO_T}yes" >&6
6460 else
6461 echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
6463 fi
6464
6465
6466 enablestring=
6467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6468echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6469 no_cache=0
6470 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6471if test "${enable_mshtmlhelp+set}" = set; then
6472 enableval="$enable_mshtmlhelp"
6473
6474 if test "$enableval" = yes; then
6475 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6476 else
6477 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6478 fi
6479
6480else
6481
6482 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6483 if test "x$LINE" != x ; then
6484 eval "DEFAULT_$LINE"
6485 else
6486 no_cache=1
6487 fi
6488
6489 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6490
6491fi;
6492
6493 eval "$ac_cv_use_mshtmlhelp"
6494 if test "$no_cache" != 1; then
6495 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6496 fi
6497
6498 if test "$wxUSE_MS_HTML_HELP" = yes; then
6499 echo "$as_me:$LINENO: result: yes" >&5
6500echo "${ECHO_T}yes" >&6
6501 else
6502 echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
6504 fi
6505
6506
6507 enablestring=
6508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6509echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6510 no_cache=0
6511 # Check whether --enable-html or --disable-html was given.
6512if test "${enable_html+set}" = set; then
6513 enableval="$enable_html"
6514
6515 if test "$enableval" = yes; then
6516 ac_cv_use_html='wxUSE_HTML=yes'
6517 else
6518 ac_cv_use_html='wxUSE_HTML=no'
6519 fi
6520
6521else
6522
6523 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6524 if test "x$LINE" != x ; then
6525 eval "DEFAULT_$LINE"
6526 else
6527 no_cache=1
6528 fi
6529
6530 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6531
6532fi;
6533
6534 eval "$ac_cv_use_html"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_HTML" = yes; then
6540 echo "$as_me:$LINENO: result: yes" >&5
6541echo "${ECHO_T}yes" >&6
6542 else
6543 echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
6545 fi
6546
6547
6548 enablestring=
6549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6550echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6551 no_cache=0
6552 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6553if test "${enable_htmlhelp+set}" = set; then
6554 enableval="$enable_htmlhelp"
6555
6556 if test "$enableval" = yes; then
6557 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6558 else
6559 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6560 fi
6561
6562else
6563
6564 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6565 if test "x$LINE" != x ; then
6566 eval "DEFAULT_$LINE"
6567 else
6568 no_cache=1
6569 fi
6570
6571 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6572
6573fi;
6574
6575 eval "$ac_cv_use_htmlhelp"
6576 if test "$no_cache" != 1; then
6577 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6578 fi
6579
6580 if test "$wxUSE_WXHTML_HELP" = yes; then
6581 echo "$as_me:$LINENO: result: yes" >&5
6582echo "${ECHO_T}yes" >&6
6583 else
6584 echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6
6586 fi
6587
6588
9a8f0513
VS
6589 enablestring=
6590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6591echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6592 no_cache=0
6593 # Check whether --enable-xrc or --disable-xrc was given.
6594if test "${enable_xrc+set}" = set; then
6595 enableval="$enable_xrc"
6596
6597 if test "$enableval" = yes; then
6598 ac_cv_use_xrc='wxUSE_XRC=yes'
6599 else
6600 ac_cv_use_xrc='wxUSE_XRC=no'
6601 fi
6602
6603else
6604
6605 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6606 if test "x$LINE" != x ; then
6607 eval "DEFAULT_$LINE"
6608 else
6609 no_cache=1
6610 fi
6611
6612 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6613
6614fi;
6615
6616 eval "$ac_cv_use_xrc"
6617 if test "$no_cache" != 1; then
6618 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6619 fi
6620
6621 if test "$wxUSE_XRC" = yes; then
6622 echo "$as_me:$LINENO: result: yes" >&5
6623echo "${ECHO_T}yes" >&6
6624 else
6625 echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6
6627 fi
6628
6629
a848cd7e
SC
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6632echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-constraints or --disable-constraints was given.
6635if test "${enable_constraints+set}" = set; then
6636 enableval="$enable_constraints"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6640 else
6641 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6642 fi
6643
6644else
6645
6646 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6654
6655fi;
6656
6657 eval "$ac_cv_use_constraints"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_CONSTRAINTS" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-printarch or --disable-printarch was given.
6676if test "${enable_printarch+set}" = set; then
6677 enableval="$enable_printarch"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6681 else
6682 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6695
6696fi;
6697
6698 eval "$ac_cv_use_printarch"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712 enablestring=
6713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6714echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6715 no_cache=0
6716 # Check whether --enable-mdi or --disable-mdi was given.
6717if test "${enable_mdi+set}" = set; then
6718 enableval="$enable_mdi"
6719
6720 if test "$enableval" = yes; then
8a7b1113 6721 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6722 else
8a7b1113 6723 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6724 fi
6725
6726else
6727
8a7b1113 6728 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6729 if test "x$LINE" != x ; then
6730 eval "DEFAULT_$LINE"
6731 else
6732 no_cache=1
6733 fi
6734
8a7b1113 6735 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6736
6737fi;
6738
6739 eval "$ac_cv_use_mdi"
6740 if test "$no_cache" != 1; then
6741 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6742 fi
6743
8a7b1113
VZ
6744 if test "$wxUSE_MDI" = yes; then
6745 echo "$as_me:$LINENO: result: yes" >&5
6746echo "${ECHO_T}yes" >&6
6747 else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750 fi
6751
6752
6753 enablestring=
6754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6755echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6756 no_cache=0
6757 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6758if test "${enable_mdidoc+set}" = set; then
6759 enableval="$enable_mdidoc"
6760
6761 if test "$enableval" = yes; then
6762 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6763 else
6764 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6765 fi
6766
6767else
6768
6769 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6770 if test "x$LINE" != x ; then
6771 eval "DEFAULT_$LINE"
6772 else
6773 no_cache=1
6774 fi
6775
6776 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6777
6778fi;
6779
6780 eval "$ac_cv_use_mdidoc"
6781 if test "$no_cache" != 1; then
6782 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6783 fi
6784
a848cd7e
SC
6785 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6786 echo "$as_me:$LINENO: result: yes" >&5
6787echo "${ECHO_T}yes" >&6
6788 else
6789 echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6
6791 fi
6792
6793
6794 enablestring=
6795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6796echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6797 no_cache=0
6798 # Check whether --enable-loggui or --disable-loggui was given.
6799if test "${enable_loggui+set}" = set; then
6800 enableval="$enable_loggui"
6801
6802 if test "$enableval" = yes; then
6803 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6804 else
6805 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6806 fi
6807
6808else
6809
6810 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6811 if test "x$LINE" != x ; then
6812 eval "DEFAULT_$LINE"
6813 else
6814 no_cache=1
6815 fi
6816
6817 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6818
6819fi;
6820
6821 eval "$ac_cv_use_loggui"
6822 if test "$no_cache" != 1; then
6823 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6824 fi
6825
6826 if test "$wxUSE_LOGGUI" = yes; then
6827 echo "$as_me:$LINENO: result: yes" >&5
6828echo "${ECHO_T}yes" >&6
6829 else
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
6832 fi
6833
6834
6835 enablestring=
6836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6837echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6838 no_cache=0
6839 # Check whether --enable-logwin or --disable-logwin was given.
6840if test "${enable_logwin+set}" = set; then
6841 enableval="$enable_logwin"
6842
6843 if test "$enableval" = yes; then
6844 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6845 else
6846 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6847 fi
6848
6849else
6850
6851 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6852 if test "x$LINE" != x ; then
6853 eval "DEFAULT_$LINE"
6854 else
6855 no_cache=1
6856 fi
6857
6858 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6859
6860fi;
6861
6862 eval "$ac_cv_use_logwin"
6863 if test "$no_cache" != 1; then
6864 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6865 fi
6866
6867 if test "$wxUSE_LOGWINDOW" = yes; then
6868 echo "$as_me:$LINENO: result: yes" >&5
6869echo "${ECHO_T}yes" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
6873 fi
6874
6875
6876 enablestring=
6877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6878echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6879 no_cache=0
6880 # Check whether --enable-logdialog or --disable-logdialog was given.
6881if test "${enable_logdialog+set}" = set; then
6882 enableval="$enable_logdialog"
6883
6884 if test "$enableval" = yes; then
6885 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6886 else
6887 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6888 fi
6889
6890else
6891
6892 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6893 if test "x$LINE" != x ; then
6894 eval "DEFAULT_$LINE"
6895 else
6896 no_cache=1
6897 fi
6898
6899 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6900
6901fi;
6902
6903 eval "$ac_cv_use_logdialog"
6904 if test "$no_cache" != 1; then
6905 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6906 fi
6907
6908 if test "$wxUSE_LOGDIALOG" = yes; then
6909 echo "$as_me:$LINENO: result: yes" >&5
6910echo "${ECHO_T}yes" >&6
6911 else
6912 echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
6914 fi
6915
6916
646b6ec1
VS
6917 enablestring=
6918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6919echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6920 no_cache=0
6921 # Check whether --enable-webkit or --disable-webkit was given.
6922if test "${enable_webkit+set}" = set; then
6923 enableval="$enable_webkit"
6924
6925 if test "$enableval" = yes; then
6926 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6927 else
6928 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6929 fi
6930
6931else
6932
6933 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6934 if test "x$LINE" != x ; then
6935 eval "DEFAULT_$LINE"
6936 else
6937 no_cache=1
6938 fi
6939
6940 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6941
6942fi;
6943
6944 eval "$ac_cv_use_webkit"
6945 if test "$no_cache" != 1; then
6946 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6947 fi
6948
6949 if test "$wxUSE_WEBKIT" = yes; then
6950 echo "$as_me:$LINENO: result: yes" >&5
6951echo "${ECHO_T}yes" >&6
6952 else
6953 echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6
6955 fi
6956
6957
a848cd7e
SC
6958
6959 enablestring=
6960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6961echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6962 no_cache=0
6963 # Check whether --enable-postscript or --disable-postscript was given.
6964if test "${enable_postscript+set}" = set; then
6965 enableval="$enable_postscript"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6969 else
6970 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6971 fi
6972
6973else
6974
6975 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6983
6984fi;
6985
6986 eval "$ac_cv_use_postscript"
6987 if test "$no_cache" != 1; then
6988 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6989 fi
6990
6991 if test "$wxUSE_POSTSCRIPT" = yes; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993echo "${ECHO_T}yes" >&6
6994 else
6995 echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6
6997 fi
6998
6999
7000
7001
7002
7003 enablestring=
7004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7005echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7006 no_cache=0
7007 # Check whether --enable-prologio or --disable-prologio was given.
7008if test "${enable_prologio+set}" = set; then
7009 enableval="$enable_prologio"
7010
7011 if test "$enableval" = yes; then
7012 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7013 else
7014 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7015 fi
7016
7017else
7018
7019 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7020 if test "x$LINE" != x ; then
7021 eval "DEFAULT_$LINE"
7022 else
7023 no_cache=1
7024 fi
7025
7026 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7027
7028fi;
7029
7030 eval "$ac_cv_use_prologio"
7031 if test "$no_cache" != 1; then
7032 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7033 fi
7034
7035 if test "$wxUSE_PROLOGIO" = yes; then
7036 echo "$as_me:$LINENO: result: yes" >&5
7037echo "${ECHO_T}yes" >&6
7038 else
7039 echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6
7041 fi
7042
7043
7044 enablestring=
7045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7046echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7047 no_cache=0
7048 # Check whether --enable-resources or --disable-resources was given.
7049if test "${enable_resources+set}" = set; then
7050 enableval="$enable_resources"
7051
7052 if test "$enableval" = yes; then
7053 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7054 else
7055 ac_cv_use_resources='wxUSE_RESOURCES=no'
7056 fi
7057
7058else
7059
7060 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7068
7069fi;
7070
7071 eval "$ac_cv_use_resources"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_RESOURCES" = yes; then
7077 echo "$as_me:$LINENO: result: yes" >&5
7078echo "${ECHO_T}yes" >&6
7079 else
7080 echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6
7082 fi
7083
7084
7085
7086
7087 enablestring=
7088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7089echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7090 no_cache=0
7091 # Check whether --enable-clipboard or --disable-clipboard was given.
7092if test "${enable_clipboard+set}" = set; then
7093 enableval="$enable_clipboard"
7094
7095 if test "$enableval" = yes; then
7096 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7097 else
7098 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7099 fi
7100
7101else
7102
7103 LINE=`grep "wxUSE_CLIPBOARD" ${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_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7111
7112fi;
7113
7114 eval "$ac_cv_use_clipboard"
7115 if test "$no_cache" != 1; then
7116 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7117 fi
7118
7119 if test "$wxUSE_CLIPBOARD" = 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}-dnd" >&5
7130echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7131 no_cache=0
7132 # Check whether --enable-dnd or --disable-dnd was given.
7133if test "${enable_dnd+set}" = set; then
7134 enableval="$enable_dnd"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7138 else
7139 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7140 fi
7141
7142else
7143
7144 LINE=`grep "wxUSE_DRAG_AND_DROP" ${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_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7152
7153fi;
7154
7155 eval "$ac_cv_use_dnd"
7156 if test "$no_cache" != 1; then
7157 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7158 fi
7159
7160 if test "$wxUSE_DRAG_AND_DROP" = 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
7169 enablestring=
7170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7171echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7172 no_cache=0
7173 # Check whether --enable-metafile or --disable-metafile was given.
7174if test "${enable_metafile+set}" = set; then
7175 enableval="$enable_metafile"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7179 else
7180 ac_cv_use_metafile='wxUSE_METAFILE=no'
7181 fi
7182
7183else
7184
7185 LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7193
7194fi;
7195
7196 eval "$ac_cv_use_metafile"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_METAFILE" = 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
7210
7211
7212
7213 enablestring=
7214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7215echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7216 no_cache=0
7217 # Check whether --enable-controls or --disable-controls was given.
7218if test "${enable_controls+set}" = set; then
7219 enableval="$enable_controls"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7223 else
7224 ac_cv_use_controls='wxUSE_CONTROLS=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7237
7238fi;
7239
7240 eval "$ac_cv_use_controls"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_CONTROLS" = yes; then
7246 echo "$as_me:$LINENO: result: yes" >&5
7247echo "${ECHO_T}yes" >&6
7248 else
7249 echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6
7251 fi
7252
7253
7254if test "$wxUSE_CONTROLS" = "yes"; then
7255 DEFAULT_wxUSE_ACCEL=yes
7256 DEFAULT_wxUSE_BMPBUTTON=yes
7257 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7258 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7259 DEFAULT_wxUSE_CARET=yes
7260 DEFAULT_wxUSE_COMBOBOX=yes
7261 DEFAULT_wxUSE_CHECKBOX=yes
7262 DEFAULT_wxUSE_CHECKLISTBOX=yes
7263 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7264 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7265 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7266 DEFAULT_wxUSE_GAUGE=yes
7267 DEFAULT_wxUSE_GRID=yes
7268 DEFAULT_wxUSE_IMAGLIST=yes
7269 DEFAULT_wxUSE_LISTBOOK=yes
7270 DEFAULT_wxUSE_LISTBOX=yes
7271 DEFAULT_wxUSE_LISTCTRL=yes
7272 DEFAULT_wxUSE_NOTEBOOK=yes
7273 DEFAULT_wxUSE_RADIOBOX=yes
7274 DEFAULT_wxUSE_RADIOBTN=yes
7275 DEFAULT_wxUSE_SASH=yes
7276 DEFAULT_wxUSE_SCROLLBAR=yes
7277 DEFAULT_wxUSE_SLIDER=yes
7278 DEFAULT_wxUSE_SPINBTN=yes
7279 DEFAULT_wxUSE_SPINCTRL=yes
7280 DEFAULT_wxUSE_SPLITTER=yes
7281 DEFAULT_wxUSE_STATBMP=yes
7282 DEFAULT_wxUSE_STATBOX=yes
7283 DEFAULT_wxUSE_STATLINE=yes
7284 DEFAULT_wxUSE_STATUSBAR=yes
7285 DEFAULT_wxUSE_TAB_DIALOG=yes
7286 DEFAULT_wxUSE_TOGGLEBTN=yes
7287 DEFAULT_wxUSE_TOOLBAR=yes
7288 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7289 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7290 DEFAULT_wxUSE_TOOLTIPS=yes
7291 DEFAULT_wxUSE_TREECTRL=yes
7292 DEFAULT_wxUSE_POPUPWIN=yes
7293 DEFAULT_wxUSE_TIPWINDOW=yes
7294elif test "$wxUSE_CONTROLS" = "no"; then
7295 DEFAULT_wxUSE_ACCEL=no
7296 DEFAULT_wxUSE_BMPBUTTON=no
7297 DEFAULT_wxUSE_BUTTON=no
7298 DEFAULT_wxUSE_CALCTRL=no
7299 DEFAULT_wxUSE_CARET=no
7300 DEFAULT_wxUSE_COMBOBOX=no
7301 DEFAULT_wxUSE_CHECKBOX=no
7302 DEFAULT_wxUSE_CHECKLISTBOX=no
7303 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7304 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7305 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7306 DEFAULT_wxUSE_GAUGE=no
7307 DEFAULT_wxUSE_GRID=no
7308 DEFAULT_wxUSE_IMAGLIST=no
7309 DEFAULT_wxUSE_LISTBOOK=no
7310 DEFAULT_wxUSE_LISTBOX=no
7311 DEFAULT_wxUSE_LISTCTRL=no
7312 DEFAULT_wxUSE_NOTEBOOK=no
7313 DEFAULT_wxUSE_RADIOBOX=no
7314 DEFAULT_wxUSE_RADIOBTN=no
7315 DEFAULT_wxUSE_SASH=no
7316 DEFAULT_wxUSE_SCROLLBAR=no
7317 DEFAULT_wxUSE_SLIDER=no
7318 DEFAULT_wxUSE_SPINBTN=no
7319 DEFAULT_wxUSE_SPINCTRL=no
7320 DEFAULT_wxUSE_SPLITTER=no
7321 DEFAULT_wxUSE_STATBMP=no
7322 DEFAULT_wxUSE_STATBOX=no
7323 DEFAULT_wxUSE_STATLINE=no
7324 DEFAULT_wxUSE_STATUSBAR=no
7325 DEFAULT_wxUSE_TAB_DIALOG=no
7326 DEFAULT_wxUSE_TOGGLEBTN=no
7327 DEFAULT_wxUSE_TOOLBAR=no
7328 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7329 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7330 DEFAULT_wxUSE_TOOLTIPS=no
7331 DEFAULT_wxUSE_TREECTRL=no
7332 DEFAULT_wxUSE_POPUPWIN=no
7333 DEFAULT_wxUSE_TIPWINDOW=no
7334fi
7335
a848cd7e
SC
7336
7337 enablestring=
7338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7339echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7340 no_cache=0
7341 # Check whether --enable-accel or --disable-accel was given.
7342if test "${enable_accel+set}" = set; then
7343 enableval="$enable_accel"
7344
7345 if test "$enableval" = yes; then
7346 ac_cv_use_accel='wxUSE_ACCEL=yes'
7347 else
7348 ac_cv_use_accel='wxUSE_ACCEL=no'
7349 fi
7350
7351else
7352
7353 LINE=`grep "wxUSE_ACCEL" ${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_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7361
7362fi;
7363
7364 eval "$ac_cv_use_accel"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_ACCEL" = 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 enablestring=
7379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7380echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7381 no_cache=0
7382 # Check whether --enable-button or --disable-button was given.
7383if test "${enable_button+set}" = set; then
7384 enableval="$enable_button"
7385
7386 if test "$enableval" = yes; then
7387 ac_cv_use_button='wxUSE_BUTTON=yes'
7388 else
7389 ac_cv_use_button='wxUSE_BUTTON=no'
7390 fi
7391
7392else
7393
7394 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7395 if test "x$LINE" != x ; then
7396 eval "DEFAULT_$LINE"
7397 else
7398 no_cache=1
7399 fi
7400
7401 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7402
7403fi;
7404
7405 eval "$ac_cv_use_button"
7406 if test "$no_cache" != 1; then
7407 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7408 fi
7409
7410 if test "$wxUSE_BUTTON" = yes; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412echo "${ECHO_T}yes" >&6
7413 else
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416 fi
7417
7418
7419 enablestring=
7420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7421echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7422 no_cache=0
7423 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7424if test "${enable_bmpbutton+set}" = set; then
7425 enableval="$enable_bmpbutton"
7426
7427 if test "$enableval" = yes; then
7428 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7429 else
7430 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7431 fi
7432
7433else
7434
7435 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7436 if test "x$LINE" != x ; then
7437 eval "DEFAULT_$LINE"
7438 else
7439 no_cache=1
7440 fi
7441
7442 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7443
7444fi;
7445
7446 eval "$ac_cv_use_bmpbutton"
7447 if test "$no_cache" != 1; then
7448 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7449 fi
7450
7451 if test "$wxUSE_BMPBUTTON" = yes; then
7452 echo "$as_me:$LINENO: result: yes" >&5
7453echo "${ECHO_T}yes" >&6
7454 else
7455 echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457 fi
7458
7459
7460 enablestring=
7461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7462echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7463 no_cache=0
7464 # Check whether --enable-calendar or --disable-calendar was given.
7465if test "${enable_calendar+set}" = set; then
7466 enableval="$enable_calendar"
7467
7468 if test "$enableval" = yes; then
7469 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7470 else
7471 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7472 fi
7473
7474else
7475
7476 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7477 if test "x$LINE" != x ; then
7478 eval "DEFAULT_$LINE"
7479 else
7480 no_cache=1
7481 fi
7482
7483 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7484
7485fi;
7486
7487 eval "$ac_cv_use_calendar"
7488 if test "$no_cache" != 1; then
7489 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7490 fi
7491
7492 if test "$wxUSE_CALCTRL" = yes; then
7493 echo "$as_me:$LINENO: result: yes" >&5
7494echo "${ECHO_T}yes" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498 fi
7499
7500
7501 enablestring=
7502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7503echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7504 no_cache=0
7505 # Check whether --enable-caret or --disable-caret was given.
7506if test "${enable_caret+set}" = set; then
7507 enableval="$enable_caret"
7508
7509 if test "$enableval" = yes; then
7510 ac_cv_use_caret='wxUSE_CARET=yes'
7511 else
7512 ac_cv_use_caret='wxUSE_CARET=no'
7513 fi
7514
7515else
7516
7517 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7518 if test "x$LINE" != x ; then
7519 eval "DEFAULT_$LINE"
7520 else
7521 no_cache=1
7522 fi
7523
7524 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7525
7526fi;
7527
7528 eval "$ac_cv_use_caret"
7529 if test "$no_cache" != 1; then
7530 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7531 fi
7532
7533 if test "$wxUSE_CARET" = yes; then
7534 echo "$as_me:$LINENO: result: yes" >&5
7535echo "${ECHO_T}yes" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
7539 fi
7540
7541
7542 enablestring=
7543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7544echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7545 no_cache=0
7546 # Check whether --enable-checkbox or --disable-checkbox was given.
7547if test "${enable_checkbox+set}" = set; then
7548 enableval="$enable_checkbox"
7549
7550 if test "$enableval" = yes; then
7551 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7552 else
7553 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7554 fi
7555
7556else
7557
7558 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7559 if test "x$LINE" != x ; then
7560 eval "DEFAULT_$LINE"
7561 else
7562 no_cache=1
7563 fi
7564
7565 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7566
7567fi;
7568
7569 eval "$ac_cv_use_checkbox"
7570 if test "$no_cache" != 1; then
7571 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7572 fi
7573
7574 if test "$wxUSE_CHECKBOX" = yes; then
7575 echo "$as_me:$LINENO: result: yes" >&5
7576echo "${ECHO_T}yes" >&6
7577 else
7578 echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6
7580 fi
7581
7582
7583 enablestring=
7584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7585echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7586 no_cache=0
7587 # Check whether --enable-checklst or --disable-checklst was given.
7588if test "${enable_checklst+set}" = set; then
7589 enableval="$enable_checklst"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7593 else
7594 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7595 fi
7596
7597else
7598
7599 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7607
7608fi;
7609
7610 eval "$ac_cv_use_checklst"
7611 if test "$no_cache" != 1; then
7612 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7613 fi
7614
7615 if test "$wxUSE_CHECKLST" = yes; then
7616 echo "$as_me:$LINENO: result: yes" >&5
7617echo "${ECHO_T}yes" >&6
7618 else
7619 echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6
7621 fi
7622
7623
7624 enablestring=
7625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7626echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7627 no_cache=0
7628 # Check whether --enable-choice or --disable-choice was given.
7629if test "${enable_choice+set}" = set; then
7630 enableval="$enable_choice"
7631
7632 if test "$enableval" = yes; then
7633 ac_cv_use_choice='wxUSE_CHOICE=yes'
7634 else
7635 ac_cv_use_choice='wxUSE_CHOICE=no'
7636 fi
7637
7638else
7639
7640 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7641 if test "x$LINE" != x ; then
7642 eval "DEFAULT_$LINE"
7643 else
7644 no_cache=1
7645 fi
7646
7647 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7648
7649fi;
7650
7651 eval "$ac_cv_use_choice"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_CHOICE" = yes; then
7657 echo "$as_me:$LINENO: result: yes" >&5
7658echo "${ECHO_T}yes" >&6
7659 else
7660 echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6
7662 fi
7663
7664
92bbdbcd
WS
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7667echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-choicebook or --disable-choicebook was given.
7670if test "${enable_choicebook+set}" = set; then
7671 enableval="$enable_choicebook"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7675 else
7676 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7689
7690fi;
7691
7692 eval "$ac_cv_use_choicebook"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_CHOICEBOOK" = yes; then
7698 echo "$as_me:$LINENO: result: yes" >&5
7699echo "${ECHO_T}yes" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703 fi
7704
7705
a848cd7e
SC
7706 enablestring=
7707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7708echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7709 no_cache=0
7710 # Check whether --enable-combobox or --disable-combobox was given.
7711if test "${enable_combobox+set}" = set; then
7712 enableval="$enable_combobox"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7716 else
7717 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7718 fi
7719
7720else
7721
7722 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7730
7731fi;
7732
7733 eval "$ac_cv_use_combobox"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_COMBOBOX" = yes; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740echo "${ECHO_T}yes" >&6
7741 else
7742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744 fi
7745
7746
da98e9be
VZ
7747 enablestring=
7748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7749echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7750 no_cache=0
7751 # Check whether --enable-datepick or --disable-datepick was given.
7752if test "${enable_datepick+set}" = set; then
7753 enableval="$enable_datepick"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7757 else
7758 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7759 fi
7760
7761else
7762
7763 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7771
7772fi;
7773
7774 eval "$ac_cv_use_datepick"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_DATEPICKCTRL" = yes; then
7780 echo "$as_me:$LINENO: result: yes" >&5
7781echo "${ECHO_T}yes" >&6
7782 else
7783 echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785 fi
7786
7787
a848cd7e
SC
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7790echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-display or --disable-display was given.
7793if test "${enable_display+set}" = set; then
7794 enableval="$enable_display"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_display='wxUSE_DISPLAY=yes'
7798 else
7799 ac_cv_use_display='wxUSE_DISPLAY=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7812
7813fi;
7814
7815 eval "$ac_cv_use_display"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_DISPLAY" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-gauge or --disable-gauge was given.
7834if test "${enable_gauge+set}" = set; then
7835 enableval="$enable_gauge"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7839 else
7840 ac_cv_use_gauge='wxUSE_GAUGE=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7853
7854fi;
7855
7856 eval "$ac_cv_use_gauge"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_GAUGE" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-grid or --disable-grid was given.
7875if test "${enable_grid+set}" = set; then
7876 enableval="$enable_grid"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_grid='wxUSE_GRID=yes'
7880 else
7881 ac_cv_use_grid='wxUSE_GRID=no'
7882 fi
7883
7884else
7885
7886 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7894
7895fi;
7896
7897 eval "$ac_cv_use_grid"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_GRID" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7913echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-imaglist or --disable-imaglist was given.
7916if test "${enable_imaglist+set}" = set; then
7917 enableval="$enable_imaglist"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7921 else
7922 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7923 fi
7924
7925else
7926
7927 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7935
7936fi;
7937
7938 eval "$ac_cv_use_imaglist"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_IMAGLIST" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7954echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-listbook or --disable-listbook was given.
7957if test "${enable_listbook+set}" = set; then
7958 enableval="$enable_listbook"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7962 else
7963 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7976
7977fi;
7978
7979 eval "$ac_cv_use_listbook"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_LISTBOOK" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990 fi
7991
7992
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7995echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-listbox or --disable-listbox was given.
7998if test "${enable_listbox+set}" = set; then
7999 enableval="$enable_listbox"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8003 else
8004 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8005 fi
8006
8007else
8008
8009 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8017
8018fi;
8019
8020 eval "$ac_cv_use_listbox"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_LISTBOX" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8036echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-listctrl or --disable-listctrl was given.
8039if test "${enable_listctrl+set}" = set; then
8040 enableval="$enable_listctrl"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8044 else
8045 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8058
8059fi;
8060
8061 eval "$ac_cv_use_listctrl"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_LISTCTRL" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8077echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-notebook or --disable-notebook was given.
8080if test "${enable_notebook+set}" = set; then
8081 enableval="$enable_notebook"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8085 else
8086 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8099
8100fi;
8101
8102 eval "$ac_cv_use_notebook"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_NOTEBOOK" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
8113 fi
8114
8115
8116 enablestring=
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8118echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8119 no_cache=0
8120 # Check whether --enable-radiobox or --disable-radiobox was given.
8121if test "${enable_radiobox+set}" = set; then
8122 enableval="$enable_radiobox"
8123
8124 if test "$enableval" = yes; then
8125 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8126 else
8127 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8128 fi
8129
8130else
8131
8132 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
8139 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8140
8141fi;
8142
8143 eval "$ac_cv_use_radiobox"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_RADIOBOX" = yes; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 fi
8155
8156
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8159echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8162if test "${enable_radiobtn+set}" = set; then
8163 enableval="$enable_radiobtn"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8167 else
8168 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8169 fi
8170
8171else
8172
8173 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8181
8182fi;
8183
8184 eval "$ac_cv_use_radiobtn"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_RADIOBTN" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195 fi
8196
8197
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8200echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-sash or --disable-sash was given.
8203if test "${enable_sash+set}" = set; then
8204 enableval="$enable_sash"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_sash='wxUSE_SASH=yes'
8208 else
8209 ac_cv_use_sash='wxUSE_SASH=no'
8210 fi
8211
8212else
8213
8214 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8222
8223fi;
8224
8225 eval "$ac_cv_use_sash"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_SASH" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236 fi
8237
8238
8239 enablestring=
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8241echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8242 no_cache=0
8243 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8244if test "${enable_scrollbar+set}" = set; then
8245 enableval="$enable_scrollbar"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8249 else
8250 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8251 fi
8252
8253else
8254
8255 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8263
8264fi;
8265
8266 eval "$ac_cv_use_scrollbar"
8267 if test "$no_cache" != 1; then
8268 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8269 fi
8270
8271 if test "$wxUSE_SCROLLBAR" = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277 fi
8278
8279
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8282echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-slider or --disable-slider was given.
8285if test "${enable_slider+set}" = set; then
8286 enableval="$enable_slider"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_slider='wxUSE_SLIDER=yes'
8290 else
8291 ac_cv_use_slider='wxUSE_SLIDER=no'
8292 fi
8293
8294else
8295
8296 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8304
8305fi;
8306
8307 eval "$ac_cv_use_slider"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_SLIDER" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318 fi
8319
8320
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8323echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8326if test "${enable_spinbtn+set}" = set; then
8327 enableval="$enable_spinbtn"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8331 else
8332 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8333 fi
8334
8335else
8336
8337 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8345
8346fi;
8347
8348 eval "$ac_cv_use_spinbtn"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_SPINBTN" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
8359 fi
8360
8361
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8364echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8367if test "${enable_spinctrl+set}" = set; then
8368 enableval="$enable_spinctrl"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8372 else
8373 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8374 fi
8375
8376else
8377
8378 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8386
8387fi;
8388
8389 eval "$ac_cv_use_spinctrl"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_SPINCTRL" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6
8400 fi
8401
8402
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8405echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-splitter or --disable-splitter was given.
8408if test "${enable_splitter+set}" = set; then
8409 enableval="$enable_splitter"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8413 else
8414 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8415 fi
8416
8417else
8418
8419 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8427
8428fi;
8429
8430 eval "$ac_cv_use_splitter"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_SPLITTER" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
8441 fi
8442
8443
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-statbmp or --disable-statbmp was given.
8449if test "${enable_statbmp+set}" = set; then
8450 enableval="$enable_statbmp"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8454 else
8455 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8456 fi
8457
8458else
8459
8460 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8468
8469fi;
8470
8471 eval "$ac_cv_use_statbmp"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_STATBMP" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482 fi
8483
8484
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8487echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-statbox or --disable-statbox was given.
8490if test "${enable_statbox+set}" = set; then
8491 enableval="$enable_statbox"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8495 else
8496 ac_cv_use_statbox='wxUSE_STATBOX=no'
8497 fi
8498
8499else
8500
8501 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8509
8510fi;
8511
8512 eval "$ac_cv_use_statbox"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_STATBOX" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523 fi
8524
8525
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8528echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-statline or --disable-statline was given.
8531if test "${enable_statline+set}" = set; then
8532 enableval="$enable_statline"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_statline='wxUSE_STATLINE=yes'
8536 else
8537 ac_cv_use_statline='wxUSE_STATLINE=no'
8538 fi
8539
8540else
8541
8542 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8550
8551fi;
8552
8553 eval "$ac_cv_use_statline"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_STATLINE" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6
8564 fi
8565
8566
8567 enablestring=
8568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8569echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8570 no_cache=0
8571 # Check whether --enable-stattext or --disable-stattext was given.
8572if test "${enable_stattext+set}" = set; then
8573 enableval="$enable_stattext"
8574
8575 if test "$enableval" = yes; then
8576 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8577 else
8578 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8579 fi
8580
8581else
8582
8583 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8584 if test "x$LINE" != x ; then
8585 eval "DEFAULT_$LINE"
8586 else
8587 no_cache=1
8588 fi
8589
8590 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8591
8592fi;
8593
8594 eval "$ac_cv_use_stattext"
8595 if test "$no_cache" != 1; then
8596 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8597 fi
8598
8599 if test "$wxUSE_STATTEXT" = yes; then
8600 echo "$as_me:$LINENO: result: yes" >&5
8601echo "${ECHO_T}yes" >&6
8602 else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605 fi
8606
8607
8608 enablestring=
8609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8610echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8611 no_cache=0
8612 # Check whether --enable-statusbar or --disable-statusbar was given.
8613if test "${enable_statusbar+set}" = set; then
8614 enableval="$enable_statusbar"
8615
8616 if test "$enableval" = yes; then
8617 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8618 else
8619 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8620 fi
8621
8622else
8623
8624 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8625 if test "x$LINE" != x ; then
8626 eval "DEFAULT_$LINE"
8627 else
8628 no_cache=1
8629 fi
8630
8631 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8632
8633fi;
8634
8635 eval "$ac_cv_use_statusbar"
8636 if test "$no_cache" != 1; then
8637 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8638 fi
8639
8640 if test "$wxUSE_STATUSBAR" = yes; then
8641 echo "$as_me:$LINENO: result: yes" >&5
8642echo "${ECHO_T}yes" >&6
8643 else
8644 echo "$as_me:$LINENO: result: no" >&5
8645echo "${ECHO_T}no" >&6
8646 fi
8647
8648
8649 enablestring=
8650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8651echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8652 no_cache=0
8653 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8654if test "${enable_tabdialog+set}" = set; then
8655 enableval="$enable_tabdialog"
8656
8657 if test "$enableval" = yes; then
8658 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8659 else
8660 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8661 fi
8662
8663else
8664
8665 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8666 if test "x$LINE" != x ; then
8667 eval "DEFAULT_$LINE"
8668 else
8669 no_cache=1
8670 fi
8671
8672 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8673
8674fi;
8675
8676 eval "$ac_cv_use_tabdialog"
8677 if test "$no_cache" != 1; then
8678 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8679 fi
8680
8681 if test "$wxUSE_TABDIALOG" = yes; then
8682 echo "$as_me:$LINENO: result: yes" >&5
8683echo "${ECHO_T}yes" >&6
8684 else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687 fi
8688
8689
8690 enablestring=
8691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8692echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8693 no_cache=0
8694 # Check whether --enable-textctrl or --disable-textctrl was given.
8695if test "${enable_textctrl+set}" = set; then
8696 enableval="$enable_textctrl"
8697
8698 if test "$enableval" = yes; then
8699 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8700 else
8701 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8702 fi
8703
8704else
8705
8706 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8707 if test "x$LINE" != x ; then
8708 eval "DEFAULT_$LINE"
8709 else
8710 no_cache=1
8711 fi
8712
8713 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8714
8715fi;
8716
8717 eval "$ac_cv_use_textctrl"
8718 if test "$no_cache" != 1; then
8719 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8720 fi
8721
8722 if test "$wxUSE_TEXTCTRL" = yes; then
8723 echo "$as_me:$LINENO: result: yes" >&5
8724echo "${ECHO_T}yes" >&6
8725 else
8726 echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
8728 fi
8729
8730
8731 enablestring=
8732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8733echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8734 no_cache=0
8735 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8736if test "${enable_togglebtn+set}" = set; then
8737 enableval="$enable_togglebtn"
8738
8739 if test "$enableval" = yes; then
8740 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8741 else
8742 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8743 fi
8744
8745else
8746
8747 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8748 if test "x$LINE" != x ; then
8749 eval "DEFAULT_$LINE"
8750 else
8751 no_cache=1
8752 fi
8753
8754 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8755
8756fi;
8757
8758 eval "$ac_cv_use_togglebtn"
8759 if test "$no_cache" != 1; then
8760 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8761 fi
8762
8763 if test "$wxUSE_TOGGLEBTN" = yes; then
8764 echo "$as_me:$LINENO: result: yes" >&5
8765echo "${ECHO_T}yes" >&6
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769 fi
8770
8771
8772 enablestring=
8773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8774echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8775 no_cache=0
8776 # Check whether --enable-toolbar or --disable-toolbar was given.
8777if test "${enable_toolbar+set}" = set; then
8778 enableval="$enable_toolbar"
8779
8780 if test "$enableval" = yes; then
8781 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8782 else
8783 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8784 fi
8785
8786else
8787
8788 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8789 if test "x$LINE" != x ; then
8790 eval "DEFAULT_$LINE"
8791 else
8792 no_cache=1
8793 fi
8794
8795 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8796
8797fi;
8798
8799 eval "$ac_cv_use_toolbar"
8800 if test "$no_cache" != 1; then
8801 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8802 fi
8803
8804 if test "$wxUSE_TOOLBAR" = yes; then
8805 echo "$as_me:$LINENO: result: yes" >&5
8806echo "${ECHO_T}yes" >&6
8807 else
8808 echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
8810 fi
8811
8812
8813 enablestring=
8814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8815echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8816 no_cache=0
8817 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8818if test "${enable_tbarnative+set}" = set; then
8819 enableval="$enable_tbarnative"
8820
8821 if test "$enableval" = yes; then
8822 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8823 else
8824 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8825 fi
8826
8827else
8828
8829 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8830 if test "x$LINE" != x ; then
8831 eval "DEFAULT_$LINE"
8832 else
8833 no_cache=1
8834 fi
8835
8836 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8837
8838fi;
8839
8840 eval "$ac_cv_use_tbarnative"
8841 if test "$no_cache" != 1; then
8842 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8843 fi
8844
8845 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8846 echo "$as_me:$LINENO: result: yes" >&5
8847echo "${ECHO_T}yes" >&6
8848 else
8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
8851 fi
8852
8853
8854 enablestring=
8855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8856echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8857 no_cache=0
8858 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8859if test "${enable_tbarsmpl+set}" = set; then
8860 enableval="$enable_tbarsmpl"
8861
8862 if test "$enableval" = yes; then
8863 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8864 else
8865 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8866 fi
8867
8868else
8869
8870 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8871 if test "x$LINE" != x ; then
8872 eval "DEFAULT_$LINE"
8873 else
8874 no_cache=1
8875 fi
8876
8877 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8878
8879fi;
8880
8881 eval "$ac_cv_use_tbarsmpl"
8882 if test "$no_cache" != 1; then
8883 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8884 fi
8885
8886 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8887 echo "$as_me:$LINENO: result: yes" >&5
8888echo "${ECHO_T}yes" >&6
8889 else
8890 echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6
8892 fi
8893
8894
8895 enablestring=
8896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8897echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8898 no_cache=0
8899 # Check whether --enable-treectrl or --disable-treectrl was given.
8900if test "${enable_treectrl+set}" = set; then
8901 enableval="$enable_treectrl"
8902
8903 if test "$enableval" = yes; then
8904 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8905 else
8906 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8907 fi
8908
8909else
8910
8911 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8912 if test "x$LINE" != x ; then
8913 eval "DEFAULT_$LINE"
8914 else
8915 no_cache=1
8916 fi
8917
8918 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8919
8920fi;
8921
8922 eval "$ac_cv_use_treectrl"
8923 if test "$no_cache" != 1; then
8924 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8925 fi
8926
8927 if test "$wxUSE_TREECTRL" = yes; then
8928 echo "$as_me:$LINENO: result: yes" >&5
8929echo "${ECHO_T}yes" >&6
8930 else
8931 echo "$as_me:$LINENO: result: no" >&5
8932echo "${ECHO_T}no" >&6
8933 fi
8934
8935
8936 enablestring=
8937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8938echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8939 no_cache=0
8940 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8941if test "${enable_tipwindow+set}" = set; then
8942 enableval="$enable_tipwindow"
8943
8944 if test "$enableval" = yes; then
8945 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8946 else
8947 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8948 fi
8949
8950else
8951
8952 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8953 if test "x$LINE" != x ; then
8954 eval "DEFAULT_$LINE"
8955 else
8956 no_cache=1
8957 fi
8958
8959 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8960
8961fi;
8962
8963 eval "$ac_cv_use_tipwindow"
8964 if test "$no_cache" != 1; then
8965 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8966 fi
8967
8968 if test "$wxUSE_TIPWINDOW" = yes; then
8969 echo "$as_me:$LINENO: result: yes" >&5
8970echo "${ECHO_T}yes" >&6
8971 else
8972 echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
8974 fi
8975
8976
8977 enablestring=
8978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8979echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8980 no_cache=0
8981 # Check whether --enable-popupwin or --disable-popupwin was given.
8982if test "${enable_popupwin+set}" = set; then
8983 enableval="$enable_popupwin"
8984
8985 if test "$enableval" = yes; then
8986 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8987 else
8988 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8989 fi
8990
8991else
8992
8993 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8994 if test "x$LINE" != x ; then
8995 eval "DEFAULT_$LINE"
8996 else
8997 no_cache=1
8998 fi
8999
9000 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9001
9002fi;
9003
9004 eval "$ac_cv_use_popupwin"
9005 if test "$no_cache" != 1; then
9006 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9007 fi
9008
9009 if test "$wxUSE_POPUPWIN" = yes; then
9010 echo "$as_me:$LINENO: result: yes" >&5
9011echo "${ECHO_T}yes" >&6
9012 else
9013 echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015 fi
9016
9017
9018
9019
9020 enablestring=
9021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9022echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9023 no_cache=0
9024 # Check whether --enable-commondlg or --disable-commondlg was given.
9025if test "${enable_commondlg+set}" = set; then
9026 enableval="$enable_commondlg"
9027
9028 if test "$enableval" = yes; then
9029 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9030 else
9031 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9032 fi
9033
9034else
9035
9036 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9037 if test "x$LINE" != x ; then
9038 eval "DEFAULT_$LINE"
9039 else
9040 no_cache=1
9041 fi
9042
9043 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9044
9045fi;
9046
9047 eval "$ac_cv_use_commondlg"
9048 if test "$no_cache" != 1; then
9049 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9050 fi
9051
9052 if test "$wxUSE_COMMONDLGS" = yes; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057echo "${ECHO_T}no" >&6
9058 fi
9059
9060
9061 enablestring=
9062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9063echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9064 no_cache=0
9065 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9066if test "${enable_choicedlg+set}" = set; then
9067 enableval="$enable_choicedlg"
9068
9069 if test "$enableval" = yes; then
9070 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9071 else
9072 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9073 fi
9074
9075else
9076
9077 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9078 if test "x$LINE" != x ; then
9079 eval "DEFAULT_$LINE"
9080 else
9081 no_cache=1
9082 fi
9083
9084 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9085
9086fi;
9087
9088 eval "$ac_cv_use_choicedlg"
9089 if test "$no_cache" != 1; then
9090 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9091 fi
9092
9093 if test "$wxUSE_CHOICEDLG" = yes; then
9094 echo "$as_me:$LINENO: result: yes" >&5
9095echo "${ECHO_T}yes" >&6
9096 else
9097 echo "$as_me:$LINENO: result: no" >&5
9098echo "${ECHO_T}no" >&6
9099 fi
9100
9101
9102 enablestring=
9103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9104echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9105 no_cache=0
9106 # Check whether --enable-coldlg or --disable-coldlg was given.
9107if test "${enable_coldlg+set}" = set; then
9108 enableval="$enable_coldlg"
9109
9110 if test "$enableval" = yes; then
9111 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9112 else
9113 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9114 fi
9115
9116else
9117
9118 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9119 if test "x$LINE" != x ; then
9120 eval "DEFAULT_$LINE"
9121 else
9122 no_cache=1
9123 fi
9124
9125 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9126
9127fi;
9128
9129 eval "$ac_cv_use_coldlg"
9130 if test "$no_cache" != 1; then
9131 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9132 fi
9133
9134 if test "$wxUSE_COLOURDLG" = yes; then
9135 echo "$as_me:$LINENO: result: yes" >&5
9136echo "${ECHO_T}yes" >&6
9137 else
9138 echo "$as_me:$LINENO: result: no" >&5
9139echo "${ECHO_T}no" >&6
9140 fi
9141
9142
9143 enablestring=
9144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9145echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9146 no_cache=0
9147 # Check whether --enable-filedlg or --disable-filedlg was given.
9148if test "${enable_filedlg+set}" = set; then
9149 enableval="$enable_filedlg"
9150
9151 if test "$enableval" = yes; then
9152 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9153 else
9154 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9155 fi
9156
9157else
9158
9159 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9160 if test "x$LINE" != x ; then
9161 eval "DEFAULT_$LINE"
9162 else
9163 no_cache=1
9164 fi
9165
9166 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9167
9168fi;
9169
9170 eval "$ac_cv_use_filedlg"
9171 if test "$no_cache" != 1; then
9172 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9173 fi
9174
9175 if test "$wxUSE_FILEDLG" = yes; then
9176 echo "$as_me:$LINENO: result: yes" >&5
9177echo "${ECHO_T}yes" >&6
9178 else
9179 echo "$as_me:$LINENO: result: no" >&5
9180echo "${ECHO_T}no" >&6
9181 fi
9182
9183
9184 enablestring=
9185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9186echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9187 no_cache=0
9188 # Check whether --enable-finddlg or --disable-finddlg was given.
9189if test "${enable_finddlg+set}" = set; then
9190 enableval="$enable_finddlg"
9191
9192 if test "$enableval" = yes; then
9193 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9194 else
9195 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9196 fi
9197
9198else
9199
9200 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9201 if test "x$LINE" != x ; then
9202 eval "DEFAULT_$LINE"
9203 else
9204 no_cache=1
9205 fi
9206
9207 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9208
9209fi;
9210
9211 eval "$ac_cv_use_finddlg"
9212 if test "$no_cache" != 1; then
9213 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9214 fi
9215
9216 if test "$wxUSE_FINDREPLDLG" = yes; then
9217 echo "$as_me:$LINENO: result: yes" >&5
9218echo "${ECHO_T}yes" >&6
9219 else
9220 echo "$as_me:$LINENO: result: no" >&5
9221echo "${ECHO_T}no" >&6
9222 fi
9223
9224
9225 enablestring=
9226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9227echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9228 no_cache=0
9229 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9230if test "${enable_fontdlg+set}" = set; then
9231 enableval="$enable_fontdlg"
9232
9233 if test "$enableval" = yes; then
9234 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9235 else
9236 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9237 fi
9238
9239else
9240
9241 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9242 if test "x$LINE" != x ; then
9243 eval "DEFAULT_$LINE"
9244 else
9245 no_cache=1
9246 fi
9247
9248 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9249
9250fi;
9251
9252 eval "$ac_cv_use_fontdlg"
9253 if test "$no_cache" != 1; then
9254 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9255 fi
9256
9257 if test "$wxUSE_FONTDLG" = yes; then
9258 echo "$as_me:$LINENO: result: yes" >&5
9259echo "${ECHO_T}yes" >&6
9260 else
9261 echo "$as_me:$LINENO: result: no" >&5
9262echo "${ECHO_T}no" >&6
9263 fi
9264
9265
9266 enablestring=
9267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9268echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9269 no_cache=0
9270 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9271if test "${enable_dirdlg+set}" = set; then
9272 enableval="$enable_dirdlg"
9273
9274 if test "$enableval" = yes; then
9275 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9276 else
9277 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9278 fi
9279
9280else
9281
9282 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9283 if test "x$LINE" != x ; then
9284 eval "DEFAULT_$LINE"
9285 else
9286 no_cache=1
9287 fi
9288
9289 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9290
9291fi;
9292
9293 eval "$ac_cv_use_dirdlg"
9294 if test "$no_cache" != 1; then
9295 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9296 fi
9297
9298 if test "$wxUSE_DIRDLG" = yes; then
9299 echo "$as_me:$LINENO: result: yes" >&5
9300echo "${ECHO_T}yes" >&6
9301 else
9302 echo "$as_me:$LINENO: result: no" >&5
9303echo "${ECHO_T}no" >&6
9304 fi
9305
9306
9307 enablestring=
9308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9309echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9310 no_cache=0
9311 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9312if test "${enable_msgdlg+set}" = set; then
9313 enableval="$enable_msgdlg"
9314
9315 if test "$enableval" = yes; then
9316 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9317 else
9318 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9319 fi
9320
9321else
9322
9323 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9324 if test "x$LINE" != x ; then
9325 eval "DEFAULT_$LINE"
9326 else
9327 no_cache=1
9328 fi
9329
9330 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9331
9332fi;
9333
9334 eval "$ac_cv_use_msgdlg"
9335 if test "$no_cache" != 1; then
9336 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9337 fi
9338
9339 if test "$wxUSE_MSGDLG" = yes; then
9340 echo "$as_me:$LINENO: result: yes" >&5
9341echo "${ECHO_T}yes" >&6
9342 else
9343 echo "$as_me:$LINENO: result: no" >&5
9344echo "${ECHO_T}no" >&6
9345 fi
9346
9347
9348 enablestring=
9349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9350echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9351 no_cache=0
9352 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9353if test "${enable_numberdlg+set}" = set; then
9354 enableval="$enable_numberdlg"
9355
9356 if test "$enableval" = yes; then
9357 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9358 else
9359 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9360 fi
9361
9362else
9363
9364 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9365 if test "x$LINE" != x ; then
9366 eval "DEFAULT_$LINE"
9367 else
9368 no_cache=1
9369 fi
9370
9371 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9372
9373fi;
9374
9375 eval "$ac_cv_use_numberdlg"
9376 if test "$no_cache" != 1; then
9377 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9378 fi
9379
9380 if test "$wxUSE_NUMBERDLG" = yes; then
9381 echo "$as_me:$LINENO: result: yes" >&5
9382echo "${ECHO_T}yes" >&6
9383 else
9384 echo "$as_me:$LINENO: result: no" >&5
9385echo "${ECHO_T}no" >&6
9386 fi
9387
9388
9389 enablestring=
9390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9391echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9392 no_cache=0
9393 # Check whether --enable-splash or --disable-splash was given.
9394if test "${enable_splash+set}" = set; then
9395 enableval="$enable_splash"
9396
9397 if test "$enableval" = yes; then
9398 ac_cv_use_splash='wxUSE_SPLASH=yes'
9399 else
9400 ac_cv_use_splash='wxUSE_SPLASH=no'
9401 fi
9402
9403else
9404
9405 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9406 if test "x$LINE" != x ; then
9407 eval "DEFAULT_$LINE"
9408 else
9409 no_cache=1
9410 fi
9411
9412 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9413
9414fi;
9415
9416 eval "$ac_cv_use_splash"
9417 if test "$no_cache" != 1; then
9418 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9419 fi
9420
9421 if test "$wxUSE_SPLASH" = yes; then
9422 echo "$as_me:$LINENO: result: yes" >&5
9423echo "${ECHO_T}yes" >&6
9424 else
9425 echo "$as_me:$LINENO: result: no" >&5
9426echo "${ECHO_T}no" >&6
9427 fi
9428
9429
9430 enablestring=
9431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9432echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9433 no_cache=0
9434 # Check whether --enable-textdlg or --disable-textdlg was given.
9435if test "${enable_textdlg+set}" = set; then
9436 enableval="$enable_textdlg"
9437
9438 if test "$enableval" = yes; then
9439 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9440 else
9441 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9442 fi
9443
9444else
9445
9446 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9447 if test "x$LINE" != x ; then
9448 eval "DEFAULT_$LINE"
9449 else
9450 no_cache=1
9451 fi
9452
9453 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9454
9455fi;
9456
9457 eval "$ac_cv_use_textdlg"
9458 if test "$no_cache" != 1; then
9459 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9460 fi
9461
9462 if test "$wxUSE_TEXTDLG" = yes; then
9463 echo "$as_me:$LINENO: result: yes" >&5
9464echo "${ECHO_T}yes" >&6
9465 else
9466 echo "$as_me:$LINENO: result: no" >&5
9467echo "${ECHO_T}no" >&6
9468 fi
9469
9470
9471 enablestring=
9472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9473echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9474 no_cache=0
9475 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9476if test "${enable_tipdlg+set}" = set; then
9477 enableval="$enable_tipdlg"
9478
9479 if test "$enableval" = yes; then
9480 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9481 else
9482 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9483 fi
9484
9485else
9486
9487 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9488 if test "x$LINE" != x ; then
9489 eval "DEFAULT_$LINE"
9490 else
9491 no_cache=1
9492 fi
9493
9494 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9495
9496fi;
9497
9498 eval "$ac_cv_use_tipdlg"
9499 if test "$no_cache" != 1; then
9500 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9501 fi
9502
9503 if test "$wxUSE_STARTUP_TIPS" = yes; then
9504 echo "$as_me:$LINENO: result: yes" >&5
9505echo "${ECHO_T}yes" >&6
9506 else
9507 echo "$as_me:$LINENO: result: no" >&5
9508echo "${ECHO_T}no" >&6
9509 fi
9510
9511
9512 enablestring=
9513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9514echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9515 no_cache=0
9516 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9517if test "${enable_progressdlg+set}" = set; then
9518 enableval="$enable_progressdlg"
9519
9520 if test "$enableval" = yes; then
9521 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9522 else
9523 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9524 fi
9525
9526else
9527
9528 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9529 if test "x$LINE" != x ; then
9530 eval "DEFAULT_$LINE"
9531 else
9532 no_cache=1
9533 fi
9534
9535 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9536
9537fi;
9538
9539 eval "$ac_cv_use_progressdlg"
9540 if test "$no_cache" != 1; then
9541 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9542 fi
9543
9544 if test "$wxUSE_PROGRESSDLG" = yes; then
9545 echo "$as_me:$LINENO: result: yes" >&5
9546echo "${ECHO_T}yes" >&6
9547 else
9548 echo "$as_me:$LINENO: result: no" >&5
9549echo "${ECHO_T}no" >&6
9550 fi
9551
9552
9553 enablestring=
9554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9555echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9556 no_cache=0
9557 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9558if test "${enable_wizarddlg+set}" = set; then
9559 enableval="$enable_wizarddlg"
9560
9561 if test "$enableval" = yes; then
9562 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9563 else
9564 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9565 fi
9566
9567else
9568
9569 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9570 if test "x$LINE" != x ; then
9571 eval "DEFAULT_$LINE"
9572 else
9573 no_cache=1
9574 fi
9575
9576 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9577
9578fi;
9579
9580 eval "$ac_cv_use_wizarddlg"
9581 if test "$no_cache" != 1; then
9582 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9583 fi
9584
9585 if test "$wxUSE_WIZARDDLG" = yes; then
9586 echo "$as_me:$LINENO: result: yes" >&5
9587echo "${ECHO_T}yes" >&6
9588 else
9589 echo "$as_me:$LINENO: result: no" >&5
9590echo "${ECHO_T}no" >&6
9591 fi
9592
9593
9594
9595
9596 enablestring=
9597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9598echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9599 no_cache=0
9600 # Check whether --enable-menus or --disable-menus was given.
9601if test "${enable_menus+set}" = set; then
9602 enableval="$enable_menus"
9603
9604 if test "$enableval" = yes; then
9605 ac_cv_use_menus='wxUSE_MENUS=yes'
9606 else
9607 ac_cv_use_menus='wxUSE_MENUS=no'
9608 fi
9609
9610else
9611
9612 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9613 if test "x$LINE" != x ; then
9614 eval "DEFAULT_$LINE"
9615 else
9616 no_cache=1
9617 fi
9618
9619 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9620
9621fi;
9622
9623 eval "$ac_cv_use_menus"
9624 if test "$no_cache" != 1; then
9625 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9626 fi
9627
9628 if test "$wxUSE_MENUS" = yes; then
9629 echo "$as_me:$LINENO: result: yes" >&5
9630echo "${ECHO_T}yes" >&6
9631 else
9632 echo "$as_me:$LINENO: result: no" >&5
9633echo "${ECHO_T}no" >&6
9634 fi
9635
9636
9637 enablestring=
9638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9639echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9640 no_cache=0
9641 # Check whether --enable-miniframe or --disable-miniframe was given.
9642if test "${enable_miniframe+set}" = set; then
9643 enableval="$enable_miniframe"
9644
9645 if test "$enableval" = yes; then
9646 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9647 else
9648 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9649 fi
9650
9651else
9652
9653 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9654 if test "x$LINE" != x ; then
9655 eval "DEFAULT_$LINE"
9656 else
9657 no_cache=1
9658 fi
9659
9660 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9661
9662fi;
9663
9664 eval "$ac_cv_use_miniframe"
9665 if test "$no_cache" != 1; then
9666 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9667 fi
9668
9669 if test "$wxUSE_MINIFRAME" = yes; then
9670 echo "$as_me:$LINENO: result: yes" >&5
9671echo "${ECHO_T}yes" >&6
9672 else
9673 echo "$as_me:$LINENO: result: no" >&5
9674echo "${ECHO_T}no" >&6
9675 fi
9676
9677
9678 enablestring=
9679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9680echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9681 no_cache=0
9682 # Check whether --enable-tooltips or --disable-tooltips was given.
9683if test "${enable_tooltips+set}" = set; then
9684 enableval="$enable_tooltips"
9685
9686 if test "$enableval" = yes; then
9687 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9688 else
9689 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9690 fi
9691
9692else
9693
9694 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9695 if test "x$LINE" != x ; then
9696 eval "DEFAULT_$LINE"
9697 else
9698 no_cache=1
9699 fi
9700
9701 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9702
9703fi;
9704
9705 eval "$ac_cv_use_tooltips"
9706 if test "$no_cache" != 1; then
9707 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9708 fi
9709
9710 if test "$wxUSE_TOOLTIPS" = yes; then
9711 echo "$as_me:$LINENO: result: yes" >&5
9712echo "${ECHO_T}yes" >&6
9713 else
9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
9716 fi
9717
9718
9719 enablestring=
9720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9721echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9722 no_cache=0
9723 # Check whether --enable-splines or --disable-splines was given.
9724if test "${enable_splines+set}" = set; then
9725 enableval="$enable_splines"
9726
9727 if test "$enableval" = yes; then
9728 ac_cv_use_splines='wxUSE_SPLINES=yes'
9729 else
9730 ac_cv_use_splines='wxUSE_SPLINES=no'
9731 fi
9732
9733else
9734
9735 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9736 if test "x$LINE" != x ; then
9737 eval "DEFAULT_$LINE"
9738 else
9739 no_cache=1
9740 fi
9741
9742 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9743
9744fi;
9745
9746 eval "$ac_cv_use_splines"
9747 if test "$no_cache" != 1; then
9748 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9749 fi
9750
9751 if test "$wxUSE_SPLINES" = yes; then
9752 echo "$as_me:$LINENO: result: yes" >&5
9753echo "${ECHO_T}yes" >&6
9754 else
9755 echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
9757 fi
9758
9759
fbe2ca43
SN
9760 enablestring=
9761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9762echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9763 no_cache=0
9764 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9765if test "${enable_mousewheel+set}" = set; then
9766 enableval="$enable_mousewheel"
9767
9768 if test "$enableval" = yes; then
9769 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9770 else
9771 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9772 fi
9773
9774else
9775
9776 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9777 if test "x$LINE" != x ; then
9778 eval "DEFAULT_$LINE"
9779 else
9780 no_cache=1
9781 fi
9782
9783 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9784
9785fi;
9786
9787 eval "$ac_cv_use_mousewheel"
9788 if test "$no_cache" != 1; then
9789 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9790 fi
9791
9792 if test "$wxUSE_MOUSEWHEEL" = yes; then
9793 echo "$as_me:$LINENO: result: yes" >&5
9794echo "${ECHO_T}yes" >&6
9795 else
9796 echo "$as_me:$LINENO: result: no" >&5
9797echo "${ECHO_T}no" >&6
9798 fi
9799
9800
a848cd7e
SC
9801 enablestring=
9802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9803echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9804 no_cache=0
9805 # Check whether --enable-validators or --disable-validators was given.
9806if test "${enable_validators+set}" = set; then
9807 enableval="$enable_validators"
9808
9809 if test "$enableval" = yes; then
9810 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9811 else
9812 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9813 fi
9814
9815else
9816
9817 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9818 if test "x$LINE" != x ; then
9819 eval "DEFAULT_$LINE"
9820 else
9821 no_cache=1
9822 fi
9823
9824 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9825
9826fi;
9827
9828 eval "$ac_cv_use_validators"
9829 if test "$no_cache" != 1; then
9830 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9831 fi
9832
9833 if test "$wxUSE_VALIDATORS" = yes; then
9834 echo "$as_me:$LINENO: result: yes" >&5
9835echo "${ECHO_T}yes" >&6
9836 else
9837 echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
9839 fi
9840
9841
9842 enablestring=
9843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9844echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9845 no_cache=0
9846 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9847if test "${enable_busyinfo+set}" = set; then
9848 enableval="$enable_busyinfo"
9849
9850 if test "$enableval" = yes; then
9851 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9852 else
9853 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9854 fi
9855
9856else
9857
9858 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9859 if test "x$LINE" != x ; then
9860 eval "DEFAULT_$LINE"
9861 else
9862 no_cache=1
9863 fi
9864
9865 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9866
9867fi;
9868
9869 eval "$ac_cv_use_busyinfo"
9870 if test "$no_cache" != 1; then
9871 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9872 fi
9873
9874 if test "$wxUSE_BUSYINFO" = yes; then
9875 echo "$as_me:$LINENO: result: yes" >&5
9876echo "${ECHO_T}yes" >&6
9877 else
9878 echo "$as_me:$LINENO: result: no" >&5
9879echo "${ECHO_T}no" >&6
9880 fi
9881
9882
9883 enablestring=
9884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9885echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9886 no_cache=0
9887 # Check whether --enable-joystick or --disable-joystick was given.
9888if test "${enable_joystick+set}" = set; then
9889 enableval="$enable_joystick"
9890
9891 if test "$enableval" = yes; then
9892 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9893 else
9894 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9895 fi
9896
9897else
9898
9899 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9900 if test "x$LINE" != x ; then
9901 eval "DEFAULT_$LINE"
9902 else
9903 no_cache=1
9904 fi
9905
9906 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9907
9908fi;
9909
9910 eval "$ac_cv_use_joystick"
9911 if test "$no_cache" != 1; then
9912 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9913 fi
9914
9915 if test "$wxUSE_JOYSTICK" = yes; then
9916 echo "$as_me:$LINENO: result: yes" >&5
9917echo "${ECHO_T}yes" >&6
9918 else
9919 echo "$as_me:$LINENO: result: no" >&5
9920echo "${ECHO_T}no" >&6
9921 fi
9922
9923
9924 enablestring=
9925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9926echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9927 no_cache=0
9928 # Check whether --enable-metafile or --disable-metafile was given.
9929if test "${enable_metafile+set}" = set; then
9930 enableval="$enable_metafile"
9931
9932 if test "$enableval" = yes; then
9933 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9934 else
9935 ac_cv_use_metafile='wxUSE_METAFILE=no'
9936 fi
9937
9938else
9939
9940 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9941 if test "x$LINE" != x ; then
9942 eval "DEFAULT_$LINE"
9943 else
9944 no_cache=1
9945 fi
9946
9947 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9948
9949fi;
9950
9951 eval "$ac_cv_use_metafile"
9952 if test "$no_cache" != 1; then
9953 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9954 fi
9955
9956 if test "$wxUSE_METAFILE" = yes; then
9957 echo "$as_me:$LINENO: result: yes" >&5
9958echo "${ECHO_T}yes" >&6
9959 else
9960 echo "$as_me:$LINENO: result: no" >&5
9961echo "${ECHO_T}no" >&6
9962 fi
9963
9964
9965 enablestring=
9966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9967echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9968 no_cache=0
9969 # Check whether --enable-dragimage or --disable-dragimage was given.
9970if test "${enable_dragimage+set}" = set; then
9971 enableval="$enable_dragimage"
9972
9973 if test "$enableval" = yes; then
9974 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9975 else
9976 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9977 fi
9978
9979else
9980
9981 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9982 if test "x$LINE" != x ; then
9983 eval "DEFAULT_$LINE"
9984 else
9985 no_cache=1
9986 fi
9987
9988 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9989
9990fi;
9991
9992 eval "$ac_cv_use_dragimage"
9993 if test "$no_cache" != 1; then
9994 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9995 fi
9996
9997 if test "$wxUSE_DRAGIMAGE" = yes; then
9998 echo "$as_me:$LINENO: result: yes" >&5
9999echo "${ECHO_T}yes" >&6
10000 else
10001 echo "$as_me:$LINENO: result: no" >&5
10002echo "${ECHO_T}no" >&6
10003 fi
10004
10005
10006 enablestring=
10007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10008echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10009 no_cache=0
10010 # Check whether --enable-accessibility or --disable-accessibility was given.
10011if test "${enable_accessibility+set}" = set; then
10012 enableval="$enable_accessibility"
10013
10014 if test "$enableval" = yes; then
10015 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10016 else
10017 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10018 fi
10019
10020else
10021
10022 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10023 if test "x$LINE" != x ; then
10024 eval "DEFAULT_$LINE"
10025 else
10026 no_cache=1
10027 fi
10028
10029 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10030
10031fi;
10032
10033 eval "$ac_cv_use_accessibility"
10034 if test "$no_cache" != 1; then
10035 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10036 fi
10037
10038 if test "$wxUSE_ACCESSIBILITY" = yes; then
10039 echo "$as_me:$LINENO: result: yes" >&5
10040echo "${ECHO_T}yes" >&6
10041 else
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
10044 fi
10045
10046
38b4a946
VZ
10047if test "$wxUSE_MSW" = "1"; then
10048
10049 enablestring=
10050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10051echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10052 no_cache=0
10053 # Check whether --enable-dccache or --disable-dccache was given.
10054if test "${enable_dccache+set}" = set; then
10055 enableval="$enable_dccache"
10056
10057 if test "$enableval" = yes; then
10058 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10059 else
10060 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10061 fi
10062
10063else
10064
10065 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10066 if test "x$LINE" != x ; then
10067 eval "DEFAULT_$LINE"
10068 else
10069 no_cache=1
10070 fi
10071
10072 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10073
10074fi;
10075
10076 eval "$ac_cv_use_dccache"
10077 if test "$no_cache" != 1; then
10078 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10079 fi
10080
10081 if test "$wxUSE_DC_CACHEING" = yes; then
10082 echo "$as_me:$LINENO: result: yes" >&5
10083echo "${ECHO_T}yes" >&6
10084 else
10085 echo "$as_me:$LINENO: result: no" >&5
10086echo "${ECHO_T}no" >&6
10087 fi
10088
10089fi
10090
a848cd7e
SC
10091
10092
10093 enablestring=
10094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10095echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10096 no_cache=0
10097 # Check whether --enable-palette or --disable-palette was given.
10098if test "${enable_palette+set}" = set; then
10099 enableval="$enable_palette"
10100
10101 if test "$enableval" = yes; then
10102 ac_cv_use_palette='wxUSE_PALETTE=yes'
10103 else
10104 ac_cv_use_palette='wxUSE_PALETTE=no'
10105 fi
10106
10107else
10108
10109 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10110 if test "x$LINE" != x ; then
10111 eval "DEFAULT_$LINE"
10112 else
10113 no_cache=1
10114 fi
10115
10116 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10117
10118fi;
10119
10120 eval "$ac_cv_use_palette"
10121 if test "$no_cache" != 1; then
10122 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10123 fi
10124
10125 if test "$wxUSE_PALETTE" = yes; then
10126 echo "$as_me:$LINENO: result: yes" >&5
10127echo "${ECHO_T}yes" >&6
10128 else
10129 echo "$as_me:$LINENO: result: no" >&5
10130echo "${ECHO_T}no" >&6
10131 fi
10132
10133
10134 enablestring=
10135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10136echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10137 no_cache=0
10138 # Check whether --enable-image or --disable-image was given.
10139if test "${enable_image+set}" = set; then
10140 enableval="$enable_image"
10141
10142 if test "$enableval" = yes; then
10143 ac_cv_use_image='wxUSE_IMAGE=yes'
10144 else
10145 ac_cv_use_image='wxUSE_IMAGE=no'
10146 fi
10147
10148else
10149
10150 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10151 if test "x$LINE" != x ; then
10152 eval "DEFAULT_$LINE"
10153 else
10154 no_cache=1
10155 fi
10156
10157 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10158
10159fi;
10160
10161 eval "$ac_cv_use_image"
10162 if test "$no_cache" != 1; then
10163 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10164 fi
10165
10166 if test "$wxUSE_IMAGE" = yes; then
10167 echo "$as_me:$LINENO: result: yes" >&5
10168echo "${ECHO_T}yes" >&6
10169 else
10170 echo "$as_me:$LINENO: result: no" >&5
10171echo "${ECHO_T}no" >&6
10172 fi
10173
10174
10175 enablestring=
10176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10177echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10178 no_cache=0
10179 # Check whether --enable-gif or --disable-gif was given.
10180if test "${enable_gif+set}" = set; then
10181 enableval="$enable_gif"
10182
10183 if test "$enableval" = yes; then
10184 ac_cv_use_gif='wxUSE_GIF=yes'
10185 else
10186 ac_cv_use_gif='wxUSE_GIF=no'
10187 fi
10188
10189else
10190
10191 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10192 if test "x$LINE" != x ; then
10193 eval "DEFAULT_$LINE"
10194 else
10195 no_cache=1
10196 fi
10197
10198 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10199
10200fi;
10201
10202 eval "$ac_cv_use_gif"
10203 if test "$no_cache" != 1; then
10204 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10205 fi
10206
10207 if test "$wxUSE_GIF" = yes; then
10208 echo "$as_me:$LINENO: result: yes" >&5
10209echo "${ECHO_T}yes" >&6
10210 else
10211 echo "$as_me:$LINENO: result: no" >&5
10212echo "${ECHO_T}no" >&6
10213 fi
10214
10215
10216 enablestring=
10217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10218echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10219 no_cache=0
10220 # Check whether --enable-pcx or --disable-pcx was given.
10221if test "${enable_pcx+set}" = set; then
10222 enableval="$enable_pcx"
10223
10224 if test "$enableval" = yes; then
10225 ac_cv_use_pcx='wxUSE_PCX=yes'
10226 else
10227 ac_cv_use_pcx='wxUSE_PCX=no'
10228 fi
10229
10230else
10231
10232 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10233 if test "x$LINE" != x ; then
10234 eval "DEFAULT_$LINE"
10235 else
10236 no_cache=1
10237 fi
10238
10239 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10240
10241fi;
10242
10243 eval "$ac_cv_use_pcx"
10244 if test "$no_cache" != 1; then
10245 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10246 fi
10247
10248 if test "$wxUSE_PCX" = yes; then
10249 echo "$as_me:$LINENO: result: yes" >&5
10250echo "${ECHO_T}yes" >&6
10251 else
10252 echo "$as_me:$LINENO: result: no" >&5
10253echo "${ECHO_T}no" >&6
10254 fi
10255
10256
10257 enablestring=
10258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10259echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10260 no_cache=0
10261 # Check whether --enable-iff or --disable-iff was given.
10262if test "${enable_iff+set}" = set; then
10263 enableval="$enable_iff"
10264
10265 if test "$enableval" = yes; then
10266 ac_cv_use_iff='wxUSE_IFF=yes'
10267 else
10268 ac_cv_use_iff='wxUSE_IFF=no'
10269 fi
10270
10271else
10272
10273 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10274 if test "x$LINE" != x ; then
10275 eval "DEFAULT_$LINE"
10276 else
10277 no_cache=1
10278 fi
10279
10280 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10281
10282fi;
10283
10284 eval "$ac_cv_use_iff"
10285 if test "$no_cache" != 1; then
10286 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10287 fi
10288
10289 if test "$wxUSE_IFF" = yes; then
10290 echo "$as_me:$LINENO: result: yes" >&5
10291echo "${ECHO_T}yes" >&6
10292 else
10293 echo "$as_me:$LINENO: result: no" >&5
10294echo "${ECHO_T}no" >&6
10295 fi
10296
10297
10298 enablestring=
10299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10300echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10301 no_cache=0
10302 # Check whether --enable-pnm or --disable-pnm was given.
10303if test "${enable_pnm+set}" = set; then
10304 enableval="$enable_pnm"
10305
10306 if test "$enableval" = yes; then
10307 ac_cv_use_pnm='wxUSE_PNM=yes'
10308 else
10309 ac_cv_use_pnm='wxUSE_PNM=no'
10310 fi
10311
10312else
10313
10314 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10315 if test "x$LINE" != x ; then
10316 eval "DEFAULT_$LINE"
10317 else
10318 no_cache=1
10319 fi
10320
10321 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10322
10323fi;
10324
10325 eval "$ac_cv_use_pnm"
10326 if test "$no_cache" != 1; then
10327 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10328 fi
10329
10330 if test "$wxUSE_PNM" = yes; then
10331 echo "$as_me:$LINENO: result: yes" >&5
10332echo "${ECHO_T}yes" >&6
10333 else
10334 echo "$as_me:$LINENO: result: no" >&5
10335echo "${ECHO_T}no" >&6
10336 fi
10337
10338
10339 enablestring=
10340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10341echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10342 no_cache=0
10343 # Check whether --enable-xpm or --disable-xpm was given.
10344if test "${enable_xpm+set}" = set; then
10345 enableval="$enable_xpm"
10346
10347 if test "$enableval" = yes; then
10348 ac_cv_use_xpm='wxUSE_XPM=yes'
10349 else
10350 ac_cv_use_xpm='wxUSE_XPM=no'
10351 fi
10352
10353else
10354
10355 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10356 if test "x$LINE" != x ; then
10357 eval "DEFAULT_$LINE"
10358 else
10359 no_cache=1
10360 fi
10361
10362 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10363
10364fi;
10365
10366 eval "$ac_cv_use_xpm"
10367 if test "$no_cache" != 1; then
10368 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10369 fi
10370
10371 if test "$wxUSE_XPM" = yes; then
10372 echo "$as_me:$LINENO: result: yes" >&5
10373echo "${ECHO_T}yes" >&6
10374 else
10375 echo "$as_me:$LINENO: result: no" >&5
10376echo "${ECHO_T}no" >&6
10377 fi
10378
10379
10380 enablestring=
10381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10382echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10383 no_cache=0
10384 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10385if test "${enable_ico_cur+set}" = set; then
10386 enableval="$enable_ico_cur"
10387
10388 if test "$enableval" = yes; then
10389 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10390 else
10391 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10392 fi
10393
10394else
10395
10396 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10397 if test "x$LINE" != x ; then
10398 eval "DEFAULT_$LINE"
10399 else
10400 no_cache=1
10401 fi
10402
10403 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10404
10405fi;
10406
10407 eval "$ac_cv_use_ico_cur"
10408 if test "$no_cache" != 1; then
10409 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10410 fi
10411
10412 if test "$wxUSE_ICO_CUR" = yes; then
10413 echo "$as_me:$LINENO: result: yes" >&5
10414echo "${ECHO_T}yes" >&6
10415 else
10416 echo "$as_me:$LINENO: result: no" >&5
10417echo "${ECHO_T}no" >&6
10418 fi
10419
10420
10421fi
10422
10423
10424
ceec2216
RL
10425# Check whether --with-flavour or --without-flavour was given.
10426if test "${with_flavour+set}" = set; then
10427 withval="$with_flavour"
10428 WX_FLAVOUR="$withval"
10429fi;
10430
10431
10432
a848cd7e
SC
10433 enablestring=
10434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10435echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10436 no_cache=0
10437 # Check whether --enable-official_build or --disable-official_build was given.
10438if test "${enable_official_build+set}" = set; then
10439 enableval="$enable_official_build"
10440
10441 if test "$enableval" = yes; then
10442 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10443 else
10444 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10445 fi
10446
10447else
10448
10449 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10450 if test "x$LINE" != x ; then
10451 eval "DEFAULT_$LINE"
10452 else
10453 no_cache=1
10454 fi
10455
10456 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10457
10458fi;
10459
10460 eval "$ac_cv_use_official_build"
10461 if test "$no_cache" != 1; then
10462 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10463 fi
10464
10465 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10466 echo "$as_me:$LINENO: result: yes" >&5
10467echo "${ECHO_T}yes" >&6
10468 else
10469 echo "$as_me:$LINENO: result: no" >&5
10470echo "${ECHO_T}no" >&6
10471 fi
10472
10473# Check whether --enable-vendor or --disable-vendor was given.
10474if test "${enable_vendor+set}" = set; then
10475 enableval="$enable_vendor"
10476 VENDOR="$enableval"
10477fi;
10478if test "x$VENDOR" = "x"; then
10479 VENDOR="custom"
10480fi
10481
a848cd7e
SC
10482
10483
10484
10485 echo "saving argument cache $wx_arg_cache_file"
10486 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10487
10488
10489
10490echo "$as_me:$LINENO: checking for toolkit" >&5
10491echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10492
10493# In Wine, we need to default to MSW, not GTK or MOTIF
10494if test "$wxUSE_WINE" = "yes"; then
10495 DEFAULT_DEFAULT_wxUSE_GTK=0
10496 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10497 DEFAULT_DEFAULT_wxUSE_MSW=1
10498 wxUSE_SHARED=no
10499fi
10500
f597b41c 10501
a848cd7e
SC
10502if test "$wxUSE_GUI" = "yes"; then
10503
10504 if test "$USE_BEOS" = 1; then
10505 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10506echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10507 { (exit 1); exit 1; }; }
10508 fi
10509
10510 if test "$TOOLKIT_GIVEN" = 1; then
10511 for toolkit in `echo $ALL_TOOLKITS`; do
10512 var=wxUSE_$toolkit
10513 eval "value=\$${var}"
f34ca037
MW
10514 if test "x$value" = "xno"; then
10515 eval "$var=0"
10516 elif test "x$value" != "x"; then
10517 eval "$var=1"
10518 fi
10519
10520 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10521 eval "wx${toolkit}_VERSION=$value"
10522 fi
a848cd7e
SC
10523 done
10524 else
10525 for toolkit in `echo $ALL_TOOLKITS`; do
10526 if test "$has_toolkit_in_cache" != 1; then
10527 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10528 else
10529 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10530
10531 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10532 if test "x$version" != "x"; then
10533 eval "wx${toolkit}_VERSION=$version"
10534 fi
a848cd7e
SC
10535 fi
10536 eval "wxUSE_$toolkit=\$${var}"
10537 done
10538 fi
10539
10540 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10541 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10542 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10543
10544 case "${host}" in
10545 *-pc-os2_emx | *-pc-os2-emx )
10546 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10547 esac
10548
10549 case "$NUM_TOOLKITS" in
10550 1)
10551 ;;
10552 0)
10553 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10554echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10555 { (exit 1); exit 1; }; }
10556 ;;
10557 *)
10558 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10559echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10560 { (exit 1); exit 1; }; }
10561 esac
10562
f34ca037
MW
10563 # to be removed when --disable-gtk2 isn't needed
10564 if test "x$wxUSE_GTK2" = "xyes"; then
10565 wxGTK_VERSION=2
10566 elif test "x$wxUSE_GTK2" = "xno"; then
10567 wxGTK_VERSION=1
10568 fi
10569
a848cd7e
SC
10570 for toolkit in `echo $ALL_TOOLKITS`; do
10571 var=wxUSE_$toolkit
10572 eval "value=\$${var}"
10573 if test "x$value" != x; then
10574 cache_var=CACHE_$toolkit
10575 eval "cache=\$${cache_var}"
10576 if test "$cache" = 1; then
10577 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10578 eval "version=\$wx${toolkit}_VERSION"
10579 if test "x$version" != "x"; then
10580 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10581 fi
a848cd7e
SC
10582 fi
10583 if test "$value" = 1; then
10584 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10585 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10586echo "${ECHO_T}$toolkit_echo" >&6
10587 fi
10588 fi
10589 done
10590else
10591 if test "x$host_alias" != "x"; then
10592 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10593echo "${ECHO_T}base ($host_alias hosted) only" >&6
10594 else
10595 echo "$as_me:$LINENO: result: base only" >&5
10596echo "${ECHO_T}base only" >&6
10597 fi
10598fi
10599
10600wants_win32=0
10601doesnt_want_win32=0
10602case "${host}" in
10603 *-*-cygwin*)
10604 if test "$wxUSE_MSW" = 1 ; then
10605 wants_win32=1
7275146d 10606 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10607 else
10608 doesnt_want_win32=1
10609 fi
10610 ;;
10611 *-*-mingw*)
10612 wants_win32=1
10613 ;;
10614esac
10615
10616if test "$wxUSE_WINE" = "yes"; then
10617 wants_win32=1
10618 CC=winegcc
10619 CXX=wineg++
a848cd7e
SC
10620 LDFLAGS_GUI="-mwindows"
10621fi
10622
10623if test "$wants_win32" = 1 ; then
10624 USE_UNIX=0
10625 USE_WIN32=1
10626 cat >>confdefs.h <<\_ACEOF
10627#define __WIN32__ 1
10628_ACEOF
10629
10630 cat >>confdefs.h <<\_ACEOF
10631#define __WIN95__ 1
10632_ACEOF
10633
10634 cat >>confdefs.h <<\_ACEOF
10635#define __WINDOWS__ 1
10636_ACEOF
10637
10638 cat >>confdefs.h <<\_ACEOF
10639#define __GNUWIN32__ 1
10640_ACEOF
10641
10642 cat >>confdefs.h <<\_ACEOF
10643#define STRICT 1
10644_ACEOF
10645
10646 cat >>confdefs.h <<\_ACEOF
10647#define WINVER 0x0400
10648_ACEOF
10649
10650fi
10651if test "$doesnt_want_win32" = 1 ; then
10652 USE_UNIX=1
10653 USE_WIN32=0
10654fi
10655
10656if test "$USE_UNIX" = 1 ; then
10657 wxUSE_UNIX=yes
10658 cat >>confdefs.h <<\_ACEOF
10659#define __UNIX__ 1
10660_ACEOF
10661
10662fi
10663
10664
10665cat >confcache <<\_ACEOF
10666# This file is a shell script that caches the results of configure
10667# tests run on this system so they can be shared between configure
10668# scripts and configure runs, see configure's option --config-cache.
10669# It is not useful on other systems. If it contains results you don't
10670# want to keep, you may remove or edit it.
10671#
10672# config.status only pays attention to the cache file if you give it
10673# the --recheck option to rerun configure.
10674#
10675# `ac_cv_env_foo' variables (set or unset) will be overridden when
10676# loading this file, other *unset* `ac_cv_foo' will be assigned the
10677# following values.
10678
10679_ACEOF
10680
10681# The following way of writing the cache mishandles newlines in values,
10682# but we know of no workaround that is simple, portable, and efficient.
10683# So, don't put newlines in cache variables' values.
10684# Ultrix sh set writes to stderr and can't be redirected directly,
10685# and sets the high bit in the cache file unless we assign to the vars.
10686{
10687 (set) 2>&1 |
10688 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10689 *ac_space=\ *)
10690 # `set' does not quote correctly, so add quotes (double-quote
10691 # substitution turns \\\\ into \\, and sed turns \\ into \).
10692 sed -n \
ac1cb8d3
VS
10693 "s/'/'\\\\''/g;
10694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10695 ;;
10696 *)
10697 # `set' quotes correctly as required by POSIX, so do not add quotes.
10698 sed -n \
ac1cb8d3 10699 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10700 ;;
10701 esac;
10702} |
10703 sed '
10704 t clear
10705 : clear
10706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10707 t end
10708 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10709 : end' >>confcache
10710if diff $cache_file confcache >/dev/null 2>&1; then :; else
10711 if test -w $cache_file; then
10712 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10713 cat confcache >$cache_file
10714 else
10715 echo "not updating unwritable cache $cache_file"
10716 fi
10717fi
10718rm -f confcache
10719
a848cd7e 10720CFLAGS=${CFLAGS:=}
6dcfc289
DE
10721
10722
10723 ac_ext=c
a848cd7e
SC
10724ac_cpp='$CPP $CPPFLAGS'
10725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10727ac_compiler_gnu=$ac_cv_c_compiler_gnu
10728if test -n "$ac_tool_prefix"; then
10729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10730set dummy ${ac_tool_prefix}gcc; ac_word=$2
10731echo "$as_me:$LINENO: checking for $ac_word" >&5
10732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10733if test "${ac_cv_prog_CC+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735else
10736 if test -n "$CC"; then
10737 ac_cv_prog_CC="$CC" # Let the user override the test.
10738else
10739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740for as_dir in $PATH
10741do
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10749 fi
10750done
10751done
10752
10753fi
10754fi
10755CC=$ac_cv_prog_CC
10756if test -n "$CC"; then
10757 echo "$as_me:$LINENO: result: $CC" >&5
10758echo "${ECHO_T}$CC" >&6
10759else
10760 echo "$as_me:$LINENO: result: no" >&5
10761echo "${ECHO_T}no" >&6
10762fi
10763
10764fi
10765if test -z "$ac_cv_prog_CC"; then
10766 ac_ct_CC=$CC
10767 # Extract the first word of "gcc", so it can be a program name with args.
10768set dummy gcc; ac_word=$2
10769echo "$as_me:$LINENO: checking for $ac_word" >&5
10770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10771if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773else
10774 if test -n "$ac_ct_CC"; then
10775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10776else
10777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
10782 for ac_exec_ext in '' $ac_executable_extensions; do
10783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10784 ac_cv_prog_ac_ct_CC="gcc"
10785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 break 2
10787 fi
10788done
10789done
10790
10791fi
10792fi
10793ac_ct_CC=$ac_cv_prog_ac_ct_CC
10794if test -n "$ac_ct_CC"; then
10795 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10796echo "${ECHO_T}$ac_ct_CC" >&6
10797else
10798 echo "$as_me:$LINENO: result: no" >&5
10799echo "${ECHO_T}no" >&6
10800fi
10801
10802 CC=$ac_ct_CC
10803else
10804 CC="$ac_cv_prog_CC"
10805fi
10806
10807if test -z "$CC"; then
10808 if test -n "$ac_tool_prefix"; then
10809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10810set dummy ${ac_tool_prefix}cc; ac_word=$2
10811echo "$as_me:$LINENO: checking for $ac_word" >&5
10812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10813if test "${ac_cv_prog_CC+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815else
10816 if test -n "$CC"; then
10817 ac_cv_prog_CC="$CC" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826 ac_cv_prog_CC="${ac_tool_prefix}cc"
10827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10829 fi
10830done
10831done
10832
10833fi
10834fi
10835CC=$ac_cv_prog_CC
10836if test -n "$CC"; then
10837 echo "$as_me:$LINENO: result: $CC" >&5
10838echo "${ECHO_T}$CC" >&6
10839else
10840 echo "$as_me:$LINENO: result: no" >&5
10841echo "${ECHO_T}no" >&6
10842fi
10843
10844fi
10845if test -z "$ac_cv_prog_CC"; then
10846 ac_ct_CC=$CC
10847 # Extract the first word of "cc", so it can be a program name with args.
10848set dummy cc; ac_word=$2
10849echo "$as_me:$LINENO: checking for $ac_word" >&5
10850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853else
10854 if test -n "$ac_ct_CC"; then
10855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10856else
10857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858for as_dir in $PATH
10859do
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10864 ac_cv_prog_ac_ct_CC="cc"
10865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10867 fi
10868done
10869done
10870
10871fi
10872fi
10873ac_ct_CC=$ac_cv_prog_ac_ct_CC
10874if test -n "$ac_ct_CC"; then
10875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10876echo "${ECHO_T}$ac_ct_CC" >&6
10877else
10878 echo "$as_me:$LINENO: result: no" >&5
10879echo "${ECHO_T}no" >&6
10880fi
10881
10882 CC=$ac_ct_CC
10883else
10884 CC="$ac_cv_prog_CC"
10885fi
10886
10887fi
10888if test -z "$CC"; then
10889 # Extract the first word of "cc", so it can be a program name with args.
10890set dummy cc; ac_word=$2
10891echo "$as_me:$LINENO: checking for $ac_word" >&5
10892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10893if test "${ac_cv_prog_CC+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896 if test -n "$CC"; then
10897 ac_cv_prog_CC="$CC" # Let the user override the test.
10898else
10899 ac_prog_rejected=no
10900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901for as_dir in $PATH
10902do
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10908 ac_prog_rejected=yes
10909 continue
10910 fi
10911 ac_cv_prog_CC="cc"
10912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10913 break 2
10914 fi
10915done
10916done
10917
10918if test $ac_prog_rejected = yes; then
10919 # We found a bogon in the path, so make sure we never use it.
10920 set dummy $ac_cv_prog_CC
10921 shift
10922 if test $# != 0; then
10923 # We chose a different compiler from the bogus one.
10924 # However, it has the same basename, so the bogon will be chosen
10925 # first if we set CC to just the basename; use the full file name.
10926 shift
10927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10928 fi
10929fi
10930fi
10931fi
10932CC=$ac_cv_prog_CC
10933if test -n "$CC"; then
10934 echo "$as_me:$LINENO: result: $CC" >&5
10935echo "${ECHO_T}$CC" >&6
10936else
10937 echo "$as_me:$LINENO: result: no" >&5
10938echo "${ECHO_T}no" >&6
10939fi
10940
10941fi
10942if test -z "$CC"; then
10943 if test -n "$ac_tool_prefix"; then
10944 for ac_prog in cl
10945 do
10946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10948echo "$as_me:$LINENO: checking for $ac_word" >&5
10949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10950if test "${ac_cv_prog_CC+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952else
10953 if test -n "$CC"; then
10954 ac_cv_prog_CC="$CC" # Let the user override the test.
10955else
10956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957for as_dir in $PATH
10958do
10959 IFS=$as_save_IFS
10960 test -z "$as_dir" && as_dir=.
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10966 fi
10967done
10968done
10969
10970fi
10971fi
10972CC=$ac_cv_prog_CC
10973if test -n "$CC"; then
10974 echo "$as_me:$LINENO: result: $CC" >&5
10975echo "${ECHO_T}$CC" >&6
10976else
10977 echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6
10979fi
10980
10981 test -n "$CC" && break
10982 done
10983fi
10984if test -z "$CC"; then
10985 ac_ct_CC=$CC
10986 for ac_prog in cl
10987do
10988 # Extract the first word of "$ac_prog", so it can be a program name with args.
10989set dummy $ac_prog; ac_word=$2
10990echo "$as_me:$LINENO: checking for $ac_word" >&5
10991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995 if test -n "$ac_ct_CC"; then
10996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10997else
10998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999for as_dir in $PATH
11000do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11005 ac_cv_prog_ac_ct_CC="$ac_prog"
11006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11008 fi
11009done
11010done
11011
11012fi
11013fi
11014ac_ct_CC=$ac_cv_prog_ac_ct_CC
11015if test -n "$ac_ct_CC"; then
11016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11017echo "${ECHO_T}$ac_ct_CC" >&6
11018else
11019 echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6
11021fi
11022
11023 test -n "$ac_ct_CC" && break
11024done
11025
11026 CC=$ac_ct_CC
11027fi
11028
11029fi
11030
11031
11032test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11033See \`config.log' for more details." >&5
11034echo "$as_me: error: no acceptable C compiler found in \$PATH
11035See \`config.log' for more details." >&2;}
11036 { (exit 1); exit 1; }; }
11037
11038# Provide some information about the compiler.
11039echo "$as_me:$LINENO:" \
11040 "checking for C compiler version" >&5
11041ac_compiler=`set X $ac_compile; echo $2`
11042{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11043 (eval $ac_compiler --version </dev/null >&5) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }
11047{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11048 (eval $ac_compiler -v </dev/null >&5) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }
11052{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11053 (eval $ac_compiler -V </dev/null >&5) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }
11057
11058cat >conftest.$ac_ext <<_ACEOF
11059/* confdefs.h. */
11060_ACEOF
11061cat confdefs.h >>conftest.$ac_ext
11062cat >>conftest.$ac_ext <<_ACEOF
11063/* end confdefs.h. */
11064
11065int
11066main ()
11067{
11068
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073ac_clean_files_save=$ac_clean_files
11074ac_clean_files="$ac_clean_files a.out a.exe b.out"
11075# Try to create an executable without -o first, disregard a.out.
11076# It will help us diagnose broken compilers, and finding out an intuition
11077# of exeext.
ac1cb8d3
VS
11078echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11079echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11080ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11081if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11082 (eval $ac_link_default) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; then
11086 # Find the output, starting from the most likely. This scheme is
11087# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11088# resort.
11089
11090# Be careful to initialize this variable, since it used to be cached.
11091# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11092ac_cv_exeext=
11093# b.out is created by i960 compilers.
11094for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11095do
11096 test -f "$ac_file" || continue
11097 case $ac_file in
11098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11099 ;;
a848cd7e 11100 conftest.$ac_ext )
ac1cb8d3
VS
11101 # This is the source file.
11102 ;;
a848cd7e 11103 [ab].out )
ac1cb8d3
VS
11104 # We found the default executable, but exeext='' is most
11105 # certainly right.
11106 break;;
a848cd7e 11107 *.* )
ac1cb8d3
VS
11108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11109 # FIXME: I believe we export ac_cv_exeext for Libtool,
11110 # but it would be cool to find out if it's true. Does anybody
11111 # maintain Libtool? --akim.
11112 export ac_cv_exeext
11113 break;;
a848cd7e 11114 * )
ac1cb8d3 11115 break;;
a848cd7e
SC
11116 esac
11117done
11118else
11119 echo "$as_me: failed program was:" >&5
11120sed 's/^/| /' conftest.$ac_ext >&5
11121
11122{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11123See \`config.log' for more details." >&5
11124echo "$as_me: error: C compiler cannot create executables
11125See \`config.log' for more details." >&2;}
11126 { (exit 77); exit 77; }; }
11127fi
11128
11129ac_exeext=$ac_cv_exeext
11130echo "$as_me:$LINENO: result: $ac_file" >&5
11131echo "${ECHO_T}$ac_file" >&6
11132
11133# Check the compiler produces executables we can run. If not, either
11134# the compiler is broken, or we cross compile.
11135echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11136echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11137# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11138# If not cross compiling, check that we can run a simple program.
11139if test "$cross_compiling" != yes; then
11140 if { ac_try='./$ac_file'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 cross_compiling=no
11147 else
11148 if test "$cross_compiling" = maybe; then
11149 cross_compiling=yes
11150 else
11151 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11152If you meant to cross compile, use \`--host'.
11153See \`config.log' for more details." >&5
11154echo "$as_me: error: cannot run C compiled programs.
11155If you meant to cross compile, use \`--host'.
11156See \`config.log' for more details." >&2;}
11157 { (exit 1); exit 1; }; }
11158 fi
11159 fi
11160fi
11161echo "$as_me:$LINENO: result: yes" >&5
11162echo "${ECHO_T}yes" >&6
11163
11164rm -f a.out a.exe conftest$ac_cv_exeext b.out
11165ac_clean_files=$ac_clean_files_save
11166# Check the compiler produces executables we can run. If not, either
11167# the compiler is broken, or we cross compile.
11168echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11169echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11170echo "$as_me:$LINENO: result: $cross_compiling" >&5
11171echo "${ECHO_T}$cross_compiling" >&6
11172
11173echo "$as_me:$LINENO: checking for suffix of executables" >&5
11174echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; then
11180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11181# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11182# work properly (i.e., refer to `conftest.exe'), while it won't with
11183# `rm'.
11184for ac_file in conftest.exe conftest conftest.*; do
11185 test -f "$ac_file" || continue
11186 case $ac_file in
11187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11189 export ac_cv_exeext
11190 break;;
a848cd7e
SC
11191 * ) break;;
11192 esac
11193done
11194else
11195 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11196See \`config.log' for more details." >&5
11197echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11198See \`config.log' for more details." >&2;}
11199 { (exit 1); exit 1; }; }
11200fi
11201
11202rm -f conftest$ac_cv_exeext
11203echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11204echo "${ECHO_T}$ac_cv_exeext" >&6
11205
11206rm -f conftest.$ac_ext
11207EXEEXT=$ac_cv_exeext
11208ac_exeext=$EXEEXT
11209echo "$as_me:$LINENO: checking for suffix of object files" >&5
11210echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11211if test "${ac_cv_objext+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213else
11214 cat >conftest.$ac_ext <<_ACEOF
11215/* confdefs.h. */
11216_ACEOF
11217cat confdefs.h >>conftest.$ac_ext
11218cat >>conftest.$ac_ext <<_ACEOF
11219/* end confdefs.h. */
11220
11221int
11222main ()
11223{
11224
11225 ;
11226 return 0;
11227}
11228_ACEOF
11229rm -f conftest.o conftest.obj
11230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11231 (eval $ac_compile) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; then
11235 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11236 case $ac_file in
11237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11239 break;;
11240 esac
11241done
11242else
11243 echo "$as_me: failed program was:" >&5
11244sed 's/^/| /' conftest.$ac_ext >&5
11245
11246{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11247See \`config.log' for more details." >&5
11248echo "$as_me: error: cannot compute suffix of object files: cannot compile
11249See \`config.log' for more details." >&2;}
11250 { (exit 1); exit 1; }; }
11251fi
11252
11253rm -f conftest.$ac_cv_objext conftest.$ac_ext
11254fi
11255echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11256echo "${ECHO_T}$ac_cv_objext" >&6
11257OBJEXT=$ac_cv_objext
11258ac_objext=$OBJEXT
11259echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11260echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11261if test "${ac_cv_c_compiler_gnu+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263else
11264 cat >conftest.$ac_ext <<_ACEOF
11265/* confdefs.h. */
11266_ACEOF
11267cat confdefs.h >>conftest.$ac_ext
11268cat >>conftest.$ac_ext <<_ACEOF
11269/* end confdefs.h. */
11270
11271int
11272main ()
11273{
11274#ifndef __GNUC__
11275 choke me
11276#endif
11277
11278 ;
11279 return 0;
11280}
11281_ACEOF
11282rm -f conftest.$ac_objext
11283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11284 (eval $ac_compile) 2>conftest.er1
a848cd7e 11285 ac_status=$?
ac1cb8d3
VS
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
a848cd7e
SC
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
6ebeb4c7 11291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 ac_compiler_gnu=yes
11304else
11305 echo "$as_me: failed program was:" >&5
11306sed 's/^/| /' conftest.$ac_ext >&5
11307
11308ac_compiler_gnu=no
11309fi
ac1cb8d3 11310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11311ac_cv_c_compiler_gnu=$ac_compiler_gnu
11312
11313fi
11314echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11315echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11316GCC=`test $ac_compiler_gnu = yes && echo yes`
11317ac_test_CFLAGS=${CFLAGS+set}
11318ac_save_CFLAGS=$CFLAGS
9122d155 11319CFLAGS="-g"
a848cd7e
SC
11320echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11321echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11322if test "${ac_cv_prog_cc_g+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324else
11325 cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331
11332int
11333main ()
11334{
11335
11336 ;
11337 return 0;
11338}
11339_ACEOF
11340rm -f conftest.$ac_objext
11341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11342 (eval $ac_compile) 2>conftest.er1
a848cd7e 11343 ac_status=$?
ac1cb8d3
VS
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
a848cd7e
SC
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
6ebeb4c7 11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_cv_prog_cc_g=yes
11362else
11363 echo "$as_me: failed program was:" >&5
11364sed 's/^/| /' conftest.$ac_ext >&5
11365
11366ac_cv_prog_cc_g=no
11367fi
ac1cb8d3 11368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11369fi
11370echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11371echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11372if test "$ac_test_CFLAGS" = set; then
11373 CFLAGS=$ac_save_CFLAGS
11374elif test $ac_cv_prog_cc_g = yes; then
11375 if test "$GCC" = yes; then
11376 CFLAGS="-g -O2"
11377 else
11378 CFLAGS="-g"
11379 fi
11380else
11381 if test "$GCC" = yes; then
11382 CFLAGS="-O2"
11383 else
11384 CFLAGS=
11385 fi
11386fi
11387echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11388echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11389if test "${ac_cv_prog_cc_stdc+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391else
11392 ac_cv_prog_cc_stdc=no
11393ac_save_CC=$CC
11394cat >conftest.$ac_ext <<_ACEOF
11395/* confdefs.h. */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h. */
11400#include <stdarg.h>
11401#include <stdio.h>
11402#include <sys/types.h>
11403#include <sys/stat.h>
11404/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11405struct buf { int x; };
11406FILE * (*rcsopen) (struct buf *, struct stat *, int);
11407static char *e (p, i)
11408 char **p;
11409 int i;
11410{
11411 return p[i];
11412}
11413static char *f (char * (*g) (char **, int), char **p, ...)
11414{
11415 char *s;
11416 va_list v;
11417 va_start (v,p);
11418 s = g (p, va_arg (v,int));
11419 va_end (v);
11420 return s;
11421}
ac1cb8d3
VS
11422
11423/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11424 function prototypes and stuff, but not '\xHH' hex character constants.
11425 These don't provoke an error unfortunately, instead are silently treated
11426 as 'x'. The following induces an error, until -std1 is added to get
11427 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11428 array size at least. It's necessary to write '\x00'==0 to get something
11429 that's true only with -std1. */
11430int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11431
a848cd7e
SC
11432int test (int i, double x);
11433struct s1 {int (*f) (int a);};
11434struct s2 {int (*f) (double a);};
11435int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11436int argc;
11437char **argv;
11438int
11439main ()
11440{
11441return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11442 ;
11443 return 0;
11444}
11445_ACEOF
11446# Don't try gcc -ansi; that turns off useful extensions and
11447# breaks some systems' header files.
11448# AIX -qlanglvl=ansi
11449# Ultrix and OSF/1 -std1
11450# HP-UX 10.20 and later -Ae
11451# HP-UX older versions -Aa -D_HPUX_SOURCE
11452# SVR4 -Xc -D__EXTENSIONS__
11453for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11454do
11455 CC="$ac_save_CC $ac_arg"
11456 rm -f conftest.$ac_objext
11457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11458 (eval $ac_compile) 2>conftest.er1
a848cd7e 11459 ac_status=$?
ac1cb8d3
VS
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
a848cd7e
SC
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
6ebeb4c7 11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_prog_cc_stdc=$ac_arg
11478break
11479else
11480 echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
11483fi
ac1cb8d3 11484rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11485done
11486rm -f conftest.$ac_ext conftest.$ac_objext
11487CC=$ac_save_CC
11488
11489fi
11490
11491case "x$ac_cv_prog_cc_stdc" in
11492 x|xno)
11493 echo "$as_me:$LINENO: result: none needed" >&5
11494echo "${ECHO_T}none needed" >&6 ;;
11495 *)
11496 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11497echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11498 CC="$CC $ac_cv_prog_cc_stdc" ;;
11499esac
11500
11501# Some people use a C++ compiler to compile C. Since we use `exit',
11502# in C++ we need to declare it. In case someone uses the same compiler
11503# for both compiling C and C++ we need to have the C++ compiler decide
11504# the declaration of exit, since it's the most demanding environment.
11505cat >conftest.$ac_ext <<_ACEOF
11506#ifndef __cplusplus
11507 choke me
11508#endif
11509_ACEOF
11510rm -f conftest.$ac_objext
11511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11512 (eval $ac_compile) 2>conftest.er1
a848cd7e 11513 ac_status=$?
ac1cb8d3
VS
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
a848cd7e
SC
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
6ebeb4c7 11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 for ac_declaration in \
ac1cb8d3 11532 '' \
a848cd7e
SC
11533 'extern "C" void std::exit (int) throw (); using std::exit;' \
11534 'extern "C" void std::exit (int); using std::exit;' \
11535 'extern "C" void exit (int) throw ();' \
11536 'extern "C" void exit (int);' \
11537 'void exit (int);'
11538do
11539 cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
de59c161 11545$ac_declaration
ac1cb8d3 11546#include <stdlib.h>
a848cd7e
SC
11547int
11548main ()
11549{
11550exit (42);
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext
11556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11557 (eval $ac_compile) 2>conftest.er1
a848cd7e 11558 ac_status=$?
ac1cb8d3
VS
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
a848cd7e
SC
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
6ebeb4c7 11564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 :
11577else
11578 echo "$as_me: failed program was:" >&5
11579sed 's/^/| /' conftest.$ac_ext >&5
11580
11581continue
11582fi
ac1cb8d3 11583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11584 cat >conftest.$ac_ext <<_ACEOF
11585/* confdefs.h. */
11586_ACEOF
11587cat confdefs.h >>conftest.$ac_ext
11588cat >>conftest.$ac_ext <<_ACEOF
11589/* end confdefs.h. */
11590$ac_declaration
11591int
11592main ()
11593{
11594exit (42);
11595 ;
11596 return 0;
11597}
11598_ACEOF
11599rm -f conftest.$ac_objext
11600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11601 (eval $ac_compile) 2>conftest.er1
a848cd7e 11602 ac_status=$?
ac1cb8d3
VS
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
a848cd7e
SC
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
6ebeb4c7 11608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 break
11621else
11622 echo "$as_me: failed program was:" >&5
11623sed 's/^/| /' conftest.$ac_ext >&5
11624
11625fi
ac1cb8d3 11626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11627done
11628rm -f conftest*
11629if test -n "$ac_declaration"; then
11630 echo '#ifdef __cplusplus' >>confdefs.h
11631 echo $ac_declaration >>confdefs.h
11632 echo '#endif' >>confdefs.h
11633fi
11634
11635else
11636 echo "$as_me: failed program was:" >&5
11637sed 's/^/| /' conftest.$ac_ext >&5
11638
11639fi
ac1cb8d3 11640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11641ac_ext=c
11642ac_cpp='$CPP $CPPFLAGS'
11643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11645ac_compiler_gnu=$ac_cv_c_compiler_gnu
11646
6dcfc289 11647 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11648echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11649if test "${wx_cv_c_exto+set}" = set; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11651else
11652 cat >conftest.$ac_ext <<_ACEOF
11653/* confdefs.h. */
11654_ACEOF
11655cat confdefs.h >>conftest.$ac_ext
11656cat >>conftest.$ac_ext <<_ACEOF
11657/* end confdefs.h. */
11658
11659int
11660main ()
11661{
11662
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext conftest.$ac_ext.o
11668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669 (eval $ac_compile) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; then
11673 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11674 case $ac_file in
11675 conftest.$ac_ext.o)
11676 wx_cv_c_exto="-ext o"
11677 ;;
11678 *)
11679 ;;
11680 esac
11681done
11682else
11683 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11684See \`config.log' for more details." >&5
11685echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11686See \`config.log' for more details." >&2;}
11687 { (exit 1); exit 1; }; }
11688
11689fi
11690
11691rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11692
11693fi
11694echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11695echo "${ECHO_T}$wx_cv_c_exto" >&6
11696if test "x$wx_cv_c_exto" '!=' "x"; then
11697 if test "c" = "c"; then
11698 CFLAGS="$wx_cv_c_exto $CFLAGS"
11699 fi
11700 if test "c" = "cxx"; then
11701 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11702 fi
11703fi
11704
6dcfc289
DE
11705 if test "x$wx_cv_c_exto" '!=' "x"; then
11706 unset ac_cv_prog_cc_g
11707 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11708ac_save_CFLAGS=$CFLAGS
9122d155 11709CFLAGS="-g"
480ccd21
DE
11710echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11711echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11712if test "${ac_cv_prog_cc_g+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714else
11715 cat >conftest.$ac_ext <<_ACEOF
11716/* confdefs.h. */
11717_ACEOF
11718cat confdefs.h >>conftest.$ac_ext
11719cat >>conftest.$ac_ext <<_ACEOF
11720/* end confdefs.h. */
11721
11722int
11723main ()
11724{
11725
11726 ;
11727 return 0;
11728}
11729_ACEOF
11730rm -f conftest.$ac_objext
11731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732 (eval $ac_compile) 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
6ebeb4c7 11739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try='test -s conftest.$ac_objext'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 ac_cv_prog_cc_g=yes
11752else
11753 echo "$as_me: failed program was:" >&5
11754sed 's/^/| /' conftest.$ac_ext >&5
11755
11756ac_cv_prog_cc_g=no
11757fi
11758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11759fi
11760echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11761echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11762if test "$ac_test_CFLAGS" = set; then
11763 CFLAGS=$ac_save_CFLAGS
11764elif test $ac_cv_prog_cc_g = yes; then
11765 if test "$GCC" = yes; then
11766 CFLAGS="-g -O2"
11767 else
11768 CFLAGS="-g"
11769 fi
11770else
11771 if test "$GCC" = yes; then
11772 CFLAGS="-O2"
11773 else
11774 CFLAGS=
11775 fi
11776fi
6dcfc289
DE
11777 fi
11778 ac_ext=c
95986553
DE
11779ac_cpp='$CPP $CPPFLAGS'
11780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782ac_compiler_gnu=$ac_cv_c_compiler_gnu
11783
11784echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11785echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11786if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788else
11789 cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
11795
11796int
11797main ()
11798{
11799#ifndef __MWERKS__
11800 choke me
11801#endif
11802
11803 ;
11804 return 0;
11805}
11806_ACEOF
11807rm -f conftest.$ac_objext
11808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
6ebeb4c7 11816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; } &&
11822 { ac_try='test -s conftest.$ac_objext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 bakefile_compiler_mwerks=yes
11829else
11830 echo "$as_me: failed program was:" >&5
11831sed 's/^/| /' conftest.$ac_ext >&5
11832
11833bakefile_compiler_mwerks=no
11834fi
11835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11836 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11837
11838fi
11839echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11840echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11841
0e6fa1d9 11842MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11843ac_ext=c
11844ac_cpp='$CPP $CPPFLAGS'
11845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11847ac_compiler_gnu=$ac_cv_c_compiler_gnu
11848
11849
6dcfc289 11850 ac_ext=c
9273ffba
DE
11851ac_cpp='$CPP $CPPFLAGS'
11852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11854ac_compiler_gnu=$ac_cv_c_compiler_gnu
11855
11856echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11857echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11858if test "${wx_cv_c_compiler_xlc+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11860else
11861 cat >conftest.$ac_ext <<_ACEOF
11862/* confdefs.h. */
11863_ACEOF
11864cat confdefs.h >>conftest.$ac_ext
11865cat >>conftest.$ac_ext <<_ACEOF
11866/* end confdefs.h. */
11867
11868int
11869main ()
11870{
11871#ifndef __xlC__
11872 choke me
11873#endif
11874
11875 ;
11876 return 0;
11877}
11878_ACEOF
11879rm -f conftest.$ac_objext
11880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11881 (eval $ac_compile) 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
6ebeb4c7 11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest.$ac_objext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 wx_compiler_xlc=yes
11901else
11902 echo "$as_me: failed program was:" >&5
11903sed 's/^/| /' conftest.$ac_ext >&5
11904
11905wx_compiler_xlc=no
11906fi
11907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11908 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11909
11910fi
11911echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11912echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11913
0e6fa1d9 11914XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11915ac_ext=c
11916ac_cpp='$CPP $CPPFLAGS'
11917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11919ac_compiler_gnu=$ac_cv_c_compiler_gnu
11920
11921
a848cd7e 11922
6dcfc289 11923
0ad5d837
VZ
11924 ac_ext=c
11925ac_cpp='$CPP $CPPFLAGS'
11926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928ac_compiler_gnu=$ac_cv_c_compiler_gnu
11929
11930 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
11931echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
11932if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934else
11935 cat >conftest.$ac_ext <<_ACEOF
11936/* confdefs.h. */
11937_ACEOF
11938cat confdefs.h >>conftest.$ac_ext
11939cat >>conftest.$ac_ext <<_ACEOF
11940/* end confdefs.h. */
11941
11942int
11943main ()
11944{
11945
11946 #ifndef _SGI_COMPILER_VERSION
11947 choke me
11948 #endif
11949
11950 ;
11951 return 0;
11952}
11953_ACEOF
11954rm -f conftest.$ac_objext
11955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11956 (eval $ac_compile) 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest.$ac_objext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
11976else
11977 echo "$as_me: failed program was:" >&5
11978sed 's/^/| /' conftest.$ac_ext >&5
11979
11980bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
11981
11982fi
11983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11984
11985
11986fi
11987echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
11988echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
11989 ac_ext=c
11990ac_cpp='$CPP $CPPFLAGS'
11991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993ac_compiler_gnu=$ac_cv_c_compiler_gnu
11994
11995 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
11996 :; SGICC=yes
11997 else
11998 :;
11999 fi
12000
12001
12002
12003
a9e5b1f0
MW
12004 ac_ext=c
12005ac_cpp='$CPP $CPPFLAGS'
12006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12008ac_compiler_gnu=$ac_cv_c_compiler_gnu
12009
12010 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12011echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12012if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12014else
12015 cat >conftest.$ac_ext <<_ACEOF
12016/* confdefs.h. */
12017_ACEOF
12018cat confdefs.h >>conftest.$ac_ext
12019cat >>conftest.$ac_ext <<_ACEOF
12020/* end confdefs.h. */
12021
12022int
12023main ()
12024{
12025
12026 #ifndef __SUNPRO_C
12027 choke me
12028 #endif
12029
12030 ;
12031 return 0;
12032}
12033_ACEOF
12034rm -f conftest.$ac_objext
12035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
6ebeb4c7 12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest.$ac_objext'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
12055 bakefile_cv_c_compiler___SUNPRO_C=yes
12056else
12057 echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
12060bakefile_cv_c_compiler___SUNPRO_C=no
12061
12062fi
12063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12064
12065
12066fi
12067echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12068echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12069 ac_ext=c
12070ac_cpp='$CPP $CPPFLAGS'
12071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12073ac_compiler_gnu=$ac_cv_c_compiler_gnu
12074
12075 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12076 :; SUNCC=yes
12077 else
12078 :;
12079 fi
12080
12081
12082
12083
a848cd7e
SC
12084ac_ext=c
12085ac_cpp='$CPP $CPPFLAGS'
12086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12088ac_compiler_gnu=$ac_cv_c_compiler_gnu
12089echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12090echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12091# On Suns, sometimes $CPP names a directory.
12092if test -n "$CPP" && test -d "$CPP"; then
12093 CPP=
12094fi
12095if test -z "$CPP"; then
12096 if test "${ac_cv_prog_CPP+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098else
12099 # Double quotes because CPP needs to be expanded
12100 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12101 do
12102 ac_preproc_ok=false
12103for ac_c_preproc_warn_flag in '' yes
12104do
12105 # Use a header file that comes with gcc, so configuring glibc
12106 # with a fresh cross-compiler works.
12107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12108 # <limits.h> exists even on freestanding compilers.
12109 # On the NeXT, cc -E runs the code through the compiler's parser,
12110 # not just through cpp. "Syntax error" is here to catch this case.
12111 cat >conftest.$ac_ext <<_ACEOF
12112/* confdefs.h. */
12113_ACEOF
12114cat confdefs.h >>conftest.$ac_ext
12115cat >>conftest.$ac_ext <<_ACEOF
12116/* end confdefs.h. */
12117#ifdef __STDC__
12118# include <limits.h>
12119#else
12120# include <assert.h>
12121#endif
ac1cb8d3 12122 Syntax error
a848cd7e
SC
12123_ACEOF
12124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } >/dev/null; then
12132 if test -s conftest.err; then
12133 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12135 else
12136 ac_cpp_err=
12137 fi
12138else
12139 ac_cpp_err=yes
12140fi
12141if test -z "$ac_cpp_err"; then
12142 :
12143else
12144 echo "$as_me: failed program was:" >&5
12145sed 's/^/| /' conftest.$ac_ext >&5
12146
12147 # Broken: fails on valid input.
12148continue
12149fi
12150rm -f conftest.err conftest.$ac_ext
12151
12152 # OK, works on sane cases. Now check whether non-existent headers
12153 # can be detected and how.
12154 cat >conftest.$ac_ext <<_ACEOF
12155/* confdefs.h. */
12156_ACEOF
12157cat confdefs.h >>conftest.$ac_ext
12158cat >>conftest.$ac_ext <<_ACEOF
12159/* end confdefs.h. */
12160#include <ac_nonexistent.h>
12161_ACEOF
12162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12164 ac_status=$?
12165 grep -v '^ *+' conftest.er1 >conftest.err
12166 rm -f conftest.er1
12167 cat conftest.err >&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } >/dev/null; then
12170 if test -s conftest.err; then
12171 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12173 else
12174 ac_cpp_err=
12175 fi
12176else
12177 ac_cpp_err=yes
12178fi
12179if test -z "$ac_cpp_err"; then
12180 # Broken: success on invalid input.
12181continue
12182else
12183 echo "$as_me: failed program was:" >&5
12184sed 's/^/| /' conftest.$ac_ext >&5
12185
12186 # Passes both tests.
12187ac_preproc_ok=:
12188break
12189fi
12190rm -f conftest.err conftest.$ac_ext
12191
12192done
12193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12194rm -f conftest.err conftest.$ac_ext
12195if $ac_preproc_ok; then
12196 break
12197fi
12198
12199 done
12200 ac_cv_prog_CPP=$CPP
12201
12202fi
12203 CPP=$ac_cv_prog_CPP
12204else
12205 ac_cv_prog_CPP=$CPP
12206fi
12207echo "$as_me:$LINENO: result: $CPP" >&5
12208echo "${ECHO_T}$CPP" >&6
12209ac_preproc_ok=false
12210for ac_c_preproc_warn_flag in '' yes
12211do
12212 # Use a header file that comes with gcc, so configuring glibc
12213 # with a fresh cross-compiler works.
12214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12215 # <limits.h> exists even on freestanding compilers.
12216 # On the NeXT, cc -E runs the code through the compiler's parser,
12217 # not just through cpp. "Syntax error" is here to catch this case.
12218 cat >conftest.$ac_ext <<_ACEOF
12219/* confdefs.h. */
12220_ACEOF
12221cat confdefs.h >>conftest.$ac_ext
12222cat >>conftest.$ac_ext <<_ACEOF
12223/* end confdefs.h. */
12224#ifdef __STDC__
12225# include <limits.h>
12226#else
12227# include <assert.h>
12228#endif
ac1cb8d3 12229 Syntax error
a848cd7e
SC
12230_ACEOF
12231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12233 ac_status=$?
12234 grep -v '^ *+' conftest.er1 >conftest.err
12235 rm -f conftest.er1
12236 cat conftest.err >&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } >/dev/null; then
12239 if test -s conftest.err; then
12240 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12242 else
12243 ac_cpp_err=
12244 fi
12245else
12246 ac_cpp_err=yes
12247fi
12248if test -z "$ac_cpp_err"; then
12249 :
12250else
12251 echo "$as_me: failed program was:" >&5
12252sed 's/^/| /' conftest.$ac_ext >&5
12253
12254 # Broken: fails on valid input.
12255continue
12256fi
12257rm -f conftest.err conftest.$ac_ext
12258
12259 # OK, works on sane cases. Now check whether non-existent headers
12260 # can be detected and how.
12261 cat >conftest.$ac_ext <<_ACEOF
12262/* confdefs.h. */
12263_ACEOF
12264cat confdefs.h >>conftest.$ac_ext
12265cat >>conftest.$ac_ext <<_ACEOF
12266/* end confdefs.h. */
12267#include <ac_nonexistent.h>
12268_ACEOF
12269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } >/dev/null; then
12277 if test -s conftest.err; then
12278 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12280 else
12281 ac_cpp_err=
12282 fi
12283else
12284 ac_cpp_err=yes
12285fi
12286if test -z "$ac_cpp_err"; then
12287 # Broken: success on invalid input.
12288continue
12289else
12290 echo "$as_me: failed program was:" >&5
12291sed 's/^/| /' conftest.$ac_ext >&5
12292
12293 # Passes both tests.
12294ac_preproc_ok=:
12295break
12296fi
12297rm -f conftest.err conftest.$ac_ext
12298
12299done
12300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12301rm -f conftest.err conftest.$ac_ext
12302if $ac_preproc_ok; then
12303 :
12304else
12305 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12306See \`config.log' for more details." >&5
12307echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12308See \`config.log' for more details." >&2;}
12309 { (exit 1); exit 1; }; }
12310fi
12311
12312ac_ext=c
12313ac_cpp='$CPP $CPPFLAGS'
12314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12316ac_compiler_gnu=$ac_cv_c_compiler_gnu
12317
12318
12319echo "$as_me:$LINENO: checking for egrep" >&5
12320echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12321if test "${ac_cv_prog_egrep+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323else
12324 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12325 then ac_cv_prog_egrep='grep -E'
12326 else ac_cv_prog_egrep='egrep'
12327 fi
12328fi
12329echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12330echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12331 EGREP=$ac_cv_prog_egrep
12332
12333
12334if test $ac_cv_c_compiler_gnu = yes; then
12335 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12336echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12337if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339else
12340 ac_pattern="Autoconf.*'x'"
12341 cat >conftest.$ac_ext <<_ACEOF
12342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h. */
12347#include <sgtty.h>
12348Autoconf TIOCGETP
12349_ACEOF
12350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12351 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12352 ac_cv_prog_gcc_traditional=yes
12353else
12354 ac_cv_prog_gcc_traditional=no
12355fi
12356rm -f conftest*
12357
12358
12359 if test $ac_cv_prog_gcc_traditional = no; then
12360 cat >conftest.$ac_ext <<_ACEOF
12361/* confdefs.h. */
12362_ACEOF
12363cat confdefs.h >>conftest.$ac_ext
12364cat >>conftest.$ac_ext <<_ACEOF
12365/* end confdefs.h. */
12366#include <termio.h>
12367Autoconf TCGETA
12368_ACEOF
12369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12370 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12371 ac_cv_prog_gcc_traditional=yes
12372fi
12373rm -f conftest*
12374
12375 fi
12376fi
12377echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12378echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12379 if test $ac_cv_prog_gcc_traditional = yes; then
12380 CC="$CC -traditional"
12381 fi
12382fi
12383
12384
12385
12386
12387ac_ext=cc
12388ac_cpp='$CXXCPP $CPPFLAGS'
12389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12392
12393
12394CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12395
12396
12397 ac_ext=cc
a848cd7e
SC
12398ac_cpp='$CXXCPP $CPPFLAGS'
12399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12402if test -n "$ac_tool_prefix"; then
12403 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12404 do
12405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12406set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12407echo "$as_me:$LINENO: checking for $ac_word" >&5
12408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12409if test "${ac_cv_prog_CXX+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411else
12412 if test -n "$CXX"; then
12413 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12414else
12415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416for as_dir in $PATH
12417do
12418 IFS=$as_save_IFS
12419 test -z "$as_dir" && as_dir=.
12420 for ac_exec_ext in '' $ac_executable_extensions; do
12421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12422 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12424 break 2
12425 fi
12426done
12427done
12428
12429fi
12430fi
12431CXX=$ac_cv_prog_CXX
12432if test -n "$CXX"; then
12433 echo "$as_me:$LINENO: result: $CXX" >&5
12434echo "${ECHO_T}$CXX" >&6
12435else
12436 echo "$as_me:$LINENO: result: no" >&5
12437echo "${ECHO_T}no" >&6
12438fi
12439
12440 test -n "$CXX" && break
12441 done
12442fi
12443if test -z "$CXX"; then
12444 ac_ct_CXX=$CXX
12445 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12446do
12447 # Extract the first word of "$ac_prog", so it can be a program name with args.
12448set dummy $ac_prog; ac_word=$2
12449echo "$as_me:$LINENO: checking for $ac_word" >&5
12450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12451if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12453else
12454 if test -n "$ac_ct_CXX"; then
12455 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12456else
12457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458for as_dir in $PATH
12459do
12460 IFS=$as_save_IFS
12461 test -z "$as_dir" && as_dir=.
12462 for ac_exec_ext in '' $ac_executable_extensions; do
12463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12464 ac_cv_prog_ac_ct_CXX="$ac_prog"
12465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12466 break 2
12467 fi
12468done
12469done
12470
12471fi
12472fi
12473ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12474if test -n "$ac_ct_CXX"; then
12475 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12476echo "${ECHO_T}$ac_ct_CXX" >&6
12477else
12478 echo "$as_me:$LINENO: result: no" >&5
12479echo "${ECHO_T}no" >&6
12480fi
12481
12482 test -n "$ac_ct_CXX" && break
12483done
12484test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12485
12486 CXX=$ac_ct_CXX
12487fi
12488
12489
12490# Provide some information about the compiler.
12491echo "$as_me:$LINENO:" \
12492 "checking for C++ compiler version" >&5
12493ac_compiler=`set X $ac_compile; echo $2`
12494{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12495 (eval $ac_compiler --version </dev/null >&5) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }
12499{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12500 (eval $ac_compiler -v </dev/null >&5) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }
12504{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12505 (eval $ac_compiler -V </dev/null >&5) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }
12509
12510echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12511echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12512if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12514else
12515 cat >conftest.$ac_ext <<_ACEOF
12516/* confdefs.h. */
12517_ACEOF
12518cat confdefs.h >>conftest.$ac_ext
12519cat >>conftest.$ac_ext <<_ACEOF
12520/* end confdefs.h. */
12521
12522int
12523main ()
12524{
12525#ifndef __GNUC__
12526 choke me
12527#endif
12528
12529 ;
12530 return 0;
12531}
12532_ACEOF
12533rm -f conftest.$ac_objext
12534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12535 (eval $ac_compile) 2>conftest.er1
a848cd7e 12536 ac_status=$?
ac1cb8d3
VS
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
a848cd7e
SC
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
6ebeb4c7 12542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; } &&
12548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 ac_compiler_gnu=yes
12555else
12556 echo "$as_me: failed program was:" >&5
12557sed 's/^/| /' conftest.$ac_ext >&5
12558
12559ac_compiler_gnu=no
12560fi
ac1cb8d3 12561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12562ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12563
12564fi
12565echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12566echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12567GXX=`test $ac_compiler_gnu = yes && echo yes`
12568ac_test_CXXFLAGS=${CXXFLAGS+set}
12569ac_save_CXXFLAGS=$CXXFLAGS
12570CXXFLAGS="-g"
12571echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12572echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12573if test "${ac_cv_prog_cxx_g+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575else
12576 cat >conftest.$ac_ext <<_ACEOF
12577/* confdefs.h. */
12578_ACEOF
12579cat confdefs.h >>conftest.$ac_ext
12580cat >>conftest.$ac_ext <<_ACEOF
12581/* end confdefs.h. */
12582
12583int
12584main ()
12585{
12586
12587 ;
12588 return 0;
12589}
12590_ACEOF
12591rm -f conftest.$ac_objext
12592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12593 (eval $ac_compile) 2>conftest.er1
a848cd7e 12594 ac_status=$?
ac1cb8d3
VS
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
a848cd7e
SC
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
6ebeb4c7 12600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 ac_cv_prog_cxx_g=yes
12613else
12614 echo "$as_me: failed program was:" >&5
12615sed 's/^/| /' conftest.$ac_ext >&5
12616
12617ac_cv_prog_cxx_g=no
12618fi
ac1cb8d3 12619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12620fi
12621echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12622echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12623if test "$ac_test_CXXFLAGS" = set; then
12624 CXXFLAGS=$ac_save_CXXFLAGS
12625elif test $ac_cv_prog_cxx_g = yes; then
12626 if test "$GXX" = yes; then
9122d155 12627 CXXFLAGS="-g -O2"
a848cd7e 12628 else
9122d155 12629 CXXFLAGS="-g"
a848cd7e
SC
12630 fi
12631else
12632 if test "$GXX" = yes; then
12633 CXXFLAGS="-O2"
12634 else
12635 CXXFLAGS=
12636 fi
12637fi
12638for ac_declaration in \
ac1cb8d3 12639 '' \
a848cd7e
SC
12640 'extern "C" void std::exit (int) throw (); using std::exit;' \
12641 'extern "C" void std::exit (int); using std::exit;' \
12642 'extern "C" void exit (int) throw ();' \
12643 'extern "C" void exit (int);' \
12644 'void exit (int);'
12645do
12646 cat >conftest.$ac_ext <<_ACEOF
12647/* confdefs.h. */
12648_ACEOF
12649cat confdefs.h >>conftest.$ac_ext
12650cat >>conftest.$ac_ext <<_ACEOF
12651/* end confdefs.h. */
de59c161 12652$ac_declaration
ac1cb8d3 12653#include <stdlib.h>
a848cd7e
SC
12654int
12655main ()
12656{
12657exit (42);
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext
12663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12664 (eval $ac_compile) 2>conftest.er1
a848cd7e 12665 ac_status=$?
ac1cb8d3
VS
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
a848cd7e
SC
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
6ebeb4c7 12671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 :
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688continue
12689fi
ac1cb8d3 12690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12691 cat >conftest.$ac_ext <<_ACEOF
12692/* confdefs.h. */
12693_ACEOF
12694cat confdefs.h >>conftest.$ac_ext
12695cat >>conftest.$ac_ext <<_ACEOF
12696/* end confdefs.h. */
12697$ac_declaration
12698int
12699main ()
12700{
12701exit (42);
12702 ;
12703 return 0;
12704}
12705_ACEOF
12706rm -f conftest.$ac_objext
12707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12708 (eval $ac_compile) 2>conftest.er1
a848cd7e 12709 ac_status=$?
ac1cb8d3
VS
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
a848cd7e
SC
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
6ebeb4c7 12715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 break
12728else
12729 echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
12732fi
ac1cb8d3 12733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12734done
12735rm -f conftest*
12736if test -n "$ac_declaration"; then
12737 echo '#ifdef __cplusplus' >>confdefs.h
12738 echo $ac_declaration >>confdefs.h
12739 echo '#endif' >>confdefs.h
12740fi
12741
12742ac_ext=cc
12743ac_cpp='$CXXCPP $CPPFLAGS'
12744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12747
6dcfc289 12748 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12749echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12750if test "${wx_cv_cxx_exto+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752else
12753 cat >conftest.$ac_ext <<_ACEOF
12754/* confdefs.h. */
12755_ACEOF
12756cat confdefs.h >>conftest.$ac_ext
12757cat >>conftest.$ac_ext <<_ACEOF
12758/* end confdefs.h. */
12759
12760int
12761main ()
12762{
12763
12764 ;
12765 return 0;
12766}
12767_ACEOF
12768rm -f conftest.$ac_objext conftest.$ac_ext.o
12769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770 (eval $ac_compile) 2>&5
12771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; then
12774 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12775 case $ac_file in
12776 conftest.$ac_ext.o)
12777 wx_cv_cxx_exto="-ext o"
12778 ;;
12779 *)
12780 ;;
12781 esac
12782done
12783else
12784 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12785See \`config.log' for more details." >&5
12786echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12787See \`config.log' for more details." >&2;}
12788 { (exit 1); exit 1; }; }
12789
12790fi
12791
12792rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12793
12794fi
12795echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12796echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12797if test "x$wx_cv_cxx_exto" '!=' "x"; then
12798 if test "cxx" = "c"; then
12799 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12800 fi
12801 if test "cxx" = "cxx"; then
12802 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12803 fi
12804fi
12805
6dcfc289
DE
12806 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12807 unset ac_cv_prog_cxx_g
12808 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12809ac_save_CXXFLAGS=$CXXFLAGS
12810CXXFLAGS="-g"
12811echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12812echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12813if test "${ac_cv_prog_cxx_g+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815else
12816 cat >conftest.$ac_ext <<_ACEOF
12817/* confdefs.h. */
12818_ACEOF
12819cat confdefs.h >>conftest.$ac_ext
12820cat >>conftest.$ac_ext <<_ACEOF
12821/* end confdefs.h. */
12822
12823int
12824main ()
12825{
12826
12827 ;
12828 return 0;
12829}
12830_ACEOF
12831rm -f conftest.$ac_objext
12832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12833 (eval $ac_compile) 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
6ebeb4c7 12840 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; } &&
12846 { ac_try='test -s conftest.$ac_objext'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
12852 ac_cv_prog_cxx_g=yes
12853else
12854 echo "$as_me: failed program was:" >&5
12855sed 's/^/| /' conftest.$ac_ext >&5
12856
12857ac_cv_prog_cxx_g=no
12858fi
12859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12860fi
12861echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12862echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12863if test "$ac_test_CXXFLAGS" = set; then
12864 CXXFLAGS=$ac_save_CXXFLAGS
12865elif test $ac_cv_prog_cxx_g = yes; then
12866 if test "$GXX" = yes; then
9122d155 12867 CXXFLAGS="-g -O2"
480ccd21 12868 else
9122d155 12869 CXXFLAGS="-g"
480ccd21
DE
12870 fi
12871else
12872 if test "$GXX" = yes; then
12873 CXXFLAGS="-O2"
12874 else
12875 CXXFLAGS=
12876 fi
12877fi
6dcfc289
DE
12878 fi
12879 ac_ext=cc
95986553
DE
12880ac_cpp='$CXXCPP $CPPFLAGS'
12881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12884
12885echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12886echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12887if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12889else
12890 cat >conftest.$ac_ext <<_ACEOF
12891/* confdefs.h. */
12892_ACEOF
12893cat confdefs.h >>conftest.$ac_ext
12894cat >>conftest.$ac_ext <<_ACEOF
12895/* end confdefs.h. */
12896
12897int
12898main ()
12899{
12900#ifndef __MWERKS__
12901 choke me
12902#endif
12903
12904 ;
12905 return 0;
12906}
12907_ACEOF
12908rm -f conftest.$ac_objext
12909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12910 (eval $ac_compile) 2>conftest.er1
12911 ac_status=$?
12912 grep -v '^ *+' conftest.er1 >conftest.err
12913 rm -f conftest.er1
12914 cat conftest.err >&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } &&
6ebeb4c7 12917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest.$ac_objext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 bakefile_compiler_mwerks=yes
12930else
12931 echo "$as_me: failed program was:" >&5
12932sed 's/^/| /' conftest.$ac_ext >&5
12933
12934bakefile_compiler_mwerks=no
12935fi
12936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12937 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12938
12939fi
12940echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12941echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12942
0e6fa1d9 12943MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12944ac_ext=cc
12945ac_cpp='$CXXCPP $CPPFLAGS'
12946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12949
12950
6dcfc289 12951 ac_ext=cc
9273ffba
DE
12952ac_cpp='$CXXCPP $CPPFLAGS'
12953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12956
12957echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12958echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12959if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961else
12962 cat >conftest.$ac_ext <<_ACEOF
12963/* confdefs.h. */
12964_ACEOF
12965cat confdefs.h >>conftest.$ac_ext
12966cat >>conftest.$ac_ext <<_ACEOF
12967/* end confdefs.h. */
12968
12969int
12970main ()
12971{
12972#ifndef __xlC__
12973 choke me
12974#endif
12975
12976 ;
12977 return 0;
12978}
12979_ACEOF
12980rm -f conftest.$ac_objext
12981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982 (eval $ac_compile) 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
6ebeb4c7 12989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } &&
12995 { ac_try='test -s conftest.$ac_objext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 wx_compiler_xlc=yes
13002else
13003 echo "$as_me: failed program was:" >&5
13004sed 's/^/| /' conftest.$ac_ext >&5
13005
13006wx_compiler_xlc=no
13007fi
13008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13009 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
13010
13011fi
13012echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
13013echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
13014
0e6fa1d9 13015XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13016ac_ext=cc
13017ac_cpp='$CXXCPP $CPPFLAGS'
13018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13021
13022
95986553 13023
6dcfc289 13024
0ad5d837
VZ
13025 ac_ext=cc
13026ac_cpp='$CXXCPP $CPPFLAGS'
13027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13030
13031 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13032echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13033if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035else
13036 cat >conftest.$ac_ext <<_ACEOF
13037/* confdefs.h. */
13038_ACEOF
13039cat confdefs.h >>conftest.$ac_ext
13040cat >>conftest.$ac_ext <<_ACEOF
13041/* end confdefs.h. */
13042
13043int
13044main ()
13045{
13046
13047 #ifndef _SGI_COMPILER_VERSION
13048 choke me
13049 #endif
13050
13051 ;
13052 return 0;
13053}
13054_ACEOF
13055rm -f conftest.$ac_objext
13056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>conftest.er1
13058 ac_status=$?
13059 grep -v '^ *+' conftest.er1 >conftest.err
13060 rm -f conftest.er1
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest.$ac_objext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13077else
13078 echo "$as_me: failed program was:" >&5
13079sed 's/^/| /' conftest.$ac_ext >&5
13080
13081bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13082
13083fi
13084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13085
13086
13087fi
13088echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13089echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13090 ac_ext=cc
13091ac_cpp='$CXXCPP $CPPFLAGS'
13092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13095
13096 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13097 :; SGICXX=yes
13098 else
13099 :;
13100 fi
13101
13102
13103
13104
a9e5b1f0
MW
13105 ac_ext=cc
13106ac_cpp='$CXXCPP $CPPFLAGS'
13107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13110
13111 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13112echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13113if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13115else
13116 cat >conftest.$ac_ext <<_ACEOF
13117/* confdefs.h. */
13118_ACEOF
13119cat confdefs.h >>conftest.$ac_ext
13120cat >>conftest.$ac_ext <<_ACEOF
13121/* end confdefs.h. */
13122
13123int
13124main ()
13125{
13126
13127 #ifndef __SUNPRO_CC
13128 choke me
13129 #endif
13130
13131 ;
13132 return 0;
13133}
13134_ACEOF
13135rm -f conftest.$ac_objext
13136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13137 (eval $ac_compile) 2>conftest.er1
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
6ebeb4c7 13144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try='test -s conftest.$ac_objext'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13157else
13158 echo "$as_me: failed program was:" >&5
13159sed 's/^/| /' conftest.$ac_ext >&5
13160
13161bakefile_cv_cxx_compiler___SUNPRO_CC=no
13162
13163fi
13164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13165
13166
13167fi
13168echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13169echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13170 ac_ext=cc
13171ac_cpp='$CXXCPP $CPPFLAGS'
13172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13175
13176 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13177 :; SUNCXX=yes
13178 else
13179 :;
13180 fi
13181
13182
13183
13184
a848cd7e
SC
13185ac_ext=c
13186ac_cpp='$CPP $CPPFLAGS'
13187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13189ac_compiler_gnu=$ac_cv_c_compiler_gnu
13190
13191
a848cd7e
SC
13192if test -n "$ac_tool_prefix"; then
13193 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13194set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13195echo "$as_me:$LINENO: checking for $ac_word" >&5
13196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13197if test "${ac_cv_prog_RANLIB+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13199else
13200 if test -n "$RANLIB"; then
13201 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13202else
13203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204for as_dir in $PATH
13205do
13206 IFS=$as_save_IFS
13207 test -z "$as_dir" && as_dir=.
13208 for ac_exec_ext in '' $ac_executable_extensions; do
13209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13210 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13212 break 2
13213 fi
13214done
13215done
13216
13217fi
13218fi
13219RANLIB=$ac_cv_prog_RANLIB
13220if test -n "$RANLIB"; then
13221 echo "$as_me:$LINENO: result: $RANLIB" >&5
13222echo "${ECHO_T}$RANLIB" >&6
13223else
13224 echo "$as_me:$LINENO: result: no" >&5
13225echo "${ECHO_T}no" >&6
13226fi
13227
13228fi
13229if test -z "$ac_cv_prog_RANLIB"; then
13230 ac_ct_RANLIB=$RANLIB
13231 # Extract the first word of "ranlib", so it can be a program name with args.
13232set dummy ranlib; ac_word=$2
13233echo "$as_me:$LINENO: checking for $ac_word" >&5
13234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13235if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237else
13238 if test -n "$ac_ct_RANLIB"; then
13239 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13240else
13241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242for as_dir in $PATH
13243do
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13248 ac_cv_prog_ac_ct_RANLIB="ranlib"
13249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 break 2
13251 fi
13252done
13253done
13254
13255 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13256fi
13257fi
13258ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13259if test -n "$ac_ct_RANLIB"; then
13260 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13261echo "${ECHO_T}$ac_ct_RANLIB" >&6
13262else
13263 echo "$as_me:$LINENO: result: no" >&5
13264echo "${ECHO_T}no" >&6
13265fi
13266
13267 RANLIB=$ac_ct_RANLIB
13268else
13269 RANLIB="$ac_cv_prog_RANLIB"
13270fi
13271
13272
8c80d384
DE
13273if test -n "$ac_tool_prefix"; then
13274 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13275set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
13276echo "$as_me:$LINENO: checking for $ac_word" >&5
13277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13278if test "${ac_cv_prog_AR+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280else
13281 if test -n "$AR"; then
13282 ac_cv_prog_AR="$AR" # Let the user override the test.
13283else
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13291 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
13292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295done
13296done
13297
13298fi
13299fi
13300AR=$ac_cv_prog_AR
13301if test -n "$AR"; then
13302 echo "$as_me:$LINENO: result: $AR" >&5
13303echo "${ECHO_T}$AR" >&6
13304else
13305 echo "$as_me:$LINENO: result: no" >&5
13306echo "${ECHO_T}no" >&6
13307fi
13308
8c80d384
DE
13309fi
13310if test -z "$ac_cv_prog_AR"; then
13311 ac_ct_AR=$AR
13312 # Extract the first word of "ar", so it can be a program name with args.
13313set dummy ar; ac_word=$2
13314echo "$as_me:$LINENO: checking for $ac_word" >&5
13315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13316if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13318else
13319 if test -n "$ac_ct_AR"; then
13320 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13321else
13322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323for as_dir in $PATH
13324do
13325 IFS=$as_save_IFS
13326 test -z "$as_dir" && as_dir=.
13327 for ac_exec_ext in '' $ac_executable_extensions; do
13328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13329 ac_cv_prog_ac_ct_AR="ar"
13330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13331 break 2
13332 fi
13333done
13334done
13335
13336fi
13337fi
13338ac_ct_AR=$ac_cv_prog_ac_ct_AR
13339if test -n "$ac_ct_AR"; then
13340 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13341echo "${ECHO_T}$ac_ct_AR" >&6
13342else
13343 echo "$as_me:$LINENO: result: no" >&5
13344echo "${ECHO_T}no" >&6
13345fi
13346
13347 AR=$ac_ct_AR
13348else
13349 AR="$ac_cv_prog_AR"
13350fi
13351
a848cd7e 13352if test "x$AR" = "x" ; then
77ffb593
JS
13353 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13354echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13355 { (exit 1); exit 1; }; }
13356fi
13357
13358# Find a good install program. We prefer a C program (faster),
13359# so one script is as good as another. But avoid the broken or
13360# incompatible versions:
13361# SysV /etc/install, /usr/sbin/install
13362# SunOS /usr/etc/install
13363# IRIX /sbin/install
13364# AIX /bin/install
13365# AmigaOS /C/install, which installs bootblocks on floppy discs
13366# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13367# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13368# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13369# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13370# ./install, which can be erroneously created by make from ./install.sh.
13371echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13372echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13373if test -z "$INSTALL"; then
13374if test "${ac_cv_path_install+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
13377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13378for as_dir in $PATH
13379do
13380 IFS=$as_save_IFS
13381 test -z "$as_dir" && as_dir=.
13382 # Account for people who put trailing slashes in PATH elements.
13383case $as_dir/ in
13384 ./ | .// | /cC/* | \
13385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13386 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13387 /usr/ucb/* ) ;;
13388 *)
13389 # OSF1 and SCO ODT 3.0 have their own names for install.
13390 # Don't use installbsd from OSF since it installs stuff as root
13391 # by default.
13392 for ac_prog in ginstall scoinst install; do
13393 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13394 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13395 if test $ac_prog = install &&
13396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13397 # AIX install. It has an incompatible calling convention.
13398 :
13399 elif test $ac_prog = install &&
13400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13401 # program-specific install script used by HP pwplus--don't use.
13402 :
13403 else
13404 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13405 break 3
13406 fi
13407 fi
a848cd7e
SC
13408 done
13409 done
13410 ;;
13411esac
13412done
13413
13414
13415fi
13416 if test "${ac_cv_path_install+set}" = set; then
13417 INSTALL=$ac_cv_path_install
13418 else
13419 # As a last resort, use the slow shell script. We don't cache a
13420 # path for INSTALL within a source directory, because that will
13421 # break other packages using the cache if that directory is
13422 # removed, or if the path is relative.
13423 INSTALL=$ac_install_sh
13424 fi
13425fi
13426echo "$as_me:$LINENO: result: $INSTALL" >&5
13427echo "${ECHO_T}$INSTALL" >&6
13428
13429# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13430# It thinks the first close brace ends the variable substitution.
13431test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13432
13433test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13434
13435test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13436
13437
13438case ${INSTALL} in
13439 /* ) # Absolute
13440 ;;
13441 ?:* ) # Drive letter, considered as absolute.
13442 ;;
13443 *)
13444 INSTALL=`pwd`/${INSTALL} ;;
13445esac
13446
a848cd7e
SC
13447
13448case "${host}" in
13449
cfda0ea8 13450 *-*-darwin* )
a848cd7e
SC
13451 INSTALL_PROGRAM="cp -fp"
13452 INSTALL_DATA="cp -fp"
13453 ;;
13454 *)
13455 ;;
13456esac
13457
8c80d384
DE
13458if test -n "$ac_tool_prefix"; then
13459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13460set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
13461echo "$as_me:$LINENO: checking for $ac_word" >&5
13462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13463if test "${ac_cv_prog_STRIP+set}" = set; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13465else
13466 if test -n "$STRIP"; then
13467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13468else
13469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13470for as_dir in $PATH
13471do
13472 IFS=$as_save_IFS
13473 test -z "$as_dir" && as_dir=.
13474 for ac_exec_ext in '' $ac_executable_extensions; do
13475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
13477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13478 break 2
13479 fi
13480done
13481done
13482
a848cd7e
SC
13483fi
13484fi
13485STRIP=$ac_cv_prog_STRIP
13486if test -n "$STRIP"; then
13487 echo "$as_me:$LINENO: result: $STRIP" >&5
13488echo "${ECHO_T}$STRIP" >&6
13489else
13490 echo "$as_me:$LINENO: result: no" >&5
13491echo "${ECHO_T}no" >&6
13492fi
13493
8c80d384
DE
13494fi
13495if test -z "$ac_cv_prog_STRIP"; then
13496 ac_ct_STRIP=$STRIP
13497 # Extract the first word of "strip", so it can be a program name with args.
13498set dummy strip; ac_word=$2
13499echo "$as_me:$LINENO: checking for $ac_word" >&5
13500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13501if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13503else
13504 if test -n "$ac_ct_STRIP"; then
13505 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13506else
13507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508for as_dir in $PATH
13509do
13510 IFS=$as_save_IFS
13511 test -z "$as_dir" && as_dir=.
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13514 ac_cv_prog_ac_ct_STRIP="strip"
13515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13516 break 2
13517 fi
13518done
13519done
13520
13521 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
13522fi
13523fi
13524ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13525if test -n "$ac_ct_STRIP"; then
13526 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13527echo "${ECHO_T}$ac_ct_STRIP" >&6
13528else
13529 echo "$as_me:$LINENO: result: no" >&5
13530echo "${ECHO_T}no" >&6
13531fi
13532
13533 STRIP=$ac_ct_STRIP
13534else
13535 STRIP="$ac_cv_prog_STRIP"
13536fi
13537
13538
13539if test "$wxUSE_WINE" = "yes"; then
13540 if test -n "$ac_tool_prefix"; then
13541 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
13542set dummy ${ac_tool_prefix}wrc; ac_word=$2
13543echo "$as_me:$LINENO: checking for $ac_word" >&5
13544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13545if test "${ac_cv_prog_RESCOMP+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13547else
13548 if test -n "$RESCOMP"; then
13549 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13550else
13551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552for as_dir in $PATH
13553do
13554 IFS=$as_save_IFS
13555 test -z "$as_dir" && as_dir=.
13556 for ac_exec_ext in '' $ac_executable_extensions; do
13557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13558 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
13559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13560 break 2
13561 fi
13562done
13563done
13564
13565fi
13566fi
13567RESCOMP=$ac_cv_prog_RESCOMP
13568if test -n "$RESCOMP"; then
13569 echo "$as_me:$LINENO: result: $RESCOMP" >&5
13570echo "${ECHO_T}$RESCOMP" >&6
13571else
13572 echo "$as_me:$LINENO: result: no" >&5
13573echo "${ECHO_T}no" >&6
13574fi
13575
13576fi
13577if test -z "$ac_cv_prog_RESCOMP"; then
13578 ac_ct_RESCOMP=$RESCOMP
13579 # Extract the first word of "wrc", so it can be a program name with args.
13580set dummy wrc; ac_word=$2
13581echo "$as_me:$LINENO: checking for $ac_word" >&5
13582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13583if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585else
13586 if test -n "$ac_ct_RESCOMP"; then
13587 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
13588else
13589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590for as_dir in $PATH
13591do
13592 IFS=$as_save_IFS
13593 test -z "$as_dir" && as_dir=.
13594 for ac_exec_ext in '' $ac_executable_extensions; do
13595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13596 ac_cv_prog_ac_ct_RESCOMP="wrc"
13597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 break 2
13599 fi
13600done
13601done
13602
13603fi
13604fi
13605ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
13606if test -n "$ac_ct_RESCOMP"; then
13607 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
13608echo "${ECHO_T}$ac_ct_RESCOMP" >&6
13609else
13610 echo "$as_me:$LINENO: result: no" >&5
13611echo "${ECHO_T}no" >&6
13612fi
13613
13614 RESCOMP=$ac_ct_RESCOMP
13615else
13616 RESCOMP="$ac_cv_prog_RESCOMP"
13617fi
13618
13619else
13620 case "${host}" in
13621 *-*-cygwin* | *-*-mingw32* )
13622 if test -n "$ac_tool_prefix"; then
13623 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13624set dummy ${ac_tool_prefix}windres; ac_word=$2
13625echo "$as_me:$LINENO: checking for $ac_word" >&5
13626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13627if test "${ac_cv_prog_RESCOMP+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13629else
13630 if test -n "$RESCOMP"; then
13631 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13632else
13633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634for as_dir in $PATH
13635do
13636 IFS=$as_save_IFS
13637 test -z "$as_dir" && as_dir=.
13638 for ac_exec_ext in '' $ac_executable_extensions; do
13639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13640 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
13641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13642 break 2
13643 fi
13644done
13645done
13646
13647fi
13648fi
13649RESCOMP=$ac_cv_prog_RESCOMP
13650if test -n "$RESCOMP"; then
13651 echo "$as_me:$LINENO: result: $RESCOMP" >&5
13652echo "${ECHO_T}$RESCOMP" >&6
13653else
13654 echo "$as_me:$LINENO: result: no" >&5
13655echo "${ECHO_T}no" >&6
13656fi
13657
13658fi
13659if test -z "$ac_cv_prog_RESCOMP"; then
13660 ac_ct_RESCOMP=$RESCOMP
13661 # Extract the first word of "windres", so it can be a program name with args.
13662set dummy windres; ac_word=$2
13663echo "$as_me:$LINENO: checking for $ac_word" >&5
13664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13665if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668 if test -n "$ac_ct_RESCOMP"; then
13669 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
13670else
13671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672for as_dir in $PATH
13673do
13674 IFS=$as_save_IFS
13675 test -z "$as_dir" && as_dir=.
13676 for ac_exec_ext in '' $ac_executable_extensions; do
13677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13678 ac_cv_prog_ac_ct_RESCOMP="windres"
13679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13680 break 2
13681 fi
13682done
13683done
13684
13685fi
13686fi
13687ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
13688if test -n "$ac_ct_RESCOMP"; then
13689 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
13690echo "${ECHO_T}$ac_ct_RESCOMP" >&6
13691else
13692 echo "$as_me:$LINENO: result: no" >&5
13693echo "${ECHO_T}no" >&6
13694fi
13695
13696 RESCOMP=$ac_ct_RESCOMP
13697else
13698 RESCOMP="$ac_cv_prog_RESCOMP"
13699fi
13700
13701 if test -n "$ac_tool_prefix"; then
13702 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13703set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13704echo "$as_me:$LINENO: checking for $ac_word" >&5
13705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13706if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13708else
13709 if test -n "$DLLTOOL"; then
13710 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13711else
13712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13713for as_dir in $PATH
13714do
13715 IFS=$as_save_IFS
13716 test -z "$as_dir" && as_dir=.
13717 for ac_exec_ext in '' $ac_executable_extensions; do
13718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13719 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13721 break 2
13722 fi
13723done
13724done
13725
13726fi
13727fi
13728DLLTOOL=$ac_cv_prog_DLLTOOL
13729if test -n "$DLLTOOL"; then
13730 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13731echo "${ECHO_T}$DLLTOOL" >&6
13732else
13733 echo "$as_me:$LINENO: result: no" >&5
13734echo "${ECHO_T}no" >&6
13735fi
13736
13737fi
13738if test -z "$ac_cv_prog_DLLTOOL"; then
13739 ac_ct_DLLTOOL=$DLLTOOL
13740 # Extract the first word of "dlltool", so it can be a program name with args.
13741set dummy dlltool; ac_word=$2
13742echo "$as_me:$LINENO: checking for $ac_word" >&5
13743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13744if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13746else
13747 if test -n "$ac_ct_DLLTOOL"; then
13748 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13749else
13750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13751for as_dir in $PATH
13752do
13753 IFS=$as_save_IFS
13754 test -z "$as_dir" && as_dir=.
13755 for ac_exec_ext in '' $ac_executable_extensions; do
13756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13757 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13759 break 2
13760 fi
13761done
13762done
13763
13764fi
13765fi
13766ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13767if test -n "$ac_ct_DLLTOOL"; then
13768 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13769echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13770else
13771 echo "$as_me:$LINENO: result: no" >&5
13772echo "${ECHO_T}no" >&6
13773fi
13774
13775 DLLTOOL=$ac_ct_DLLTOOL
13776else
13777 DLLTOOL="$ac_cv_prog_DLLTOOL"
13778fi
13779
13780 ;;
13781 esac
13782fi
a848cd7e
SC
13783
13784echo "$as_me:$LINENO: checking if make is GNU make" >&5
13785echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13786if test "${wx_cv_prog_makeisgnu+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13788else
13789
13790 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13791 egrep -s GNU > /dev/null); then
13792 wx_cv_prog_makeisgnu="yes"
13793 else
13794 wx_cv_prog_makeisgnu="no"
13795 fi
13796
13797fi
13798echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13799echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13800
13801if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13802 IF_GNU_MAKE=""
13803else
13804 IF_GNU_MAKE="#"
13805fi
13806
13807
13808
13809if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13810echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13811echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13812if test "${wx_cv_prog_makevpath+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13814else
13815
13816cat - << EOF > confMake
13817check : file
13818 cp \$? \$@
13819 cp \$? final_file
13820EOF
13821
13822if test ! -d sub ; then
13823 mkdir sub
13824fi
13825echo dummy > sub/file
13826${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13827RESULT=$?
13828rm -f sub/file check final_file confMake
13829rmdir sub
13830if test "$RESULT" = 0; then
13831 wx_cv_prog_makevpath="yes"
13832else
13833 wx_cv_prog_makevpath="no"
13834fi
13835
13836fi
13837echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13838echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13839
13840if test "x$wx_cv_prog_makevpath" != "xyes"; then
13841{ { echo "$as_me:$LINENO: error:
13842You need a make-utility that is able to use the variable
13843VPATH correctly.
13844If your version of make does not support VPATH correctly,
13845please install GNU-make (possibly as gmake), and start
13846configure with the following command:
13847export MAKE=gmake; ./configure for sh-type shells
13848setenv MAKE gmake; ./configure for csh-type shells
13849Also please do remember to use gmake in this case every time
13850you are trying to compile.
13851" >&5
13852echo "$as_me: error:
13853You need a make-utility that is able to use the variable
13854VPATH correctly.
13855If your version of make does not support VPATH correctly,
13856please install GNU-make (possibly as gmake), and start
13857configure with the following command:
13858export MAKE=gmake; ./configure for sh-type shells
13859setenv MAKE gmake; ./configure for csh-type shells
13860Also please do remember to use gmake in this case every time
13861you are trying to compile.
13862" >&2;}
13863 { (exit 1); exit 1; }; }
13864fi fi
13865echo "$as_me:$LINENO: checking whether ln -s works" >&5
13866echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13867LN_S=$as_ln_s
13868if test "$LN_S" = "ln -s"; then
13869 echo "$as_me:$LINENO: result: yes" >&5
13870echo "${ECHO_T}yes" >&6
13871else
13872 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13873echo "${ECHO_T}no, using $LN_S" >&6
13874fi
13875
13876
13877
2113bc77 13878if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
13879 CXXFLAGS="$CXXFLAGS -qunique"
13880fi
13881
13882
4d7ec9f1
DE
13883case "${host}" in
13884 powerpc-*-darwin* )
13885 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13886echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13887 cat >conftest.$ac_ext <<_ACEOF
13888/* confdefs.h. */
13889_ACEOF
13890cat confdefs.h >>conftest.$ac_ext
13891cat >>conftest.$ac_ext <<_ACEOF
13892/* end confdefs.h. */
13893
13894int
13895main ()
13896{
13897#ifndef __POWERPC__
13898 choke me for lack of PowerPC
13899#endif
13900
13901 ;
13902 return 0;
13903}
13904_ACEOF
13905rm -f conftest.$ac_objext
13906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907 (eval $ac_compile) 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
6ebeb4c7 13914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } &&
13920 { ac_try='test -s conftest.$ac_objext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 echo "$as_me:$LINENO: result: yes" >&5
13927echo "${ECHO_T}yes" >&6
13928else
13929 echo "$as_me: failed program was:" >&5
13930sed 's/^/| /' conftest.$ac_ext >&5
13931
13932echo "$as_me:$LINENO: result: no" >&5
13933echo "${ECHO_T}no" >&6
13934 cat >>confdefs.h <<\_ACEOF
13935#define __POWERPC__ 1
13936_ACEOF
13937
13938
13939fi
13940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
13941 ;;
13942esac
13943
13944case "${host}" in
13945 *-*-darwin* )
4d7ec9f1
DE
13946 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13947echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13948 cat >conftest.$ac_ext <<_ACEOF
13949/* confdefs.h. */
13950_ACEOF
13951cat confdefs.h >>conftest.$ac_ext
13952cat >>conftest.$ac_ext <<_ACEOF
13953/* end confdefs.h. */
13954#include <CoreFoundation/CFBase.h>
13955
13956int
13957main ()
13958{
13959
13960 ;
13961 return 0;
13962}
13963_ACEOF
13964rm -f conftest.$ac_objext
13965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13966 (eval $ac_compile) 2>conftest.er1
13967 ac_status=$?
13968 grep -v '^ *+' conftest.er1 >conftest.err
13969 rm -f conftest.er1
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
6ebeb4c7 13973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13976 ac_status=$?
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; } &&
13979 { ac_try='test -s conftest.$ac_objext'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; }; then
13985 echo "$as_me:$LINENO: result: yes" >&5
13986echo "${ECHO_T}yes" >&6
13987else
13988 echo "$as_me: failed program was:" >&5
13989sed 's/^/| /' conftest.$ac_ext >&5
13990
13991echo "$as_me:$LINENO: result: no" >&5
13992echo "${ECHO_T}no" >&6
13993 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13994echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13995 cat >conftest.$ac_ext <<_ACEOF
13996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
14000/* end confdefs.h. */
14001#define __CF_USE_FRAMEWORK_INCLUDES__
14002#include <CoreFoundation/CFBase.h>
14003
14004int
14005main ()
14006{
14007
14008 ;
14009 return 0;
14010}
14011_ACEOF
14012rm -f conftest.$ac_objext
14013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14014 (eval $ac_compile) 2>conftest.er1
14015 ac_status=$?
14016 grep -v '^ *+' conftest.er1 >conftest.err
14017 rm -f conftest.er1
14018 cat conftest.err >&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
6ebeb4c7 14021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
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); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 echo "$as_me:$LINENO: result: yes" >&5
14034echo "${ECHO_T}yes" >&6
14035 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14036else
14037 echo "$as_me: failed program was:" >&5
14038sed 's/^/| /' conftest.$ac_ext >&5
14039
14040{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14041See \`config.log' for more details." >&5
14042echo "$as_me: error: no. CoreFoundation not available.
14043See \`config.log' for more details." >&2;}
14044 { (exit 1); exit 1; }; }
14045
14046fi
14047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14048
14049
14050fi
14051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14052 ;;
14053esac
14054
a848cd7e
SC
14055case "${host}" in
14056 *-pc-os2_emx | *-pc-os2-emx )
14057 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14058 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14059echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14060if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062else
14063 ac_check_lib_save_LIBS=$LIBS
14064LIBS="-lcExt $LIBS"
14065cat >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
14072/* Override any gcc2 internal prototype to avoid an error. */
14073#ifdef __cplusplus
14074extern "C"
14075#endif
14076/* We use char because int might match the return type of a gcc2
14077 builtin and then its argument prototype would still apply. */
14078char drand48 ();
14079int
14080main ()
14081{
14082drand48 ();
14083 ;
14084 return 0;
14085}
14086_ACEOF
14087rm -f conftest.$ac_objext conftest$ac_exeext
14088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14089 (eval $ac_link) 2>conftest.er1
a848cd7e 14090 ac_status=$?
ac1cb8d3
VS
14091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
a848cd7e
SC
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
6ebeb4c7 14096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_cv_lib_cExt_drand48=yes
14109else
14110 echo "$as_me: failed program was:" >&5
14111sed 's/^/| /' conftest.$ac_ext >&5
14112
14113ac_cv_lib_cExt_drand48=no
14114fi
ac1cb8d3
VS
14115rm -f conftest.err conftest.$ac_objext \
14116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14117LIBS=$ac_check_lib_save_LIBS
14118fi
14119echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14120echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14121if test $ac_cv_lib_cExt_drand48 = yes; then
14122 LIBS="$LIBS -lcExt"
14123fi
14124
14125 else
14126 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14127 fi
69120ee4
VZ
14128 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14129echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14130if test "${wx_cv_gccversion+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132else
14133
391a765e
VS
14134 if test "$cross_compiling" = yes; then
14135 wx_cv_gccversion="EMX2"
14136
14137else
14138 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14139/* confdefs.h. */
14140_ACEOF
14141cat confdefs.h >>conftest.$ac_ext
14142cat >>conftest.$ac_ext <<_ACEOF
14143/* end confdefs.h. */
14144
391a765e 14145 #include <stdio.h>
a848cd7e 14146
391a765e
VS
14147 int main()
14148 {
14149 FILE *f=fopen("conftestval", "w");
14150 if (!f) exit(1);
14151 fprintf(f,
a848cd7e 14152 #if (__GNUC__ < 3)
391a765e
VS
14153 "EMX2"
14154 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14155 "EMX3"
14156 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14157 "Innotek5"
14158 #else
14159 "Innotek6"
a848cd7e 14160 #endif
391a765e
VS
14161 );
14162 exit(0);
14163 }
a848cd7e 14164
a848cd7e 14165_ACEOF
391a765e
VS
14166rm -f conftest$ac_exeext
14167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14168 (eval $ac_link) 2>&5
ac1cb8d3
VS
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 14171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
391a765e 14177 wx_cv_gccversion=`cat conftestval`
a848cd7e 14178else
391a765e
VS
14179 echo "$as_me: program exited with status $ac_status" >&5
14180echo "$as_me: failed program was:" >&5
a848cd7e
SC
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
391a765e
VS
14183( exit $ac_status )
14184wx_cv_gccversion="EMX2"
a848cd7e 14185fi
391a765e 14186rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 14187fi
a848cd7e
SC
14188
14189fi
14190echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
14191echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 14192 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
14193 LIBS="$LIBS -lstdcpp"
14194 LDFLAGS="$LDFLAGS -Zsysv-signals"
14195 else
391a765e 14196 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 14197 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
14198 LDFLAGS="$LDFLAGS -Zsysv-signals"
14199 else
14200 LIBS="$LIBS -lstdc++"
14201 fi
14202 fi
94acd38e
DE
14203 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
14204 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
14205echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
14206 wxUSE_OMF=yes
2da0c077 14207 enable_omf=yes
a848cd7e
SC
14208 fi
14209 ;;
14210 *)
14211
14212
14213
14214 ac_ext=cc
14215ac_cpp='$CXXCPP $CPPFLAGS'
14216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14219
14220
95986553 14221 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
14222echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
14223if test "${ac_cv_string_strcasecmp+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225else
14226
14227 cat >conftest.$ac_ext <<_ACEOF
14228/* confdefs.h. */
14229_ACEOF
14230cat confdefs.h >>conftest.$ac_ext
14231cat >>conftest.$ac_ext <<_ACEOF
14232/* end confdefs.h. */
14233
14234 #include <string.h>
14235
14236int
14237main ()
14238{
14239
14240 strcasecmp("foo", "bar");
14241
14242 ;
14243 return 0;
14244}
14245_ACEOF
14246rm -f conftest.$ac_objext conftest$ac_exeext
14247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14248 (eval $ac_link) 2>conftest.er1
a848cd7e 14249 ac_status=$?
ac1cb8d3
VS
14250 grep -v '^ *+' conftest.er1 >conftest.err
14251 rm -f conftest.er1
14252 cat conftest.err >&5
a848cd7e
SC
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } &&
6ebeb4c7 14255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14264 ac_status=$?
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; }; then
14267 ac_cv_string_strcasecmp=yes
14268else
14269 echo "$as_me: failed program was:" >&5
14270sed 's/^/| /' conftest.$ac_ext >&5
14271
14272ac_cv_string_strcasecmp=no
14273
14274fi
ac1cb8d3
VS
14275rm -f conftest.err conftest.$ac_objext \
14276 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14277
14278fi
14279echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
14280echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
14281
14282 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
14283 cat >>confdefs.h <<\_ACEOF
14284#define HAVE_STRCASECMP_IN_STRING_H 1
14285_ACEOF
14286
14287 else
14288 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
14289echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
14290if test "${ac_cv_strings_strcasecmp+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292else
14293
14294 cat >conftest.$ac_ext <<_ACEOF
14295/* confdefs.h. */
14296_ACEOF
14297cat confdefs.h >>conftest.$ac_ext
14298cat >>conftest.$ac_ext <<_ACEOF
14299/* end confdefs.h. */
14300
14301 #include <strings.h>
14302
14303int
14304main ()
14305{
14306
14307 strcasecmp("foo", "bar");
14308
14309 ;
14310 return 0;
14311}
14312_ACEOF
14313rm -f conftest.$ac_objext conftest$ac_exeext
14314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14315 (eval $ac_link) 2>conftest.er1
a848cd7e 14316 ac_status=$?
ac1cb8d3
VS
14317 grep -v '^ *+' conftest.er1 >conftest.err
14318 rm -f conftest.er1
14319 cat conftest.err >&5
a848cd7e
SC
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } &&
6ebeb4c7 14322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_cv_strings_strcasecmp=yes
14335else
14336 echo "$as_me: failed program was:" >&5
14337sed 's/^/| /' conftest.$ac_ext >&5
14338
14339ac_cv_strings_strcasecmp=no
14340
14341fi
ac1cb8d3
VS
14342rm -f conftest.err conftest.$ac_objext \
14343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14344
14345fi
14346echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
14347echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
14348
0c3c69fc 14349 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
14350 cat >>confdefs.h <<\_ACEOF
14351#define HAVE_STRCASECMP_IN_STRINGS_H 1
14352_ACEOF
14353
14354 else
14355 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
14356echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
14357 { (exit 1); exit 1; }; }
14358 fi
14359 fi
14360
14361 ac_ext=c
14362ac_cpp='$CPP $CPPFLAGS'
14363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14365ac_compiler_gnu=$ac_cv_c_compiler_gnu
14366
14367 ;;
14368esac
14369
14370
14371echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14372echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14373if test "${ac_cv_header_stdc+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375else
14376 cat >conftest.$ac_ext <<_ACEOF
14377/* confdefs.h. */
14378_ACEOF
14379cat confdefs.h >>conftest.$ac_ext
14380cat >>conftest.$ac_ext <<_ACEOF
14381/* end confdefs.h. */
14382#include <stdlib.h>
14383#include <stdarg.h>
14384#include <string.h>
14385#include <float.h>
14386
14387int
14388main ()
14389{
14390
14391 ;
14392 return 0;
14393}
14394_ACEOF
14395rm -f conftest.$ac_objext
14396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14397 (eval $ac_compile) 2>conftest.er1
a848cd7e 14398 ac_status=$?
ac1cb8d3
VS
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
a848cd7e
SC
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
6ebeb4c7 14404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 ac_cv_header_stdc=yes
14417else
14418 echo "$as_me: failed program was:" >&5
14419sed 's/^/| /' conftest.$ac_ext >&5
14420
14421ac_cv_header_stdc=no
14422fi
ac1cb8d3 14423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14424
14425if test $ac_cv_header_stdc = yes; then
14426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14427 cat >conftest.$ac_ext <<_ACEOF
14428/* confdefs.h. */
14429_ACEOF
14430cat confdefs.h >>conftest.$ac_ext
14431cat >>conftest.$ac_ext <<_ACEOF
14432/* end confdefs.h. */
14433#include <string.h>
14434
14435_ACEOF
14436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14437 $EGREP "memchr" >/dev/null 2>&1; then
14438 :
14439else
14440 ac_cv_header_stdc=no
14441fi
14442rm -f conftest*
14443
14444fi
14445
14446if test $ac_cv_header_stdc = yes; then
14447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14448 cat >conftest.$ac_ext <<_ACEOF
14449/* confdefs.h. */
14450_ACEOF
14451cat confdefs.h >>conftest.$ac_ext
14452cat >>conftest.$ac_ext <<_ACEOF
14453/* end confdefs.h. */
14454#include <stdlib.h>
14455
14456_ACEOF
14457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14458 $EGREP "free" >/dev/null 2>&1; then
14459 :
14460else
14461 ac_cv_header_stdc=no
14462fi
14463rm -f conftest*
14464
14465fi
14466
14467if test $ac_cv_header_stdc = yes; then
14468 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14469 if test "$cross_compiling" = yes; then
14470 :
14471else
14472 cat >conftest.$ac_ext <<_ACEOF
14473/* confdefs.h. */
14474_ACEOF
14475cat confdefs.h >>conftest.$ac_ext
14476cat >>conftest.$ac_ext <<_ACEOF
14477/* end confdefs.h. */
14478#include <ctype.h>
14479#if ((' ' & 0x0FF) == 0x020)
14480# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14481# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14482#else
14483# define ISLOWER(c) \
ac1cb8d3
VS
14484 (('a' <= (c) && (c) <= 'i') \
14485 || ('j' <= (c) && (c) <= 'r') \
14486 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
14487# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14488#endif
14489
14490#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14491int
14492main ()
14493{
14494 int i;
14495 for (i = 0; i < 256; i++)
14496 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 14497 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14498 exit(2);
14499 exit (0);
14500}
14501_ACEOF
14502rm -f conftest$ac_exeext
14503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14504 (eval $ac_link) 2>&5
14505 ac_status=$?
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 :
14514else
14515 echo "$as_me: program exited with status $ac_status" >&5
14516echo "$as_me: failed program was:" >&5
14517sed 's/^/| /' conftest.$ac_ext >&5
14518
14519( exit $ac_status )
14520ac_cv_header_stdc=no
14521fi
ac1cb8d3 14522rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14523fi
14524fi
14525fi
14526echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14527echo "${ECHO_T}$ac_cv_header_stdc" >&6
14528if test $ac_cv_header_stdc = yes; then
14529
14530cat >>confdefs.h <<\_ACEOF
14531#define STDC_HEADERS 1
14532_ACEOF
14533
14534fi
14535
14536# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14547 inttypes.h stdint.h unistd.h
a848cd7e
SC
14548do
14549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14550echo "$as_me:$LINENO: checking for $ac_header" >&5
14551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14552if eval "test \"\${$as_ac_Header+set}\" = set"; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14554else
14555 cat >conftest.$ac_ext <<_ACEOF
14556/* confdefs.h. */
14557_ACEOF
14558cat confdefs.h >>conftest.$ac_ext
14559cat >>conftest.$ac_ext <<_ACEOF
14560/* end confdefs.h. */
14561$ac_includes_default
14562
14563#include <$ac_header>
14564_ACEOF
14565rm -f conftest.$ac_objext
14566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14567 (eval $ac_compile) 2>conftest.er1
a848cd7e 14568 ac_status=$?
ac1cb8d3
VS
14569 grep -v '^ *+' conftest.er1 >conftest.err
14570 rm -f conftest.er1
14571 cat conftest.err >&5
a848cd7e
SC
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
6ebeb4c7 14574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; } &&
14580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14586 eval "$as_ac_Header=yes"
14587else
14588 echo "$as_me: failed program was:" >&5
14589sed 's/^/| /' conftest.$ac_ext >&5
14590
14591eval "$as_ac_Header=no"
14592fi
ac1cb8d3 14593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14594fi
14595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14597if test `eval echo '${'$as_ac_Header'}'` = yes; then
14598 cat >>confdefs.h <<_ACEOF
14599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14600_ACEOF
14601
14602fi
14603
14604done
14605
14606
14607
14608for ac_header in stdlib.h
14609do
14610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14611if eval "test \"\${$as_ac_Header+set}\" = set"; then
14612 echo "$as_me:$LINENO: checking for $ac_header" >&5
14613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14614if eval "test \"\${$as_ac_Header+set}\" = set"; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14616fi
14617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14619else
14620 # Is the header compilable?
14621echo "$as_me:$LINENO: checking $ac_header usability" >&5
14622echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14623cat >conftest.$ac_ext <<_ACEOF
14624/* confdefs.h. */
14625_ACEOF
14626cat confdefs.h >>conftest.$ac_ext
14627cat >>conftest.$ac_ext <<_ACEOF
14628/* end confdefs.h. */
14629$ac_includes_default
14630#include <$ac_header>
14631_ACEOF
14632rm -f conftest.$ac_objext
14633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14634 (eval $ac_compile) 2>conftest.er1
a848cd7e 14635 ac_status=$?
ac1cb8d3
VS
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
a848cd7e
SC
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } &&
6ebeb4c7 14641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } &&
14647 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }; then
14653 ac_header_compiler=yes
14654else
14655 echo "$as_me: failed program was:" >&5
14656sed 's/^/| /' conftest.$ac_ext >&5
14657
14658ac_header_compiler=no
14659fi
ac1cb8d3 14660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14661echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14662echo "${ECHO_T}$ac_header_compiler" >&6
14663
14664# Is the header present?
14665echo "$as_me:$LINENO: checking $ac_header presence" >&5
14666echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14667cat >conftest.$ac_ext <<_ACEOF
14668/* confdefs.h. */
14669_ACEOF
14670cat confdefs.h >>conftest.$ac_ext
14671cat >>conftest.$ac_ext <<_ACEOF
14672/* end confdefs.h. */
14673#include <$ac_header>
14674_ACEOF
14675if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14677 ac_status=$?
14678 grep -v '^ *+' conftest.er1 >conftest.err
14679 rm -f conftest.er1
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } >/dev/null; then
14683 if test -s conftest.err; then
14684 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14686 else
14687 ac_cpp_err=
14688 fi
14689else
14690 ac_cpp_err=yes
14691fi
14692if test -z "$ac_cpp_err"; then
14693 ac_header_preproc=yes
14694else
14695 echo "$as_me: failed program was:" >&5
14696sed 's/^/| /' conftest.$ac_ext >&5
14697
14698 ac_header_preproc=no
14699fi
14700rm -f conftest.err conftest.$ac_ext
14701echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14702echo "${ECHO_T}$ac_header_preproc" >&6
14703
14704# So? What about this header?
ac1cb8d3
VS
14705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14706 yes:no: )
a848cd7e
SC
14707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14708echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14710echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14711 ac_header_preproc=yes
a848cd7e 14712 ;;
ac1cb8d3 14713 no:yes:* )
a848cd7e
SC
14714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14715echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14717echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14719echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14721echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14725echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14726 (
14727 cat <<\_ASBOX
ac1cb8d3
VS
14728## ----------------------------------------- ##
14729## Report this to wx-dev@lists.wxwidgets.org ##
14730## ----------------------------------------- ##
a848cd7e
SC
14731_ASBOX
14732 ) |
14733 sed "s/^/$as_me: WARNING: /" >&2
14734 ;;
14735esac
14736echo "$as_me:$LINENO: checking for $ac_header" >&5
14737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14738if eval "test \"\${$as_ac_Header+set}\" = set"; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14740else
ac1cb8d3 14741 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14742fi
14743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14745
14746fi
14747if test `eval echo '${'$as_ac_Header'}'` = yes; then
14748 cat >>confdefs.h <<_ACEOF
14749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14750_ACEOF
14751
14752fi
14753
14754done
14755
14756
14757for ac_header in malloc.h
14758do
14759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14760if eval "test \"\${$as_ac_Header+set}\" = set"; then
14761 echo "$as_me:$LINENO: checking for $ac_header" >&5
14762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14763if eval "test \"\${$as_ac_Header+set}\" = set"; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765fi
14766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14768else
14769 # Is the header compilable?
14770echo "$as_me:$LINENO: checking $ac_header usability" >&5
14771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14772cat >conftest.$ac_ext <<_ACEOF
14773/* confdefs.h. */
14774_ACEOF
14775cat confdefs.h >>conftest.$ac_ext
14776cat >>conftest.$ac_ext <<_ACEOF
14777/* end confdefs.h. */
14778$ac_includes_default
14779#include <$ac_header>
14780_ACEOF
14781rm -f conftest.$ac_objext
14782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14783 (eval $ac_compile) 2>conftest.er1
a848cd7e 14784 ac_status=$?
ac1cb8d3
VS
14785 grep -v '^ *+' conftest.er1 >conftest.err
14786 rm -f conftest.er1
14787 cat conftest.err >&5
a848cd7e
SC
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } &&
6ebeb4c7 14790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14793 ac_status=$?
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; } &&
14796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14799 ac_status=$?
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; }; then
14802 ac_header_compiler=yes
14803else
14804 echo "$as_me: failed program was:" >&5
14805sed 's/^/| /' conftest.$ac_ext >&5
14806
14807ac_header_compiler=no
14808fi
ac1cb8d3 14809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14810echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14811echo "${ECHO_T}$ac_header_compiler" >&6
14812
14813# Is the header present?
14814echo "$as_me:$LINENO: checking $ac_header presence" >&5
14815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14816cat >conftest.$ac_ext <<_ACEOF
14817/* confdefs.h. */
14818_ACEOF
14819cat confdefs.h >>conftest.$ac_ext
14820cat >>conftest.$ac_ext <<_ACEOF
14821/* end confdefs.h. */
14822#include <$ac_header>
14823_ACEOF
14824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14826 ac_status=$?
14827 grep -v '^ *+' conftest.er1 >conftest.err
14828 rm -f conftest.er1
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } >/dev/null; then
14832 if test -s conftest.err; then
14833 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14835 else
14836 ac_cpp_err=
14837 fi
14838else
14839 ac_cpp_err=yes
14840fi
14841if test -z "$ac_cpp_err"; then
14842 ac_header_preproc=yes
14843else
14844 echo "$as_me: failed program was:" >&5
14845sed 's/^/| /' conftest.$ac_ext >&5
14846
14847 ac_header_preproc=no
14848fi
14849rm -f conftest.err conftest.$ac_ext
14850echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14851echo "${ECHO_T}$ac_header_preproc" >&6
14852
14853# So? What about this header?
ac1cb8d3
VS
14854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14855 yes:no: )
a848cd7e
SC
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14860 ac_header_preproc=yes
a848cd7e 14861 ;;
ac1cb8d3 14862 no:yes:* )
a848cd7e
SC
14863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14866echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14870echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14875 (
14876 cat <<\_ASBOX
ac1cb8d3
VS
14877## ----------------------------------------- ##
14878## Report this to wx-dev@lists.wxwidgets.org ##
14879## ----------------------------------------- ##
a848cd7e
SC
14880_ASBOX
14881 ) |
14882 sed "s/^/$as_me: WARNING: /" >&2
14883 ;;
14884esac
14885echo "$as_me:$LINENO: checking for $ac_header" >&5
14886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14887if eval "test \"\${$as_ac_Header+set}\" = set"; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14889else
ac1cb8d3 14890 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14891fi
14892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14894
14895fi
14896if test `eval echo '${'$as_ac_Header'}'` = yes; then
14897 cat >>confdefs.h <<_ACEOF
14898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14899_ACEOF
14900
14901fi
14902
14903done
14904
14905
14906for ac_header in unistd.h
14907do
14908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14909if eval "test \"\${$as_ac_Header+set}\" = set"; then
14910 echo "$as_me:$LINENO: checking for $ac_header" >&5
14911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14912if eval "test \"\${$as_ac_Header+set}\" = set"; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14914fi
14915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14917else
14918 # Is the header compilable?
14919echo "$as_me:$LINENO: checking $ac_header usability" >&5
14920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14921cat >conftest.$ac_ext <<_ACEOF
14922/* confdefs.h. */
14923_ACEOF
14924cat confdefs.h >>conftest.$ac_ext
14925cat >>conftest.$ac_ext <<_ACEOF
14926/* end confdefs.h. */
14927$ac_includes_default
14928#include <$ac_header>
14929_ACEOF
14930rm -f conftest.$ac_objext
14931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14932 (eval $ac_compile) 2>conftest.er1
a848cd7e 14933 ac_status=$?
ac1cb8d3
VS
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
a848cd7e
SC
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
6ebeb4c7 14939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; } &&
14945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 ac_header_compiler=yes
14952else
14953 echo "$as_me: failed program was:" >&5
14954sed 's/^/| /' conftest.$ac_ext >&5
14955
14956ac_header_compiler=no
14957fi
ac1cb8d3 14958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14959echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14960echo "${ECHO_T}$ac_header_compiler" >&6
14961
14962# Is the header present?
14963echo "$as_me:$LINENO: checking $ac_header presence" >&5
14964echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14965cat >conftest.$ac_ext <<_ACEOF
14966/* confdefs.h. */
14967_ACEOF
14968cat confdefs.h >>conftest.$ac_ext
14969cat >>conftest.$ac_ext <<_ACEOF
14970/* end confdefs.h. */
14971#include <$ac_header>
14972_ACEOF
14973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } >/dev/null; then
14981 if test -s conftest.err; then
14982 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14984 else
14985 ac_cpp_err=
14986 fi
14987else
14988 ac_cpp_err=yes
14989fi
14990if test -z "$ac_cpp_err"; then
14991 ac_header_preproc=yes
14992else
14993 echo "$as_me: failed program was:" >&5
14994sed 's/^/| /' conftest.$ac_ext >&5
14995
14996 ac_header_preproc=no
14997fi
14998rm -f conftest.err conftest.$ac_ext
14999echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15000echo "${ECHO_T}$ac_header_preproc" >&6
15001
15002# So? What about this header?
ac1cb8d3
VS
15003case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15004 yes:no: )
a848cd7e
SC
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15006echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15008echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15009 ac_header_preproc=yes
a848cd7e 15010 ;;
ac1cb8d3 15011 no:yes:* )
a848cd7e
SC
15012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15013echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15015echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15017echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15019echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15021echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15023echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15024 (
15025 cat <<\_ASBOX
ac1cb8d3
VS
15026## ----------------------------------------- ##
15027## Report this to wx-dev@lists.wxwidgets.org ##
15028## ----------------------------------------- ##
a848cd7e
SC
15029_ASBOX
15030 ) |
15031 sed "s/^/$as_me: WARNING: /" >&2
15032 ;;
15033esac
15034echo "$as_me:$LINENO: checking for $ac_header" >&5
15035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15036if eval "test \"\${$as_ac_Header+set}\" = set"; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15038else
ac1cb8d3 15039 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15040fi
15041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15043
15044fi
15045if test `eval echo '${'$as_ac_Header'}'` = yes; then
15046 cat >>confdefs.h <<_ACEOF
15047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15048_ACEOF
15049
15050fi
15051
15052done
15053
15054
15055for ac_header in wchar.h
15056do
15057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15058if eval "test \"\${$as_ac_Header+set}\" = set"; then
15059 echo "$as_me:$LINENO: checking for $ac_header" >&5
15060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15061if eval "test \"\${$as_ac_Header+set}\" = set"; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15063fi
15064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15065echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15066else
15067 # Is the header compilable?
15068echo "$as_me:$LINENO: checking $ac_header usability" >&5
15069echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15070cat >conftest.$ac_ext <<_ACEOF
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
15075/* end confdefs.h. */
15076$ac_includes_default
15077#include <$ac_header>
15078_ACEOF
15079rm -f conftest.$ac_objext
15080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15081 (eval $ac_compile) 2>conftest.er1
a848cd7e 15082 ac_status=$?
ac1cb8d3
VS
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
a848cd7e
SC
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } &&
6ebeb4c7 15088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_header_compiler=yes
15101else
15102 echo "$as_me: failed program was:" >&5
15103sed 's/^/| /' conftest.$ac_ext >&5
15104
15105ac_header_compiler=no
15106fi
ac1cb8d3 15107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15108echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15109echo "${ECHO_T}$ac_header_compiler" >&6
15110
15111# Is the header present?
15112echo "$as_me:$LINENO: checking $ac_header presence" >&5
15113echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15114cat >conftest.$ac_ext <<_ACEOF
15115/* confdefs.h. */
15116_ACEOF
15117cat confdefs.h >>conftest.$ac_ext
15118cat >>conftest.$ac_ext <<_ACEOF
15119/* end confdefs.h. */
15120#include <$ac_header>
15121_ACEOF
15122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } >/dev/null; then
15130 if test -s conftest.err; then
15131 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15133 else
15134 ac_cpp_err=
15135 fi
15136else
15137 ac_cpp_err=yes
15138fi
15139if test -z "$ac_cpp_err"; then
15140 ac_header_preproc=yes
15141else
15142 echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145 ac_header_preproc=no
15146fi
15147rm -f conftest.err conftest.$ac_ext
15148echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15149echo "${ECHO_T}$ac_header_preproc" >&6
15150
15151# So? What about this header?
ac1cb8d3
VS
15152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15153 yes:no: )
a848cd7e
SC
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15155echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15157echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15158 ac_header_preproc=yes
a848cd7e 15159 ;;
ac1cb8d3 15160 no:yes:* )
a848cd7e
SC
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15162echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15164echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15166echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15168echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15170echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15172echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15173 (
15174 cat <<\_ASBOX
ac1cb8d3
VS
15175## ----------------------------------------- ##
15176## Report this to wx-dev@lists.wxwidgets.org ##
15177## ----------------------------------------- ##
a848cd7e
SC
15178_ASBOX
15179 ) |
15180 sed "s/^/$as_me: WARNING: /" >&2
15181 ;;
15182esac
15183echo "$as_me:$LINENO: checking for $ac_header" >&5
15184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15185if eval "test \"\${$as_ac_Header+set}\" = set"; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15187else
ac1cb8d3 15188 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15189fi
15190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15192
15193fi
15194if test `eval echo '${'$as_ac_Header'}'` = yes; then
15195 cat >>confdefs.h <<_ACEOF
15196#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15197_ACEOF
15198
15199fi
15200
15201done
15202
15203
15204if test "$ac_cv_header_wchar_h" != "yes"; then
15205
15206for ac_header in wcstr.h
15207do
15208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15209if eval "test \"\${$as_ac_Header+set}\" = set"; then
15210 echo "$as_me:$LINENO: checking for $ac_header" >&5
15211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15212if eval "test \"\${$as_ac_Header+set}\" = set"; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214fi
15215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15216echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15217else
15218 # Is the header compilable?
15219echo "$as_me:$LINENO: checking $ac_header usability" >&5
15220echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15221cat >conftest.$ac_ext <<_ACEOF
15222/* confdefs.h. */
15223_ACEOF
15224cat confdefs.h >>conftest.$ac_ext
15225cat >>conftest.$ac_ext <<_ACEOF
15226/* end confdefs.h. */
15227$ac_includes_default
15228#include <$ac_header>
15229_ACEOF
15230rm -f conftest.$ac_objext
15231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15232 (eval $ac_compile) 2>conftest.er1
a848cd7e 15233 ac_status=$?
ac1cb8d3
VS
15234 grep -v '^ *+' conftest.er1 >conftest.err
15235 rm -f conftest.er1
15236 cat conftest.err >&5
a848cd7e
SC
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
6ebeb4c7 15239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; } &&
15245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15247 (eval $ac_try) 2>&5
15248 ac_status=$?
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; }; then
15251 ac_header_compiler=yes
15252else
15253 echo "$as_me: failed program was:" >&5
15254sed 's/^/| /' conftest.$ac_ext >&5
15255
15256ac_header_compiler=no
15257fi
ac1cb8d3 15258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15260echo "${ECHO_T}$ac_header_compiler" >&6
15261
15262# Is the header present?
15263echo "$as_me:$LINENO: checking $ac_header presence" >&5
15264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15265cat >conftest.$ac_ext <<_ACEOF
15266/* confdefs.h. */
15267_ACEOF
15268cat confdefs.h >>conftest.$ac_ext
15269cat >>conftest.$ac_ext <<_ACEOF
15270/* end confdefs.h. */
15271#include <$ac_header>
15272_ACEOF
15273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15275 ac_status=$?
15276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } >/dev/null; then
15281 if test -s conftest.err; then
15282 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15284 else
15285 ac_cpp_err=
15286 fi
15287else
15288 ac_cpp_err=yes
15289fi
15290if test -z "$ac_cpp_err"; then
15291 ac_header_preproc=yes
15292else
15293 echo "$as_me: failed program was:" >&5
15294sed 's/^/| /' conftest.$ac_ext >&5
15295
15296 ac_header_preproc=no
15297fi
15298rm -f conftest.err conftest.$ac_ext
15299echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15300echo "${ECHO_T}$ac_header_preproc" >&6
15301
15302# So? What about this header?
ac1cb8d3
VS
15303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15304 yes:no: )
a848cd7e
SC
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15306echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15308echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15309 ac_header_preproc=yes
a848cd7e 15310 ;;
ac1cb8d3 15311 no:yes:* )
a848cd7e
SC
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15313echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15315echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15317echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15319echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15323echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15324 (
15325 cat <<\_ASBOX
ac1cb8d3
VS
15326## ----------------------------------------- ##
15327## Report this to wx-dev@lists.wxwidgets.org ##
15328## ----------------------------------------- ##
a848cd7e
SC
15329_ASBOX
15330 ) |
15331 sed "s/^/$as_me: WARNING: /" >&2
15332 ;;
15333esac
15334echo "$as_me:$LINENO: checking for $ac_header" >&5
15335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15336if eval "test \"\${$as_ac_Header+set}\" = set"; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15338else
ac1cb8d3 15339 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15340fi
15341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15343
15344fi
15345if test `eval echo '${'$as_ac_Header'}'` = yes; then
15346 cat >>confdefs.h <<_ACEOF
15347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15348_ACEOF
15349
15350fi
15351
15352done
15353
15354fi
15355
15356
15357for ac_header in fnmatch.h
15358do
15359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15360if eval "test \"\${$as_ac_Header+set}\" = set"; then
15361 echo "$as_me:$LINENO: checking for $ac_header" >&5
15362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15363if eval "test \"\${$as_ac_Header+set}\" = set"; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15365fi
15366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15368else
15369 # Is the header compilable?
15370echo "$as_me:$LINENO: checking $ac_header usability" >&5
15371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15372cat >conftest.$ac_ext <<_ACEOF
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378$ac_includes_default
15379#include <$ac_header>
15380_ACEOF
15381rm -f conftest.$ac_objext
15382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15383 (eval $ac_compile) 2>conftest.er1
a848cd7e 15384 ac_status=$?
ac1cb8d3
VS
15385 grep -v '^ *+' conftest.er1 >conftest.err
15386 rm -f conftest.er1
15387 cat conftest.err >&5
a848cd7e
SC
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
6ebeb4c7 15390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; } &&
15396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 ac_header_compiler=yes
15403else
15404 echo "$as_me: failed program was:" >&5
15405sed 's/^/| /' conftest.$ac_ext >&5
15406
15407ac_header_compiler=no
15408fi
ac1cb8d3 15409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15410echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15411echo "${ECHO_T}$ac_header_compiler" >&6
15412
15413# Is the header present?
15414echo "$as_me:$LINENO: checking $ac_header presence" >&5
15415echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15416cat >conftest.$ac_ext <<_ACEOF
15417/* confdefs.h. */
15418_ACEOF
15419cat confdefs.h >>conftest.$ac_ext
15420cat >>conftest.$ac_ext <<_ACEOF
15421/* end confdefs.h. */
15422#include <$ac_header>
15423_ACEOF
15424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15426 ac_status=$?
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } >/dev/null; then
15432 if test -s conftest.err; then
15433 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15435 else
15436 ac_cpp_err=
15437 fi
15438else
15439 ac_cpp_err=yes
15440fi
15441if test -z "$ac_cpp_err"; then
15442 ac_header_preproc=yes
15443else
15444 echo "$as_me: failed program was:" >&5
15445sed 's/^/| /' conftest.$ac_ext >&5
15446
15447 ac_header_preproc=no
15448fi
15449rm -f conftest.err conftest.$ac_ext
15450echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15451echo "${ECHO_T}$ac_header_preproc" >&6
15452
15453# So? What about this header?
ac1cb8d3
VS
15454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15455 yes:no: )
a848cd7e
SC
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15460 ac_header_preproc=yes
a848cd7e 15461 ;;
ac1cb8d3 15462 no:yes:* )
a848cd7e
SC
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15470echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15475 (
15476 cat <<\_ASBOX
ac1cb8d3
VS
15477## ----------------------------------------- ##
15478## Report this to wx-dev@lists.wxwidgets.org ##
15479## ----------------------------------------- ##
a848cd7e
SC
15480_ASBOX
15481 ) |
15482 sed "s/^/$as_me: WARNING: /" >&2
15483 ;;
15484esac
15485echo "$as_me:$LINENO: checking for $ac_header" >&5
15486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15487if eval "test \"\${$as_ac_Header+set}\" = set"; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15489else
ac1cb8d3 15490 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15491fi
15492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15494
15495fi
15496if test `eval echo '${'$as_ac_Header'}'` = yes; then
15497 cat >>confdefs.h <<_ACEOF
15498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15499_ACEOF
15500
15501fi
15502
15503done
15504
15505
a848cd7e
SC
15506
15507for ac_header in langinfo.h
15508do
15509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15510if eval "test \"\${$as_ac_Header+set}\" = set"; then
15511 echo "$as_me:$LINENO: checking for $ac_header" >&5
15512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15513if eval "test \"\${$as_ac_Header+set}\" = set"; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15515fi
15516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15518else
15519 # Is the header compilable?
15520echo "$as_me:$LINENO: checking $ac_header usability" >&5
15521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15522cat >conftest.$ac_ext <<_ACEOF
15523/* confdefs.h. */
15524_ACEOF
15525cat confdefs.h >>conftest.$ac_ext
15526cat >>conftest.$ac_ext <<_ACEOF
15527/* end confdefs.h. */
15528$ac_includes_default
15529#include <$ac_header>
15530_ACEOF
15531rm -f conftest.$ac_objext
15532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15533 (eval $ac_compile) 2>conftest.er1
a848cd7e 15534 ac_status=$?
ac1cb8d3
VS
15535 grep -v '^ *+' conftest.er1 >conftest.err
15536 rm -f conftest.er1
15537 cat conftest.err >&5
a848cd7e
SC
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
6ebeb4c7 15540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; } &&
15546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15552 ac_header_compiler=yes
15553else
15554 echo "$as_me: failed program was:" >&5
15555sed 's/^/| /' conftest.$ac_ext >&5
15556
15557ac_header_compiler=no
15558fi
ac1cb8d3 15559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15561echo "${ECHO_T}$ac_header_compiler" >&6
15562
15563# Is the header present?
15564echo "$as_me:$LINENO: checking $ac_header presence" >&5
15565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15566cat >conftest.$ac_ext <<_ACEOF
15567/* confdefs.h. */
15568_ACEOF
15569cat confdefs.h >>conftest.$ac_ext
15570cat >>conftest.$ac_ext <<_ACEOF
15571/* end confdefs.h. */
15572#include <$ac_header>
15573_ACEOF
15574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } >/dev/null; then
15582 if test -s conftest.err; then
15583 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15585 else
15586 ac_cpp_err=
15587 fi
15588else
15589 ac_cpp_err=yes
15590fi
15591if test -z "$ac_cpp_err"; then
15592 ac_header_preproc=yes
15593else
15594 echo "$as_me: failed program was:" >&5
15595sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 ac_header_preproc=no
15598fi
15599rm -f conftest.err conftest.$ac_ext
15600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15601echo "${ECHO_T}$ac_header_preproc" >&6
15602
15603# So? What about this header?
ac1cb8d3
VS
15604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15605 yes:no: )
a848cd7e
SC
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15610 ac_header_preproc=yes
a848cd7e 15611 ;;
ac1cb8d3 15612 no:yes:* )
a848cd7e
SC
15613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15625 (
15626 cat <<\_ASBOX
ac1cb8d3
VS
15627## ----------------------------------------- ##
15628## Report this to wx-dev@lists.wxwidgets.org ##
15629## ----------------------------------------- ##
a848cd7e
SC
15630_ASBOX
15631 ) |
15632 sed "s/^/$as_me: WARNING: /" >&2
15633 ;;
15634esac
15635echo "$as_me:$LINENO: checking for $ac_header" >&5
15636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15637if eval "test \"\${$as_ac_Header+set}\" = set"; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639else
ac1cb8d3 15640 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15641fi
15642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15644
15645fi
15646if test `eval echo '${'$as_ac_Header'}'` = yes; then
15647 cat >>confdefs.h <<_ACEOF
15648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15649_ACEOF
15650
15651fi
15652
15653done
15654
15655
15656case "${host}" in
15657 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15658 if test $ac_cv_header_langinfo_h = "yes" \
15659 -a \( "$wx_cv_gccversion" = "EMX2" \
15660 -o "$wx_cv_gccversion" = "EMX3" \
15661 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15662 LIBS="$LIBS -lintl"
15663 fi
15664 ;;
15665esac
15666
a848cd7e
SC
15667
15668echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15669echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15670if test "${ac_cv_c_const+set}" = set; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15672else
15673 cat >conftest.$ac_ext <<_ACEOF
15674/* confdefs.h. */
15675_ACEOF
15676cat confdefs.h >>conftest.$ac_ext
15677cat >>conftest.$ac_ext <<_ACEOF
15678/* end confdefs.h. */
15679
15680int
15681main ()
15682{
15683/* FIXME: Include the comments suggested by Paul. */
15684#ifndef __cplusplus
15685 /* Ultrix mips cc rejects this. */
15686 typedef int charset[2];
15687 const charset x;
15688 /* SunOS 4.1.1 cc rejects this. */
15689 char const *const *ccp;
15690 char **p;
15691 /* NEC SVR4.0.2 mips cc rejects this. */
15692 struct point {int x, y;};
15693 static struct point const zero = {0,0};
15694 /* AIX XL C 1.02.0.0 rejects this.
15695 It does not let you subtract one const X* pointer from another in
15696 an arm of an if-expression whose if-part is not a constant
15697 expression */
15698 const char *g = "string";
15699 ccp = &g + (g ? g-g : 0);
15700 /* HPUX 7.0 cc rejects these. */
15701 ++ccp;
15702 p = (char**) ccp;
15703 ccp = (char const *const *) p;
15704 { /* SCO 3.2v4 cc rejects this. */
15705 char *t;
15706 char const *s = 0 ? (char *) 0 : (char const *) 0;
15707
15708 *t++ = 0;
15709 }
15710 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15711 int x[] = {25, 17};
15712 const int *foo = &x[0];
15713 ++foo;
15714 }
15715 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15716 typedef const int *iptr;
15717 iptr p = 0;
15718 ++p;
15719 }
15720 { /* AIX XL C 1.02.0.0 rejects this saying
15721 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15722 struct s { int j; const int *ap[3]; };
15723 struct s *b; b->j = 5;
15724 }
15725 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15726 const int foo = 10;
15727 }
15728#endif
15729
15730 ;
15731 return 0;
15732}
15733_ACEOF
15734rm -f conftest.$ac_objext
15735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15736 (eval $ac_compile) 2>conftest.er1
a848cd7e 15737 ac_status=$?
ac1cb8d3
VS
15738 grep -v '^ *+' conftest.er1 >conftest.err
15739 rm -f conftest.er1
15740 cat conftest.err >&5
a848cd7e
SC
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
6ebeb4c7 15743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; } &&
15749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15752 ac_status=$?
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; }; then
15755 ac_cv_c_const=yes
15756else
15757 echo "$as_me: failed program was:" >&5
15758sed 's/^/| /' conftest.$ac_ext >&5
15759
15760ac_cv_c_const=no
15761fi
ac1cb8d3 15762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15763fi
15764echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15765echo "${ECHO_T}$ac_cv_c_const" >&6
15766if test $ac_cv_c_const = no; then
15767
15768cat >>confdefs.h <<\_ACEOF
15769#define const
15770_ACEOF
15771
15772fi
15773
15774echo "$as_me:$LINENO: checking for inline" >&5
15775echo $ECHO_N "checking for inline... $ECHO_C" >&6
15776if test "${ac_cv_c_inline+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15778else
15779 ac_cv_c_inline=no
15780for ac_kw in inline __inline__ __inline; do
15781 cat >conftest.$ac_ext <<_ACEOF
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
15787#ifndef __cplusplus
15788typedef int foo_t;
15789static $ac_kw foo_t static_foo () {return 0; }
15790$ac_kw foo_t foo () {return 0; }
15791#endif
15792
15793_ACEOF
15794rm -f conftest.$ac_objext
15795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15796 (eval $ac_compile) 2>conftest.er1
a848cd7e 15797 ac_status=$?
ac1cb8d3
VS
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
a848cd7e
SC
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
6ebeb4c7 15803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; } &&
15809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15812 ac_status=$?
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_cv_c_inline=$ac_kw; break
15816else
15817 echo "$as_me: failed program was:" >&5
15818sed 's/^/| /' conftest.$ac_ext >&5
15819
15820fi
ac1cb8d3 15821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15822done
15823
15824fi
15825echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15826echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15827
15828
a848cd7e
SC
15829case $ac_cv_c_inline in
15830 inline | yes) ;;
ac1cb8d3
VS
15831 *)
15832 case $ac_cv_c_inline in
15833 no) ac_val=;;
15834 *) ac_val=$ac_cv_c_inline;;
15835 esac
15836 cat >>confdefs.h <<_ACEOF
15837#ifndef __cplusplus
15838#define inline $ac_val
15839#endif
de59c161 15840_ACEOF
ac1cb8d3 15841 ;;
a848cd7e
SC
15842esac
15843
15844
15845echo "$as_me:$LINENO: checking for char" >&5
15846echo $ECHO_N "checking for char... $ECHO_C" >&6
15847if test "${ac_cv_type_char+set}" = set; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15849else
15850 cat >conftest.$ac_ext <<_ACEOF
15851/* confdefs.h. */
15852_ACEOF
15853cat confdefs.h >>conftest.$ac_ext
15854cat >>conftest.$ac_ext <<_ACEOF
15855/* end confdefs.h. */
15856$ac_includes_default
15857int
15858main ()
15859{
15860if ((char *) 0)
15861 return 0;
15862if (sizeof (char))
15863 return 0;
15864 ;
15865 return 0;
15866}
15867_ACEOF
15868rm -f conftest.$ac_objext
15869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15870 (eval $ac_compile) 2>conftest.er1
a848cd7e 15871 ac_status=$?
ac1cb8d3
VS
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
a848cd7e
SC
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } &&
6ebeb4c7 15877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15880 ac_status=$?
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; } &&
15883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; }; then
15889 ac_cv_type_char=yes
15890else
15891 echo "$as_me: failed program was:" >&5
15892sed 's/^/| /' conftest.$ac_ext >&5
15893
15894ac_cv_type_char=no
15895fi
ac1cb8d3 15896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15897fi
15898echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15899echo "${ECHO_T}$ac_cv_type_char" >&6
15900
15901echo "$as_me:$LINENO: checking size of char" >&5
15902echo $ECHO_N "checking size of char... $ECHO_C" >&6
15903if test "${ac_cv_sizeof_char+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15905else
15906 if test "$ac_cv_type_char" = yes; then
15907 # The cast to unsigned long works around a bug in the HP C Compiler
15908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15910 # This bug is HP SR number 8606223364.
15911 if test "$cross_compiling" = yes; then
15912 # Depending upon the size, compute the lo and hi bounds.
15913cat >conftest.$ac_ext <<_ACEOF
15914/* confdefs.h. */
15915_ACEOF
15916cat confdefs.h >>conftest.$ac_ext
15917cat >>conftest.$ac_ext <<_ACEOF
15918/* end confdefs.h. */
15919$ac_includes_default
15920int
15921main ()
15922{
15923static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15924test_array [0] = 0
15925
15926 ;
15927 return 0;
15928}
15929_ACEOF
15930rm -f conftest.$ac_objext
15931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15932 (eval $ac_compile) 2>conftest.er1
a848cd7e 15933 ac_status=$?
ac1cb8d3
VS
15934 grep -v '^ *+' conftest.er1 >conftest.err
15935 rm -f conftest.er1
15936 cat conftest.err >&5
a848cd7e
SC
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } &&
6ebeb4c7 15939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15942 ac_status=$?
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; } &&
15945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; }; then
15951 ac_lo=0 ac_mid=0
15952 while :; do
15953 cat >conftest.$ac_ext <<_ACEOF
15954/* confdefs.h. */
15955_ACEOF
15956cat confdefs.h >>conftest.$ac_ext
15957cat >>conftest.$ac_ext <<_ACEOF
15958/* end confdefs.h. */
15959$ac_includes_default
15960int
15961main ()
15962{
15963static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15964test_array [0] = 0
15965
15966 ;
15967 return 0;
15968}
15969_ACEOF
15970rm -f conftest.$ac_objext
15971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15972 (eval $ac_compile) 2>conftest.er1
a848cd7e 15973 ac_status=$?
ac1cb8d3
VS
15974 grep -v '^ *+' conftest.er1 >conftest.err
15975 rm -f conftest.er1
15976 cat conftest.err >&5
a848cd7e
SC
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } &&
6ebeb4c7 15979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; } &&
15985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15991 ac_hi=$ac_mid; break
15992else
15993 echo "$as_me: failed program was:" >&5
15994sed 's/^/| /' conftest.$ac_ext >&5
15995
15996ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15997 if test $ac_lo -le $ac_mid; then
15998 ac_lo= ac_hi=
15999 break
16000 fi
16001 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16002fi
ac1cb8d3 16003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16004 done
16005else
16006 echo "$as_me: failed program was:" >&5
16007sed 's/^/| /' conftest.$ac_ext >&5
16008
16009cat >conftest.$ac_ext <<_ACEOF
16010/* confdefs.h. */
16011_ACEOF
16012cat confdefs.h >>conftest.$ac_ext
16013cat >>conftest.$ac_ext <<_ACEOF
16014/* end confdefs.h. */
16015$ac_includes_default
16016int
16017main ()
16018{
16019static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16020test_array [0] = 0
16021
16022 ;
16023 return 0;
16024}
16025_ACEOF
16026rm -f conftest.$ac_objext
16027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16028 (eval $ac_compile) 2>conftest.er1
a848cd7e 16029 ac_status=$?
ac1cb8d3
VS
16030 grep -v '^ *+' conftest.er1 >conftest.err
16031 rm -f conftest.er1
16032 cat conftest.err >&5
a848cd7e
SC
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
6ebeb4c7 16035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_hi=-1 ac_mid=-1
16048 while :; do
16049 cat >conftest.$ac_ext <<_ACEOF
16050/* confdefs.h. */
16051_ACEOF
16052cat confdefs.h >>conftest.$ac_ext
16053cat >>conftest.$ac_ext <<_ACEOF
16054/* end confdefs.h. */
16055$ac_includes_default
16056int
16057main ()
16058{
16059static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16060test_array [0] = 0
16061
16062 ;
16063 return 0;
16064}
16065_ACEOF
16066rm -f conftest.$ac_objext
16067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16068 (eval $ac_compile) 2>conftest.er1
a848cd7e 16069 ac_status=$?
ac1cb8d3
VS
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
a848cd7e
SC
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
6ebeb4c7 16075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 ac_lo=$ac_mid; break
16088else
16089 echo "$as_me: failed program was:" >&5
16090sed 's/^/| /' conftest.$ac_ext >&5
16091
16092ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16093 if test $ac_mid -le $ac_hi; then
16094 ac_lo= ac_hi=
16095 break
16096 fi
16097 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16098fi
ac1cb8d3 16099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16100 done
16101else
16102 echo "$as_me: failed program was:" >&5
16103sed 's/^/| /' conftest.$ac_ext >&5
16104
16105ac_lo= ac_hi=
16106fi
ac1cb8d3 16107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16108fi
ac1cb8d3 16109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16110# Binary search between lo and hi bounds.
16111while test "x$ac_lo" != "x$ac_hi"; do
16112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16113 cat >conftest.$ac_ext <<_ACEOF
16114/* confdefs.h. */
16115_ACEOF
16116cat confdefs.h >>conftest.$ac_ext
16117cat >>conftest.$ac_ext <<_ACEOF
16118/* end confdefs.h. */
16119$ac_includes_default
16120int
16121main ()
16122{
16123static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16124test_array [0] = 0
16125
16126 ;
16127 return 0;
16128}
16129_ACEOF
16130rm -f conftest.$ac_objext
16131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16132 (eval $ac_compile) 2>conftest.er1
a848cd7e 16133 ac_status=$?
ac1cb8d3
VS
16134 grep -v '^ *+' conftest.er1 >conftest.err
16135 rm -f conftest.er1
16136 cat conftest.err >&5
a848cd7e
SC
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } &&
6ebeb4c7 16139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16142 ac_status=$?
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; } &&
16145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_hi=$ac_mid
16152else
16153 echo "$as_me: failed program was:" >&5
16154sed 's/^/| /' conftest.$ac_ext >&5
16155
16156ac_lo=`expr '(' $ac_mid ')' + 1`
16157fi
ac1cb8d3 16158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16159done
16160case $ac_lo in
16161?*) ac_cv_sizeof_char=$ac_lo;;
16162'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16163See \`config.log' for more details." >&5
16164echo "$as_me: error: cannot compute sizeof (char), 77
16165See \`config.log' for more details." >&2;}
16166 { (exit 1); exit 1; }; } ;;
16167esac
16168else
16169 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16170 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16171echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16172 { (exit 1); exit 1; }; }
16173else
16174 cat >conftest.$ac_ext <<_ACEOF
16175/* confdefs.h. */
16176_ACEOF
16177cat confdefs.h >>conftest.$ac_ext
16178cat >>conftest.$ac_ext <<_ACEOF
16179/* end confdefs.h. */
16180$ac_includes_default
16181long longval () { return (long) (sizeof (char)); }
16182unsigned long ulongval () { return (long) (sizeof (char)); }
16183#include <stdio.h>
16184#include <stdlib.h>
16185int
16186main ()
16187{
16188
16189 FILE *f = fopen ("conftest.val", "w");
16190 if (! f)
16191 exit (1);
16192 if (((long) (sizeof (char))) < 0)
16193 {
16194 long i = longval ();
16195 if (i != ((long) (sizeof (char))))
16196 exit (1);
16197 fprintf (f, "%ld\n", i);
16198 }
16199 else
16200 {
16201 unsigned long i = ulongval ();
16202 if (i != ((long) (sizeof (char))))
16203 exit (1);
16204 fprintf (f, "%lu\n", i);
16205 }
16206 exit (ferror (f) || fclose (f) != 0);
16207
16208 ;
16209 return 0;
16210}
16211_ACEOF
16212rm -f conftest$ac_exeext
16213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16214 (eval $ac_link) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; }; then
16223 ac_cv_sizeof_char=`cat conftest.val`
16224else
16225 echo "$as_me: program exited with status $ac_status" >&5
16226echo "$as_me: failed program was:" >&5
16227sed 's/^/| /' conftest.$ac_ext >&5
16228
16229( exit $ac_status )
16230{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16231See \`config.log' for more details." >&5
16232echo "$as_me: error: cannot compute sizeof (char), 77
16233See \`config.log' for more details." >&2;}
16234 { (exit 1); exit 1; }; }
16235fi
ac1cb8d3 16236rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16237fi
16238fi
16239rm -f conftest.val
16240else
16241 ac_cv_sizeof_char=0
16242fi
16243fi
16244echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16245echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16246cat >>confdefs.h <<_ACEOF
16247#define SIZEOF_CHAR $ac_cv_sizeof_char
16248_ACEOF
16249
16250
16251echo "$as_me:$LINENO: checking for short" >&5
16252echo $ECHO_N "checking for short... $ECHO_C" >&6
16253if test "${ac_cv_type_short+set}" = set; then
16254 echo $ECHO_N "(cached) $ECHO_C" >&6
16255else
16256 cat >conftest.$ac_ext <<_ACEOF
16257/* confdefs.h. */
16258_ACEOF
16259cat confdefs.h >>conftest.$ac_ext
16260cat >>conftest.$ac_ext <<_ACEOF
16261/* end confdefs.h. */
16262$ac_includes_default
16263int
16264main ()
16265{
16266if ((short *) 0)
16267 return 0;
16268if (sizeof (short))
16269 return 0;
16270 ;
16271 return 0;
16272}
16273_ACEOF
16274rm -f conftest.$ac_objext
16275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16276 (eval $ac_compile) 2>conftest.er1
a848cd7e 16277 ac_status=$?
ac1cb8d3
VS
16278 grep -v '^ *+' conftest.er1 >conftest.err
16279 rm -f conftest.er1
16280 cat conftest.err >&5
a848cd7e
SC
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } &&
6ebeb4c7 16283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 ac_cv_type_short=yes
16296else
16297 echo "$as_me: failed program was:" >&5
16298sed 's/^/| /' conftest.$ac_ext >&5
16299
16300ac_cv_type_short=no
16301fi
ac1cb8d3 16302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16303fi
16304echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16305echo "${ECHO_T}$ac_cv_type_short" >&6
16306
16307echo "$as_me:$LINENO: checking size of short" >&5
16308echo $ECHO_N "checking size of short... $ECHO_C" >&6
16309if test "${ac_cv_sizeof_short+set}" = set; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16311else
16312 if test "$ac_cv_type_short" = yes; then
16313 # The cast to unsigned long works around a bug in the HP C Compiler
16314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16316 # This bug is HP SR number 8606223364.
16317 if test "$cross_compiling" = yes; then
16318 # Depending upon the size, compute the lo and hi bounds.
16319cat >conftest.$ac_ext <<_ACEOF
16320/* confdefs.h. */
16321_ACEOF
16322cat confdefs.h >>conftest.$ac_ext
16323cat >>conftest.$ac_ext <<_ACEOF
16324/* end confdefs.h. */
16325$ac_includes_default
16326int
16327main ()
16328{
16329static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16330test_array [0] = 0
16331
16332 ;
16333 return 0;
16334}
16335_ACEOF
16336rm -f conftest.$ac_objext
16337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16338 (eval $ac_compile) 2>conftest.er1
a848cd7e 16339 ac_status=$?
ac1cb8d3
VS
16340 grep -v '^ *+' conftest.er1 >conftest.err
16341 rm -f conftest.er1
16342 cat conftest.err >&5
a848cd7e
SC
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
6ebeb4c7 16345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_lo=0 ac_mid=0
16358 while :; do
16359 cat >conftest.$ac_ext <<_ACEOF
16360/* confdefs.h. */
16361_ACEOF
16362cat confdefs.h >>conftest.$ac_ext
16363cat >>conftest.$ac_ext <<_ACEOF
16364/* end confdefs.h. */
16365$ac_includes_default
16366int
16367main ()
16368{
16369static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16370test_array [0] = 0
16371
16372 ;
16373 return 0;
16374}
16375_ACEOF
16376rm -f conftest.$ac_objext
16377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16378 (eval $ac_compile) 2>conftest.er1
a848cd7e 16379 ac_status=$?
ac1cb8d3
VS
16380 grep -v '^ *+' conftest.er1 >conftest.err
16381 rm -f conftest.er1
16382 cat conftest.err >&5
a848cd7e
SC
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } &&
6ebeb4c7 16385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16391 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397 ac_hi=$ac_mid; break
16398else
16399 echo "$as_me: failed program was:" >&5
16400sed 's/^/| /' conftest.$ac_ext >&5
16401
16402ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16403 if test $ac_lo -le $ac_mid; then
16404 ac_lo= ac_hi=
16405 break
16406 fi
16407 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16408fi
ac1cb8d3 16409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16410 done
16411else
16412 echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415cat >conftest.$ac_ext <<_ACEOF
16416/* confdefs.h. */
16417_ACEOF
16418cat confdefs.h >>conftest.$ac_ext
16419cat >>conftest.$ac_ext <<_ACEOF
16420/* end confdefs.h. */
16421$ac_includes_default
16422int
16423main ()
16424{
16425static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16426test_array [0] = 0
16427
16428 ;
16429 return 0;
16430}
16431_ACEOF
16432rm -f conftest.$ac_objext
16433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16434 (eval $ac_compile) 2>conftest.er1
a848cd7e 16435 ac_status=$?
ac1cb8d3
VS
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
a848cd7e
SC
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } &&
6ebeb4c7 16441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 ac_hi=-1 ac_mid=-1
16454 while :; do
16455 cat >conftest.$ac_ext <<_ACEOF
16456/* confdefs.h. */
16457_ACEOF
16458cat confdefs.h >>conftest.$ac_ext
16459cat >>conftest.$ac_ext <<_ACEOF
16460/* end confdefs.h. */
16461$ac_includes_default
16462int
16463main ()
16464{
16465static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16466test_array [0] = 0
16467
16468 ;
16469 return 0;
16470}
16471_ACEOF
16472rm -f conftest.$ac_objext
16473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16474 (eval $ac_compile) 2>conftest.er1
a848cd7e 16475 ac_status=$?
ac1cb8d3
VS
16476 grep -v '^ *+' conftest.er1 >conftest.err
16477 rm -f conftest.er1
16478 cat conftest.err >&5
a848cd7e
SC
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
6ebeb4c7 16481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_lo=$ac_mid; break
16494else
16495 echo "$as_me: failed program was:" >&5
16496sed 's/^/| /' conftest.$ac_ext >&5
16497
16498ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16499 if test $ac_mid -le $ac_hi; then
16500 ac_lo= ac_hi=
16501 break
16502 fi
16503 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16504fi
ac1cb8d3 16505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16506 done
16507else
16508 echo "$as_me: failed program was:" >&5
16509sed 's/^/| /' conftest.$ac_ext >&5
16510
16511ac_lo= ac_hi=
16512fi
ac1cb8d3 16513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16514fi
ac1cb8d3 16515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16516# Binary search between lo and hi bounds.
16517while test "x$ac_lo" != "x$ac_hi"; do
16518 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16519 cat >conftest.$ac_ext <<_ACEOF
16520/* confdefs.h. */
16521_ACEOF
16522cat confdefs.h >>conftest.$ac_ext
16523cat >>conftest.$ac_ext <<_ACEOF
16524/* end confdefs.h. */
16525$ac_includes_default
16526int
16527main ()
16528{
16529static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16530test_array [0] = 0
16531
16532 ;
16533 return 0;
16534}
16535_ACEOF
16536rm -f conftest.$ac_objext
16537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16538 (eval $ac_compile) 2>conftest.er1
a848cd7e 16539 ac_status=$?
ac1cb8d3
VS
16540 grep -v '^ *+' conftest.er1 >conftest.err
16541 rm -f conftest.er1
16542 cat conftest.err >&5
a848cd7e
SC
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } &&
6ebeb4c7 16545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; } &&
16551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553 (eval $ac_try) 2>&5
16554 ac_status=$?
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); }; }; then
16557 ac_hi=$ac_mid
16558else
16559 echo "$as_me: failed program was:" >&5
16560sed 's/^/| /' conftest.$ac_ext >&5
16561
16562ac_lo=`expr '(' $ac_mid ')' + 1`
16563fi
ac1cb8d3 16564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16565done
16566case $ac_lo in
16567?*) ac_cv_sizeof_short=$ac_lo;;
16568'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16569See \`config.log' for more details." >&5
16570echo "$as_me: error: cannot compute sizeof (short), 77
16571See \`config.log' for more details." >&2;}
16572 { (exit 1); exit 1; }; } ;;
16573esac
16574else
16575 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16576 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16577echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16578 { (exit 1); exit 1; }; }
16579else
16580 cat >conftest.$ac_ext <<_ACEOF
16581/* confdefs.h. */
16582_ACEOF
16583cat confdefs.h >>conftest.$ac_ext
16584cat >>conftest.$ac_ext <<_ACEOF
16585/* end confdefs.h. */
16586$ac_includes_default
16587long longval () { return (long) (sizeof (short)); }
16588unsigned long ulongval () { return (long) (sizeof (short)); }
16589#include <stdio.h>
16590#include <stdlib.h>
16591int
16592main ()
16593{
16594
16595 FILE *f = fopen ("conftest.val", "w");
16596 if (! f)
16597 exit (1);
16598 if (((long) (sizeof (short))) < 0)
16599 {
16600 long i = longval ();
16601 if (i != ((long) (sizeof (short))))
16602 exit (1);
16603 fprintf (f, "%ld\n", i);
16604 }
16605 else
16606 {
16607 unsigned long i = ulongval ();
16608 if (i != ((long) (sizeof (short))))
16609 exit (1);
16610 fprintf (f, "%lu\n", i);
16611 }
16612 exit (ferror (f) || fclose (f) != 0);
16613
16614 ;
16615 return 0;
16616}
16617_ACEOF
16618rm -f conftest$ac_exeext
16619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16620 (eval $ac_link) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16626 ac_status=$?
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; }; then
16629 ac_cv_sizeof_short=`cat conftest.val`
16630else
16631 echo "$as_me: program exited with status $ac_status" >&5
16632echo "$as_me: failed program was:" >&5
16633sed 's/^/| /' conftest.$ac_ext >&5
16634
16635( exit $ac_status )
16636{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16637See \`config.log' for more details." >&5
16638echo "$as_me: error: cannot compute sizeof (short), 77
16639See \`config.log' for more details." >&2;}
16640 { (exit 1); exit 1; }; }
16641fi
ac1cb8d3 16642rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16643fi
16644fi
16645rm -f conftest.val
16646else
16647 ac_cv_sizeof_short=0
16648fi
16649fi
16650echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16651echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16652cat >>confdefs.h <<_ACEOF
16653#define SIZEOF_SHORT $ac_cv_sizeof_short
16654_ACEOF
16655
16656
16657echo "$as_me:$LINENO: checking for void *" >&5
16658echo $ECHO_N "checking for void *... $ECHO_C" >&6
16659if test "${ac_cv_type_void_p+set}" = set; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16661else
16662 cat >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
16669int
16670main ()
16671{
16672if ((void * *) 0)
16673 return 0;
16674if (sizeof (void *))
16675 return 0;
16676 ;
16677 return 0;
16678}
16679_ACEOF
16680rm -f conftest.$ac_objext
16681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16682 (eval $ac_compile) 2>conftest.er1
a848cd7e 16683 ac_status=$?
ac1cb8d3
VS
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
a848cd7e
SC
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
6ebeb4c7 16689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_cv_type_void_p=yes
16702else
16703 echo "$as_me: failed program was:" >&5
16704sed 's/^/| /' conftest.$ac_ext >&5
16705
16706ac_cv_type_void_p=no
16707fi
ac1cb8d3 16708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16709fi
16710echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16711echo "${ECHO_T}$ac_cv_type_void_p" >&6
16712
16713echo "$as_me:$LINENO: checking size of void *" >&5
16714echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16715if test "${ac_cv_sizeof_void_p+set}" = set; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16717else
16718 if test "$ac_cv_type_void_p" = yes; then
16719 # The cast to unsigned long works around a bug in the HP C Compiler
16720 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16721 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16722 # This bug is HP SR number 8606223364.
16723 if test "$cross_compiling" = yes; then
16724 # Depending upon the size, compute the lo and hi bounds.
16725cat >conftest.$ac_ext <<_ACEOF
16726/* confdefs.h. */
16727_ACEOF
16728cat confdefs.h >>conftest.$ac_ext
16729cat >>conftest.$ac_ext <<_ACEOF
16730/* end confdefs.h. */
16731$ac_includes_default
16732int
16733main ()
16734{
16735static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16736test_array [0] = 0
16737
16738 ;
16739 return 0;
16740}
16741_ACEOF
16742rm -f conftest.$ac_objext
16743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16744 (eval $ac_compile) 2>conftest.er1
a848cd7e 16745 ac_status=$?
ac1cb8d3
VS
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
a848cd7e
SC
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
6ebeb4c7 16751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; } &&
16757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16760 ac_status=$?
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763 ac_lo=0 ac_mid=0
16764 while :; do
16765 cat >conftest.$ac_ext <<_ACEOF
16766/* confdefs.h. */
16767_ACEOF
16768cat confdefs.h >>conftest.$ac_ext
16769cat >>conftest.$ac_ext <<_ACEOF
16770/* end confdefs.h. */
16771$ac_includes_default
16772int
16773main ()
16774{
16775static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16776test_array [0] = 0
16777
16778 ;
16779 return 0;
16780}
16781_ACEOF
16782rm -f conftest.$ac_objext
16783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16784 (eval $ac_compile) 2>conftest.er1
a848cd7e 16785 ac_status=$?
ac1cb8d3
VS
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
a848cd7e
SC
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
6ebeb4c7 16791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_hi=$ac_mid; break
16804else
16805 echo "$as_me: failed program was:" >&5
16806sed 's/^/| /' conftest.$ac_ext >&5
16807
16808ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16809 if test $ac_lo -le $ac_mid; then
16810 ac_lo= ac_hi=
16811 break
16812 fi
16813 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16814fi
ac1cb8d3 16815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16816 done
16817else
16818 echo "$as_me: failed program was:" >&5
16819sed 's/^/| /' conftest.$ac_ext >&5
16820
16821cat >conftest.$ac_ext <<_ACEOF
16822/* confdefs.h. */
16823_ACEOF
16824cat confdefs.h >>conftest.$ac_ext
16825cat >>conftest.$ac_ext <<_ACEOF
16826/* end confdefs.h. */
16827$ac_includes_default
16828int
16829main ()
16830{
16831static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16832test_array [0] = 0
16833
16834 ;
16835 return 0;
16836}
16837_ACEOF
16838rm -f conftest.$ac_objext
16839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16840 (eval $ac_compile) 2>conftest.er1
a848cd7e 16841 ac_status=$?
ac1cb8d3
VS
16842 grep -v '^ *+' conftest.er1 >conftest.err
16843 rm -f conftest.er1
16844 cat conftest.err >&5
a848cd7e
SC
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } &&
6ebeb4c7 16847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_hi=-1 ac_mid=-1
16860 while :; do
16861 cat >conftest.$ac_ext <<_ACEOF
16862/* confdefs.h. */
16863_ACEOF
16864cat confdefs.h >>conftest.$ac_ext
16865cat >>conftest.$ac_ext <<_ACEOF
16866/* end confdefs.h. */
16867$ac_includes_default
16868int
16869main ()
16870{
16871static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16872test_array [0] = 0
16873
16874 ;
16875 return 0;
16876}
16877_ACEOF
16878rm -f conftest.$ac_objext
16879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16880 (eval $ac_compile) 2>conftest.er1
a848cd7e 16881 ac_status=$?
ac1cb8d3
VS
16882 grep -v '^ *+' conftest.er1 >conftest.err
16883 rm -f conftest.er1
16884 cat conftest.err >&5
a848cd7e
SC
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
6ebeb4c7 16887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; } &&
16893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_lo=$ac_mid; break
16900else
16901 echo "$as_me: failed program was:" >&5
16902sed 's/^/| /' conftest.$ac_ext >&5
16903
16904ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16905 if test $ac_mid -le $ac_hi; then
16906 ac_lo= ac_hi=
16907 break
16908 fi
16909 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16910fi
ac1cb8d3 16911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16912 done
16913else
16914 echo "$as_me: failed program was:" >&5
16915sed 's/^/| /' conftest.$ac_ext >&5
16916
16917ac_lo= ac_hi=
16918fi
ac1cb8d3 16919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16920fi
ac1cb8d3 16921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16922# Binary search between lo and hi bounds.
16923while test "x$ac_lo" != "x$ac_hi"; do
16924 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16925 cat >conftest.$ac_ext <<_ACEOF
16926/* confdefs.h. */
16927_ACEOF
16928cat confdefs.h >>conftest.$ac_ext
16929cat >>conftest.$ac_ext <<_ACEOF
16930/* end confdefs.h. */
16931$ac_includes_default
16932int
16933main ()
16934{
16935static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16936test_array [0] = 0
16937
16938 ;
16939 return 0;
16940}
16941_ACEOF
16942rm -f conftest.$ac_objext
16943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16944 (eval $ac_compile) 2>conftest.er1
a848cd7e 16945 ac_status=$?
ac1cb8d3
VS
16946 grep -v '^ *+' conftest.er1 >conftest.err
16947 rm -f conftest.er1
16948 cat conftest.err >&5
a848cd7e
SC
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } &&
6ebeb4c7 16951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } &&
16957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 ac_hi=$ac_mid
16964else
16965 echo "$as_me: failed program was:" >&5
16966sed 's/^/| /' conftest.$ac_ext >&5
16967
16968ac_lo=`expr '(' $ac_mid ')' + 1`
16969fi
ac1cb8d3 16970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16971done
16972case $ac_lo in
16973?*) ac_cv_sizeof_void_p=$ac_lo;;
16974'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16975See \`config.log' for more details." >&5
16976echo "$as_me: error: cannot compute sizeof (void *), 77
16977See \`config.log' for more details." >&2;}
16978 { (exit 1); exit 1; }; } ;;
16979esac
16980else
16981 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16982 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16983echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16984 { (exit 1); exit 1; }; }
16985else
16986 cat >conftest.$ac_ext <<_ACEOF
16987/* confdefs.h. */
16988_ACEOF
16989cat confdefs.h >>conftest.$ac_ext
16990cat >>conftest.$ac_ext <<_ACEOF
16991/* end confdefs.h. */
16992$ac_includes_default
16993long longval () { return (long) (sizeof (void *)); }
16994unsigned long ulongval () { return (long) (sizeof (void *)); }
16995#include <stdio.h>
16996#include <stdlib.h>
16997int
16998main ()
16999{
17000
17001 FILE *f = fopen ("conftest.val", "w");
17002 if (! f)
17003 exit (1);
17004 if (((long) (sizeof (void *))) < 0)
17005 {
17006 long i = longval ();
17007 if (i != ((long) (sizeof (void *))))
17008 exit (1);
17009 fprintf (f, "%ld\n", i);
17010 }
17011 else
17012 {
17013 unsigned long i = ulongval ();
17014 if (i != ((long) (sizeof (void *))))
17015 exit (1);
17016 fprintf (f, "%lu\n", i);
17017 }
17018 exit (ferror (f) || fclose (f) != 0);
17019
17020 ;
17021 return 0;
17022}
17023_ACEOF
17024rm -f conftest$ac_exeext
17025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17026 (eval $ac_link) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 ac_cv_sizeof_void_p=`cat conftest.val`
17036else
17037 echo "$as_me: program exited with status $ac_status" >&5
17038echo "$as_me: failed program was:" >&5
17039sed 's/^/| /' conftest.$ac_ext >&5
17040
17041( exit $ac_status )
17042{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17043See \`config.log' for more details." >&5
17044echo "$as_me: error: cannot compute sizeof (void *), 77
17045See \`config.log' for more details." >&2;}
17046 { (exit 1); exit 1; }; }
17047fi
ac1cb8d3 17048rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17049fi
17050fi
17051rm -f conftest.val
17052else
17053 ac_cv_sizeof_void_p=0
17054fi
17055fi
17056echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17057echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17058cat >>confdefs.h <<_ACEOF
17059#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17060_ACEOF
17061
17062
17063echo "$as_me:$LINENO: checking for int" >&5
17064echo $ECHO_N "checking for int... $ECHO_C" >&6
17065if test "${ac_cv_type_int+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067else
17068 cat >conftest.$ac_ext <<_ACEOF
17069/* confdefs.h. */
17070_ACEOF
17071cat confdefs.h >>conftest.$ac_ext
17072cat >>conftest.$ac_ext <<_ACEOF
17073/* end confdefs.h. */
17074$ac_includes_default
17075int
17076main ()
17077{
17078if ((int *) 0)
17079 return 0;
17080if (sizeof (int))
17081 return 0;
17082 ;
17083 return 0;
17084}
17085_ACEOF
17086rm -f conftest.$ac_objext
17087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17088 (eval $ac_compile) 2>conftest.er1
a848cd7e 17089 ac_status=$?
ac1cb8d3
VS
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
a848cd7e
SC
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
6ebeb4c7 17095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; }; then
17107 ac_cv_type_int=yes
17108else
17109 echo "$as_me: failed program was:" >&5
17110sed 's/^/| /' conftest.$ac_ext >&5
17111
17112ac_cv_type_int=no
17113fi
ac1cb8d3 17114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17115fi
17116echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17117echo "${ECHO_T}$ac_cv_type_int" >&6
17118
17119echo "$as_me:$LINENO: checking size of int" >&5
17120echo $ECHO_N "checking size of int... $ECHO_C" >&6
17121if test "${ac_cv_sizeof_int+set}" = set; then
17122 echo $ECHO_N "(cached) $ECHO_C" >&6
17123else
17124 if test "$ac_cv_type_int" = yes; then
17125 # The cast to unsigned long works around a bug in the HP C Compiler
17126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17128 # This bug is HP SR number 8606223364.
17129 if test "$cross_compiling" = yes; then
17130 # Depending upon the size, compute the lo and hi bounds.
17131cat >conftest.$ac_ext <<_ACEOF
17132/* confdefs.h. */
17133_ACEOF
17134cat confdefs.h >>conftest.$ac_ext
17135cat >>conftest.$ac_ext <<_ACEOF
17136/* end confdefs.h. */
17137$ac_includes_default
17138int
17139main ()
17140{
17141static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17142test_array [0] = 0
17143
17144 ;
17145 return 0;
17146}
17147_ACEOF
17148rm -f conftest.$ac_objext
17149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17150 (eval $ac_compile) 2>conftest.er1
a848cd7e 17151 ac_status=$?
ac1cb8d3
VS
17152 grep -v '^ *+' conftest.er1 >conftest.err
17153 rm -f conftest.er1
17154 cat conftest.err >&5
a848cd7e
SC
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } &&
6ebeb4c7 17157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159 (eval $ac_try) 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 ac_lo=0 ac_mid=0
17170 while :; do
17171 cat >conftest.$ac_ext <<_ACEOF
17172/* confdefs.h. */
17173_ACEOF
17174cat confdefs.h >>conftest.$ac_ext
17175cat >>conftest.$ac_ext <<_ACEOF
17176/* end confdefs.h. */
17177$ac_includes_default
17178int
17179main ()
17180{
17181static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17182test_array [0] = 0
17183
17184 ;
17185 return 0;
17186}
17187_ACEOF
17188rm -f conftest.$ac_objext
17189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17190 (eval $ac_compile) 2>conftest.er1
a848cd7e 17191 ac_status=$?
ac1cb8d3
VS
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
a848cd7e
SC
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
6ebeb4c7 17197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 ac_hi=$ac_mid; break
17210else
17211 echo "$as_me: failed program was:" >&5
17212sed 's/^/| /' conftest.$ac_ext >&5
17213
17214ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17215 if test $ac_lo -le $ac_mid; then
17216 ac_lo= ac_hi=
17217 break
17218 fi
17219 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17220fi
ac1cb8d3 17221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17222 done
17223else
17224 echo "$as_me: failed program was:" >&5
17225sed 's/^/| /' conftest.$ac_ext >&5
17226
17227cat >conftest.$ac_ext <<_ACEOF
17228/* confdefs.h. */
17229_ACEOF
17230cat confdefs.h >>conftest.$ac_ext
17231cat >>conftest.$ac_ext <<_ACEOF
17232/* end confdefs.h. */
17233$ac_includes_default
17234int
17235main ()
17236{
17237static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17238test_array [0] = 0
17239
17240 ;
17241 return 0;
17242}
17243_ACEOF
17244rm -f conftest.$ac_objext
17245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17246 (eval $ac_compile) 2>conftest.er1
a848cd7e 17247 ac_status=$?
ac1cb8d3
VS
17248 grep -v '^ *+' conftest.er1 >conftest.err
17249 rm -f conftest.er1
17250 cat conftest.err >&5
a848cd7e
SC
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
6ebeb4c7 17253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255 (eval $ac_try) 2>&5
17256 ac_status=$?
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; } &&
17259 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
17265 ac_hi=-1 ac_mid=-1
17266 while :; do
17267 cat >conftest.$ac_ext <<_ACEOF
17268/* confdefs.h. */
17269_ACEOF
17270cat confdefs.h >>conftest.$ac_ext
17271cat >>conftest.$ac_ext <<_ACEOF
17272/* end confdefs.h. */
17273$ac_includes_default
17274int
17275main ()
17276{
17277static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17278test_array [0] = 0
17279
17280 ;
17281 return 0;
17282}
17283_ACEOF
17284rm -f conftest.$ac_objext
17285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17286 (eval $ac_compile) 2>conftest.er1
a848cd7e 17287 ac_status=$?
ac1cb8d3
VS
17288 grep -v '^ *+' conftest.er1 >conftest.err
17289 rm -f conftest.er1
17290 cat conftest.err >&5
a848cd7e
SC
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
6ebeb4c7 17293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 ac_lo=$ac_mid; break
17306else
17307 echo "$as_me: failed program was:" >&5
17308sed 's/^/| /' conftest.$ac_ext >&5
17309
17310ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17311 if test $ac_mid -le $ac_hi; then
17312 ac_lo= ac_hi=
17313 break
17314 fi
17315 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17316fi
ac1cb8d3 17317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17318 done
17319else
17320 echo "$as_me: failed program was:" >&5
17321sed 's/^/| /' conftest.$ac_ext >&5
17322
17323ac_lo= ac_hi=
17324fi
ac1cb8d3 17325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17326fi
ac1cb8d3 17327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17328# Binary search between lo and hi bounds.
17329while test "x$ac_lo" != "x$ac_hi"; do
17330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17331 cat >conftest.$ac_ext <<_ACEOF
17332/* confdefs.h. */
17333_ACEOF
17334cat confdefs.h >>conftest.$ac_ext
17335cat >>conftest.$ac_ext <<_ACEOF
17336/* end confdefs.h. */
17337$ac_includes_default
17338int
17339main ()
17340{
17341static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17342test_array [0] = 0
17343
17344 ;
17345 return 0;
17346}
17347_ACEOF
17348rm -f conftest.$ac_objext
17349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17350 (eval $ac_compile) 2>conftest.er1
a848cd7e 17351 ac_status=$?
ac1cb8d3
VS
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
a848cd7e
SC
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
6ebeb4c7 17357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17369 ac_hi=$ac_mid
17370else
17371 echo "$as_me: failed program was:" >&5
17372sed 's/^/| /' conftest.$ac_ext >&5
17373
17374ac_lo=`expr '(' $ac_mid ')' + 1`
17375fi
ac1cb8d3 17376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17377done
17378case $ac_lo in
17379?*) ac_cv_sizeof_int=$ac_lo;;
17380'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17381See \`config.log' for more details." >&5
17382echo "$as_me: error: cannot compute sizeof (int), 77
17383See \`config.log' for more details." >&2;}
17384 { (exit 1); exit 1; }; } ;;
17385esac
17386else
17387 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17388 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17389echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17390 { (exit 1); exit 1; }; }
17391else
17392 cat >conftest.$ac_ext <<_ACEOF
17393/* confdefs.h. */
17394_ACEOF
17395cat confdefs.h >>conftest.$ac_ext
17396cat >>conftest.$ac_ext <<_ACEOF
17397/* end confdefs.h. */
17398$ac_includes_default
17399long longval () { return (long) (sizeof (int)); }
17400unsigned long ulongval () { return (long) (sizeof (int)); }
17401#include <stdio.h>
17402#include <stdlib.h>
17403int
17404main ()
17405{
17406
17407 FILE *f = fopen ("conftest.val", "w");
17408 if (! f)
17409 exit (1);
17410 if (((long) (sizeof (int))) < 0)
17411 {
17412 long i = longval ();
17413 if (i != ((long) (sizeof (int))))
17414 exit (1);
17415 fprintf (f, "%ld\n", i);
17416 }
17417 else
17418 {
17419 unsigned long i = ulongval ();
17420 if (i != ((long) (sizeof (int))))
17421 exit (1);
17422 fprintf (f, "%lu\n", i);
17423 }
17424 exit (ferror (f) || fclose (f) != 0);
17425
17426 ;
17427 return 0;
17428}
17429_ACEOF
17430rm -f conftest$ac_exeext
17431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17432 (eval $ac_link) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_cv_sizeof_int=`cat conftest.val`
17442else
17443 echo "$as_me: program exited with status $ac_status" >&5
17444echo "$as_me: failed program was:" >&5
17445sed 's/^/| /' conftest.$ac_ext >&5
17446
17447( exit $ac_status )
17448{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17449See \`config.log' for more details." >&5
17450echo "$as_me: error: cannot compute sizeof (int), 77
17451See \`config.log' for more details." >&2;}
17452 { (exit 1); exit 1; }; }
17453fi
ac1cb8d3 17454rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17455fi
17456fi
17457rm -f conftest.val
17458else
17459 ac_cv_sizeof_int=0
17460fi
17461fi
17462echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17463echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17464cat >>confdefs.h <<_ACEOF
17465#define SIZEOF_INT $ac_cv_sizeof_int
17466_ACEOF
17467
17468
17469echo "$as_me:$LINENO: checking for long" >&5
17470echo $ECHO_N "checking for long... $ECHO_C" >&6
17471if test "${ac_cv_type_long+set}" = set; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17473else
17474 cat >conftest.$ac_ext <<_ACEOF
17475/* confdefs.h. */
17476_ACEOF
17477cat confdefs.h >>conftest.$ac_ext
17478cat >>conftest.$ac_ext <<_ACEOF
17479/* end confdefs.h. */
17480$ac_includes_default
17481int
17482main ()
17483{
17484if ((long *) 0)
17485 return 0;
17486if (sizeof (long))
17487 return 0;
17488 ;
17489 return 0;
17490}
17491_ACEOF
17492rm -f conftest.$ac_objext
17493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17494 (eval $ac_compile) 2>conftest.er1
a848cd7e 17495 ac_status=$?
ac1cb8d3
VS
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
a848cd7e
SC
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
6ebeb4c7 17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ac_cv_type_long=yes
17514else
17515 echo "$as_me: failed program was:" >&5
17516sed 's/^/| /' conftest.$ac_ext >&5
17517
17518ac_cv_type_long=no
17519fi
ac1cb8d3 17520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17521fi
17522echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17523echo "${ECHO_T}$ac_cv_type_long" >&6
17524
17525echo "$as_me:$LINENO: checking size of long" >&5
17526echo $ECHO_N "checking size of long... $ECHO_C" >&6
17527if test "${ac_cv_sizeof_long+set}" = set; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17529else
17530 if test "$ac_cv_type_long" = yes; then
17531 # The cast to unsigned long works around a bug in the HP C Compiler
17532 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17533 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17534 # This bug is HP SR number 8606223364.
17535 if test "$cross_compiling" = yes; then
17536 # Depending upon the size, compute the lo and hi bounds.
17537cat >conftest.$ac_ext <<_ACEOF
17538/* confdefs.h. */
17539_ACEOF
17540cat confdefs.h >>conftest.$ac_ext
17541cat >>conftest.$ac_ext <<_ACEOF
17542/* end confdefs.h. */
17543$ac_includes_default
17544int
17545main ()
17546{
17547static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17548test_array [0] = 0
17549
17550 ;
17551 return 0;
17552}
17553_ACEOF
17554rm -f conftest.$ac_objext
17555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17556 (eval $ac_compile) 2>conftest.er1
a848cd7e 17557 ac_status=$?
ac1cb8d3
VS
17558 grep -v '^ *+' conftest.er1 >conftest.err
17559 rm -f conftest.er1
17560 cat conftest.err >&5
a848cd7e
SC
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
6ebeb4c7 17563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565 (eval $ac_try) 2>&5
17566 ac_status=$?
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }; } &&
17569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
17575 ac_lo=0 ac_mid=0
17576 while :; do
17577 cat >conftest.$ac_ext <<_ACEOF
17578/* confdefs.h. */
17579_ACEOF
17580cat confdefs.h >>conftest.$ac_ext
17581cat >>conftest.$ac_ext <<_ACEOF
17582/* end confdefs.h. */
17583$ac_includes_default
17584int
17585main ()
17586{
17587static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17588test_array [0] = 0
17589
17590 ;
17591 return 0;
17592}
17593_ACEOF
17594rm -f conftest.$ac_objext
17595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17596 (eval $ac_compile) 2>conftest.er1
a848cd7e 17597 ac_status=$?
ac1cb8d3
VS
17598 grep -v '^ *+' conftest.er1 >conftest.err
17599 rm -f conftest.er1
17600 cat conftest.err >&5
a848cd7e
SC
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
6ebeb4c7 17603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_hi=$ac_mid; break
17616else
17617 echo "$as_me: failed program was:" >&5
17618sed 's/^/| /' conftest.$ac_ext >&5
17619
17620ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17621 if test $ac_lo -le $ac_mid; then
17622 ac_lo= ac_hi=
17623 break
17624 fi
17625 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17626fi
ac1cb8d3 17627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17628 done
17629else
17630 echo "$as_me: failed program was:" >&5
17631sed 's/^/| /' conftest.$ac_ext >&5
17632
17633cat >conftest.$ac_ext <<_ACEOF
17634/* confdefs.h. */
17635_ACEOF
17636cat confdefs.h >>conftest.$ac_ext
17637cat >>conftest.$ac_ext <<_ACEOF
17638/* end confdefs.h. */
17639$ac_includes_default
17640int
17641main ()
17642{
17643static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17644test_array [0] = 0
17645
17646 ;
17647 return 0;
17648}
17649_ACEOF
17650rm -f conftest.$ac_objext
17651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17652 (eval $ac_compile) 2>conftest.er1
a848cd7e 17653 ac_status=$?
ac1cb8d3
VS
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
a848cd7e
SC
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
6ebeb4c7 17659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 ac_hi=-1 ac_mid=-1
17672 while :; do
17673 cat >conftest.$ac_ext <<_ACEOF
17674/* confdefs.h. */
17675_ACEOF
17676cat confdefs.h >>conftest.$ac_ext
17677cat >>conftest.$ac_ext <<_ACEOF
17678/* end confdefs.h. */
17679$ac_includes_default
17680int
17681main ()
17682{
17683static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17684test_array [0] = 0
17685
17686 ;
17687 return 0;
17688}
17689_ACEOF
17690rm -f conftest.$ac_objext
17691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17692 (eval $ac_compile) 2>conftest.er1
a848cd7e 17693 ac_status=$?
ac1cb8d3
VS
17694 grep -v '^ *+' conftest.er1 >conftest.err
17695 rm -f conftest.er1
17696 cat conftest.err >&5
a848cd7e
SC
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
6ebeb4c7 17699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; } &&
17705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17711 ac_lo=$ac_mid; break
17712else
17713 echo "$as_me: failed program was:" >&5
17714sed 's/^/| /' conftest.$ac_ext >&5
17715
17716ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17717 if test $ac_mid -le $ac_hi; then
17718 ac_lo= ac_hi=
17719 break
17720 fi
17721 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17722fi
ac1cb8d3 17723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17724 done
17725else
17726 echo "$as_me: failed program was:" >&5
17727sed 's/^/| /' conftest.$ac_ext >&5
17728
17729ac_lo= ac_hi=
17730fi
ac1cb8d3 17731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17732fi
ac1cb8d3 17733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17734# Binary search between lo and hi bounds.
17735while test "x$ac_lo" != "x$ac_hi"; do
17736 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17737 cat >conftest.$ac_ext <<_ACEOF
17738/* confdefs.h. */
17739_ACEOF
17740cat confdefs.h >>conftest.$ac_ext
17741cat >>conftest.$ac_ext <<_ACEOF
17742/* end confdefs.h. */
17743$ac_includes_default
17744int
17745main ()
17746{
17747static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17748test_array [0] = 0
17749
17750 ;
17751 return 0;
17752}
17753_ACEOF
17754rm -f conftest.$ac_objext
17755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17756 (eval $ac_compile) 2>conftest.er1
a848cd7e 17757 ac_status=$?
ac1cb8d3
VS
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
a848cd7e
SC
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
6ebeb4c7 17763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_hi=$ac_mid
17776else
17777 echo "$as_me: failed program was:" >&5
17778sed 's/^/| /' conftest.$ac_ext >&5
17779
17780ac_lo=`expr '(' $ac_mid ')' + 1`
17781fi
ac1cb8d3 17782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17783done
17784case $ac_lo in
17785?*) ac_cv_sizeof_long=$ac_lo;;
17786'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17787See \`config.log' for more details." >&5
17788echo "$as_me: error: cannot compute sizeof (long), 77
17789See \`config.log' for more details." >&2;}
17790 { (exit 1); exit 1; }; } ;;
17791esac
17792else
17793 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17794 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17795echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17796 { (exit 1); exit 1; }; }
17797else
17798 cat >conftest.$ac_ext <<_ACEOF
17799/* confdefs.h. */
17800_ACEOF
17801cat confdefs.h >>conftest.$ac_ext
17802cat >>conftest.$ac_ext <<_ACEOF
17803/* end confdefs.h. */
17804$ac_includes_default
17805long longval () { return (long) (sizeof (long)); }
17806unsigned long ulongval () { return (long) (sizeof (long)); }
17807#include <stdio.h>
17808#include <stdlib.h>
17809int
17810main ()
17811{
17812
17813 FILE *f = fopen ("conftest.val", "w");
17814 if (! f)
17815 exit (1);
17816 if (((long) (sizeof (long))) < 0)
17817 {
17818 long i = longval ();
17819 if (i != ((long) (sizeof (long))))
17820 exit (1);
17821 fprintf (f, "%ld\n", i);
17822 }
17823 else
17824 {
17825 unsigned long i = ulongval ();
17826 if (i != ((long) (sizeof (long))))
17827 exit (1);
17828 fprintf (f, "%lu\n", i);
17829 }
17830 exit (ferror (f) || fclose (f) != 0);
17831
17832 ;
17833 return 0;
17834}
17835_ACEOF
17836rm -f conftest$ac_exeext
17837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17838 (eval $ac_link) 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; }; then
17847 ac_cv_sizeof_long=`cat conftest.val`
17848else
17849 echo "$as_me: program exited with status $ac_status" >&5
17850echo "$as_me: failed program was:" >&5
17851sed 's/^/| /' conftest.$ac_ext >&5
17852
17853( exit $ac_status )
17854{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17855See \`config.log' for more details." >&5
17856echo "$as_me: error: cannot compute sizeof (long), 77
17857See \`config.log' for more details." >&2;}
17858 { (exit 1); exit 1; }; }
17859fi
ac1cb8d3 17860rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17861fi
17862fi
17863rm -f conftest.val
17864else
17865 ac_cv_sizeof_long=0
17866fi
17867fi
17868echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17869echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17870cat >>confdefs.h <<_ACEOF
17871#define SIZEOF_LONG $ac_cv_sizeof_long
17872_ACEOF
17873
17874
17875echo "$as_me:$LINENO: checking for size_t" >&5
17876echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17877if test "${ac_cv_type_size_t+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17879else
17880 cat >conftest.$ac_ext <<_ACEOF
17881/* confdefs.h. */
17882_ACEOF
17883cat confdefs.h >>conftest.$ac_ext
17884cat >>conftest.$ac_ext <<_ACEOF
17885/* end confdefs.h. */
17886$ac_includes_default
17887int
17888main ()
17889{
17890if ((size_t *) 0)
17891 return 0;
17892if (sizeof (size_t))
17893 return 0;
17894 ;
17895 return 0;
17896}
17897_ACEOF
17898rm -f conftest.$ac_objext
17899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17900 (eval $ac_compile) 2>conftest.er1
a848cd7e 17901 ac_status=$?
ac1cb8d3
VS
17902 grep -v '^ *+' conftest.er1 >conftest.err
17903 rm -f conftest.er1
17904 cat conftest.err >&5
a848cd7e
SC
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
6ebeb4c7 17907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; } &&
17913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; }; then
17919 ac_cv_type_size_t=yes
17920else
17921 echo "$as_me: failed program was:" >&5
17922sed 's/^/| /' conftest.$ac_ext >&5
17923
17924ac_cv_type_size_t=no
17925fi
ac1cb8d3 17926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17927fi
17928echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17929echo "${ECHO_T}$ac_cv_type_size_t" >&6
17930
17931echo "$as_me:$LINENO: checking size of size_t" >&5
17932echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17933if test "${ac_cv_sizeof_size_t+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17935else
17936 if test "$ac_cv_type_size_t" = yes; then
17937 # The cast to unsigned long works around a bug in the HP C Compiler
17938 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17939 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17940 # This bug is HP SR number 8606223364.
17941 if test "$cross_compiling" = yes; then
17942 # Depending upon the size, compute the lo and hi bounds.
17943cat >conftest.$ac_ext <<_ACEOF
17944/* confdefs.h. */
17945_ACEOF
17946cat confdefs.h >>conftest.$ac_ext
17947cat >>conftest.$ac_ext <<_ACEOF
17948/* end confdefs.h. */
17949$ac_includes_default
17950int
17951main ()
17952{
17953static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17954test_array [0] = 0
17955
17956 ;
17957 return 0;
17958}
17959_ACEOF
17960rm -f conftest.$ac_objext
17961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17962 (eval $ac_compile) 2>conftest.er1
a848cd7e 17963 ac_status=$?
ac1cb8d3
VS
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
a848cd7e
SC
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
6ebeb4c7 17969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 ac_lo=0 ac_mid=0
17982 while :; do
17983 cat >conftest.$ac_ext <<_ACEOF
17984/* confdefs.h. */
17985_ACEOF
17986cat confdefs.h >>conftest.$ac_ext
17987cat >>conftest.$ac_ext <<_ACEOF
17988/* end confdefs.h. */
17989$ac_includes_default
17990int
17991main ()
17992{
17993static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17994test_array [0] = 0
17995
17996 ;
17997 return 0;
17998}
17999_ACEOF
18000rm -f conftest.$ac_objext
18001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18002 (eval $ac_compile) 2>conftest.er1
a848cd7e 18003 ac_status=$?
ac1cb8d3
VS
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
a848cd7e
SC
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
6ebeb4c7 18009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_hi=$ac_mid; break
18022else
18023 echo "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18027 if test $ac_lo -le $ac_mid; then
18028 ac_lo= ac_hi=
18029 break
18030 fi
18031 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18032fi
ac1cb8d3 18033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18034 done
18035else
18036 echo "$as_me: failed program was:" >&5
18037sed 's/^/| /' conftest.$ac_ext >&5
18038
18039cat >conftest.$ac_ext <<_ACEOF
18040/* confdefs.h. */
18041_ACEOF
18042cat confdefs.h >>conftest.$ac_ext
18043cat >>conftest.$ac_ext <<_ACEOF
18044/* end confdefs.h. */
18045$ac_includes_default
18046int
18047main ()
18048{
18049static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18050test_array [0] = 0
18051
18052 ;
18053 return 0;
18054}
18055_ACEOF
18056rm -f conftest.$ac_objext
18057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18058 (eval $ac_compile) 2>conftest.er1
a848cd7e 18059 ac_status=$?
ac1cb8d3
VS
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
a848cd7e
SC
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
6ebeb4c7 18065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; } &&
18071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; }; then
18077 ac_hi=-1 ac_mid=-1
18078 while :; do
18079 cat >conftest.$ac_ext <<_ACEOF
18080/* confdefs.h. */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h. */
18085$ac_includes_default
18086int
18087main ()
18088{
18089static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18090test_array [0] = 0
18091
18092 ;
18093 return 0;
18094}
18095_ACEOF
18096rm -f conftest.$ac_objext
18097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18098 (eval $ac_compile) 2>conftest.er1
a848cd7e 18099 ac_status=$?
ac1cb8d3
VS
18100 grep -v '^ *+' conftest.er1 >conftest.err
18101 rm -f conftest.er1
18102 cat conftest.err >&5
a848cd7e
SC
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
6ebeb4c7 18105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 ac_lo=$ac_mid; break
18118else
18119 echo "$as_me: failed program was:" >&5
18120sed 's/^/| /' conftest.$ac_ext >&5
18121
18122ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18123 if test $ac_mid -le $ac_hi; then
18124 ac_lo= ac_hi=
18125 break
18126 fi
18127 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18128fi
ac1cb8d3 18129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18130 done
18131else
18132 echo "$as_me: failed program was:" >&5
18133sed 's/^/| /' conftest.$ac_ext >&5
18134
18135ac_lo= ac_hi=
18136fi
ac1cb8d3 18137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18138fi
ac1cb8d3 18139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18140# Binary search between lo and hi bounds.
18141while test "x$ac_lo" != "x$ac_hi"; do
18142 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18143 cat >conftest.$ac_ext <<_ACEOF
18144/* confdefs.h. */
18145_ACEOF
18146cat confdefs.h >>conftest.$ac_ext
18147cat >>conftest.$ac_ext <<_ACEOF
18148/* end confdefs.h. */
18149$ac_includes_default
18150int
18151main ()
18152{
18153static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18154test_array [0] = 0
18155
18156 ;
18157 return 0;
18158}
18159_ACEOF
18160rm -f conftest.$ac_objext
18161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18162 (eval $ac_compile) 2>conftest.er1
a848cd7e 18163 ac_status=$?
ac1cb8d3
VS
18164 grep -v '^ *+' conftest.er1 >conftest.err
18165 rm -f conftest.er1
18166 cat conftest.err >&5
a848cd7e
SC
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } &&
6ebeb4c7 18169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18177 (eval $ac_try) 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; }; then
18181 ac_hi=$ac_mid
18182else
18183 echo "$as_me: failed program was:" >&5
18184sed 's/^/| /' conftest.$ac_ext >&5
18185
18186ac_lo=`expr '(' $ac_mid ')' + 1`
18187fi
ac1cb8d3 18188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18189done
18190case $ac_lo in
18191?*) ac_cv_sizeof_size_t=$ac_lo;;
18192'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18193See \`config.log' for more details." >&5
18194echo "$as_me: error: cannot compute sizeof (size_t), 77
18195See \`config.log' for more details." >&2;}
18196 { (exit 1); exit 1; }; } ;;
18197esac
18198else
18199 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18200 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18201echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18202 { (exit 1); exit 1; }; }
18203else
18204 cat >conftest.$ac_ext <<_ACEOF
18205/* confdefs.h. */
18206_ACEOF
18207cat confdefs.h >>conftest.$ac_ext
18208cat >>conftest.$ac_ext <<_ACEOF
18209/* end confdefs.h. */
18210$ac_includes_default
18211long longval () { return (long) (sizeof (size_t)); }
18212unsigned long ulongval () { return (long) (sizeof (size_t)); }
18213#include <stdio.h>
18214#include <stdlib.h>
18215int
18216main ()
18217{
18218
18219 FILE *f = fopen ("conftest.val", "w");
18220 if (! f)
18221 exit (1);
18222 if (((long) (sizeof (size_t))) < 0)
18223 {
18224 long i = longval ();
18225 if (i != ((long) (sizeof (size_t))))
18226 exit (1);
18227 fprintf (f, "%ld\n", i);
18228 }
18229 else
18230 {
18231 unsigned long i = ulongval ();
18232 if (i != ((long) (sizeof (size_t))))
18233 exit (1);
18234 fprintf (f, "%lu\n", i);
18235 }
18236 exit (ferror (f) || fclose (f) != 0);
18237
18238 ;
18239 return 0;
18240}
18241_ACEOF
18242rm -f conftest$ac_exeext
18243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18244 (eval $ac_link) 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; }; then
18253 ac_cv_sizeof_size_t=`cat conftest.val`
18254else
18255 echo "$as_me: program exited with status $ac_status" >&5
18256echo "$as_me: failed program was:" >&5
18257sed 's/^/| /' conftest.$ac_ext >&5
18258
18259( exit $ac_status )
18260{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18261See \`config.log' for more details." >&5
18262echo "$as_me: error: cannot compute sizeof (size_t), 77
18263See \`config.log' for more details." >&2;}
18264 { (exit 1); exit 1; }; }
18265fi
ac1cb8d3 18266rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18267fi
18268fi
18269rm -f conftest.val
18270else
18271 ac_cv_sizeof_size_t=0
18272fi
18273fi
18274echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18275echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18276cat >>confdefs.h <<_ACEOF
18277#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18278_ACEOF
18279
18280
18281
18282case "${host}" in
18283 arm-*-linux* )
18284 echo "$as_me:$LINENO: checking for long long" >&5
18285echo $ECHO_N "checking for long long... $ECHO_C" >&6
18286if test "${ac_cv_type_long_long+set}" = set; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18288else
18289 cat >conftest.$ac_ext <<_ACEOF
18290/* confdefs.h. */
18291_ACEOF
18292cat confdefs.h >>conftest.$ac_ext
18293cat >>conftest.$ac_ext <<_ACEOF
18294/* end confdefs.h. */
18295$ac_includes_default
18296int
18297main ()
18298{
18299if ((long long *) 0)
18300 return 0;
18301if (sizeof (long long))
18302 return 0;
18303 ;
18304 return 0;
18305}
18306_ACEOF
18307rm -f conftest.$ac_objext
18308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18309 (eval $ac_compile) 2>conftest.er1
a848cd7e 18310 ac_status=$?
ac1cb8d3
VS
18311 grep -v '^ *+' conftest.er1 >conftest.err
18312 rm -f conftest.er1
18313 cat conftest.err >&5
a848cd7e
SC
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
6ebeb4c7 18316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; } &&
18322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; }; then
18328 ac_cv_type_long_long=yes
18329else
18330 echo "$as_me: failed program was:" >&5
18331sed 's/^/| /' conftest.$ac_ext >&5
18332
18333ac_cv_type_long_long=no
18334fi
ac1cb8d3 18335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18336fi
18337echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18338echo "${ECHO_T}$ac_cv_type_long_long" >&6
18339
18340echo "$as_me:$LINENO: checking size of long long" >&5
18341echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18342if test "${ac_cv_sizeof_long_long+set}" = set; then
18343 echo $ECHO_N "(cached) $ECHO_C" >&6
18344else
18345 if test "$ac_cv_type_long_long" = yes; then
18346 # The cast to unsigned long works around a bug in the HP C Compiler
18347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18349 # This bug is HP SR number 8606223364.
18350 if test "$cross_compiling" = yes; then
18351 # Depending upon the size, compute the lo and hi bounds.
18352cat >conftest.$ac_ext <<_ACEOF
18353/* confdefs.h. */
18354_ACEOF
18355cat confdefs.h >>conftest.$ac_ext
18356cat >>conftest.$ac_ext <<_ACEOF
18357/* end confdefs.h. */
18358$ac_includes_default
18359int
18360main ()
18361{
18362static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18363test_array [0] = 0
18364
18365 ;
18366 return 0;
18367}
18368_ACEOF
18369rm -f conftest.$ac_objext
18370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18371 (eval $ac_compile) 2>conftest.er1
a848cd7e 18372 ac_status=$?
ac1cb8d3
VS
18373 grep -v '^ *+' conftest.er1 >conftest.err
18374 rm -f conftest.er1
18375 cat conftest.err >&5
a848cd7e
SC
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } &&
6ebeb4c7 18378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_lo=0 ac_mid=0
18391 while :; do
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 (long long))) <= $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); } &&
6ebeb4c7 18418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; } &&
18424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 ac_hi=$ac_mid; break
18431else
18432 echo "$as_me: failed program was:" >&5
18433sed 's/^/| /' conftest.$ac_ext >&5
18434
18435ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18436 if test $ac_lo -le $ac_mid; then
18437 ac_lo= ac_hi=
18438 break
18439 fi
18440 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18441fi
ac1cb8d3 18442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18443 done
18444else
18445 echo "$as_me: failed program was:" >&5
18446sed 's/^/| /' conftest.$ac_ext >&5
18447
18448cat >conftest.$ac_ext <<_ACEOF
18449/* confdefs.h. */
18450_ACEOF
18451cat confdefs.h >>conftest.$ac_ext
18452cat >>conftest.$ac_ext <<_ACEOF
18453/* end confdefs.h. */
18454$ac_includes_default
18455int
18456main ()
18457{
18458static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18459test_array [0] = 0
18460
18461 ;
18462 return 0;
18463}
18464_ACEOF
18465rm -f conftest.$ac_objext
18466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18467 (eval $ac_compile) 2>conftest.er1
a848cd7e 18468 ac_status=$?
ac1cb8d3
VS
18469 grep -v '^ *+' conftest.er1 >conftest.err
18470 rm -f conftest.er1
18471 cat conftest.err >&5
a848cd7e
SC
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
6ebeb4c7 18474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; } &&
18480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482 (eval $ac_try) 2>&5
18483 ac_status=$?
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; }; then
18486 ac_hi=-1 ac_mid=-1
18487 while :; do
18488 cat >conftest.$ac_ext <<_ACEOF
18489/* confdefs.h. */
18490_ACEOF
18491cat confdefs.h >>conftest.$ac_ext
18492cat >>conftest.$ac_ext <<_ACEOF
18493/* end confdefs.h. */
18494$ac_includes_default
18495int
18496main ()
18497{
18498static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18499test_array [0] = 0
18500
18501 ;
18502 return 0;
18503}
18504_ACEOF
18505rm -f conftest.$ac_objext
18506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18507 (eval $ac_compile) 2>conftest.er1
a848cd7e 18508 ac_status=$?
ac1cb8d3
VS
18509 grep -v '^ *+' conftest.er1 >conftest.err
18510 rm -f conftest.er1
18511 cat conftest.err >&5
a848cd7e
SC
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); } &&
6ebeb4c7 18514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516 (eval $ac_try) 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } &&
18520 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; }; then
18526 ac_lo=$ac_mid; break
18527else
18528 echo "$as_me: failed program was:" >&5
18529sed 's/^/| /' conftest.$ac_ext >&5
18530
18531ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18532 if test $ac_mid -le $ac_hi; then
18533 ac_lo= ac_hi=
18534 break
18535 fi
18536 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18537fi
ac1cb8d3 18538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18539 done
18540else
18541 echo "$as_me: failed program was:" >&5
18542sed 's/^/| /' conftest.$ac_ext >&5
18543
18544ac_lo= ac_hi=
18545fi
ac1cb8d3 18546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18547fi
ac1cb8d3 18548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18549# Binary search between lo and hi bounds.
18550while test "x$ac_lo" != "x$ac_hi"; do
18551 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18552 cat >conftest.$ac_ext <<_ACEOF
18553/* confdefs.h. */
18554_ACEOF
18555cat confdefs.h >>conftest.$ac_ext
18556cat >>conftest.$ac_ext <<_ACEOF
18557/* end confdefs.h. */
18558$ac_includes_default
18559int
18560main ()
18561{
18562static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18563test_array [0] = 0
18564
18565 ;
18566 return 0;
18567}
18568_ACEOF
18569rm -f conftest.$ac_objext
18570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18571 (eval $ac_compile) 2>conftest.er1
a848cd7e 18572 ac_status=$?
ac1cb8d3
VS
18573 grep -v '^ *+' conftest.er1 >conftest.err
18574 rm -f conftest.er1
18575 cat conftest.err >&5
a848cd7e
SC
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); } &&
6ebeb4c7 18578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580 (eval $ac_try) 2>&5
18581 ac_status=$?
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; } &&
18584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18586 (eval $ac_try) 2>&5
18587 ac_status=$?
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; }; then
18590 ac_hi=$ac_mid
18591else
18592 echo "$as_me: failed program was:" >&5
18593sed 's/^/| /' conftest.$ac_ext >&5
18594
18595ac_lo=`expr '(' $ac_mid ')' + 1`
18596fi
ac1cb8d3 18597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18598done
18599case $ac_lo in
18600?*) ac_cv_sizeof_long_long=$ac_lo;;
18601'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18602See \`config.log' for more details." >&5
18603echo "$as_me: error: cannot compute sizeof (long long), 77
18604See \`config.log' for more details." >&2;}
18605 { (exit 1); exit 1; }; } ;;
18606esac
18607else
18608 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18609 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18610echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18611 { (exit 1); exit 1; }; }
18612else
18613 cat >conftest.$ac_ext <<_ACEOF
18614/* confdefs.h. */
18615_ACEOF
18616cat confdefs.h >>conftest.$ac_ext
18617cat >>conftest.$ac_ext <<_ACEOF
18618/* end confdefs.h. */
18619$ac_includes_default
18620long longval () { return (long) (sizeof (long long)); }
18621unsigned long ulongval () { return (long) (sizeof (long long)); }
18622#include <stdio.h>
18623#include <stdlib.h>
18624int
18625main ()
18626{
18627
18628 FILE *f = fopen ("conftest.val", "w");
18629 if (! f)
18630 exit (1);
18631 if (((long) (sizeof (long long))) < 0)
18632 {
18633 long i = longval ();
18634 if (i != ((long) (sizeof (long long))))
18635 exit (1);
18636 fprintf (f, "%ld\n", i);
18637 }
18638 else
18639 {
18640 unsigned long i = ulongval ();
18641 if (i != ((long) (sizeof (long long))))
18642 exit (1);
18643 fprintf (f, "%lu\n", i);
18644 }
18645 exit (ferror (f) || fclose (f) != 0);
18646
18647 ;
18648 return 0;
18649}
18650_ACEOF
18651rm -f conftest$ac_exeext
18652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18653 (eval $ac_link) 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; }; then
18662 ac_cv_sizeof_long_long=`cat conftest.val`
18663else
18664 echo "$as_me: program exited with status $ac_status" >&5
18665echo "$as_me: failed program was:" >&5
18666sed 's/^/| /' conftest.$ac_ext >&5
18667
18668( exit $ac_status )
18669{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18670See \`config.log' for more details." >&5
18671echo "$as_me: error: cannot compute sizeof (long long), 77
18672See \`config.log' for more details." >&2;}
18673 { (exit 1); exit 1; }; }
18674fi
ac1cb8d3 18675rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18676fi
18677fi
18678rm -f conftest.val
18679else
18680 ac_cv_sizeof_long_long=0
18681fi
18682fi
18683echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18684echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18685cat >>confdefs.h <<_ACEOF
18686#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18687_ACEOF
18688
18689
18690 ;;
18691 *-hp-hpux* )
18692 echo "$as_me:$LINENO: checking for long long" >&5
18693echo $ECHO_N "checking for long long... $ECHO_C" >&6
18694if test "${ac_cv_type_long_long+set}" = set; then
18695 echo $ECHO_N "(cached) $ECHO_C" >&6
18696else
18697 cat >conftest.$ac_ext <<_ACEOF
18698/* confdefs.h. */
18699_ACEOF
18700cat confdefs.h >>conftest.$ac_ext
18701cat >>conftest.$ac_ext <<_ACEOF
18702/* end confdefs.h. */
18703$ac_includes_default
18704int
18705main ()
18706{
18707if ((long long *) 0)
18708 return 0;
18709if (sizeof (long long))
18710 return 0;
18711 ;
18712 return 0;
18713}
18714_ACEOF
18715rm -f conftest.$ac_objext
18716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18717 (eval $ac_compile) 2>conftest.er1
a848cd7e 18718 ac_status=$?
ac1cb8d3
VS
18719 grep -v '^ *+' conftest.er1 >conftest.err
18720 rm -f conftest.er1
18721 cat conftest.err >&5
a848cd7e
SC
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } &&
6ebeb4c7 18724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; } &&
18730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18736 ac_cv_type_long_long=yes
18737else
18738 echo "$as_me: failed program was:" >&5
18739sed 's/^/| /' conftest.$ac_ext >&5
18740
18741ac_cv_type_long_long=no
18742fi
ac1cb8d3 18743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18744fi
18745echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18746echo "${ECHO_T}$ac_cv_type_long_long" >&6
18747
18748echo "$as_me:$LINENO: checking size of long long" >&5
18749echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18750if test "${ac_cv_sizeof_long_long+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18752else
18753 if test "$ac_cv_type_long_long" = yes; then
18754 # The cast to unsigned long works around a bug in the HP C Compiler
18755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18757 # This bug is HP SR number 8606223364.
18758 if test "$cross_compiling" = yes; then
18759 # Depending upon the size, compute the lo and hi bounds.
18760cat >conftest.$ac_ext <<_ACEOF
18761/* confdefs.h. */
18762_ACEOF
18763cat confdefs.h >>conftest.$ac_ext
18764cat >>conftest.$ac_ext <<_ACEOF
18765/* end confdefs.h. */
18766$ac_includes_default
18767int
18768main ()
18769{
18770static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18771test_array [0] = 0
18772
18773 ;
18774 return 0;
18775}
18776_ACEOF
18777rm -f conftest.$ac_objext
18778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18779 (eval $ac_compile) 2>conftest.er1
a848cd7e 18780 ac_status=$?
ac1cb8d3
VS
18781 grep -v '^ *+' conftest.er1 >conftest.err
18782 rm -f conftest.er1
18783 cat conftest.err >&5
a848cd7e
SC
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } &&
6ebeb4c7 18786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18788 (eval $ac_try) 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; } &&
18792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; }; then
18798 ac_lo=0 ac_mid=0
18799 while :; do
18800 cat >conftest.$ac_ext <<_ACEOF
18801/* confdefs.h. */
18802_ACEOF
18803cat confdefs.h >>conftest.$ac_ext
18804cat >>conftest.$ac_ext <<_ACEOF
18805/* end confdefs.h. */
18806$ac_includes_default
18807int
18808main ()
18809{
18810static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18811test_array [0] = 0
18812
18813 ;
18814 return 0;
18815}
18816_ACEOF
18817rm -f conftest.$ac_objext
18818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18819 (eval $ac_compile) 2>conftest.er1
a848cd7e 18820 ac_status=$?
ac1cb8d3
VS
18821 grep -v '^ *+' conftest.er1 >conftest.err
18822 rm -f conftest.er1
18823 cat conftest.err >&5
a848cd7e
SC
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } &&
6ebeb4c7 18826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 ac_hi=$ac_mid; break
18839else
18840 echo "$as_me: failed program was:" >&5
18841sed 's/^/| /' conftest.$ac_ext >&5
18842
18843ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18844 if test $ac_lo -le $ac_mid; then
18845 ac_lo= ac_hi=
18846 break
18847 fi
18848 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18849fi
ac1cb8d3 18850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18851 done
18852else
18853 echo "$as_me: failed program was:" >&5
18854sed 's/^/| /' conftest.$ac_ext >&5
18855
18856cat >conftest.$ac_ext <<_ACEOF
18857/* confdefs.h. */
18858_ACEOF
18859cat confdefs.h >>conftest.$ac_ext
18860cat >>conftest.$ac_ext <<_ACEOF
18861/* end confdefs.h. */
18862$ac_includes_default
18863int
18864main ()
18865{
18866static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18867test_array [0] = 0
18868
18869 ;
18870 return 0;
18871}
18872_ACEOF
18873rm -f conftest.$ac_objext
18874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18875 (eval $ac_compile) 2>conftest.er1
a848cd7e 18876 ac_status=$?
ac1cb8d3
VS
18877 grep -v '^ *+' conftest.er1 >conftest.err
18878 rm -f conftest.er1
18879 cat conftest.err >&5
a848cd7e
SC
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
6ebeb4c7 18882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_hi=-1 ac_mid=-1
18895 while :; do
18896 cat >conftest.$ac_ext <<_ACEOF
18897/* confdefs.h. */
18898_ACEOF
18899cat confdefs.h >>conftest.$ac_ext
18900cat >>conftest.$ac_ext <<_ACEOF
18901/* end confdefs.h. */
18902$ac_includes_default
18903int
18904main ()
18905{
18906static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18907test_array [0] = 0
18908
18909 ;
18910 return 0;
18911}
18912_ACEOF
18913rm -f conftest.$ac_objext
18914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18915 (eval $ac_compile) 2>conftest.er1
a848cd7e 18916 ac_status=$?
ac1cb8d3
VS
18917 grep -v '^ *+' conftest.er1 >conftest.err
18918 rm -f conftest.er1
18919 cat conftest.err >&5
a848cd7e
SC
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
6ebeb4c7 18922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; } &&
18928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 ac_lo=$ac_mid; break
18935else
18936 echo "$as_me: failed program was:" >&5
18937sed 's/^/| /' conftest.$ac_ext >&5
18938
18939ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18940 if test $ac_mid -le $ac_hi; then
18941 ac_lo= ac_hi=
18942 break
18943 fi
18944 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18945fi
ac1cb8d3 18946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18947 done
18948else
18949 echo "$as_me: failed program was:" >&5
18950sed 's/^/| /' conftest.$ac_ext >&5
18951
18952ac_lo= ac_hi=
18953fi
ac1cb8d3 18954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18955fi
ac1cb8d3 18956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18957# Binary search between lo and hi bounds.
18958while test "x$ac_lo" != "x$ac_hi"; do
18959 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18960 cat >conftest.$ac_ext <<_ACEOF
18961/* confdefs.h. */
18962_ACEOF
18963cat confdefs.h >>conftest.$ac_ext
18964cat >>conftest.$ac_ext <<_ACEOF
18965/* end confdefs.h. */
18966$ac_includes_default
18967int
18968main ()
18969{
18970static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18971test_array [0] = 0
18972
18973 ;
18974 return 0;
18975}
18976_ACEOF
18977rm -f conftest.$ac_objext
18978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18979 (eval $ac_compile) 2>conftest.er1
a848cd7e 18980 ac_status=$?
ac1cb8d3
VS
18981 grep -v '^ *+' conftest.er1 >conftest.err
18982 rm -f conftest.er1
18983 cat conftest.err >&5
a848cd7e
SC
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } &&
6ebeb4c7 18986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18992 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
18998 ac_hi=$ac_mid
18999else
19000 echo "$as_me: failed program was:" >&5
19001sed 's/^/| /' conftest.$ac_ext >&5
19002
19003ac_lo=`expr '(' $ac_mid ')' + 1`
19004fi
ac1cb8d3 19005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19006done
19007case $ac_lo in
19008?*) ac_cv_sizeof_long_long=$ac_lo;;
19009'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19010See \`config.log' for more details." >&5
19011echo "$as_me: error: cannot compute sizeof (long long), 77
19012See \`config.log' for more details." >&2;}
19013 { (exit 1); exit 1; }; } ;;
19014esac
19015else
19016 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19017 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19018echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19019 { (exit 1); exit 1; }; }
19020else
19021 cat >conftest.$ac_ext <<_ACEOF
19022/* confdefs.h. */
19023_ACEOF
19024cat confdefs.h >>conftest.$ac_ext
19025cat >>conftest.$ac_ext <<_ACEOF
19026/* end confdefs.h. */
19027$ac_includes_default
19028long longval () { return (long) (sizeof (long long)); }
19029unsigned long ulongval () { return (long) (sizeof (long long)); }
19030#include <stdio.h>
19031#include <stdlib.h>
19032int
19033main ()
19034{
19035
19036 FILE *f = fopen ("conftest.val", "w");
19037 if (! f)
19038 exit (1);
19039 if (((long) (sizeof (long long))) < 0)
19040 {
19041 long i = longval ();
19042 if (i != ((long) (sizeof (long long))))
19043 exit (1);
19044 fprintf (f, "%ld\n", i);
19045 }
19046 else
19047 {
19048 unsigned long i = ulongval ();
19049 if (i != ((long) (sizeof (long long))))
19050 exit (1);
19051 fprintf (f, "%lu\n", i);
19052 }
19053 exit (ferror (f) || fclose (f) != 0);
19054
19055 ;
19056 return 0;
19057}
19058_ACEOF
19059rm -f conftest$ac_exeext
19060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19061 (eval $ac_link) 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; }; then
19070 ac_cv_sizeof_long_long=`cat conftest.val`
19071else
19072 echo "$as_me: program exited with status $ac_status" >&5
19073echo "$as_me: failed program was:" >&5
19074sed 's/^/| /' conftest.$ac_ext >&5
19075
19076( exit $ac_status )
19077{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19078See \`config.log' for more details." >&5
19079echo "$as_me: error: cannot compute sizeof (long long), 77
19080See \`config.log' for more details." >&2;}
19081 { (exit 1); exit 1; }; }
19082fi
ac1cb8d3 19083rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19084fi
19085fi
19086rm -f conftest.val
19087else
19088 ac_cv_sizeof_long_long=0
19089fi
19090fi
19091echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19092echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19093cat >>confdefs.h <<_ACEOF
19094#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19095_ACEOF
19096
19097
19098 if test "$ac_cv_sizeof_long_long" != "0"; then
19099 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19100 fi
19101 ;;
19102 * )
19103 echo "$as_me:$LINENO: checking for long long" >&5
19104echo $ECHO_N "checking for long long... $ECHO_C" >&6
19105if test "${ac_cv_type_long_long+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19107else
19108 cat >conftest.$ac_ext <<_ACEOF
19109/* confdefs.h. */
19110_ACEOF
19111cat confdefs.h >>conftest.$ac_ext
19112cat >>conftest.$ac_ext <<_ACEOF
19113/* end confdefs.h. */
19114$ac_includes_default
19115int
19116main ()
19117{
19118if ((long long *) 0)
19119 return 0;
19120if (sizeof (long long))
19121 return 0;
19122 ;
19123 return 0;
19124}
19125_ACEOF
19126rm -f conftest.$ac_objext
19127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19128 (eval $ac_compile) 2>conftest.er1
a848cd7e 19129 ac_status=$?
ac1cb8d3
VS
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
a848cd7e
SC
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
6ebeb4c7 19135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; } &&
19141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
19147 ac_cv_type_long_long=yes
19148else
19149 echo "$as_me: failed program was:" >&5
19150sed 's/^/| /' conftest.$ac_ext >&5
19151
19152ac_cv_type_long_long=no
19153fi
ac1cb8d3 19154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19155fi
19156echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19157echo "${ECHO_T}$ac_cv_type_long_long" >&6
19158
19159echo "$as_me:$LINENO: checking size of long long" >&5
19160echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19161if test "${ac_cv_sizeof_long_long+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19163else
19164 if test "$ac_cv_type_long_long" = yes; then
19165 # The cast to unsigned long works around a bug in the HP C Compiler
19166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19168 # This bug is HP SR number 8606223364.
19169 if test "$cross_compiling" = yes; then
19170 # Depending upon the size, compute the lo and hi bounds.
19171cat >conftest.$ac_ext <<_ACEOF
19172/* confdefs.h. */
19173_ACEOF
19174cat confdefs.h >>conftest.$ac_ext
19175cat >>conftest.$ac_ext <<_ACEOF
19176/* end confdefs.h. */
19177$ac_includes_default
19178int
19179main ()
19180{
19181static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19182test_array [0] = 0
19183
19184 ;
19185 return 0;
19186}
19187_ACEOF
19188rm -f conftest.$ac_objext
19189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19190 (eval $ac_compile) 2>conftest.er1
a848cd7e 19191 ac_status=$?
ac1cb8d3
VS
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
a848cd7e
SC
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
6ebeb4c7 19197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 ac_lo=0 ac_mid=0
19210 while :; do
19211 cat >conftest.$ac_ext <<_ACEOF
19212/* confdefs.h. */
19213_ACEOF
19214cat confdefs.h >>conftest.$ac_ext
19215cat >>conftest.$ac_ext <<_ACEOF
19216/* end confdefs.h. */
19217$ac_includes_default
19218int
19219main ()
19220{
19221static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19222test_array [0] = 0
19223
19224 ;
19225 return 0;
19226}
19227_ACEOF
19228rm -f conftest.$ac_objext
19229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19230 (eval $ac_compile) 2>conftest.er1
a848cd7e 19231 ac_status=$?
ac1cb8d3
VS
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
a848cd7e
SC
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
6ebeb4c7 19237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_hi=$ac_mid; break
19250else
19251 echo "$as_me: failed program was:" >&5
19252sed 's/^/| /' conftest.$ac_ext >&5
19253
19254ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19255 if test $ac_lo -le $ac_mid; then
19256 ac_lo= ac_hi=
19257 break
19258 fi
19259 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19260fi
ac1cb8d3 19261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19262 done
19263else
19264 echo "$as_me: failed program was:" >&5
19265sed 's/^/| /' conftest.$ac_ext >&5
19266
19267cat >conftest.$ac_ext <<_ACEOF
19268/* confdefs.h. */
19269_ACEOF
19270cat confdefs.h >>conftest.$ac_ext
19271cat >>conftest.$ac_ext <<_ACEOF
19272/* end confdefs.h. */
19273$ac_includes_default
19274int
19275main ()
19276{
19277static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19278test_array [0] = 0
19279
19280 ;
19281 return 0;
19282}
19283_ACEOF
19284rm -f conftest.$ac_objext
19285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19286 (eval $ac_compile) 2>conftest.er1
a848cd7e 19287 ac_status=$?
ac1cb8d3
VS
19288 grep -v '^ *+' conftest.er1 >conftest.err
19289 rm -f conftest.er1
19290 cat conftest.err >&5
a848cd7e
SC
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
6ebeb4c7 19293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19296 ac_status=$?
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; } &&
19299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; }; then
19305 ac_hi=-1 ac_mid=-1
19306 while :; do
19307 cat >conftest.$ac_ext <<_ACEOF
19308/* confdefs.h. */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
19312/* end confdefs.h. */
19313$ac_includes_default
19314int
19315main ()
19316{
19317static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19318test_array [0] = 0
19319
19320 ;
19321 return 0;
19322}
19323_ACEOF
19324rm -f conftest.$ac_objext
19325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19326 (eval $ac_compile) 2>conftest.er1
a848cd7e 19327 ac_status=$?
ac1cb8d3
VS
19328 grep -v '^ *+' conftest.er1 >conftest.err
19329 rm -f conftest.er1
19330 cat conftest.err >&5
a848cd7e
SC
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
6ebeb4c7 19333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19345 ac_lo=$ac_mid; break
19346else
19347 echo "$as_me: failed program was:" >&5
19348sed 's/^/| /' conftest.$ac_ext >&5
19349
19350ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19351 if test $ac_mid -le $ac_hi; then
19352 ac_lo= ac_hi=
19353 break
19354 fi
19355 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19356fi
ac1cb8d3 19357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19358 done
19359else
19360 echo "$as_me: failed program was:" >&5
19361sed 's/^/| /' conftest.$ac_ext >&5
19362
19363ac_lo= ac_hi=
19364fi
ac1cb8d3 19365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19366fi
ac1cb8d3 19367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19368# Binary search between lo and hi bounds.
19369while test "x$ac_lo" != "x$ac_hi"; do
19370 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19371 cat >conftest.$ac_ext <<_ACEOF
19372/* confdefs.h. */
19373_ACEOF
19374cat confdefs.h >>conftest.$ac_ext
19375cat >>conftest.$ac_ext <<_ACEOF
19376/* end confdefs.h. */
19377$ac_includes_default
19378int
19379main ()
19380{
19381static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19382test_array [0] = 0
19383
19384 ;
19385 return 0;
19386}
19387_ACEOF
19388rm -f conftest.$ac_objext
19389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19390 (eval $ac_compile) 2>conftest.er1
a848cd7e 19391 ac_status=$?
ac1cb8d3
VS
19392 grep -v '^ *+' conftest.er1 >conftest.err
19393 rm -f conftest.er1
19394 cat conftest.err >&5
a848cd7e
SC
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); } &&
6ebeb4c7 19397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } &&
19403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 ac_hi=$ac_mid
19410else
19411 echo "$as_me: failed program was:" >&5
19412sed 's/^/| /' conftest.$ac_ext >&5
19413
19414ac_lo=`expr '(' $ac_mid ')' + 1`
19415fi
ac1cb8d3 19416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19417done
19418case $ac_lo in
19419?*) ac_cv_sizeof_long_long=$ac_lo;;
19420'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19421See \`config.log' for more details." >&5
19422echo "$as_me: error: cannot compute sizeof (long long), 77
19423See \`config.log' for more details." >&2;}
19424 { (exit 1); exit 1; }; } ;;
19425esac
19426else
19427 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19428 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19429echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19430 { (exit 1); exit 1; }; }
19431else
19432 cat >conftest.$ac_ext <<_ACEOF
19433/* confdefs.h. */
19434_ACEOF
19435cat confdefs.h >>conftest.$ac_ext
19436cat >>conftest.$ac_ext <<_ACEOF
19437/* end confdefs.h. */
19438$ac_includes_default
19439long longval () { return (long) (sizeof (long long)); }
19440unsigned long ulongval () { return (long) (sizeof (long long)); }
19441#include <stdio.h>
19442#include <stdlib.h>
19443int
19444main ()
19445{
19446
19447 FILE *f = fopen ("conftest.val", "w");
19448 if (! f)
19449 exit (1);
19450 if (((long) (sizeof (long long))) < 0)
19451 {
19452 long i = longval ();
19453 if (i != ((long) (sizeof (long long))))
19454 exit (1);
19455 fprintf (f, "%ld\n", i);
19456 }
19457 else
19458 {
19459 unsigned long i = ulongval ();
19460 if (i != ((long) (sizeof (long long))))
19461 exit (1);
19462 fprintf (f, "%lu\n", i);
19463 }
19464 exit (ferror (f) || fclose (f) != 0);
19465
19466 ;
19467 return 0;
19468}
19469_ACEOF
19470rm -f conftest$ac_exeext
19471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472 (eval $ac_link) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_sizeof_long_long=`cat conftest.val`
19482else
19483 echo "$as_me: program exited with status $ac_status" >&5
19484echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487( exit $ac_status )
19488{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19489See \`config.log' for more details." >&5
19490echo "$as_me: error: cannot compute sizeof (long long), 77
19491See \`config.log' for more details." >&2;}
19492 { (exit 1); exit 1; }; }
19493fi
ac1cb8d3 19494rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19495fi
19496fi
19497rm -f conftest.val
19498else
19499 ac_cv_sizeof_long_long=0
19500fi
19501fi
19502echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19503echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19504cat >>confdefs.h <<_ACEOF
19505#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19506_ACEOF
19507
19508
19509esac
19510
238ecede
MW
19511echo "$as_me:$LINENO: checking for wchar_t" >&5
19512echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19513if test "${ac_cv_type_wchar_t+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19515else
19516 cat >conftest.$ac_ext <<_ACEOF
19517/* confdefs.h. */
19518_ACEOF
19519cat confdefs.h >>conftest.$ac_ext
19520cat >>conftest.$ac_ext <<_ACEOF
19521/* end confdefs.h. */
19522
83d8eb47
MW
19523 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19524 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19525 # error "fake wchar_t"
19526 #endif
19527 #ifdef HAVE_WCHAR_H
19528 # ifdef __CYGWIN__
19529 # include <stddef.h>
19530 # endif
19531 # include <wchar.h>
19532 #endif
19533 #ifdef HAVE_STDLIB_H
19534 # include <stdlib.h>
19535 #endif
19536 #include <stdio.h>
19537
19538
19539
19540int
19541main ()
19542{
19543if ((wchar_t *) 0)
19544 return 0;
19545if (sizeof (wchar_t))
19546 return 0;
19547 ;
19548 return 0;
19549}
19550_ACEOF
19551rm -f conftest.$ac_objext
19552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19553 (eval $ac_compile) 2>conftest.er1
19554 ac_status=$?
19555 grep -v '^ *+' conftest.er1 >conftest.err
19556 rm -f conftest.er1
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } &&
6ebeb4c7 19560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19562 (eval $ac_try) 2>&5
19563 ac_status=$?
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; } &&
19566 { ac_try='test -s conftest.$ac_objext'
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; }; then
19572 ac_cv_type_wchar_t=yes
19573else
19574 echo "$as_me: failed program was:" >&5
19575sed 's/^/| /' conftest.$ac_ext >&5
19576
19577ac_cv_type_wchar_t=no
19578fi
19579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19580fi
19581echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19582echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19583
a848cd7e
SC
19584echo "$as_me:$LINENO: checking size of wchar_t" >&5
19585echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19586if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
19588else
238ecede
MW
19589 if test "$ac_cv_type_wchar_t" = yes; then
19590 # The cast to unsigned long works around a bug in the HP C Compiler
19591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19593 # This bug is HP SR number 8606223364.
19594 if test "$cross_compiling" = yes; then
19595 # Depending upon the size, compute the lo and hi bounds.
19596cat >conftest.$ac_ext <<_ACEOF
19597/* confdefs.h. */
19598_ACEOF
19599cat confdefs.h >>conftest.$ac_ext
19600cat >>conftest.$ac_ext <<_ACEOF
19601/* end confdefs.h. */
19602
83d8eb47
MW
19603 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19604 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19605 # error "fake wchar_t"
19606 #endif
19607 #ifdef HAVE_WCHAR_H
19608 # ifdef __CYGWIN__
19609 # include <stddef.h>
19610 # endif
19611 # include <wchar.h>
19612 #endif
19613 #ifdef HAVE_STDLIB_H
19614 # include <stdlib.h>
19615 #endif
19616 #include <stdio.h>
19617
19618
19619
19620int
19621main ()
19622{
19623static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19624test_array [0] = 0
19625
19626 ;
19627 return 0;
19628}
19629_ACEOF
19630rm -f conftest.$ac_objext
19631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632 (eval $ac_compile) 2>conftest.er1
19633 ac_status=$?
19634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
6ebeb4c7 19639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest.$ac_objext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_lo=0 ac_mid=0
19652 while :; do
19653 cat >conftest.$ac_ext <<_ACEOF
19654/* confdefs.h. */
19655_ACEOF
19656cat confdefs.h >>conftest.$ac_ext
19657cat >>conftest.$ac_ext <<_ACEOF
19658/* end confdefs.h. */
19659
83d8eb47
MW
19660 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19661 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19662 # error "fake wchar_t"
19663 #endif
19664 #ifdef HAVE_WCHAR_H
19665 # ifdef __CYGWIN__
19666 # include <stddef.h>
19667 # endif
19668 # include <wchar.h>
19669 #endif
19670 #ifdef HAVE_STDLIB_H
19671 # include <stdlib.h>
19672 #endif
19673 #include <stdio.h>
19674
19675
19676
19677int
19678main ()
19679{
19680static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19681test_array [0] = 0
19682
19683 ;
19684 return 0;
19685}
19686_ACEOF
19687rm -f conftest.$ac_objext
19688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19689 (eval $ac_compile) 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
6ebeb4c7 19696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; } &&
19702 { ac_try='test -s conftest.$ac_objext'
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
19708 ac_hi=$ac_mid; break
19709else
19710 echo "$as_me: failed program was:" >&5
19711sed 's/^/| /' conftest.$ac_ext >&5
19712
19713ac_lo=`expr $ac_mid + 1`
19714 if test $ac_lo -le $ac_mid; then
19715 ac_lo= ac_hi=
19716 break
19717 fi
19718 ac_mid=`expr 2 '*' $ac_mid + 1`
19719fi
19720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19721 done
19722else
19723 echo "$as_me: failed program was:" >&5
19724sed 's/^/| /' conftest.$ac_ext >&5
19725
19726cat >conftest.$ac_ext <<_ACEOF
19727/* confdefs.h. */
19728_ACEOF
19729cat confdefs.h >>conftest.$ac_ext
19730cat >>conftest.$ac_ext <<_ACEOF
19731/* end confdefs.h. */
19732
83d8eb47
MW
19733 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19734 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19735 # error "fake wchar_t"
19736 #endif
19737 #ifdef HAVE_WCHAR_H
19738 # ifdef __CYGWIN__
19739 # include <stddef.h>
19740 # endif
19741 # include <wchar.h>
19742 #endif
19743 #ifdef HAVE_STDLIB_H
19744 # include <stdlib.h>
19745 #endif
19746 #include <stdio.h>
19747
19748
19749
19750int
19751main ()
19752{
19753static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19754test_array [0] = 0
19755
19756 ;
19757 return 0;
19758}
19759_ACEOF
19760rm -f conftest.$ac_objext
19761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19762 (eval $ac_compile) 2>conftest.er1
19763 ac_status=$?
19764 grep -v '^ *+' conftest.er1 >conftest.err
19765 rm -f conftest.er1
19766 cat conftest.err >&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } &&
6ebeb4c7 19769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest.$ac_objext'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 ac_hi=-1 ac_mid=-1
19782 while :; do
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
83d8eb47
MW
19790 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19791 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19792 # error "fake wchar_t"
19793 #endif
19794 #ifdef HAVE_WCHAR_H
19795 # ifdef __CYGWIN__
19796 # include <stddef.h>
19797 # endif
19798 # include <wchar.h>
19799 #endif
19800 #ifdef HAVE_STDLIB_H
19801 # include <stdlib.h>
19802 #endif
19803 #include <stdio.h>
19804
19805
19806
19807int
19808main ()
19809{
19810static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19811test_array [0] = 0
19812
19813 ;
19814 return 0;
19815}
19816_ACEOF
19817rm -f conftest.$ac_objext
19818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19819 (eval $ac_compile) 2>conftest.er1
19820 ac_status=$?
19821 grep -v '^ *+' conftest.er1 >conftest.err
19822 rm -f conftest.er1
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } &&
6ebeb4c7 19826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest.$ac_objext'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; }; then
19838 ac_lo=$ac_mid; break
19839else
19840 echo "$as_me: failed program was:" >&5
19841sed 's/^/| /' conftest.$ac_ext >&5
19842
19843ac_hi=`expr '(' $ac_mid ')' - 1`
19844 if test $ac_mid -le $ac_hi; then
19845 ac_lo= ac_hi=
19846 break
19847 fi
19848 ac_mid=`expr 2 '*' $ac_mid`
19849fi
19850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19851 done
19852else
19853 echo "$as_me: failed program was:" >&5
19854sed 's/^/| /' conftest.$ac_ext >&5
19855
19856ac_lo= ac_hi=
19857fi
19858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19859fi
19860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19861# Binary search between lo and hi bounds.
19862while test "x$ac_lo" != "x$ac_hi"; do
19863 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19864 cat >conftest.$ac_ext <<_ACEOF
19865/* confdefs.h. */
19866_ACEOF
19867cat confdefs.h >>conftest.$ac_ext
19868cat >>conftest.$ac_ext <<_ACEOF
19869/* end confdefs.h. */
19870
83d8eb47
MW
19871 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19872 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19873 # error "fake wchar_t"
19874 #endif
19875 #ifdef HAVE_WCHAR_H
19876 # ifdef __CYGWIN__
19877 # include <stddef.h>
19878 # endif
19879 # include <wchar.h>
19880 #endif
19881 #ifdef HAVE_STDLIB_H
19882 # include <stdlib.h>
19883 #endif
19884 #include <stdio.h>
a848cd7e 19885
a848cd7e 19886
a848cd7e 19887
238ecede
MW
19888int
19889main ()
19890{
19891static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19892test_array [0] = 0
a848cd7e 19893
238ecede
MW
19894 ;
19895 return 0;
19896}
19897_ACEOF
19898rm -f conftest.$ac_objext
19899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19900 (eval $ac_compile) 2>conftest.er1
19901 ac_status=$?
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
6ebeb4c7 19907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; } &&
19913 { ac_try='test -s conftest.$ac_objext'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19919 ac_hi=$ac_mid
19920else
19921 echo "$as_me: failed program was:" >&5
19922sed 's/^/| /' conftest.$ac_ext >&5
19923
19924ac_lo=`expr '(' $ac_mid ')' + 1`
19925fi
19926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19927done
19928case $ac_lo in
19929?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19930'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19931See \`config.log' for more details." >&5
19932echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19933See \`config.log' for more details." >&2;}
19934 { (exit 1); exit 1; }; } ;;
19935esac
19936else
19937 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19938 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19939echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19940 { (exit 1); exit 1; }; }
a848cd7e
SC
19941else
19942 cat >conftest.$ac_ext <<_ACEOF
19943/* confdefs.h. */
19944_ACEOF
19945cat confdefs.h >>conftest.$ac_ext
19946cat >>conftest.$ac_ext <<_ACEOF
19947/* end confdefs.h. */
19948
83d8eb47
MW
19949 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19950 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19951 # error "fake wchar_t"
19952 #endif
19953 #ifdef HAVE_WCHAR_H
19954 # ifdef __CYGWIN__
19955 # include <stddef.h>
19956 # endif
19957 # include <wchar.h>
19958 #endif
19959 #ifdef HAVE_STDLIB_H
19960 # include <stdlib.h>
19961 #endif
19962 #include <stdio.h>
19963
19964
19965
19966long longval () { return (long) (sizeof (wchar_t)); }
19967unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19968#include <stdio.h>
19969#include <stdlib.h>
19970int
19971main ()
19972{
a848cd7e 19973
238ecede
MW
19974 FILE *f = fopen ("conftest.val", "w");
19975 if (! f)
19976 exit (1);
19977 if (((long) (sizeof (wchar_t))) < 0)
19978 {
19979 long i = longval ();
19980 if (i != ((long) (sizeof (wchar_t))))
19981 exit (1);
19982 fprintf (f, "%ld\n", i);
19983 }
19984 else
19985 {
19986 unsigned long i = ulongval ();
19987 if (i != ((long) (sizeof (wchar_t))))
19988 exit (1);
19989 fprintf (f, "%lu\n", i);
19990 }
19991 exit (ferror (f) || fclose (f) != 0);
19992
19993 ;
19994 return 0;
19995}
a848cd7e
SC
19996_ACEOF
19997rm -f conftest$ac_exeext
19998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19999 (eval $ac_link) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; }; then
238ecede 20008 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20009else
20010 echo "$as_me: program exited with status $ac_status" >&5
20011echo "$as_me: failed program was:" >&5
20012sed 's/^/| /' conftest.$ac_ext >&5
20013
20014( exit $ac_status )
238ecede
MW
20015{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20016See \`config.log' for more details." >&5
20017echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20018See \`config.log' for more details." >&2;}
20019 { (exit 1); exit 1; }; }
a848cd7e 20020fi
ac1cb8d3 20021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20022fi
a848cd7e 20023fi
238ecede
MW
20024rm -f conftest.val
20025else
20026 ac_cv_sizeof_wchar_t=0
20027fi
20028fi
20029echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20030echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20031cat >>confdefs.h <<_ACEOF
238ecede 20032#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20033_ACEOF
20034
20035
47a7e797
MW
20036if test "$ac_cv_sizeof_wchar_t" != "0"; then
20037 wxUSE_WCHAR_T=yes
20038else
20039 wxUSE_WCHAR_T=no
20040fi
238ecede 20041
ba3d13e1
VZ
20042echo "$as_me:$LINENO: checking for va_copy" >&5
20043echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20044if test "${wx_cv_func_va_copy+set}" = set; then
20045 echo $ECHO_N "(cached) $ECHO_C" >&6
20046else
20047
20048 cat >conftest.$ac_ext <<_ACEOF
20049
20050 #include <stdarg.h>
20051 void foo(char *f, ...)
20052 {
20053 va_list ap1, ap2;
20054 va_start(ap1, f);
20055 va_copy(ap2, ap1);
20056 va_end(ap2);
20057 va_end(ap1);
20058 }
5886b072
VZ
20059 int main()
20060 {
b902e639
VZ
20061 foo("hi", 17);
20062 return 0;
5886b072 20063 }
ba3d13e1
VZ
20064_ACEOF
20065rm -f conftest.$ac_objext conftest$ac_exeext
20066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20067 (eval $ac_link) 2>conftest.er1
20068 ac_status=$?
20069 grep -v '^ *+' conftest.er1 >conftest.err
20070 rm -f conftest.er1
20071 cat conftest.err >&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } &&
6ebeb4c7 20074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
20075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20076 (eval $ac_try) 2>&5
20077 ac_status=$?
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; } &&
20080 { ac_try='test -s conftest$ac_exeext'
20081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20082 (eval $ac_try) 2>&5
20083 ac_status=$?
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); }; }; then
20086 wx_cv_func_va_copy=yes
20087else
20088 echo "$as_me: failed program was:" >&5
20089sed 's/^/| /' conftest.$ac_ext >&5
20090
20091wx_cv_func_va_copy=no
20092
20093fi
20094rm -f conftest.err conftest.$ac_objext \
20095 conftest$ac_exeext conftest.$ac_ext
20096
20097
20098fi
20099echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20100echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20101
20102if test $wx_cv_func_va_copy = "yes"; then
20103 cat >>confdefs.h <<\_ACEOF
20104#define HAVE_VA_COPY 1
20105_ACEOF
20106
20107else
20108 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20109echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20110if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20112else
20113
20114 if test "$cross_compiling" = yes; then
20115 wx_cv_type_va_list_lvalue=yes
20116
20117else
20118 cat >conftest.$ac_ext <<_ACEOF
20119
20120 #include <stdarg.h>
20121 int foo(char *f, ...)
20122 {
20123 va_list ap1, ap2;
20124 va_start(ap1, f);
20125 ap2 = ap1;
20126 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20127 return 1;
20128 va_end(ap2);
20129 va_end(ap1);
20130 return 0;
20131 }
20132 int main()
20133 {
20134 return foo("hi", 17);
20135 }
20136_ACEOF
20137rm -f conftest$ac_exeext
20138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20139 (eval $ac_link) 2>&5
20140 ac_status=$?
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 wx_cv_type_va_list_lvalue=yes
20149else
20150 echo "$as_me: program exited with status $ac_status" >&5
20151echo "$as_me: failed program was:" >&5
20152sed 's/^/| /' conftest.$ac_ext >&5
20153
20154( exit $ac_status )
20155wx_cv_type_va_list_lvalue=no
20156fi
20157rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20158fi
20159
20160
20161fi
20162echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20163echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20164
20165 if test $wx_cv_type_va_list_lvalue != "yes"; then
20166 cat >>confdefs.h <<\_ACEOF
20167#define VA_LIST_IS_ARRAY 1
20168_ACEOF
20169
20170 fi
20171fi
20172
a848cd7e
SC
20173# Check whether --enable-largefile or --disable-largefile was given.
20174if test "${enable_largefile+set}" = set; then
20175 enableval="$enable_largefile"
20176
20177fi;
20178if test "$enable_largefile" != no; then
20179 wx_largefile=no
20180
20181 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20182echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20183if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20185else
20186
20187 cat >conftest.$ac_ext <<_ACEOF
20188/* confdefs.h. */
20189_ACEOF
20190cat confdefs.h >>conftest.$ac_ext
20191cat >>conftest.$ac_ext <<_ACEOF
20192/* end confdefs.h. */
20193#define _FILE_OFFSET_BITS 64
20194 #include <sys/types.h>
20195int
20196main ()
20197{
20198typedef struct {
20199 unsigned int field: sizeof(off_t) == 8;
20200} wxlf;
20201
20202 ;
20203 return 0;
20204}
20205_ACEOF
20206rm -f conftest.$ac_objext
20207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20208 (eval $ac_compile) 2>conftest.er1
a848cd7e 20209 ac_status=$?
ac1cb8d3
VS
20210 grep -v '^ *+' conftest.er1 >conftest.err
20211 rm -f conftest.er1
20212 cat conftest.err >&5
a848cd7e
SC
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } &&
6ebeb4c7 20215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217 (eval $ac_try) 2>&5
20218 ac_status=$?
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; } &&
20221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_sys_file_offset_bits=64
20228else
20229 echo "$as_me: failed program was:" >&5
20230sed 's/^/| /' conftest.$ac_ext >&5
20231
20232ac_cv_sys_file_offset_bits=no
20233fi
ac1cb8d3 20234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20235
20236
20237fi
20238echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20239echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20240
20241 if test "$ac_cv_sys_file_offset_bits" != no; then
20242 wx_largefile=yes
20243 cat >>confdefs.h <<_ACEOF
20244#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20245_ACEOF
20246
20247 fi
20248
20249 if test "x$wx_largefile" != "xyes"; then
20250
20251 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20252echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20253if test "${ac_cv_sys_large_files+set}" = set; then
20254 echo $ECHO_N "(cached) $ECHO_C" >&6
20255else
20256
20257 cat >conftest.$ac_ext <<_ACEOF
20258/* confdefs.h. */
20259_ACEOF
20260cat confdefs.h >>conftest.$ac_ext
20261cat >>conftest.$ac_ext <<_ACEOF
20262/* end confdefs.h. */
20263#define _LARGE_FILES 1
20264 #include <sys/types.h>
20265int
20266main ()
20267{
20268typedef struct {
20269 unsigned int field: sizeof(off_t) == 8;
20270} wxlf;
20271
20272 ;
20273 return 0;
20274}
20275_ACEOF
20276rm -f conftest.$ac_objext
20277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20278 (eval $ac_compile) 2>conftest.er1
a848cd7e 20279 ac_status=$?
ac1cb8d3
VS
20280 grep -v '^ *+' conftest.er1 >conftest.err
20281 rm -f conftest.er1
20282 cat conftest.err >&5
a848cd7e
SC
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } &&
6ebeb4c7 20285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_cv_sys_large_files=1
20298else
20299 echo "$as_me: failed program was:" >&5
20300sed 's/^/| /' conftest.$ac_ext >&5
20301
20302ac_cv_sys_large_files=no
20303fi
ac1cb8d3 20304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20305
20306
20307fi
20308echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20309echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20310
20311 if test "$ac_cv_sys_large_files" != no; then
20312 wx_largefile=yes
20313 cat >>confdefs.h <<_ACEOF
20314#define _LARGE_FILES $ac_cv_sys_large_files
20315_ACEOF
20316
20317 fi
20318
20319 fi
20320
20321 echo "$as_me:$LINENO: checking if large file support is available" >&5
20322echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20323 if test "x$wx_largefile" = "xyes"; then
20324 cat >>confdefs.h <<\_ACEOF
20325#define HAVE_LARGEFILE_SUPPORT 1
20326_ACEOF
20327
20328 fi
20329 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20330echo "${ECHO_T}$wx_largefile" >&6
20331fi
20332
5b674b9d
DE
20333
20334if test "x$wx_largefile" = "xyes"; then
20335 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20336 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
20337
20338 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
20339 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
20340echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
20341if test "${wx_cv_STDC_EXT_required+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20343else
20344
20345
20346
20347 ac_ext=cc
20348ac_cpp='$CXXCPP $CPPFLAGS'
20349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20352
20353 cat >conftest.$ac_ext <<_ACEOF
20354/* confdefs.h. */
20355_ACEOF
20356cat confdefs.h >>conftest.$ac_ext
20357cat >>conftest.$ac_ext <<_ACEOF
20358/* end confdefs.h. */
20359
20360int
20361main ()
20362{
20363
20364 #ifndef __STDC_EXT__
20365 choke me
20366 #endif
20367
20368 ;
20369 return 0;
20370}
20371_ACEOF
20372rm -f conftest.$ac_objext
20373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20374 (eval $ac_compile) 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } &&
20381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; } &&
20387 { ac_try='test -s conftest.$ac_objext'
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20390 ac_status=$?
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20393 wx_cv_STDC_EXT_required=no
20394else
20395 echo "$as_me: failed program was:" >&5
20396sed 's/^/| /' conftest.$ac_ext >&5
20397
20398wx_cv_STDC_EXT_required=yes
20399
20400fi
20401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20402 ac_ext=c
20403ac_cpp='$CPP $CPPFLAGS'
20404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20406ac_compiler_gnu=$ac_cv_c_compiler_gnu
20407
20408
20409
20410fi
20411echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
20412echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
20413 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
20414 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
20415 fi
20416 fi
5b674b9d
DE
20417 else
20418 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20419 fi
20420 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20421echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20422if test "${ac_cv_sys_largefile_source+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20424else
20425 while :; do
20426 ac_cv_sys_largefile_source=no
20427 cat >conftest.$ac_ext <<_ACEOF
20428/* confdefs.h. */
20429_ACEOF
20430cat confdefs.h >>conftest.$ac_ext
20431cat >>conftest.$ac_ext <<_ACEOF
20432/* end confdefs.h. */
20433#include <stdio.h>
20434int
20435main ()
20436{
20437return !fseeko;
20438 ;
20439 return 0;
20440}
20441_ACEOF
20442rm -f conftest.$ac_objext
20443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20444 (eval $ac_compile) 2>conftest.er1
20445 ac_status=$?
20446 grep -v '^ *+' conftest.er1 >conftest.err
20447 rm -f conftest.er1
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } &&
6ebeb4c7 20451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; } &&
20457 { ac_try='test -s conftest.$ac_objext'
20458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459 (eval $ac_try) 2>&5
20460 ac_status=$?
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); }; }; then
20463 break
20464else
20465 echo "$as_me: failed program was:" >&5
20466sed 's/^/| /' conftest.$ac_ext >&5
20467
20468fi
20469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20470 cat >conftest.$ac_ext <<_ACEOF
20471/* confdefs.h. */
20472_ACEOF
20473cat confdefs.h >>conftest.$ac_ext
20474cat >>conftest.$ac_ext <<_ACEOF
20475/* end confdefs.h. */
20476#define _LARGEFILE_SOURCE 1
20477#include <stdio.h>
20478int
20479main ()
20480{
20481return !fseeko;
20482 ;
20483 return 0;
20484}
20485_ACEOF
20486rm -f conftest.$ac_objext
20487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488 (eval $ac_compile) 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
6ebeb4c7 20495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_cv_sys_largefile_source=1; break
20508else
20509 echo "$as_me: failed program was:" >&5
20510sed 's/^/| /' conftest.$ac_ext >&5
20511
20512fi
20513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20514 break
20515done
20516fi
20517echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20518echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20519if test "$ac_cv_sys_largefile_source" != no; then
20520
20521cat >>confdefs.h <<_ACEOF
20522#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20523_ACEOF
20524
20525fi
20526rm -f conftest*
20527
20528# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20529# in glibc 2.1.3, but that breaks too many other things.
20530# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20531echo "$as_me:$LINENO: checking for fseeko" >&5
20532echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20533if test "${ac_cv_func_fseeko+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535else
20536 cat >conftest.$ac_ext <<_ACEOF
20537/* confdefs.h. */
20538_ACEOF
20539cat confdefs.h >>conftest.$ac_ext
20540cat >>conftest.$ac_ext <<_ACEOF
20541/* end confdefs.h. */
20542#include <stdio.h>
20543int
20544main ()
20545{
20546return fseeko && fseeko (stdin, 0, 0);
20547 ;
20548 return 0;
20549}
20550_ACEOF
20551rm -f conftest.$ac_objext conftest$ac_exeext
20552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20553 (eval $ac_link) 2>conftest.er1
20554 ac_status=$?
20555 grep -v '^ *+' conftest.er1 >conftest.err
20556 rm -f conftest.er1
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
6ebeb4c7 20560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; } &&
20566 { ac_try='test -s conftest$ac_exeext'
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_func_fseeko=yes
20573else
20574 echo "$as_me: failed program was:" >&5
20575sed 's/^/| /' conftest.$ac_ext >&5
20576
20577ac_cv_func_fseeko=no
20578fi
20579rm -f conftest.err conftest.$ac_objext \
20580 conftest$ac_exeext conftest.$ac_ext
20581fi
20582echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20583echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20584if test $ac_cv_func_fseeko = yes; then
20585
20586cat >>confdefs.h <<\_ACEOF
20587#define HAVE_FSEEKO 1
20588_ACEOF
20589
20590fi
20591
5b674b9d
DE
20592 if test "$ac_cv_sys_largefile_source" != no; then
20593 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20594 fi
20595 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20596fi
20597
20598echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20599echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20600if test "${ac_cv_c_bigendian+set}" = set; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
20602else
20603 ac_cv_c_bigendian=unknown
20604# See if sys/param.h defines the BYTE_ORDER macro.
20605cat >conftest.$ac_ext <<_ACEOF
20606/* confdefs.h. */
20607_ACEOF
20608cat confdefs.h >>conftest.$ac_ext
20609cat >>conftest.$ac_ext <<_ACEOF
20610/* end confdefs.h. */
20611#include <sys/types.h>
20612#include <sys/param.h>
20613int
20614main ()
20615{
20616
20617#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20618 bogus endian macros
20619#endif
20620 ;
20621 return 0;
20622}
20623_ACEOF
20624rm -f conftest.$ac_objext
20625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20626 (eval $ac_compile) 2>conftest.er1
a848cd7e 20627 ac_status=$?
ac1cb8d3
VS
20628 grep -v '^ *+' conftest.er1 >conftest.err
20629 rm -f conftest.er1
20630 cat conftest.err >&5
a848cd7e
SC
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
6ebeb4c7 20633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; } &&
20639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20641 (eval $ac_try) 2>&5
20642 ac_status=$?
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; }; then
20645 # It does; now see whether it defined to BIG_ENDIAN or not.
20646cat >conftest.$ac_ext <<_ACEOF
20647/* confdefs.h. */
20648_ACEOF
20649cat confdefs.h >>conftest.$ac_ext
20650cat >>conftest.$ac_ext <<_ACEOF
20651/* end confdefs.h. */
20652#include <sys/types.h>
20653#include <sys/param.h>
20654int
20655main ()
20656{
20657
20658#if BYTE_ORDER != BIG_ENDIAN
20659 not big endian
20660#endif
20661 ;
20662 return 0;
20663}
20664_ACEOF
20665rm -f conftest.$ac_objext
20666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20667 (eval $ac_compile) 2>conftest.er1
a848cd7e 20668 ac_status=$?
ac1cb8d3
VS
20669 grep -v '^ *+' conftest.er1 >conftest.err
20670 rm -f conftest.er1
20671 cat conftest.err >&5
a848cd7e
SC
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } &&
6ebeb4c7 20674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; } &&
20680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682 (eval $ac_try) 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; }; then
20686 ac_cv_c_bigendian=yes
20687else
20688 echo "$as_me: failed program was:" >&5
20689sed 's/^/| /' conftest.$ac_ext >&5
20690
20691ac_cv_c_bigendian=no
20692fi
ac1cb8d3 20693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20694else
20695 echo "$as_me: failed program was:" >&5
20696sed 's/^/| /' conftest.$ac_ext >&5
20697
20698fi
ac1cb8d3 20699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20700if test $ac_cv_c_bigendian = unknown; then
20701if test "$cross_compiling" = yes; then
20702 ac_cv_c_bigendian=unknown
20703else
20704 cat >conftest.$ac_ext <<_ACEOF
20705/* confdefs.h. */
20706_ACEOF
20707cat confdefs.h >>conftest.$ac_ext
20708cat >>conftest.$ac_ext <<_ACEOF
20709/* end confdefs.h. */
20710main () {
20711 /* Are we little or big endian? From Harbison&Steele. */
20712 union
20713 {
20714 long l;
20715 char c[sizeof (long)];
20716 } u;
20717 u.l = 1;
20718 exit (u.c[sizeof (long) - 1] == 1);
20719}
20720_ACEOF
20721rm -f conftest$ac_exeext
20722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20723 (eval $ac_link) 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20729 ac_status=$?
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; }; then
20732 ac_cv_c_bigendian=no
20733else
20734 echo "$as_me: program exited with status $ac_status" >&5
20735echo "$as_me: failed program was:" >&5
20736sed 's/^/| /' conftest.$ac_ext >&5
20737
20738( exit $ac_status )
20739ac_cv_c_bigendian=yes
20740fi
ac1cb8d3 20741rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20742fi
20743fi
20744fi
20745echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20746echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20747if test $ac_cv_c_bigendian = unknown; then
20748 { 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
20749echo "$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;}
20750fi
20751if test $ac_cv_c_bigendian = yes; then
20752 cat >>confdefs.h <<\_ACEOF
20753#define WORDS_BIGENDIAN 1
20754_ACEOF
20755
20756fi
20757
20758
20759ac_ext=cc
20760ac_cpp='$CXXCPP $CPPFLAGS'
20761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20764echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20765echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20766if test -z "$CXXCPP"; then
20767 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20769else
20770 # Double quotes because CXXCPP needs to be expanded
20771 for CXXCPP in "$CXX -E" "/lib/cpp"
20772 do
20773 ac_preproc_ok=false
20774for ac_cxx_preproc_warn_flag in '' yes
20775do
20776 # Use a header file that comes with gcc, so configuring glibc
20777 # with a fresh cross-compiler works.
20778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20779 # <limits.h> exists even on freestanding compilers.
20780 # On the NeXT, cc -E runs the code through the compiler's parser,
20781 # not just through cpp. "Syntax error" is here to catch this case.
20782 cat >conftest.$ac_ext <<_ACEOF
20783/* confdefs.h. */
20784_ACEOF
20785cat confdefs.h >>conftest.$ac_ext
20786cat >>conftest.$ac_ext <<_ACEOF
20787/* end confdefs.h. */
20788#ifdef __STDC__
20789# include <limits.h>
20790#else
20791# include <assert.h>
20792#endif
ac1cb8d3 20793 Syntax error
a848cd7e
SC
20794_ACEOF
20795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } >/dev/null; then
20803 if test -s conftest.err; then
20804 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20805 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20806 else
20807 ac_cpp_err=
20808 fi
20809else
20810 ac_cpp_err=yes
20811fi
20812if test -z "$ac_cpp_err"; then
20813 :
20814else
20815 echo "$as_me: failed program was:" >&5
20816sed 's/^/| /' conftest.$ac_ext >&5
20817
20818 # Broken: fails on valid input.
20819continue
20820fi
20821rm -f conftest.err conftest.$ac_ext
20822
20823 # OK, works on sane cases. Now check whether non-existent headers
20824 # can be detected and how.
20825 cat >conftest.$ac_ext <<_ACEOF
20826/* confdefs.h. */
20827_ACEOF
20828cat confdefs.h >>conftest.$ac_ext
20829cat >>conftest.$ac_ext <<_ACEOF
20830/* end confdefs.h. */
20831#include <ac_nonexistent.h>
20832_ACEOF
20833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20835 ac_status=$?
20836 grep -v '^ *+' conftest.er1 >conftest.err
20837 rm -f conftest.er1
20838 cat conftest.err >&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } >/dev/null; then
20841 if test -s conftest.err; then
20842 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20843 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20844 else
20845 ac_cpp_err=
20846 fi
20847else
20848 ac_cpp_err=yes
20849fi
20850if test -z "$ac_cpp_err"; then
20851 # Broken: success on invalid input.
20852continue
20853else
20854 echo "$as_me: failed program was:" >&5
20855sed 's/^/| /' conftest.$ac_ext >&5
20856
20857 # Passes both tests.
20858ac_preproc_ok=:
20859break
20860fi
20861rm -f conftest.err conftest.$ac_ext
20862
20863done
20864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20865rm -f conftest.err conftest.$ac_ext
20866if $ac_preproc_ok; then
20867 break
20868fi
20869
20870 done
20871 ac_cv_prog_CXXCPP=$CXXCPP
20872
20873fi
20874 CXXCPP=$ac_cv_prog_CXXCPP
20875else
20876 ac_cv_prog_CXXCPP=$CXXCPP
20877fi
20878echo "$as_me:$LINENO: result: $CXXCPP" >&5
20879echo "${ECHO_T}$CXXCPP" >&6
20880ac_preproc_ok=false
20881for ac_cxx_preproc_warn_flag in '' yes
20882do
20883 # Use a header file that comes with gcc, so configuring glibc
20884 # with a fresh cross-compiler works.
20885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20886 # <limits.h> exists even on freestanding compilers.
20887 # On the NeXT, cc -E runs the code through the compiler's parser,
20888 # not just through cpp. "Syntax error" is here to catch this case.
20889 cat >conftest.$ac_ext <<_ACEOF
20890/* confdefs.h. */
20891_ACEOF
20892cat confdefs.h >>conftest.$ac_ext
20893cat >>conftest.$ac_ext <<_ACEOF
20894/* end confdefs.h. */
20895#ifdef __STDC__
20896# include <limits.h>
20897#else
20898# include <assert.h>
20899#endif
ac1cb8d3 20900 Syntax error
a848cd7e
SC
20901_ACEOF
20902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20904 ac_status=$?
20905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } >/dev/null; then
20910 if test -s conftest.err; then
20911 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20912 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20913 else
20914 ac_cpp_err=
20915 fi
20916else
20917 ac_cpp_err=yes
20918fi
20919if test -z "$ac_cpp_err"; then
20920 :
20921else
20922 echo "$as_me: failed program was:" >&5
20923sed 's/^/| /' conftest.$ac_ext >&5
20924
20925 # Broken: fails on valid input.
20926continue
20927fi
20928rm -f conftest.err conftest.$ac_ext
20929
20930 # OK, works on sane cases. Now check whether non-existent headers
20931 # can be detected and how.
20932 cat >conftest.$ac_ext <<_ACEOF
20933/* confdefs.h. */
20934_ACEOF
20935cat confdefs.h >>conftest.$ac_ext
20936cat >>conftest.$ac_ext <<_ACEOF
20937/* end confdefs.h. */
20938#include <ac_nonexistent.h>
20939_ACEOF
20940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20942 ac_status=$?
20943 grep -v '^ *+' conftest.er1 >conftest.err
20944 rm -f conftest.er1
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } >/dev/null; then
20948 if test -s conftest.err; then
20949 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20950 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20951 else
20952 ac_cpp_err=
20953 fi
20954else
20955 ac_cpp_err=yes
20956fi
20957if test -z "$ac_cpp_err"; then
20958 # Broken: success on invalid input.
20959continue
20960else
20961 echo "$as_me: failed program was:" >&5
20962sed 's/^/| /' conftest.$ac_ext >&5
20963
20964 # Passes both tests.
20965ac_preproc_ok=:
20966break
20967fi
20968rm -f conftest.err conftest.$ac_ext
20969
20970done
20971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20972rm -f conftest.err conftest.$ac_ext
20973if $ac_preproc_ok; then
20974 :
20975else
20976 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20977See \`config.log' for more details." >&5
20978echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20979See \`config.log' for more details." >&2;}
20980 { (exit 1); exit 1; }; }
20981fi
20982
20983ac_ext=cc
20984ac_cpp='$CXXCPP $CPPFLAGS'
20985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20988
20989
20990
20991
20992
20993 ac_ext=cc
20994ac_cpp='$CXXCPP $CPPFLAGS'
20995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20998
20999
21000
21001for ac_header in iostream
21002do
21003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21004if eval "test \"\${$as_ac_Header+set}\" = set"; then
21005 echo "$as_me:$LINENO: checking for $ac_header" >&5
21006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21007if eval "test \"\${$as_ac_Header+set}\" = set"; then
21008 echo $ECHO_N "(cached) $ECHO_C" >&6
21009fi
21010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21012else
21013 # Is the header compilable?
21014echo "$as_me:$LINENO: checking $ac_header usability" >&5
21015echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21016cat >conftest.$ac_ext <<_ACEOF
21017/* confdefs.h. */
21018_ACEOF
21019cat confdefs.h >>conftest.$ac_ext
21020cat >>conftest.$ac_ext <<_ACEOF
21021/* end confdefs.h. */
21022$ac_includes_default
21023#include <$ac_header>
21024_ACEOF
21025rm -f conftest.$ac_objext
21026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21027 (eval $ac_compile) 2>conftest.er1
a848cd7e 21028 ac_status=$?
ac1cb8d3
VS
21029 grep -v '^ *+' conftest.er1 >conftest.err
21030 rm -f conftest.er1
21031 cat conftest.err >&5
a848cd7e
SC
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } &&
6ebeb4c7 21034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21037 ac_status=$?
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; } &&
21040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21043 ac_status=$?
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
21046 ac_header_compiler=yes
21047else
21048 echo "$as_me: failed program was:" >&5
21049sed 's/^/| /' conftest.$ac_ext >&5
21050
21051ac_header_compiler=no
21052fi
ac1cb8d3 21053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21054echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21055echo "${ECHO_T}$ac_header_compiler" >&6
21056
21057# Is the header present?
21058echo "$as_me:$LINENO: checking $ac_header presence" >&5
21059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21060cat >conftest.$ac_ext <<_ACEOF
21061/* confdefs.h. */
21062_ACEOF
21063cat confdefs.h >>conftest.$ac_ext
21064cat >>conftest.$ac_ext <<_ACEOF
21065/* end confdefs.h. */
21066#include <$ac_header>
21067_ACEOF
21068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } >/dev/null; then
21076 if test -s conftest.err; then
21077 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21078 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21079 else
21080 ac_cpp_err=
21081 fi
21082else
21083 ac_cpp_err=yes
21084fi
21085if test -z "$ac_cpp_err"; then
21086 ac_header_preproc=yes
21087else
21088 echo "$as_me: failed program was:" >&5
21089sed 's/^/| /' conftest.$ac_ext >&5
21090
21091 ac_header_preproc=no
21092fi
21093rm -f conftest.err conftest.$ac_ext
21094echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21095echo "${ECHO_T}$ac_header_preproc" >&6
21096
21097# So? What about this header?
ac1cb8d3
VS
21098case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21099 yes:no: )
a848cd7e
SC
21100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21104 ac_header_preproc=yes
a848cd7e 21105 ;;
ac1cb8d3 21106 no:yes:* )
a848cd7e
SC
21107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21110echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21114echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21119 (
21120 cat <<\_ASBOX
ac1cb8d3
VS
21121## ----------------------------------------- ##
21122## Report this to wx-dev@lists.wxwidgets.org ##
21123## ----------------------------------------- ##
a848cd7e
SC
21124_ASBOX
21125 ) |
21126 sed "s/^/$as_me: WARNING: /" >&2
21127 ;;
21128esac
21129echo "$as_me:$LINENO: checking for $ac_header" >&5
21130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21131if eval "test \"\${$as_ac_Header+set}\" = set"; then
21132 echo $ECHO_N "(cached) $ECHO_C" >&6
21133else
ac1cb8d3 21134 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21135fi
21136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21138
21139fi
21140if test `eval echo '${'$as_ac_Header'}'` = yes; then
21141 cat >>confdefs.h <<_ACEOF
21142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21143_ACEOF
21144
21145fi
21146
21147done
21148
21149
21150 if test "$ac_cv_header_iostream" = "yes" ; then
21151 :
21152 else
21153 cat >>confdefs.h <<\_ACEOF
21154#define wxUSE_IOSTREAMH 1
21155_ACEOF
21156
21157 fi
21158
21159 ac_ext=c
21160ac_cpp='$CPP $CPPFLAGS'
21161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21163ac_compiler_gnu=$ac_cv_c_compiler_gnu
21164
21165
21166
21167
21168 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21169echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21170if test "${wx_cv_cpp_bool+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21172else
21173
21174
21175
21176 ac_ext=cc
21177ac_cpp='$CXXCPP $CPPFLAGS'
21178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21181
21182
21183 cat >conftest.$ac_ext <<_ACEOF
21184/* confdefs.h. */
21185_ACEOF
21186cat confdefs.h >>conftest.$ac_ext
21187cat >>conftest.$ac_ext <<_ACEOF
21188/* end confdefs.h. */
21189
21190
21191int
21192main ()
21193{
21194
21195 bool b = true;
21196
21197 return 0;
21198
21199 ;
21200 return 0;
21201}
21202_ACEOF
21203rm -f conftest.$ac_objext
21204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21205 (eval $ac_compile) 2>conftest.er1
a848cd7e 21206 ac_status=$?
ac1cb8d3
VS
21207 grep -v '^ *+' conftest.er1 >conftest.err
21208 rm -f conftest.er1
21209 cat conftest.err >&5
a848cd7e
SC
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } &&
6ebeb4c7 21212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214 (eval $ac_try) 2>&5
21215 ac_status=$?
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; } &&
21218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220 (eval $ac_try) 2>&5
21221 ac_status=$?
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); }; }; then
21224
21225 wx_cv_cpp_bool=yes
21226
21227else
21228 echo "$as_me: failed program was:" >&5
21229sed 's/^/| /' conftest.$ac_ext >&5
21230
21231
21232 wx_cv_cpp_bool=no
21233
21234
21235fi
ac1cb8d3 21236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21237
21238 ac_ext=c
21239ac_cpp='$CPP $CPPFLAGS'
21240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21242ac_compiler_gnu=$ac_cv_c_compiler_gnu
21243
21244
21245fi
21246echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
21247echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21248
21249 if test "$wx_cv_cpp_bool" = "yes"; then
21250 cat >>confdefs.h <<\_ACEOF
21251#define HAVE_BOOL 1
21252_ACEOF
21253
21254 fi
21255
21256
21257
21258 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
21259echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
21260if test "${wx_cv_explicit+set}" = set; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21262else
21263
21264
21265
21266 ac_ext=cc
21267ac_cpp='$CXXCPP $CPPFLAGS'
21268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21271
21272
21273 cat >conftest.$ac_ext <<_ACEOF
21274/* confdefs.h. */
21275_ACEOF
21276cat confdefs.h >>conftest.$ac_ext
21277cat >>conftest.$ac_ext <<_ACEOF
21278/* end confdefs.h. */
21279
21280 class Foo { public: explicit Foo(int) {} };
21281
21282int
21283main ()
21284{
21285
21286 return 0;
21287
21288 ;
21289 return 0;
21290}
21291_ACEOF
21292rm -f conftest.$ac_objext
21293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21294 (eval $ac_compile) 2>conftest.er1
a848cd7e 21295 ac_status=$?
ac1cb8d3
VS
21296 grep -v '^ *+' conftest.er1 >conftest.err
21297 rm -f conftest.er1
21298 cat conftest.err >&5
a848cd7e
SC
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } &&
6ebeb4c7 21301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21304 ac_status=$?
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; } &&
21307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; }; then
21313
21314 cat >conftest.$ac_ext <<_ACEOF
21315/* confdefs.h. */
21316_ACEOF
21317cat confdefs.h >>conftest.$ac_ext
21318cat >>conftest.$ac_ext <<_ACEOF
21319/* end confdefs.h. */
21320
21321 class Foo { public: explicit Foo(int) {} };
21322 static void TakeFoo(const Foo& foo) { }
21323
21324int
21325main ()
21326{
21327
21328 TakeFoo(17);
21329 return 0;
21330
21331 ;
21332 return 0;
21333}
21334_ACEOF
21335rm -f conftest.$ac_objext
21336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21337 (eval $ac_compile) 2>conftest.er1
a848cd7e 21338 ac_status=$?
ac1cb8d3
VS
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
a848cd7e
SC
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } &&
6ebeb4c7 21344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; } &&
21350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 wx_cv_explicit=no
21357else
21358 echo "$as_me: failed program was:" >&5
21359sed 's/^/| /' conftest.$ac_ext >&5
21360
21361wx_cv_explicit=yes
21362
21363fi
ac1cb8d3 21364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21365
21366else
21367 echo "$as_me: failed program was:" >&5
21368sed 's/^/| /' conftest.$ac_ext >&5
21369
21370wx_cv_explicit=no
21371
21372fi
ac1cb8d3 21373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21374
21375 ac_ext=c
21376ac_cpp='$CPP $CPPFLAGS'
21377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21379ac_compiler_gnu=$ac_cv_c_compiler_gnu
21380
21381
21382fi
21383echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21384echo "${ECHO_T}$wx_cv_explicit" >&6
21385
21386 if test "$wx_cv_explicit" = "yes"; then
21387 cat >>confdefs.h <<\_ACEOF
21388#define HAVE_EXPLICIT 1
21389_ACEOF
21390
21391 fi
21392
21393
21394echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21395echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21396if test "${ac_cv_cxx_const_cast+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21398else
21399
21400
21401 ac_ext=cc
21402ac_cpp='$CXXCPP $CPPFLAGS'
21403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21406
21407 cat >conftest.$ac_ext <<_ACEOF
21408/* confdefs.h. */
21409_ACEOF
21410cat confdefs.h >>conftest.$ac_ext
21411cat >>conftest.$ac_ext <<_ACEOF
21412/* end confdefs.h. */
21413
21414int
21415main ()
21416{
21417int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21418 ;
21419 return 0;
21420}
21421_ACEOF
21422rm -f conftest.$ac_objext
21423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21424 (eval $ac_compile) 2>conftest.er1
a848cd7e 21425 ac_status=$?
ac1cb8d3
VS
21426 grep -v '^ *+' conftest.er1 >conftest.err
21427 rm -f conftest.er1
21428 cat conftest.err >&5
a848cd7e
SC
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); } &&
6ebeb4c7 21431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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_cv_cxx_const_cast=yes
21444else
21445 echo "$as_me: failed program was:" >&5
21446sed 's/^/| /' conftest.$ac_ext >&5
21447
21448ac_cv_cxx_const_cast=no
21449fi
ac1cb8d3 21450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21451 ac_ext=c
21452ac_cpp='$CPP $CPPFLAGS'
21453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21455ac_compiler_gnu=$ac_cv_c_compiler_gnu
21456
21457
21458fi
21459echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21460echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21461if test "$ac_cv_cxx_const_cast" = yes; then
21462
21463cat >>confdefs.h <<\_ACEOF
21464#define HAVE_CONST_CAST
21465_ACEOF
21466
21467fi
21468
7714864e
RL
21469echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21470echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21471if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21473else
21474
21475
21476 ac_ext=cc
21477ac_cpp='$CXXCPP $CPPFLAGS'
21478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21481
21482 cat >conftest.$ac_ext <<_ACEOF
21483/* confdefs.h. */
21484_ACEOF
21485cat confdefs.h >>conftest.$ac_ext
21486cat >>conftest.$ac_ext <<_ACEOF
21487/* end confdefs.h. */
21488#include <typeinfo>
21489class Base { public : Base () {} virtual void f () = 0;};
21490class Derived : public Base { public : Derived () {} virtual void f () {} };
21491class Unrelated { public : Unrelated () {} };
21492int g (Unrelated&) { return 0; }
21493int
21494main ()
21495{
21496
21497Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21498 ;
21499 return 0;
21500}
21501_ACEOF
21502rm -f conftest.$ac_objext
21503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21504 (eval $ac_compile) 2>conftest.er1
21505 ac_status=$?
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } &&
6ebeb4c7 21511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } &&
21517 { ac_try='test -s conftest.$ac_objext'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
21523 ac_cv_cxx_reinterpret_cast=yes
21524else
21525 echo "$as_me: failed program was:" >&5
21526sed 's/^/| /' conftest.$ac_ext >&5
21527
21528ac_cv_cxx_reinterpret_cast=no
21529fi
21530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21531 ac_ext=c
21532ac_cpp='$CPP $CPPFLAGS'
21533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21535ac_compiler_gnu=$ac_cv_c_compiler_gnu
21536
21537
21538fi
21539echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21540echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21541if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21542
21543cat >>confdefs.h <<\_ACEOF
21544#define HAVE_REINTERPRET_CAST
21545_ACEOF
21546
21547fi
21548
a848cd7e
SC
21549echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21550echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21551if test "${ac_cv_cxx_static_cast+set}" = set; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21553else
21554
21555
21556 ac_ext=cc
21557ac_cpp='$CXXCPP $CPPFLAGS'
21558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21561
21562 cat >conftest.$ac_ext <<_ACEOF
21563/* confdefs.h. */
21564_ACEOF
21565cat confdefs.h >>conftest.$ac_ext
21566cat >>conftest.$ac_ext <<_ACEOF
21567/* end confdefs.h. */
21568#include <typeinfo>
21569class Base { public : Base () {} virtual void f () = 0; };
21570class Derived : public Base { public : Derived () {} virtual void f () {} };
21571int g (Derived&) { return 0; }
21572int
21573main ()
21574{
21575
21576Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21577 ;
21578 return 0;
21579}
21580_ACEOF
21581rm -f conftest.$ac_objext
21582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21583 (eval $ac_compile) 2>conftest.er1
a848cd7e 21584 ac_status=$?
ac1cb8d3
VS
21585 grep -v '^ *+' conftest.er1 >conftest.err
21586 rm -f conftest.er1
21587 cat conftest.err >&5
a848cd7e
SC
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } &&
6ebeb4c7 21590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; } &&
21596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21599 ac_status=$?
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; }; then
21602 ac_cv_cxx_static_cast=yes
21603else
21604 echo "$as_me: failed program was:" >&5
21605sed 's/^/| /' conftest.$ac_ext >&5
21606
21607ac_cv_cxx_static_cast=no
21608fi
ac1cb8d3 21609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21610 ac_ext=c
21611ac_cpp='$CPP $CPPFLAGS'
21612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21614ac_compiler_gnu=$ac_cv_c_compiler_gnu
21615
21616
21617fi
21618echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21619echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21620if test "$ac_cv_cxx_static_cast" = yes; then
21621
21622cat >>confdefs.h <<\_ACEOF
21623#define HAVE_STATIC_CAST
21624_ACEOF
21625
21626fi
21627
21628
3c28b7cb
MW
21629if test "x$SUNCXX" = xyes; then
21630 CXXFLAGS="$CXXFLAGS -features=tmplife"
21631fi
21632
9122d155
VZ
21633if test "x$SUNCC" = xyes; then
21634 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
21635fi
21636
0ad5d837
VZ
21637if test "x$SGICC" = "xyes"; then
21638 CFLAGS="$CFLAGS -woff 3970"
21639fi
21640if test "x$SGICXX" = "xyes"; then
21641 CXXFLAGS="$CXXFLAGS -woff 3970"
21642fi
21643
f56c22b4 21644if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21645 ac_ext=cc
21646ac_cpp='$CXXCPP $CPPFLAGS'
21647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21650
21651
f56c22b4
MW
21652 if test "$wxUSE_UNICODE" = "yes"; then
21653 std_string="std::wstring"
21654 char_type="wchar_t"
21655 else
21656 std_string="std::string"
21657 char_type="char"
21658 fi
21659
21660 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21661echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21662 cat >conftest.$ac_ext <<_ACEOF
21663/* confdefs.h. */
21664_ACEOF
21665cat confdefs.h >>conftest.$ac_ext
21666cat >>conftest.$ac_ext <<_ACEOF
21667/* end confdefs.h. */
21668#include <string>
a848cd7e
SC
21669int
21670main ()
21671{
f56c22b4 21672$std_string foo;
a848cd7e
SC
21673 ;
21674 return 0;
21675}
21676_ACEOF
21677rm -f conftest.$ac_objext
21678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21679 (eval $ac_compile) 2>conftest.er1
a848cd7e 21680 ac_status=$?
ac1cb8d3
VS
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
a848cd7e
SC
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } &&
6ebeb4c7 21686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; } &&
21692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }; then
21698 echo "$as_me:$LINENO: result: yes" >&5
21699echo "${ECHO_T}yes" >&6
0a08f02a
MB
21700 cat >>confdefs.h <<\_ACEOF
21701#define HAVE_STD_WSTRING 1
21702_ACEOF
21703
a848cd7e
SC
21704else
21705 echo "$as_me: failed program was:" >&5
21706sed 's/^/| /' conftest.$ac_ext >&5
21707
21708echo "$as_me:$LINENO: result: no" >&5
21709echo "${ECHO_T}no" >&6
f56c22b4
MW
21710 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21711echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21712 cat >conftest.$ac_ext <<_ACEOF
21713/* confdefs.h. */
21714_ACEOF
21715cat confdefs.h >>conftest.$ac_ext
21716cat >>conftest.$ac_ext <<_ACEOF
21717/* end confdefs.h. */
21718
21719 #ifdef HAVE_WCHAR_H
21720 # ifdef __CYGWIN__
21721 # include <stddef.h>
21722 # endif
21723 # include <wchar.h>
21724 #endif
21725 #ifdef HAVE_STDLIB_H
21726 # include <stdlib.h>
21727 #endif
21728 #include <stdio.h>
21729 #include <string>
21730
21731int
21732main ()
21733{
f56c22b4
MW
21734std::basic_string<$char_type> foo;
21735 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21736 ;
21737 return 0;
21738}
21739_ACEOF
21740rm -f conftest.$ac_objext
21741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21742 (eval $ac_compile) 2>conftest.er1
21743 ac_status=$?
21744 grep -v '^ *+' conftest.er1 >conftest.err
21745 rm -f conftest.er1
21746 cat conftest.err >&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } &&
6ebeb4c7 21749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
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); }; } &&
21755 { ac_try='test -s conftest.$ac_objext'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21758 ac_status=$?
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; }; then
21761 echo "$as_me:$LINENO: result: yes" >&5
21762echo "${ECHO_T}yes" >&6
21763else
21764 echo "$as_me: failed program was:" >&5
21765sed 's/^/| /' conftest.$ac_ext >&5
21766
21767echo "$as_me:$LINENO: result: no" >&5
21768echo "${ECHO_T}no" >&6
f56c22b4 21769 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21770 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21771echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21772 { (exit 1); exit 1; }; }
21773 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21774 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21775echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21776 { (exit 1); exit 1; }; }
f56c22b4
MW
21777 else
21778 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21779echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21780 wxUSE_STD_STRING=no
21781 fi
21782
0a08f02a 21783
a848cd7e 21784fi
ac1cb8d3 21785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21786
0a08f02a
MB
21787fi
21788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21789
21790 ac_ext=c
21791ac_cpp='$CPP $CPPFLAGS'
21792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21794ac_compiler_gnu=$ac_cv_c_compiler_gnu
21795
21796fi
21797
21798if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21799 ac_ext=cc
21800ac_cpp='$CXXCPP $CPPFLAGS'
21801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21804
21805
21806 echo "$as_me:$LINENO: checking for std::istream" >&5
21807echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21808if test "${ac_cv_type_std__istream+set}" = set; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21810else
21811 cat >conftest.$ac_ext <<_ACEOF
21812/* confdefs.h. */
21813_ACEOF
21814cat confdefs.h >>conftest.$ac_ext
21815cat >>conftest.$ac_ext <<_ACEOF
21816/* end confdefs.h. */
21817#include <iostream>
21818
21819int
21820main ()
21821{
21822if ((std::istream *) 0)
21823 return 0;
21824if (sizeof (std::istream))
21825 return 0;
21826 ;
21827 return 0;
21828}
21829_ACEOF
21830rm -f conftest.$ac_objext
21831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21832 (eval $ac_compile) 2>conftest.er1
21833 ac_status=$?
21834 grep -v '^ *+' conftest.er1 >conftest.err
21835 rm -f conftest.er1
21836 cat conftest.err >&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } &&
6ebeb4c7 21839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try='test -s conftest.$ac_objext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 ac_cv_type_std__istream=yes
21852else
21853 echo "$as_me: failed program was:" >&5
21854sed 's/^/| /' conftest.$ac_ext >&5
21855
21856ac_cv_type_std__istream=no
21857fi
21858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21859fi
21860echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21861echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21862if test $ac_cv_type_std__istream = yes; then
21863
21864cat >>confdefs.h <<_ACEOF
21865#define HAVE_STD__ISTREAM 1
21866_ACEOF
21867
21868
21869else
21870 wxUSE_STD_IOSTREAM=no
21871fi
21872echo "$as_me:$LINENO: checking for std::ostream" >&5
21873echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21874if test "${ac_cv_type_std__ostream+set}" = set; then
21875 echo $ECHO_N "(cached) $ECHO_C" >&6
21876else
21877 cat >conftest.$ac_ext <<_ACEOF
21878/* confdefs.h. */
21879_ACEOF
21880cat confdefs.h >>conftest.$ac_ext
21881cat >>conftest.$ac_ext <<_ACEOF
21882/* end confdefs.h. */
21883#include <iostream>
21884
21885int
21886main ()
21887{
21888if ((std::ostream *) 0)
21889 return 0;
21890if (sizeof (std::ostream))
21891 return 0;
21892 ;
21893 return 0;
21894}
21895_ACEOF
21896rm -f conftest.$ac_objext
21897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21898 (eval $ac_compile) 2>conftest.er1
21899 ac_status=$?
21900 grep -v '^ *+' conftest.er1 >conftest.err
21901 rm -f conftest.er1
21902 cat conftest.err >&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } &&
6ebeb4c7 21905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907 (eval $ac_try) 2>&5
21908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; } &&
21911 { ac_try='test -s conftest.$ac_objext'
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; }; then
21917 ac_cv_type_std__ostream=yes
21918else
21919 echo "$as_me: failed program was:" >&5
21920sed 's/^/| /' conftest.$ac_ext >&5
21921
21922ac_cv_type_std__ostream=no
21923fi
21924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21925fi
21926echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21927echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21928if test $ac_cv_type_std__ostream = yes; then
21929
21930cat >>confdefs.h <<_ACEOF
21931#define HAVE_STD__OSTREAM 1
21932_ACEOF
21933
21934
21935else
21936 wxUSE_STD_IOSTREAM=no
21937fi
21938
21939
21940 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21941 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21942 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21943echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21944 { (exit 1); exit 1; }; }
21945 else
21946 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21947echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21948 fi
f56c22b4
MW
21949 fi
21950
21951 ac_ext=c
21952ac_cpp='$CPP $CPPFLAGS'
21953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21955ac_compiler_gnu=$ac_cv_c_compiler_gnu
21956
21957fi
21958
21959if test "$wxUSE_STL" = "yes"; then
21960 ac_ext=cc
21961ac_cpp='$CXXCPP $CPPFLAGS'
21962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21965
21966
21967 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21968echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21969 cat >conftest.$ac_ext <<_ACEOF
21970/* confdefs.h. */
21971_ACEOF
21972cat confdefs.h >>conftest.$ac_ext
21973cat >>conftest.$ac_ext <<_ACEOF
21974/* end confdefs.h. */
21975#include <string>
0a08f02a
MB
21976 #include <functional>
21977 #include <algorithm>
21978 #include <vector>
21979 #include <list>
a848cd7e
SC
21980int
21981main ()
21982{
0a08f02a
MB
21983std::vector<int> moo;
21984 std::list<int> foo;
21985 std::vector<int>::iterator it =
21986 std::find_if(moo.begin(), moo.end(),
21987 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21988 ;
21989 return 0;
21990}
21991_ACEOF
21992rm -f conftest.$ac_objext
21993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21994 (eval $ac_compile) 2>conftest.er1
a848cd7e 21995 ac_status=$?
ac1cb8d3
VS
21996 grep -v '^ *+' conftest.er1 >conftest.err
21997 rm -f conftest.er1
21998 cat conftest.err >&5
a848cd7e
SC
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } &&
6ebeb4c7 22001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; } &&
22007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22010 ac_status=$?
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; }; then
22013 echo "$as_me:$LINENO: result: yes" >&5
22014echo "${ECHO_T}yes" >&6
a848cd7e
SC
22015else
22016 echo "$as_me: failed program was:" >&5
22017sed 's/^/| /' conftest.$ac_ext >&5
22018
22019echo "$as_me:$LINENO: result: no" >&5
22020echo "${ECHO_T}no" >&6
0a08f02a
MB
22021 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22022echo "$as_me: error: Basic STL functionality missing" >&2;}
22023 { (exit 1); exit 1; }; }
a848cd7e 22024fi
ac1cb8d3 22025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22026
22027 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22028echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22029 cat >conftest.$ac_ext <<_ACEOF
22030/* confdefs.h. */
22031_ACEOF
22032cat confdefs.h >>conftest.$ac_ext
22033cat >>conftest.$ac_ext <<_ACEOF
22034/* end confdefs.h. */
22035#include <string>
22036int
22037main ()
22038{
22039std::string foo, bar;
22040 foo.compare(bar);
22041 foo.compare(1, 1, bar);
22042 foo.compare(1, 1, bar, 1, 1);
22043 foo.compare("");
22044 foo.compare(1, 1, "");
22045 foo.compare(1, 1, "", 2);
22046 ;
22047 return 0;
22048}
22049_ACEOF
22050rm -f conftest.$ac_objext
22051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22052 (eval $ac_compile) 2>conftest.er1
a848cd7e 22053 ac_status=$?
ac1cb8d3
VS
22054 grep -v '^ *+' conftest.er1 >conftest.err
22055 rm -f conftest.er1
22056 cat conftest.err >&5
a848cd7e
SC
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } &&
6ebeb4c7 22059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22061 (eval $ac_try) 2>&5
22062 ac_status=$?
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; } &&
22065 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22067 (eval $ac_try) 2>&5
22068 ac_status=$?
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); }; }; then
22071 echo "$as_me:$LINENO: result: yes" >&5
22072echo "${ECHO_T}yes" >&6
22073 cat >>confdefs.h <<\_ACEOF
22074#define HAVE_STD_STRING_COMPARE 1
22075_ACEOF
22076
22077else
22078 echo "$as_me: failed program was:" >&5
22079sed 's/^/| /' conftest.$ac_ext >&5
22080
22081echo "$as_me:$LINENO: result: no" >&5
22082echo "${ECHO_T}no" >&6
22083fi
ac1cb8d3 22084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22085
22086 if test "${ac_cv_header_hash_map+set}" = set; then
22087 echo "$as_me:$LINENO: checking for hash_map" >&5
22088echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22089if test "${ac_cv_header_hash_map+set}" = set; then
22090 echo $ECHO_N "(cached) $ECHO_C" >&6
22091fi
22092echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22093echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22094else
22095 # Is the header compilable?
22096echo "$as_me:$LINENO: checking hash_map usability" >&5
22097echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22098cat >conftest.$ac_ext <<_ACEOF
22099/* confdefs.h. */
22100_ACEOF
22101cat confdefs.h >>conftest.$ac_ext
22102cat >>conftest.$ac_ext <<_ACEOF
22103/* end confdefs.h. */
22104$ac_includes_default
22105#include <hash_map>
22106_ACEOF
22107rm -f conftest.$ac_objext
22108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22109 (eval $ac_compile) 2>conftest.er1
bdcade0a 22110 ac_status=$?
ac1cb8d3
VS
22111 grep -v '^ *+' conftest.er1 >conftest.err
22112 rm -f conftest.er1
22113 cat conftest.err >&5
bdcade0a
MB
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } &&
6ebeb4c7 22116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; } &&
22122 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124 (eval $ac_try) 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; }; then
22128 ac_header_compiler=yes
22129else
22130 echo "$as_me: failed program was:" >&5
22131sed 's/^/| /' conftest.$ac_ext >&5
22132
22133ac_header_compiler=no
22134fi
ac1cb8d3 22135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22136echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22137echo "${ECHO_T}$ac_header_compiler" >&6
22138
22139# Is the header present?
22140echo "$as_me:$LINENO: checking hash_map presence" >&5
22141echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
22142cat >conftest.$ac_ext <<_ACEOF
22143/* confdefs.h. */
22144_ACEOF
22145cat confdefs.h >>conftest.$ac_ext
22146cat >>conftest.$ac_ext <<_ACEOF
22147/* end confdefs.h. */
22148#include <hash_map>
22149_ACEOF
22150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } >/dev/null; then
22158 if test -s conftest.err; then
22159 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22160 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22161 else
22162 ac_cpp_err=
22163 fi
22164else
22165 ac_cpp_err=yes
22166fi
22167if test -z "$ac_cpp_err"; then
22168 ac_header_preproc=yes
22169else
22170 echo "$as_me: failed program was:" >&5
22171sed 's/^/| /' conftest.$ac_ext >&5
22172
22173 ac_header_preproc=no
22174fi
22175rm -f conftest.err conftest.$ac_ext
22176echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22177echo "${ECHO_T}$ac_header_preproc" >&6
22178
22179# So? What about this header?
ac1cb8d3
VS
22180case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22181 yes:no: )
bdcade0a
MB
22182 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22183echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22184 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22185echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22186 ac_header_preproc=yes
bdcade0a 22187 ;;
ac1cb8d3 22188 no:yes:* )
bdcade0a
MB
22189 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22190echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22191 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22192echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22193 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22194echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22195 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22196echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22197 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22198echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22199 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22200echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22201 (
22202 cat <<\_ASBOX
ac1cb8d3
VS
22203## ----------------------------------------- ##
22204## Report this to wx-dev@lists.wxwidgets.org ##
22205## ----------------------------------------- ##
bdcade0a
MB
22206_ASBOX
22207 ) |
22208 sed "s/^/$as_me: WARNING: /" >&2
22209 ;;
22210esac
22211echo "$as_me:$LINENO: checking for hash_map" >&5
22212echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22213if test "${ac_cv_header_hash_map+set}" = set; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22215else
22216 ac_cv_header_hash_map=$ac_header_preproc
22217fi
22218echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22219echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22220
22221fi
22222if test $ac_cv_header_hash_map = yes; then
22223 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22224echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22225 cat >conftest.$ac_ext <<_ACEOF
22226/* confdefs.h. */
22227_ACEOF
22228cat confdefs.h >>conftest.$ac_ext
22229cat >>conftest.$ac_ext <<_ACEOF
22230/* end confdefs.h. */
22231#include <hash_map>
22232 #include <hash_set>
22233int
22234main ()
22235{
22236std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
22237 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
22238 ;
22239 return 0;
22240}
22241_ACEOF
22242rm -f conftest.$ac_objext
22243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22244 (eval $ac_compile) 2>conftest.er1
bdcade0a 22245 ac_status=$?
ac1cb8d3
VS
22246 grep -v '^ *+' conftest.er1 >conftest.err
22247 rm -f conftest.er1
22248 cat conftest.err >&5
bdcade0a
MB
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } &&
6ebeb4c7 22251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; } &&
22257 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259 (eval $ac_try) 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; }; then
22263 echo "$as_me:$LINENO: result: yes" >&5
22264echo "${ECHO_T}yes" >&6
22265 cat >>confdefs.h <<\_ACEOF
22266#define HAVE_HASH_MAP 1
22267_ACEOF
22268
22269 cat >>confdefs.h <<\_ACEOF
22270#define HAVE_STD_HASH_MAP 1
22271_ACEOF
22272
22273else
22274 echo "$as_me: failed program was:" >&5
22275sed 's/^/| /' conftest.$ac_ext >&5
22276
22277echo "$as_me:$LINENO: result: no" >&5
22278echo "${ECHO_T}no" >&6
22279fi
ac1cb8d3 22280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22281
22282fi
22283
22284
22285
22286 if test "${ac_cv_header_ext_hash_map+set}" = set; then
22287 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22288echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22289if test "${ac_cv_header_ext_hash_map+set}" = set; then
22290 echo $ECHO_N "(cached) $ECHO_C" >&6
22291fi
22292echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22293echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22294else
22295 # Is the header compilable?
22296echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
22297echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
22298cat >conftest.$ac_ext <<_ACEOF
22299/* confdefs.h. */
22300_ACEOF
22301cat confdefs.h >>conftest.$ac_ext
22302cat >>conftest.$ac_ext <<_ACEOF
22303/* end confdefs.h. */
22304$ac_includes_default
22305#include <ext/hash_map>
22306_ACEOF
22307rm -f conftest.$ac_objext
22308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22309 (eval $ac_compile) 2>conftest.er1
bdcade0a 22310 ac_status=$?
ac1cb8d3
VS
22311 grep -v '^ *+' conftest.er1 >conftest.err
22312 rm -f conftest.er1
22313 cat conftest.err >&5
bdcade0a
MB
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } &&
6ebeb4c7 22316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; } &&
22322 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22324 (eval $ac_try) 2>&5
22325 ac_status=$?
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; }; then
22328 ac_header_compiler=yes
22329else
22330 echo "$as_me: failed program was:" >&5
22331sed 's/^/| /' conftest.$ac_ext >&5
22332
22333ac_header_compiler=no
22334fi
ac1cb8d3 22335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22336echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22337echo "${ECHO_T}$ac_header_compiler" >&6
22338
22339# Is the header present?
22340echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22341echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22342cat >conftest.$ac_ext <<_ACEOF
22343/* confdefs.h. */
22344_ACEOF
22345cat confdefs.h >>conftest.$ac_ext
22346cat >>conftest.$ac_ext <<_ACEOF
22347/* end confdefs.h. */
22348#include <ext/hash_map>
22349_ACEOF
22350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22352 ac_status=$?
22353 grep -v '^ *+' conftest.er1 >conftest.err
22354 rm -f conftest.er1
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } >/dev/null; then
22358 if test -s conftest.err; then
22359 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22360 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22361 else
22362 ac_cpp_err=
22363 fi
22364else
22365 ac_cpp_err=yes
22366fi
22367if test -z "$ac_cpp_err"; then
22368 ac_header_preproc=yes
22369else
22370 echo "$as_me: failed program was:" >&5
22371sed 's/^/| /' conftest.$ac_ext >&5
22372
22373 ac_header_preproc=no
22374fi
22375rm -f conftest.err conftest.$ac_ext
22376echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22377echo "${ECHO_T}$ac_header_preproc" >&6
22378
22379# So? What about this header?
ac1cb8d3
VS
22380case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22381 yes:no: )
bdcade0a
MB
22382 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22383echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22384 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22385echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22386 ac_header_preproc=yes
bdcade0a 22387 ;;
ac1cb8d3 22388 no:yes:* )
bdcade0a
MB
22389 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22390echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22391 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22392echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22393 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22394echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22395 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22396echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22397 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22398echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22399 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22400echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22401 (
22402 cat <<\_ASBOX
ac1cb8d3
VS
22403## ----------------------------------------- ##
22404## Report this to wx-dev@lists.wxwidgets.org ##
22405## ----------------------------------------- ##
bdcade0a
MB
22406_ASBOX
22407 ) |
22408 sed "s/^/$as_me: WARNING: /" >&2
22409 ;;
22410esac
22411echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22412echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22413if test "${ac_cv_header_ext_hash_map+set}" = set; then
22414 echo $ECHO_N "(cached) $ECHO_C" >&6
22415else
22416 ac_cv_header_ext_hash_map=$ac_header_preproc
22417fi
22418echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22419echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22420
22421fi
22422if test $ac_cv_header_ext_hash_map = yes; then
22423 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22424echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22425 cat >conftest.$ac_ext <<_ACEOF
22426/* confdefs.h. */
22427_ACEOF
22428cat confdefs.h >>conftest.$ac_ext
22429cat >>conftest.$ac_ext <<_ACEOF
22430/* end confdefs.h. */
22431#include <ext/hash_map>
22432 #include <ext/hash_set>
22433int
22434main ()
22435{
22436__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22437 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22438 ;
22439 return 0;
22440}
22441_ACEOF
22442rm -f conftest.$ac_objext
22443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22444 (eval $ac_compile) 2>conftest.er1
bdcade0a 22445 ac_status=$?
ac1cb8d3
VS
22446 grep -v '^ *+' conftest.er1 >conftest.err
22447 rm -f conftest.er1
22448 cat conftest.err >&5
bdcade0a
MB
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); } &&
6ebeb4c7 22451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453 (eval $ac_try) 2>&5
22454 ac_status=$?
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); }; } &&
22457 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22463 echo "$as_me:$LINENO: result: yes" >&5
22464echo "${ECHO_T}yes" >&6
22465 cat >>confdefs.h <<\_ACEOF
22466#define HAVE_EXT_HASH_MAP 1
22467_ACEOF
22468
22469 cat >>confdefs.h <<\_ACEOF
22470#define HAVE_GNU_CXX_HASH_MAP 1
22471_ACEOF
22472
22473else
22474 echo "$as_me: failed program was:" >&5
22475sed 's/^/| /' conftest.$ac_ext >&5
22476
22477echo "$as_me:$LINENO: result: no" >&5
22478echo "${ECHO_T}no" >&6
22479fi
ac1cb8d3 22480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22481
22482fi
22483
22484
a848cd7e
SC
22485
22486 ac_ext=c
22487ac_cpp='$CPP $CPPFLAGS'
22488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22490ac_compiler_gnu=$ac_cv_c_compiler_gnu
22491
22492fi
22493
22494
22495SEARCH_INCLUDE="\
22496 /usr/local/include \
22497 \
22498 /usr/Motif-2.1/include \
22499 /usr/Motif-1.2/include \
22500 /usr/include/Motif1.2 \
a848cd7e
SC
22501 \
22502 /usr/dt/include \
22503 /usr/openwin/include \
22504 \
22505 /usr/include/Xm \
22506 \
22507 /usr/X11R6/include \
22508 /usr/X11R6.4/include \
22509 /usr/X11R5/include \
22510 /usr/X11R4/include \
22511 \
22512 /usr/include/X11R6 \
22513 /usr/include/X11R5 \
22514 /usr/include/X11R4 \
22515 \
22516 /usr/local/X11R6/include \
22517 /usr/local/X11R5/include \
22518 /usr/local/X11R4/include \
22519 \
22520 /usr/local/include/X11R6 \
22521 /usr/local/include/X11R5 \
22522 /usr/local/include/X11R4 \
22523 \
22524 /usr/X11/include \
22525 /usr/include/X11 \
22526 /usr/local/X11/include \
22527 /usr/local/include/X11 \
22528 \
a848cd7e 22529 /usr/XFree86/include/X11 \
e051b34e
MW
22530 /usr/pkg/include \
22531 \
a848cd7e
SC
22532 /usr/openwin/share/include"
22533
c687b303
VZ
22534case "${host}" in
22535 *-*-linux* | *-*-irix6* | *-*-solaris2* )
22536 echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837
VZ
22537echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
22538if test "${wx_cv_std_libpath+set}" = set; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22540else
22541
c687b303
VZ
22542 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
22543 for e in a so sl dylib dll.a; do
22544 libc="$d/libc.$e"
22545 if test -f $libc; then
22546 save_LIBS="$LIBS"
22547 LIBS="$libc"
22548 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
22549int main() { return 0; }
22550_ACEOF
22551rm -f conftest.$ac_objext conftest$ac_exeext
22552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22553 (eval $ac_link) 2>conftest.er1
22554 ac_status=$?
22555 grep -v '^ *+' conftest.er1 >conftest.err
22556 rm -f conftest.er1
22557 cat conftest.err >&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } &&
22560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22563 ac_status=$?
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; } &&
22566 { ac_try='test -s conftest$ac_exeext'
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; }; then
22572 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
22573else
22574 echo "$as_me: failed program was:" >&5
22575sed 's/^/| /' conftest.$ac_ext >&5
22576
22577fi
22578rm -f conftest.err conftest.$ac_objext \
22579 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
22580 LIBS="$save_LIBS"
22581 if test "x$wx_cv_std_libpath" != "x"; then
22582 break 2
22583 fi
22584 fi
22585 done
22586 done
22587 if test "x$wx_cv_std_libpath" = "x"; then
22588 wx_cv_std_libpath="lib"
0ad5d837 22589 fi
0ad5d837
VZ
22590
22591
22592fi
22593echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
22594echo "${ECHO_T}$wx_cv_std_libpath" >&6
c687b303
VZ
22595 ;;
22596
22597 *)
22598 wx_cv_std_libpath="lib";
22599 ;;
22600esac
0ad5d837
VZ
22601
22602SEARCH_LIB=`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g`
a848cd7e 22603
3eca31dc
MW
22604if test "$build" != "$host" -a "$GCC" = yes; then
22605 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22606 cross_root=`dirname $cross_root`
22607 cross_root=`dirname $cross_root`
22608
22609 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22610 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22611
22612 if test -z "$PKG_CONFIG_PATH"; then
22613 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22614 export PKG_CONFIG_PATH
22615 fi
22616
22617 if test -z "$x_includes" -o "$x_includes" = NONE; then
22618
22619ac_find_includes=
22620for ac_dir in $SEARCH_INCLUDE /usr/include;
22621 do
22622 if test -f "$ac_dir/X11/Intrinsic.h"; then
22623 ac_find_includes=$ac_dir
22624 break
22625 fi
22626 done
22627
22628 x_includes=$ac_find_includes
22629 fi
22630 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22631
0ad5d837
VZ
22632
22633 ac_find_libraries=
22634 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
22635 do
22636 for ac_extension in a so sl dylib dll.a; do
22637 if test -f "$ac_dir/libXt.$ac_extension"; then
22638 ac_find_libraries=$ac_dir
22639 break 2
22640 fi
22641 done
22642 done
22643
0ad5d837
VZ
22644 if test "x$ac_find_libraries" = "x" ; then
22645
22646 ac_find_libraries=
22647 for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
22648 do
22649 for ac_extension in a so sl dylib dll.a; do
22650 if test -f "$ac_dir/libXt.$ac_extension"; then
22651 ac_find_libraries=$ac_dir
22652 break 2
22653 fi
22654 done
22655 done
22656
22657 if test "x$ac_find_libraries" != "x" ; then
22658 ac_find_libraries="default location"
22659 fi
22660 fi
22661
3eca31dc
MW
22662 x_libraries=$ac_find_libraries
22663 fi
22664 fi
22665fi
22666
a848cd7e
SC
22667
22668cat >confcache <<\_ACEOF
22669# This file is a shell script that caches the results of configure
22670# tests run on this system so they can be shared between configure
22671# scripts and configure runs, see configure's option --config-cache.
22672# It is not useful on other systems. If it contains results you don't
22673# want to keep, you may remove or edit it.
22674#
22675# config.status only pays attention to the cache file if you give it
22676# the --recheck option to rerun configure.
22677#
22678# `ac_cv_env_foo' variables (set or unset) will be overridden when
22679# loading this file, other *unset* `ac_cv_foo' will be assigned the
22680# following values.
22681
22682_ACEOF
22683
22684# The following way of writing the cache mishandles newlines in values,
22685# but we know of no workaround that is simple, portable, and efficient.
22686# So, don't put newlines in cache variables' values.
22687# Ultrix sh set writes to stderr and can't be redirected directly,
22688# and sets the high bit in the cache file unless we assign to the vars.
22689{
22690 (set) 2>&1 |
22691 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22692 *ac_space=\ *)
22693 # `set' does not quote correctly, so add quotes (double-quote
22694 # substitution turns \\\\ into \\, and sed turns \\ into \).
22695 sed -n \
ac1cb8d3
VS
22696 "s/'/'\\\\''/g;
22697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22698 ;;
22699 *)
22700 # `set' quotes correctly as required by POSIX, so do not add quotes.
22701 sed -n \
ac1cb8d3 22702 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22703 ;;
22704 esac;
22705} |
22706 sed '
22707 t clear
22708 : clear
22709 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22710 t end
22711 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22712 : end' >>confcache
22713if diff $cache_file confcache >/dev/null 2>&1; then :; else
22714 if test -w $cache_file; then
22715 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22716 cat confcache >$cache_file
22717 else
22718 echo "not updating unwritable cache $cache_file"
22719 fi
22720fi
22721rm -f confcache
22722
22723if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22724 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22725echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22726if test "${wx_cv_lib_glibc21+set}" = set; then
22727 echo $ECHO_N "(cached) $ECHO_C" >&6
22728else
22729
22730 cat >conftest.$ac_ext <<_ACEOF
22731/* confdefs.h. */
22732_ACEOF
22733cat confdefs.h >>conftest.$ac_ext
22734cat >>conftest.$ac_ext <<_ACEOF
22735/* end confdefs.h. */
22736#include <features.h>
22737int
22738main ()
22739{
22740
22741 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 22742 not glibc 2.1
a848cd7e
SC
22743 #endif
22744
22745 ;
22746 return 0;
22747}
22748_ACEOF
22749rm -f conftest.$ac_objext
22750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22751 (eval $ac_compile) 2>conftest.er1
a848cd7e 22752 ac_status=$?
ac1cb8d3
VS
22753 grep -v '^ *+' conftest.er1 >conftest.err
22754 rm -f conftest.er1
22755 cat conftest.err >&5
a848cd7e
SC
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } &&
6ebeb4c7 22758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22760 (eval $ac_try) 2>&5
22761 ac_status=$?
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); }; } &&
22764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766 (eval $ac_try) 2>&5
22767 ac_status=$?
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; }; then
22770
22771 wx_cv_lib_glibc21=yes
22772
22773else
22774 echo "$as_me: failed program was:" >&5
22775sed 's/^/| /' conftest.$ac_ext >&5
22776
22777
22778 wx_cv_lib_glibc21=no
22779
22780
22781fi
ac1cb8d3 22782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22783
22784fi
22785echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22786echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22787 if test "$wx_cv_lib_glibc21" = "yes"; then
22788 cat >>confdefs.h <<\_ACEOF
22789#define wxHAVE_GLIBC2 1
22790_ACEOF
22791
22792 fi
22793fi
22794
22795if test "x$wx_cv_lib_glibc21" = "xyes"; then
22796 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22797 cat >>confdefs.h <<\_ACEOF
22798#define _GNU_SOURCE 1
22799_ACEOF
22800
22801 fi
22802fi
22803
22804
22805
22806if test "$wxUSE_REGEX" != "no"; then
22807 cat >>confdefs.h <<\_ACEOF
22808#define wxUSE_REGEX 1
22809_ACEOF
22810
22811
22812 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22813 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22814echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22815 wxUSE_REGEX=builtin
22816 fi
22817
22818 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22819 if test "${ac_cv_header_regex_h+set}" = set; then
22820 echo "$as_me:$LINENO: checking for regex.h" >&5
22821echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22822if test "${ac_cv_header_regex_h+set}" = set; then
22823 echo $ECHO_N "(cached) $ECHO_C" >&6
22824fi
22825echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22826echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22827else
22828 # Is the header compilable?
22829echo "$as_me:$LINENO: checking regex.h usability" >&5
22830echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22831cat >conftest.$ac_ext <<_ACEOF
22832/* confdefs.h. */
22833_ACEOF
22834cat confdefs.h >>conftest.$ac_ext
22835cat >>conftest.$ac_ext <<_ACEOF
22836/* end confdefs.h. */
22837$ac_includes_default
22838#include <regex.h>
22839_ACEOF
22840rm -f conftest.$ac_objext
22841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22842 (eval $ac_compile) 2>conftest.er1
a848cd7e 22843 ac_status=$?
ac1cb8d3
VS
22844 grep -v '^ *+' conftest.er1 >conftest.err
22845 rm -f conftest.er1
22846 cat conftest.err >&5
a848cd7e
SC
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); } &&
6ebeb4c7 22849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22851 (eval $ac_try) 2>&5
22852 ac_status=$?
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); }; } &&
22855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857 (eval $ac_try) 2>&5
22858 ac_status=$?
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); }; }; then
22861 ac_header_compiler=yes
22862else
22863 echo "$as_me: failed program was:" >&5
22864sed 's/^/| /' conftest.$ac_ext >&5
22865
22866ac_header_compiler=no
22867fi
ac1cb8d3 22868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22869echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22870echo "${ECHO_T}$ac_header_compiler" >&6
22871
22872# Is the header present?
22873echo "$as_me:$LINENO: checking regex.h presence" >&5
22874echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22875cat >conftest.$ac_ext <<_ACEOF
22876/* confdefs.h. */
22877_ACEOF
22878cat confdefs.h >>conftest.$ac_ext
22879cat >>conftest.$ac_ext <<_ACEOF
22880/* end confdefs.h. */
22881#include <regex.h>
22882_ACEOF
22883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22885 ac_status=$?
22886 grep -v '^ *+' conftest.er1 >conftest.err
22887 rm -f conftest.er1
22888 cat conftest.err >&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } >/dev/null; then
22891 if test -s conftest.err; then
22892 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22894 else
22895 ac_cpp_err=
22896 fi
22897else
22898 ac_cpp_err=yes
22899fi
22900if test -z "$ac_cpp_err"; then
22901 ac_header_preproc=yes
22902else
22903 echo "$as_me: failed program was:" >&5
22904sed 's/^/| /' conftest.$ac_ext >&5
22905
22906 ac_header_preproc=no
22907fi
22908rm -f conftest.err conftest.$ac_ext
22909echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22910echo "${ECHO_T}$ac_header_preproc" >&6
22911
22912# So? What about this header?
ac1cb8d3
VS
22913case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22914 yes:no: )
a848cd7e
SC
22915 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22916echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22917 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22918echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22919 ac_header_preproc=yes
a848cd7e 22920 ;;
ac1cb8d3 22921 no:yes:* )
a848cd7e
SC
22922 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22923echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22924 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22925echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22926 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22927echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22928 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22929echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22930 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22931echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22932 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22933echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22934 (
22935 cat <<\_ASBOX
ac1cb8d3
VS
22936## ----------------------------------------- ##
22937## Report this to wx-dev@lists.wxwidgets.org ##
22938## ----------------------------------------- ##
a848cd7e
SC
22939_ASBOX
22940 ) |
22941 sed "s/^/$as_me: WARNING: /" >&2
22942 ;;
22943esac
22944echo "$as_me:$LINENO: checking for regex.h" >&5
22945echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22946if test "${ac_cv_header_regex_h+set}" = set; then
22947 echo $ECHO_N "(cached) $ECHO_C" >&6
22948else
22949 ac_cv_header_regex_h=$ac_header_preproc
22950fi
22951echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22952echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22953
22954fi
22955if test $ac_cv_header_regex_h = yes; then
22956
22957for ac_func in regcomp
22958do
22959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22960echo "$as_me:$LINENO: checking for $ac_func" >&5
22961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22962if eval "test \"\${$as_ac_var+set}\" = set"; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22964else
22965 cat >conftest.$ac_ext <<_ACEOF
22966/* confdefs.h. */
22967_ACEOF
22968cat confdefs.h >>conftest.$ac_ext
22969cat >>conftest.$ac_ext <<_ACEOF
22970/* end confdefs.h. */
ac1cb8d3
VS
22971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22973#define $ac_func innocuous_$ac_func
22974
a848cd7e
SC
22975/* System header to define __stub macros and hopefully few prototypes,
22976 which can conflict with char $ac_func (); below.
22977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22978 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22979
a848cd7e
SC
22980#ifdef __STDC__
22981# include <limits.h>
22982#else
22983# include <assert.h>
22984#endif
ac1cb8d3
VS
22985
22986#undef $ac_func
22987
a848cd7e
SC
22988/* Override any gcc2 internal prototype to avoid an error. */
22989#ifdef __cplusplus
22990extern "C"
22991{
22992#endif
22993/* We use char because int might match the return type of a gcc2
22994 builtin and then its argument prototype would still apply. */
22995char $ac_func ();
22996/* The GNU C library defines this for functions which it implements
22997 to always fail with ENOSYS. Some functions are actually named
22998 something starting with __ and the normal name is an alias. */
22999#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23000choke me
23001#else
23002char (*f) () = $ac_func;
23003#endif
23004#ifdef __cplusplus
23005}
23006#endif
23007
23008int
23009main ()
23010{
23011return f != $ac_func;
23012 ;
23013 return 0;
23014}
23015_ACEOF
23016rm -f conftest.$ac_objext conftest$ac_exeext
23017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23018 (eval $ac_link) 2>conftest.er1
a848cd7e 23019 ac_status=$?
ac1cb8d3
VS
23020 grep -v '^ *+' conftest.er1 >conftest.err
23021 rm -f conftest.er1
23022 cat conftest.err >&5
a848cd7e
SC
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } &&
6ebeb4c7 23025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23028 ac_status=$?
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); }; } &&
23031 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033 (eval $ac_try) 2>&5
23034 ac_status=$?
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); }; }; then
23037 eval "$as_ac_var=yes"
23038else
23039 echo "$as_me: failed program was:" >&5
23040sed 's/^/| /' conftest.$ac_ext >&5
23041
23042eval "$as_ac_var=no"
23043fi
ac1cb8d3
VS
23044rm -f conftest.err conftest.$ac_objext \
23045 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23046fi
23047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23048echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23049if test `eval echo '${'$as_ac_var'}'` = yes; then
23050 cat >>confdefs.h <<_ACEOF
23051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23052_ACEOF
23053
23054fi
23055done
23056
23057fi
23058
23059
23060
23061 if test "x$ac_cv_func_regcomp" != "xyes"; then
23062 if test "$wxUSE_REGEX" = "sys" ; then
23063 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23064echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23065 { (exit 1); exit 1; }; }
23066 else
23067 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23068echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23069 wxUSE_REGEX=builtin
23070 fi
23071 else
23072 wxUSE_REGEX=sys
23073 cat >>confdefs.h <<\_ACEOF
23074#define WX_NO_REGEX_ADVANCED 1
23075_ACEOF
23076
23077 fi
23078 fi
23079fi
23080
23081
23082ZLIB_LINK=
23083if test "$wxUSE_ZLIB" != "no" ; then
23084 cat >>confdefs.h <<\_ACEOF
23085#define wxUSE_ZLIB 1
23086_ACEOF
23087
23088
23089 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23090 if test "$USE_DARWIN" = 1; then
23091 system_zlib_h_ok="yes"
23092 else
23093 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23094echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23095if test "${ac_cv_header_zlib_h+set}" = set; then
23096 echo $ECHO_N "(cached) $ECHO_C" >&6
23097else
23098 if test "$cross_compiling" = yes; then
23099 unset ac_cv_header_zlib_h
23100
23101else
23102 cat >conftest.$ac_ext <<_ACEOF
23103/* confdefs.h. */
23104_ACEOF
23105cat confdefs.h >>conftest.$ac_ext
23106cat >>conftest.$ac_ext <<_ACEOF
23107/* end confdefs.h. */
23108
23109 #include <zlib.h>
23110 #include <stdio.h>
23111
23112 int main()
23113 {
23114 FILE *f=fopen("conftestval", "w");
23115 if (!f) exit(1);
23116 fprintf(f, "%s",
23117 ZLIB_VERSION[0] == '1' &&
23118 (ZLIB_VERSION[2] > '1' ||
23119 (ZLIB_VERSION[2] == '1' &&
23120 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23121 exit(0);
23122 }
23123
23124_ACEOF
23125rm -f conftest$ac_exeext
23126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23127 (eval $ac_link) 2>&5
23128 ac_status=$?
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; }; then
23136 ac_cv_header_zlib_h=`cat conftestval`
23137else
23138 echo "$as_me: program exited with status $ac_status" >&5
23139echo "$as_me: failed program was:" >&5
23140sed 's/^/| /' conftest.$ac_ext >&5
23141
23142( exit $ac_status )
23143ac_cv_header_zlib_h=no
23144fi
ac1cb8d3 23145rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23146fi
23147
23148fi
23149echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23150echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23151 if test "${ac_cv_header_zlib_h+set}" = set; then
23152 echo "$as_me:$LINENO: checking for zlib.h" >&5
23153echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23154if test "${ac_cv_header_zlib_h+set}" = set; then
23155 echo $ECHO_N "(cached) $ECHO_C" >&6
23156fi
23157echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23158echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23159else
23160 # Is the header compilable?
23161echo "$as_me:$LINENO: checking zlib.h usability" >&5
23162echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23163cat >conftest.$ac_ext <<_ACEOF
23164/* confdefs.h. */
23165_ACEOF
23166cat confdefs.h >>conftest.$ac_ext
23167cat >>conftest.$ac_ext <<_ACEOF
23168/* end confdefs.h. */
23169$ac_includes_default
23170#include <zlib.h>
23171_ACEOF
23172rm -f conftest.$ac_objext
23173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23174 (eval $ac_compile) 2>conftest.er1
a848cd7e 23175 ac_status=$?
ac1cb8d3
VS
23176 grep -v '^ *+' conftest.er1 >conftest.err
23177 rm -f conftest.er1
23178 cat conftest.err >&5
a848cd7e
SC
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } &&
6ebeb4c7 23181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183 (eval $ac_try) 2>&5
23184 ac_status=$?
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; } &&
23187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23190 ac_status=$?
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; }; then
23193 ac_header_compiler=yes
23194else
23195 echo "$as_me: failed program was:" >&5
23196sed 's/^/| /' conftest.$ac_ext >&5
23197
23198ac_header_compiler=no
23199fi
ac1cb8d3 23200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23201echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23202echo "${ECHO_T}$ac_header_compiler" >&6
23203
23204# Is the header present?
23205echo "$as_me:$LINENO: checking zlib.h presence" >&5
23206echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
23207cat >conftest.$ac_ext <<_ACEOF
23208/* confdefs.h. */
23209_ACEOF
23210cat confdefs.h >>conftest.$ac_ext
23211cat >>conftest.$ac_ext <<_ACEOF
23212/* end confdefs.h. */
23213#include <zlib.h>
23214_ACEOF
23215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23217 ac_status=$?
23218 grep -v '^ *+' conftest.er1 >conftest.err
23219 rm -f conftest.er1
23220 cat conftest.err >&5
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); } >/dev/null; then
23223 if test -s conftest.err; then
23224 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23226 else
23227 ac_cpp_err=
23228 fi
23229else
23230 ac_cpp_err=yes
23231fi
23232if test -z "$ac_cpp_err"; then
23233 ac_header_preproc=yes
23234else
23235 echo "$as_me: failed program was:" >&5
23236sed 's/^/| /' conftest.$ac_ext >&5
23237
23238 ac_header_preproc=no
23239fi
23240rm -f conftest.err conftest.$ac_ext
23241echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23242echo "${ECHO_T}$ac_header_preproc" >&6
23243
23244# So? What about this header?
ac1cb8d3
VS
23245case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23246 yes:no: )
a848cd7e
SC
23247 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23248echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23249 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23250echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23251 ac_header_preproc=yes
a848cd7e 23252 ;;
ac1cb8d3 23253 no:yes:* )
a848cd7e
SC
23254 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23255echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23256 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23257echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23258 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23259echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23260 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23261echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23262 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23263echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23264 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23265echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23266 (
23267 cat <<\_ASBOX
ac1cb8d3
VS
23268## ----------------------------------------- ##
23269## Report this to wx-dev@lists.wxwidgets.org ##
23270## ----------------------------------------- ##
a848cd7e
SC
23271_ASBOX
23272 ) |
23273 sed "s/^/$as_me: WARNING: /" >&2
23274 ;;
23275esac
23276echo "$as_me:$LINENO: checking for zlib.h" >&5
23277echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23278if test "${ac_cv_header_zlib_h+set}" = set; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
23280else
23281 ac_cv_header_zlib_h=$ac_header_preproc
23282fi
23283echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23284echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23285
23286fi
23287
23288
23289
23290 system_zlib_h_ok=$ac_cv_header_zlib_h
23291 fi
23292
23293 if test "$system_zlib_h_ok" = "yes"; then
23294 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
23295echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
23296if test "${ac_cv_lib_z_deflate+set}" = set; then
23297 echo $ECHO_N "(cached) $ECHO_C" >&6
23298else
23299 ac_check_lib_save_LIBS=$LIBS
23300LIBS="-lz $LIBS"
23301cat >conftest.$ac_ext <<_ACEOF
23302/* confdefs.h. */
23303_ACEOF
23304cat confdefs.h >>conftest.$ac_ext
23305cat >>conftest.$ac_ext <<_ACEOF
23306/* end confdefs.h. */
23307
23308/* Override any gcc2 internal prototype to avoid an error. */
23309#ifdef __cplusplus
23310extern "C"
23311#endif
23312/* We use char because int might match the return type of a gcc2
23313 builtin and then its argument prototype would still apply. */
23314char deflate ();
23315int
23316main ()
23317{
23318deflate ();
23319 ;
23320 return 0;
23321}
23322_ACEOF
23323rm -f conftest.$ac_objext conftest$ac_exeext
23324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23325 (eval $ac_link) 2>conftest.er1
a848cd7e 23326 ac_status=$?
ac1cb8d3
VS
23327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
a848cd7e
SC
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } &&
6ebeb4c7 23332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; } &&
23338 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23341 ac_status=$?
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; }; then
23344 ac_cv_lib_z_deflate=yes
23345else
23346 echo "$as_me: failed program was:" >&5
23347sed 's/^/| /' conftest.$ac_ext >&5
23348
23349ac_cv_lib_z_deflate=no
23350fi
ac1cb8d3
VS
23351rm -f conftest.err conftest.$ac_objext \
23352 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23353LIBS=$ac_check_lib_save_LIBS
23354fi
23355echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
23356echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
23357if test $ac_cv_lib_z_deflate = yes; then
23358 ZLIB_LINK=" -lz"
23359fi
23360
23361 fi
23362
23363 if test "x$ZLIB_LINK" = "x" ; then
23364 if test "$wxUSE_ZLIB" = "sys" ; then
23365 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
23366echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
23367 { (exit 1); exit 1; }; }
23368 else
23369 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
23370echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
23371 wxUSE_ZLIB=builtin
23372 fi
23373 else
23374 wxUSE_ZLIB=sys
23375 fi
23376 fi
23377fi
23378
23379
23380PNG_LINK=
23381if test "$wxUSE_LIBPNG" != "no" ; then
23382 cat >>confdefs.h <<\_ACEOF
23383#define wxUSE_LIBPNG 1
23384_ACEOF
23385
23386
23387 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
23388 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
23389echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
23390 wxUSE_LIBPNG=sys
23391 fi
23392
23393 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
23394 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
23395echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
23396 wxUSE_LIBPNG=builtin
23397 fi
23398
23399 if test "$wxUSE_MGL" != 1 ; then
23400 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
23401 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
23402echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23403if test "${ac_cv_header_png_h+set}" = set; then
23404 echo $ECHO_N "(cached) $ECHO_C" >&6
23405else
23406 if test "$cross_compiling" = yes; then
23407 unset ac_cv_header_png_h
23408
23409else
23410 cat >conftest.$ac_ext <<_ACEOF
23411/* confdefs.h. */
23412_ACEOF
23413cat confdefs.h >>conftest.$ac_ext
23414cat >>conftest.$ac_ext <<_ACEOF
23415/* end confdefs.h. */
23416
23417 #include <png.h>
23418 #include <stdio.h>
23419
23420 int main()
23421 {
23422 FILE *f=fopen("conftestval", "w");
23423 if (!f) exit(1);
23424 fprintf(f, "%s",
23425 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23426 exit(0);
23427 }
23428
23429_ACEOF
23430rm -f conftest$ac_exeext
23431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23432 (eval $ac_link) 2>&5
23433 ac_status=$?
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437 (eval $ac_try) 2>&5
23438 ac_status=$?
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); }; }; then
23441 ac_cv_header_png_h=`cat conftestval`
23442else
23443 echo "$as_me: program exited with status $ac_status" >&5
23444echo "$as_me: failed program was:" >&5
23445sed 's/^/| /' conftest.$ac_ext >&5
23446
23447( exit $ac_status )
23448ac_cv_header_png_h=no
23449fi
ac1cb8d3 23450rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23451fi
23452
23453fi
23454echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23455echo "${ECHO_T}$ac_cv_header_png_h" >&6
23456 if test "${ac_cv_header_png_h+set}" = set; then
23457 echo "$as_me:$LINENO: checking for png.h" >&5
23458echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23459if test "${ac_cv_header_png_h+set}" = set; then
23460 echo $ECHO_N "(cached) $ECHO_C" >&6
23461fi
23462echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23463echo "${ECHO_T}$ac_cv_header_png_h" >&6
23464else
23465 # Is the header compilable?
23466echo "$as_me:$LINENO: checking png.h usability" >&5
23467echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23468cat >conftest.$ac_ext <<_ACEOF
23469/* confdefs.h. */
23470_ACEOF
23471cat confdefs.h >>conftest.$ac_ext
23472cat >>conftest.$ac_ext <<_ACEOF
23473/* end confdefs.h. */
23474$ac_includes_default
23475#include <png.h>
23476_ACEOF
23477rm -f conftest.$ac_objext
23478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23479 (eval $ac_compile) 2>conftest.er1
a848cd7e 23480 ac_status=$?
ac1cb8d3
VS
23481 grep -v '^ *+' conftest.er1 >conftest.err
23482 rm -f conftest.er1
23483 cat conftest.err >&5
a848cd7e
SC
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); } &&
6ebeb4c7 23486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488 (eval $ac_try) 2>&5
23489 ac_status=$?
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; } &&
23492 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494 (eval $ac_try) 2>&5
23495 ac_status=$?
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; }; then
23498 ac_header_compiler=yes
23499else
23500 echo "$as_me: failed program was:" >&5
23501sed 's/^/| /' conftest.$ac_ext >&5
23502
23503ac_header_compiler=no
23504fi
ac1cb8d3 23505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23506echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23507echo "${ECHO_T}$ac_header_compiler" >&6
23508
23509# Is the header present?
23510echo "$as_me:$LINENO: checking png.h presence" >&5
23511echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23512cat >conftest.$ac_ext <<_ACEOF
23513/* confdefs.h. */
23514_ACEOF
23515cat confdefs.h >>conftest.$ac_ext
23516cat >>conftest.$ac_ext <<_ACEOF
23517/* end confdefs.h. */
23518#include <png.h>
23519_ACEOF
23520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23522 ac_status=$?
23523 grep -v '^ *+' conftest.er1 >conftest.err
23524 rm -f conftest.er1
23525 cat conftest.err >&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } >/dev/null; then
23528 if test -s conftest.err; then
23529 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23531 else
23532 ac_cpp_err=
23533 fi
23534else
23535 ac_cpp_err=yes
23536fi
23537if test -z "$ac_cpp_err"; then
23538 ac_header_preproc=yes
23539else
23540 echo "$as_me: failed program was:" >&5
23541sed 's/^/| /' conftest.$ac_ext >&5
23542
23543 ac_header_preproc=no
23544fi
23545rm -f conftest.err conftest.$ac_ext
23546echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23547echo "${ECHO_T}$ac_header_preproc" >&6
23548
23549# So? What about this header?
ac1cb8d3
VS
23550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23551 yes:no: )
a848cd7e
SC
23552 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23553echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23554 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23555echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23556 ac_header_preproc=yes
a848cd7e 23557 ;;
ac1cb8d3 23558 no:yes:* )
a848cd7e
SC
23559 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23560echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23561 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23562echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23563 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23564echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23565 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23566echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23567 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23568echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23569 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23570echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23571 (
23572 cat <<\_ASBOX
ac1cb8d3
VS
23573## ----------------------------------------- ##
23574## Report this to wx-dev@lists.wxwidgets.org ##
23575## ----------------------------------------- ##
a848cd7e
SC
23576_ASBOX
23577 ) |
23578 sed "s/^/$as_me: WARNING: /" >&2
23579 ;;
23580esac
23581echo "$as_me:$LINENO: checking for png.h" >&5
23582echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23583if test "${ac_cv_header_png_h+set}" = set; then
23584 echo $ECHO_N "(cached) $ECHO_C" >&6
23585else
23586 ac_cv_header_png_h=$ac_header_preproc
23587fi
23588echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23589echo "${ECHO_T}$ac_cv_header_png_h" >&6
23590
23591fi
23592
23593
23594
23595 if test "$ac_cv_header_png_h" = "yes"; then
23596 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23597echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23598if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23599 echo $ECHO_N "(cached) $ECHO_C" >&6
23600else
23601 ac_check_lib_save_LIBS=$LIBS
23602LIBS="-lpng -lz -lm $LIBS"
23603cat >conftest.$ac_ext <<_ACEOF
23604/* confdefs.h. */
23605_ACEOF
23606cat confdefs.h >>conftest.$ac_ext
23607cat >>conftest.$ac_ext <<_ACEOF
23608/* end confdefs.h. */
23609
23610/* Override any gcc2 internal prototype to avoid an error. */
23611#ifdef __cplusplus
23612extern "C"
23613#endif
23614/* We use char because int might match the return type of a gcc2
23615 builtin and then its argument prototype would still apply. */
23616char png_check_sig ();
23617int
23618main ()
23619{
23620png_check_sig ();
23621 ;
23622 return 0;
23623}
23624_ACEOF
23625rm -f conftest.$ac_objext conftest$ac_exeext
23626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23627 (eval $ac_link) 2>conftest.er1
a848cd7e 23628 ac_status=$?
ac1cb8d3
VS
23629 grep -v '^ *+' conftest.er1 >conftest.err
23630 rm -f conftest.er1
23631 cat conftest.err >&5
a848cd7e
SC
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } &&
6ebeb4c7 23634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; } &&
23640 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23643 ac_status=$?
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; }; then
23646 ac_cv_lib_png_png_check_sig=yes
23647else
23648 echo "$as_me: failed program was:" >&5
23649sed 's/^/| /' conftest.$ac_ext >&5
23650
23651ac_cv_lib_png_png_check_sig=no
23652fi
ac1cb8d3
VS
23653rm -f conftest.err conftest.$ac_objext \
23654 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23655LIBS=$ac_check_lib_save_LIBS
23656fi
23657echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23658echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23659if test $ac_cv_lib_png_png_check_sig = yes; then
23660 PNG_LINK=" -lpng -lz"
23661fi
23662
23663 fi
23664
23665 if test "x$PNG_LINK" = "x" ; then
23666 if test "$wxUSE_LIBPNG" = "sys" ; then
23667 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23668echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23669 { (exit 1); exit 1; }; }
23670 else
23671 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23672echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23673 wxUSE_LIBPNG=builtin
23674 fi
23675 else
23676 wxUSE_LIBPNG=sys
23677 fi
23678 fi
23679 fi
23680
23681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23682fi
23683
23684
23685JPEG_LINK=
23686if test "$wxUSE_LIBJPEG" != "no" ; then
23687 cat >>confdefs.h <<\_ACEOF
23688#define wxUSE_LIBJPEG 1
23689_ACEOF
23690
23691
23692 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23693 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23694echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23695 wxUSE_LIBJPEG=sys
23696 fi
23697
23698 if test "$wxUSE_MGL" != 1 ; then
23699 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23700 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23701echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23702 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23703 echo $ECHO_N "(cached) $ECHO_C" >&6
23704else
23705 cat >conftest.$ac_ext <<_ACEOF
23706/* confdefs.h. */
23707_ACEOF
23708cat confdefs.h >>conftest.$ac_ext
23709cat >>conftest.$ac_ext <<_ACEOF
23710/* end confdefs.h. */
23711
23712 #undef HAVE_STDLIB_H
23713 #include <stdio.h>
23714 #include <jpeglib.h>
23715
23716int
23717main ()
23718{
23719
23720
23721 ;
23722 return 0;
23723}
23724_ACEOF
23725rm -f conftest.$ac_objext
23726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23727 (eval $ac_compile) 2>conftest.er1
a848cd7e 23728 ac_status=$?
ac1cb8d3
VS
23729 grep -v '^ *+' conftest.er1 >conftest.err
23730 rm -f conftest.er1
23731 cat conftest.err >&5
a848cd7e
SC
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); } &&
6ebeb4c7 23734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; } &&
23740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742 (eval $ac_try) 2>&5
23743 ac_status=$?
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; }; then
23746 ac_cv_header_jpeglib_h=yes
23747else
23748 echo "$as_me: failed program was:" >&5
23749sed 's/^/| /' conftest.$ac_ext >&5
23750
23751ac_cv_header_jpeglib_h=no
23752
23753fi
ac1cb8d3 23754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23755
23756fi
23757
23758 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23759echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23760
23761 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23762 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23763echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23764if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23765 echo $ECHO_N "(cached) $ECHO_C" >&6
23766else
23767 ac_check_lib_save_LIBS=$LIBS
23768LIBS="-ljpeg $LIBS"
23769cat >conftest.$ac_ext <<_ACEOF
23770/* confdefs.h. */
23771_ACEOF
23772cat confdefs.h >>conftest.$ac_ext
23773cat >>conftest.$ac_ext <<_ACEOF
23774/* end confdefs.h. */
23775
23776/* Override any gcc2 internal prototype to avoid an error. */
23777#ifdef __cplusplus
23778extern "C"
23779#endif
23780/* We use char because int might match the return type of a gcc2
23781 builtin and then its argument prototype would still apply. */
23782char jpeg_read_header ();
23783int
23784main ()
23785{
23786jpeg_read_header ();
23787 ;
23788 return 0;
23789}
23790_ACEOF
23791rm -f conftest.$ac_objext conftest$ac_exeext
23792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23793 (eval $ac_link) 2>conftest.er1
a848cd7e 23794 ac_status=$?
ac1cb8d3
VS
23795 grep -v '^ *+' conftest.er1 >conftest.err
23796 rm -f conftest.er1
23797 cat conftest.err >&5
a848cd7e
SC
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } &&
6ebeb4c7 23800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802 (eval $ac_try) 2>&5
23803 ac_status=$?
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); }; } &&
23806 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808 (eval $ac_try) 2>&5
23809 ac_status=$?
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; }; then
23812 ac_cv_lib_jpeg_jpeg_read_header=yes
23813else
23814 echo "$as_me: failed program was:" >&5
23815sed 's/^/| /' conftest.$ac_ext >&5
23816
23817ac_cv_lib_jpeg_jpeg_read_header=no
23818fi
ac1cb8d3
VS
23819rm -f conftest.err conftest.$ac_objext \
23820 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23821LIBS=$ac_check_lib_save_LIBS
23822fi
23823echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23824echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23825if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23826 JPEG_LINK=" -ljpeg"
23827fi
23828
23829 fi
23830
23831 if test "x$JPEG_LINK" = "x" ; then
23832 if test "$wxUSE_LIBJPEG" = "sys" ; then
23833 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23834echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23835 { (exit 1); exit 1; }; }
23836 else
23837 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23838echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23839 wxUSE_LIBJPEG=builtin
23840 fi
23841 else
23842 wxUSE_LIBJPEG=sys
23843 fi
23844 fi
23845 fi
23846fi
23847
23848
23849TIFF_LINK=
23850TIFF_PREREQ_LINKS=-lm
23851if test "$wxUSE_LIBTIFF" != "no" ; then
23852 cat >>confdefs.h <<\_ACEOF
23853#define wxUSE_LIBTIFF 1
23854_ACEOF
23855
23856
23857 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23858 if test "$wxUSE_LIBJPEG" = "sys"; then
23859 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23860 fi
23861 if test "$wxUSE_ZLIB" = "sys"; then
23862 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23863 fi
23864 if test "${ac_cv_header_tiffio_h+set}" = set; then
23865 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23866echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23867if test "${ac_cv_header_tiffio_h+set}" = set; then
23868 echo $ECHO_N "(cached) $ECHO_C" >&6
23869fi
23870echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23871echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23872else
23873 # Is the header compilable?
23874echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23875echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23876cat >conftest.$ac_ext <<_ACEOF
23877/* confdefs.h. */
23878_ACEOF
23879cat confdefs.h >>conftest.$ac_ext
23880cat >>conftest.$ac_ext <<_ACEOF
23881/* end confdefs.h. */
23882$ac_includes_default
23883#include <tiffio.h>
23884_ACEOF
23885rm -f conftest.$ac_objext
23886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23887 (eval $ac_compile) 2>conftest.er1
a848cd7e 23888 ac_status=$?
ac1cb8d3
VS
23889 grep -v '^ *+' conftest.er1 >conftest.err
23890 rm -f conftest.er1
23891 cat conftest.err >&5
a848cd7e
SC
23892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); } &&
6ebeb4c7 23894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896 (eval $ac_try) 2>&5
23897 ac_status=$?
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; } &&
23900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902 (eval $ac_try) 2>&5
23903 ac_status=$?
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); }; }; then
23906 ac_header_compiler=yes
23907else
23908 echo "$as_me: failed program was:" >&5
23909sed 's/^/| /' conftest.$ac_ext >&5
23910
23911ac_header_compiler=no
23912fi
ac1cb8d3 23913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23914echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23915echo "${ECHO_T}$ac_header_compiler" >&6
23916
23917# Is the header present?
23918echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23919echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23920cat >conftest.$ac_ext <<_ACEOF
23921/* confdefs.h. */
23922_ACEOF
23923cat confdefs.h >>conftest.$ac_ext
23924cat >>conftest.$ac_ext <<_ACEOF
23925/* end confdefs.h. */
23926#include <tiffio.h>
23927_ACEOF
23928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23930 ac_status=$?
23931 grep -v '^ *+' conftest.er1 >conftest.err
23932 rm -f conftest.er1
23933 cat conftest.err >&5
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); } >/dev/null; then
23936 if test -s conftest.err; then
23937 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23939 else
23940 ac_cpp_err=
23941 fi
23942else
23943 ac_cpp_err=yes
23944fi
23945if test -z "$ac_cpp_err"; then
23946 ac_header_preproc=yes
23947else
23948 echo "$as_me: failed program was:" >&5
23949sed 's/^/| /' conftest.$ac_ext >&5
23950
23951 ac_header_preproc=no
23952fi
23953rm -f conftest.err conftest.$ac_ext
23954echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23955echo "${ECHO_T}$ac_header_preproc" >&6
23956
23957# So? What about this header?
ac1cb8d3
VS
23958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23959 yes:no: )
a848cd7e
SC
23960 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23961echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23962 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23963echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23964 ac_header_preproc=yes
a848cd7e 23965 ;;
ac1cb8d3 23966 no:yes:* )
a848cd7e
SC
23967 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23968echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23969 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23970echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23971 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23972echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23973 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23974echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23975 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23976echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23977 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23978echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23979 (
23980 cat <<\_ASBOX
ac1cb8d3
VS
23981## ----------------------------------------- ##
23982## Report this to wx-dev@lists.wxwidgets.org ##
23983## ----------------------------------------- ##
a848cd7e
SC
23984_ASBOX
23985 ) |
23986 sed "s/^/$as_me: WARNING: /" >&2
23987 ;;
23988esac
23989echo "$as_me:$LINENO: checking for tiffio.h" >&5
23990echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23991if test "${ac_cv_header_tiffio_h+set}" = set; then
23992 echo $ECHO_N "(cached) $ECHO_C" >&6
23993else
23994 ac_cv_header_tiffio_h=$ac_header_preproc
23995fi
23996echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23997echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23998
23999fi
24000if test $ac_cv_header_tiffio_h = yes; then
24001
24002 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24003echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24004if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24005 echo $ECHO_N "(cached) $ECHO_C" >&6
24006else
24007 ac_check_lib_save_LIBS=$LIBS
24008LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24009cat >conftest.$ac_ext <<_ACEOF
24010/* confdefs.h. */
24011_ACEOF
24012cat confdefs.h >>conftest.$ac_ext
24013cat >>conftest.$ac_ext <<_ACEOF
24014/* end confdefs.h. */
24015
24016/* Override any gcc2 internal prototype to avoid an error. */
24017#ifdef __cplusplus
24018extern "C"
24019#endif
24020/* We use char because int might match the return type of a gcc2
24021 builtin and then its argument prototype would still apply. */
24022char TIFFError ();
24023int
24024main ()
24025{
24026TIFFError ();
24027 ;
24028 return 0;
24029}
24030_ACEOF
24031rm -f conftest.$ac_objext conftest$ac_exeext
24032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24033 (eval $ac_link) 2>conftest.er1
a848cd7e 24034 ac_status=$?
ac1cb8d3
VS
24035 grep -v '^ *+' conftest.er1 >conftest.err
24036 rm -f conftest.er1
24037 cat conftest.err >&5
a848cd7e
SC
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } &&
6ebeb4c7 24040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24042 (eval $ac_try) 2>&5
24043 ac_status=$?
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); }; } &&
24046 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24048 (eval $ac_try) 2>&5
24049 ac_status=$?
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); }; }; then
24052 ac_cv_lib_tiff_TIFFError=yes
24053else
24054 echo "$as_me: failed program was:" >&5
24055sed 's/^/| /' conftest.$ac_ext >&5
24056
24057ac_cv_lib_tiff_TIFFError=no
24058fi
ac1cb8d3
VS
24059rm -f conftest.err conftest.$ac_objext \
24060 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24061LIBS=$ac_check_lib_save_LIBS
24062fi
24063echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24064echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24065if test $ac_cv_lib_tiff_TIFFError = yes; then
24066 TIFF_LINK=" -ltiff"
24067fi
24068
24069
24070
24071fi
24072
24073
24074
24075 if test "x$TIFF_LINK" = "x" ; then
24076 if test "$wxUSE_LIBTIFF" = "sys" ; then
24077 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24078echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24079 { (exit 1); exit 1; }; }
24080 else
24081 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24082echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24083 wxUSE_LIBTIFF=builtin
24084 fi
24085 else
24086 wxUSE_LIBTIFF=sys
24087 fi
24088 fi
24089fi
24090
24091
47a7e797
MW
24092if test "$wxUSE_WCHAR_T" != "yes"; then
24093 if test "$wxUSE_EXPAT" != "no"; then
24094 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24095echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24096 wxUSE_EXPAT=no
24097 fi
24098 if test "$wxUSE_XML" != "no"; then
24099 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24100echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24101 wxUSE_XML=no
24102 fi
24103fi
24104
a848cd7e
SC
24105if test "$wxUSE_EXPAT" != "no"; then
24106 wxUSE_XML=yes
24107 cat >>confdefs.h <<\_ACEOF
24108#define wxUSE_EXPAT 1
24109_ACEOF
24110
24111 cat >>confdefs.h <<\_ACEOF
24112#define wxUSE_XML 1
24113_ACEOF
24114
24115
24116 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24117 if test "${ac_cv_header_expat_h+set}" = set; then
24118 echo "$as_me:$LINENO: checking for expat.h" >&5
24119echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24120if test "${ac_cv_header_expat_h+set}" = set; then
24121 echo $ECHO_N "(cached) $ECHO_C" >&6
24122fi
24123echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24124echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24125else
24126 # Is the header compilable?
24127echo "$as_me:$LINENO: checking expat.h usability" >&5
24128echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24129cat >conftest.$ac_ext <<_ACEOF
24130/* confdefs.h. */
24131_ACEOF
24132cat confdefs.h >>conftest.$ac_ext
24133cat >>conftest.$ac_ext <<_ACEOF
24134/* end confdefs.h. */
24135$ac_includes_default
24136#include <expat.h>
24137_ACEOF
24138rm -f conftest.$ac_objext
24139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24140 (eval $ac_compile) 2>conftest.er1
a848cd7e 24141 ac_status=$?
ac1cb8d3
VS
24142 grep -v '^ *+' conftest.er1 >conftest.err
24143 rm -f conftest.er1
24144 cat conftest.err >&5
a848cd7e
SC
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); } &&
6ebeb4c7 24147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149 (eval $ac_try) 2>&5
24150 ac_status=$?
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); }; } &&
24153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155 (eval $ac_try) 2>&5
24156 ac_status=$?
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); }; }; then
24159 ac_header_compiler=yes
24160else
24161 echo "$as_me: failed program was:" >&5
24162sed 's/^/| /' conftest.$ac_ext >&5
24163
24164ac_header_compiler=no
24165fi
ac1cb8d3 24166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24168echo "${ECHO_T}$ac_header_compiler" >&6
24169
24170# Is the header present?
24171echo "$as_me:$LINENO: checking expat.h presence" >&5
24172echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
24173cat >conftest.$ac_ext <<_ACEOF
24174/* confdefs.h. */
24175_ACEOF
24176cat confdefs.h >>conftest.$ac_ext
24177cat >>conftest.$ac_ext <<_ACEOF
24178/* end confdefs.h. */
24179#include <expat.h>
24180_ACEOF
24181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24183 ac_status=$?
24184 grep -v '^ *+' conftest.er1 >conftest.err
24185 rm -f conftest.er1
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } >/dev/null; then
24189 if test -s conftest.err; then
24190 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24192 else
24193 ac_cpp_err=
24194 fi
24195else
24196 ac_cpp_err=yes
24197fi
24198if test -z "$ac_cpp_err"; then
24199 ac_header_preproc=yes
24200else
24201 echo "$as_me: failed program was:" >&5
24202sed 's/^/| /' conftest.$ac_ext >&5
24203
24204 ac_header_preproc=no
24205fi
24206rm -f conftest.err conftest.$ac_ext
24207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24208echo "${ECHO_T}$ac_header_preproc" >&6
24209
24210# So? What about this header?
ac1cb8d3
VS
24211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24212 yes:no: )
a848cd7e
SC
24213 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
24214echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24215 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
24216echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
24217 ac_header_preproc=yes
a848cd7e 24218 ;;
ac1cb8d3 24219 no:yes:* )
a848cd7e
SC
24220 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
24221echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24222 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
24223echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
24224 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
24225echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
24226 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
24227echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24228 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
24229echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24230 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
24231echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24232 (
24233 cat <<\_ASBOX
ac1cb8d3
VS
24234## ----------------------------------------- ##
24235## Report this to wx-dev@lists.wxwidgets.org ##
24236## ----------------------------------------- ##
a848cd7e
SC
24237_ASBOX
24238 ) |
24239 sed "s/^/$as_me: WARNING: /" >&2
24240 ;;
24241esac
24242echo "$as_me:$LINENO: checking for expat.h" >&5
24243echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24244if test "${ac_cv_header_expat_h+set}" = set; then
24245 echo $ECHO_N "(cached) $ECHO_C" >&6
24246else
24247 ac_cv_header_expat_h=$ac_header_preproc
24248fi
24249echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24250echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24251
24252fi
24253if test $ac_cv_header_expat_h = yes; then
24254 found_expat_h=1
24255fi
24256
24257
24258 if test "x$found_expat_h" = "x1"; then
24259 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
24260echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
24261if test "${wx_cv_expat_is_not_broken+set}" = set; then
24262 echo $ECHO_N "(cached) $ECHO_C" >&6
24263else
24264
24265
24266
24267 ac_ext=cc
24268ac_cpp='$CXXCPP $CPPFLAGS'
24269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24272
24273 cat >conftest.$ac_ext <<_ACEOF
24274/* confdefs.h. */
24275_ACEOF
24276cat confdefs.h >>conftest.$ac_ext
24277cat >>conftest.$ac_ext <<_ACEOF
24278/* end confdefs.h. */
24279#include <expat.h>
24280int
24281main ()
24282{
24283
24284 ;
24285 return 0;
24286}
24287_ACEOF
24288rm -f conftest.$ac_objext
24289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24290 (eval $ac_compile) 2>conftest.er1
a848cd7e 24291 ac_status=$?
ac1cb8d3
VS
24292 grep -v '^ *+' conftest.er1 >conftest.err
24293 rm -f conftest.er1
24294 cat conftest.err >&5
a848cd7e
SC
24295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); } &&
6ebeb4c7 24297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24299 (eval $ac_try) 2>&5
24300 ac_status=$?
24301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302 (exit $ac_status); }; } &&
24303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24305 (eval $ac_try) 2>&5
24306 ac_status=$?
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); }; }; then
24309 wx_cv_expat_is_not_broken=yes
24310else
24311 echo "$as_me: failed program was:" >&5
24312sed 's/^/| /' conftest.$ac_ext >&5
24313
24314wx_cv_expat_is_not_broken=no
24315
24316fi
ac1cb8d3 24317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24318 ac_ext=c
24319ac_cpp='$CPP $CPPFLAGS'
24320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24322ac_compiler_gnu=$ac_cv_c_compiler_gnu
24323
24324
24325
24326fi
24327echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
24328echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
24329 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
24330 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
24331echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
24332if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
24333 echo $ECHO_N "(cached) $ECHO_C" >&6
24334else
24335 ac_check_lib_save_LIBS=$LIBS
24336LIBS="-lexpat $LIBS"
24337cat >conftest.$ac_ext <<_ACEOF
24338/* confdefs.h. */
24339_ACEOF
24340cat confdefs.h >>conftest.$ac_ext
24341cat >>conftest.$ac_ext <<_ACEOF
24342/* end confdefs.h. */
24343
24344/* Override any gcc2 internal prototype to avoid an error. */
24345#ifdef __cplusplus
24346extern "C"
24347#endif
24348/* We use char because int might match the return type of a gcc2
24349 builtin and then its argument prototype would still apply. */
24350char XML_ParserCreate ();
24351int
24352main ()
24353{
24354XML_ParserCreate ();
24355 ;
24356 return 0;
24357}
24358_ACEOF
24359rm -f conftest.$ac_objext conftest$ac_exeext
24360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24361 (eval $ac_link) 2>conftest.er1
a848cd7e 24362 ac_status=$?
ac1cb8d3
VS
24363 grep -v '^ *+' conftest.er1 >conftest.err
24364 rm -f conftest.er1
24365 cat conftest.err >&5
a848cd7e
SC
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); } &&
6ebeb4c7 24368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24370 (eval $ac_try) 2>&5
24371 ac_status=$?
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); }; } &&
24374 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24376 (eval $ac_try) 2>&5
24377 ac_status=$?
24378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); }; }; then
24380 ac_cv_lib_expat_XML_ParserCreate=yes
24381else
24382 echo "$as_me: failed program was:" >&5
24383sed 's/^/| /' conftest.$ac_ext >&5
24384
24385ac_cv_lib_expat_XML_ParserCreate=no
24386fi
ac1cb8d3
VS
24387rm -f conftest.err conftest.$ac_objext \
24388 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24389LIBS=$ac_check_lib_save_LIBS
24390fi
24391echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
24392echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
24393if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
24394 EXPAT_LINK=" -lexpat"
24395fi
24396
24397 fi
24398 fi
24399 if test "x$EXPAT_LINK" = "x" ; then
24400 if test "$wxUSE_EXPAT" = "sys" ; then
24401 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24402echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24403 { (exit 1); exit 1; }; }
24404 else
24405 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24406echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24407 wxUSE_EXPAT=builtin
24408 fi
24409 else
24410 wxUSE_EXPAT=sys
24411 fi
24412 fi
24413 if test "$wxUSE_EXPAT" = "builtin" ; then
24414
24415
24416subdirs="$subdirs src/expat"
24417
24418 fi
24419fi
24420
24421
24422
24423if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24424 if test "${ac_cv_header_mspack_h+set}" = set; then
24425 echo "$as_me:$LINENO: checking for mspack.h" >&5
24426echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24427if test "${ac_cv_header_mspack_h+set}" = set; then
24428 echo $ECHO_N "(cached) $ECHO_C" >&6
24429fi
24430echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24431echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24432else
24433 # Is the header compilable?
24434echo "$as_me:$LINENO: checking mspack.h usability" >&5
24435echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24436cat >conftest.$ac_ext <<_ACEOF
24437/* confdefs.h. */
24438_ACEOF
24439cat confdefs.h >>conftest.$ac_ext
24440cat >>conftest.$ac_ext <<_ACEOF
24441/* end confdefs.h. */
24442$ac_includes_default
24443#include <mspack.h>
24444_ACEOF
24445rm -f conftest.$ac_objext
24446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24447 (eval $ac_compile) 2>conftest.er1
a848cd7e 24448 ac_status=$?
ac1cb8d3
VS
24449 grep -v '^ *+' conftest.er1 >conftest.err
24450 rm -f conftest.er1
24451 cat conftest.err >&5
a848cd7e
SC
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); } &&
6ebeb4c7 24454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24456 (eval $ac_try) 2>&5
24457 ac_status=$?
24458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459 (exit $ac_status); }; } &&
24460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24462 (eval $ac_try) 2>&5
24463 ac_status=$?
24464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465 (exit $ac_status); }; }; then
24466 ac_header_compiler=yes
24467else
24468 echo "$as_me: failed program was:" >&5
24469sed 's/^/| /' conftest.$ac_ext >&5
24470
24471ac_header_compiler=no
24472fi
ac1cb8d3 24473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24474echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24475echo "${ECHO_T}$ac_header_compiler" >&6
24476
24477# Is the header present?
24478echo "$as_me:$LINENO: checking mspack.h presence" >&5
24479echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24480cat >conftest.$ac_ext <<_ACEOF
24481/* confdefs.h. */
24482_ACEOF
24483cat confdefs.h >>conftest.$ac_ext
24484cat >>conftest.$ac_ext <<_ACEOF
24485/* end confdefs.h. */
24486#include <mspack.h>
24487_ACEOF
24488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24490 ac_status=$?
24491 grep -v '^ *+' conftest.er1 >conftest.err
24492 rm -f conftest.er1
24493 cat conftest.err >&5
24494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495 (exit $ac_status); } >/dev/null; then
24496 if test -s conftest.err; then
24497 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24499 else
24500 ac_cpp_err=
24501 fi
24502else
24503 ac_cpp_err=yes
24504fi
24505if test -z "$ac_cpp_err"; then
24506 ac_header_preproc=yes
24507else
24508 echo "$as_me: failed program was:" >&5
24509sed 's/^/| /' conftest.$ac_ext >&5
24510
24511 ac_header_preproc=no
24512fi
24513rm -f conftest.err conftest.$ac_ext
24514echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24515echo "${ECHO_T}$ac_header_preproc" >&6
24516
24517# So? What about this header?
ac1cb8d3
VS
24518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24519 yes:no: )
a848cd7e
SC
24520 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24521echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24522 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24523echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24524 ac_header_preproc=yes
a848cd7e 24525 ;;
ac1cb8d3 24526 no:yes:* )
a848cd7e
SC
24527 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24528echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24529 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24530echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24531 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24532echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24533 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24534echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24535 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24536echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24537 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24538echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24539 (
24540 cat <<\_ASBOX
ac1cb8d3
VS
24541## ----------------------------------------- ##
24542## Report this to wx-dev@lists.wxwidgets.org ##
24543## ----------------------------------------- ##
a848cd7e
SC
24544_ASBOX
24545 ) |
24546 sed "s/^/$as_me: WARNING: /" >&2
24547 ;;
24548esac
24549echo "$as_me:$LINENO: checking for mspack.h" >&5
24550echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24551if test "${ac_cv_header_mspack_h+set}" = set; then
24552 echo $ECHO_N "(cached) $ECHO_C" >&6
24553else
24554 ac_cv_header_mspack_h=$ac_header_preproc
24555fi
24556echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24557echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24558
24559fi
24560if test $ac_cv_header_mspack_h = yes; then
24561 found_mspack_h=1
24562fi
24563
24564
24565 if test "x$found_mspack_h" = "x1"; then
24566 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24567echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24568if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24569 echo $ECHO_N "(cached) $ECHO_C" >&6
24570else
24571 ac_check_lib_save_LIBS=$LIBS
24572LIBS="-lmspack $LIBS"
24573cat >conftest.$ac_ext <<_ACEOF
24574/* confdefs.h. */
24575_ACEOF
24576cat confdefs.h >>conftest.$ac_ext
24577cat >>conftest.$ac_ext <<_ACEOF
24578/* end confdefs.h. */
24579
24580/* Override any gcc2 internal prototype to avoid an error. */
24581#ifdef __cplusplus
24582extern "C"
24583#endif
24584/* We use char because int might match the return type of a gcc2
24585 builtin and then its argument prototype would still apply. */
24586char mspack_create_chm_decompressor ();
24587int
24588main ()
24589{
24590mspack_create_chm_decompressor ();
24591 ;
24592 return 0;
24593}
24594_ACEOF
24595rm -f conftest.$ac_objext conftest$ac_exeext
24596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24597 (eval $ac_link) 2>conftest.er1
a848cd7e 24598 ac_status=$?
ac1cb8d3
VS
24599 grep -v '^ *+' conftest.er1 >conftest.err
24600 rm -f conftest.er1
24601 cat conftest.err >&5
a848cd7e
SC
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); } &&
6ebeb4c7 24604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24606 (eval $ac_try) 2>&5
24607 ac_status=$?
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); }; } &&
24610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24612 (eval $ac_try) 2>&5
24613 ac_status=$?
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); }; }; then
24616 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24617else
24618 echo "$as_me: failed program was:" >&5
24619sed 's/^/| /' conftest.$ac_ext >&5
24620
24621ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24622fi
ac1cb8d3
VS
24623rm -f conftest.err conftest.$ac_objext \
24624 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24625LIBS=$ac_check_lib_save_LIBS
24626fi
24627echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24628echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24629if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24630 MSPACK_LINK=" -lmspack"
24631fi
24632
24633 fi
24634 if test "x$MSPACK_LINK" = "x" ; then
24635 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24636 fi
24637fi
24638
24639if test "$wxUSE_LIBMSPACK" != "no"; then
24640 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24641#define wxUSE_LIBMSPACK 1
24642_ACEOF
24643
a848cd7e
SC
24644fi
24645
24646
24647
24648AFMINSTALL=
24649WIN32INSTALL=
24650
24651TOOLKIT=
24652TOOLKIT_INCLUDE=
24653WIDGET_SET=
24654
24655if test "$USE_WIN32" = 1 ; then
24656
24657for ac_header in w32api.h
24658do
24659as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24660if eval "test \"\${$as_ac_Header+set}\" = set"; then
24661 echo "$as_me:$LINENO: checking for $ac_header" >&5
24662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24663if eval "test \"\${$as_ac_Header+set}\" = set"; then
24664 echo $ECHO_N "(cached) $ECHO_C" >&6
24665fi
24666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24668else
24669 # Is the header compilable?
24670echo "$as_me:$LINENO: checking $ac_header usability" >&5
24671echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24672cat >conftest.$ac_ext <<_ACEOF
24673/* confdefs.h. */
24674_ACEOF
24675cat confdefs.h >>conftest.$ac_ext
24676cat >>conftest.$ac_ext <<_ACEOF
24677/* end confdefs.h. */
24678$ac_includes_default
24679#include <$ac_header>
24680_ACEOF
24681rm -f conftest.$ac_objext
24682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24683 (eval $ac_compile) 2>conftest.er1
a848cd7e 24684 ac_status=$?
ac1cb8d3
VS
24685 grep -v '^ *+' conftest.er1 >conftest.err
24686 rm -f conftest.er1
24687 cat conftest.err >&5
a848cd7e
SC
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); } &&
6ebeb4c7 24690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24692 (eval $ac_try) 2>&5
24693 ac_status=$?
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); }; } &&
24696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24698 (eval $ac_try) 2>&5
24699 ac_status=$?
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; }; then
24702 ac_header_compiler=yes
24703else
24704 echo "$as_me: failed program was:" >&5
24705sed 's/^/| /' conftest.$ac_ext >&5
24706
24707ac_header_compiler=no
24708fi
ac1cb8d3 24709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24710echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24711echo "${ECHO_T}$ac_header_compiler" >&6
24712
24713# Is the header present?
24714echo "$as_me:$LINENO: checking $ac_header presence" >&5
24715echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24716cat >conftest.$ac_ext <<_ACEOF
24717/* confdefs.h. */
24718_ACEOF
24719cat confdefs.h >>conftest.$ac_ext
24720cat >>conftest.$ac_ext <<_ACEOF
24721/* end confdefs.h. */
24722#include <$ac_header>
24723_ACEOF
24724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24726 ac_status=$?
24727 grep -v '^ *+' conftest.er1 >conftest.err
24728 rm -f conftest.er1
24729 cat conftest.err >&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); } >/dev/null; then
24732 if test -s conftest.err; then
24733 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24735 else
24736 ac_cpp_err=
24737 fi
24738else
24739 ac_cpp_err=yes
24740fi
24741if test -z "$ac_cpp_err"; then
24742 ac_header_preproc=yes
24743else
24744 echo "$as_me: failed program was:" >&5
24745sed 's/^/| /' conftest.$ac_ext >&5
24746
24747 ac_header_preproc=no
24748fi
24749rm -f conftest.err conftest.$ac_ext
24750echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24751echo "${ECHO_T}$ac_header_preproc" >&6
24752
24753# So? What about this header?
ac1cb8d3
VS
24754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24755 yes:no: )
a848cd7e
SC
24756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24757echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24759echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24760 ac_header_preproc=yes
a848cd7e 24761 ;;
ac1cb8d3 24762 no:yes:* )
a848cd7e
SC
24763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24764echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24766echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24768echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24770echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24772echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24774echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24775 (
24776 cat <<\_ASBOX
ac1cb8d3
VS
24777## ----------------------------------------- ##
24778## Report this to wx-dev@lists.wxwidgets.org ##
24779## ----------------------------------------- ##
a848cd7e
SC
24780_ASBOX
24781 ) |
24782 sed "s/^/$as_me: WARNING: /" >&2
24783 ;;
24784esac
24785echo "$as_me:$LINENO: checking for $ac_header" >&5
24786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24787if eval "test \"\${$as_ac_Header+set}\" = set"; then
24788 echo $ECHO_N "(cached) $ECHO_C" >&6
24789else
ac1cb8d3 24790 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24791fi
24792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24794
24795fi
24796if test `eval echo '${'$as_ac_Header'}'` = yes; then
24797 cat >>confdefs.h <<_ACEOF
24798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24799_ACEOF
24800
24801fi
24802
24803done
24804
24805 if test "${ac_cv_header_windows_h+set}" = set; then
24806 echo "$as_me:$LINENO: checking for windows.h" >&5
24807echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24808if test "${ac_cv_header_windows_h+set}" = set; then
24809 echo $ECHO_N "(cached) $ECHO_C" >&6
24810fi
24811echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24812echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24813else
24814 # Is the header compilable?
24815echo "$as_me:$LINENO: checking windows.h usability" >&5
24816echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24817cat >conftest.$ac_ext <<_ACEOF
24818/* confdefs.h. */
24819_ACEOF
24820cat confdefs.h >>conftest.$ac_ext
24821cat >>conftest.$ac_ext <<_ACEOF
24822/* end confdefs.h. */
24823$ac_includes_default
24824#include <windows.h>
24825_ACEOF
24826rm -f conftest.$ac_objext
24827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24828 (eval $ac_compile) 2>conftest.er1
a848cd7e 24829 ac_status=$?
ac1cb8d3
VS
24830 grep -v '^ *+' conftest.er1 >conftest.err
24831 rm -f conftest.er1
24832 cat conftest.err >&5
a848cd7e
SC
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } &&
6ebeb4c7 24835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24837 (eval $ac_try) 2>&5
24838 ac_status=$?
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); }; } &&
24841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24843 (eval $ac_try) 2>&5
24844 ac_status=$?
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); }; }; then
24847 ac_header_compiler=yes
24848else
24849 echo "$as_me: failed program was:" >&5
24850sed 's/^/| /' conftest.$ac_ext >&5
24851
24852ac_header_compiler=no
24853fi
ac1cb8d3 24854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24856echo "${ECHO_T}$ac_header_compiler" >&6
24857
24858# Is the header present?
24859echo "$as_me:$LINENO: checking windows.h presence" >&5
24860echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24861cat >conftest.$ac_ext <<_ACEOF
24862/* confdefs.h. */
24863_ACEOF
24864cat confdefs.h >>conftest.$ac_ext
24865cat >>conftest.$ac_ext <<_ACEOF
24866/* end confdefs.h. */
24867#include <windows.h>
24868_ACEOF
24869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24871 ac_status=$?
24872 grep -v '^ *+' conftest.er1 >conftest.err
24873 rm -f conftest.er1
24874 cat conftest.err >&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } >/dev/null; then
24877 if test -s conftest.err; then
24878 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24880 else
24881 ac_cpp_err=
24882 fi
24883else
24884 ac_cpp_err=yes
24885fi
24886if test -z "$ac_cpp_err"; then
24887 ac_header_preproc=yes
24888else
24889 echo "$as_me: failed program was:" >&5
24890sed 's/^/| /' conftest.$ac_ext >&5
24891
24892 ac_header_preproc=no
24893fi
24894rm -f conftest.err conftest.$ac_ext
24895echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24896echo "${ECHO_T}$ac_header_preproc" >&6
24897
24898# So? What about this header?
ac1cb8d3
VS
24899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24900 yes:no: )
a848cd7e
SC
24901 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24902echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24903 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24904echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24905 ac_header_preproc=yes
a848cd7e 24906 ;;
ac1cb8d3 24907 no:yes:* )
a848cd7e
SC
24908 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24909echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24910 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24911echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24912 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24913echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24914 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24915echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24916 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24917echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24918 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24919echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24920 (
24921 cat <<\_ASBOX
ac1cb8d3
VS
24922## ----------------------------------------- ##
24923## Report this to wx-dev@lists.wxwidgets.org ##
24924## ----------------------------------------- ##
a848cd7e
SC
24925_ASBOX
24926 ) |
24927 sed "s/^/$as_me: WARNING: /" >&2
24928 ;;
24929esac
24930echo "$as_me:$LINENO: checking for windows.h" >&5
24931echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24932if test "${ac_cv_header_windows_h+set}" = set; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24934else
24935 ac_cv_header_windows_h=$ac_header_preproc
24936fi
24937echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24938echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24939
24940fi
24941if test $ac_cv_header_windows_h = yes; then
24942 :
24943else
24944
24945 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24946echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24947 { (exit 1); exit 1; }; }
24948
24949fi
24950
24951
24952
24953 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24954
24955 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24956 LIBS="$LIBS -loleacc"
24957 fi
24958
24959 case "${host}" in
24960 *-*-cygwin* )
24961 LIBS="$LIBS -lkernel32 -luser32"
24962 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24963 esac
24964
24965 if test "$wxUSE_ODBC" = "sys" ; then
24966 wxUSE_ODBC = "yes"
24967 fi
24968 if test "$wxUSE_ODBC" = "yes" ; then
24969 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24970 cat >>confdefs.h <<\_ACEOF
24971#define wxUSE_ODBC 1
24972_ACEOF
24973
24974 fi
24975
24976 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24977 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24978
24979 WIN32INSTALL=win32install
24980fi
24981
24982if test "$wxUSE_GUI" = "yes"; then
24983 USE_GUI=1
24984
24985 GUI_TK_LIBRARY=
24986
24987 WXGTK12=
24988 WXGTK127=
24989 WXGTK20=
24990 WXGPE=
24991
207bc66c
RN
24992 if test "$wxUSE_COCOA" = 1 ; then
24993 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24994 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24995echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24996 wxUSE_PRINTING_ARCHITECTURE=no
24997 fi
24998 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24999 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25000echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25001 wxUSE_DRAG_AND_DROP=no
25002 fi
25003 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25004 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25005echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25006 wxUSE_DRAGIMAGE=no
25007 fi
25008 fi
25009
a848cd7e
SC
25010 if test "$wxUSE_MSW" = 1 ; then
25011 TOOLKIT=MSW
25012 GUIDIST=MSW_DIST
25013
ceec2216 25014 case "${host}" in
a848cd7e
SC
25015 *-*-mingw32* )
25016 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25017 esac
25018 fi
25019
25020 if test "$wxUSE_GTK" = 1; then
25021 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25022echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25023
25024 gtk_version_cached=1
25025 if test "${wx_cv_lib_gtk+set}" = set; then
25026 echo $ECHO_N "(cached) $ECHO_C" >&6
25027else
25028
25029 gtk_version_cached=0
25030 echo "$as_me:$LINENO: result: " >&5
25031echo "${ECHO_T}" >&6
25032
25033 GTK_MODULES=
25034 if test "$wxUSE_THREADS" = "yes"; then
25035 GTK_MODULES=gthread
25036 fi
25037
f597b41c 25038 wx_cv_lib_gtk=
f34ca037 25039 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
25040 # Check whether --enable-gtktest or --disable-gtktest was given.
25041if test "${enable_gtktest+set}" = set; then
25042 enableval="$enable_gtktest"
25043
25044else
25045 enable_gtktest=yes
25046fi;
25047
25048 pkg_config_args=gtk+-2.0
25049 for module in . $GTK_MODULES
25050 do
25051 case "$module" in
25052 gthread)
25053 pkg_config_args="$pkg_config_args gthread-2.0"
25054 ;;
25055 esac
25056 done
25057
25058 no_gtk=""
25059
25060 # Extract the first word of "pkg-config", so it can be a program name with args.
25061set dummy pkg-config; ac_word=$2
25062echo "$as_me:$LINENO: checking for $ac_word" >&5
25063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25064if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25065 echo $ECHO_N "(cached) $ECHO_C" >&6
25066else
25067 case $PKG_CONFIG in
25068 [\\/]* | ?:[\\/]*)
25069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25070 ;;
25071 *)
25072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25073for as_dir in $PATH
25074do
25075 IFS=$as_save_IFS
25076 test -z "$as_dir" && as_dir=.
25077 for ac_exec_ext in '' $ac_executable_extensions; do
25078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25081 break 2
25082 fi
25083done
25084done
25085
25086 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25087 ;;
25088esac
25089fi
25090PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25091
25092if test -n "$PKG_CONFIG"; then
25093 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25094echo "${ECHO_T}$PKG_CONFIG" >&6
25095else
25096 echo "$as_me:$LINENO: result: no" >&5
25097echo "${ECHO_T}no" >&6
25098fi
25099
25100
25101 if test x$PKG_CONFIG != xno ; then
25102 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25103 :
25104 else
c2218763 25105 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25106 no_gtk=yes
25107 PKG_CONFIG=no
25108 fi
25109 else
25110 no_gtk=yes
25111 fi
25112
25113 min_gtk_version=2.0.0
25114 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25115echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25116
25117 if test x$PKG_CONFIG != xno ; then
25118 ## don't try to run the test against uninstalled libtool libs
25119 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25120 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25121 enable_gtktest=no
25122 fi
25123
25124 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25125 :
25126 else
25127 no_gtk=yes
25128 fi
25129 fi
25130
25131 if test x"$no_gtk" = x ; then
25132 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25133 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25134 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25135 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25136 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25137 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25138 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25139 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25140 if test "x$enable_gtktest" = "xyes" ; then
25141 ac_save_CFLAGS="$CFLAGS"
25142 ac_save_LIBS="$LIBS"
25143 CFLAGS="$CFLAGS $GTK_CFLAGS"
25144 LIBS="$GTK_LIBS $LIBS"
25145 rm -f conf.gtktest
25146 if test "$cross_compiling" = yes; then
25147 echo $ac_n "cross compiling; assumed OK... $ac_c"
25148else
25149 cat >conftest.$ac_ext <<_ACEOF
25150/* confdefs.h. */
25151_ACEOF
25152cat confdefs.h >>conftest.$ac_ext
25153cat >>conftest.$ac_ext <<_ACEOF
25154/* end confdefs.h. */
25155
25156#include <gtk/gtk.h>
25157#include <stdio.h>
25158#include <stdlib.h>
25159
25160int
25161main ()
25162{
25163 int major, minor, micro;
25164 char *tmp_version;
25165
25166 system ("touch conf.gtktest");
25167
25168 /* HP/UX 9 (%@#!) writes to sscanf strings */
25169 tmp_version = g_strdup("$min_gtk_version");
25170 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25171 printf("%s, bad version string\n", "$min_gtk_version");
25172 exit(1);
25173 }
25174
25175 if ((gtk_major_version != $gtk_config_major_version) ||
25176 (gtk_minor_version != $gtk_config_minor_version) ||
25177 (gtk_micro_version != $gtk_config_micro_version))
25178 {
25179 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25180 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25181 gtk_major_version, gtk_minor_version, gtk_micro_version);
25182 printf ("*** was found! If pkg-config was correct, then it is best\n");
25183 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25184 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25185 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25186 printf("*** required on your system.\n");
25187 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
25188 printf("*** to point to the correct configuration files\n");
25189 }
25190 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25191 (gtk_minor_version != GTK_MINOR_VERSION) ||
25192 (gtk_micro_version != GTK_MICRO_VERSION))
25193 {
25194 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25195 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25196 printf("*** library (version %d.%d.%d)\n",
25197 gtk_major_version, gtk_minor_version, gtk_micro_version);
25198 }
25199 else
25200 {
25201 if ((gtk_major_version > major) ||
25202 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25203 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25204 {
25205 return 0;
25206 }
25207 else
25208 {
25209 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25210 gtk_major_version, gtk_minor_version, gtk_micro_version);
25211 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25212 major, minor, micro);
25213 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25214 printf("***\n");
25215 printf("*** If you have already installed a sufficiently new version, this error\n");
25216 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
25217 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25218 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
25219 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
25220 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25221 printf("*** so that the correct libraries are found at run-time))\n");
25222 }
25223 }
25224 return 1;
25225}
25226
25227_ACEOF
25228rm -f conftest$ac_exeext
25229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25230 (eval $ac_link) 2>&5
25231 ac_status=$?
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25235 (eval $ac_try) 2>&5
25236 ac_status=$?
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); }; }; then
25239 :
25240else
25241 echo "$as_me: program exited with status $ac_status" >&5
25242echo "$as_me: failed program was:" >&5
25243sed 's/^/| /' conftest.$ac_ext >&5
25244
25245( exit $ac_status )
25246no_gtk=yes
25247fi
ac1cb8d3 25248rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25249fi
25250 CFLAGS="$ac_save_CFLAGS"
25251 LIBS="$ac_save_LIBS"
25252 fi
25253 fi
25254 if test "x$no_gtk" = x ; then
25255 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
25256echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
25257 wx_cv_lib_gtk=2.0
25258 else
25259 echo "$as_me:$LINENO: result: no" >&5
25260echo "${ECHO_T}no" >&6
25261 if test "$PKG_CONFIG" = "no" ; then
25262 echo "*** A new enough version of pkg-config was not found."
25263 echo "*** See http://pkgconfig.sourceforge.net"
25264 else
25265 if test -f conf.gtktest ; then
25266 :
25267 else
25268 echo "*** Could not run GTK+ test program, checking why..."
25269 ac_save_CFLAGS="$CFLAGS"
25270 ac_save_LIBS="$LIBS"
25271 CFLAGS="$CFLAGS $GTK_CFLAGS"
25272 LIBS="$LIBS $GTK_LIBS"
25273 cat >conftest.$ac_ext <<_ACEOF
25274/* confdefs.h. */
25275_ACEOF
25276cat confdefs.h >>conftest.$ac_ext
25277cat >>conftest.$ac_ext <<_ACEOF
25278/* end confdefs.h. */
25279
25280#include <gtk/gtk.h>
25281#include <stdio.h>
25282
25283int
25284main ()
25285{
25286 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25287 ;
25288 return 0;
25289}
25290_ACEOF
25291rm -f conftest.$ac_objext conftest$ac_exeext
25292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25293 (eval $ac_link) 2>conftest.er1
a848cd7e 25294 ac_status=$?
ac1cb8d3
VS
25295 grep -v '^ *+' conftest.er1 >conftest.err
25296 rm -f conftest.er1
25297 cat conftest.err >&5
a848cd7e
SC
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); } &&
6ebeb4c7 25300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25302 (eval $ac_try) 2>&5
25303 ac_status=$?
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); }; } &&
25306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25308 (eval $ac_try) 2>&5
25309 ac_status=$?
25310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); }; }; then
25312 echo "*** The test program compiled, but did not run. This usually means"
25313 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
25314 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
25315 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25316 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25317 echo "*** is required on your system"
25318 echo "***"
25319 echo "*** If you have an old version installed, it is best to remove it, although"
25320 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25321else
25322 echo "$as_me: failed program was:" >&5
25323sed 's/^/| /' conftest.$ac_ext >&5
25324
25325 echo "*** The test program failed to compile or link. See the file config.log for the"
25326 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
25327fi
ac1cb8d3
VS
25328rm -f conftest.err conftest.$ac_objext \
25329 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25330 CFLAGS="$ac_save_CFLAGS"
25331 LIBS="$ac_save_LIBS"
25332 fi
25333 fi
25334 GTK_CFLAGS=""
25335 GTK_LIBS=""
25336 :
25337 fi
25338
25339
25340 rm -f conf.gtktest
25341
f597b41c
MW
25342 fi
25343
f34ca037
MW
25344 if test -z "$wx_cv_lib_gtk"; then
25345 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
25346
25347# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25348if test "${with_gtk_prefix+set}" = set; then
25349 withval="$with_gtk_prefix"
25350 gtk_config_prefix="$withval"
25351else
25352 gtk_config_prefix=""
25353fi;
25354
25355# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25356if test "${with_gtk_exec_prefix+set}" = set; then
25357 withval="$with_gtk_exec_prefix"
25358 gtk_config_exec_prefix="$withval"
25359else
25360 gtk_config_exec_prefix=""
25361fi;
25362# Check whether --enable-gtktest or --disable-gtktest was given.
25363if test "${enable_gtktest+set}" = set; then
25364 enableval="$enable_gtktest"
25365
25366else
25367 enable_gtktest=yes
25368fi;
25369
25370 for module in . $GTK_MODULES
25371 do
25372 case "$module" in
25373 gthread)
25374 gtk_config_args="$gtk_config_args gthread"
25375 ;;
25376 esac
25377 done
25378
25379 if test x$gtk_config_exec_prefix != x ; then
25380 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25381 if test x${GTK_CONFIG+set} != xset ; then
25382 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25383 fi
25384 fi
25385 if test x$gtk_config_prefix != x ; then
25386 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25387 if test x${GTK_CONFIG+set} != xset ; then
25388 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25389 fi
25390 fi
25391
25392 # Extract the first word of "gtk-config", so it can be a program name with args.
25393set dummy gtk-config; ac_word=$2
25394echo "$as_me:$LINENO: checking for $ac_word" >&5
25395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25396if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25397 echo $ECHO_N "(cached) $ECHO_C" >&6
25398else
25399 case $GTK_CONFIG in
25400 [\\/]* | ?:[\\/]*)
25401 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25402 ;;
25403 *)
25404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25405for as_dir in $PATH
25406do
25407 IFS=$as_save_IFS
25408 test -z "$as_dir" && as_dir=.
25409 for ac_exec_ext in '' $ac_executable_extensions; do
25410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25411 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25413 break 2
25414 fi
25415done
25416done
25417
25418 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25419 ;;
25420esac
25421fi
25422GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25423
25424if test -n "$GTK_CONFIG"; then
25425 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25426echo "${ECHO_T}$GTK_CONFIG" >&6
25427else
25428 echo "$as_me:$LINENO: result: no" >&5
25429echo "${ECHO_T}no" >&6
25430fi
25431
25432 min_gtk_version=1.2.7
25433 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25434echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25435 no_gtk=""
25436 if test "$GTK_CONFIG" = "no" ; then
25437 no_gtk=yes
25438 else
25439 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25440 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25441 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25442 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25443 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25444 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25445 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25446 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25447 if test "x$enable_gtktest" = "xyes" ; then
25448 ac_save_CFLAGS="$CFLAGS"
25449 ac_save_LIBS="$LIBS"
25450 CFLAGS="$CFLAGS $GTK_CFLAGS"
25451 LIBS="$GTK_LIBS $LIBS"
25452 rm -f conf.gtktest
25453 if test "$cross_compiling" = yes; then
25454 echo $ac_n "cross compiling; assumed OK... $ac_c"
25455else
25456 cat >conftest.$ac_ext <<_ACEOF
25457/* confdefs.h. */
25458_ACEOF
25459cat confdefs.h >>conftest.$ac_ext
25460cat >>conftest.$ac_ext <<_ACEOF
25461/* end confdefs.h. */
25462
25463#include <gtk/gtk.h>
25464#include <stdio.h>
25465#include <stdlib.h>
25466
25467int
25468main ()
25469{
25470 int major, minor, micro;
25471 char *tmp_version;
25472
25473 system ("touch conf.gtktest");
25474
25475 /* HP/UX 9 (%@#!) writes to sscanf strings */
25476 tmp_version = g_strdup("$min_gtk_version");
25477 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25478 printf("%s, bad version string\n", "$min_gtk_version");
25479 exit(1);
25480 }
25481
25482 if ((gtk_major_version != $gtk_config_major_version) ||
25483 (gtk_minor_version != $gtk_config_minor_version) ||
25484 (gtk_micro_version != $gtk_config_micro_version))
25485 {
25486 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25487 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25488 gtk_major_version, gtk_minor_version, gtk_micro_version);
25489 printf ("*** was found! If gtk-config was correct, then it is best\n");
25490 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25491 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25492 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25493 printf("*** required on your system.\n");
25494 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25495 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25496 printf("*** before re-running configure\n");
25497 }
25498#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25499 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25500 (gtk_minor_version != GTK_MINOR_VERSION) ||
25501 (gtk_micro_version != GTK_MICRO_VERSION))
25502 {
25503 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25504 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25505 printf("*** library (version %d.%d.%d)\n",
25506 gtk_major_version, gtk_minor_version, gtk_micro_version);
25507 }
25508#endif /* defined (GTK_MAJOR_VERSION) ... */
25509 else
25510 {
25511 if ((gtk_major_version > major) ||
25512 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25513 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25514 {
25515 return 0;
25516 }
25517 else
25518 {
25519 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25520 gtk_major_version, gtk_minor_version, gtk_micro_version);
25521 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25522 major, minor, micro);
25523 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25524 printf("***\n");
25525 printf("*** If you have already installed a sufficiently new version, this error\n");
25526 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25527 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25528 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25529 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25530 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25531 printf("*** so that the correct libraries are found at run-time))\n");
25532 }
25533 }
25534 return 1;
25535}
25536
25537_ACEOF
25538rm -f conftest$ac_exeext
25539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25540 (eval $ac_link) 2>&5
25541 ac_status=$?
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25546 ac_status=$?
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; }; then
25549 :
25550else
25551 echo "$as_me: program exited with status $ac_status" >&5
25552echo "$as_me: failed program was:" >&5
25553sed 's/^/| /' conftest.$ac_ext >&5
25554
25555( exit $ac_status )
25556no_gtk=yes
25557fi
ac1cb8d3 25558rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25559fi
25560 CFLAGS="$ac_save_CFLAGS"
25561 LIBS="$ac_save_LIBS"
25562 fi
25563 fi
25564 if test "x$no_gtk" = x ; then
25565 echo "$as_me:$LINENO: result: yes" >&5
25566echo "${ECHO_T}yes" >&6
25567 wx_cv_lib_gtk=1.2.7
25568 else
25569 echo "$as_me:$LINENO: result: no" >&5
25570echo "${ECHO_T}no" >&6
25571 if test "$GTK_CONFIG" = "no" ; then
25572 echo "*** The gtk-config script installed by GTK could not be found"
25573 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25574 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25575 echo "*** full path to gtk-config."
25576 else
25577 if test -f conf.gtktest ; then
25578 :
25579 else
25580 echo "*** Could not run GTK test program, checking why..."
25581 CFLAGS="$CFLAGS $GTK_CFLAGS"
25582 LIBS="$LIBS $GTK_LIBS"
25583 cat >conftest.$ac_ext <<_ACEOF
25584/* confdefs.h. */
25585_ACEOF
25586cat confdefs.h >>conftest.$ac_ext
25587cat >>conftest.$ac_ext <<_ACEOF
25588/* end confdefs.h. */
25589
25590#include <gtk/gtk.h>
25591#include <stdio.h>
25592
25593int
25594main ()
25595{
25596 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25597 ;
25598 return 0;
25599}
25600_ACEOF
25601rm -f conftest.$ac_objext conftest$ac_exeext
25602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25603 (eval $ac_link) 2>conftest.er1
a848cd7e 25604 ac_status=$?
ac1cb8d3
VS
25605 grep -v '^ *+' conftest.er1 >conftest.err
25606 rm -f conftest.er1
25607 cat conftest.err >&5
a848cd7e
SC
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); } &&
6ebeb4c7 25610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25612 (eval $ac_try) 2>&5
25613 ac_status=$?
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); }; } &&
25616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25618 (eval $ac_try) 2>&5
25619 ac_status=$?
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); }; }; then
25622 echo "*** The test program compiled, but did not run. This usually means"
25623 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25624 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25625 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25626 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25627 echo "*** is required on your system"
25628 echo "***"
25629 echo "*** If you have an old version installed, it is best to remove it, although"
25630 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25631 echo "***"
25632 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25633 echo "*** came with the system with the command"
25634 echo "***"
25635 echo "*** rpm --erase --nodeps gtk gtk-devel"
25636else
25637 echo "$as_me: failed program was:" >&5
25638sed 's/^/| /' conftest.$ac_ext >&5
25639
25640 echo "*** The test program failed to compile or link. See the file config.log for the"
25641 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25642 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25643 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25644fi
ac1cb8d3
VS
25645rm -f conftest.err conftest.$ac_objext \
25646 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25647 CFLAGS="$ac_save_CFLAGS"
25648 LIBS="$ac_save_LIBS"
25649 fi
25650 fi
25651 GTK_CFLAGS=""
25652 GTK_LIBS=""
25653 :
25654 fi
25655
25656
25657 rm -f conf.gtktest
25658
25659
f34ca037 25660 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25661
25662# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25663if test "${with_gtk_prefix+set}" = set; then
25664 withval="$with_gtk_prefix"
25665 gtk_config_prefix="$withval"
25666else
25667 gtk_config_prefix=""
25668fi;
25669
25670# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25671if test "${with_gtk_exec_prefix+set}" = set; then
25672 withval="$with_gtk_exec_prefix"
25673 gtk_config_exec_prefix="$withval"
25674else
25675 gtk_config_exec_prefix=""
25676fi;
25677# Check whether --enable-gtktest or --disable-gtktest was given.
25678if test "${enable_gtktest+set}" = set; then
25679 enableval="$enable_gtktest"
25680
25681else
25682 enable_gtktest=yes
25683fi;
25684
25685 for module in . $GTK_MODULES
25686 do
25687 case "$module" in
25688 gthread)
25689 gtk_config_args="$gtk_config_args gthread"
25690 ;;
25691 esac
25692 done
25693
25694 if test x$gtk_config_exec_prefix != x ; then
25695 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25696 if test x${GTK_CONFIG+set} != xset ; then
25697 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25698 fi
25699 fi
25700 if test x$gtk_config_prefix != x ; then
25701 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25702 if test x${GTK_CONFIG+set} != xset ; then
25703 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25704 fi
25705 fi
25706
25707 # Extract the first word of "gtk-config", so it can be a program name with args.
25708set dummy gtk-config; ac_word=$2
25709echo "$as_me:$LINENO: checking for $ac_word" >&5
25710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25711if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25712 echo $ECHO_N "(cached) $ECHO_C" >&6
25713else
25714 case $GTK_CONFIG in
25715 [\\/]* | ?:[\\/]*)
25716 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25717 ;;
25718 *)
25719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25720for as_dir in $PATH
25721do
25722 IFS=$as_save_IFS
25723 test -z "$as_dir" && as_dir=.
25724 for ac_exec_ext in '' $ac_executable_extensions; do
25725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25726 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25728 break 2
25729 fi
25730done
25731done
25732
25733 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25734 ;;
25735esac
25736fi
25737GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25738
25739if test -n "$GTK_CONFIG"; then
25740 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25741echo "${ECHO_T}$GTK_CONFIG" >&6
25742else
25743 echo "$as_me:$LINENO: result: no" >&5
25744echo "${ECHO_T}no" >&6
25745fi
25746
25747 min_gtk_version=1.2.3
25748 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25749echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25750 no_gtk=""
25751 if test "$GTK_CONFIG" = "no" ; then
25752 no_gtk=yes
25753 else
25754 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25755 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25756 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25757 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25758 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25759 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25760 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25761 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25762 if test "x$enable_gtktest" = "xyes" ; then
25763 ac_save_CFLAGS="$CFLAGS"
25764 ac_save_LIBS="$LIBS"
25765 CFLAGS="$CFLAGS $GTK_CFLAGS"
25766 LIBS="$GTK_LIBS $LIBS"
25767 rm -f conf.gtktest
25768 if test "$cross_compiling" = yes; then
25769 echo $ac_n "cross compiling; assumed OK... $ac_c"
25770else
25771 cat >conftest.$ac_ext <<_ACEOF
25772/* confdefs.h. */
25773_ACEOF
25774cat confdefs.h >>conftest.$ac_ext
25775cat >>conftest.$ac_ext <<_ACEOF
25776/* end confdefs.h. */
25777
25778#include <gtk/gtk.h>
25779#include <stdio.h>
25780#include <stdlib.h>
25781
25782int
25783main ()
25784{
25785 int major, minor, micro;
25786 char *tmp_version;
25787
25788 system ("touch conf.gtktest");
25789
25790 /* HP/UX 9 (%@#!) writes to sscanf strings */
25791 tmp_version = g_strdup("$min_gtk_version");
25792 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25793 printf("%s, bad version string\n", "$min_gtk_version");
25794 exit(1);
25795 }
25796
25797 if ((gtk_major_version != $gtk_config_major_version) ||
25798 (gtk_minor_version != $gtk_config_minor_version) ||
25799 (gtk_micro_version != $gtk_config_micro_version))
25800 {
25801 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25802 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25803 gtk_major_version, gtk_minor_version, gtk_micro_version);
25804 printf ("*** was found! If gtk-config was correct, then it is best\n");
25805 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25806 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25807 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25808 printf("*** required on your system.\n");
25809 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25810 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25811 printf("*** before re-running configure\n");
25812 }
25813#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25814 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25815 (gtk_minor_version != GTK_MINOR_VERSION) ||
25816 (gtk_micro_version != GTK_MICRO_VERSION))
25817 {
25818 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25819 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25820 printf("*** library (version %d.%d.%d)\n",
25821 gtk_major_version, gtk_minor_version, gtk_micro_version);
25822 }
25823#endif /* defined (GTK_MAJOR_VERSION) ... */
25824 else
25825 {
25826 if ((gtk_major_version > major) ||
25827 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25828 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25829 {
25830 return 0;
25831 }
25832 else
25833 {
25834 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25835 gtk_major_version, gtk_minor_version, gtk_micro_version);
25836 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25837 major, minor, micro);
25838 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25839 printf("***\n");
25840 printf("*** If you have already installed a sufficiently new version, this error\n");
25841 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25842 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25843 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25844 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25845 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25846 printf("*** so that the correct libraries are found at run-time))\n");
25847 }
25848 }
25849 return 1;
25850}
25851
25852_ACEOF
25853rm -f conftest$ac_exeext
25854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25855 (eval $ac_link) 2>&5
25856 ac_status=$?
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25860 (eval $ac_try) 2>&5
25861 ac_status=$?
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); }; }; then
25864 :
25865else
25866 echo "$as_me: program exited with status $ac_status" >&5
25867echo "$as_me: failed program was:" >&5
25868sed 's/^/| /' conftest.$ac_ext >&5
25869
25870( exit $ac_status )
25871no_gtk=yes
25872fi
ac1cb8d3 25873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25874fi
25875 CFLAGS="$ac_save_CFLAGS"
25876 LIBS="$ac_save_LIBS"
25877 fi
25878 fi
25879 if test "x$no_gtk" = x ; then
25880 echo "$as_me:$LINENO: result: yes" >&5
25881echo "${ECHO_T}yes" >&6
25882 wx_cv_lib_gtk=1.2.3
25883 else
25884 echo "$as_me:$LINENO: result: no" >&5
25885echo "${ECHO_T}no" >&6
25886 if test "$GTK_CONFIG" = "no" ; then
25887 echo "*** The gtk-config script installed by GTK could not be found"
25888 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25889 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25890 echo "*** full path to gtk-config."
25891 else
25892 if test -f conf.gtktest ; then
25893 :
25894 else
25895 echo "*** Could not run GTK test program, checking why..."
25896 CFLAGS="$CFLAGS $GTK_CFLAGS"
25897 LIBS="$LIBS $GTK_LIBS"
25898 cat >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
25905#include <gtk/gtk.h>
25906#include <stdio.h>
25907
25908int
25909main ()
25910{
25911 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25912 ;
25913 return 0;
25914}
25915_ACEOF
25916rm -f conftest.$ac_objext conftest$ac_exeext
25917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25918 (eval $ac_link) 2>conftest.er1
a848cd7e 25919 ac_status=$?
ac1cb8d3
VS
25920 grep -v '^ *+' conftest.er1 >conftest.err
25921 rm -f conftest.er1
25922 cat conftest.err >&5
a848cd7e
SC
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); } &&
6ebeb4c7 25925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25927 (eval $ac_try) 2>&5
25928 ac_status=$?
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); }; } &&
25931 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25933 (eval $ac_try) 2>&5
25934 ac_status=$?
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); }; }; then
25937 echo "*** The test program compiled, but did not run. This usually means"
25938 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25939 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25940 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25941 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25942 echo "*** is required on your system"
25943 echo "***"
25944 echo "*** If you have an old version installed, it is best to remove it, although"
25945 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25946 echo "***"
25947 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25948 echo "*** came with the system with the command"
25949 echo "***"
25950 echo "*** rpm --erase --nodeps gtk gtk-devel"
25951else
25952 echo "$as_me: failed program was:" >&5
25953sed 's/^/| /' conftest.$ac_ext >&5
25954
25955 echo "*** The test program failed to compile or link. See the file config.log for the"
25956 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25957 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25958 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25959fi
ac1cb8d3
VS
25960rm -f conftest.err conftest.$ac_objext \
25961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25962 CFLAGS="$ac_save_CFLAGS"
25963 LIBS="$ac_save_LIBS"
25964 fi
25965 fi
25966 GTK_CFLAGS=""
25967 GTK_LIBS=""
25968 :
25969 fi
25970
25971
25972 rm -f conf.gtktest
25973
f34ca037 25974 fi
a848cd7e
SC
25975 fi
25976 fi
25977
25978 if test -z "$wx_cv_lib_gtk"; then
25979 wx_cv_lib_gtk=none
25980 else
25981 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 25982 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
25983 fi
25984
25985
25986fi
25987
25988
25989 if test "$gtk_version_cached" = 1; then
25990 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25991echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25992 fi
25993
25994 case "$wx_cv_lib_gtk" in
25995 2.0) WXGTK20=1
25996 TOOLKIT_VERSION=2
25997 ;;
25998 1.2.7) WXGTK127=1
25999 WXGTK12=1
26000 ;;
26001 1.2.3) WXGTK12=1
26002 ;;
26003 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26004The development files for GTK+ were not found. For GTK+ 2, please
26005ensure that pkg-config is in the path and that gtk+-2.0.pc is
26006installed. For GTK+ 1.2 please check that gtk-config is in the path,
26007and that the version is 1.2.3 or above. Also check that the
26008libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26009--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26010 " >&5
26011echo "$as_me: error:
f597b41c
MW
26012The development files for GTK+ were not found. For GTK+ 2, please
26013ensure that pkg-config is in the path and that gtk+-2.0.pc is
26014installed. For GTK+ 1.2 please check that gtk-config is in the path,
26015and that the version is 1.2.3 or above. Also check that the
26016libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26017--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26018 " >&2;}
26019 { (exit 1); exit 1; }; }
26020 ;;
26021 esac
26022
26023 if test "$WXGTK20" = 1; then
304205f1
VS
26024 save_CFLAGS="$CFLAGS"
26025 save_LIBS="$LIBS"
9d271838 26026 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 26027 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26028
d12aef51
VZ
26029 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26030echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26031 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26032/* confdefs.h. */
26033_ACEOF
26034cat confdefs.h >>conftest.$ac_ext
26035cat >>conftest.$ac_ext <<_ACEOF
26036/* end confdefs.h. */
304205f1 26037
d12aef51 26038 #include <gtk/gtk.h>
304205f1 26039
d12aef51
VZ
26040int
26041main ()
26042{
304205f1 26043
d12aef51 26044 void *f = gtk_icon_size_lookup;
abc736fd
MW
26045
26046 ;
26047 return 0;
26048}
26049_ACEOF
26050rm -f conftest.$ac_objext
26051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26052 (eval $ac_compile) 2>conftest.er1
26053 ac_status=$?
26054 grep -v '^ *+' conftest.er1 >conftest.err
26055 rm -f conftest.er1
26056 cat conftest.err >&5
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); } &&
6ebeb4c7 26059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
26060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26061 (eval $ac_try) 2>&5
26062 ac_status=$?
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); }; } &&
26065 { ac_try='test -s conftest.$ac_objext'
26066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26067 (eval $ac_try) 2>&5
26068 ac_status=$?
26069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070 (exit $ac_status); }; }; then
26071
26072 echo "$as_me:$LINENO: result: no" >&5
26073echo "${ECHO_T}no" >&6
26074
26075else
26076 echo "$as_me: failed program was:" >&5
26077sed 's/^/| /' conftest.$ac_ext >&5
26078
26079
26080 cat >>confdefs.h <<\_ACEOF
26081#define NEED_GTK_ICON_SIZE_LOOKUP 1
26082_ACEOF
26083
26084 echo "$as_me:$LINENO: result: yes" >&5
26085echo "${ECHO_T}yes" >&6
26086
26087fi
26088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26089
9755e73b
VS
26090 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26091echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26092 cat >conftest.$ac_ext <<_ACEOF
26093/* confdefs.h. */
26094_ACEOF
26095cat confdefs.h >>conftest.$ac_ext
26096cat >>conftest.$ac_ext <<_ACEOF
26097/* end confdefs.h. */
26098
26099 #include <gtk/gtk.h>
26100
26101int
26102main ()
26103{
26104
26105 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26106 Not GTK+ 2.4
9755e73b
VS
26107 #endif
26108
26109 ;
26110 return 0;
26111}
26112_ACEOF
26113rm -f conftest.$ac_objext
26114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26115 (eval $ac_compile) 2>conftest.er1
26116 ac_status=$?
26117 grep -v '^ *+' conftest.er1 >conftest.err
26118 rm -f conftest.er1
26119 cat conftest.err >&5
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); } &&
6ebeb4c7 26122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
26123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26124 (eval $ac_try) 2>&5
26125 ac_status=$?
26126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127 (exit $ac_status); }; } &&
26128 { ac_try='test -s conftest.$ac_objext'
26129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26130 (eval $ac_try) 2>&5
26131 ac_status=$?
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); }; }; then
26134
26135 cat >>confdefs.h <<\_ACEOF
26136#define __WXGTK24__ 1
26137_ACEOF
26138
26139 echo "$as_me:$LINENO: result: yes" >&5
26140echo "${ECHO_T}yes" >&6
26141
26142else
26143 echo "$as_me: failed program was:" >&5
26144sed 's/^/| /' conftest.$ac_ext >&5
26145
26146
26147 echo "$as_me:$LINENO: result: no" >&5
26148echo "${ECHO_T}no" >&6
26149
26150fi
26151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26152
304205f1
VS
26153 CFLAGS="$save_CFLAGS"
26154 LIBS="$save_LIBS"
a848cd7e
SC
26155 else
26156 if test "$wxUSE_UNICODE" = "yes"; then
26157 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26158echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26159 wxUSE_UNICODE=no
26160 fi
26161 fi
26162
26163 if test "$USE_DARWIN" != 1; then
26164
26165for ac_func in poll
26166do
26167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26168echo "$as_me:$LINENO: checking for $ac_func" >&5
26169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26170if eval "test \"\${$as_ac_var+set}\" = set"; then
26171 echo $ECHO_N "(cached) $ECHO_C" >&6
26172else
26173 cat >conftest.$ac_ext <<_ACEOF
26174/* confdefs.h. */
26175_ACEOF
26176cat confdefs.h >>conftest.$ac_ext
26177cat >>conftest.$ac_ext <<_ACEOF
26178/* end confdefs.h. */
ac1cb8d3
VS
26179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26181#define $ac_func innocuous_$ac_func
26182
a848cd7e
SC
26183/* System header to define __stub macros and hopefully few prototypes,
26184 which can conflict with char $ac_func (); below.
26185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26186 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26187
a848cd7e
SC
26188#ifdef __STDC__
26189# include <limits.h>
26190#else
26191# include <assert.h>
26192#endif
ac1cb8d3
VS
26193
26194#undef $ac_func
26195
a848cd7e
SC
26196/* Override any gcc2 internal prototype to avoid an error. */
26197#ifdef __cplusplus
26198extern "C"
26199{
26200#endif
26201/* We use char because int might match the return type of a gcc2
26202 builtin and then its argument prototype would still apply. */
26203char $ac_func ();
26204/* The GNU C library defines this for functions which it implements
26205 to always fail with ENOSYS. Some functions are actually named
26206 something starting with __ and the normal name is an alias. */
26207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26208choke me
26209#else
26210char (*f) () = $ac_func;
26211#endif
26212#ifdef __cplusplus
26213}
26214#endif
26215
26216int
26217main ()
26218{
26219return f != $ac_func;
26220 ;
26221 return 0;
26222}
26223_ACEOF
26224rm -f conftest.$ac_objext conftest$ac_exeext
26225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26226 (eval $ac_link) 2>conftest.er1
a848cd7e 26227 ac_status=$?
ac1cb8d3
VS
26228 grep -v '^ *+' conftest.er1 >conftest.err
26229 rm -f conftest.er1
26230 cat conftest.err >&5
a848cd7e
SC
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); } &&
6ebeb4c7 26233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26235 (eval $ac_try) 2>&5
26236 ac_status=$?
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); }; } &&
26239 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241 (eval $ac_try) 2>&5
26242 ac_status=$?
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); }; }; then
26245 eval "$as_ac_var=yes"
26246else
26247 echo "$as_me: failed program was:" >&5
26248sed 's/^/| /' conftest.$ac_ext >&5
26249
26250eval "$as_ac_var=no"
26251fi
ac1cb8d3
VS
26252rm -f conftest.err conftest.$ac_objext \
26253 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26254fi
26255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26256echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26257if test `eval echo '${'$as_ac_var'}'` = yes; then
26258 cat >>confdefs.h <<_ACEOF
26259#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26260_ACEOF
26261
26262fi
26263done
26264
26265 fi
26266
26267 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
26268 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
26269
26270 AFMINSTALL=afminstall
26271 TOOLKIT=GTK
26272 GUIDIST=GTK_DIST
26273
26274 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
26275echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
26276if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
26277 echo $ECHO_N "(cached) $ECHO_C" >&6
26278else
26279 ac_check_lib_save_LIBS=$LIBS
26280LIBS="-lgdk $LIBS"
26281cat >conftest.$ac_ext <<_ACEOF
26282/* confdefs.h. */
26283_ACEOF
26284cat confdefs.h >>conftest.$ac_ext
26285cat >>conftest.$ac_ext <<_ACEOF
26286/* end confdefs.h. */
26287
26288/* Override any gcc2 internal prototype to avoid an error. */
26289#ifdef __cplusplus
26290extern "C"
26291#endif
26292/* We use char because int might match the return type of a gcc2
26293 builtin and then its argument prototype would still apply. */
26294char gdk_im_open ();
26295int
26296main ()
26297{
26298gdk_im_open ();
26299 ;
26300 return 0;
26301}
26302_ACEOF
26303rm -f conftest.$ac_objext conftest$ac_exeext
26304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26305 (eval $ac_link) 2>conftest.er1
a848cd7e 26306 ac_status=$?
ac1cb8d3
VS
26307 grep -v '^ *+' conftest.er1 >conftest.err
26308 rm -f conftest.er1
26309 cat conftest.err >&5
a848cd7e
SC
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } &&
6ebeb4c7 26312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26314 (eval $ac_try) 2>&5
26315 ac_status=$?
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); }; } &&
26318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26320 (eval $ac_try) 2>&5
26321 ac_status=$?
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); }; }; then
26324 ac_cv_lib_gdk_gdk_im_open=yes
26325else
26326 echo "$as_me: failed program was:" >&5
26327sed 's/^/| /' conftest.$ac_ext >&5
26328
26329ac_cv_lib_gdk_gdk_im_open=no
26330fi
ac1cb8d3
VS
26331rm -f conftest.err conftest.$ac_objext \
26332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26333LIBS=$ac_check_lib_save_LIBS
26334fi
26335echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26336echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26337if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26338 cat >>confdefs.h <<\_ACEOF
26339#define HAVE_XIM 1
26340_ACEOF
26341
26342fi
26343
26344
26345
26346 if test "$wxUSE_GPE" = "yes"; then
26347 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26348echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26349
0ad5d837
VZ
26350
26351 ac_find_libraries=
26352 for ac_dir in $SEARCH_LIB;
a848cd7e 26353 do
3eca31dc 26354 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
26355 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26356 ac_find_libraries=$ac_dir
26357 break 2
26358 fi
26359 done
26360 done
26361
0ad5d837
VZ
26362 if test "x$ac_find_libraries" = "x" ; then
26363
26364 ac_find_libraries=
26365 for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
26366 do
26367 for ac_extension in a so sl dylib dll.a; do
26368 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26369 ac_find_libraries=$ac_dir
26370 break 2
26371 fi
26372 done
26373 done
26374
26375 if test "x$ac_find_libraries" != "x" ; then
26376 ac_find_libraries="default location"
26377 fi
26378 fi
26379
a848cd7e
SC
26380 if test "$ac_find_libraries" != "" ; then
26381
0ad5d837 26382 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
26383 ac_path_to_link=""
26384 else
0ad5d837
VZ
26385 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26386 result=$?
26387 if test $result = 0; then
26388 ac_path_to_link=""
26389 else
26390 ac_path_to_link=" -L$ac_find_libraries"
26391 fi
a848cd7e
SC
26392 fi
26393
26394 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26395 WXGPE=1
0ad5d837
VZ
26396 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
26397echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
26398 else
26399 echo "$as_me:$LINENO: result: not found" >&5
26400echo "${ECHO_T}not found" >&6
26401 fi
26402
26403 fi
26404 fi
26405
26406 if test "$wxUSE_MGL" = 1; then
26407 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26408echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26409 if test "x$MGL_ROOT" = x ; then
26410 echo "$as_me:$LINENO: result: not found" >&5
26411echo "${ECHO_T}not found" >&6
26412 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26413echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26414 { (exit 1); exit 1; }; }
26415 else
26416 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26417echo "${ECHO_T}$MGL_ROOT" >&6
26418 fi
26419
26420 echo "$as_me:$LINENO: checking for libmgl location" >&5
26421echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26422 case "${host}" in
26423 *-*-linux* )
26424 if test "x$wxUSE_SHARED" = xyes ; then
26425 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26426 else
26427 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26428 fi
26429 ;;
26430 *-pc-msdosdjgpp )
26431 mgl_os_candidates="dos32/dj2"
26432 ;;
26433 *)
26434 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26435echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26436 { (exit 1); exit 1; }; }
26437 esac
26438
26439 mgl_lib_type=""
26440 mgl_os=""
26441
26442 for mgl_os_i in $mgl_os_candidates ; do
26443 if test "x$mgl_os" = x ; then
26444 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26445 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26446 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26447 mgl_lib_type=debug
26448 mgl_os=$mgl_os_i
26449 fi
26450 fi
26451 if test "x$mgl_lib_type" = x ; then
26452 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26453 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26454 mgl_lib_type=release
26455 mgl_os=$mgl_os_i
26456 fi
26457 fi
26458 fi
26459 done
26460
26461 if test "x$mgl_os" = x ; then
26462 echo "$as_me:$LINENO: result: not found" >&5
26463echo "${ECHO_T}not found" >&6
26464 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26465echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26466 { (exit 1); exit 1; }; }
26467 fi
26468 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26469echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26470
26471 wxUSE_UNIVERSAL="yes"
26472
26473 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26474 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26475
26476 AFMINSTALL=afminstall
26477 TOOLKIT=MGL
26478 GUIDIST=MGL_DIST
26479 fi
26480
26481 if test "$wxUSE_MICROWIN" = 1; then
26482 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26483echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26484 if test "x$MICROWINDOWS" = x ; then
26485 echo "$as_me:$LINENO: result: not found" >&5
26486echo "${ECHO_T}not found" >&6
26487 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26488echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26489 { (exit 1); exit 1; }; }
26490 else
26491 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26492echo "${ECHO_T}$MICROWINDOWS" >&6
26493 fi
26494
26495 if test -f $MICROWINDOWS/lib/libmwin.a; then
26496 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26497echo "${ECHO_T}MicroWindows' libraries found." >&6
26498 else
26499 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26500echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26501 { (exit 1); exit 1; }; }
26502 fi
26503
26504 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26505 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26506
26507 wxUSE_UNIVERSAL="yes"
26508
26509 AFMINSTALL=afminstall
26510 TOOLKIT=MICROWIN
26511 GUIDIST=MICROWIN_DIST
26512
26513 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26514 fi
26515
74b84332 26516 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
26517
26518if test "x$ac_path_x_has_been_run" != xyes; then
26519 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26520echo $ECHO_N "checking for X... $ECHO_C" >&6
26521
6ebeb4c7 26522ac_path_x_has_been_run=yes
a848cd7e
SC
26523
26524# Check whether --with-x or --without-x was given.
26525if test "${with_x+set}" = set; then
26526 withval="$with_x"
26527
26528fi;
26529# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26530if test "x$with_x" = xno; then
26531 # The user explicitly disabled X.
26532 have_x=disabled
26533else
26534 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26535 # Both variables are already set.
26536 have_x=yes
26537 else
26538 if test "${ac_cv_have_x+set}" = set; then
26539 echo $ECHO_N "(cached) $ECHO_C" >&6
26540else
26541 # One or both of the vars are not set, and there is no cached value.
26542ac_x_includes=no ac_x_libraries=no
26543rm -fr conftest.dir
26544if mkdir conftest.dir; then
26545 cd conftest.dir
26546 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26547 cat >Imakefile <<'_ACEOF'
26548acfindx:
26549 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26550_ACEOF
26551 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26552 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26553 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26554 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26555 for ac_extension in a so sl; do
26556 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26557 test -f $ac_im_libdir/libX11.$ac_extension; then
26558 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26559 fi
26560 done
26561 # Screen out bogus values from the imake configuration. They are
26562 # bogus both because they are the default anyway, and because
26563 # using them would break gcc on systems where it needs fixed includes.
26564 case $ac_im_incroot in
26565 /usr/include) ;;
26566 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26567 esac
26568 case $ac_im_usrlibdir in
26569 /usr/lib | /lib) ;;
26570 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26571 esac
26572 fi
26573 cd ..
26574 rm -fr conftest.dir
26575fi
26576
26577# Standard set of common directories for X headers.
26578# Check X11 before X11Rn because it is often a symlink to the current release.
26579ac_x_header_dirs='
26580/usr/X11/include
26581/usr/X11R6/include
26582/usr/X11R5/include
26583/usr/X11R4/include
26584
26585/usr/include/X11
26586/usr/include/X11R6
26587/usr/include/X11R5
26588/usr/include/X11R4
26589
26590/usr/local/X11/include
26591/usr/local/X11R6/include
26592/usr/local/X11R5/include
26593/usr/local/X11R4/include
26594
26595/usr/local/include/X11
26596/usr/local/include/X11R6
26597/usr/local/include/X11R5
26598/usr/local/include/X11R4
26599
26600/usr/X386/include
26601/usr/x386/include
26602/usr/XFree86/include/X11
26603
26604/usr/include
26605/usr/local/include
26606/usr/unsupported/include
26607/usr/athena/include
26608/usr/local/x11r5/include
26609/usr/lpp/Xamples/include
26610
26611/usr/openwin/include
26612/usr/openwin/share/include'
26613
26614if test "$ac_x_includes" = no; then
6ebeb4c7 26615 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26616 # First, try using that file with no special directory specified.
26617 cat >conftest.$ac_ext <<_ACEOF
26618/* confdefs.h. */
26619_ACEOF
26620cat confdefs.h >>conftest.$ac_ext
26621cat >>conftest.$ac_ext <<_ACEOF
26622/* end confdefs.h. */
26623#include <X11/Intrinsic.h>
26624_ACEOF
26625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26627 ac_status=$?
26628 grep -v '^ *+' conftest.er1 >conftest.err
26629 rm -f conftest.er1
26630 cat conftest.err >&5
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); } >/dev/null; then
26633 if test -s conftest.err; then
26634 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26636 else
26637 ac_cpp_err=
26638 fi
26639else
26640 ac_cpp_err=yes
26641fi
26642if test -z "$ac_cpp_err"; then
26643 # We can compile using X headers with no special include directory.
26644ac_x_includes=
26645else
26646 echo "$as_me: failed program was:" >&5
26647sed 's/^/| /' conftest.$ac_ext >&5
26648
26649 for ac_dir in $ac_x_header_dirs; do
26650 if test -r "$ac_dir/X11/Intrinsic.h"; then
26651 ac_x_includes=$ac_dir
26652 break
26653 fi
26654done
26655fi
26656rm -f conftest.err conftest.$ac_ext
26657fi # $ac_x_includes = no
26658
26659if test "$ac_x_libraries" = no; then
26660 # Check for the libraries.
26661 # See if we find them without any special options.
26662 # Don't add to $LIBS permanently.
26663 ac_save_LIBS=$LIBS
26664 LIBS="-lXt $LIBS"
26665 cat >conftest.$ac_ext <<_ACEOF
26666/* confdefs.h. */
26667_ACEOF
26668cat confdefs.h >>conftest.$ac_ext
26669cat >>conftest.$ac_ext <<_ACEOF
26670/* end confdefs.h. */
26671#include <X11/Intrinsic.h>
26672int
26673main ()
26674{
26675XtMalloc (0)
26676 ;
26677 return 0;
26678}
26679_ACEOF
26680rm -f conftest.$ac_objext conftest$ac_exeext
26681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26682 (eval $ac_link) 2>conftest.er1
a848cd7e 26683 ac_status=$?
ac1cb8d3
VS
26684 grep -v '^ *+' conftest.er1 >conftest.err
26685 rm -f conftest.er1
26686 cat conftest.err >&5
a848cd7e
SC
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } &&
6ebeb4c7 26689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691 (eval $ac_try) 2>&5
26692 ac_status=$?
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; } &&
26695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697 (eval $ac_try) 2>&5
26698 ac_status=$?
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); }; }; then
26701 LIBS=$ac_save_LIBS
26702# We can link X programs with no special library path.
26703ac_x_libraries=
26704else
26705 echo "$as_me: failed program was:" >&5
26706sed 's/^/| /' conftest.$ac_ext >&5
26707
26708LIBS=$ac_save_LIBS
26709for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26710do
26711 # Don't even attempt the hair of trying to link an X program!
26712 for ac_extension in a so sl; do
26713 if test -r $ac_dir/libXt.$ac_extension; then
26714 ac_x_libraries=$ac_dir
26715 break 2
26716 fi
26717 done
26718done
26719fi
ac1cb8d3
VS
26720rm -f conftest.err conftest.$ac_objext \
26721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26722fi # $ac_x_libraries = no
26723
26724if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26725 # Didn't find X anywhere. Cache the known absence of X.
26726 ac_cv_have_x="have_x=no"
26727else
26728 # Record where we found X for the cache.
26729 ac_cv_have_x="have_x=yes \
ac1cb8d3 26730 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26731fi
26732fi
26733
26734 fi
26735 eval "$ac_cv_have_x"
26736fi # $with_x != no
26737
26738if test "$have_x" != yes; then
26739 echo "$as_me:$LINENO: result: $have_x" >&5
26740echo "${ECHO_T}$have_x" >&6
26741 no_x=yes
26742else
26743 # If each of the values was on the command line, it overrides each guess.
26744 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26745 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26746 # Update the cache value to reflect the command line values.
26747 ac_cv_have_x="have_x=yes \
26748 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26749 # It might be that x_includes is empty (headers are found in the
26750 # standard search path. Then output the corresponding message
26751 ac_out_x_includes=$x_includes
26752 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26753 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26754echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26755fi
26756
6ebeb4c7 26757fi
a848cd7e
SC
26758if test "$no_x" = yes; then
26759 # Not all programs may use this symbol, but it does not hurt to define it.
26760
26761cat >>confdefs.h <<\_ACEOF
26762#define X_DISPLAY_MISSING 1
26763_ACEOF
26764
26765 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26766else
26767 if test -n "$x_includes"; then
26768 X_CFLAGS="$X_CFLAGS -I$x_includes"
26769 fi
26770
26771 # It would also be nice to do this for all -L options, not just this one.
26772 if test -n "$x_libraries"; then
26773 X_LIBS="$X_LIBS -L$x_libraries"
26774 # For Solaris; some versions of Sun CC require a space after -R and
26775 # others require no space. Words are not sufficient . . . .
26776 case `(uname -sr) 2>/dev/null` in
26777 "SunOS 5"*)
26778 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26779echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26780 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26781 cat >conftest.$ac_ext <<_ACEOF
26782/* confdefs.h. */
26783_ACEOF
26784cat confdefs.h >>conftest.$ac_ext
26785cat >>conftest.$ac_ext <<_ACEOF
26786/* end confdefs.h. */
26787
26788int
26789main ()
26790{
26791
26792 ;
26793 return 0;
26794}
26795_ACEOF
26796rm -f conftest.$ac_objext conftest$ac_exeext
26797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26798 (eval $ac_link) 2>conftest.er1
a848cd7e 26799 ac_status=$?
ac1cb8d3
VS
26800 grep -v '^ *+' conftest.er1 >conftest.err
26801 rm -f conftest.er1
26802 cat conftest.err >&5
a848cd7e
SC
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); } &&
6ebeb4c7 26805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807 (eval $ac_try) 2>&5
26808 ac_status=$?
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); }; } &&
26811 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26813 (eval $ac_try) 2>&5
26814 ac_status=$?
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); }; }; then
26817 ac_R_nospace=yes
26818else
26819 echo "$as_me: failed program was:" >&5
26820sed 's/^/| /' conftest.$ac_ext >&5
26821
26822ac_R_nospace=no
26823fi
ac1cb8d3
VS
26824rm -f conftest.err conftest.$ac_objext \
26825 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26826 if test $ac_R_nospace = yes; then
26827 echo "$as_me:$LINENO: result: no" >&5
26828echo "${ECHO_T}no" >&6
26829 X_LIBS="$X_LIBS -R$x_libraries"
26830 else
26831 LIBS="$ac_xsave_LIBS -R $x_libraries"
26832 cat >conftest.$ac_ext <<_ACEOF
26833/* confdefs.h. */
26834_ACEOF
26835cat confdefs.h >>conftest.$ac_ext
26836cat >>conftest.$ac_ext <<_ACEOF
26837/* end confdefs.h. */
26838
26839int
26840main ()
26841{
26842
26843 ;
26844 return 0;
26845}
26846_ACEOF
26847rm -f conftest.$ac_objext conftest$ac_exeext
26848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26849 (eval $ac_link) 2>conftest.er1
a848cd7e 26850 ac_status=$?
ac1cb8d3
VS
26851 grep -v '^ *+' conftest.er1 >conftest.err
26852 rm -f conftest.er1
26853 cat conftest.err >&5
a848cd7e
SC
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); } &&
6ebeb4c7 26856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26858 (eval $ac_try) 2>&5
26859 ac_status=$?
26860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861 (exit $ac_status); }; } &&
26862 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26864 (eval $ac_try) 2>&5
26865 ac_status=$?
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); }; }; then
26868 ac_R_space=yes
26869else
26870 echo "$as_me: failed program was:" >&5
26871sed 's/^/| /' conftest.$ac_ext >&5
26872
26873ac_R_space=no
26874fi
ac1cb8d3
VS
26875rm -f conftest.err conftest.$ac_objext \
26876 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26877 if test $ac_R_space = yes; then
26878 echo "$as_me:$LINENO: result: yes" >&5
26879echo "${ECHO_T}yes" >&6
26880 X_LIBS="$X_LIBS -R $x_libraries"
26881 else
26882 echo "$as_me:$LINENO: result: neither works" >&5
26883echo "${ECHO_T}neither works" >&6
26884 fi
26885 fi
26886 LIBS=$ac_xsave_LIBS
26887 esac
26888 fi
26889
26890 # Check for system-dependent libraries X programs must link with.
26891 # Do this before checking for the system-independent R6 libraries
26892 # (-lICE), since we may need -lsocket or whatever for X linking.
26893
26894 if test "$ISC" = yes; then
26895 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26896 else
26897 # Martyn Johnson says this is needed for Ultrix, if the X
26898 # libraries were built with DECnet support. And Karl Berry says
26899 # the Alpha needs dnet_stub (dnet does not exist).
26900 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26901 cat >conftest.$ac_ext <<_ACEOF
26902/* confdefs.h. */
26903_ACEOF
26904cat confdefs.h >>conftest.$ac_ext
26905cat >>conftest.$ac_ext <<_ACEOF
26906/* end confdefs.h. */
26907
26908/* Override any gcc2 internal prototype to avoid an error. */
26909#ifdef __cplusplus
26910extern "C"
26911#endif
26912/* We use char because int might match the return type of a gcc2
26913 builtin and then its argument prototype would still apply. */
26914char XOpenDisplay ();
26915int
26916main ()
26917{
26918XOpenDisplay ();
26919 ;
26920 return 0;
26921}
26922_ACEOF
26923rm -f conftest.$ac_objext conftest$ac_exeext
26924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26925 (eval $ac_link) 2>conftest.er1
a848cd7e 26926 ac_status=$?
ac1cb8d3
VS
26927 grep -v '^ *+' conftest.er1 >conftest.err
26928 rm -f conftest.er1
26929 cat conftest.err >&5
a848cd7e
SC
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); } &&
6ebeb4c7 26932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; } &&
26938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; }; then
26944 :
26945else
26946 echo "$as_me: failed program was:" >&5
26947sed 's/^/| /' conftest.$ac_ext >&5
26948
26949echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26950echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26951if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26952 echo $ECHO_N "(cached) $ECHO_C" >&6
26953else
26954 ac_check_lib_save_LIBS=$LIBS
26955LIBS="-ldnet $LIBS"
26956cat >conftest.$ac_ext <<_ACEOF
26957/* confdefs.h. */
26958_ACEOF
26959cat confdefs.h >>conftest.$ac_ext
26960cat >>conftest.$ac_ext <<_ACEOF
26961/* end confdefs.h. */
26962
26963/* Override any gcc2 internal prototype to avoid an error. */
26964#ifdef __cplusplus
26965extern "C"
26966#endif
26967/* We use char because int might match the return type of a gcc2
26968 builtin and then its argument prototype would still apply. */
26969char dnet_ntoa ();
26970int
26971main ()
26972{
26973dnet_ntoa ();
26974 ;
26975 return 0;
26976}
26977_ACEOF
26978rm -f conftest.$ac_objext conftest$ac_exeext
26979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26980 (eval $ac_link) 2>conftest.er1
a848cd7e 26981 ac_status=$?
ac1cb8d3
VS
26982 grep -v '^ *+' conftest.er1 >conftest.err
26983 rm -f conftest.er1
26984 cat conftest.err >&5
a848cd7e
SC
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); } &&
6ebeb4c7 26987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; } &&
26993 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995 (eval $ac_try) 2>&5
26996 ac_status=$?
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); }; }; then
26999 ac_cv_lib_dnet_dnet_ntoa=yes
27000else
27001 echo "$as_me: failed program was:" >&5
27002sed 's/^/| /' conftest.$ac_ext >&5
27003
27004ac_cv_lib_dnet_dnet_ntoa=no
27005fi
ac1cb8d3
VS
27006rm -f conftest.err conftest.$ac_objext \
27007 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27008LIBS=$ac_check_lib_save_LIBS
27009fi
27010echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27011echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27012if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27013 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27014fi
27015
27016 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27017 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27018echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27019if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27020 echo $ECHO_N "(cached) $ECHO_C" >&6
27021else
27022 ac_check_lib_save_LIBS=$LIBS
27023LIBS="-ldnet_stub $LIBS"
27024cat >conftest.$ac_ext <<_ACEOF
27025/* confdefs.h. */
27026_ACEOF
27027cat confdefs.h >>conftest.$ac_ext
27028cat >>conftest.$ac_ext <<_ACEOF
27029/* end confdefs.h. */
27030
27031/* Override any gcc2 internal prototype to avoid an error. */
27032#ifdef __cplusplus
27033extern "C"
27034#endif
27035/* We use char because int might match the return type of a gcc2
27036 builtin and then its argument prototype would still apply. */
27037char dnet_ntoa ();
27038int
27039main ()
27040{
27041dnet_ntoa ();
27042 ;
27043 return 0;
27044}
27045_ACEOF
27046rm -f conftest.$ac_objext conftest$ac_exeext
27047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27048 (eval $ac_link) 2>conftest.er1
a848cd7e 27049 ac_status=$?
ac1cb8d3
VS
27050 grep -v '^ *+' conftest.er1 >conftest.err
27051 rm -f conftest.er1
27052 cat conftest.err >&5
a848cd7e
SC
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); } &&
6ebeb4c7 27055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057 (eval $ac_try) 2>&5
27058 ac_status=$?
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); }; } &&
27061 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27063 (eval $ac_try) 2>&5
27064 ac_status=$?
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; }; then
27067 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27068else
27069 echo "$as_me: failed program was:" >&5
27070sed 's/^/| /' conftest.$ac_ext >&5
27071
27072ac_cv_lib_dnet_stub_dnet_ntoa=no
27073fi
ac1cb8d3
VS
27074rm -f conftest.err conftest.$ac_objext \
27075 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27076LIBS=$ac_check_lib_save_LIBS
27077fi
27078echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27079echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27080if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27081 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27082fi
27083
27084 fi
27085fi
ac1cb8d3
VS
27086rm -f conftest.err conftest.$ac_objext \
27087 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27088 LIBS="$ac_xsave_LIBS"
27089
27090 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27091 # to get the SysV transport functions.
27092 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27093 # needs -lnsl.
27094 # The nsl library prevents programs from opening the X display
27095 # on Irix 5.2, according to T.E. Dickey.
27096 # The functions gethostbyname, getservbyname, and inet_addr are
27097 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27098 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27099echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27100if test "${ac_cv_func_gethostbyname+set}" = set; then
27101 echo $ECHO_N "(cached) $ECHO_C" >&6
27102else
27103 cat >conftest.$ac_ext <<_ACEOF
27104/* confdefs.h. */
27105_ACEOF
27106cat confdefs.h >>conftest.$ac_ext
27107cat >>conftest.$ac_ext <<_ACEOF
27108/* end confdefs.h. */
ac1cb8d3
VS
27109/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27111#define gethostbyname innocuous_gethostbyname
27112
a848cd7e
SC
27113/* System header to define __stub macros and hopefully few prototypes,
27114 which can conflict with char gethostbyname (); below.
27115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27116 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27117
a848cd7e
SC
27118#ifdef __STDC__
27119# include <limits.h>
27120#else
27121# include <assert.h>
27122#endif
ac1cb8d3
VS
27123
27124#undef gethostbyname
27125
a848cd7e
SC
27126/* Override any gcc2 internal prototype to avoid an error. */
27127#ifdef __cplusplus
27128extern "C"
27129{
27130#endif
27131/* We use char because int might match the return type of a gcc2
27132 builtin and then its argument prototype would still apply. */
27133char gethostbyname ();
27134/* The GNU C library defines this for functions which it implements
27135 to always fail with ENOSYS. Some functions are actually named
27136 something starting with __ and the normal name is an alias. */
27137#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27138choke me
27139#else
27140char (*f) () = gethostbyname;
27141#endif
27142#ifdef __cplusplus
27143}
27144#endif
27145
27146int
27147main ()
27148{
27149return f != gethostbyname;
27150 ;
27151 return 0;
27152}
27153_ACEOF
27154rm -f conftest.$ac_objext conftest$ac_exeext
27155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27156 (eval $ac_link) 2>conftest.er1
a848cd7e 27157 ac_status=$?
ac1cb8d3
VS
27158 grep -v '^ *+' conftest.er1 >conftest.err
27159 rm -f conftest.er1
27160 cat conftest.err >&5
a848cd7e
SC
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); } &&
6ebeb4c7 27163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27165 (eval $ac_try) 2>&5
27166 ac_status=$?
27167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168 (exit $ac_status); }; } &&
27169 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27171 (eval $ac_try) 2>&5
27172 ac_status=$?
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); }; }; then
27175 ac_cv_func_gethostbyname=yes
27176else
27177 echo "$as_me: failed program was:" >&5
27178sed 's/^/| /' conftest.$ac_ext >&5
27179
27180ac_cv_func_gethostbyname=no
27181fi
ac1cb8d3
VS
27182rm -f conftest.err conftest.$ac_objext \
27183 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27184fi
27185echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27186echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27187
27188 if test $ac_cv_func_gethostbyname = no; then
27189 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27190echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27191if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27193else
27194 ac_check_lib_save_LIBS=$LIBS
27195LIBS="-lnsl $LIBS"
27196cat >conftest.$ac_ext <<_ACEOF
27197/* confdefs.h. */
27198_ACEOF
27199cat confdefs.h >>conftest.$ac_ext
27200cat >>conftest.$ac_ext <<_ACEOF
27201/* end confdefs.h. */
27202
27203/* Override any gcc2 internal prototype to avoid an error. */
27204#ifdef __cplusplus
27205extern "C"
27206#endif
27207/* We use char because int might match the return type of a gcc2
27208 builtin and then its argument prototype would still apply. */
27209char gethostbyname ();
27210int
27211main ()
27212{
27213gethostbyname ();
27214 ;
27215 return 0;
27216}
27217_ACEOF
27218rm -f conftest.$ac_objext conftest$ac_exeext
27219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
27220 (eval $ac_link) 2>conftest.er1
27221 ac_status=$?
27222 grep -v '^ *+' conftest.er1 >conftest.err
27223 rm -f conftest.er1
27224 cat conftest.err >&5
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); } &&
6ebeb4c7 27227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27229 (eval $ac_try) 2>&5
27230 ac_status=$?
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; } &&
27233 { ac_try='test -s conftest$ac_exeext'
27234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27235 (eval $ac_try) 2>&5
27236 ac_status=$?
27237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); }; }; then
27239 ac_cv_lib_nsl_gethostbyname=yes
27240else
27241 echo "$as_me: failed program was:" >&5
27242sed 's/^/| /' conftest.$ac_ext >&5
27243
27244ac_cv_lib_nsl_gethostbyname=no
27245fi
27246rm -f conftest.err conftest.$ac_objext \
27247 conftest$ac_exeext conftest.$ac_ext
27248LIBS=$ac_check_lib_save_LIBS
27249fi
27250echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27251echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27252if test $ac_cv_lib_nsl_gethostbyname = yes; then
27253 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27254fi
27255
27256 if test $ac_cv_lib_nsl_gethostbyname = no; then
27257 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27258echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
27259if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27261else
27262 ac_check_lib_save_LIBS=$LIBS
27263LIBS="-lbsd $LIBS"
27264cat >conftest.$ac_ext <<_ACEOF
27265/* confdefs.h. */
27266_ACEOF
27267cat confdefs.h >>conftest.$ac_ext
27268cat >>conftest.$ac_ext <<_ACEOF
27269/* end confdefs.h. */
27270
27271/* Override any gcc2 internal prototype to avoid an error. */
27272#ifdef __cplusplus
27273extern "C"
27274#endif
27275/* We use char because int might match the return type of a gcc2
27276 builtin and then its argument prototype would still apply. */
27277char gethostbyname ();
27278int
27279main ()
27280{
27281gethostbyname ();
27282 ;
27283 return 0;
27284}
27285_ACEOF
27286rm -f conftest.$ac_objext conftest$ac_exeext
27287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27288 (eval $ac_link) 2>conftest.er1
a848cd7e 27289 ac_status=$?
ac1cb8d3
VS
27290 grep -v '^ *+' conftest.er1 >conftest.err
27291 rm -f conftest.er1
27292 cat conftest.err >&5
a848cd7e
SC
27293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); } &&
6ebeb4c7 27295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297 (eval $ac_try) 2>&5
27298 ac_status=$?
27299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
27300 (exit $ac_status); }; } &&
27301 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27304 ac_status=$?
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; }; then
27307 ac_cv_lib_bsd_gethostbyname=yes
27308else
27309 echo "$as_me: failed program was:" >&5
27310sed 's/^/| /' conftest.$ac_ext >&5
27311
27312ac_cv_lib_bsd_gethostbyname=no
27313fi
ac1cb8d3
VS
27314rm -f conftest.err conftest.$ac_objext \
27315 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27316LIBS=$ac_check_lib_save_LIBS
27317fi
27318echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27319echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
27320if test $ac_cv_lib_bsd_gethostbyname = yes; then
27321 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27322fi
27323
27324 fi
27325 fi
27326
27327 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27328 # socket/setsockopt and other routines are undefined under SCO ODT
27329 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27330 # on later versions), says Simon Leinen: it contains gethostby*
27331 # variants that don't use the name server (or something). -lsocket
27332 # must be given before -lnsl if both are needed. We assume that
27333 # if connect needs -lnsl, so does gethostbyname.
27334 echo "$as_me:$LINENO: checking for connect" >&5
27335echo $ECHO_N "checking for connect... $ECHO_C" >&6
27336if test "${ac_cv_func_connect+set}" = set; then
27337 echo $ECHO_N "(cached) $ECHO_C" >&6
27338else
27339 cat >conftest.$ac_ext <<_ACEOF
27340/* confdefs.h. */
27341_ACEOF
27342cat confdefs.h >>conftest.$ac_ext
27343cat >>conftest.$ac_ext <<_ACEOF
27344/* end confdefs.h. */
ac1cb8d3
VS
27345/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27347#define connect innocuous_connect
27348
a848cd7e
SC
27349/* System header to define __stub macros and hopefully few prototypes,
27350 which can conflict with char connect (); below.
27351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27352 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27353
a848cd7e
SC
27354#ifdef __STDC__
27355# include <limits.h>
27356#else
27357# include <assert.h>
27358#endif
ac1cb8d3
VS
27359
27360#undef connect
27361
a848cd7e
SC
27362/* Override any gcc2 internal prototype to avoid an error. */
27363#ifdef __cplusplus
27364extern "C"
27365{
27366#endif
27367/* We use char because int might match the return type of a gcc2
27368 builtin and then its argument prototype would still apply. */
27369char connect ();
27370/* The GNU C library defines this for functions which it implements
27371 to always fail with ENOSYS. Some functions are actually named
27372 something starting with __ and the normal name is an alias. */
27373#if defined (__stub_connect) || defined (__stub___connect)
27374choke me
27375#else
27376char (*f) () = connect;
27377#endif
27378#ifdef __cplusplus
27379}
27380#endif
27381
27382int
27383main ()
27384{
27385return f != connect;
27386 ;
27387 return 0;
27388}
27389_ACEOF
27390rm -f conftest.$ac_objext conftest$ac_exeext
27391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27392 (eval $ac_link) 2>conftest.er1
a848cd7e 27393 ac_status=$?
ac1cb8d3
VS
27394 grep -v '^ *+' conftest.er1 >conftest.err
27395 rm -f conftest.er1
27396 cat conftest.err >&5
a848cd7e
SC
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); } &&
6ebeb4c7 27399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27401 (eval $ac_try) 2>&5
27402 ac_status=$?
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); }; } &&
27405 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407 (eval $ac_try) 2>&5
27408 ac_status=$?
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); }; }; then
27411 ac_cv_func_connect=yes
27412else
27413 echo "$as_me: failed program was:" >&5
27414sed 's/^/| /' conftest.$ac_ext >&5
27415
27416ac_cv_func_connect=no
27417fi
ac1cb8d3
VS
27418rm -f conftest.err conftest.$ac_objext \
27419 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27420fi
27421echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27422echo "${ECHO_T}$ac_cv_func_connect" >&6
27423
27424 if test $ac_cv_func_connect = no; then
27425 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27426echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27427if test "${ac_cv_lib_socket_connect+set}" = set; then
27428 echo $ECHO_N "(cached) $ECHO_C" >&6
27429else
27430 ac_check_lib_save_LIBS=$LIBS
27431LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27432cat >conftest.$ac_ext <<_ACEOF
27433/* confdefs.h. */
27434_ACEOF
27435cat confdefs.h >>conftest.$ac_ext
27436cat >>conftest.$ac_ext <<_ACEOF
27437/* end confdefs.h. */
27438
27439/* Override any gcc2 internal prototype to avoid an error. */
27440#ifdef __cplusplus
27441extern "C"
27442#endif
27443/* We use char because int might match the return type of a gcc2
27444 builtin and then its argument prototype would still apply. */
27445char connect ();
27446int
27447main ()
27448{
27449connect ();
27450 ;
27451 return 0;
27452}
27453_ACEOF
27454rm -f conftest.$ac_objext conftest$ac_exeext
27455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27456 (eval $ac_link) 2>conftest.er1
a848cd7e 27457 ac_status=$?
ac1cb8d3
VS
27458 grep -v '^ *+' conftest.er1 >conftest.err
27459 rm -f conftest.er1
27460 cat conftest.err >&5
a848cd7e
SC
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); } &&
6ebeb4c7 27463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465 (eval $ac_try) 2>&5
27466 ac_status=$?
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); }; } &&
27469 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27471 (eval $ac_try) 2>&5
27472 ac_status=$?
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; }; then
27475 ac_cv_lib_socket_connect=yes
27476else
27477 echo "$as_me: failed program was:" >&5
27478sed 's/^/| /' conftest.$ac_ext >&5
27479
27480ac_cv_lib_socket_connect=no
27481fi
ac1cb8d3
VS
27482rm -f conftest.err conftest.$ac_objext \
27483 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27484LIBS=$ac_check_lib_save_LIBS
27485fi
27486echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27487echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27488if test $ac_cv_lib_socket_connect = yes; then
27489 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27490fi
27491
27492 fi
27493
27494 # Guillermo Gomez says -lposix is necessary on A/UX.
27495 echo "$as_me:$LINENO: checking for remove" >&5
27496echo $ECHO_N "checking for remove... $ECHO_C" >&6
27497if test "${ac_cv_func_remove+set}" = set; then
27498 echo $ECHO_N "(cached) $ECHO_C" >&6
27499else
27500 cat >conftest.$ac_ext <<_ACEOF
27501/* confdefs.h. */
27502_ACEOF
27503cat confdefs.h >>conftest.$ac_ext
27504cat >>conftest.$ac_ext <<_ACEOF
27505/* end confdefs.h. */
ac1cb8d3
VS
27506/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27508#define remove innocuous_remove
27509
a848cd7e
SC
27510/* System header to define __stub macros and hopefully few prototypes,
27511 which can conflict with char remove (); below.
27512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27513 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27514
a848cd7e
SC
27515#ifdef __STDC__
27516# include <limits.h>
27517#else
27518# include <assert.h>
27519#endif
ac1cb8d3
VS
27520
27521#undef remove
27522
a848cd7e
SC
27523/* Override any gcc2 internal prototype to avoid an error. */
27524#ifdef __cplusplus
27525extern "C"
27526{
27527#endif
27528/* We use char because int might match the return type of a gcc2
27529 builtin and then its argument prototype would still apply. */
27530char remove ();
27531/* The GNU C library defines this for functions which it implements
27532 to always fail with ENOSYS. Some functions are actually named
27533 something starting with __ and the normal name is an alias. */
27534#if defined (__stub_remove) || defined (__stub___remove)
27535choke me
27536#else
27537char (*f) () = remove;
27538#endif
27539#ifdef __cplusplus
27540}
27541#endif
27542
27543int
27544main ()
27545{
27546return f != remove;
27547 ;
27548 return 0;
27549}
27550_ACEOF
27551rm -f conftest.$ac_objext conftest$ac_exeext
27552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27553 (eval $ac_link) 2>conftest.er1
a848cd7e 27554 ac_status=$?
ac1cb8d3
VS
27555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
a848cd7e
SC
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } &&
6ebeb4c7 27560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27562 (eval $ac_try) 2>&5
27563 ac_status=$?
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); }; } &&
27566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27568 (eval $ac_try) 2>&5
27569 ac_status=$?
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); }; }; then
27572 ac_cv_func_remove=yes
27573else
27574 echo "$as_me: failed program was:" >&5
27575sed 's/^/| /' conftest.$ac_ext >&5
27576
27577ac_cv_func_remove=no
27578fi
ac1cb8d3
VS
27579rm -f conftest.err conftest.$ac_objext \
27580 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27581fi
27582echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27583echo "${ECHO_T}$ac_cv_func_remove" >&6
27584
27585 if test $ac_cv_func_remove = no; then
27586 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27587echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27588if test "${ac_cv_lib_posix_remove+set}" = set; then
27589 echo $ECHO_N "(cached) $ECHO_C" >&6
27590else
27591 ac_check_lib_save_LIBS=$LIBS
27592LIBS="-lposix $LIBS"
27593cat >conftest.$ac_ext <<_ACEOF
27594/* confdefs.h. */
27595_ACEOF
27596cat confdefs.h >>conftest.$ac_ext
27597cat >>conftest.$ac_ext <<_ACEOF
27598/* end confdefs.h. */
27599
27600/* Override any gcc2 internal prototype to avoid an error. */
27601#ifdef __cplusplus
27602extern "C"
27603#endif
27604/* We use char because int might match the return type of a gcc2
27605 builtin and then its argument prototype would still apply. */
27606char remove ();
27607int
27608main ()
27609{
27610remove ();
27611 ;
27612 return 0;
27613}
27614_ACEOF
27615rm -f conftest.$ac_objext conftest$ac_exeext
27616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27617 (eval $ac_link) 2>conftest.er1
a848cd7e 27618 ac_status=$?
ac1cb8d3
VS
27619 grep -v '^ *+' conftest.er1 >conftest.err
27620 rm -f conftest.er1
27621 cat conftest.err >&5
a848cd7e
SC
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); } &&
6ebeb4c7 27624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626 (eval $ac_try) 2>&5
27627 ac_status=$?
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); }; } &&
27630 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27632 (eval $ac_try) 2>&5
27633 ac_status=$?
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); }; }; then
27636 ac_cv_lib_posix_remove=yes
27637else
27638 echo "$as_me: failed program was:" >&5
27639sed 's/^/| /' conftest.$ac_ext >&5
27640
27641ac_cv_lib_posix_remove=no
27642fi
ac1cb8d3
VS
27643rm -f conftest.err conftest.$ac_objext \
27644 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27645LIBS=$ac_check_lib_save_LIBS
27646fi
27647echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27648echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27649if test $ac_cv_lib_posix_remove = yes; then
27650 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27651fi
27652
27653 fi
27654
27655 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27656 echo "$as_me:$LINENO: checking for shmat" >&5
27657echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27658if test "${ac_cv_func_shmat+set}" = set; then
27659 echo $ECHO_N "(cached) $ECHO_C" >&6
27660else
27661 cat >conftest.$ac_ext <<_ACEOF
27662/* confdefs.h. */
27663_ACEOF
27664cat confdefs.h >>conftest.$ac_ext
27665cat >>conftest.$ac_ext <<_ACEOF
27666/* end confdefs.h. */
ac1cb8d3
VS
27667/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27669#define shmat innocuous_shmat
27670
a848cd7e
SC
27671/* System header to define __stub macros and hopefully few prototypes,
27672 which can conflict with char shmat (); below.
27673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27674 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27675
a848cd7e
SC
27676#ifdef __STDC__
27677# include <limits.h>
27678#else
27679# include <assert.h>
27680#endif
ac1cb8d3
VS
27681
27682#undef shmat
27683
a848cd7e
SC
27684/* Override any gcc2 internal prototype to avoid an error. */
27685#ifdef __cplusplus
27686extern "C"
27687{
27688#endif
27689/* We use char because int might match the return type of a gcc2
27690 builtin and then its argument prototype would still apply. */
27691char shmat ();
27692/* The GNU C library defines this for functions which it implements
27693 to always fail with ENOSYS. Some functions are actually named
27694 something starting with __ and the normal name is an alias. */
27695#if defined (__stub_shmat) || defined (__stub___shmat)
27696choke me
27697#else
27698char (*f) () = shmat;
27699#endif
27700#ifdef __cplusplus
27701}
27702#endif
27703
27704int
27705main ()
27706{
27707return f != shmat;
27708 ;
27709 return 0;
27710}
27711_ACEOF
27712rm -f conftest.$ac_objext conftest$ac_exeext
27713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27714 (eval $ac_link) 2>conftest.er1
a848cd7e 27715 ac_status=$?
ac1cb8d3
VS
27716 grep -v '^ *+' conftest.er1 >conftest.err
27717 rm -f conftest.er1
27718 cat conftest.err >&5
a848cd7e
SC
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); } &&
6ebeb4c7 27721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27723 (eval $ac_try) 2>&5
27724 ac_status=$?
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); }; } &&
27727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729 (eval $ac_try) 2>&5
27730 ac_status=$?
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; }; then
27733 ac_cv_func_shmat=yes
27734else
27735 echo "$as_me: failed program was:" >&5
27736sed 's/^/| /' conftest.$ac_ext >&5
27737
27738ac_cv_func_shmat=no
27739fi
ac1cb8d3
VS
27740rm -f conftest.err conftest.$ac_objext \
27741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27742fi
27743echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27744echo "${ECHO_T}$ac_cv_func_shmat" >&6
27745
27746 if test $ac_cv_func_shmat = no; then
27747 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27748echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27749if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27750 echo $ECHO_N "(cached) $ECHO_C" >&6
27751else
27752 ac_check_lib_save_LIBS=$LIBS
27753LIBS="-lipc $LIBS"
27754cat >conftest.$ac_ext <<_ACEOF
27755/* confdefs.h. */
27756_ACEOF
27757cat confdefs.h >>conftest.$ac_ext
27758cat >>conftest.$ac_ext <<_ACEOF
27759/* end confdefs.h. */
27760
27761/* Override any gcc2 internal prototype to avoid an error. */
27762#ifdef __cplusplus
27763extern "C"
27764#endif
27765/* We use char because int might match the return type of a gcc2
27766 builtin and then its argument prototype would still apply. */
27767char shmat ();
27768int
27769main ()
27770{
27771shmat ();
27772 ;
27773 return 0;
27774}
27775_ACEOF
27776rm -f conftest.$ac_objext conftest$ac_exeext
27777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27778 (eval $ac_link) 2>conftest.er1
a848cd7e 27779 ac_status=$?
ac1cb8d3
VS
27780 grep -v '^ *+' conftest.er1 >conftest.err
27781 rm -f conftest.er1
27782 cat conftest.err >&5
a848cd7e
SC
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); } &&
6ebeb4c7 27785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27787 (eval $ac_try) 2>&5
27788 ac_status=$?
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); }; } &&
27791 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27793 (eval $ac_try) 2>&5
27794 ac_status=$?
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; }; then
27797 ac_cv_lib_ipc_shmat=yes
27798else
27799 echo "$as_me: failed program was:" >&5
27800sed 's/^/| /' conftest.$ac_ext >&5
27801
27802ac_cv_lib_ipc_shmat=no
27803fi
ac1cb8d3
VS
27804rm -f conftest.err conftest.$ac_objext \
27805 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27806LIBS=$ac_check_lib_save_LIBS
27807fi
27808echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27809echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27810if test $ac_cv_lib_ipc_shmat = yes; then
27811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27812fi
27813
27814 fi
27815 fi
27816
27817 # Check for libraries that X11R6 Xt/Xaw programs need.
27818 ac_save_LDFLAGS=$LDFLAGS
27819 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27820 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27821 # check for ICE first), but we must link in the order -lSM -lICE or
27822 # we get undefined symbols. So assume we have SM if we have ICE.
27823 # These have to be linked with before -lX11, unlike the other
27824 # libraries we check for below, so use a different variable.
27825 # John Interrante, Karl Berry
27826 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27827echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27828if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27829 echo $ECHO_N "(cached) $ECHO_C" >&6
27830else
27831 ac_check_lib_save_LIBS=$LIBS
27832LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27833cat >conftest.$ac_ext <<_ACEOF
27834/* confdefs.h. */
27835_ACEOF
27836cat confdefs.h >>conftest.$ac_ext
27837cat >>conftest.$ac_ext <<_ACEOF
27838/* end confdefs.h. */
27839
27840/* Override any gcc2 internal prototype to avoid an error. */
27841#ifdef __cplusplus
27842extern "C"
27843#endif
27844/* We use char because int might match the return type of a gcc2
27845 builtin and then its argument prototype would still apply. */
27846char IceConnectionNumber ();
27847int
27848main ()
27849{
27850IceConnectionNumber ();
27851 ;
27852 return 0;
27853}
27854_ACEOF
27855rm -f conftest.$ac_objext conftest$ac_exeext
27856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27857 (eval $ac_link) 2>conftest.er1
a848cd7e 27858 ac_status=$?
ac1cb8d3
VS
27859 grep -v '^ *+' conftest.er1 >conftest.err
27860 rm -f conftest.er1
27861 cat conftest.err >&5
a848cd7e
SC
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); } &&
6ebeb4c7 27864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27866 (eval $ac_try) 2>&5
27867 ac_status=$?
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); }; } &&
27870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27872 (eval $ac_try) 2>&5
27873 ac_status=$?
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); }; }; then
27876 ac_cv_lib_ICE_IceConnectionNumber=yes
27877else
27878 echo "$as_me: failed program was:" >&5
27879sed 's/^/| /' conftest.$ac_ext >&5
27880
27881ac_cv_lib_ICE_IceConnectionNumber=no
27882fi
ac1cb8d3
VS
27883rm -f conftest.err conftest.$ac_objext \
27884 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27885LIBS=$ac_check_lib_save_LIBS
27886fi
27887echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27888echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27889if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27890 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27891fi
27892
27893 LDFLAGS=$ac_save_LDFLAGS
27894
27895fi
27896
27897
27898 if test "$no_x" = "yes"; then
27899 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27900echo "$as_me: error: X11 not found" >&2;}
27901 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27902 fi
27903
74b84332
VS
27904 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27905 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27906 AFMINSTALL=afminstall
27907 COMPILED_X_PROGRAM=0
27908
74b84332
VS
27909 fi
27910
27911 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27912 if test "$wxUSE_NANOX" = "yes"; then
27913 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27914echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27915 if test "x$MICROWIN" = x ; then
27916 echo "$as_me:$LINENO: result: not found" >&5
27917echo "${ECHO_T}not found" >&6
27918 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27919echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27920 { (exit 1); exit 1; }; }
27921 else
27922 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27923echo "${ECHO_T}$MICROWIN" >&6
27924 cat >>confdefs.h <<\_ACEOF
27925#define wxUSE_NANOX 1
27926_ACEOF
27927
27928 fi
27929 fi
27930
27931 if test "$wxUSE_UNICODE" = "yes"; then
27932
27933 succeeded=no
27934
27935 if test -z "$PKG_CONFIG"; then
27936 # Extract the first word of "pkg-config", so it can be a program name with args.
27937set dummy pkg-config; ac_word=$2
27938echo "$as_me:$LINENO: checking for $ac_word" >&5
27939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27940if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27941 echo $ECHO_N "(cached) $ECHO_C" >&6
27942else
27943 case $PKG_CONFIG in
27944 [\\/]* | ?:[\\/]*)
27945 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27946 ;;
27947 *)
27948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27949for as_dir in $PATH
27950do
27951 IFS=$as_save_IFS
27952 test -z "$as_dir" && as_dir=.
27953 for ac_exec_ext in '' $ac_executable_extensions; do
27954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27955 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27957 break 2
27958 fi
27959done
27960done
27961
27962 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27963 ;;
27964esac
27965fi
27966PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27967
27968if test -n "$PKG_CONFIG"; then
27969 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27970echo "${ECHO_T}$PKG_CONFIG" >&6
27971else
27972 echo "$as_me:$LINENO: result: no" >&5
27973echo "${ECHO_T}no" >&6
27974fi
27975
27976 fi
27977
27978 if test "$PKG_CONFIG" = "no" ; then
27979 echo "*** The pkg-config script could not be found. Make sure it is"
27980 echo "*** in your path, or set the PKG_CONFIG environment variable"
27981 echo "*** to the full path to pkg-config."
27982 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27983 else
27984 PKG_CONFIG_MIN_VERSION=0.9.0
27985 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27986 echo "$as_me:$LINENO: checking for pangox" >&5
27987echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27988
27989 if $PKG_CONFIG --exists "pangox" ; then
27990 echo "$as_me:$LINENO: result: yes" >&5
27991echo "${ECHO_T}yes" >&6
27992 succeeded=yes
27993
27994 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27995echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27996 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27997 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27998echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27999
28000 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28001echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28002 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28003 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28004echo "${ECHO_T}$PANGOX_LIBS" >&6
28005 else
28006 PANGOX_CFLAGS=""
28007 PANGOX_LIBS=""
28008 ## If we have a custom action on failure, don't print errors, but
28009 ## do set a variable so people can do so.
28010 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28011
28012 fi
28013
28014
28015
28016 else
28017 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28018 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28019 fi
28020 fi
28021
28022 if test $succeeded = yes; then
28023
28024 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28025 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28026
28027 else
28028
28029 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28030echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28031 { (exit 1); exit 1; }; }
28032
28033
28034 fi
28035
28036
28037 succeeded=no
28038
28039 if test -z "$PKG_CONFIG"; then
28040 # Extract the first word of "pkg-config", so it can be a program name with args.
28041set dummy pkg-config; ac_word=$2
28042echo "$as_me:$LINENO: checking for $ac_word" >&5
28043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28044if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28045 echo $ECHO_N "(cached) $ECHO_C" >&6
28046else
28047 case $PKG_CONFIG in
28048 [\\/]* | ?:[\\/]*)
28049 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28050 ;;
28051 *)
28052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28053for as_dir in $PATH
28054do
28055 IFS=$as_save_IFS
28056 test -z "$as_dir" && as_dir=.
28057 for ac_exec_ext in '' $ac_executable_extensions; do
28058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28059 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28061 break 2
28062 fi
28063done
28064done
28065
28066 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28067 ;;
28068esac
28069fi
28070PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28071
28072if test -n "$PKG_CONFIG"; then
28073 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28074echo "${ECHO_T}$PKG_CONFIG" >&6
28075else
28076 echo "$as_me:$LINENO: result: no" >&5
28077echo "${ECHO_T}no" >&6
28078fi
28079
28080 fi
28081
28082 if test "$PKG_CONFIG" = "no" ; then
28083 echo "*** The pkg-config script could not be found. Make sure it is"
28084 echo "*** in your path, or set the PKG_CONFIG environment variable"
28085 echo "*** to the full path to pkg-config."
28086 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28087 else
28088 PKG_CONFIG_MIN_VERSION=0.9.0
28089 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28090 echo "$as_me:$LINENO: checking for pangoft2" >&5
28091echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28092
28093 if $PKG_CONFIG --exists "pangoft2" ; then
28094 echo "$as_me:$LINENO: result: yes" >&5
28095echo "${ECHO_T}yes" >&6
28096 succeeded=yes
28097
28098 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28099echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28100 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28101 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28102echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28103
28104 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28105echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28106 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28107 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28108echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28109 else
28110 PANGOFT2_CFLAGS=""
28111 PANGOFT2_LIBS=""
28112 ## If we have a custom action on failure, don't print errors, but
28113 ## do set a variable so people can do so.
28114 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28115
28116 fi
28117
28118
28119
28120 else
28121 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28122 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28123 fi
28124 fi
28125
28126 if test $succeeded = yes; then
28127
28128 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28129 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28130
28131 else
28132
28133 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28134echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28135 wxUSE_PRINTING_ARCHITECTURE="no"
28136
28137
28138 fi
28139
28140
28141 succeeded=no
28142
28143 if test -z "$PKG_CONFIG"; then
28144 # Extract the first word of "pkg-config", so it can be a program name with args.
28145set dummy pkg-config; ac_word=$2
28146echo "$as_me:$LINENO: checking for $ac_word" >&5
28147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28148if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28149 echo $ECHO_N "(cached) $ECHO_C" >&6
28150else
28151 case $PKG_CONFIG in
28152 [\\/]* | ?:[\\/]*)
28153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28154 ;;
28155 *)
28156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28157for as_dir in $PATH
28158do
28159 IFS=$as_save_IFS
28160 test -z "$as_dir" && as_dir=.
28161 for ac_exec_ext in '' $ac_executable_extensions; do
28162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28163 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28165 break 2
28166 fi
28167done
28168done
28169
28170 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28171 ;;
28172esac
28173fi
28174PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28175
28176if test -n "$PKG_CONFIG"; then
28177 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28178echo "${ECHO_T}$PKG_CONFIG" >&6
28179else
28180 echo "$as_me:$LINENO: result: no" >&5
28181echo "${ECHO_T}no" >&6
28182fi
28183
28184 fi
28185
28186 if test "$PKG_CONFIG" = "no" ; then
28187 echo "*** The pkg-config script could not be found. Make sure it is"
28188 echo "*** in your path, or set the PKG_CONFIG environment variable"
28189 echo "*** to the full path to pkg-config."
28190 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28191 else
28192 PKG_CONFIG_MIN_VERSION=0.9.0
28193 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28194 echo "$as_me:$LINENO: checking for pangoxft" >&5
28195echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28196
28197 if $PKG_CONFIG --exists "pangoxft" ; then
28198 echo "$as_me:$LINENO: result: yes" >&5
28199echo "${ECHO_T}yes" >&6
28200 succeeded=yes
28201
28202 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28203echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28204 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28205 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28206echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
28207
28208 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
28209echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
28210 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
28211 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
28212echo "${ECHO_T}$PANGOXFT_LIBS" >&6
28213 else
28214 PANGOXFT_CFLAGS=""
28215 PANGOXFT_LIBS=""
28216 ## If we have a custom action on failure, don't print errors, but
28217 ## do set a variable so people can do so.
28218 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
28219
28220 fi
28221
28222
28223
28224 else
28225 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28226 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28227 fi
28228 fi
28229
28230 if test $succeeded = yes; then
28231
4ae1af05
MB
28232 cat >>confdefs.h <<\_ACEOF
28233#define HAVE_PANGO_XFT 1
28234_ACEOF
28235
a848cd7e
SC
28236 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
28237 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
28238
28239 else
28240
28241 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
28242echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
28243
28244
28245 fi
28246
304205f1
VS
28247 save_CFLAGS="$CFLAGS"
28248 save_LIBS="$LIBS"
28249 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
28250 LIBS="$LIBS $PANGOX_LIBS"
28251
28252for ac_func in pango_font_family_is_monospace
28253do
28254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28255echo "$as_me:$LINENO: checking for $ac_func" >&5
28256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28257if eval "test \"\${$as_ac_var+set}\" = set"; then
28258 echo $ECHO_N "(cached) $ECHO_C" >&6
28259else
28260 cat >conftest.$ac_ext <<_ACEOF
28261/* confdefs.h. */
28262_ACEOF
28263cat confdefs.h >>conftest.$ac_ext
28264cat >>conftest.$ac_ext <<_ACEOF
28265/* end confdefs.h. */
28266/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28268#define $ac_func innocuous_$ac_func
28269
28270/* System header to define __stub macros and hopefully few prototypes,
28271 which can conflict with char $ac_func (); below.
28272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28273 <limits.h> exists even on freestanding compilers. */
28274
28275#ifdef __STDC__
28276# include <limits.h>
28277#else
28278# include <assert.h>
28279#endif
28280
28281#undef $ac_func
28282
28283/* Override any gcc2 internal prototype to avoid an error. */
28284#ifdef __cplusplus
28285extern "C"
28286{
28287#endif
28288/* We use char because int might match the return type of a gcc2
28289 builtin and then its argument prototype would still apply. */
28290char $ac_func ();
28291/* The GNU C library defines this for functions which it implements
28292 to always fail with ENOSYS. Some functions are actually named
28293 something starting with __ and the normal name is an alias. */
28294#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28295choke me
28296#else
28297char (*f) () = $ac_func;
28298#endif
28299#ifdef __cplusplus
28300}
28301#endif
28302
28303int
28304main ()
28305{
28306return f != $ac_func;
28307 ;
28308 return 0;
28309}
28310_ACEOF
28311rm -f conftest.$ac_objext conftest$ac_exeext
28312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28313 (eval $ac_link) 2>conftest.er1
28314 ac_status=$?
28315 grep -v '^ *+' conftest.er1 >conftest.err
28316 rm -f conftest.er1
28317 cat conftest.err >&5
28318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319 (exit $ac_status); } &&
6ebeb4c7 28320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
28321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28322 (eval $ac_try) 2>&5
28323 ac_status=$?
28324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325 (exit $ac_status); }; } &&
28326 { ac_try='test -s conftest$ac_exeext'
28327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28328 (eval $ac_try) 2>&5
28329 ac_status=$?
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); }; }; then
28332 eval "$as_ac_var=yes"
28333else
28334 echo "$as_me: failed program was:" >&5
28335sed 's/^/| /' conftest.$ac_ext >&5
28336
28337eval "$as_ac_var=no"
28338fi
28339rm -f conftest.err conftest.$ac_objext \
28340 conftest$ac_exeext conftest.$ac_ext
28341fi
28342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28343echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28344if test `eval echo '${'$as_ac_var'}'` = yes; then
28345 cat >>confdefs.h <<_ACEOF
28346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28347_ACEOF
28348
28349fi
28350done
28351
28352 CFLAGS="$save_CFLAGS"
28353 LIBS="$save_LIBS"
a848cd7e
SC
28354 fi
28355
28356 wxUSE_UNIVERSAL="yes"
28357
28358 if test "$wxUSE_NANOX" = "yes"; then
28359 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28360 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"
28361 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28362 else
28363 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28364 fi
28365
a848cd7e
SC
28366 TOOLKIT=X11
28367 GUIDIST=X11_DIST
28368 fi
28369
28370 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28371 if test "$wxUSE_UNICODE" = "yes"; then
28372 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28373echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28374 { (exit 1); exit 1; }; }
28375 fi
28376
74b84332
VS
28377 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28378echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28379
74b84332
VS
28380ac_find_includes=
28381for ac_dir in $SEARCH_INCLUDE /usr/include;
28382 do
28383 if test -f "$ac_dir/Xm/Xm.h"; then
28384 ac_find_includes=$ac_dir
28385 break
28386 fi
28387 done
a848cd7e 28388
74b84332
VS
28389 if test "$ac_find_includes" != "" ; then
28390 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28391echo "${ECHO_T}found in $ac_find_includes" >&6
28392
28393 if test "x$ac_find_includes" = "x/usr/include"; then
28394 ac_path_to_include=""
28395 else
28396 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28397 result=$?
28398 if test $result = 0; then
28399 ac_path_to_include=""
28400 else
28401 ac_path_to_include=" -I$ac_find_includes"
28402 fi
a848cd7e
SC
28403 fi
28404
74b84332
VS
28405 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28406 else
e051b34e
MW
28407 save_CFLAGS=$CFLAGS
28408 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28409
74b84332 28410 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28411/* confdefs.h. */
28412_ACEOF
28413cat confdefs.h >>conftest.$ac_ext
28414cat >>conftest.$ac_ext <<_ACEOF
28415/* end confdefs.h. */
28416
74b84332
VS
28417 #include <Xm/Xm.h>
28418
a848cd7e
SC
28419int
28420main ()
28421{
28422
74b84332
VS
28423 int version;
28424 version = xmUseVersion;
28425
a848cd7e
SC
28426 ;
28427 return 0;
28428}
28429_ACEOF
74b84332
VS
28430rm -f conftest.$ac_objext
28431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28432 (eval $ac_compile) 2>conftest.er1
a848cd7e 28433 ac_status=$?
ac1cb8d3
VS
28434 grep -v '^ *+' conftest.er1 >conftest.err
28435 rm -f conftest.er1
28436 cat conftest.err >&5
a848cd7e
SC
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); } &&
6ebeb4c7 28439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441 (eval $ac_try) 2>&5
28442 ac_status=$?
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); }; } &&
74b84332 28445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447 (eval $ac_try) 2>&5
28448 ac_status=$?
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; }; then
74b84332
VS
28451
28452 echo "$as_me:$LINENO: result: found in default search path" >&5
28453echo "${ECHO_T}found in default search path" >&6
28454 COMPILED_X_PROGRAM=1
28455
a848cd7e
SC
28456else
28457 echo "$as_me: failed program was:" >&5
28458sed 's/^/| /' conftest.$ac_ext >&5
28459
a848cd7e 28460
74b84332
VS
28461 echo "$as_me:$LINENO: result: no" >&5
28462echo "${ECHO_T}no" >&6
e051b34e
MW
28463 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
28464echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 28465 { (exit 1); exit 1; }; }
a848cd7e 28466
a848cd7e 28467
a848cd7e 28468fi
74b84332 28469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
28470
28471 CFLAGS=$save_CFLAGS
74b84332
VS
28472 fi
28473
0ad5d837
VZ
28474
28475 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
28476echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28477
0ad5d837
VZ
28478
28479 ac_find_libraries=
28480 for ac_dir in $SEARCH_LIB;
74b84332 28481 do
3eca31dc 28482 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
28483 if test -f "$ac_dir/libXm.$ac_extension"; then
28484 ac_find_libraries=$ac_dir
28485 break 2
a848cd7e 28486 fi
74b84332
VS
28487 done
28488 done
a848cd7e 28489
0ad5d837
VZ
28490 if test "x$ac_find_libraries" = "x" ; then
28491
28492 ac_find_libraries=
28493 for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
28494 do
28495 for ac_extension in a so sl dylib dll.a; do
28496 if test -f "$ac_dir/libXm.$ac_extension"; then
28497 ac_find_libraries=$ac_dir
28498 break 2
28499 fi
28500 done
28501 done
28502
28503 if test "x$ac_find_libraries" != "x" ; then
28504 ac_find_libraries="default location"
28505 fi
28506 fi
28507
28508
28509 if test "x$ac_find_libraries" != "x" ; then
28510 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28511echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 28512
74b84332 28513
0ad5d837 28514 if test "$ac_find_libraries" = "default location"; then
74b84332 28515 ac_path_to_link=""
a848cd7e 28516 else
0ad5d837
VZ
28517 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28518 result=$?
28519 if test $result = 0; then
28520 ac_path_to_link=""
28521 else
28522 ac_path_to_link=" -L$ac_find_libraries"
28523 fi
74b84332
VS
28524 fi
28525
0ad5d837
VZ
28526 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28527 else
28528 save_CFLAGS=$CFLAGS
28529 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
74b84332 28530
0ad5d837 28531 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28532/* confdefs.h. */
28533_ACEOF
28534cat confdefs.h >>conftest.$ac_ext
28535cat >>conftest.$ac_ext <<_ACEOF
28536/* end confdefs.h. */
28537
0ad5d837 28538 #include <Xm/Xm.h>
74b84332 28539
a848cd7e
SC
28540int
28541main ()
28542{
74b84332 28543
0ad5d837
VZ
28544 int version;
28545 version = xmUseVersion;
74b84332 28546
a848cd7e
SC
28547 ;
28548 return 0;
28549}
28550_ACEOF
0ad5d837
VZ
28551rm -f conftest.$ac_objext conftest$ac_exeext
28552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28553 (eval $ac_link) 2>conftest.er1
a848cd7e 28554 ac_status=$?
ac1cb8d3
VS
28555 grep -v '^ *+' conftest.er1 >conftest.err
28556 rm -f conftest.er1
28557 cat conftest.err >&5
a848cd7e
SC
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); } &&
6ebeb4c7 28560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28562 (eval $ac_try) 2>&5
28563 ac_status=$?
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); }; } &&
0ad5d837 28566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568 (eval $ac_try) 2>&5
28569 ac_status=$?
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; }; then
74b84332 28572
0ad5d837 28573 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 28574echo "${ECHO_T}found in default search path" >&6
0ad5d837 28575 COMPILED_X_PROGRAM=1
74b84332 28576
a848cd7e
SC
28577else
28578 echo "$as_me: failed program was:" >&5
28579sed 's/^/| /' conftest.$ac_ext >&5
28580
74b84332
VS
28581
28582 echo "$as_me:$LINENO: result: no" >&5
28583echo "${ECHO_T}no" >&6
28584 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28585echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28586 { (exit 1); exit 1; }; }
28587
28588
28589fi
0ad5d837
VZ
28590rm -f conftest.err conftest.$ac_objext \
28591 conftest$ac_exeext conftest.$ac_ext
74b84332 28592
0ad5d837 28593 CFLAGS=$save_CFLAGS
74b84332
VS
28594 fi
28595
28596 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28597echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28598 libp_link=""
28599 libsm_ice_link=""
28600 libs_found=0
28601 for libp in "" " -lXp"; do
28602 if test "$libs_found" = "0"; then
28603 for libsm_ice in "" " -lSM -lICE"; do
28604 if test "$libs_found" = "0"; then
28605 save_LIBS="$LIBS"
28606 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28607 save_CFLAGS=$CFLAGS
28608 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28609
28610 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28611/* confdefs.h. */
28612_ACEOF
28613cat confdefs.h >>conftest.$ac_ext
28614cat >>conftest.$ac_ext <<_ACEOF
28615/* end confdefs.h. */
28616
74b84332
VS
28617 #include <Xm/Xm.h>
28618 #include <Xm/List.h>
28619
a848cd7e
SC
28620int
28621main ()
28622{
74b84332
VS
28623
28624 XmString string = NULL;
28625 Widget w = NULL;
28626 int position = 0;
28627 XmListAddItem(w, string, position);
28628
a848cd7e
SC
28629 ;
28630 return 0;
28631}
28632_ACEOF
28633rm -f conftest.$ac_objext conftest$ac_exeext
28634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28635 (eval $ac_link) 2>conftest.er1
a848cd7e 28636 ac_status=$?
ac1cb8d3
VS
28637 grep -v '^ *+' conftest.er1 >conftest.err
28638 rm -f conftest.er1
28639 cat conftest.err >&5
a848cd7e
SC
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); } &&
6ebeb4c7 28642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644 (eval $ac_try) 2>&5
28645 ac_status=$?
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; } &&
28648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650 (eval $ac_try) 2>&5
28651 ac_status=$?
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); }; }; then
28654
28655 libp_link="$libp"
28656 libsm_ice_link="$libsm_ice"
28657 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28658echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28659 libs_found=1
28660
28661else
28662 echo "$as_me: failed program was:" >&5
28663sed 's/^/| /' conftest.$ac_ext >&5
28664
28665
28666
28667fi
ac1cb8d3
VS
28668rm -f conftest.err conftest.$ac_objext \
28669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28670
28671 LIBS="$save_LIBS"
28672 CFLAGS=$save_CFLAGS
28673 fi
28674 done
28675 fi
28676 done
28677
28678 if test "$libs_found" = "0"; then
28679 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28680echo "${ECHO_T}can't find the right libraries" >&6
28681 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28682echo "$as_me: error: can't link a simple motif program" >&2;}
28683 { (exit 1); exit 1; }; }
28684 fi
28685
62fa8b3a
MW
28686 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
28687echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
28688if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6
28690else
28691 ac_check_lib_save_LIBS=$LIBS
28692LIBS="-lSgm $LIBS"
28693cat >conftest.$ac_ext <<_ACEOF
28694/* confdefs.h. */
28695_ACEOF
28696cat confdefs.h >>conftest.$ac_ext
28697cat >>conftest.$ac_ext <<_ACEOF
28698/* end confdefs.h. */
28699
28700/* Override any gcc2 internal prototype to avoid an error. */
28701#ifdef __cplusplus
28702extern "C"
28703#endif
28704/* We use char because int might match the return type of a gcc2
28705 builtin and then its argument prototype would still apply. */
28706char SgCreateList ();
28707int
28708main ()
28709{
28710SgCreateList ();
28711 ;
28712 return 0;
28713}
28714_ACEOF
28715rm -f conftest.$ac_objext conftest$ac_exeext
28716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28717 (eval $ac_link) 2>conftest.er1
28718 ac_status=$?
28719 grep -v '^ *+' conftest.er1 >conftest.err
28720 rm -f conftest.er1
28721 cat conftest.err >&5
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); } &&
28724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28726 (eval $ac_try) 2>&5
28727 ac_status=$?
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); }; } &&
28730 { ac_try='test -s conftest$ac_exeext'
28731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28732 (eval $ac_try) 2>&5
28733 ac_status=$?
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); }; }; then
28736 ac_cv_lib_Sgm_SgCreateList=yes
28737else
28738 echo "$as_me: failed program was:" >&5
28739sed 's/^/| /' conftest.$ac_ext >&5
28740
28741ac_cv_lib_Sgm_SgCreateList=no
28742fi
28743rm -f conftest.err conftest.$ac_objext \
28744 conftest$ac_exeext conftest.$ac_ext
28745LIBS=$ac_check_lib_save_LIBS
28746fi
28747echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
28748echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
28749if test $ac_cv_lib_Sgm_SgCreateList = yes; then
28750 libsgm_link=" -lSgm"
28751fi
28752
28753
a848cd7e
SC
28754 save_CFLAGS=$CFLAGS
28755 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 28756
a848cd7e
SC
28757 echo "$as_me:$LINENO: checking for Motif 2" >&5
28758echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
28759if test "${wx_cv_lib_motif2+set}" = set; then
28760 echo $ECHO_N "(cached) $ECHO_C" >&6
28761else
28762 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28763/* confdefs.h. */
28764_ACEOF
28765cat confdefs.h >>conftest.$ac_ext
28766cat >>conftest.$ac_ext <<_ACEOF
28767/* end confdefs.h. */
28768
0ad5d837 28769 #include <Xm/Xm.h>
a848cd7e
SC
28770
28771int
28772main ()
28773{
28774
0ad5d837
VZ
28775 #if XmVersion < 2000
28776 Not Motif 2
28777 #endif
a848cd7e
SC
28778
28779 ;
28780 return 0;
28781}
28782_ACEOF
28783rm -f conftest.$ac_objext
28784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28785 (eval $ac_compile) 2>conftest.er1
a848cd7e 28786 ac_status=$?
ac1cb8d3
VS
28787 grep -v '^ *+' conftest.er1 >conftest.err
28788 rm -f conftest.er1
28789 cat conftest.err >&5
a848cd7e
SC
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); } &&
6ebeb4c7 28792 { ac_try='test -z "$ac_c_werror_flag" || 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_objext'
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
0ad5d837 28804 wx_cv_lib_motif2="yes"
a848cd7e
SC
28805else
28806 echo "$as_me: failed program was:" >&5
28807sed 's/^/| /' conftest.$ac_ext >&5
28808
0ad5d837
VZ
28809wx_cv_lib_motif2="no"
28810fi
28811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28812fi
28813echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
28814echo "${ECHO_T}$wx_cv_lib_motif2" >&6
28815 if test "$wx_cv_lib_motif2" = "yes"; then
28816 cat >>confdefs.h <<\_ACEOF
28817#define __WXMOTIF20__ 1
28818_ACEOF
a848cd7e 28819
0ad5d837
VZ
28820 else
28821 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28822#define __WXMOTIF20__ 0
28823_ACEOF
28824
0ad5d837 28825 fi
2113bc77
MW
28826
28827 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28828echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
28829if test "${wx_cv_lib_lesstif+set}" = set; then
28830 echo $ECHO_N "(cached) $ECHO_C" >&6
28831else
28832 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
28833/* confdefs.h. */
28834_ACEOF
28835cat confdefs.h >>conftest.$ac_ext
28836cat >>conftest.$ac_ext <<_ACEOF
28837/* end confdefs.h. */
28838
0ad5d837 28839 #include <Xm/Xm.h>
2113bc77
MW
28840
28841int
28842main ()
28843{
28844
0ad5d837
VZ
28845 #if !defined(LesstifVersion) || LesstifVersion <= 0
28846 Not Lesstif
28847 #endif
2113bc77
MW
28848
28849 ;
28850 return 0;
28851}
28852_ACEOF
28853rm -f conftest.$ac_objext
28854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28855 (eval $ac_compile) 2>conftest.er1
28856 ac_status=$?
28857 grep -v '^ *+' conftest.er1 >conftest.err
28858 rm -f conftest.er1
28859 cat conftest.err >&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); } &&
6ebeb4c7 28862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
28863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864 (eval $ac_try) 2>&5
28865 ac_status=$?
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); }; } &&
28868 { ac_try='test -s conftest.$ac_objext'
28869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28870 (eval $ac_try) 2>&5
28871 ac_status=$?
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); }; }; then
0ad5d837 28874 wx_cv_lib_lesstif="yes"
2113bc77
MW
28875else
28876 echo "$as_me: failed program was:" >&5
28877sed 's/^/| /' conftest.$ac_ext >&5
28878
0ad5d837
VZ
28879wx_cv_lib_lesstif="no"
28880fi
28881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 28882
0ad5d837
VZ
28883fi
28884echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
28885echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
28886 if test "$wx_cv_lib_lesstif" = "yes"; then
28887 cat >>confdefs.h <<\_ACEOF
28888#define __WXLESSTIF__ 1
28889_ACEOF
28890
28891 else
28892 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
28893#define __WXLESSTIF__ 0
28894_ACEOF
28895
0ad5d837 28896 fi
2113bc77 28897
a848cd7e
SC
28898 CFLAGS=$save_CFLAGS
28899
62fa8b3a 28900 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28901 TOOLKIT=MOTIF
28902 GUIDIST=MOTIF_DIST
28903 fi
28904
74b84332 28905 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28906 if test "$wxUSE_LIBXPM" = "sys"; then
28907 echo "$as_me:$LINENO: checking for Xpm library" >&5
28908echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28909
0ad5d837
VZ
28910
28911 ac_find_libraries=
28912 for ac_dir in $SEARCH_LIB;
a848cd7e 28913 do
3eca31dc 28914 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28915 if test -f "$ac_dir/libXpm.$ac_extension"; then
28916 ac_find_libraries=$ac_dir
28917 break 2
28918 fi
28919 done
28920 done
28921
0ad5d837
VZ
28922 if test "x$ac_find_libraries" = "x" ; then
28923
28924 ac_find_libraries=
28925 for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
28926 do
28927 for ac_extension in a so sl dylib dll.a; do
28928 if test -f "$ac_dir/libXpm.$ac_extension"; then
28929 ac_find_libraries=$ac_dir
28930 break 2
28931 fi
28932 done
28933 done
28934
28935 if test "x$ac_find_libraries" != "x" ; then
28936 ac_find_libraries="default location"
28937 fi
28938 fi
28939
a848cd7e
SC
28940 if test "$ac_find_libraries" != "" ; then
28941
0ad5d837 28942 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28943 ac_path_to_link=""
28944 else
0ad5d837
VZ
28945 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28946 result=$?
28947 if test $result = 0; then
28948 ac_path_to_link=""
28949 else
28950 ac_path_to_link=" -L$ac_find_libraries"
28951 fi
a848cd7e
SC
28952 fi
28953
28954 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
28955 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28956echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28957
28958 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28959echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28960if test "${wx_cv_x11_xpm_h+set}" = set; then
28961 echo $ECHO_N "(cached) $ECHO_C" >&6
28962else
28963
28964 save_CFLAGS=$CFLAGS
28965 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28966
28967 cat >conftest.$ac_ext <<_ACEOF
28968/* confdefs.h. */
28969_ACEOF
28970cat confdefs.h >>conftest.$ac_ext
28971cat >>conftest.$ac_ext <<_ACEOF
28972/* end confdefs.h. */
28973
28974 #include <X11/xpm.h>
28975
28976int
28977main ()
28978{
28979
28980 int version;
28981 version = XpmLibraryVersion();
28982
28983 ;
28984 return 0;
28985}
28986_ACEOF
28987rm -f conftest.$ac_objext
28988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28989 (eval $ac_compile) 2>conftest.er1
a848cd7e 28990 ac_status=$?
ac1cb8d3
VS
28991 grep -v '^ *+' conftest.er1 >conftest.err
28992 rm -f conftest.er1
28993 cat conftest.err >&5
a848cd7e
SC
28994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); } &&
6ebeb4c7 28996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28998 (eval $ac_try) 2>&5
28999 ac_status=$?
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); }; } &&
29002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29004 (eval $ac_try) 2>&5
29005 ac_status=$?
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); }; }; then
29008 wx_cv_x11_xpm_h=yes
29009else
29010 echo "$as_me: failed program was:" >&5
29011sed 's/^/| /' conftest.$ac_ext >&5
29012
29013wx_cv_x11_xpm_h=no
29014
29015fi
ac1cb8d3 29016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29017
29018 CFLAGS=$save_CFLAGS
29019
29020
29021fi
29022echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29023echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29024
29025 if test $wx_cv_x11_xpm_h = "yes"; then
29026 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29027 cat >>confdefs.h <<\_ACEOF
29028#define wxHAVE_LIB_XPM 1
29029_ACEOF
29030
29031 else
29032 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29033echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29034 fi
29035 fi
29036
29037 fi
29038
29039 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29040echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29041if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29042 echo $ECHO_N "(cached) $ECHO_C" >&6
29043else
29044 ac_check_lib_save_LIBS=$LIBS
29045LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29046cat >conftest.$ac_ext <<_ACEOF
29047/* confdefs.h. */
29048_ACEOF
29049cat confdefs.h >>conftest.$ac_ext
29050cat >>conftest.$ac_ext <<_ACEOF
29051/* end confdefs.h. */
29052
29053/* Override any gcc2 internal prototype to avoid an error. */
29054#ifdef __cplusplus
29055extern "C"
29056#endif
29057/* We use char because int might match the return type of a gcc2
29058 builtin and then its argument prototype would still apply. */
29059char XShapeQueryExtension ();
29060int
29061main ()
29062{
29063XShapeQueryExtension ();
29064 ;
29065 return 0;
29066}
29067_ACEOF
29068rm -f conftest.$ac_objext conftest$ac_exeext
29069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29070 (eval $ac_link) 2>conftest.er1
a848cd7e 29071 ac_status=$?
ac1cb8d3
VS
29072 grep -v '^ *+' conftest.er1 >conftest.err
29073 rm -f conftest.er1
29074 cat conftest.err >&5
a848cd7e
SC
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); } &&
6ebeb4c7 29077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29079 (eval $ac_try) 2>&5
29080 ac_status=$?
29081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082 (exit $ac_status); }; } &&
29083 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29085 (eval $ac_try) 2>&5
29086 ac_status=$?
29087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088 (exit $ac_status); }; }; then
29089 ac_cv_lib_Xext_XShapeQueryExtension=yes
29090else
29091 echo "$as_me: failed program was:" >&5
29092sed 's/^/| /' conftest.$ac_ext >&5
29093
29094ac_cv_lib_Xext_XShapeQueryExtension=no
29095fi
ac1cb8d3
VS
29096rm -f conftest.err conftest.$ac_objext \
29097 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29098LIBS=$ac_check_lib_save_LIBS
29099fi
29100echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29101echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29102if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29103
29104 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29105 wxHAVE_XEXT_LIB=1
29106
29107fi
29108
29109
29110 if test "$wxHAVE_XEXT_LIB" = 1; then
29111 save_CFLAGS="$CFLAGS"
29112 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29113
29114 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29115echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29116 cat >conftest.$ac_ext <<_ACEOF
29117/* confdefs.h. */
29118_ACEOF
29119cat confdefs.h >>conftest.$ac_ext
29120cat >>conftest.$ac_ext <<_ACEOF
29121/* end confdefs.h. */
29122
29123 #include <X11/Xlib.h>
29124 #include <X11/extensions/shape.h>
29125
29126int
29127main ()
29128{
29129
29130 int dummy1, dummy2;
29131 XShapeQueryExtension((Display*)NULL,
29132 (int*)NULL, (int*)NULL);
29133
29134 ;
29135 return 0;
29136}
29137_ACEOF
29138rm -f conftest.$ac_objext
29139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29140 (eval $ac_compile) 2>conftest.er1
a848cd7e 29141 ac_status=$?
ac1cb8d3
VS
29142 grep -v '^ *+' conftest.er1 >conftest.err
29143 rm -f conftest.er1
29144 cat conftest.err >&5
a848cd7e
SC
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); } &&
6ebeb4c7 29147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29149 (eval $ac_try) 2>&5
29150 ac_status=$?
29151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 (exit $ac_status); }; } &&
29153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155 (eval $ac_try) 2>&5
29156 ac_status=$?
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); }; }; then
29159
29160 cat >>confdefs.h <<\_ACEOF
29161#define HAVE_XSHAPE 1
29162_ACEOF
29163
29164 echo "$as_me:$LINENO: result: found" >&5
29165echo "${ECHO_T}found" >&6
29166
29167else
29168 echo "$as_me: failed program was:" >&5
29169sed 's/^/| /' conftest.$ac_ext >&5
29170
29171
29172 echo "$as_me:$LINENO: result: not found" >&5
29173echo "${ECHO_T}not found" >&6
29174
29175fi
ac1cb8d3 29176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29177 CFLAGS="$save_CFLAGS"
29178
29179 fi
29180 fi
29181
29182 if test "$wxUSE_MAC" = 1; then
29183 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29184echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29185 if test "$GCC" = yes; then
29186 echo "$as_me:$LINENO: result: gcc" >&5
29187echo "${ECHO_T}gcc" >&6
29188 CPPFLAGS_PASCAL="-fpascal-strings"
29189 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29190 echo "$as_me:$LINENO: result: xlc" >&5
29191echo "${ECHO_T}xlc" >&6
29192 CPPFLAGS_PASCAL="-qmacpstr"
29193 else
29194 echo "$as_me:$LINENO: result: none" >&5
29195echo "${ECHO_T}none" >&6
29196 fi
29197
1e9e8aba
DE
29198 if test "x$wxUSE_UNIX" = "xyes"; then
29199 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29200 else
29201 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29202 fi
a848cd7e 29203
a848cd7e
SC
29204 TOOLKIT=MAC
29205 GUIDIST=MACX_DIST
dd21ced8 29206 WXBASEPORT="_carbon"
a848cd7e
SC
29207 fi
29208
29209 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
29210 TOOLKIT=COCOA
29211 GUIDIST=COCOA_DIST
29212 fi
29213
29214 if test "$wxUSE_PM" = 1; then
29215 TOOLKIT=PM
de59c161
RD
29216 GUIDIST=PM_DIST
29217 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
29218echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
29219if test "${wx_cv_spbcdata+set}" = set; then
29220 echo $ECHO_N "(cached) $ECHO_C" >&6
29221else
29222
29223 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
29224/* confdefs.h. */
29225_ACEOF
29226cat confdefs.h >>conftest.$ac_ext
29227cat >>conftest.$ac_ext <<_ACEOF
29228/* end confdefs.h. */
29229
29230 #define INCL_PM
29231 #include <os2.h>
29232
29233int
29234main ()
29235{
29236
29237 SPBCDATA test;
29238
29239 ;
29240 return 0;
29241}
29242_ACEOF
29243rm -f conftest.$ac_objext
29244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29245 (eval $ac_compile) 2>conftest.er1
de59c161 29246 ac_status=$?
ac1cb8d3
VS
29247 grep -v '^ *+' conftest.er1 >conftest.err
29248 rm -f conftest.er1
29249 cat conftest.err >&5
de59c161
RD
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); } &&
6ebeb4c7 29252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29254 (eval $ac_try) 2>&5
29255 ac_status=$?
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; } &&
29258 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
29259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260 (eval $ac_try) 2>&5
29261 ac_status=$?
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); }; }; then
29264 wx_cv_spbcdata=yes
29265else
29266 echo "$as_me: failed program was:" >&5
29267sed 's/^/| /' conftest.$ac_ext >&5
29268
29269wx_cv_spbcdata=no
29270
29271fi
ac1cb8d3 29272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
29273
29274
29275fi
29276echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
29277echo "${ECHO_T}$wx_cv_spbcdata" >&6
29278
29279 if test $wx_cv_spbcdata = "yes"; then
29280 cat >>confdefs.h <<\_ACEOF
29281#define HAVE_SPBCDATA 1
29282_ACEOF
29283
29284 fi
a848cd7e
SC
29285 fi
29286
29287 if test "$TOOLKIT" = "PM" ; then
29288 TOOLKIT_DIR="os2"
29289 else
29290 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
29291 fi
29292
a848cd7e 29293 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
29294 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
29295 WIDGET_SET=univ
a848cd7e
SC
29296 fi
29297
29298 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
29299 DISTDIR="wx\$(TOOLKIT)"
29300else
29301 USE_GUI=0
29302
29303 TOOLKIT_DIR="base"
29304
29305 if test "$USE_WIN32" = 1 ; then
a848cd7e 29306 TOOLKIT="MSW"
a848cd7e
SC
29307 fi
29308
a848cd7e
SC
29309 GUIDIST="BASE_DIST"
29310 DISTDIR="wxBase"
29311fi
29312
29313
d12aef51
VZ
29314if test "$wxUSE_GUI" = "yes"; then
29315 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
29316
29317for ac_header in X11/Xlib.h
29318do
29319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29320if eval "test \"\${$as_ac_Header+set}\" = set"; then
29321 echo "$as_me:$LINENO: checking for $ac_header" >&5
29322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29323if eval "test \"\${$as_ac_Header+set}\" = set"; then
29324 echo $ECHO_N "(cached) $ECHO_C" >&6
29325fi
29326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29328else
29329 # Is the header compilable?
29330echo "$as_me:$LINENO: checking $ac_header usability" >&5
29331echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29332cat >conftest.$ac_ext <<_ACEOF
29333/* confdefs.h. */
29334_ACEOF
29335cat confdefs.h >>conftest.$ac_ext
29336cat >>conftest.$ac_ext <<_ACEOF
29337/* end confdefs.h. */
29338$ac_includes_default
29339#include <$ac_header>
29340_ACEOF
29341rm -f conftest.$ac_objext
29342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29343 (eval $ac_compile) 2>conftest.er1
29344 ac_status=$?
29345 grep -v '^ *+' conftest.er1 >conftest.err
29346 rm -f conftest.er1
29347 cat conftest.err >&5
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } &&
29350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352 (eval $ac_try) 2>&5
29353 ac_status=$?
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; } &&
29356 { ac_try='test -s conftest.$ac_objext'
29357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358 (eval $ac_try) 2>&5
29359 ac_status=$?
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); }; }; then
29362 ac_header_compiler=yes
29363else
29364 echo "$as_me: failed program was:" >&5
29365sed 's/^/| /' conftest.$ac_ext >&5
29366
29367ac_header_compiler=no
29368fi
29369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29370echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29371echo "${ECHO_T}$ac_header_compiler" >&6
29372
29373# Is the header present?
29374echo "$as_me:$LINENO: checking $ac_header presence" >&5
29375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29376cat >conftest.$ac_ext <<_ACEOF
29377/* confdefs.h. */
29378_ACEOF
29379cat confdefs.h >>conftest.$ac_ext
29380cat >>conftest.$ac_ext <<_ACEOF
29381/* end confdefs.h. */
29382#include <$ac_header>
29383_ACEOF
29384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29386 ac_status=$?
29387 grep -v '^ *+' conftest.er1 >conftest.err
29388 rm -f conftest.er1
29389 cat conftest.err >&5
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); } >/dev/null; then
29392 if test -s conftest.err; then
29393 ac_cpp_err=$ac_c_preproc_warn_flag
29394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29395 else
29396 ac_cpp_err=
29397 fi
29398else
29399 ac_cpp_err=yes
29400fi
29401if test -z "$ac_cpp_err"; then
29402 ac_header_preproc=yes
29403else
29404 echo "$as_me: failed program was:" >&5
29405sed 's/^/| /' conftest.$ac_ext >&5
29406
29407 ac_header_preproc=no
29408fi
29409rm -f conftest.err conftest.$ac_ext
29410echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29411echo "${ECHO_T}$ac_header_preproc" >&6
29412
29413# So? What about this header?
29414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29415 yes:no: )
29416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29419echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29420 ac_header_preproc=yes
29421 ;;
29422 no:yes:* )
29423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29426echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29428echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29430echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29434echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29435 (
29436 cat <<\_ASBOX
29437## ----------------------------------------- ##
29438## Report this to wx-dev@lists.wxwidgets.org ##
29439## ----------------------------------------- ##
29440_ASBOX
29441 ) |
29442 sed "s/^/$as_me: WARNING: /" >&2
29443 ;;
29444esac
29445echo "$as_me:$LINENO: checking for $ac_header" >&5
29446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29447if eval "test \"\${$as_ac_Header+set}\" = set"; then
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29449else
29450 eval "$as_ac_Header=\$ac_header_preproc"
29451fi
29452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29453echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29454
29455fi
29456if test `eval echo '${'$as_ac_Header'}'` = yes; then
29457 cat >>confdefs.h <<_ACEOF
29458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29459_ACEOF
29460
29461fi
29462
29463done
29464
29465
29466for ac_header in X11/XKBlib.h
29467do
29468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29469echo "$as_me:$LINENO: checking for $ac_header" >&5
29470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29471if eval "test \"\${$as_ac_Header+set}\" = set"; then
29472 echo $ECHO_N "(cached) $ECHO_C" >&6
29473else
29474 cat >conftest.$ac_ext <<_ACEOF
29475/* confdefs.h. */
29476_ACEOF
29477cat confdefs.h >>conftest.$ac_ext
29478cat >>conftest.$ac_ext <<_ACEOF
29479/* end confdefs.h. */
29480
29481 #if HAVE_X11_XLIB_H
29482 #include <X11/Xlib.h>
29483 #endif
29484
29485
29486#include <$ac_header>
29487_ACEOF
29488rm -f conftest.$ac_objext
29489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29490 (eval $ac_compile) 2>conftest.er1
29491 ac_status=$?
29492 grep -v '^ *+' conftest.er1 >conftest.err
29493 rm -f conftest.er1
29494 cat conftest.err >&5
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); } &&
29497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29499 (eval $ac_try) 2>&5
29500 ac_status=$?
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); }; } &&
29503 { ac_try='test -s conftest.$ac_objext'
29504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29505 (eval $ac_try) 2>&5
29506 ac_status=$?
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); }; }; then
29509 eval "$as_ac_Header=yes"
29510else
29511 echo "$as_me: failed program was:" >&5
29512sed 's/^/| /' conftest.$ac_ext >&5
29513
29514eval "$as_ac_Header=no"
29515fi
29516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29517fi
29518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29520if test `eval echo '${'$as_ac_Header'}'` = yes; then
29521 cat >>confdefs.h <<_ACEOF
29522#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29523_ACEOF
29524
29525fi
29526
29527done
29528
29529 fi
29530fi
29531
a848cd7e
SC
29532
29533
29534IODBC_C_SRC=""
29535
29536
29537if test "$TOOLKIT" != "MSW" ; then
29538
29539 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
29540
29541 if test "${ac_cv_header_sql_h+set}" = set; then
29542 echo "$as_me:$LINENO: checking for sql.h" >&5
29543echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29544if test "${ac_cv_header_sql_h+set}" = set; then
29545 echo $ECHO_N "(cached) $ECHO_C" >&6
29546fi
29547echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29548echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29549else
29550 # Is the header compilable?
29551echo "$as_me:$LINENO: checking sql.h usability" >&5
29552echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
29553cat >conftest.$ac_ext <<_ACEOF
29554/* confdefs.h. */
29555_ACEOF
29556cat confdefs.h >>conftest.$ac_ext
29557cat >>conftest.$ac_ext <<_ACEOF
29558/* end confdefs.h. */
29559$ac_includes_default
29560#include <sql.h>
29561_ACEOF
29562rm -f conftest.$ac_objext
29563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29564 (eval $ac_compile) 2>conftest.er1
a848cd7e 29565 ac_status=$?
ac1cb8d3
VS
29566 grep -v '^ *+' conftest.er1 >conftest.err
29567 rm -f conftest.er1
29568 cat conftest.err >&5
a848cd7e
SC
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); } &&
6ebeb4c7 29571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29573 (eval $ac_try) 2>&5
29574 ac_status=$?
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); }; } &&
29577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29579 (eval $ac_try) 2>&5
29580 ac_status=$?
29581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582 (exit $ac_status); }; }; then
29583 ac_header_compiler=yes
29584else
29585 echo "$as_me: failed program was:" >&5
29586sed 's/^/| /' conftest.$ac_ext >&5
29587
29588ac_header_compiler=no
29589fi
ac1cb8d3 29590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29591echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29592echo "${ECHO_T}$ac_header_compiler" >&6
29593
29594# Is the header present?
29595echo "$as_me:$LINENO: checking sql.h presence" >&5
29596echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
29597cat >conftest.$ac_ext <<_ACEOF
29598/* confdefs.h. */
29599_ACEOF
29600cat confdefs.h >>conftest.$ac_ext
29601cat >>conftest.$ac_ext <<_ACEOF
29602/* end confdefs.h. */
29603#include <sql.h>
29604_ACEOF
29605if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29607 ac_status=$?
29608 grep -v '^ *+' conftest.er1 >conftest.err
29609 rm -f conftest.er1
29610 cat conftest.err >&5
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); } >/dev/null; then
29613 if test -s conftest.err; then
29614 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29616 else
29617 ac_cpp_err=
29618 fi
29619else
29620 ac_cpp_err=yes
29621fi
29622if test -z "$ac_cpp_err"; then
29623 ac_header_preproc=yes
29624else
29625 echo "$as_me: failed program was:" >&5
29626sed 's/^/| /' conftest.$ac_ext >&5
29627
29628 ac_header_preproc=no
29629fi
29630rm -f conftest.err conftest.$ac_ext
29631echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29632echo "${ECHO_T}$ac_header_preproc" >&6
29633
29634# So? What about this header?
ac1cb8d3
VS
29635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29636 yes:no: )
a848cd7e
SC
29637 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29638echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29639 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
29640echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
29641 ac_header_preproc=yes
a848cd7e 29642 ;;
ac1cb8d3 29643 no:yes:* )
a848cd7e
SC
29644 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
29645echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29646 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
29647echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
29648 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
29649echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
29650 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
29651echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29652 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
29653echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29654 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
29655echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29656 (
29657 cat <<\_ASBOX
ac1cb8d3
VS
29658## ----------------------------------------- ##
29659## Report this to wx-dev@lists.wxwidgets.org ##
29660## ----------------------------------------- ##
a848cd7e
SC
29661_ASBOX
29662 ) |
29663 sed "s/^/$as_me: WARNING: /" >&2
29664 ;;
29665esac
29666echo "$as_me:$LINENO: checking for sql.h" >&5
29667echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29668if test "${ac_cv_header_sql_h+set}" = set; then
29669 echo $ECHO_N "(cached) $ECHO_C" >&6
29670else
29671 ac_cv_header_sql_h=$ac_header_preproc
29672fi
29673echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29674echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29675
29676fi
29677if test $ac_cv_header_sql_h = yes; then
29678 found_sql_h=1
29679fi
29680
29681
29682 if test "x$found_sql_h" = "x1" ; then
29683 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29684echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29685if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29686 echo $ECHO_N "(cached) $ECHO_C" >&6
29687else
29688 ac_check_lib_save_LIBS=$LIBS
29689LIBS="-liodbc $LIBS"
29690cat >conftest.$ac_ext <<_ACEOF
29691/* confdefs.h. */
29692_ACEOF
29693cat confdefs.h >>conftest.$ac_ext
29694cat >>conftest.$ac_ext <<_ACEOF
29695/* end confdefs.h. */
29696
29697/* Override any gcc2 internal prototype to avoid an error. */
29698#ifdef __cplusplus
29699extern "C"
29700#endif
29701/* We use char because int might match the return type of a gcc2
29702 builtin and then its argument prototype would still apply. */
29703char SQLAllocEnv ();
29704int
29705main ()
29706{
29707SQLAllocEnv ();
29708 ;
29709 return 0;
29710}
29711_ACEOF
29712rm -f conftest.$ac_objext conftest$ac_exeext
29713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29714 (eval $ac_link) 2>conftest.er1
a848cd7e 29715 ac_status=$?
ac1cb8d3
VS
29716 grep -v '^ *+' conftest.er1 >conftest.err
29717 rm -f conftest.er1
29718 cat conftest.err >&5
a848cd7e
SC
29719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720 (exit $ac_status); } &&
6ebeb4c7 29721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29723 (eval $ac_try) 2>&5
29724 ac_status=$?
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); }; } &&
29727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29729 (eval $ac_try) 2>&5
29730 ac_status=$?
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); }; }; then
29733 ac_cv_lib_iodbc_SQLAllocEnv=yes
29734else
29735 echo "$as_me: failed program was:" >&5
29736sed 's/^/| /' conftest.$ac_ext >&5
29737
29738ac_cv_lib_iodbc_SQLAllocEnv=no
29739fi
ac1cb8d3
VS
29740rm -f conftest.err conftest.$ac_objext \
29741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29742LIBS=$ac_check_lib_save_LIBS
29743fi
29744echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29745echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29746if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29747 ODBC_LINK=" -liodbc"
29748else
29749
29750 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29751echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29752if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29753 echo $ECHO_N "(cached) $ECHO_C" >&6
29754else
29755 ac_check_lib_save_LIBS=$LIBS
29756LIBS="-lunixodbc $LIBS"
29757cat >conftest.$ac_ext <<_ACEOF
29758/* confdefs.h. */
29759_ACEOF
29760cat confdefs.h >>conftest.$ac_ext
29761cat >>conftest.$ac_ext <<_ACEOF
29762/* end confdefs.h. */
29763
29764/* Override any gcc2 internal prototype to avoid an error. */
29765#ifdef __cplusplus
29766extern "C"
29767#endif
29768/* We use char because int might match the return type of a gcc2
29769 builtin and then its argument prototype would still apply. */
29770char SQLAllocEnv ();
29771int
29772main ()
29773{
29774SQLAllocEnv ();
29775 ;
29776 return 0;
29777}
29778_ACEOF
29779rm -f conftest.$ac_objext conftest$ac_exeext
29780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29781 (eval $ac_link) 2>conftest.er1
a848cd7e 29782 ac_status=$?
ac1cb8d3
VS
29783 grep -v '^ *+' conftest.er1 >conftest.err
29784 rm -f conftest.er1
29785 cat conftest.err >&5
a848cd7e
SC
29786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787 (exit $ac_status); } &&
6ebeb4c7 29788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29790 (eval $ac_try) 2>&5
29791 ac_status=$?
29792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793 (exit $ac_status); }; } &&
29794 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29796 (eval $ac_try) 2>&5
29797 ac_status=$?
29798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799 (exit $ac_status); }; }; then
29800 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29801else
29802 echo "$as_me: failed program was:" >&5
29803sed 's/^/| /' conftest.$ac_ext >&5
29804
29805ac_cv_lib_unixodbc_SQLAllocEnv=no
29806fi
ac1cb8d3
VS
29807rm -f conftest.err conftest.$ac_objext \
29808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29809LIBS=$ac_check_lib_save_LIBS
29810fi
29811echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29812echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29813if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29814 ODBC_LINK=" -lunixodbc"
29815else
29816
29817 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29818echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29819if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29820 echo $ECHO_N "(cached) $ECHO_C" >&6
29821else
29822 ac_check_lib_save_LIBS=$LIBS
29823LIBS="-lodbc $LIBS"
29824cat >conftest.$ac_ext <<_ACEOF
29825/* confdefs.h. */
29826_ACEOF
29827cat confdefs.h >>conftest.$ac_ext
29828cat >>conftest.$ac_ext <<_ACEOF
29829/* end confdefs.h. */
29830
29831/* Override any gcc2 internal prototype to avoid an error. */
29832#ifdef __cplusplus
29833extern "C"
29834#endif
29835/* We use char because int might match the return type of a gcc2
29836 builtin and then its argument prototype would still apply. */
29837char SQLAllocEnv ();
29838int
29839main ()
29840{
29841SQLAllocEnv ();
29842 ;
29843 return 0;
29844}
29845_ACEOF
29846rm -f conftest.$ac_objext conftest$ac_exeext
29847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29848 (eval $ac_link) 2>conftest.er1
a848cd7e 29849 ac_status=$?
ac1cb8d3
VS
29850 grep -v '^ *+' conftest.er1 >conftest.err
29851 rm -f conftest.er1
29852 cat conftest.err >&5
a848cd7e
SC
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); } &&
6ebeb4c7 29855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29857 (eval $ac_try) 2>&5
29858 ac_status=$?
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); }; } &&
29861 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29863 (eval $ac_try) 2>&5
29864 ac_status=$?
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); }; }; then
29867 ac_cv_lib_odbc_SQLAllocEnv=yes
29868else
29869 echo "$as_me: failed program was:" >&5
29870sed 's/^/| /' conftest.$ac_ext >&5
29871
29872ac_cv_lib_odbc_SQLAllocEnv=no
29873fi
ac1cb8d3
VS
29874rm -f conftest.err conftest.$ac_objext \
29875 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29876LIBS=$ac_check_lib_save_LIBS
29877fi
29878echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29879echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29880if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29881 ODBC_LINK=" -lodbc"
29882fi
29883
29884
29885fi
29886
29887
29888fi
29889
29890 fi
29891 if test "x$ODBC_LINK" = "x" ; then
29892 if test "$wxUSE_ODBC" = "sys" ; then
29893 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29894echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29895 { (exit 1); exit 1; }; }
29896 else
29897 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29898echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29899 wxUSE_ODBC=builtin
29900 fi
29901 else
29902 wxUSE_ODBC=sys
29903 fi
29904 fi
a848cd7e 29905
2da0c077
RD
29906 if test "$wxUSE_ODBC" = "builtin" ; then
29907 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29908#define wxUSE_BUILTIN_IODBC 1
29909_ACEOF
29910
a848cd7e
SC
29911 fi
29912fi
29913
2da0c077
RD
29914if test "$wxUSE_ODBC" != "no" ; then
29915 cat >>confdefs.h <<\_ACEOF
29916#define wxUSE_ODBC 1
29917_ACEOF
29918
29919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29920
29921 WXODBCFLAG="-D_IODBC_"
29922fi
a848cd7e 29923
01cb68df 29924
a848cd7e 29925if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29926 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29927 echo "$as_me:$LINENO: checking for Xinerama" >&5
29928echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29929
0ad5d837
VZ
29930
29931 ac_find_libraries=
29932 for ac_dir in $SEARCH_LIB;
29933 do
29934 for ac_extension in a so sl dylib dll.a; do
29935 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29936 ac_find_libraries=$ac_dir
29937 break 2
29938 fi
29939 done
29940 done
29941
29942 if test "x$ac_find_libraries" = "x" ; then
29943
29944 ac_find_libraries=
29945 for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
a848cd7e 29946 do
3eca31dc 29947 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29948 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29949 ac_find_libraries=$ac_dir
29950 break 2
29951 fi
29952 done
29953 done
29954
0ad5d837
VZ
29955 if test "x$ac_find_libraries" != "x" ; then
29956 ac_find_libraries="default location"
29957 fi
29958 fi
29959
a848cd7e
SC
29960 if test "$ac_find_libraries" != "" ; then
29961
0ad5d837 29962 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29963 ac_path_to_link=""
29964 else
0ad5d837
VZ
29965 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29966 result=$?
29967 if test $result = 0; then
29968 ac_path_to_link=""
29969 else
29970 ac_path_to_link=" -L$ac_find_libraries"
29971 fi
a848cd7e
SC
29972 fi
29973
29974 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29975 LDFLAGS="$LDFLAGS $ac_path_to_link"
29976 fi
29977 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29978 echo "$as_me:$LINENO: result: yes" >&5
29979echo "${ECHO_T}yes" >&6
29980
29981 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29982echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29983
0ad5d837
VZ
29984
29985 ac_find_libraries=
29986 for ac_dir in $SEARCH_LIB;
a848cd7e 29987 do
3eca31dc 29988 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29989 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29990 ac_find_libraries=$ac_dir
29991 break 2
29992 fi
29993 done
29994 done
29995
0ad5d837
VZ
29996 if test "x$ac_find_libraries" = "x" ; then
29997
29998 ac_find_libraries=
29999 for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
30000 do
30001 for ac_extension in a so sl dylib dll.a; do
30002 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30003 ac_find_libraries=$ac_dir
30004 break 2
30005 fi
30006 done
30007 done
30008
30009 if test "x$ac_find_libraries" != "x" ; then
30010 ac_find_libraries="default location"
30011 fi
30012 fi
30013
a848cd7e
SC
30014 if test "$ac_find_libraries" != "" ; then
30015 echo "$as_me:$LINENO: result: yes" >&5
30016echo "${ECHO_T}yes" >&6
30017
30018for ac_header in X11/extensions/xf86vmode.h
30019do
30020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30021echo "$as_me:$LINENO: checking for $ac_header" >&5
30022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30023if eval "test \"\${$as_ac_Header+set}\" = set"; then
30024 echo $ECHO_N "(cached) $ECHO_C" >&6
30025else
30026 cat >conftest.$ac_ext <<_ACEOF
30027/* confdefs.h. */
30028_ACEOF
30029cat confdefs.h >>conftest.$ac_ext
30030cat >>conftest.$ac_ext <<_ACEOF
30031/* end confdefs.h. */
30032
30033 #if HAVE_X11_XLIB_H
30034 #include <X11/Xlib.h>
30035 #endif
30036
30037
30038#include <$ac_header>
30039_ACEOF
30040rm -f conftest.$ac_objext
30041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30042 (eval $ac_compile) 2>conftest.er1
a848cd7e 30043 ac_status=$?
ac1cb8d3
VS
30044 grep -v '^ *+' conftest.er1 >conftest.err
30045 rm -f conftest.er1
30046 cat conftest.err >&5
a848cd7e
SC
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } &&
6ebeb4c7 30049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30051 (eval $ac_try) 2>&5
30052 ac_status=$?
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; } &&
30055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057 (eval $ac_try) 2>&5
30058 ac_status=$?
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; }; then
30061 eval "$as_ac_Header=yes"
30062else
30063 echo "$as_me: failed program was:" >&5
30064sed 's/^/| /' conftest.$ac_ext >&5
30065
30066eval "$as_ac_Header=no"
30067fi
ac1cb8d3 30068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30069fi
30070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30072if test `eval echo '${'$as_ac_Header'}'` = yes; then
30073 cat >>confdefs.h <<_ACEOF
30074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30075_ACEOF
30076
30077 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30078
30079fi
30080
30081done
30082
30083 else
30084 echo "$as_me:$LINENO: result: no" >&5
30085echo "${ECHO_T}no" >&6
30086 fi
30087
30088 else
30089 echo "$as_me:$LINENO: result: no" >&5
30090echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30091 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30092echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30093 wxUSE_DISPLAY="no"
30094 fi
01cb68df
RG
30095 elif test "$wxUSE_MSW" = 1; then
30096
30097
30098for ac_header in multimon.h ddraw.h
30099do
30100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30101echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30103if eval "test \"\${$as_ac_Header+set}\" = set"; then
30104 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30105else
5294a27e 30106 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30107/* confdefs.h. */
30108_ACEOF
30109cat confdefs.h >>conftest.$ac_ext
30110cat >>conftest.$ac_ext <<_ACEOF
30111/* end confdefs.h. */
5294a27e
VZ
30112#include <windows.h>
30113
01cb68df
RG
30114#include <$ac_header>
30115_ACEOF
30116rm -f conftest.$ac_objext
30117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30118 (eval $ac_compile) 2>conftest.er1
01cb68df 30119 ac_status=$?
ac1cb8d3
VS
30120 grep -v '^ *+' conftest.er1 >conftest.err
30121 rm -f conftest.er1
30122 cat conftest.err >&5
01cb68df
RG
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); } &&
6ebeb4c7 30125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127 (eval $ac_try) 2>&5
30128 ac_status=$?
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); }; } &&
30131 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133 (eval $ac_try) 2>&5
30134 ac_status=$?
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); }; }; then
5294a27e 30137 eval "$as_ac_Header=yes"
01cb68df
RG
30138else
30139 echo "$as_me: failed program was:" >&5
30140sed 's/^/| /' conftest.$ac_ext >&5
30141
5294a27e 30142eval "$as_ac_Header=no"
01cb68df 30143fi
ac1cb8d3 30144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30145fi
30146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30148if test `eval echo '${'$as_ac_Header'}'` = yes; then
30149 cat >>confdefs.h <<_ACEOF
30150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30151_ACEOF
30152
30153else
30154
5294a27e
VZ
30155 wxUSE_DISPLAY="no"
30156 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30157echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30158
30159fi
30160
30161done
30162
a848cd7e
SC
30163 fi
30164fi
30165
30166
30167USE_OPENGL=0
30168if test "$wxUSE_OPENGL" = "yes"; then
30169 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30170 OPENGL_LIBS="-framework OpenGL -framework AGL"
30171 elif test "$wxUSE_MSW" = 1; then
30172 OPENGL_LIBS="-lopengl32 -lglu32"
30173 else
30174
30175
30176ac_find_includes=
30177for ac_dir in $SEARCH_INCLUDE /usr/include;
30178 do
30179 if test -f "$ac_dir/GL/gl.h"; then
30180 ac_find_includes=$ac_dir
30181 break
30182 fi
30183 done
30184
30185 if test "$ac_find_includes" != "" ; then
30186 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30187echo "${ECHO_T}found in $ac_find_includes" >&6
30188
30189 if test "x$ac_find_includes" = "x/usr/include"; then
30190 ac_path_to_include=""
30191 else
30192 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30193 result=$?
30194 if test $result = 0; then
30195 ac_path_to_include=""
30196 else
30197 ac_path_to_include=" -I$ac_find_includes"
30198 fi
30199 fi
30200
30201 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30202 fi
30203
30204 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30205 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30206echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30207if test "${ac_cv_header_GL_gl_h+set}" = set; then
30208 echo $ECHO_N "(cached) $ECHO_C" >&6
30209fi
30210echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30211echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30212else
30213 # Is the header compilable?
30214echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30215echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30216cat >conftest.$ac_ext <<_ACEOF
30217/* confdefs.h. */
30218_ACEOF
30219cat confdefs.h >>conftest.$ac_ext
30220cat >>conftest.$ac_ext <<_ACEOF
30221/* end confdefs.h. */
30222$ac_includes_default
30223#include <GL/gl.h>
30224_ACEOF
30225rm -f conftest.$ac_objext
30226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30227 (eval $ac_compile) 2>conftest.er1
a848cd7e 30228 ac_status=$?
ac1cb8d3
VS
30229 grep -v '^ *+' conftest.er1 >conftest.err
30230 rm -f conftest.er1
30231 cat conftest.err >&5
a848cd7e
SC
30232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233 (exit $ac_status); } &&
6ebeb4c7 30234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30236 (eval $ac_try) 2>&5
30237 ac_status=$?
30238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239 (exit $ac_status); }; } &&
30240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30242 (eval $ac_try) 2>&5
30243 ac_status=$?
30244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245 (exit $ac_status); }; }; then
30246 ac_header_compiler=yes
30247else
30248 echo "$as_me: failed program was:" >&5
30249sed 's/^/| /' conftest.$ac_ext >&5
30250
30251ac_header_compiler=no
30252fi
ac1cb8d3 30253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30254echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30255echo "${ECHO_T}$ac_header_compiler" >&6
30256
30257# Is the header present?
30258echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
30259echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
30260cat >conftest.$ac_ext <<_ACEOF
30261/* confdefs.h. */
30262_ACEOF
30263cat confdefs.h >>conftest.$ac_ext
30264cat >>conftest.$ac_ext <<_ACEOF
30265/* end confdefs.h. */
30266#include <GL/gl.h>
30267_ACEOF
30268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30270 ac_status=$?
30271 grep -v '^ *+' conftest.er1 >conftest.err
30272 rm -f conftest.er1
30273 cat conftest.err >&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); } >/dev/null; then
30276 if test -s conftest.err; then
30277 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30279 else
30280 ac_cpp_err=
30281 fi
30282else
30283 ac_cpp_err=yes
30284fi
30285if test -z "$ac_cpp_err"; then
30286 ac_header_preproc=yes
30287else
30288 echo "$as_me: failed program was:" >&5
30289sed 's/^/| /' conftest.$ac_ext >&5
30290
30291 ac_header_preproc=no
30292fi
30293rm -f conftest.err conftest.$ac_ext
30294echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30295echo "${ECHO_T}$ac_header_preproc" >&6
30296
30297# So? What about this header?
ac1cb8d3
VS
30298case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30299 yes:no: )
a848cd7e
SC
30300 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30301echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30302 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
30303echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
30304 ac_header_preproc=yes
a848cd7e 30305 ;;
ac1cb8d3 30306 no:yes:* )
a848cd7e
SC
30307 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
30308echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30309 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
30310echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
30311 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
30312echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
30313 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
30314echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30315 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
30316echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30317 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
30318echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30319 (
30320 cat <<\_ASBOX
ac1cb8d3
VS
30321## ----------------------------------------- ##
30322## Report this to wx-dev@lists.wxwidgets.org ##
30323## ----------------------------------------- ##
a848cd7e
SC
30324_ASBOX
30325 ) |
30326 sed "s/^/$as_me: WARNING: /" >&2
30327 ;;
30328esac
30329echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30330echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30331if test "${ac_cv_header_GL_gl_h+set}" = set; then
30332 echo $ECHO_N "(cached) $ECHO_C" >&6
30333else
30334 ac_cv_header_GL_gl_h=$ac_header_preproc
30335fi
30336echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30337echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30338
30339fi
30340if test $ac_cv_header_GL_gl_h = yes; then
30341
30342 found_gl=0
30343
30344 echo "$as_me:$LINENO: checking for -lGL" >&5
30345echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
30346
0ad5d837
VZ
30347
30348 ac_find_libraries=
30349 for ac_dir in $SEARCH_LIB;
a848cd7e 30350 do
3eca31dc 30351 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30352 if test -f "$ac_dir/libGL.$ac_extension"; then
30353 ac_find_libraries=$ac_dir
30354 break 2
30355 fi
30356 done
30357 done
30358
0ad5d837
VZ
30359 if test "x$ac_find_libraries" = "x" ; then
30360
30361 ac_find_libraries=
30362 for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
30363 do
30364 for ac_extension in a so sl dylib dll.a; do
30365 if test -f "$ac_dir/libGL.$ac_extension"; then
30366 ac_find_libraries=$ac_dir
30367 break 2
30368 fi
30369 done
30370 done
30371
30372 if test "x$ac_find_libraries" != "x" ; then
30373 ac_find_libraries="default location"
30374 fi
30375 fi
30376
a848cd7e 30377 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
30378 echo "$as_me:$LINENO: result: yes" >&5
30379echo "${ECHO_T}yes" >&6
30380
a848cd7e 30381
0ad5d837 30382 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30383 ac_path_to_link=""
30384 else
0ad5d837
VZ
30385 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30386 result=$?
30387 if test $result = 0; then
30388 ac_path_to_link=""
30389 else
30390 ac_path_to_link=" -L$ac_find_libraries"
30391 fi
a848cd7e
SC
30392 fi
30393
30394 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30395 LDFLAGS_GL="$ac_path_to_link"
30396 fi
30397
69120ee4
VZ
30398 echo "$as_me:$LINENO: checking for -lGLU" >&5
30399echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 30400
0ad5d837
VZ
30401
30402 ac_find_libraries=
30403 for ac_dir in $SEARCH_LIB;
30404 do
30405 for ac_extension in a so sl dylib dll.a; do
30406 if test -f "$ac_dir/libGLU.$ac_extension"; then
30407 ac_find_libraries=$ac_dir
30408 break 2
30409 fi
30410 done
30411 done
30412
30413 if test "x$ac_find_libraries" = "x" ; then
30414
30415 ac_find_libraries=
30416 for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
a848cd7e 30417 do
3eca31dc 30418 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30419 if test -f "$ac_dir/libGLU.$ac_extension"; then
30420 ac_find_libraries=$ac_dir
30421 break 2
30422 fi
30423 done
30424 done
30425
0ad5d837
VZ
30426 if test "x$ac_find_libraries" != "x" ; then
30427 ac_find_libraries="default location"
30428 fi
30429 fi
30430
a848cd7e
SC
30431 if test "$ac_find_libraries" != "" ; then
30432
0ad5d837 30433 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30434 ac_path_to_link=""
30435 else
0ad5d837
VZ
30436 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30437 result=$?
30438 if test $result = 0; then
30439 ac_path_to_link=""
30440 else
30441 ac_path_to_link=" -L$ac_find_libraries"
30442 fi
a848cd7e
SC
30443 fi
30444
30445 if test "$ac_path_to_link" != " -L/usr/lib" -a \
30446 "$ac_path_to_link" != "$LDFLAGS_GL"; then
30447 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
30448 fi
30449
30450 found_gl=1
30451 OPENGL_LIBS="-lGL -lGLU"
30452 echo "$as_me:$LINENO: result: yes" >&5
30453echo "${ECHO_T}yes" >&6
69120ee4
VZ
30454 else
30455 echo "$as_me:$LINENO: result: no" >&5
30456echo "${ECHO_T}no" >&6
a848cd7e 30457 fi
69120ee4
VZ
30458 else
30459 echo "$as_me:$LINENO: result: no" >&5
30460echo "${ECHO_T}no" >&6
a848cd7e
SC
30461 fi
30462
30463 if test "$found_gl" != 1; then
a848cd7e
SC
30464 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
30465echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
30466
0ad5d837
VZ
30467
30468 ac_find_libraries=
30469 for ac_dir in $SEARCH_LIB;
a848cd7e 30470 do
3eca31dc 30471 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30472 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
30473 ac_find_libraries=$ac_dir
30474 break 2
30475 fi
30476 done
30477 done
30478
0ad5d837
VZ
30479 if test "x$ac_find_libraries" = "x" ; then
30480
30481 ac_find_libraries=
30482 for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
30483 do
30484 for ac_extension in a so sl dylib dll.a; do
30485 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
30486 ac_find_libraries=$ac_dir
30487 break 2
30488 fi
30489 done
30490 done
30491
30492 if test "x$ac_find_libraries" != "x" ; then
30493 ac_find_libraries="default location"
30494 fi
30495 fi
30496
a848cd7e
SC
30497 if test "$ac_find_libraries" != "" ; then
30498
0ad5d837 30499 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30500 ac_path_to_link=""
30501 else
0ad5d837
VZ
30502 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30503 result=$?
30504 if test $result = 0; then
30505 ac_path_to_link=""
30506 else
30507 ac_path_to_link=" -L$ac_find_libraries"
30508 fi
a848cd7e
SC
30509 fi
30510
30511 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
30512 OPENGL_LIBS="-lMesaGL -lMesaGLU"
30513 echo "$as_me:$LINENO: result: yes" >&5
30514echo "${ECHO_T}yes" >&6
30515 else
30516 echo "$as_me:$LINENO: result: no" >&5
30517echo "${ECHO_T}no" >&6
30518 fi
30519 fi
30520
30521fi
30522
30523
30524
30525 if test "x$OPENGL_LIBS" = "x"; then
30526 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
30527echo "$as_me: error: OpenGL libraries not available" >&2;}
30528 { (exit 1); exit 1; }; }
30529 fi
30530 fi
30531
30532 if test "$wxUSE_OPENGL" = "yes"; then
30533 USE_OPENGL=1
30534 cat >>confdefs.h <<\_ACEOF
30535#define wxUSE_OPENGL 1
30536_ACEOF
30537
30538 cat >>confdefs.h <<\_ACEOF
30539#define wxUSE_GLCANVAS 1
30540_ACEOF
30541
30542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
30543 fi
30544fi
30545
a848cd7e
SC
30546
30547if test -n "$TOOLKIT" ; then
30548 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
30549fi
30550
a848cd7e
SC
30551
30552
30553if test "$wxUSE_SHARED" = "yes"; then
30554 case "${host}" in
30555 *-pc-msdosdjgpp )
30556 wxUSE_SHARED=no
30557 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
30558echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
30559 ;;
30560 esac
30561fi
30562
a848cd7e 30563if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
30564
30565
30566 found_versioning=no
30567
30568
30569 if test $found_versioning = no ; then
30570 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
30571echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
30572if test "${wx_cv_version_script+set}" = set; then
30573 echo $ECHO_N "(cached) $ECHO_C" >&6
30574else
30575
30576 echo "VER_1 { *; };" >conftest.sym
30577 echo "int main() { return 0; }" >conftest.cpp
30578
30579 if { ac_try='
30580 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30581 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
30582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30583 (eval $ac_try) 2>&5
30584 ac_status=$?
30585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586 (exit $ac_status); }; } ; then
30587 if test -s conftest.stderr ; then
30588 wx_cv_version_script=no
30589 else
30590 wx_cv_version_script=yes
30591 fi
30592 else
30593 wx_cv_version_script=no
30594 fi
e5d4b470
MW
30595
30596 if test $wx_cv_version_script = yes
30597 then
30598 echo "struct B { virtual ~B() { } }; \
30599 struct D : public B { }; \
30600 void F() { D d; }" > conftest.cpp
30601
30602 if { ac_try='
30603 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30604 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
30605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30606 (eval $ac_try) 2>&5
30607 ac_status=$?
30608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609 (exit $ac_status); }; } &&
30610 { ac_try='
30611 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30612 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
30613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30614 (eval $ac_try) 2>&5
30615 ac_status=$?
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; }
30618 then
30619 if { ac_try='
30620 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30621 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
30622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30623 (eval $ac_try) 2>&5
30624 ac_status=$?
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); }; }
30627 then
30628 wx_cv_version_script=yes
30629 else
30630 wx_cv_version_script=no
30631 fi
30632 fi
30633 fi
30634
a848cd7e 30635 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 30636 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
30637
30638fi
30639echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
30640echo "${ECHO_T}$wx_cv_version_script" >&6
30641 if test $wx_cv_version_script = yes ; then
30642 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
30643 fi
30644 fi
30645
30646
30647 case "${host}" in
30648 *-*-linux* | *-*-gnu* )
30649 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30650 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 30651 ;;
a848cd7e
SC
30652
30653 *-*-solaris2* )
30654 if test "$GCC" = yes ; then
30655 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
30656
30657 saveLdflags="$LDFLAGS"
30658 LDFLAGS="$saveLdflags -Wl,-rpath,/"
30659 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
30660echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
30661 cat >conftest.$ac_ext <<_ACEOF
30662/* confdefs.h. */
30663_ACEOF
30664cat confdefs.h >>conftest.$ac_ext
30665cat >>conftest.$ac_ext <<_ACEOF
30666/* end confdefs.h. */
30667
30668int
30669main ()
30670{
30671
30672 ;
30673 return 0;
30674}
30675_ACEOF
30676rm -f conftest.$ac_objext conftest$ac_exeext
30677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30678 (eval $ac_link) 2>conftest.er1
a848cd7e 30679 ac_status=$?
ac1cb8d3
VS
30680 grep -v '^ *+' conftest.er1 >conftest.err
30681 rm -f conftest.er1
30682 cat conftest.err >&5
a848cd7e
SC
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); } &&
6ebeb4c7 30685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30687 (eval $ac_try) 2>&5
30688 ac_status=$?
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); }; } &&
30691 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30693 (eval $ac_try) 2>&5
30694 ac_status=$?
30695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696 (exit $ac_status); }; }; then
30697
30698 echo "$as_me:$LINENO: result: yes" >&5
30699echo "${ECHO_T}yes" >&6
30700 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30701 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
30702
30703else
30704 echo "$as_me: failed program was:" >&5
30705sed 's/^/| /' conftest.$ac_ext >&5
30706
30707
30708 echo "$as_me:$LINENO: result: no" >&5
30709echo "${ECHO_T}no" >&6
30710 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
30711echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
30712 LDFLAGS="$saveLdflags -Wl,-R,/"
30713 cat >conftest.$ac_ext <<_ACEOF
30714/* confdefs.h. */
30715_ACEOF
30716cat confdefs.h >>conftest.$ac_ext
30717cat >>conftest.$ac_ext <<_ACEOF
30718/* end confdefs.h. */
30719
30720int
30721main ()
30722{
30723
30724 ;
30725 return 0;
30726}
30727_ACEOF
30728rm -f conftest.$ac_objext conftest$ac_exeext
30729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30730 (eval $ac_link) 2>conftest.er1
a848cd7e 30731 ac_status=$?
ac1cb8d3
VS
30732 grep -v '^ *+' conftest.er1 >conftest.err
30733 rm -f conftest.er1
30734 cat conftest.err >&5
a848cd7e
SC
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); } &&
6ebeb4c7 30737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30739 (eval $ac_try) 2>&5
30740 ac_status=$?
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); }; } &&
30743 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30745 (eval $ac_try) 2>&5
30746 ac_status=$?
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); }; }; then
30749
ffa0583f 30750 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30751echo "${ECHO_T}yes" >&6
ffa0583f
RL
30752 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
30753 WXCONFIG_RPATH="-Wl,-R,\$libdir"
30754
a848cd7e
SC
30755else
30756 echo "$as_me: failed program was:" >&5
30757sed 's/^/| /' conftest.$ac_ext >&5
30758
30759
30760 echo "$as_me:$LINENO: result: no" >&5
30761echo "${ECHO_T}no" >&6
30762
30763fi
ac1cb8d3
VS
30764rm -f conftest.err conftest.$ac_objext \
30765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30766
30767fi
ac1cb8d3
VS
30768rm -f conftest.err conftest.$ac_objext \
30769 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30770 LDFLAGS="$saveLdflags"
30771 else
a848cd7e 30772 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 30773 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
30774 fi
30775 ;;
30776
cfda0ea8 30777 *-*-darwin* )
0caebc27
MW
30778 install_name_tool=`which install_name_tool`
30779 if test "$install_name_tool" -a -x "$install_name_tool"; then
30780 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
30781 cat <<EOF >change-install-names
a848cd7e
SC
30782#!/bin/sh
30783libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
30784inst_cmd="install_name_tool "
30785for i in \${libnames} ; do
30786 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
30787done
30788\${inst_cmd} \${3}
30789EOF
0caebc27
MW
30790 chmod +x change-install-names
30791 fi
a848cd7e
SC
30792 ;;
30793
30794 *-*-cygwin* | *-*-mingw32* )
30795 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30796 ;;
30797
81f90336
MW
30798 *-*-hpux* )
30799 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30800 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30801 ;;
30802
a848cd7e 30803 esac
ceec2216 30804
ffa0583f
RL
30805 if test $wxUSE_RPATH = "no"; then
30806 SAMPLES_RPATH_FLAG=''
30807 SAMPLES_RPATH_POSTLINK=''
30808 WXCONFIG_RPATH=''
30809 fi
30810
30811 SHARED=1
30812
30813else
30814
ceec2216
RL
30815 config_linkage_component="-static"
30816 SHARED=0
ffa0583f 30817
ceec2216 30818fi
a848cd7e 30819
a848cd7e 30820
ceec2216
RL
30821UNICODE=0
30822lib_unicode_suffix=
30823WX_CHARTYPE="ansi"
30824if test "$wxUSE_UNICODE" = "yes"; then
30825 lib_unicode_suffix=u
30826 WX_CHARTYPE="unicode"
30827 UNICODE=1
a848cd7e
SC
30828fi
30829
ceec2216
RL
30830lib_debug_suffix=
30831WX_DEBUGTYPE="release"
30832DEBUG_FLAG=0
30833if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30834 lib_debug_suffix=d
30835 WX_DEBUGTYPE="debug"
30836 DEBUG_FLAG=1
30837fi
a848cd7e 30838
ceec2216
RL
30839WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30840WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30841
ceec2216
RL
30842DEBUG_INFO=0
30843if test "$wxUSE_DEBUG_INFO" = "yes"; then
30844 DEBUG_INFO=1
30845fi
a848cd7e 30846
ceec2216 30847WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30848
ceec2216 30849TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30850
ceec2216 30851TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30852
ceec2216
RL
30853if test "$cross_compiling" = "yes"; then
30854 HOST_SUFFIX="-$host_alias"
30855 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30856 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30857fi
30858
dd21ced8 30859WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30860if test "${TOOLKIT_DIR}" = "os2"; then
30861 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30862else
30863 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30864fi
ceec2216
RL
30865
30866
30867
1d1af5ea
DE
30868if test "$wxUSE_COCOA" = 1; then
30869
30870
30871 ac_ext=c
30872ac_cpp='$CPP $CPPFLAGS'
30873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30875ac_compiler_gnu=$ac_cv_c_compiler_gnu
30876
30877ac_ext=m
30878
30879 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30880echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30881 cat >conftest.$ac_ext <<_ACEOF
30882/* confdefs.h. */
30883_ACEOF
30884cat confdefs.h >>conftest.$ac_ext
30885cat >>conftest.$ac_ext <<_ACEOF
30886/* end confdefs.h. */
30887#include <AppKit/NSEvent.h>
30888#include <CoreFoundation/CoreFoundation.h>
30889
30890int
30891main ()
30892{
30893
30894 ;
30895 return 0;
30896}
30897_ACEOF
30898rm -f conftest.$ac_objext
30899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30900 (eval $ac_compile) 2>conftest.er1
30901 ac_status=$?
30902 grep -v '^ *+' conftest.er1 >conftest.err
30903 rm -f conftest.er1
30904 cat conftest.err >&5
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); } &&
6ebeb4c7 30907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30909 (eval $ac_try) 2>&5
30910 ac_status=$?
30911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912 (exit $ac_status); }; } &&
30913 { ac_try='test -s conftest.$ac_objext'
30914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30915 (eval $ac_try) 2>&5
30916 ac_status=$?
30917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918 (exit $ac_status); }; }; then
30919 echo "$as_me:$LINENO: result: no" >&5
30920echo "${ECHO_T}no" >&6
30921else
30922 echo "$as_me: failed program was:" >&5
30923sed 's/^/| /' conftest.$ac_ext >&5
30924
30925echo "$as_me:$LINENO: result: yes" >&5
30926echo "${ECHO_T}yes" >&6
30927 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30928echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30929 cat >conftest.$ac_ext <<_ACEOF
30930/* confdefs.h. */
30931_ACEOF
30932cat confdefs.h >>conftest.$ac_ext
30933cat >>conftest.$ac_ext <<_ACEOF
30934/* end confdefs.h. */
30935#define __Point__ 1
30936#include <AppKit/NSEvent.h>
30937#include <CoreFoundation/CoreFoundation.h>
30938
30939int
30940main ()
30941{
30942
30943 ;
30944 return 0;
30945}
30946_ACEOF
30947rm -f conftest.$ac_objext
30948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30949 (eval $ac_compile) 2>conftest.er1
30950 ac_status=$?
30951 grep -v '^ *+' conftest.er1 >conftest.err
30952 rm -f conftest.er1
30953 cat conftest.err >&5
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); } &&
6ebeb4c7 30956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30958 (eval $ac_try) 2>&5
30959 ac_status=$?
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); }; } &&
30962 { ac_try='test -s conftest.$ac_objext'
30963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30964 (eval $ac_try) 2>&5
30965 ac_status=$?
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; }; then
30968 echo "$as_me:$LINENO: result: yes" >&5
30969echo "${ECHO_T}yes" >&6
30970 cat >>confdefs.h <<\_ACEOF
30971#define __Point__ 1
30972_ACEOF
30973
30974
30975else
30976 echo "$as_me: failed program was:" >&5
30977sed 's/^/| /' conftest.$ac_ext >&5
30978
30979{ { echo "$as_me:$LINENO: error: no
30980See \`config.log' for more details." >&5
30981echo "$as_me: error: no
30982See \`config.log' for more details." >&2;}
30983 { (exit 1); exit 1; }; }
30984
30985fi
30986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30987
30988fi
30989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30990 ac_ext=c
30991ac_cpp='$CPP $CPPFLAGS'
30992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30994ac_compiler_gnu=$ac_cv_c_compiler_gnu
30995
30996fi
30997
a848cd7e 30998if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30999 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31000 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31001
a848cd7e 31002 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31003
31004 # Extract the first word of "Rez", so it can be a program name with args.
31005set dummy Rez; ac_word=$2
31006echo "$as_me:$LINENO: checking for $ac_word" >&5
31007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31008if test "${ac_cv_prog_RESCOMP+set}" = set; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31010else
31011 if test -n "$RESCOMP"; then
31012 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31013else
31014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31015for as_dir in $PATH
31016do
31017 IFS=$as_save_IFS
31018 test -z "$as_dir" && as_dir=.
31019 for ac_exec_ext in '' $ac_executable_extensions; do
31020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31021 ac_cv_prog_RESCOMP="Rez"
31022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31023 break 2
31024 fi
31025done
31026done
31027
31028 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31029fi
31030fi
31031RESCOMP=$ac_cv_prog_RESCOMP
31032if test -n "$RESCOMP"; then
31033 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31034echo "${ECHO_T}$RESCOMP" >&6
31035else
31036 echo "$as_me:$LINENO: result: no" >&5
31037echo "${ECHO_T}no" >&6
31038fi
31039
31040 # Extract the first word of "DeRez", so it can be a program name with args.
31041set dummy DeRez; ac_word=$2
31042echo "$as_me:$LINENO: checking for $ac_word" >&5
31043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31044if test "${ac_cv_prog_DEREZ+set}" = set; then
31045 echo $ECHO_N "(cached) $ECHO_C" >&6
31046else
31047 if test -n "$DEREZ"; then
31048 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31049else
31050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31051for as_dir in $PATH
31052do
31053 IFS=$as_save_IFS
31054 test -z "$as_dir" && as_dir=.
31055 for ac_exec_ext in '' $ac_executable_extensions; do
31056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31057 ac_cv_prog_DEREZ="DeRez"
31058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31059 break 2
31060 fi
31061done
31062done
31063
31064 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31065fi
31066fi
31067DEREZ=$ac_cv_prog_DEREZ
31068if test -n "$DEREZ"; then
31069 echo "$as_me:$LINENO: result: $DEREZ" >&5
31070echo "${ECHO_T}$DEREZ" >&6
31071else
31072 echo "$as_me:$LINENO: result: no" >&5
31073echo "${ECHO_T}no" >&6
31074fi
31075
31076 # Extract the first word of "SetFile", so it can be a program name with args.
31077set dummy SetFile; ac_word=$2
31078echo "$as_me:$LINENO: checking for $ac_word" >&5
31079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31080if test "${ac_cv_prog_SETFILE+set}" = set; then
31081 echo $ECHO_N "(cached) $ECHO_C" >&6
31082else
31083 if test -n "$SETFILE"; then
31084 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31085else
31086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31087for as_dir in $PATH
31088do
31089 IFS=$as_save_IFS
31090 test -z "$as_dir" && as_dir=.
31091 for ac_exec_ext in '' $ac_executable_extensions; do
31092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31093 ac_cv_prog_SETFILE="SetFile"
31094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31095 break 2
31096 fi
31097done
31098done
31099
31100 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31101fi
31102fi
31103SETFILE=$ac_cv_prog_SETFILE
31104if test -n "$SETFILE"; then
31105 echo "$as_me:$LINENO: result: $SETFILE" >&5
31106echo "${ECHO_T}$SETFILE" >&6
31107else
31108 echo "$as_me:$LINENO: result: no" >&5
31109echo "${ECHO_T}no" >&6
31110fi
31111
31112
31113 MACSETFILE="\$(SETFILE)"
31114
31115 if test "$wxUSE_MAC" = 1; then
1a79f136 31116 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31117
1a79f136 31118 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
31119 else
31120 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31121 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31122 fi
31123else
ffa0583f
RL
31124 MACSETFILE="@true"
31125 MACRESWXCONFIG="@true"
a848cd7e
SC
31126
31127 if test "$wxUSE_PM" = 1; then
31128 MACRESCOMP="emxbind -ep"
31129 else
ffa0583f 31130 MACRESCOMP="@true"
a848cd7e
SC
31131 fi
31132fi
31133
31134
31135
31136echo "$as_me:$LINENO: checking for mode_t" >&5
31137echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31138if test "${ac_cv_type_mode_t+set}" = set; then
31139 echo $ECHO_N "(cached) $ECHO_C" >&6
31140else
31141 cat >conftest.$ac_ext <<_ACEOF
31142/* confdefs.h. */
31143_ACEOF
31144cat confdefs.h >>conftest.$ac_ext
31145cat >>conftest.$ac_ext <<_ACEOF
31146/* end confdefs.h. */
31147$ac_includes_default
31148int
31149main ()
31150{
31151if ((mode_t *) 0)
31152 return 0;
31153if (sizeof (mode_t))
31154 return 0;
31155 ;
31156 return 0;
31157}
31158_ACEOF
31159rm -f conftest.$ac_objext
31160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31161 (eval $ac_compile) 2>conftest.er1
a848cd7e 31162 ac_status=$?
ac1cb8d3
VS
31163 grep -v '^ *+' conftest.er1 >conftest.err
31164 rm -f conftest.er1
31165 cat conftest.err >&5
a848cd7e
SC
31166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167 (exit $ac_status); } &&
6ebeb4c7 31168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31170 (eval $ac_try) 2>&5
31171 ac_status=$?
31172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173 (exit $ac_status); }; } &&
31174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31176 (eval $ac_try) 2>&5
31177 ac_status=$?
31178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31179 (exit $ac_status); }; }; then
31180 ac_cv_type_mode_t=yes
31181else
31182 echo "$as_me: failed program was:" >&5
31183sed 's/^/| /' conftest.$ac_ext >&5
31184
31185ac_cv_type_mode_t=no
31186fi
ac1cb8d3 31187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31188fi
31189echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31190echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31191if test $ac_cv_type_mode_t = yes; then
31192 :
31193else
31194
31195cat >>confdefs.h <<_ACEOF
31196#define mode_t int
31197_ACEOF
31198
31199fi
31200
31201echo "$as_me:$LINENO: checking for off_t" >&5
31202echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31203if test "${ac_cv_type_off_t+set}" = set; then
31204 echo $ECHO_N "(cached) $ECHO_C" >&6
31205else
31206 cat >conftest.$ac_ext <<_ACEOF
31207/* confdefs.h. */
31208_ACEOF
31209cat confdefs.h >>conftest.$ac_ext
31210cat >>conftest.$ac_ext <<_ACEOF
31211/* end confdefs.h. */
31212$ac_includes_default
31213int
31214main ()
31215{
31216if ((off_t *) 0)
31217 return 0;
31218if (sizeof (off_t))
31219 return 0;
31220 ;
31221 return 0;
31222}
31223_ACEOF
31224rm -f conftest.$ac_objext
31225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31226 (eval $ac_compile) 2>conftest.er1
a848cd7e 31227 ac_status=$?
ac1cb8d3
VS
31228 grep -v '^ *+' conftest.er1 >conftest.err
31229 rm -f conftest.er1
31230 cat conftest.err >&5
a848cd7e
SC
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); } &&
6ebeb4c7 31233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31235 (eval $ac_try) 2>&5
31236 ac_status=$?
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); }; } &&
31239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241 (eval $ac_try) 2>&5
31242 ac_status=$?
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; }; then
31245 ac_cv_type_off_t=yes
31246else
31247 echo "$as_me: failed program was:" >&5
31248sed 's/^/| /' conftest.$ac_ext >&5
31249
31250ac_cv_type_off_t=no
31251fi
ac1cb8d3 31252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31253fi
31254echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31255echo "${ECHO_T}$ac_cv_type_off_t" >&6
31256if test $ac_cv_type_off_t = yes; then
31257 :
31258else
31259
31260cat >>confdefs.h <<_ACEOF
31261#define off_t long
31262_ACEOF
31263
31264fi
31265
31266echo "$as_me:$LINENO: checking for pid_t" >&5
31267echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31268if test "${ac_cv_type_pid_t+set}" = set; then
31269 echo $ECHO_N "(cached) $ECHO_C" >&6
31270else
31271 cat >conftest.$ac_ext <<_ACEOF
31272/* confdefs.h. */
31273_ACEOF
31274cat confdefs.h >>conftest.$ac_ext
31275cat >>conftest.$ac_ext <<_ACEOF
31276/* end confdefs.h. */
31277$ac_includes_default
31278int
31279main ()
31280{
31281if ((pid_t *) 0)
31282 return 0;
31283if (sizeof (pid_t))
31284 return 0;
31285 ;
31286 return 0;
31287}
31288_ACEOF
31289rm -f conftest.$ac_objext
31290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31291 (eval $ac_compile) 2>conftest.er1
a848cd7e 31292 ac_status=$?
ac1cb8d3
VS
31293 grep -v '^ *+' conftest.er1 >conftest.err
31294 rm -f conftest.er1
31295 cat conftest.err >&5
a848cd7e
SC
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); } &&
6ebeb4c7 31298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31300 (eval $ac_try) 2>&5
31301 ac_status=$?
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; } &&
31304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31306 (eval $ac_try) 2>&5
31307 ac_status=$?
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); }; }; then
31310 ac_cv_type_pid_t=yes
31311else
31312 echo "$as_me: failed program was:" >&5
31313sed 's/^/| /' conftest.$ac_ext >&5
31314
31315ac_cv_type_pid_t=no
31316fi
ac1cb8d3 31317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31318fi
31319echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31320echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31321if test $ac_cv_type_pid_t = yes; then
31322 :
31323else
31324
31325cat >>confdefs.h <<_ACEOF
31326#define pid_t int
31327_ACEOF
31328
31329fi
31330
31331echo "$as_me:$LINENO: checking for size_t" >&5
31332echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31333if test "${ac_cv_type_size_t+set}" = set; then
31334 echo $ECHO_N "(cached) $ECHO_C" >&6
31335else
31336 cat >conftest.$ac_ext <<_ACEOF
31337/* confdefs.h. */
31338_ACEOF
31339cat confdefs.h >>conftest.$ac_ext
31340cat >>conftest.$ac_ext <<_ACEOF
31341/* end confdefs.h. */
31342$ac_includes_default
31343int
31344main ()
31345{
31346if ((size_t *) 0)
31347 return 0;
31348if (sizeof (size_t))
31349 return 0;
31350 ;
31351 return 0;
31352}
31353_ACEOF
31354rm -f conftest.$ac_objext
31355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31356 (eval $ac_compile) 2>conftest.er1
a848cd7e 31357 ac_status=$?
ac1cb8d3
VS
31358 grep -v '^ *+' conftest.er1 >conftest.err
31359 rm -f conftest.er1
31360 cat conftest.err >&5
a848cd7e
SC
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362 (exit $ac_status); } &&
6ebeb4c7 31363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31365 (eval $ac_try) 2>&5
31366 ac_status=$?
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); }; } &&
31369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31371 (eval $ac_try) 2>&5
31372 ac_status=$?
31373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374 (exit $ac_status); }; }; then
31375 ac_cv_type_size_t=yes
31376else
31377 echo "$as_me: failed program was:" >&5
31378sed 's/^/| /' conftest.$ac_ext >&5
31379
31380ac_cv_type_size_t=no
31381fi
ac1cb8d3 31382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31383fi
31384echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31385echo "${ECHO_T}$ac_cv_type_size_t" >&6
31386if test $ac_cv_type_size_t = yes; then
31387 :
31388else
31389
31390cat >>confdefs.h <<_ACEOF
31391#define size_t unsigned
31392_ACEOF
31393
31394fi
31395
31396echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
31397echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
31398if test "${ac_cv_type_uid_t+set}" = set; then
31399 echo $ECHO_N "(cached) $ECHO_C" >&6
31400else
31401 cat >conftest.$ac_ext <<_ACEOF
31402/* confdefs.h. */
31403_ACEOF
31404cat confdefs.h >>conftest.$ac_ext
31405cat >>conftest.$ac_ext <<_ACEOF
31406/* end confdefs.h. */
31407#include <sys/types.h>
31408
31409_ACEOF
31410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31411 $EGREP "uid_t" >/dev/null 2>&1; then
31412 ac_cv_type_uid_t=yes
31413else
31414 ac_cv_type_uid_t=no
31415fi
31416rm -f conftest*
31417
31418fi
31419echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31420echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31421if test $ac_cv_type_uid_t = no; then
31422
31423cat >>confdefs.h <<\_ACEOF
31424#define uid_t int
31425_ACEOF
31426
31427
31428cat >>confdefs.h <<\_ACEOF
31429#define gid_t int
31430_ACEOF
31431
31432fi
31433
31434
d51253e8
RL
31435echo "$as_me:$LINENO: checking for ssize_t" >&5
31436echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31437if test "${ac_cv_type_ssize_t+set}" = set; then
31438 echo $ECHO_N "(cached) $ECHO_C" >&6
31439else
31440 cat >conftest.$ac_ext <<_ACEOF
31441/* confdefs.h. */
31442_ACEOF
31443cat confdefs.h >>conftest.$ac_ext
31444cat >>conftest.$ac_ext <<_ACEOF
31445/* end confdefs.h. */
31446$ac_includes_default
31447int
31448main ()
31449{
31450if ((ssize_t *) 0)
31451 return 0;
31452if (sizeof (ssize_t))
31453 return 0;
31454 ;
31455 return 0;
31456}
31457_ACEOF
31458rm -f conftest.$ac_objext
31459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31460 (eval $ac_compile) 2>conftest.er1
31461 ac_status=$?
31462 grep -v '^ *+' conftest.er1 >conftest.err
31463 rm -f conftest.er1
31464 cat conftest.err >&5
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 (exit $ac_status); } &&
6ebeb4c7 31467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
31468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31469 (eval $ac_try) 2>&5
31470 ac_status=$?
31471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472 (exit $ac_status); }; } &&
31473 { ac_try='test -s conftest.$ac_objext'
31474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31475 (eval $ac_try) 2>&5
31476 ac_status=$?
31477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478 (exit $ac_status); }; }; then
31479 ac_cv_type_ssize_t=yes
31480else
31481 echo "$as_me: failed program was:" >&5
31482sed 's/^/| /' conftest.$ac_ext >&5
31483
31484ac_cv_type_ssize_t=no
31485fi
31486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31487fi
31488echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31489echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31490if test $ac_cv_type_ssize_t = yes; then
31491
31492cat >>confdefs.h <<_ACEOF
31493#define HAVE_SSIZE_T 1
31494_ACEOF
31495
31496
31497fi
31498
31499
a848cd7e
SC
31500
31501
31502ac_ext=cc
31503ac_cpp='$CXXCPP $CPPFLAGS'
31504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31507
31508echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
31509echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
31510if test "${wx_cv_size_t_is_uint+set}" = set; then
31511 echo $ECHO_N "(cached) $ECHO_C" >&6
31512else
31513
31514 cat >conftest.$ac_ext <<_ACEOF
31515/* confdefs.h. */
31516_ACEOF
31517cat confdefs.h >>conftest.$ac_ext
31518cat >>conftest.$ac_ext <<_ACEOF
31519/* end confdefs.h. */
31520#include <stddef.h>
31521int
31522main ()
31523{
31524
31525 return 0; }
31526
31527 struct Foo { void foo(size_t); void foo(unsigned int); };
31528
31529 int bar() {
31530
31531 ;
31532 return 0;
31533}
31534_ACEOF
31535rm -f conftest.$ac_objext
31536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31537 (eval $ac_compile) 2>conftest.er1
a848cd7e 31538 ac_status=$?
ac1cb8d3
VS
31539 grep -v '^ *+' conftest.er1 >conftest.err
31540 rm -f conftest.er1
31541 cat conftest.err >&5
a848cd7e
SC
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); } &&
6ebeb4c7 31544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31546 (eval $ac_try) 2>&5
31547 ac_status=$?
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; } &&
31550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31552 (eval $ac_try) 2>&5
31553 ac_status=$?
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); }; }; then
31556 wx_cv_size_t_is_uint=no
31557else
31558 echo "$as_me: failed program was:" >&5
31559sed 's/^/| /' conftest.$ac_ext >&5
31560
31561wx_cv_size_t_is_uint=yes
31562
31563fi
ac1cb8d3 31564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31565
31566
31567fi
31568echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
31569echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
31570
31571if test "$wx_cv_size_t_is_uint" = "yes"; then
31572 cat >>confdefs.h <<\_ACEOF
31573#define wxSIZE_T_IS_UINT 1
31574_ACEOF
31575
31576else
31577 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
31578echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
31579if test "${wx_cv_size_t_is_ulong+set}" = set; then
31580 echo $ECHO_N "(cached) $ECHO_C" >&6
31581else
31582 cat >conftest.$ac_ext <<_ACEOF
31583/* confdefs.h. */
31584_ACEOF
31585cat confdefs.h >>conftest.$ac_ext
31586cat >>conftest.$ac_ext <<_ACEOF
31587/* end confdefs.h. */
31588#include <stddef.h>
31589int
31590main ()
31591{
31592
31593 return 0; }
31594
31595 struct Foo { void foo(size_t); void foo(unsigned long); };
31596
31597 int bar() {
31598
31599 ;
31600 return 0;
31601}
31602_ACEOF
31603rm -f conftest.$ac_objext
31604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31605 (eval $ac_compile) 2>conftest.er1
a848cd7e 31606 ac_status=$?
ac1cb8d3
VS
31607 grep -v '^ *+' conftest.er1 >conftest.err
31608 rm -f conftest.er1
31609 cat conftest.err >&5
a848cd7e
SC
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); } &&
6ebeb4c7 31612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31614 (eval $ac_try) 2>&5
31615 ac_status=$?
31616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617 (exit $ac_status); }; } &&
31618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31620 (eval $ac_try) 2>&5
31621 ac_status=$?
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); }; }; then
31624 wx_cv_size_t_is_ulong=no
31625else
31626 echo "$as_me: failed program was:" >&5
31627sed 's/^/| /' conftest.$ac_ext >&5
31628
31629wx_cv_size_t_is_ulong=yes
31630
31631fi
ac1cb8d3 31632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31633
31634fi
31635echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
31636echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
31637
31638 if test "$wx_cv_size_t_is_ulong" = "yes"; then
31639 cat >>confdefs.h <<\_ACEOF
31640#define wxSIZE_T_IS_ULONG 1
31641_ACEOF
31642
31643 fi
31644fi
31645
31646ac_ext=c
31647ac_cpp='$CPP $CPPFLAGS'
31648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31650ac_compiler_gnu=$ac_cv_c_compiler_gnu
31651
31652
31653
31654echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
31655echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
31656if test "${wx_cv_struct_pw_gecos+set}" = set; then
31657 echo $ECHO_N "(cached) $ECHO_C" >&6
31658else
31659
31660 cat >conftest.$ac_ext <<_ACEOF
31661/* confdefs.h. */
31662_ACEOF
31663cat confdefs.h >>conftest.$ac_ext
31664cat >>conftest.$ac_ext <<_ACEOF
31665/* end confdefs.h. */
31666#include <pwd.h>
31667int
31668main ()
31669{
31670
31671 char *p;
31672 struct passwd *pw;
31673 p = pw->pw_gecos;
31674
31675 ;
31676 return 0;
31677}
31678_ACEOF
31679rm -f conftest.$ac_objext
31680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31681 (eval $ac_compile) 2>conftest.er1
a848cd7e 31682 ac_status=$?
ac1cb8d3
VS
31683 grep -v '^ *+' conftest.er1 >conftest.err
31684 rm -f conftest.er1
31685 cat conftest.err >&5
a848cd7e
SC
31686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687 (exit $ac_status); } &&
6ebeb4c7 31688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31690 (eval $ac_try) 2>&5
31691 ac_status=$?
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); }; } &&
31694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31696 (eval $ac_try) 2>&5
31697 ac_status=$?
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); }; }; then
31700
31701 wx_cv_struct_pw_gecos=yes
31702
31703else
31704 echo "$as_me: failed program was:" >&5
31705sed 's/^/| /' conftest.$ac_ext >&5
31706
31707
31708 wx_cv_struct_pw_gecos=no
31709
31710
31711fi
ac1cb8d3 31712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31713
31714
31715fi
31716echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
31717echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
31718
31719if test "$wx_cv_struct_pw_gecos" = "yes"; then
31720 cat >>confdefs.h <<\_ACEOF
31721#define HAVE_PW_GECOS 1
31722_ACEOF
31723
31724fi
31725
31726
47a7e797 31727if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
31728 cat >>confdefs.h <<\_ACEOF
31729#define wxUSE_WCHAR_T 1
31730_ACEOF
31731
31732
31733 WCSLEN_FOUND=0
31734 WCHAR_LINK=
31735
31736for ac_func in wcslen
31737do
31738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31739echo "$as_me:$LINENO: checking for $ac_func" >&5
31740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31741if eval "test \"\${$as_ac_var+set}\" = set"; then
31742 echo $ECHO_N "(cached) $ECHO_C" >&6
31743else
31744 cat >conftest.$ac_ext <<_ACEOF
31745/* confdefs.h. */
31746_ACEOF
31747cat confdefs.h >>conftest.$ac_ext
31748cat >>conftest.$ac_ext <<_ACEOF
31749/* end confdefs.h. */
ac1cb8d3
VS
31750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31752#define $ac_func innocuous_$ac_func
31753
a848cd7e
SC
31754/* System header to define __stub macros and hopefully few prototypes,
31755 which can conflict with char $ac_func (); below.
31756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31757 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31758
a848cd7e
SC
31759#ifdef __STDC__
31760# include <limits.h>
31761#else
31762# include <assert.h>
31763#endif
ac1cb8d3
VS
31764
31765#undef $ac_func
31766
a848cd7e
SC
31767/* Override any gcc2 internal prototype to avoid an error. */
31768#ifdef __cplusplus
31769extern "C"
31770{
31771#endif
31772/* We use char because int might match the return type of a gcc2
31773 builtin and then its argument prototype would still apply. */
31774char $ac_func ();
31775/* The GNU C library defines this for functions which it implements
31776 to always fail with ENOSYS. Some functions are actually named
31777 something starting with __ and the normal name is an alias. */
31778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31779choke me
31780#else
31781char (*f) () = $ac_func;
31782#endif
31783#ifdef __cplusplus
31784}
31785#endif
31786
31787int
31788main ()
31789{
31790return f != $ac_func;
31791 ;
31792 return 0;
31793}
31794_ACEOF
31795rm -f conftest.$ac_objext conftest$ac_exeext
31796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31797 (eval $ac_link) 2>conftest.er1
a848cd7e 31798 ac_status=$?
ac1cb8d3
VS
31799 grep -v '^ *+' conftest.er1 >conftest.err
31800 rm -f conftest.er1
31801 cat conftest.err >&5
a848cd7e
SC
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); } &&
6ebeb4c7 31804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31806 (eval $ac_try) 2>&5
31807 ac_status=$?
31808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809 (exit $ac_status); }; } &&
31810 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31812 (eval $ac_try) 2>&5
31813 ac_status=$?
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); }; }; then
31816 eval "$as_ac_var=yes"
31817else
31818 echo "$as_me: failed program was:" >&5
31819sed 's/^/| /' conftest.$ac_ext >&5
31820
31821eval "$as_ac_var=no"
31822fi
ac1cb8d3
VS
31823rm -f conftest.err conftest.$ac_objext \
31824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31825fi
31826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31827echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31828if test `eval echo '${'$as_ac_var'}'` = yes; then
31829 cat >>confdefs.h <<_ACEOF
31830#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31831_ACEOF
31832 WCSLEN_FOUND=1
31833fi
31834done
31835
31836
31837 if test "$WCSLEN_FOUND" = 0; then
31838 if test "$TOOLKIT" = "MSW"; then
31839 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31840echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31841if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31842 echo $ECHO_N "(cached) $ECHO_C" >&6
31843else
31844 ac_check_lib_save_LIBS=$LIBS
31845LIBS="-lmsvcrt $LIBS"
31846cat >conftest.$ac_ext <<_ACEOF
31847/* confdefs.h. */
31848_ACEOF
31849cat confdefs.h >>conftest.$ac_ext
31850cat >>conftest.$ac_ext <<_ACEOF
31851/* end confdefs.h. */
31852
31853/* Override any gcc2 internal prototype to avoid an error. */
31854#ifdef __cplusplus
31855extern "C"
31856#endif
31857/* We use char because int might match the return type of a gcc2
31858 builtin and then its argument prototype would still apply. */
31859char wcslen ();
31860int
31861main ()
31862{
31863wcslen ();
31864 ;
31865 return 0;
31866}
31867_ACEOF
31868rm -f conftest.$ac_objext conftest$ac_exeext
31869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31870 (eval $ac_link) 2>conftest.er1
a848cd7e 31871 ac_status=$?
ac1cb8d3
VS
31872 grep -v '^ *+' conftest.er1 >conftest.err
31873 rm -f conftest.er1
31874 cat conftest.err >&5
a848cd7e
SC
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); } &&
6ebeb4c7 31877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31879 (eval $ac_try) 2>&5
31880 ac_status=$?
31881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); }; } &&
31883 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31885 (eval $ac_try) 2>&5
31886 ac_status=$?
31887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); }; }; then
31889 ac_cv_lib_msvcrt_wcslen=yes
31890else
31891 echo "$as_me: failed program was:" >&5
31892sed 's/^/| /' conftest.$ac_ext >&5
31893
31894ac_cv_lib_msvcrt_wcslen=no
31895fi
ac1cb8d3
VS
31896rm -f conftest.err conftest.$ac_objext \
31897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31898LIBS=$ac_check_lib_save_LIBS
31899fi
31900echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31901echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31902if test $ac_cv_lib_msvcrt_wcslen = yes; then
31903 WCHAR_OK=1
31904fi
31905
31906 else
31907 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31908echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31909if test "${ac_cv_lib_w_wcslen+set}" = set; then
31910 echo $ECHO_N "(cached) $ECHO_C" >&6
31911else
31912 ac_check_lib_save_LIBS=$LIBS
31913LIBS="-lw $LIBS"
31914cat >conftest.$ac_ext <<_ACEOF
31915/* confdefs.h. */
31916_ACEOF
31917cat confdefs.h >>conftest.$ac_ext
31918cat >>conftest.$ac_ext <<_ACEOF
31919/* end confdefs.h. */
31920
31921/* Override any gcc2 internal prototype to avoid an error. */
31922#ifdef __cplusplus
31923extern "C"
31924#endif
31925/* We use char because int might match the return type of a gcc2
31926 builtin and then its argument prototype would still apply. */
31927char wcslen ();
31928int
31929main ()
31930{
31931wcslen ();
31932 ;
31933 return 0;
31934}
31935_ACEOF
31936rm -f conftest.$ac_objext conftest$ac_exeext
31937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31938 (eval $ac_link) 2>conftest.er1
a848cd7e 31939 ac_status=$?
ac1cb8d3
VS
31940 grep -v '^ *+' conftest.er1 >conftest.err
31941 rm -f conftest.er1
31942 cat conftest.err >&5
a848cd7e
SC
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944 (exit $ac_status); } &&
6ebeb4c7 31945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31947 (eval $ac_try) 2>&5
31948 ac_status=$?
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); }; } &&
31951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31953 (eval $ac_try) 2>&5
31954 ac_status=$?
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); }; }; then
31957 ac_cv_lib_w_wcslen=yes
31958else
31959 echo "$as_me: failed program was:" >&5
31960sed 's/^/| /' conftest.$ac_ext >&5
31961
31962ac_cv_lib_w_wcslen=no
31963fi
ac1cb8d3
VS
31964rm -f conftest.err conftest.$ac_objext \
31965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31966LIBS=$ac_check_lib_save_LIBS
31967fi
31968echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31969echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31970if test $ac_cv_lib_w_wcslen = yes; then
31971
31972 WCHAR_LINK=" -lw"
31973 WCSLEN_FOUND=1
31974
31975fi
31976
31977 fi
31978 fi
31979
31980 if test "$WCSLEN_FOUND" = 1; then
31981 cat >>confdefs.h <<\_ACEOF
31982#define HAVE_WCSLEN 1
31983_ACEOF
31984
31985 fi
31986
efdf6afe 31987 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
31988 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31989 fi
31990
efdf6afe
VZ
31991 echo "$as_me:$LINENO: checking for mbstate_t" >&5
31992echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
31993if test "${ac_cv_type_mbstate_t+set}" = set; then
31994 echo $ECHO_N "(cached) $ECHO_C" >&6
31995else
31996 cat >conftest.$ac_ext <<_ACEOF
31997/* confdefs.h. */
31998_ACEOF
31999cat confdefs.h >>conftest.$ac_ext
32000cat >>conftest.$ac_ext <<_ACEOF
32001/* end confdefs.h. */
32002#include <wchar.h>
32003
32004int
32005main ()
32006{
32007if ((mbstate_t *) 0)
32008 return 0;
32009if (sizeof (mbstate_t))
32010 return 0;
32011 ;
32012 return 0;
32013}
32014_ACEOF
32015rm -f conftest.$ac_objext
32016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32017 (eval $ac_compile) 2>conftest.er1
32018 ac_status=$?
32019 grep -v '^ *+' conftest.er1 >conftest.err
32020 rm -f conftest.er1
32021 cat conftest.err >&5
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); } &&
32024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32026 (eval $ac_try) 2>&5
32027 ac_status=$?
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); }; } &&
32030 { ac_try='test -s conftest.$ac_objext'
32031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32032 (eval $ac_try) 2>&5
32033 ac_status=$?
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; }; then
32036 ac_cv_type_mbstate_t=yes
32037else
32038 echo "$as_me: failed program was:" >&5
32039sed 's/^/| /' conftest.$ac_ext >&5
32040
32041ac_cv_type_mbstate_t=no
32042fi
32043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32044fi
32045echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32046echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32047if test $ac_cv_type_mbstate_t = yes; then
32048
32049cat >>confdefs.h <<_ACEOF
32050#define HAVE_MBSTATE_T 1
32051_ACEOF
32052
a848cd7e
SC
32053
32054for ac_func in wcsrtombs
32055do
32056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32057echo "$as_me:$LINENO: checking for $ac_func" >&5
32058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32059if eval "test \"\${$as_ac_var+set}\" = set"; then
32060 echo $ECHO_N "(cached) $ECHO_C" >&6
32061else
32062 cat >conftest.$ac_ext <<_ACEOF
32063/* confdefs.h. */
32064_ACEOF
32065cat confdefs.h >>conftest.$ac_ext
32066cat >>conftest.$ac_ext <<_ACEOF
32067/* end confdefs.h. */
ac1cb8d3
VS
32068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32070#define $ac_func innocuous_$ac_func
32071
a848cd7e
SC
32072/* System header to define __stub macros and hopefully few prototypes,
32073 which can conflict with char $ac_func (); below.
32074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32075 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32076
a848cd7e
SC
32077#ifdef __STDC__
32078# include <limits.h>
32079#else
32080# include <assert.h>
32081#endif
ac1cb8d3
VS
32082
32083#undef $ac_func
32084
a848cd7e
SC
32085/* Override any gcc2 internal prototype to avoid an error. */
32086#ifdef __cplusplus
32087extern "C"
32088{
32089#endif
32090/* We use char because int might match the return type of a gcc2
32091 builtin and then its argument prototype would still apply. */
32092char $ac_func ();
32093/* The GNU C library defines this for functions which it implements
32094 to always fail with ENOSYS. Some functions are actually named
32095 something starting with __ and the normal name is an alias. */
32096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32097choke me
32098#else
32099char (*f) () = $ac_func;
32100#endif
32101#ifdef __cplusplus
32102}
32103#endif
32104
32105int
32106main ()
32107{
32108return f != $ac_func;
32109 ;
32110 return 0;
32111}
32112_ACEOF
32113rm -f conftest.$ac_objext conftest$ac_exeext
32114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32115 (eval $ac_link) 2>conftest.er1
a848cd7e 32116 ac_status=$?
ac1cb8d3
VS
32117 grep -v '^ *+' conftest.er1 >conftest.err
32118 rm -f conftest.er1
32119 cat conftest.err >&5
a848cd7e
SC
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); } &&
6ebeb4c7 32122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32124 (eval $ac_try) 2>&5
32125 ac_status=$?
32126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127 (exit $ac_status); }; } &&
32128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32130 (eval $ac_try) 2>&5
32131 ac_status=$?
32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); }; }; then
32134 eval "$as_ac_var=yes"
32135else
32136 echo "$as_me: failed program was:" >&5
32137sed 's/^/| /' conftest.$ac_ext >&5
32138
32139eval "$as_ac_var=no"
32140fi
ac1cb8d3
VS
32141rm -f conftest.err conftest.$ac_objext \
32142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32143fi
32144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32145echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32146if test `eval echo '${'$as_ac_var'}'` = yes; then
32147 cat >>confdefs.h <<_ACEOF
32148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32149_ACEOF
32150
32151fi
32152done
32153
efdf6afe
VZ
32154fi
32155
a848cd7e
SC
32156else
32157 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32158echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32159fi
32160
32161
32162
32163ac_ext=cc
32164ac_cpp='$CXXCPP $CPPFLAGS'
32165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32168
32169
32170
4a767dd5
VZ
32171
32172for ac_func in snprintf vsnprintf
a848cd7e
SC
32173do
32174as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32175echo "$as_me:$LINENO: checking for $ac_func" >&5
32176echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32177if eval "test \"\${$as_ac_var+set}\" = set"; then
32178 echo $ECHO_N "(cached) $ECHO_C" >&6
32179else
32180 cat >conftest.$ac_ext <<_ACEOF
32181/* confdefs.h. */
32182_ACEOF
32183cat confdefs.h >>conftest.$ac_ext
32184cat >>conftest.$ac_ext <<_ACEOF
32185/* end confdefs.h. */
ac1cb8d3
VS
32186/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32188#define $ac_func innocuous_$ac_func
32189
a848cd7e
SC
32190/* System header to define __stub macros and hopefully few prototypes,
32191 which can conflict with char $ac_func (); below.
32192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32193 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32194
a848cd7e
SC
32195#ifdef __STDC__
32196# include <limits.h>
32197#else
32198# include <assert.h>
32199#endif
ac1cb8d3
VS
32200
32201#undef $ac_func
32202
a848cd7e
SC
32203/* Override any gcc2 internal prototype to avoid an error. */
32204#ifdef __cplusplus
32205extern "C"
32206{
32207#endif
32208/* We use char because int might match the return type of a gcc2
32209 builtin and then its argument prototype would still apply. */
32210char $ac_func ();
32211/* The GNU C library defines this for functions which it implements
32212 to always fail with ENOSYS. Some functions are actually named
32213 something starting with __ and the normal name is an alias. */
32214#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32215choke me
32216#else
32217char (*f) () = $ac_func;
32218#endif
32219#ifdef __cplusplus
32220}
32221#endif
32222
32223int
32224main ()
32225{
32226return f != $ac_func;
32227 ;
32228 return 0;
32229}
32230_ACEOF
32231rm -f conftest.$ac_objext conftest$ac_exeext
32232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32233 (eval $ac_link) 2>conftest.er1
a848cd7e 32234 ac_status=$?
ac1cb8d3
VS
32235 grep -v '^ *+' conftest.er1 >conftest.err
32236 rm -f conftest.er1
32237 cat conftest.err >&5
a848cd7e
SC
32238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239 (exit $ac_status); } &&
6ebeb4c7 32240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32242 (eval $ac_try) 2>&5
32243 ac_status=$?
32244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); }; } &&
32246 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32248 (eval $ac_try) 2>&5
32249 ac_status=$?
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); }; }; then
32252 eval "$as_ac_var=yes"
32253else
32254 echo "$as_me: failed program was:" >&5
32255sed 's/^/| /' conftest.$ac_ext >&5
32256
32257eval "$as_ac_var=no"
32258fi
ac1cb8d3
VS
32259rm -f conftest.err conftest.$ac_objext \
32260 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32261fi
32262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32263echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32264if test `eval echo '${'$as_ac_var'}'` = yes; then
32265 cat >>confdefs.h <<_ACEOF
32266#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32267_ACEOF
32268
32269fi
32270done
32271
32272
32273if test "$ac_cv_func_vsnprintf" = "yes"; then
32274 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32275echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32276if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32277 echo $ECHO_N "(cached) $ECHO_C" >&6
32278else
32279
efdf6afe 32280 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32281/* confdefs.h. */
32282_ACEOF
32283cat confdefs.h >>conftest.$ac_ext
32284cat >>conftest.$ac_ext <<_ACEOF
32285/* end confdefs.h. */
32286
32287 #include <stdio.h>
32288 #include <stdarg.h>
efdf6afe
VZ
32289 #ifdef __MSL__
32290 #if __MSL__ >= 0x6000
32291 namespace std {}
32292 using namespace std;
32293 #endif
32294 #endif
a848cd7e
SC
32295
32296int
32297main ()
32298{
32299
32300 char *buf;
32301 va_list ap;
62fa8b3a 32302 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
32303
32304 ;
32305 return 0;
32306}
32307_ACEOF
32308rm -f conftest.$ac_objext
32309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32310 (eval $ac_compile) 2>conftest.er1
32311 ac_status=$?
32312 grep -v '^ *+' conftest.er1 >conftest.err
32313 rm -f conftest.er1
32314 cat conftest.err >&5
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); } &&
6ebeb4c7 32317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
32318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319 (eval $ac_try) 2>&5
32320 ac_status=$?
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; } &&
32323 { ac_try='test -s conftest.$ac_objext'
32324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32325 (eval $ac_try) 2>&5
32326 ac_status=$?
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); }; }; then
32329 wx_cv_func_vsnprintf_decl=yes
32330else
32331 echo "$as_me: failed program was:" >&5
32332sed 's/^/| /' conftest.$ac_ext >&5
32333
a848cd7e
SC
32334wx_cv_func_vsnprintf_decl=no
32335
32336fi
ac1cb8d3 32337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32338
32339
32340fi
32341echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
32342echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
32343
32344 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
32345 cat >>confdefs.h <<\_ACEOF
32346#define HAVE_VSNPRINTF_DECL 1
32347_ACEOF
32348
62fa8b3a
MW
32349
32350 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
32351echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
32352if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
32353 echo $ECHO_N "(cached) $ECHO_C" >&6
32354else
32355
32356 cat >conftest.$ac_ext <<_ACEOF
32357/* confdefs.h. */
32358_ACEOF
32359cat confdefs.h >>conftest.$ac_ext
32360cat >>conftest.$ac_ext <<_ACEOF
32361/* end confdefs.h. */
32362
32363 #include <stdio.h>
32364 #include <stdarg.h>
32365 #ifdef __MSL__
32366 #if __MSL__ >= 0x6000
32367 namespace std {}
32368 using namespace std;
32369 #endif
32370 #endif
32371
32372int
32373main ()
32374{
32375
32376 char *buf;
32377 va_list ap;
32378 const char *fmt = "%s";
32379 vsnprintf(buf, 10u, fmt, ap);
32380
32381 ;
32382 return 0;
32383}
32384_ACEOF
32385rm -f conftest.$ac_objext
32386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32387 (eval $ac_compile) 2>conftest.er1
32388 ac_status=$?
32389 grep -v '^ *+' conftest.er1 >conftest.err
32390 rm -f conftest.er1
32391 cat conftest.err >&5
32392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393 (exit $ac_status); } &&
32394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32396 (eval $ac_try) 2>&5
32397 ac_status=$?
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); }; } &&
32400 { ac_try='test -s conftest.$ac_objext'
32401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32402 (eval $ac_try) 2>&5
32403 ac_status=$?
32404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32405 (exit $ac_status); }; }; then
32406 wx_cv_func_broken_vsnprintf_decl=no
32407else
32408 echo "$as_me: failed program was:" >&5
32409sed 's/^/| /' conftest.$ac_ext >&5
32410
32411wx_cv_func_broken_vsnprintf_decl=yes
32412
32413fi
32414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32415
32416
32417fi
32418echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
32419echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
32420
32421 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
32422 cat >>confdefs.h <<\_ACEOF
32423#define HAVE_BROKEN_VSNPRINTF_DECL 1
32424_ACEOF
32425
32426 fi
a848cd7e
SC
32427 fi
32428fi
32429
4a767dd5
VZ
32430if test "$ac_cv_func_snprintf" = "yes"; then
32431 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
32432echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
32433if test "${wx_cv_func_snprintf_decl+set}" = set; then
32434 echo $ECHO_N "(cached) $ECHO_C" >&6
32435else
32436
32437 cat >conftest.$ac_ext <<_ACEOF
32438/* confdefs.h. */
32439_ACEOF
32440cat confdefs.h >>conftest.$ac_ext
32441cat >>conftest.$ac_ext <<_ACEOF
32442/* end confdefs.h. */
32443
32444 #include <stdio.h>
32445 #include <stdarg.h>
32446 #ifdef __MSL__
32447 #if __MSL__ >= 0x6000
32448 namespace std {}
32449 using namespace std;
32450 #endif
32451 #endif
32452
32453int
32454main ()
32455{
32456
32457 char *buf;
62fa8b3a 32458 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
32459
32460 ;
32461 return 0;
32462}
32463_ACEOF
32464rm -f conftest.$ac_objext
32465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32466 (eval $ac_compile) 2>conftest.er1
32467 ac_status=$?
32468 grep -v '^ *+' conftest.er1 >conftest.err
32469 rm -f conftest.er1
32470 cat conftest.err >&5
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); } &&
32473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32475 (eval $ac_try) 2>&5
32476 ac_status=$?
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); }; } &&
32479 { ac_try='test -s conftest.$ac_objext'
32480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32481 (eval $ac_try) 2>&5
32482 ac_status=$?
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); }; }; then
32485 wx_cv_func_snprintf_decl=yes
32486else
32487 echo "$as_me: failed program was:" >&5
32488sed 's/^/| /' conftest.$ac_ext >&5
32489
32490wx_cv_func_snprintf_decl=no
32491
32492fi
32493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32494
32495
32496fi
32497echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
32498echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
32499
32500 if test "$wx_cv_func_snprintf_decl" = "yes"; then
32501 cat >>confdefs.h <<\_ACEOF
32502#define HAVE_SNPRINTF_DECL 1
32503_ACEOF
32504
62fa8b3a
MW
32505
32506 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
32507echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
32508if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
32509 echo $ECHO_N "(cached) $ECHO_C" >&6
32510else
32511
32512 cat >conftest.$ac_ext <<_ACEOF
32513/* confdefs.h. */
32514_ACEOF
32515cat confdefs.h >>conftest.$ac_ext
32516cat >>conftest.$ac_ext <<_ACEOF
32517/* end confdefs.h. */
32518
32519 #include <stdio.h>
32520 #include <stdarg.h>
32521 #ifdef __MSL__
32522 #if __MSL__ >= 0x6000
32523 namespace std {}
32524 using namespace std;
32525 #endif
32526 #endif
32527
32528int
32529main ()
32530{
32531
32532 char *buf;
32533 const char *fmt = "%s";
32534 snprintf(buf, 10u, fmt, "wx");
32535
32536 ;
32537 return 0;
32538}
32539_ACEOF
32540rm -f conftest.$ac_objext
32541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32542 (eval $ac_compile) 2>conftest.er1
32543 ac_status=$?
32544 grep -v '^ *+' conftest.er1 >conftest.err
32545 rm -f conftest.er1
32546 cat conftest.err >&5
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); } &&
32549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32551 (eval $ac_try) 2>&5
32552 ac_status=$?
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); }; } &&
32555 { ac_try='test -s conftest.$ac_objext'
32556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32557 (eval $ac_try) 2>&5
32558 ac_status=$?
32559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560 (exit $ac_status); }; }; then
32561 wx_cv_func_broken_snprintf_decl=no
32562else
32563 echo "$as_me: failed program was:" >&5
32564sed 's/^/| /' conftest.$ac_ext >&5
32565
32566wx_cv_func_broken_snprintf_decl=yes
32567
32568fi
32569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32570
32571
32572fi
32573echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
32574echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
32575
32576 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
32577 cat >>confdefs.h <<\_ACEOF
32578#define HAVE_BROKEN_SNPRINTF_DECL 1
32579_ACEOF
32580
32581 fi
4a767dd5
VZ
32582 fi
32583fi
32584
a848cd7e
SC
32585if test "$wxUSE_UNICODE" = yes; then
32586
32587
32588
fbe47c7b
VS
32589
32590
32591
32592for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
32593do
32594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32595echo "$as_me:$LINENO: checking for $ac_func" >&5
32596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32597if eval "test \"\${$as_ac_var+set}\" = set"; then
32598 echo $ECHO_N "(cached) $ECHO_C" >&6
32599else
32600 cat >conftest.$ac_ext <<_ACEOF
32601/* confdefs.h. */
32602_ACEOF
32603cat confdefs.h >>conftest.$ac_ext
32604cat >>conftest.$ac_ext <<_ACEOF
32605/* end confdefs.h. */
ac1cb8d3
VS
32606/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32608#define $ac_func innocuous_$ac_func
32609
a848cd7e
SC
32610/* System header to define __stub macros and hopefully few prototypes,
32611 which can conflict with char $ac_func (); below.
32612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32613 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32614
a848cd7e
SC
32615#ifdef __STDC__
32616# include <limits.h>
32617#else
32618# include <assert.h>
32619#endif
ac1cb8d3
VS
32620
32621#undef $ac_func
32622
a848cd7e
SC
32623/* Override any gcc2 internal prototype to avoid an error. */
32624#ifdef __cplusplus
32625extern "C"
32626{
32627#endif
32628/* We use char because int might match the return type of a gcc2
32629 builtin and then its argument prototype would still apply. */
32630char $ac_func ();
32631/* The GNU C library defines this for functions which it implements
32632 to always fail with ENOSYS. Some functions are actually named
32633 something starting with __ and the normal name is an alias. */
32634#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32635choke me
32636#else
32637char (*f) () = $ac_func;
32638#endif
32639#ifdef __cplusplus
32640}
32641#endif
32642
32643int
32644main ()
32645{
32646return f != $ac_func;
32647 ;
32648 return 0;
32649}
32650_ACEOF
32651rm -f conftest.$ac_objext conftest$ac_exeext
32652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32653 (eval $ac_link) 2>conftest.er1
a848cd7e 32654 ac_status=$?
ac1cb8d3
VS
32655 grep -v '^ *+' conftest.er1 >conftest.err
32656 rm -f conftest.er1
32657 cat conftest.err >&5
a848cd7e
SC
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); } &&
6ebeb4c7 32660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662 (eval $ac_try) 2>&5
32663 ac_status=$?
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); }; } &&
32666 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32668 (eval $ac_try) 2>&5
32669 ac_status=$?
32670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671 (exit $ac_status); }; }; then
32672 eval "$as_ac_var=yes"
32673else
32674 echo "$as_me: failed program was:" >&5
32675sed 's/^/| /' conftest.$ac_ext >&5
32676
32677eval "$as_ac_var=no"
32678fi
ac1cb8d3
VS
32679rm -f conftest.err conftest.$ac_objext \
32680 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32681fi
32682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32683echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32684if test `eval echo '${'$as_ac_var'}'` = yes; then
32685 cat >>confdefs.h <<_ACEOF
32686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32687_ACEOF
32688
32689fi
32690done
32691
32692
32693 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
32694echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
32695 cat >conftest.$ac_ext <<_ACEOF
32696/* confdefs.h. */
32697_ACEOF
32698cat confdefs.h >>conftest.$ac_ext
32699cat >>conftest.$ac_ext <<_ACEOF
32700/* end confdefs.h. */
32701#include <wchar.h>
32702int
32703main ()
32704{
32705&_vsnwprintf;
32706 ;
32707 return 0;
32708}
32709_ACEOF
32710rm -f conftest.$ac_objext
32711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32712 (eval $ac_compile) 2>conftest.er1
a848cd7e 32713 ac_status=$?
ac1cb8d3
VS
32714 grep -v '^ *+' conftest.er1 >conftest.err
32715 rm -f conftest.er1
32716 cat conftest.err >&5
a848cd7e
SC
32717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718 (exit $ac_status); } &&
6ebeb4c7 32719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32721 (eval $ac_try) 2>&5
32722 ac_status=$?
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); }; } &&
32725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32727 (eval $ac_try) 2>&5
32728 ac_status=$?
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); }; }; then
32731 echo "$as_me:$LINENO: result: yes" >&5
32732echo "${ECHO_T}yes" >&6
32733 cat >>confdefs.h <<\_ACEOF
32734#define HAVE__VSNWPRINTF 1
32735_ACEOF
32736
32737else
32738 echo "$as_me: failed program was:" >&5
32739sed 's/^/| /' conftest.$ac_ext >&5
32740
32741echo "$as_me:$LINENO: result: no" >&5
32742echo "${ECHO_T}no" >&6
32743fi
ac1cb8d3 32744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
32745fi
32746
32747ac_ext=c
32748ac_cpp='$CPP $CPPFLAGS'
32749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32751ac_compiler_gnu=$ac_cv_c_compiler_gnu
32752
32753
6ebeb4c7
VZ
32754if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
32755
32756for ac_func in fnmatch
32757do
32758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32759echo "$as_me:$LINENO: checking for $ac_func" >&5
32760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32761if eval "test \"\${$as_ac_var+set}\" = set"; then
32762 echo $ECHO_N "(cached) $ECHO_C" >&6
32763else
32764 cat >conftest.$ac_ext <<_ACEOF
32765/* confdefs.h. */
32766_ACEOF
32767cat confdefs.h >>conftest.$ac_ext
32768cat >>conftest.$ac_ext <<_ACEOF
32769/* end confdefs.h. */
32770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32772#define $ac_func innocuous_$ac_func
32773
32774/* System header to define __stub macros and hopefully few prototypes,
32775 which can conflict with char $ac_func (); below.
32776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32777 <limits.h> exists even on freestanding compilers. */
32778
32779#ifdef __STDC__
32780# include <limits.h>
32781#else
32782# include <assert.h>
32783#endif
32784
32785#undef $ac_func
32786
32787/* Override any gcc2 internal prototype to avoid an error. */
32788#ifdef __cplusplus
32789extern "C"
32790{
32791#endif
32792/* We use char because int might match the return type of a gcc2
32793 builtin and then its argument prototype would still apply. */
32794char $ac_func ();
32795/* The GNU C library defines this for functions which it implements
32796 to always fail with ENOSYS. Some functions are actually named
32797 something starting with __ and the normal name is an alias. */
32798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32799choke me
32800#else
32801char (*f) () = $ac_func;
32802#endif
32803#ifdef __cplusplus
32804}
32805#endif
32806
32807int
32808main ()
32809{
32810return f != $ac_func;
32811 ;
32812 return 0;
32813}
32814_ACEOF
32815rm -f conftest.$ac_objext conftest$ac_exeext
32816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32817 (eval $ac_link) 2>conftest.er1
32818 ac_status=$?
32819 grep -v '^ *+' conftest.er1 >conftest.err
32820 rm -f conftest.er1
32821 cat conftest.err >&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } &&
32824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32826 (eval $ac_try) 2>&5
32827 ac_status=$?
32828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32829 (exit $ac_status); }; } &&
32830 { ac_try='test -s conftest$ac_exeext'
32831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32832 (eval $ac_try) 2>&5
32833 ac_status=$?
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); }; }; then
32836 eval "$as_ac_var=yes"
32837else
32838 echo "$as_me: failed program was:" >&5
32839sed 's/^/| /' conftest.$ac_ext >&5
32840
32841eval "$as_ac_var=no"
32842fi
32843rm -f conftest.err conftest.$ac_objext \
32844 conftest$ac_exeext conftest.$ac_ext
32845fi
32846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32847echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32848if test `eval echo '${'$as_ac_var'}'` = yes; then
32849 cat >>confdefs.h <<_ACEOF
32850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32851_ACEOF
32852
32853fi
32854done
32855
32856fi
32857
32858if test "$wxUSE_FILE" = "yes"; then
32859
32860for ac_func in fsync
32861do
32862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32863echo "$as_me:$LINENO: checking for $ac_func" >&5
32864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32865if eval "test \"\${$as_ac_var+set}\" = set"; then
32866 echo $ECHO_N "(cached) $ECHO_C" >&6
32867else
32868 cat >conftest.$ac_ext <<_ACEOF
32869/* confdefs.h. */
32870_ACEOF
32871cat confdefs.h >>conftest.$ac_ext
32872cat >>conftest.$ac_ext <<_ACEOF
32873/* end confdefs.h. */
32874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32876#define $ac_func innocuous_$ac_func
32877
32878/* System header to define __stub macros and hopefully few prototypes,
32879 which can conflict with char $ac_func (); below.
32880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32881 <limits.h> exists even on freestanding compilers. */
32882
32883#ifdef __STDC__
32884# include <limits.h>
32885#else
32886# include <assert.h>
32887#endif
32888
32889#undef $ac_func
32890
32891/* Override any gcc2 internal prototype to avoid an error. */
32892#ifdef __cplusplus
32893extern "C"
32894{
32895#endif
32896/* We use char because int might match the return type of a gcc2
32897 builtin and then its argument prototype would still apply. */
32898char $ac_func ();
32899/* The GNU C library defines this for functions which it implements
32900 to always fail with ENOSYS. Some functions are actually named
32901 something starting with __ and the normal name is an alias. */
32902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32903choke me
32904#else
32905char (*f) () = $ac_func;
32906#endif
32907#ifdef __cplusplus
32908}
32909#endif
32910
32911int
32912main ()
32913{
32914return f != $ac_func;
32915 ;
32916 return 0;
32917}
32918_ACEOF
32919rm -f conftest.$ac_objext conftest$ac_exeext
32920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32921 (eval $ac_link) 2>conftest.er1
32922 ac_status=$?
32923 grep -v '^ *+' conftest.er1 >conftest.err
32924 rm -f conftest.er1
32925 cat conftest.err >&5
32926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32927 (exit $ac_status); } &&
32928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32930 (eval $ac_try) 2>&5
32931 ac_status=$?
32932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 (exit $ac_status); }; } &&
32934 { ac_try='test -s conftest$ac_exeext'
32935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32936 (eval $ac_try) 2>&5
32937 ac_status=$?
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); }; }; then
32940 eval "$as_ac_var=yes"
32941else
32942 echo "$as_me: failed program was:" >&5
32943sed 's/^/| /' conftest.$ac_ext >&5
32944
32945eval "$as_ac_var=no"
32946fi
32947rm -f conftest.err conftest.$ac_objext \
32948 conftest$ac_exeext conftest.$ac_ext
32949fi
32950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32951echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32952if test `eval echo '${'$as_ac_var'}'` = yes; then
32953 cat >>confdefs.h <<_ACEOF
32954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32955_ACEOF
32956
32957fi
32958done
32959
32960fi
a848cd7e
SC
32961
32962
32963if test "$TOOLKIT" != "MSW"; then
32964
32965
32966
32967
32968ac_ext=cc
32969ac_cpp='$CXXCPP $CPPFLAGS'
32970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32973
32974
32975
32976
32977# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
32978if test "${with_libiconv_prefix+set}" = set; then
32979 withval="$with_libiconv_prefix"
32980
32981 for dir in `echo "$withval" | tr : ' '`; do
32982 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
32983 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
32984 done
32985
32986fi;
32987
32988 echo "$as_me:$LINENO: checking for iconv" >&5
32989echo $ECHO_N "checking for iconv... $ECHO_C" >&6
32990if test "${am_cv_func_iconv+set}" = set; then
32991 echo $ECHO_N "(cached) $ECHO_C" >&6
32992else
32993
32994 am_cv_func_iconv="no, consider installing GNU libiconv"
32995 am_cv_lib_iconv=no
32996 cat >conftest.$ac_ext <<_ACEOF
32997/* confdefs.h. */
32998_ACEOF
32999cat confdefs.h >>conftest.$ac_ext
33000cat >>conftest.$ac_ext <<_ACEOF
33001/* end confdefs.h. */
33002#include <stdlib.h>
33003#include <iconv.h>
33004int
33005main ()
33006{
33007iconv_t cd = iconv_open("","");
33008 iconv(cd,NULL,NULL,NULL,NULL);
33009 iconv_close(cd);
33010 ;
33011 return 0;
33012}
33013_ACEOF
33014rm -f conftest.$ac_objext conftest$ac_exeext
33015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33016 (eval $ac_link) 2>conftest.er1
a848cd7e 33017 ac_status=$?
ac1cb8d3
VS
33018 grep -v '^ *+' conftest.er1 >conftest.err
33019 rm -f conftest.er1
33020 cat conftest.err >&5
a848cd7e
SC
33021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022 (exit $ac_status); } &&
6ebeb4c7 33023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33025 (eval $ac_try) 2>&5
33026 ac_status=$?
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); }; } &&
33029 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33031 (eval $ac_try) 2>&5
33032 ac_status=$?
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); }; }; then
33035 am_cv_func_iconv=yes
33036else
33037 echo "$as_me: failed program was:" >&5
33038sed 's/^/| /' conftest.$ac_ext >&5
33039
33040fi
ac1cb8d3
VS
33041rm -f conftest.err conftest.$ac_objext \
33042 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33043 if test "$am_cv_func_iconv" != yes; then
33044 am_save_LIBS="$LIBS"
33045 LIBS="$LIBS -liconv"
33046 cat >conftest.$ac_ext <<_ACEOF
33047/* confdefs.h. */
33048_ACEOF
33049cat confdefs.h >>conftest.$ac_ext
33050cat >>conftest.$ac_ext <<_ACEOF
33051/* end confdefs.h. */
33052#include <stdlib.h>
33053#include <iconv.h>
33054int
33055main ()
33056{
33057iconv_t cd = iconv_open("","");
33058 iconv(cd,NULL,NULL,NULL,NULL);
33059 iconv_close(cd);
33060 ;
33061 return 0;
33062}
33063_ACEOF
33064rm -f conftest.$ac_objext conftest$ac_exeext
33065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33066 (eval $ac_link) 2>conftest.er1
a848cd7e 33067 ac_status=$?
ac1cb8d3
VS
33068 grep -v '^ *+' conftest.er1 >conftest.err
33069 rm -f conftest.er1
33070 cat conftest.err >&5
a848cd7e
SC
33071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072 (exit $ac_status); } &&
6ebeb4c7 33073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33075 (eval $ac_try) 2>&5
33076 ac_status=$?
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); }; } &&
33079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33081 (eval $ac_try) 2>&5
33082 ac_status=$?
33083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084 (exit $ac_status); }; }; then
33085 am_cv_lib_iconv=yes
33086 am_cv_func_iconv=yes
33087else
33088 echo "$as_me: failed program was:" >&5
33089sed 's/^/| /' conftest.$ac_ext >&5
33090
33091fi
ac1cb8d3
VS
33092rm -f conftest.err conftest.$ac_objext \
33093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33094 LIBS="$am_save_LIBS"
33095 fi
33096
33097fi
33098echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33099echo "${ECHO_T}$am_cv_func_iconv" >&6
33100 if test "$am_cv_func_iconv" = yes; then
33101
33102cat >>confdefs.h <<\_ACEOF
33103#define HAVE_ICONV 1
33104_ACEOF
33105
33106 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33107echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33108if test "${wx_cv_func_iconv_const+set}" = set; then
33109 echo $ECHO_N "(cached) $ECHO_C" >&6
33110else
33111 cat >conftest.$ac_ext <<_ACEOF
33112/* confdefs.h. */
33113_ACEOF
33114cat confdefs.h >>conftest.$ac_ext
33115cat >>conftest.$ac_ext <<_ACEOF
33116/* end confdefs.h. */
33117
33118#include <stdlib.h>
33119#include <iconv.h>
33120extern
33121#ifdef __cplusplus
33122"C"
33123#endif
33124#if defined(__STDC__) || defined(__cplusplus)
33125size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33126#else
33127size_t iconv();
33128#endif
33129
33130int
33131main ()
33132{
33133
33134 ;
33135 return 0;
33136}
33137_ACEOF
33138rm -f conftest.$ac_objext
33139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33140 (eval $ac_compile) 2>conftest.er1
a848cd7e 33141 ac_status=$?
ac1cb8d3
VS
33142 grep -v '^ *+' conftest.er1 >conftest.err
33143 rm -f conftest.er1
33144 cat conftest.err >&5
a848cd7e
SC
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); } &&
6ebeb4c7 33147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33149 (eval $ac_try) 2>&5
33150 ac_status=$?
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); }; } &&
33153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33155 (eval $ac_try) 2>&5
33156 ac_status=$?
33157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158 (exit $ac_status); }; }; then
33159 wx_cv_func_iconv_const="no"
33160else
33161 echo "$as_me: failed program was:" >&5
33162sed 's/^/| /' conftest.$ac_ext >&5
33163
33164wx_cv_func_iconv_const="yes"
33165
33166fi
ac1cb8d3 33167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33168
33169fi
33170echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33171echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33172
33173 iconv_const=
33174 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33175 iconv_const="const"
33176 fi
33177
33178
33179cat >>confdefs.h <<_ACEOF
33180#define ICONV_CONST $iconv_const
33181_ACEOF
33182
33183 fi
33184 LIBICONV=
33185 if test "$am_cv_lib_iconv" = yes; then
33186 LIBICONV="-liconv"
33187 fi
33188
33189
33190LIBS="$LIBICONV $LIBS"
33191ac_ext=c
33192ac_cpp='$CPP $CPPFLAGS'
33193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33195ac_compiler_gnu=$ac_cv_c_compiler_gnu
33196
33197
33198if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33199
33200for ac_func in sigaction
33201do
33202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33203echo "$as_me:$LINENO: checking for $ac_func" >&5
33204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33205if eval "test \"\${$as_ac_var+set}\" = set"; then
33206 echo $ECHO_N "(cached) $ECHO_C" >&6
33207else
33208 cat >conftest.$ac_ext <<_ACEOF
33209/* confdefs.h. */
33210_ACEOF
33211cat confdefs.h >>conftest.$ac_ext
33212cat >>conftest.$ac_ext <<_ACEOF
33213/* end confdefs.h. */
ac1cb8d3
VS
33214/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33216#define $ac_func innocuous_$ac_func
33217
a848cd7e
SC
33218/* System header to define __stub macros and hopefully few prototypes,
33219 which can conflict with char $ac_func (); below.
33220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33221 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33222
a848cd7e
SC
33223#ifdef __STDC__
33224# include <limits.h>
33225#else
33226# include <assert.h>
33227#endif
ac1cb8d3
VS
33228
33229#undef $ac_func
33230
a848cd7e
SC
33231/* Override any gcc2 internal prototype to avoid an error. */
33232#ifdef __cplusplus
33233extern "C"
33234{
33235#endif
33236/* We use char because int might match the return type of a gcc2
33237 builtin and then its argument prototype would still apply. */
33238char $ac_func ();
33239/* The GNU C library defines this for functions which it implements
33240 to always fail with ENOSYS. Some functions are actually named
33241 something starting with __ and the normal name is an alias. */
33242#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33243choke me
33244#else
33245char (*f) () = $ac_func;
33246#endif
33247#ifdef __cplusplus
33248}
33249#endif
33250
33251int
33252main ()
33253{
33254return f != $ac_func;
33255 ;
33256 return 0;
33257}
33258_ACEOF
33259rm -f conftest.$ac_objext conftest$ac_exeext
33260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33261 (eval $ac_link) 2>conftest.er1
a848cd7e 33262 ac_status=$?
ac1cb8d3
VS
33263 grep -v '^ *+' conftest.er1 >conftest.err
33264 rm -f conftest.er1
33265 cat conftest.err >&5
a848cd7e
SC
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); } &&
6ebeb4c7 33268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33270 (eval $ac_try) 2>&5
33271 ac_status=$?
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); }; } &&
33274 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33276 (eval $ac_try) 2>&5
33277 ac_status=$?
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); }; }; then
33280 eval "$as_ac_var=yes"
33281else
33282 echo "$as_me: failed program was:" >&5
33283sed 's/^/| /' conftest.$ac_ext >&5
33284
33285eval "$as_ac_var=no"
33286fi
ac1cb8d3
VS
33287rm -f conftest.err conftest.$ac_objext \
33288 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33289fi
33290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33291echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33292if test `eval echo '${'$as_ac_var'}'` = yes; then
33293 cat >>confdefs.h <<_ACEOF
33294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33295_ACEOF
33296
33297fi
33298done
33299
33300
33301 if test "$ac_cv_func_sigaction" = "no"; then
33302 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
33303echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
33304 wxUSE_ON_FATAL_EXCEPTION=no
33305 fi
33306
33307 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
33308
33309
33310 ac_ext=cc
33311ac_cpp='$CXXCPP $CPPFLAGS'
33312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33315
33316
33317 echo "$as_me:$LINENO: checking for sa_handler type" >&5
33318echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
33319if test "${wx_cv_type_sa_handler+set}" = set; then
33320 echo $ECHO_N "(cached) $ECHO_C" >&6
33321else
33322
33323 cat >conftest.$ac_ext <<_ACEOF
33324/* confdefs.h. */
33325_ACEOF
33326cat confdefs.h >>conftest.$ac_ext
33327cat >>conftest.$ac_ext <<_ACEOF
33328/* end confdefs.h. */
33329#include <signal.h>
33330int
33331main ()
33332{
33333
33334 extern void testSigHandler(int);
33335
33336 struct sigaction sa;
33337 sa.sa_handler = testSigHandler;
33338
33339 ;
33340 return 0;
33341}
33342_ACEOF
33343rm -f conftest.$ac_objext
33344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33345 (eval $ac_compile) 2>conftest.er1
a848cd7e 33346 ac_status=$?
ac1cb8d3
VS
33347 grep -v '^ *+' conftest.er1 >conftest.err
33348 rm -f conftest.er1
33349 cat conftest.err >&5
a848cd7e
SC
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); } &&
6ebeb4c7 33352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33354 (eval $ac_try) 2>&5
33355 ac_status=$?
33356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357 (exit $ac_status); }; } &&
33358 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33360 (eval $ac_try) 2>&5
33361 ac_status=$?
33362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363 (exit $ac_status); }; }; then
33364
33365 wx_cv_type_sa_handler=int
33366
33367else
33368 echo "$as_me: failed program was:" >&5
33369sed 's/^/| /' conftest.$ac_ext >&5
33370
33371
33372 wx_cv_type_sa_handler=void
33373
33374fi
ac1cb8d3 33375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33376
33377fi
33378echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
33379echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
33380
33381 ac_ext=c
33382ac_cpp='$CPP $CPPFLAGS'
33383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33385ac_compiler_gnu=$ac_cv_c_compiler_gnu
33386
33387
33388 cat >>confdefs.h <<_ACEOF
33389#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
33390_ACEOF
33391
33392 fi
33393fi
33394
eaff0f0d
VZ
33395if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33396
33397
33398 ac_ext=cc
33399ac_cpp='$CXXCPP $CPPFLAGS'
33400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33403
33404
33405 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
33406echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
33407if test "${wx_cv_func_backtrace+set}" = set; then
33408 echo $ECHO_N "(cached) $ECHO_C" >&6
33409else
33410
33411 cat >conftest.$ac_ext <<_ACEOF
33412/* confdefs.h. */
33413_ACEOF
33414cat confdefs.h >>conftest.$ac_ext
33415cat >>conftest.$ac_ext <<_ACEOF
33416/* end confdefs.h. */
33417#include <execinfo.h>
33418int
33419main ()
33420{
33421
33422 void *trace[1];
33423 char **messages;
33424
33425 backtrace(trace, 1);
33426 messages = backtrace_symbols(trace, 1);
33427
33428 ;
33429 return 0;
33430}
33431_ACEOF
33432rm -f conftest.$ac_objext
33433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33434 (eval $ac_compile) 2>conftest.er1
33435 ac_status=$?
33436 grep -v '^ *+' conftest.er1 >conftest.err
33437 rm -f conftest.er1
33438 cat conftest.err >&5
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); } &&
6ebeb4c7 33441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33443 (eval $ac_try) 2>&5
33444 ac_status=$?
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; } &&
33447 { ac_try='test -s conftest.$ac_objext'
33448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33449 (eval $ac_try) 2>&5
33450 ac_status=$?
33451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452 (exit $ac_status); }; }; then
33453 wx_cv_func_backtrace=yes
33454else
33455 echo "$as_me: failed program was:" >&5
33456sed 's/^/| /' conftest.$ac_ext >&5
33457
33458wx_cv_func_backtrace=no
33459
33460fi
33461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33462
33463
33464fi
33465echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
33466echo "${ECHO_T}$wx_cv_func_backtrace" >&6
33467
33468
33469 if test "$wx_cv_func_backtrace" = "no"; then
33470 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
33471echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
33472 wxUSE_STACKWALKER=no
33473 else
33474 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
33475echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
33476if test "${wx_cv_func_cxa_demangle+set}" = set; then
33477 echo $ECHO_N "(cached) $ECHO_C" >&6
33478else
33479
33480 cat >conftest.$ac_ext <<_ACEOF
33481/* confdefs.h. */
33482_ACEOF
33483cat confdefs.h >>conftest.$ac_ext
33484cat >>conftest.$ac_ext <<_ACEOF
33485/* end confdefs.h. */
33486#include <cxxabi.h>
33487int
33488main ()
33489{
33490
33491 int rc;
33492 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
33493
33494 ;
33495 return 0;
33496}
33497_ACEOF
dfe0c803
JS
33498rm -f conftest.$ac_objext conftest$ac_exeext
33499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33500 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
33501 ac_status=$?
33502 grep -v '^ *+' conftest.er1 >conftest.err
33503 rm -f conftest.er1
33504 cat conftest.err >&5
33505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33506 (exit $ac_status); } &&
6ebeb4c7 33507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33509 (eval $ac_try) 2>&5
33510 ac_status=$?
33511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512 (exit $ac_status); }; } &&
dfe0c803 33513 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
33514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33515 (eval $ac_try) 2>&5
33516 ac_status=$?
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); }; }; then
33519 wx_cv_func_cxa_demangle=yes
33520else
33521 echo "$as_me: failed program was:" >&5
33522sed 's/^/| /' conftest.$ac_ext >&5
33523
33524wx_cv_func_cxa_demangle=no
33525
33526fi
dfe0c803
JS
33527rm -f conftest.err conftest.$ac_objext \
33528 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
33529
33530
33531fi
33532echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
33533echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
33534
33535 if test "$wx_cv_func_cxa_demangle" = "yes"; then
33536 cat >>confdefs.h <<\_ACEOF
33537#define HAVE_CXA_DEMANGLE 1
33538_ACEOF
33539
33540 fi
33541 fi
33542
33543 ac_ext=c
33544ac_cpp='$CPP $CPPFLAGS'
33545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33547ac_compiler_gnu=$ac_cv_c_compiler_gnu
33548
33549fi
33550
898beab1
DE
33551if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
33552 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
33553echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
33554 wxUSE_STACKWALKER=no
33555fi
33556
33557
a848cd7e
SC
33558
33559
33560for ac_func in mkstemp mktemp
33561do
33562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33563echo "$as_me:$LINENO: checking for $ac_func" >&5
33564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33565if eval "test \"\${$as_ac_var+set}\" = set"; then
33566 echo $ECHO_N "(cached) $ECHO_C" >&6
33567else
33568 cat >conftest.$ac_ext <<_ACEOF
33569/* confdefs.h. */
33570_ACEOF
33571cat confdefs.h >>conftest.$ac_ext
33572cat >>conftest.$ac_ext <<_ACEOF
33573/* end confdefs.h. */
ac1cb8d3
VS
33574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33576#define $ac_func innocuous_$ac_func
33577
a848cd7e
SC
33578/* System header to define __stub macros and hopefully few prototypes,
33579 which can conflict with char $ac_func (); below.
33580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33581 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33582
a848cd7e
SC
33583#ifdef __STDC__
33584# include <limits.h>
33585#else
33586# include <assert.h>
33587#endif
ac1cb8d3
VS
33588
33589#undef $ac_func
33590
a848cd7e
SC
33591/* Override any gcc2 internal prototype to avoid an error. */
33592#ifdef __cplusplus
33593extern "C"
33594{
33595#endif
33596/* We use char because int might match the return type of a gcc2
33597 builtin and then its argument prototype would still apply. */
33598char $ac_func ();
33599/* The GNU C library defines this for functions which it implements
33600 to always fail with ENOSYS. Some functions are actually named
33601 something starting with __ and the normal name is an alias. */
33602#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33603choke me
33604#else
33605char (*f) () = $ac_func;
33606#endif
33607#ifdef __cplusplus
33608}
33609#endif
33610
33611int
33612main ()
33613{
33614return f != $ac_func;
33615 ;
33616 return 0;
33617}
33618_ACEOF
33619rm -f conftest.$ac_objext conftest$ac_exeext
33620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33621 (eval $ac_link) 2>conftest.er1
a848cd7e 33622 ac_status=$?
ac1cb8d3
VS
33623 grep -v '^ *+' conftest.er1 >conftest.err
33624 rm -f conftest.er1
33625 cat conftest.err >&5
a848cd7e
SC
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); } &&
6ebeb4c7 33628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33630 (eval $ac_try) 2>&5
33631 ac_status=$?
33632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633 (exit $ac_status); }; } &&
33634 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33636 (eval $ac_try) 2>&5
33637 ac_status=$?
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); }; }; then
33640 eval "$as_ac_var=yes"
33641else
33642 echo "$as_me: failed program was:" >&5
33643sed 's/^/| /' conftest.$ac_ext >&5
33644
33645eval "$as_ac_var=no"
33646fi
ac1cb8d3
VS
33647rm -f conftest.err conftest.$ac_objext \
33648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33649fi
33650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33651echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33652if test `eval echo '${'$as_ac_var'}'` = yes; then
33653 cat >>confdefs.h <<_ACEOF
33654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33655_ACEOF
33656 break
33657fi
33658done
33659
33660
33661echo "$as_me:$LINENO: checking for statfs" >&5
33662echo $ECHO_N "checking for statfs... $ECHO_C" >&6
33663if test "${wx_cv_func_statfs+set}" = set; then
33664 echo $ECHO_N "(cached) $ECHO_C" >&6
33665else
33666 cat >conftest.$ac_ext <<_ACEOF
33667/* confdefs.h. */
33668_ACEOF
33669cat confdefs.h >>conftest.$ac_ext
33670cat >>conftest.$ac_ext <<_ACEOF
33671/* end confdefs.h. */
33672
33673 #if defined(__BSD__)
84ae7ca4
VZ
33674 #include <sys/param.h>
33675 #include <sys/mount.h>
a848cd7e 33676 #else
84ae7ca4 33677 #include <sys/vfs.h>
a848cd7e
SC
33678 #endif
33679
33680int
33681main ()
33682{
33683
33684 long l;
33685 struct statfs fs;
33686 statfs("/", &fs);
33687 l = fs.f_bsize;
33688 l += fs.f_blocks;
33689 l += fs.f_bavail;
33690
33691 ;
33692 return 0;
33693}
33694_ACEOF
33695rm -f conftest.$ac_objext
33696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33697 (eval $ac_compile) 2>conftest.er1
a848cd7e 33698 ac_status=$?
ac1cb8d3
VS
33699 grep -v '^ *+' conftest.er1 >conftest.err
33700 rm -f conftest.er1
33701 cat conftest.err >&5
a848cd7e
SC
33702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33703 (exit $ac_status); } &&
6ebeb4c7 33704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33706 (eval $ac_try) 2>&5
33707 ac_status=$?
33708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33709 (exit $ac_status); }; } &&
33710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33712 (eval $ac_try) 2>&5
33713 ac_status=$?
33714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715 (exit $ac_status); }; }; then
84ae7ca4 33716 wx_cv_func_statfs=yes
a848cd7e
SC
33717else
33718 echo "$as_me: failed program was:" >&5
33719sed 's/^/| /' conftest.$ac_ext >&5
33720
84ae7ca4 33721wx_cv_func_statfs=no
a848cd7e
SC
33722
33723fi
ac1cb8d3 33724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33725
33726fi
33727echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
33728echo "${ECHO_T}$wx_cv_func_statfs" >&6
33729
33730if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
33731
33732
33733 ac_ext=cc
33734ac_cpp='$CXXCPP $CPPFLAGS'
33735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33738
33739 echo "$as_me:$LINENO: checking for statfs declaration" >&5
33740echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
33741if test "${wx_cv_func_statfs_decl+set}" = set; then
33742 echo $ECHO_N "(cached) $ECHO_C" >&6
33743else
0683aca6
VZ
33744 cat >conftest.$ac_ext <<_ACEOF
33745/* confdefs.h. */
33746_ACEOF
33747cat confdefs.h >>conftest.$ac_ext
33748cat >>conftest.$ac_ext <<_ACEOF
33749/* end confdefs.h. */
84ae7ca4 33750
0683aca6
VZ
33751 #if defined(__BSD__)
33752 #include <sys/param.h>
33753 #include <sys/mount.h>
33754 #else
33755 #include <sys/vfs.h>
33756 #endif
33757
33758int
33759main ()
33760{
33761
33762 struct statfs fs;
33763 statfs("", &fs);
33764
33765 ;
33766 return 0;
33767}
33768_ACEOF
33769rm -f conftest.$ac_objext
33770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33771 (eval $ac_compile) 2>conftest.er1
33772 ac_status=$?
33773 grep -v '^ *+' conftest.er1 >conftest.err
33774 rm -f conftest.er1
33775 cat conftest.err >&5
33776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33777 (exit $ac_status); } &&
33778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33780 (eval $ac_try) 2>&5
33781 ac_status=$?
33782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33783 (exit $ac_status); }; } &&
33784 { ac_try='test -s conftest.$ac_objext'
33785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33786 (eval $ac_try) 2>&5
33787 ac_status=$?
33788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789 (exit $ac_status); }; }; then
33790 wx_cv_func_statfs_decl=yes
33791else
33792 echo "$as_me: failed program was:" >&5
33793sed 's/^/| /' conftest.$ac_ext >&5
33794
33795wx_cv_func_statfs_decl=no
33796
33797fi
33798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
33799
33800fi
33801echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
33802echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
33803 ac_ext=c
33804ac_cpp='$CPP $CPPFLAGS'
33805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33807ac_compiler_gnu=$ac_cv_c_compiler_gnu
33808
33809
33810 if test "$wx_cv_func_statfs_decl" = "yes"; then
33811 cat >>confdefs.h <<\_ACEOF
33812#define HAVE_STATFS_DECL 1
33813_ACEOF
33814
33815 fi
33816
a848cd7e
SC
33817 wx_cv_type_statvfs_t="struct statfs"
33818 cat >>confdefs.h <<\_ACEOF
33819#define HAVE_STATFS 1
33820_ACEOF
33821
33822else
33823 echo "$as_me:$LINENO: checking for statvfs" >&5
33824echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
33825if test "${wx_cv_func_statvfs+set}" = set; then
33826 echo $ECHO_N "(cached) $ECHO_C" >&6
33827else
33828 cat >conftest.$ac_ext <<_ACEOF
33829/* confdefs.h. */
33830_ACEOF
33831cat confdefs.h >>conftest.$ac_ext
33832cat >>conftest.$ac_ext <<_ACEOF
33833/* end confdefs.h. */
33834
33835 #include <stddef.h>
33836 #include <sys/statvfs.h>
33837
33838int
33839main ()
33840{
33841
33842 statvfs("/", NULL);
33843
33844 ;
33845 return 0;
33846}
33847_ACEOF
33848rm -f conftest.$ac_objext
33849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33850 (eval $ac_compile) 2>conftest.er1
a848cd7e 33851 ac_status=$?
ac1cb8d3
VS
33852 grep -v '^ *+' conftest.er1 >conftest.err
33853 rm -f conftest.er1
33854 cat conftest.err >&5
a848cd7e
SC
33855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856 (exit $ac_status); } &&
6ebeb4c7 33857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33859 (eval $ac_try) 2>&5
33860 ac_status=$?
33861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862 (exit $ac_status); }; } &&
33863 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33865 (eval $ac_try) 2>&5
33866 ac_status=$?
33867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868 (exit $ac_status); }; }; then
33869 wx_cv_func_statvfs=yes
33870else
33871 echo "$as_me: failed program was:" >&5
33872sed 's/^/| /' conftest.$ac_ext >&5
33873
33874wx_cv_func_statvfs=no
33875
33876fi
ac1cb8d3 33877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33878
33879fi
33880echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
33881echo "${ECHO_T}$wx_cv_func_statvfs" >&6
33882
33883 if test "$wx_cv_func_statvfs" = "yes"; then
33884
33885
33886 ac_ext=cc
33887ac_cpp='$CXXCPP $CPPFLAGS'
33888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33891
33892
33893 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
33894echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
33895if test "${wx_cv_type_statvfs_t+set}" = set; then
33896 echo $ECHO_N "(cached) $ECHO_C" >&6
33897else
33898 cat >conftest.$ac_ext <<_ACEOF
33899/* confdefs.h. */
33900_ACEOF
33901cat confdefs.h >>conftest.$ac_ext
33902cat >>conftest.$ac_ext <<_ACEOF
33903/* end confdefs.h. */
33904
33905 #include <sys/statvfs.h>
33906
33907int
33908main ()
33909{
33910
33911 long l;
33912 statvfs_t fs;
33913 statvfs("/", &fs);
33914 l = fs.f_bsize;
33915 l += fs.f_blocks;
33916 l += fs.f_bavail;
33917
33918 ;
33919 return 0;
33920}
33921_ACEOF
33922rm -f conftest.$ac_objext
33923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33924 (eval $ac_compile) 2>conftest.er1
a848cd7e 33925 ac_status=$?
ac1cb8d3
VS
33926 grep -v '^ *+' conftest.er1 >conftest.err
33927 rm -f conftest.er1
33928 cat conftest.err >&5
a848cd7e
SC
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); } &&
6ebeb4c7 33931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33933 (eval $ac_try) 2>&5
33934 ac_status=$?
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; } &&
33937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33939 (eval $ac_try) 2>&5
33940 ac_status=$?
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); }; }; then
33943 wx_cv_type_statvfs_t=statvfs_t
33944else
33945 echo "$as_me: failed program was:" >&5
33946sed 's/^/| /' conftest.$ac_ext >&5
33947
33948
33949 cat >conftest.$ac_ext <<_ACEOF
33950/* confdefs.h. */
33951_ACEOF
33952cat confdefs.h >>conftest.$ac_ext
33953cat >>conftest.$ac_ext <<_ACEOF
33954/* end confdefs.h. */
33955
33956 #include <sys/statvfs.h>
33957
33958int
33959main ()
33960{
33961
33962 long l;
33963 struct statvfs fs;
33964 statvfs("/", &fs);
33965 l = fs.f_bsize;
33966 l += fs.f_blocks;
33967 l += fs.f_bavail;
33968
33969 ;
33970 return 0;
33971}
33972_ACEOF
33973rm -f conftest.$ac_objext
33974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33975 (eval $ac_compile) 2>conftest.er1
a848cd7e 33976 ac_status=$?
ac1cb8d3
VS
33977 grep -v '^ *+' conftest.er1 >conftest.err
33978 rm -f conftest.er1
33979 cat conftest.err >&5
a848cd7e
SC
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); } &&
6ebeb4c7 33982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33984 (eval $ac_try) 2>&5
33985 ac_status=$?
33986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987 (exit $ac_status); }; } &&
33988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33990 (eval $ac_try) 2>&5
33991 ac_status=$?
33992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993 (exit $ac_status); }; }; then
33994 wx_cv_type_statvfs_t="struct statvfs"
33995else
33996 echo "$as_me: failed program was:" >&5
33997sed 's/^/| /' conftest.$ac_ext >&5
33998
33999wx_cv_type_statvfs_t="unknown"
34000
34001fi
ac1cb8d3 34002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34003
34004
34005fi
ac1cb8d3 34006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34007
34008fi
34009echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34010echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34011
34012 ac_ext=c
34013ac_cpp='$CPP $CPPFLAGS'
34014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34016ac_compiler_gnu=$ac_cv_c_compiler_gnu
34017
34018
34019 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34020 cat >>confdefs.h <<\_ACEOF
34021#define HAVE_STATVFS 1
34022_ACEOF
34023
34024 fi
34025 else
34026 wx_cv_type_statvfs_t="unknown"
34027 fi
34028fi
34029
34030if test "$wx_cv_type_statvfs_t" != "unknown"; then
34031 cat >>confdefs.h <<_ACEOF
34032#define WX_STATFS_T $wx_cv_type_statvfs_t
34033_ACEOF
34034
34035else
34036 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34037echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34038fi
34039
34040if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34041
34042
34043for ac_func in fcntl flock
34044do
34045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34046echo "$as_me:$LINENO: checking for $ac_func" >&5
34047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34048if eval "test \"\${$as_ac_var+set}\" = set"; then
34049 echo $ECHO_N "(cached) $ECHO_C" >&6
34050else
34051 cat >conftest.$ac_ext <<_ACEOF
34052/* confdefs.h. */
34053_ACEOF
34054cat confdefs.h >>conftest.$ac_ext
34055cat >>conftest.$ac_ext <<_ACEOF
34056/* end confdefs.h. */
ac1cb8d3
VS
34057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34059#define $ac_func innocuous_$ac_func
34060
a848cd7e
SC
34061/* System header to define __stub macros and hopefully few prototypes,
34062 which can conflict with char $ac_func (); below.
34063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34064 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34065
a848cd7e
SC
34066#ifdef __STDC__
34067# include <limits.h>
34068#else
34069# include <assert.h>
34070#endif
ac1cb8d3
VS
34071
34072#undef $ac_func
34073
a848cd7e
SC
34074/* Override any gcc2 internal prototype to avoid an error. */
34075#ifdef __cplusplus
34076extern "C"
34077{
34078#endif
34079/* We use char because int might match the return type of a gcc2
34080 builtin and then its argument prototype would still apply. */
34081char $ac_func ();
34082/* The GNU C library defines this for functions which it implements
34083 to always fail with ENOSYS. Some functions are actually named
34084 something starting with __ and the normal name is an alias. */
34085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34086choke me
34087#else
34088char (*f) () = $ac_func;
34089#endif
34090#ifdef __cplusplus
34091}
34092#endif
34093
34094int
34095main ()
34096{
34097return f != $ac_func;
34098 ;
34099 return 0;
34100}
34101_ACEOF
34102rm -f conftest.$ac_objext conftest$ac_exeext
34103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34104 (eval $ac_link) 2>conftest.er1
a848cd7e 34105 ac_status=$?
ac1cb8d3
VS
34106 grep -v '^ *+' conftest.er1 >conftest.err
34107 rm -f conftest.er1
34108 cat conftest.err >&5
a848cd7e
SC
34109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110 (exit $ac_status); } &&
6ebeb4c7 34111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
34117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34119 (eval $ac_try) 2>&5
34120 ac_status=$?
34121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122 (exit $ac_status); }; }; then
34123 eval "$as_ac_var=yes"
34124else
34125 echo "$as_me: failed program was:" >&5
34126sed 's/^/| /' conftest.$ac_ext >&5
34127
34128eval "$as_ac_var=no"
34129fi
ac1cb8d3
VS
34130rm -f conftest.err conftest.$ac_objext \
34131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34132fi
34133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34135if test `eval echo '${'$as_ac_var'}'` = yes; then
34136 cat >>confdefs.h <<_ACEOF
34137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34138_ACEOF
34139 break
34140fi
34141done
34142
34143
34144 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34145 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34146echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34147 wxUSE_SNGLINST_CHECKER=no
34148 fi
34149fi
34150
34151
34152for ac_func in timegm
34153do
34154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34155echo "$as_me:$LINENO: checking for $ac_func" >&5
34156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34157if eval "test \"\${$as_ac_var+set}\" = set"; then
34158 echo $ECHO_N "(cached) $ECHO_C" >&6
34159else
34160 cat >conftest.$ac_ext <<_ACEOF
34161/* confdefs.h. */
34162_ACEOF
34163cat confdefs.h >>conftest.$ac_ext
34164cat >>conftest.$ac_ext <<_ACEOF
34165/* end confdefs.h. */
ac1cb8d3
VS
34166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34168#define $ac_func innocuous_$ac_func
34169
a848cd7e
SC
34170/* System header to define __stub macros and hopefully few prototypes,
34171 which can conflict with char $ac_func (); below.
34172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34173 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34174
a848cd7e
SC
34175#ifdef __STDC__
34176# include <limits.h>
34177#else
34178# include <assert.h>
34179#endif
ac1cb8d3
VS
34180
34181#undef $ac_func
34182
a848cd7e
SC
34183/* Override any gcc2 internal prototype to avoid an error. */
34184#ifdef __cplusplus
34185extern "C"
34186{
34187#endif
34188/* We use char because int might match the return type of a gcc2
34189 builtin and then its argument prototype would still apply. */
34190char $ac_func ();
34191/* The GNU C library defines this for functions which it implements
34192 to always fail with ENOSYS. Some functions are actually named
34193 something starting with __ and the normal name is an alias. */
34194#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34195choke me
34196#else
34197char (*f) () = $ac_func;
34198#endif
34199#ifdef __cplusplus
34200}
34201#endif
34202
34203int
34204main ()
34205{
34206return f != $ac_func;
34207 ;
34208 return 0;
34209}
34210_ACEOF
34211rm -f conftest.$ac_objext conftest$ac_exeext
34212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34213 (eval $ac_link) 2>conftest.er1
a848cd7e 34214 ac_status=$?
ac1cb8d3
VS
34215 grep -v '^ *+' conftest.er1 >conftest.err
34216 rm -f conftest.er1
34217 cat conftest.err >&5
a848cd7e
SC
34218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219 (exit $ac_status); } &&
6ebeb4c7 34220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34222 (eval $ac_try) 2>&5
34223 ac_status=$?
34224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225 (exit $ac_status); }; } &&
34226 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34228 (eval $ac_try) 2>&5
34229 ac_status=$?
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); }; }; then
34232 eval "$as_ac_var=yes"
34233else
34234 echo "$as_me: failed program was:" >&5
34235sed 's/^/| /' conftest.$ac_ext >&5
34236
34237eval "$as_ac_var=no"
34238fi
ac1cb8d3
VS
34239rm -f conftest.err conftest.$ac_objext \
34240 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34241fi
34242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34244if test `eval echo '${'$as_ac_var'}'` = yes; then
34245 cat >>confdefs.h <<_ACEOF
34246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34247_ACEOF
34248
34249fi
34250done
34251
34252
34253
34254
34255for ac_func in putenv setenv
34256do
34257as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34258echo "$as_me:$LINENO: checking for $ac_func" >&5
34259echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34260if eval "test \"\${$as_ac_var+set}\" = set"; then
34261 echo $ECHO_N "(cached) $ECHO_C" >&6
34262else
34263 cat >conftest.$ac_ext <<_ACEOF
34264/* confdefs.h. */
34265_ACEOF
34266cat confdefs.h >>conftest.$ac_ext
34267cat >>conftest.$ac_ext <<_ACEOF
34268/* end confdefs.h. */
ac1cb8d3
VS
34269/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34271#define $ac_func innocuous_$ac_func
34272
a848cd7e
SC
34273/* System header to define __stub macros and hopefully few prototypes,
34274 which can conflict with char $ac_func (); below.
34275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34276 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34277
a848cd7e
SC
34278#ifdef __STDC__
34279# include <limits.h>
34280#else
34281# include <assert.h>
34282#endif
ac1cb8d3
VS
34283
34284#undef $ac_func
34285
a848cd7e
SC
34286/* Override any gcc2 internal prototype to avoid an error. */
34287#ifdef __cplusplus
34288extern "C"
34289{
34290#endif
34291/* We use char because int might match the return type of a gcc2
34292 builtin and then its argument prototype would still apply. */
34293char $ac_func ();
34294/* The GNU C library defines this for functions which it implements
34295 to always fail with ENOSYS. Some functions are actually named
34296 something starting with __ and the normal name is an alias. */
34297#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34298choke me
34299#else
34300char (*f) () = $ac_func;
34301#endif
34302#ifdef __cplusplus
34303}
34304#endif
34305
34306int
34307main ()
34308{
34309return f != $ac_func;
34310 ;
34311 return 0;
34312}
34313_ACEOF
34314rm -f conftest.$ac_objext conftest$ac_exeext
34315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34316 (eval $ac_link) 2>conftest.er1
a848cd7e 34317 ac_status=$?
ac1cb8d3
VS
34318 grep -v '^ *+' conftest.er1 >conftest.err
34319 rm -f conftest.er1
34320 cat conftest.err >&5
a848cd7e
SC
34321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34322 (exit $ac_status); } &&
6ebeb4c7 34323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34325 (eval $ac_try) 2>&5
34326 ac_status=$?
34327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34328 (exit $ac_status); }; } &&
34329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34331 (eval $ac_try) 2>&5
34332 ac_status=$?
34333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334 (exit $ac_status); }; }; then
34335 eval "$as_ac_var=yes"
34336else
34337 echo "$as_me: failed program was:" >&5
34338sed 's/^/| /' conftest.$ac_ext >&5
34339
34340eval "$as_ac_var=no"
34341fi
ac1cb8d3
VS
34342rm -f conftest.err conftest.$ac_objext \
34343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34344fi
34345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34346echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34347if test `eval echo '${'$as_ac_var'}'` = yes; then
34348 cat >>confdefs.h <<_ACEOF
34349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34350_ACEOF
34351 break
34352fi
34353done
34354
34355
34356HAVE_SOME_SLEEP_FUNC=0
34357if test "$USE_BEOS" = 1; then
34358 cat >>confdefs.h <<\_ACEOF
34359#define HAVE_SLEEP 1
34360_ACEOF
34361
34362 HAVE_SOME_SLEEP_FUNC=1
34363fi
34364
34365if test "$USE_DARWIN" = 1; then
34366 cat >>confdefs.h <<\_ACEOF
34367#define HAVE_USLEEP 1
34368_ACEOF
34369
34370 HAVE_SOME_SLEEP_FUNC=1
34371fi
34372
34373if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
34374 POSIX4_LINK=
34375
34376for ac_func in nanosleep
34377do
34378as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34379echo "$as_me:$LINENO: checking for $ac_func" >&5
34380echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34381if eval "test \"\${$as_ac_var+set}\" = set"; then
34382 echo $ECHO_N "(cached) $ECHO_C" >&6
34383else
34384 cat >conftest.$ac_ext <<_ACEOF
34385/* confdefs.h. */
34386_ACEOF
34387cat confdefs.h >>conftest.$ac_ext
34388cat >>conftest.$ac_ext <<_ACEOF
34389/* end confdefs.h. */
ac1cb8d3
VS
34390/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34392#define $ac_func innocuous_$ac_func
34393
a848cd7e
SC
34394/* System header to define __stub macros and hopefully few prototypes,
34395 which can conflict with char $ac_func (); below.
34396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34397 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34398
a848cd7e
SC
34399#ifdef __STDC__
34400# include <limits.h>
34401#else
34402# include <assert.h>
34403#endif
ac1cb8d3
VS
34404
34405#undef $ac_func
34406
a848cd7e
SC
34407/* Override any gcc2 internal prototype to avoid an error. */
34408#ifdef __cplusplus
34409extern "C"
34410{
34411#endif
34412/* We use char because int might match the return type of a gcc2
34413 builtin and then its argument prototype would still apply. */
34414char $ac_func ();
34415/* The GNU C library defines this for functions which it implements
34416 to always fail with ENOSYS. Some functions are actually named
34417 something starting with __ and the normal name is an alias. */
34418#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34419choke me
34420#else
34421char (*f) () = $ac_func;
34422#endif
34423#ifdef __cplusplus
34424}
34425#endif
34426
34427int
34428main ()
34429{
34430return f != $ac_func;
34431 ;
34432 return 0;
34433}
34434_ACEOF
34435rm -f conftest.$ac_objext conftest$ac_exeext
34436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34437 (eval $ac_link) 2>conftest.er1
a848cd7e 34438 ac_status=$?
ac1cb8d3
VS
34439 grep -v '^ *+' conftest.er1 >conftest.err
34440 rm -f conftest.er1
34441 cat conftest.err >&5
a848cd7e
SC
34442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34443 (exit $ac_status); } &&
6ebeb4c7 34444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34446 (eval $ac_try) 2>&5
34447 ac_status=$?
34448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449 (exit $ac_status); }; } &&
34450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34452 (eval $ac_try) 2>&5
34453 ac_status=$?
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); }; }; then
34456 eval "$as_ac_var=yes"
34457else
34458 echo "$as_me: failed program was:" >&5
34459sed 's/^/| /' conftest.$ac_ext >&5
34460
34461eval "$as_ac_var=no"
34462fi
ac1cb8d3
VS
34463rm -f conftest.err conftest.$ac_objext \
34464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34465fi
34466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34467echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34468if test `eval echo '${'$as_ac_var'}'` = yes; then
34469 cat >>confdefs.h <<_ACEOF
34470#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34471_ACEOF
34472 cat >>confdefs.h <<\_ACEOF
34473#define HAVE_NANOSLEEP 1
34474_ACEOF
34475
34476else
34477
34478 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
34479echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
34480if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
34481 echo $ECHO_N "(cached) $ECHO_C" >&6
34482else
34483 ac_check_lib_save_LIBS=$LIBS
34484LIBS="-lposix4 $LIBS"
34485cat >conftest.$ac_ext <<_ACEOF
34486/* confdefs.h. */
34487_ACEOF
34488cat confdefs.h >>conftest.$ac_ext
34489cat >>conftest.$ac_ext <<_ACEOF
34490/* end confdefs.h. */
34491
34492/* Override any gcc2 internal prototype to avoid an error. */
34493#ifdef __cplusplus
34494extern "C"
34495#endif
34496/* We use char because int might match the return type of a gcc2
34497 builtin and then its argument prototype would still apply. */
34498char nanosleep ();
34499int
34500main ()
34501{
34502nanosleep ();
34503 ;
34504 return 0;
34505}
34506_ACEOF
34507rm -f conftest.$ac_objext conftest$ac_exeext
34508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34509 (eval $ac_link) 2>conftest.er1
a848cd7e 34510 ac_status=$?
ac1cb8d3
VS
34511 grep -v '^ *+' conftest.er1 >conftest.err
34512 rm -f conftest.er1
34513 cat conftest.err >&5
a848cd7e
SC
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); } &&
6ebeb4c7 34516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34518 (eval $ac_try) 2>&5
34519 ac_status=$?
34520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521 (exit $ac_status); }; } &&
34522 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34524 (eval $ac_try) 2>&5
34525 ac_status=$?
34526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527 (exit $ac_status); }; }; then
34528 ac_cv_lib_posix4_nanosleep=yes
34529else
34530 echo "$as_me: failed program was:" >&5
34531sed 's/^/| /' conftest.$ac_ext >&5
34532
34533ac_cv_lib_posix4_nanosleep=no
34534fi
ac1cb8d3
VS
34535rm -f conftest.err conftest.$ac_objext \
34536 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34537LIBS=$ac_check_lib_save_LIBS
34538fi
34539echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
34540echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
34541if test $ac_cv_lib_posix4_nanosleep = yes; then
34542
34543 cat >>confdefs.h <<\_ACEOF
34544#define HAVE_NANOSLEEP 1
34545_ACEOF
34546
34547 POSIX4_LINK=" -lposix4"
34548
34549else
34550
34551
34552for ac_func in usleep
34553do
34554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34555echo "$as_me:$LINENO: checking for $ac_func" >&5
34556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34557if eval "test \"\${$as_ac_var+set}\" = set"; then
34558 echo $ECHO_N "(cached) $ECHO_C" >&6
34559else
34560 cat >conftest.$ac_ext <<_ACEOF
34561/* confdefs.h. */
34562_ACEOF
34563cat confdefs.h >>conftest.$ac_ext
34564cat >>conftest.$ac_ext <<_ACEOF
34565/* end confdefs.h. */
ac1cb8d3
VS
34566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34568#define $ac_func innocuous_$ac_func
34569
a848cd7e
SC
34570/* System header to define __stub macros and hopefully few prototypes,
34571 which can conflict with char $ac_func (); below.
34572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34573 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34574
a848cd7e
SC
34575#ifdef __STDC__
34576# include <limits.h>
34577#else
34578# include <assert.h>
34579#endif
ac1cb8d3
VS
34580
34581#undef $ac_func
34582
a848cd7e
SC
34583/* Override any gcc2 internal prototype to avoid an error. */
34584#ifdef __cplusplus
34585extern "C"
34586{
34587#endif
34588/* We use char because int might match the return type of a gcc2
34589 builtin and then its argument prototype would still apply. */
34590char $ac_func ();
34591/* The GNU C library defines this for functions which it implements
34592 to always fail with ENOSYS. Some functions are actually named
34593 something starting with __ and the normal name is an alias. */
34594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34595choke me
34596#else
34597char (*f) () = $ac_func;
34598#endif
34599#ifdef __cplusplus
34600}
34601#endif
34602
34603int
34604main ()
34605{
34606return f != $ac_func;
34607 ;
34608 return 0;
34609}
34610_ACEOF
34611rm -f conftest.$ac_objext conftest$ac_exeext
34612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34613 (eval $ac_link) 2>conftest.er1
a848cd7e 34614 ac_status=$?
ac1cb8d3
VS
34615 grep -v '^ *+' conftest.er1 >conftest.err
34616 rm -f conftest.er1
34617 cat conftest.err >&5
a848cd7e
SC
34618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 (exit $ac_status); } &&
6ebeb4c7 34620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34622 (eval $ac_try) 2>&5
34623 ac_status=$?
34624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625 (exit $ac_status); }; } &&
34626 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34628 (eval $ac_try) 2>&5
34629 ac_status=$?
34630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631 (exit $ac_status); }; }; then
34632 eval "$as_ac_var=yes"
34633else
34634 echo "$as_me: failed program was:" >&5
34635sed 's/^/| /' conftest.$ac_ext >&5
34636
34637eval "$as_ac_var=no"
34638fi
ac1cb8d3
VS
34639rm -f conftest.err conftest.$ac_objext \
34640 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34641fi
34642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34644if test `eval echo '${'$as_ac_var'}'` = yes; then
34645 cat >>confdefs.h <<_ACEOF
34646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34647_ACEOF
34648 cat >>confdefs.h <<\_ACEOF
34649#define HAVE_USLEEP 1
34650_ACEOF
34651
34652else
34653 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
34654echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
34655
34656fi
34657done
34658
34659
34660
34661fi
34662
34663
34664
34665fi
34666done
34667
34668fi
34669
34670
34671
34672for ac_func in uname gethostname
34673do
34674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34675echo "$as_me:$LINENO: checking for $ac_func" >&5
34676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34677if eval "test \"\${$as_ac_var+set}\" = set"; then
34678 echo $ECHO_N "(cached) $ECHO_C" >&6
34679else
34680 cat >conftest.$ac_ext <<_ACEOF
34681/* confdefs.h. */
34682_ACEOF
34683cat confdefs.h >>conftest.$ac_ext
34684cat >>conftest.$ac_ext <<_ACEOF
34685/* end confdefs.h. */
ac1cb8d3
VS
34686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34688#define $ac_func innocuous_$ac_func
34689
a848cd7e
SC
34690/* System header to define __stub macros and hopefully few prototypes,
34691 which can conflict with char $ac_func (); below.
34692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34693 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34694
a848cd7e
SC
34695#ifdef __STDC__
34696# include <limits.h>
34697#else
34698# include <assert.h>
34699#endif
ac1cb8d3
VS
34700
34701#undef $ac_func
34702
a848cd7e
SC
34703/* Override any gcc2 internal prototype to avoid an error. */
34704#ifdef __cplusplus
34705extern "C"
34706{
34707#endif
34708/* We use char because int might match the return type of a gcc2
34709 builtin and then its argument prototype would still apply. */
34710char $ac_func ();
34711/* The GNU C library defines this for functions which it implements
34712 to always fail with ENOSYS. Some functions are actually named
34713 something starting with __ and the normal name is an alias. */
34714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34715choke me
34716#else
34717char (*f) () = $ac_func;
34718#endif
34719#ifdef __cplusplus
34720}
34721#endif
34722
34723int
34724main ()
34725{
34726return f != $ac_func;
34727 ;
34728 return 0;
34729}
34730_ACEOF
34731rm -f conftest.$ac_objext conftest$ac_exeext
34732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34733 (eval $ac_link) 2>conftest.er1
a848cd7e 34734 ac_status=$?
ac1cb8d3
VS
34735 grep -v '^ *+' conftest.er1 >conftest.err
34736 rm -f conftest.er1
34737 cat conftest.err >&5
a848cd7e
SC
34738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); } &&
6ebeb4c7 34740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34742 (eval $ac_try) 2>&5
34743 ac_status=$?
34744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745 (exit $ac_status); }; } &&
34746 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34748 (eval $ac_try) 2>&5
34749 ac_status=$?
34750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); }; }; then
34752 eval "$as_ac_var=yes"
34753else
34754 echo "$as_me: failed program was:" >&5
34755sed 's/^/| /' conftest.$ac_ext >&5
34756
34757eval "$as_ac_var=no"
34758fi
ac1cb8d3
VS
34759rm -f conftest.err conftest.$ac_objext \
34760 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34761fi
34762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34763echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34764if test `eval echo '${'$as_ac_var'}'` = yes; then
34765 cat >>confdefs.h <<_ACEOF
34766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34767_ACEOF
34768 break
34769fi
34770done
34771
34772
34773
34774
34775ac_ext=cc
34776ac_cpp='$CXXCPP $CPPFLAGS'
34777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34780
34781
34782
34783for ac_func in strtok_r
34784do
34785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34786echo "$as_me:$LINENO: checking for $ac_func" >&5
34787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34788if eval "test \"\${$as_ac_var+set}\" = set"; then
34789 echo $ECHO_N "(cached) $ECHO_C" >&6
34790else
34791 cat >conftest.$ac_ext <<_ACEOF
34792/* confdefs.h. */
34793_ACEOF
34794cat confdefs.h >>conftest.$ac_ext
34795cat >>conftest.$ac_ext <<_ACEOF
34796/* end confdefs.h. */
ac1cb8d3
VS
34797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34799#define $ac_func innocuous_$ac_func
34800
a848cd7e
SC
34801/* System header to define __stub macros and hopefully few prototypes,
34802 which can conflict with char $ac_func (); below.
34803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34804 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34805
a848cd7e
SC
34806#ifdef __STDC__
34807# include <limits.h>
34808#else
34809# include <assert.h>
34810#endif
ac1cb8d3
VS
34811
34812#undef $ac_func
34813
a848cd7e
SC
34814/* Override any gcc2 internal prototype to avoid an error. */
34815#ifdef __cplusplus
34816extern "C"
34817{
34818#endif
34819/* We use char because int might match the return type of a gcc2
34820 builtin and then its argument prototype would still apply. */
34821char $ac_func ();
34822/* The GNU C library defines this for functions which it implements
34823 to always fail with ENOSYS. Some functions are actually named
34824 something starting with __ and the normal name is an alias. */
34825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34826choke me
34827#else
34828char (*f) () = $ac_func;
34829#endif
34830#ifdef __cplusplus
34831}
34832#endif
34833
34834int
34835main ()
34836{
34837return f != $ac_func;
34838 ;
34839 return 0;
34840}
34841_ACEOF
34842rm -f conftest.$ac_objext conftest$ac_exeext
34843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34844 (eval $ac_link) 2>conftest.er1
a848cd7e 34845 ac_status=$?
ac1cb8d3
VS
34846 grep -v '^ *+' conftest.er1 >conftest.err
34847 rm -f conftest.er1
34848 cat conftest.err >&5
a848cd7e
SC
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); } &&
6ebeb4c7 34851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34853 (eval $ac_try) 2>&5
34854 ac_status=$?
34855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34856 (exit $ac_status); }; } &&
34857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34859 (eval $ac_try) 2>&5
34860 ac_status=$?
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); }; }; then
34863 eval "$as_ac_var=yes"
34864else
34865 echo "$as_me: failed program was:" >&5
34866sed 's/^/| /' conftest.$ac_ext >&5
34867
34868eval "$as_ac_var=no"
34869fi
ac1cb8d3
VS
34870rm -f conftest.err conftest.$ac_objext \
34871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34872fi
34873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34874echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34875if test `eval echo '${'$as_ac_var'}'` = yes; then
34876 cat >>confdefs.h <<_ACEOF
34877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34878_ACEOF
34879
34880fi
34881done
34882
34883
34884ac_ext=c
34885ac_cpp='$CPP $CPPFLAGS'
34886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34888ac_compiler_gnu=$ac_cv_c_compiler_gnu
34889
34890
34891INET_LINK=
34892
34893for ac_func in inet_addr
34894do
34895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34896echo "$as_me:$LINENO: checking for $ac_func" >&5
34897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34898if eval "test \"\${$as_ac_var+set}\" = set"; then
34899 echo $ECHO_N "(cached) $ECHO_C" >&6
34900else
34901 cat >conftest.$ac_ext <<_ACEOF
34902/* confdefs.h. */
34903_ACEOF
34904cat confdefs.h >>conftest.$ac_ext
34905cat >>conftest.$ac_ext <<_ACEOF
34906/* end confdefs.h. */
ac1cb8d3
VS
34907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34909#define $ac_func innocuous_$ac_func
34910
a848cd7e
SC
34911/* System header to define __stub macros and hopefully few prototypes,
34912 which can conflict with char $ac_func (); below.
34913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34914 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34915
a848cd7e
SC
34916#ifdef __STDC__
34917# include <limits.h>
34918#else
34919# include <assert.h>
34920#endif
ac1cb8d3
VS
34921
34922#undef $ac_func
34923
a848cd7e
SC
34924/* Override any gcc2 internal prototype to avoid an error. */
34925#ifdef __cplusplus
34926extern "C"
34927{
34928#endif
34929/* We use char because int might match the return type of a gcc2
34930 builtin and then its argument prototype would still apply. */
34931char $ac_func ();
34932/* The GNU C library defines this for functions which it implements
34933 to always fail with ENOSYS. Some functions are actually named
34934 something starting with __ and the normal name is an alias. */
34935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34936choke me
34937#else
34938char (*f) () = $ac_func;
34939#endif
34940#ifdef __cplusplus
34941}
34942#endif
34943
34944int
34945main ()
34946{
34947return f != $ac_func;
34948 ;
34949 return 0;
34950}
34951_ACEOF
34952rm -f conftest.$ac_objext conftest$ac_exeext
34953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34954 (eval $ac_link) 2>conftest.er1
a848cd7e 34955 ac_status=$?
ac1cb8d3
VS
34956 grep -v '^ *+' conftest.er1 >conftest.err
34957 rm -f conftest.er1
34958 cat conftest.err >&5
a848cd7e
SC
34959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34960 (exit $ac_status); } &&
6ebeb4c7 34961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34963 (eval $ac_try) 2>&5
34964 ac_status=$?
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); }; } &&
34967 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34969 (eval $ac_try) 2>&5
34970 ac_status=$?
34971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34972 (exit $ac_status); }; }; then
34973 eval "$as_ac_var=yes"
34974else
34975 echo "$as_me: failed program was:" >&5
34976sed 's/^/| /' conftest.$ac_ext >&5
34977
34978eval "$as_ac_var=no"
34979fi
ac1cb8d3
VS
34980rm -f conftest.err conftest.$ac_objext \
34981 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34982fi
34983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34984echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34985if test `eval echo '${'$as_ac_var'}'` = yes; then
34986 cat >>confdefs.h <<_ACEOF
34987#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34988_ACEOF
34989 cat >>confdefs.h <<\_ACEOF
34990#define HAVE_INET_ADDR 1
34991_ACEOF
34992
34993else
34994
34995 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
34996echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
34997if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
34998 echo $ECHO_N "(cached) $ECHO_C" >&6
34999else
35000 ac_check_lib_save_LIBS=$LIBS
35001LIBS="-lnsl $LIBS"
35002cat >conftest.$ac_ext <<_ACEOF
35003/* confdefs.h. */
35004_ACEOF
35005cat confdefs.h >>conftest.$ac_ext
35006cat >>conftest.$ac_ext <<_ACEOF
35007/* end confdefs.h. */
35008
35009/* Override any gcc2 internal prototype to avoid an error. */
35010#ifdef __cplusplus
35011extern "C"
35012#endif
35013/* We use char because int might match the return type of a gcc2
35014 builtin and then its argument prototype would still apply. */
35015char inet_addr ();
35016int
35017main ()
35018{
35019inet_addr ();
35020 ;
35021 return 0;
35022}
35023_ACEOF
35024rm -f conftest.$ac_objext conftest$ac_exeext
35025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35026 (eval $ac_link) 2>conftest.er1
a848cd7e 35027 ac_status=$?
ac1cb8d3
VS
35028 grep -v '^ *+' conftest.er1 >conftest.err
35029 rm -f conftest.er1
35030 cat conftest.err >&5
a848cd7e
SC
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032 (exit $ac_status); } &&
6ebeb4c7 35033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35035 (eval $ac_try) 2>&5
35036 ac_status=$?
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); }; } &&
35039 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35041 (eval $ac_try) 2>&5
35042 ac_status=$?
35043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044 (exit $ac_status); }; }; then
35045 ac_cv_lib_nsl_inet_addr=yes
35046else
35047 echo "$as_me: failed program was:" >&5
35048sed 's/^/| /' conftest.$ac_ext >&5
35049
35050ac_cv_lib_nsl_inet_addr=no
35051fi
ac1cb8d3
VS
35052rm -f conftest.err conftest.$ac_objext \
35053 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35054LIBS=$ac_check_lib_save_LIBS
35055fi
35056echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35057echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35058if test $ac_cv_lib_nsl_inet_addr = yes; then
35059 INET_LINK="nsl"
35060else
35061
35062 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35063echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35064if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35065 echo $ECHO_N "(cached) $ECHO_C" >&6
35066else
35067 ac_check_lib_save_LIBS=$LIBS
35068LIBS="-lresolv $LIBS"
35069cat >conftest.$ac_ext <<_ACEOF
35070/* confdefs.h. */
35071_ACEOF
35072cat confdefs.h >>conftest.$ac_ext
35073cat >>conftest.$ac_ext <<_ACEOF
35074/* end confdefs.h. */
35075
35076/* Override any gcc2 internal prototype to avoid an error. */
35077#ifdef __cplusplus
35078extern "C"
35079#endif
35080/* We use char because int might match the return type of a gcc2
35081 builtin and then its argument prototype would still apply. */
35082char inet_addr ();
35083int
35084main ()
35085{
35086inet_addr ();
35087 ;
35088 return 0;
35089}
35090_ACEOF
35091rm -f conftest.$ac_objext conftest$ac_exeext
35092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35093 (eval $ac_link) 2>conftest.er1
a848cd7e 35094 ac_status=$?
ac1cb8d3
VS
35095 grep -v '^ *+' conftest.er1 >conftest.err
35096 rm -f conftest.er1
35097 cat conftest.err >&5
a848cd7e
SC
35098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099 (exit $ac_status); } &&
6ebeb4c7 35100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35102 (eval $ac_try) 2>&5
35103 ac_status=$?
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); }; } &&
35106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35108 (eval $ac_try) 2>&5
35109 ac_status=$?
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); }; }; then
35112 ac_cv_lib_resolv_inet_addr=yes
35113else
35114 echo "$as_me: failed program was:" >&5
35115sed 's/^/| /' conftest.$ac_ext >&5
35116
35117ac_cv_lib_resolv_inet_addr=no
35118fi
ac1cb8d3
VS
35119rm -f conftest.err conftest.$ac_objext \
35120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35121LIBS=$ac_check_lib_save_LIBS
35122fi
35123echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35124echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35125if test $ac_cv_lib_resolv_inet_addr = yes; then
35126 INET_LINK="resolv"
35127else
35128
35129 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35130echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35131if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35132 echo $ECHO_N "(cached) $ECHO_C" >&6
35133else
35134 ac_check_lib_save_LIBS=$LIBS
35135LIBS="-lsocket $LIBS"
35136cat >conftest.$ac_ext <<_ACEOF
35137/* confdefs.h. */
35138_ACEOF
35139cat confdefs.h >>conftest.$ac_ext
35140cat >>conftest.$ac_ext <<_ACEOF
35141/* end confdefs.h. */
35142
35143/* Override any gcc2 internal prototype to avoid an error. */
35144#ifdef __cplusplus
35145extern "C"
35146#endif
35147/* We use char because int might match the return type of a gcc2
35148 builtin and then its argument prototype would still apply. */
35149char inet_addr ();
35150int
35151main ()
35152{
35153inet_addr ();
35154 ;
35155 return 0;
35156}
35157_ACEOF
35158rm -f conftest.$ac_objext conftest$ac_exeext
35159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35160 (eval $ac_link) 2>conftest.er1
a848cd7e 35161 ac_status=$?
ac1cb8d3
VS
35162 grep -v '^ *+' conftest.er1 >conftest.err
35163 rm -f conftest.er1
35164 cat conftest.err >&5
a848cd7e
SC
35165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); } &&
6ebeb4c7 35167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35169 (eval $ac_try) 2>&5
35170 ac_status=$?
35171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 (exit $ac_status); }; } &&
35173 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35175 (eval $ac_try) 2>&5
35176 ac_status=$?
35177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178 (exit $ac_status); }; }; then
35179 ac_cv_lib_socket_inet_addr=yes
35180else
35181 echo "$as_me: failed program was:" >&5
35182sed 's/^/| /' conftest.$ac_ext >&5
35183
35184ac_cv_lib_socket_inet_addr=no
35185fi
ac1cb8d3
VS
35186rm -f conftest.err conftest.$ac_objext \
35187 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35188LIBS=$ac_check_lib_save_LIBS
35189fi
35190echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35191echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35192if test $ac_cv_lib_socket_inet_addr = yes; then
35193 INET_LINK="socket"
35194
35195fi
35196
35197
35198
35199fi
35200
35201
35202
35203fi
35204
35205
35206
35207fi
35208done
35209
35210
35211
35212for ac_func in inet_aton
35213do
35214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35215echo "$as_me:$LINENO: checking for $ac_func" >&5
35216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35217if eval "test \"\${$as_ac_var+set}\" = set"; then
35218 echo $ECHO_N "(cached) $ECHO_C" >&6
35219else
35220 cat >conftest.$ac_ext <<_ACEOF
35221/* confdefs.h. */
35222_ACEOF
35223cat confdefs.h >>conftest.$ac_ext
35224cat >>conftest.$ac_ext <<_ACEOF
35225/* end confdefs.h. */
ac1cb8d3
VS
35226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35228#define $ac_func innocuous_$ac_func
35229
a848cd7e
SC
35230/* System header to define __stub macros and hopefully few prototypes,
35231 which can conflict with char $ac_func (); below.
35232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35233 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35234
a848cd7e
SC
35235#ifdef __STDC__
35236# include <limits.h>
35237#else
35238# include <assert.h>
35239#endif
ac1cb8d3
VS
35240
35241#undef $ac_func
35242
a848cd7e
SC
35243/* Override any gcc2 internal prototype to avoid an error. */
35244#ifdef __cplusplus
35245extern "C"
35246{
35247#endif
35248/* We use char because int might match the return type of a gcc2
35249 builtin and then its argument prototype would still apply. */
35250char $ac_func ();
35251/* The GNU C library defines this for functions which it implements
35252 to always fail with ENOSYS. Some functions are actually named
35253 something starting with __ and the normal name is an alias. */
35254#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35255choke me
35256#else
35257char (*f) () = $ac_func;
35258#endif
35259#ifdef __cplusplus
35260}
35261#endif
35262
35263int
35264main ()
35265{
35266return f != $ac_func;
35267 ;
35268 return 0;
35269}
35270_ACEOF
35271rm -f conftest.$ac_objext conftest$ac_exeext
35272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35273 (eval $ac_link) 2>conftest.er1
a848cd7e 35274 ac_status=$?
ac1cb8d3
VS
35275 grep -v '^ *+' conftest.er1 >conftest.err
35276 rm -f conftest.er1
35277 cat conftest.err >&5
a848cd7e
SC
35278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279 (exit $ac_status); } &&
6ebeb4c7 35280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35282 (eval $ac_try) 2>&5
35283 ac_status=$?
35284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285 (exit $ac_status); }; } &&
35286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35288 (eval $ac_try) 2>&5
35289 ac_status=$?
35290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291 (exit $ac_status); }; }; then
35292 eval "$as_ac_var=yes"
35293else
35294 echo "$as_me: failed program was:" >&5
35295sed 's/^/| /' conftest.$ac_ext >&5
35296
35297eval "$as_ac_var=no"
35298fi
ac1cb8d3
VS
35299rm -f conftest.err conftest.$ac_objext \
35300 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35301fi
35302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35303echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35304if test `eval echo '${'$as_ac_var'}'` = yes; then
35305 cat >>confdefs.h <<_ACEOF
35306#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35307_ACEOF
35308 cat >>confdefs.h <<\_ACEOF
35309#define HAVE_INET_ATON 1
35310_ACEOF
35311
35312else
35313
35314 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
35315echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
35316echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
35317if eval "test \"\${$as_ac_Lib+set}\" = set"; then
35318 echo $ECHO_N "(cached) $ECHO_C" >&6
35319else
35320 ac_check_lib_save_LIBS=$LIBS
35321LIBS="-l$INET_LINK $LIBS"
35322cat >conftest.$ac_ext <<_ACEOF
35323/* confdefs.h. */
35324_ACEOF
35325cat confdefs.h >>conftest.$ac_ext
35326cat >>conftest.$ac_ext <<_ACEOF
35327/* end confdefs.h. */
35328
35329/* Override any gcc2 internal prototype to avoid an error. */
35330#ifdef __cplusplus
35331extern "C"
35332#endif
35333/* We use char because int might match the return type of a gcc2
35334 builtin and then its argument prototype would still apply. */
35335char inet_aton ();
35336int
35337main ()
35338{
35339inet_aton ();
35340 ;
35341 return 0;
35342}
35343_ACEOF
35344rm -f conftest.$ac_objext conftest$ac_exeext
35345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35346 (eval $ac_link) 2>conftest.er1
a848cd7e 35347 ac_status=$?
ac1cb8d3
VS
35348 grep -v '^ *+' conftest.er1 >conftest.err
35349 rm -f conftest.er1
35350 cat conftest.err >&5
a848cd7e
SC
35351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352 (exit $ac_status); } &&
6ebeb4c7 35353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35355 (eval $ac_try) 2>&5
35356 ac_status=$?
35357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); }; } &&
35359 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35361 (eval $ac_try) 2>&5
35362 ac_status=$?
35363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364 (exit $ac_status); }; }; then
35365 eval "$as_ac_Lib=yes"
35366else
35367 echo "$as_me: failed program was:" >&5
35368sed 's/^/| /' conftest.$ac_ext >&5
35369
35370eval "$as_ac_Lib=no"
35371fi
ac1cb8d3
VS
35372rm -f conftest.err conftest.$ac_objext \
35373 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35374LIBS=$ac_check_lib_save_LIBS
35375fi
35376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
35377echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
35378if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35379 cat >>confdefs.h <<\_ACEOF
35380#define HAVE_INET_ATON 1
35381_ACEOF
35382
35383fi
35384
35385
35386fi
35387done
35388
35389
35390if test "x$INET_LINK" != "x"; then
35391 cat >>confdefs.h <<\_ACEOF
35392#define HAVE_INET_ADDR 1
35393_ACEOF
35394
35395 INET_LINK=" -l$INET_LINK"
35396fi
35397
35398fi
35399
35400
35401
35402EXTRALIBS_ESD=
35403echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
35404echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
35405if test "${ac_cv_lib_esd_esd_close+set}" = set; then
35406 echo $ECHO_N "(cached) $ECHO_C" >&6
35407else
35408 ac_check_lib_save_LIBS=$LIBS
35409LIBS="-lesd $LIBS"
35410cat >conftest.$ac_ext <<_ACEOF
35411/* confdefs.h. */
35412_ACEOF
35413cat confdefs.h >>conftest.$ac_ext
35414cat >>conftest.$ac_ext <<_ACEOF
35415/* end confdefs.h. */
35416
35417/* Override any gcc2 internal prototype to avoid an error. */
35418#ifdef __cplusplus
35419extern "C"
35420#endif
35421/* We use char because int might match the return type of a gcc2
35422 builtin and then its argument prototype would still apply. */
35423char esd_close ();
35424int
35425main ()
35426{
35427esd_close ();
35428 ;
35429 return 0;
35430}
35431_ACEOF
35432rm -f conftest.$ac_objext conftest$ac_exeext
35433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35434 (eval $ac_link) 2>conftest.er1
a848cd7e 35435 ac_status=$?
ac1cb8d3
VS
35436 grep -v '^ *+' conftest.er1 >conftest.err
35437 rm -f conftest.er1
35438 cat conftest.err >&5
a848cd7e
SC
35439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440 (exit $ac_status); } &&
6ebeb4c7 35441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35443 (eval $ac_try) 2>&5
35444 ac_status=$?
35445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446 (exit $ac_status); }; } &&
35447 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35449 (eval $ac_try) 2>&5
35450 ac_status=$?
35451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35452 (exit $ac_status); }; }; then
35453 ac_cv_lib_esd_esd_close=yes
35454else
35455 echo "$as_me: failed program was:" >&5
35456sed 's/^/| /' conftest.$ac_ext >&5
35457
35458ac_cv_lib_esd_esd_close=no
35459fi
ac1cb8d3
VS
35460rm -f conftest.err conftest.$ac_objext \
35461 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35462LIBS=$ac_check_lib_save_LIBS
35463fi
35464echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
35465echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
35466if test $ac_cv_lib_esd_esd_close = yes; then
35467
35468
35469for ac_header in esd.h
35470do
35471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35472if eval "test \"\${$as_ac_Header+set}\" = set"; then
35473 echo "$as_me:$LINENO: checking for $ac_header" >&5
35474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35475if eval "test \"\${$as_ac_Header+set}\" = set"; then
35476 echo $ECHO_N "(cached) $ECHO_C" >&6
35477fi
35478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35480else
35481 # Is the header compilable?
35482echo "$as_me:$LINENO: checking $ac_header usability" >&5
35483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35484cat >conftest.$ac_ext <<_ACEOF
35485/* confdefs.h. */
35486_ACEOF
35487cat confdefs.h >>conftest.$ac_ext
35488cat >>conftest.$ac_ext <<_ACEOF
35489/* end confdefs.h. */
35490$ac_includes_default
35491#include <$ac_header>
35492_ACEOF
35493rm -f conftest.$ac_objext
35494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35495 (eval $ac_compile) 2>conftest.er1
a848cd7e 35496 ac_status=$?
ac1cb8d3
VS
35497 grep -v '^ *+' conftest.er1 >conftest.err
35498 rm -f conftest.er1
35499 cat conftest.err >&5
a848cd7e
SC
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); } &&
6ebeb4c7 35502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35504 (eval $ac_try) 2>&5
35505 ac_status=$?
35506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507 (exit $ac_status); }; } &&
35508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35510 (eval $ac_try) 2>&5
35511 ac_status=$?
35512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35513 (exit $ac_status); }; }; then
35514 ac_header_compiler=yes
35515else
35516 echo "$as_me: failed program was:" >&5
35517sed 's/^/| /' conftest.$ac_ext >&5
35518
35519ac_header_compiler=no
35520fi
ac1cb8d3 35521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35522echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35523echo "${ECHO_T}$ac_header_compiler" >&6
35524
35525# Is the header present?
35526echo "$as_me:$LINENO: checking $ac_header presence" >&5
35527echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35528cat >conftest.$ac_ext <<_ACEOF
35529/* confdefs.h. */
35530_ACEOF
35531cat confdefs.h >>conftest.$ac_ext
35532cat >>conftest.$ac_ext <<_ACEOF
35533/* end confdefs.h. */
35534#include <$ac_header>
35535_ACEOF
35536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35538 ac_status=$?
35539 grep -v '^ *+' conftest.er1 >conftest.err
35540 rm -f conftest.er1
35541 cat conftest.err >&5
35542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543 (exit $ac_status); } >/dev/null; then
35544 if test -s conftest.err; then
35545 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35547 else
35548 ac_cpp_err=
35549 fi
35550else
35551 ac_cpp_err=yes
35552fi
35553if test -z "$ac_cpp_err"; then
35554 ac_header_preproc=yes
35555else
35556 echo "$as_me: failed program was:" >&5
35557sed 's/^/| /' conftest.$ac_ext >&5
35558
35559 ac_header_preproc=no
35560fi
35561rm -f conftest.err conftest.$ac_ext
35562echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35563echo "${ECHO_T}$ac_header_preproc" >&6
35564
35565# So? What about this header?
ac1cb8d3
VS
35566case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35567 yes:no: )
a848cd7e
SC
35568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35569echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35571echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35572 ac_header_preproc=yes
a848cd7e 35573 ;;
ac1cb8d3 35574 no:yes:* )
a848cd7e
SC
35575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35580echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35582echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35586echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35587 (
35588 cat <<\_ASBOX
ac1cb8d3
VS
35589## ----------------------------------------- ##
35590## Report this to wx-dev@lists.wxwidgets.org ##
35591## ----------------------------------------- ##
a848cd7e
SC
35592_ASBOX
35593 ) |
35594 sed "s/^/$as_me: WARNING: /" >&2
35595 ;;
35596esac
35597echo "$as_me:$LINENO: checking for $ac_header" >&5
35598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35599if eval "test \"\${$as_ac_Header+set}\" = set"; then
35600 echo $ECHO_N "(cached) $ECHO_C" >&6
35601else
ac1cb8d3 35602 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35603fi
35604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35606
35607fi
35608if test `eval echo '${'$as_ac_Header'}'` = yes; then
35609 cat >>confdefs.h <<_ACEOF
35610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35611_ACEOF
35612
35613 EXTRALIBS_ESD="-lesd"
35614
35615fi
35616
35617done
35618
35619
35620fi
35621
35622
35623
35624echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
35625echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
35626cat >conftest.$ac_ext <<_ACEOF
35627/* confdefs.h. */
35628_ACEOF
35629cat confdefs.h >>conftest.$ac_ext
35630cat >>conftest.$ac_ext <<_ACEOF
35631/* end confdefs.h. */
35632#ifdef __linux__
35633 #include <linux/cdrom.h>
35634 #else
35635 /* For Solaris */
35636 #include <sys/cdio.h>
35637 #endif
35638
35639int
35640main ()
35641{
35642struct cdrom_tocentry entry, old_entry;
35643 ;
35644 return 0;
35645}
35646_ACEOF
35647rm -f conftest.$ac_objext
35648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35649 (eval $ac_compile) 2>conftest.er1
a848cd7e 35650 ac_status=$?
ac1cb8d3
VS
35651 grep -v '^ *+' conftest.er1 >conftest.err
35652 rm -f conftest.er1
35653 cat conftest.err >&5
a848cd7e
SC
35654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655 (exit $ac_status); } &&
6ebeb4c7 35656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35658 (eval $ac_try) 2>&5
35659 ac_status=$?
35660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661 (exit $ac_status); }; } &&
35662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35664 (eval $ac_try) 2>&5
35665 ac_status=$?
35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); }; }; then
35668 echo "$as_me:$LINENO: result: yes" >&5
35669echo "${ECHO_T}yes" >&6
35670 cat >>confdefs.h <<\_ACEOF
35671#define HAVE_KNOWN_CDROM_INTERFACE 1
35672_ACEOF
35673
35674else
35675 echo "$as_me: failed program was:" >&5
35676sed 's/^/| /' conftest.$ac_ext >&5
35677
35678echo "$as_me:$LINENO: result: no" >&5
35679echo "${ECHO_T}no" >&6
35680fi
ac1cb8d3 35681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35682
35683
35684cat >confcache <<\_ACEOF
35685# This file is a shell script that caches the results of configure
35686# tests run on this system so they can be shared between configure
35687# scripts and configure runs, see configure's option --config-cache.
35688# It is not useful on other systems. If it contains results you don't
35689# want to keep, you may remove or edit it.
35690#
35691# config.status only pays attention to the cache file if you give it
35692# the --recheck option to rerun configure.
35693#
35694# `ac_cv_env_foo' variables (set or unset) will be overridden when
35695# loading this file, other *unset* `ac_cv_foo' will be assigned the
35696# following values.
35697
35698_ACEOF
35699
35700# The following way of writing the cache mishandles newlines in values,
35701# but we know of no workaround that is simple, portable, and efficient.
35702# So, don't put newlines in cache variables' values.
35703# Ultrix sh set writes to stderr and can't be redirected directly,
35704# and sets the high bit in the cache file unless we assign to the vars.
35705{
35706 (set) 2>&1 |
35707 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35708 *ac_space=\ *)
35709 # `set' does not quote correctly, so add quotes (double-quote
35710 # substitution turns \\\\ into \\, and sed turns \\ into \).
35711 sed -n \
ac1cb8d3
VS
35712 "s/'/'\\\\''/g;
35713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
35714 ;;
35715 *)
35716 # `set' quotes correctly as required by POSIX, so do not add quotes.
35717 sed -n \
ac1cb8d3 35718 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
35719 ;;
35720 esac;
35721} |
35722 sed '
35723 t clear
35724 : clear
35725 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35726 t end
35727 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35728 : end' >>confcache
35729if diff $cache_file confcache >/dev/null 2>&1; then :; else
35730 if test -w $cache_file; then
35731 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35732 cat confcache >$cache_file
35733 else
35734 echo "not updating unwritable cache $cache_file"
35735 fi
35736fi
35737rm -f confcache
35738
35739
35740CPP_MT_FLAG=
35741if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35742
35743
35744 THREADS_LINK=
35745 THREADS_CFLAGS=
35746
35747 if test "$wxUSE_THREADS" = "yes" ; then
35748 if test "$USE_BEOS" = 1; then
35749 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
35750echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
35751 wxUSE_THREADS="no"
35752 fi
35753 fi
35754
35755 if test "$wxUSE_THREADS" = "yes" ; then
35756
35757
35758 THREAD_OPTS="-pthread"
35759 case "${host}" in
35760 *-*-solaris2* | *-*-sunos4* )
35761 if test "x$GCC" = "xyes"; then
35762 THREAD_OPTS="-pthreads $THREAD_OPTS"
35763 else
35764 THREAD_OPTS="-mt $THREAD_OPTS"
35765 fi
35766 ;;
35767 *-*-freebsd*)
35768 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
35769 ;;
35770 *-*-darwin* | *-*-cygwin* )
35771 THREAD_OPTS=""
35772 ;;
35773 *-*-aix*)
35774 THREAD_OPTS="pthreads"
35775 ;;
35776 *-hp-hpux* )
00421666
MW
35777 if test "x$GCC" = "xyes"; then
35778 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
35779 THREAD_OPTS=""
35780 else
efdf6afe 35781 THREAD_OPTS=""
a848cd7e
SC
35782 fi
35783 ;;
35784
35785 *-*-irix* )
35786 if test "x$GCC" = "xyes"; then
35787 THREAD_OPTS=""
35788 fi
35789 ;;
35790
35791 *-*-*UnixWare*)
35792 if test "x$GCC" != "xyes"; then
35793 THREAD_OPTS="-Ethread"
35794 fi
35795 ;;
35796 esac
35797
35798 THREAD_OPTS="$THREAD_OPTS pthread none"
35799
35800 THREADS_OK=no
35801 for flag in $THREAD_OPTS; do
35802 case $flag in
35803 none)
35804 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
35805echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
35806 ;;
35807
35808 -*)
35809 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
35810echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
35811 THREADS_CFLAGS="$flag"
35812 ;;
35813
35814 *)
35815 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
35816echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
35817 THREADS_LINK="-l$flag"
35818 ;;
35819 esac
35820
35821 save_LIBS="$LIBS"
35822 save_CFLAGS="$CFLAGS"
35823 LIBS="$THREADS_LINK $LIBS"
35824 CFLAGS="$THREADS_CFLAGS $CFLAGS"
35825
35826 cat >conftest.$ac_ext <<_ACEOF
35827/* confdefs.h. */
35828_ACEOF
35829cat confdefs.h >>conftest.$ac_ext
35830cat >>conftest.$ac_ext <<_ACEOF
35831/* end confdefs.h. */
35832#include <pthread.h>
35833int
35834main ()
35835{
35836pthread_create(0,0,0,0);
35837 ;
35838 return 0;
35839}
35840_ACEOF
35841rm -f conftest.$ac_objext conftest$ac_exeext
35842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35843 (eval $ac_link) 2>conftest.er1
a848cd7e 35844 ac_status=$?
ac1cb8d3
VS
35845 grep -v '^ *+' conftest.er1 >conftest.err
35846 rm -f conftest.er1
35847 cat conftest.err >&5
a848cd7e
SC
35848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849 (exit $ac_status); } &&
6ebeb4c7 35850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35852 (eval $ac_try) 2>&5
35853 ac_status=$?
35854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855 (exit $ac_status); }; } &&
35856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35858 (eval $ac_try) 2>&5
35859 ac_status=$?
35860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35861 (exit $ac_status); }; }; then
35862 THREADS_OK=yes
35863else
35864 echo "$as_me: failed program was:" >&5
35865sed 's/^/| /' conftest.$ac_ext >&5
35866
35867fi
ac1cb8d3
VS
35868rm -f conftest.err conftest.$ac_objext \
35869 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35870
35871 LIBS="$save_LIBS"
35872 CFLAGS="$save_CFLAGS"
35873
35874 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
35875echo "${ECHO_T}$THREADS_OK" >&6
35876 if test "x$THREADS_OK" = "xyes"; then
35877 break;
35878 fi
35879
35880 THREADS_LINK=""
35881 THREADS_CFLAGS=""
35882 done
35883
35884 if test "x$THREADS_OK" != "xyes"; then
35885 wxUSE_THREADS=no
35886 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
35887echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
35888 else
35889 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
35890 LIBS="$THREADS_LINK $LIBS"
35891
35892 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
35893echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
35894 flag=no
35895 case "${host}" in
35896 *-aix*)
35897 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
35898 flag="-D_THREAD_SAFE"
35899 ;;
35900 *-freebsd*)
35901 flag="-D_THREAD_SAFE"
35902 ;;
35903 *-hp-hpux* )
35904 flag="-D_REENTRANT"
35905 if test "x$GCC" != "xyes"; then
35906 flag="$flag -D_RWSTD_MULTI_THREAD"
35907 fi
35908 ;;
35909 *solaris* | alpha*-osf*)
35910 flag="-D_REENTRANT"
35911 ;;
35912 esac
35913 echo "$as_me:$LINENO: result: ${flag}" >&5
35914echo "${ECHO_T}${flag}" >&6
35915 if test "x$flag" != xno; then
35916 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
35917 fi
35918
35919 if test "x$THREADS_CFLAGS" != "x"; then
35920 CFLAGS="$CFLAGS $THREADS_CFLAGS"
35921 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
35922 fi
35923 fi
35924 fi
35925
35926 if test "$wxUSE_THREADS" = "yes" ; then
35927
35928for ac_func in thr_setconcurrency
35929do
35930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35931echo "$as_me:$LINENO: checking for $ac_func" >&5
35932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35933if eval "test \"\${$as_ac_var+set}\" = set"; then
35934 echo $ECHO_N "(cached) $ECHO_C" >&6
35935else
35936 cat >conftest.$ac_ext <<_ACEOF
35937/* confdefs.h. */
35938_ACEOF
35939cat confdefs.h >>conftest.$ac_ext
35940cat >>conftest.$ac_ext <<_ACEOF
35941/* end confdefs.h. */
ac1cb8d3
VS
35942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35944#define $ac_func innocuous_$ac_func
35945
a848cd7e
SC
35946/* System header to define __stub macros and hopefully few prototypes,
35947 which can conflict with char $ac_func (); below.
35948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35949 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35950
a848cd7e
SC
35951#ifdef __STDC__
35952# include <limits.h>
35953#else
35954# include <assert.h>
35955#endif
ac1cb8d3
VS
35956
35957#undef $ac_func
35958
a848cd7e
SC
35959/* Override any gcc2 internal prototype to avoid an error. */
35960#ifdef __cplusplus
35961extern "C"
35962{
35963#endif
35964/* We use char because int might match the return type of a gcc2
35965 builtin and then its argument prototype would still apply. */
35966char $ac_func ();
35967/* The GNU C library defines this for functions which it implements
35968 to always fail with ENOSYS. Some functions are actually named
35969 something starting with __ and the normal name is an alias. */
35970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35971choke me
35972#else
35973char (*f) () = $ac_func;
35974#endif
35975#ifdef __cplusplus
35976}
35977#endif
35978
35979int
35980main ()
35981{
35982return f != $ac_func;
35983 ;
35984 return 0;
35985}
35986_ACEOF
35987rm -f conftest.$ac_objext conftest$ac_exeext
35988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35989 (eval $ac_link) 2>conftest.er1
a848cd7e 35990 ac_status=$?
ac1cb8d3
VS
35991 grep -v '^ *+' conftest.er1 >conftest.err
35992 rm -f conftest.er1
35993 cat conftest.err >&5
a848cd7e
SC
35994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35995 (exit $ac_status); } &&
6ebeb4c7 35996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35998 (eval $ac_try) 2>&5
35999 ac_status=$?
36000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36001 (exit $ac_status); }; } &&
36002 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36004 (eval $ac_try) 2>&5
36005 ac_status=$?
36006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007 (exit $ac_status); }; }; then
36008 eval "$as_ac_var=yes"
36009else
36010 echo "$as_me: failed program was:" >&5
36011sed 's/^/| /' conftest.$ac_ext >&5
36012
36013eval "$as_ac_var=no"
36014fi
ac1cb8d3
VS
36015rm -f conftest.err conftest.$ac_objext \
36016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36017fi
36018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36020if test `eval echo '${'$as_ac_var'}'` = yes; then
36021 cat >>confdefs.h <<_ACEOF
36022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36023_ACEOF
36024
36025fi
36026done
36027
36028
6ebeb4c7
VZ
36029 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36030echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36031if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36032 echo $ECHO_N "(cached) $ECHO_C" >&6
36033else
36034
36035 cat >conftest.$ac_ext <<_ACEOF
36036/* confdefs.h. */
36037_ACEOF
36038cat confdefs.h >>conftest.$ac_ext
36039cat >>conftest.$ac_ext <<_ACEOF
36040/* end confdefs.h. */
36041#include <pthread.h>
36042 void ThreadCleanupFunc(void *p);
36043
36044int
36045main ()
36046{
36047
36048 void *p;
36049 pthread_cleanup_push(ThreadCleanupFunc, p);
36050 pthread_cleanup_pop(0);
36051
36052 ;
36053 return 0;
36054}
36055_ACEOF
36056rm -f conftest.$ac_objext
36057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36058 (eval $ac_compile) 2>conftest.er1
36059 ac_status=$?
36060 grep -v '^ *+' conftest.er1 >conftest.err
36061 rm -f conftest.er1
36062 cat conftest.err >&5
36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064 (exit $ac_status); } &&
36065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36067 (eval $ac_try) 2>&5
36068 ac_status=$?
36069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070 (exit $ac_status); }; } &&
36071 { ac_try='test -s conftest.$ac_objext'
36072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36073 (eval $ac_try) 2>&5
36074 ac_status=$?
36075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076 (exit $ac_status); }; }; then
36077
36078 wx_cv_func_pthread_cleanup=yes
36079
36080else
36081 echo "$as_me: failed program was:" >&5
36082sed 's/^/| /' conftest.$ac_ext >&5
36083
36084
36085 wx_cv_func_pthread_cleanup=no
36086
36087
36088fi
36089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36090
36091fi
36092echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36093echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36094 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36095 cat >>confdefs.h <<\_ACEOF
36096#define wxHAVE_PTHREAD_CLEANUP 1
36097_ACEOF
36098
36099 fi
36100
a848cd7e
SC
36101
36102for ac_header in sched.h
36103do
36104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36105if eval "test \"\${$as_ac_Header+set}\" = set"; then
36106 echo "$as_me:$LINENO: checking for $ac_header" >&5
36107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36108if eval "test \"\${$as_ac_Header+set}\" = set"; then
36109 echo $ECHO_N "(cached) $ECHO_C" >&6
36110fi
36111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36113else
36114 # Is the header compilable?
36115echo "$as_me:$LINENO: checking $ac_header usability" >&5
36116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36117cat >conftest.$ac_ext <<_ACEOF
36118/* confdefs.h. */
36119_ACEOF
36120cat confdefs.h >>conftest.$ac_ext
36121cat >>conftest.$ac_ext <<_ACEOF
36122/* end confdefs.h. */
36123$ac_includes_default
36124#include <$ac_header>
36125_ACEOF
36126rm -f conftest.$ac_objext
36127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36128 (eval $ac_compile) 2>conftest.er1
a848cd7e 36129 ac_status=$?
ac1cb8d3
VS
36130 grep -v '^ *+' conftest.er1 >conftest.err
36131 rm -f conftest.er1
36132 cat conftest.err >&5
a848cd7e
SC
36133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134 (exit $ac_status); } &&
6ebeb4c7 36135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36137 (eval $ac_try) 2>&5
36138 ac_status=$?
36139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140 (exit $ac_status); }; } &&
36141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36143 (eval $ac_try) 2>&5
36144 ac_status=$?
36145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146 (exit $ac_status); }; }; then
36147 ac_header_compiler=yes
36148else
36149 echo "$as_me: failed program was:" >&5
36150sed 's/^/| /' conftest.$ac_ext >&5
36151
36152ac_header_compiler=no
36153fi
ac1cb8d3 36154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36155echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36156echo "${ECHO_T}$ac_header_compiler" >&6
36157
36158# Is the header present?
36159echo "$as_me:$LINENO: checking $ac_header presence" >&5
36160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36161cat >conftest.$ac_ext <<_ACEOF
36162/* confdefs.h. */
36163_ACEOF
36164cat confdefs.h >>conftest.$ac_ext
36165cat >>conftest.$ac_ext <<_ACEOF
36166/* end confdefs.h. */
36167#include <$ac_header>
36168_ACEOF
36169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36171 ac_status=$?
36172 grep -v '^ *+' conftest.er1 >conftest.err
36173 rm -f conftest.er1
36174 cat conftest.err >&5
36175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); } >/dev/null; then
36177 if test -s conftest.err; then
36178 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36180 else
36181 ac_cpp_err=
36182 fi
36183else
36184 ac_cpp_err=yes
36185fi
36186if test -z "$ac_cpp_err"; then
36187 ac_header_preproc=yes
36188else
36189 echo "$as_me: failed program was:" >&5
36190sed 's/^/| /' conftest.$ac_ext >&5
36191
36192 ac_header_preproc=no
36193fi
36194rm -f conftest.err conftest.$ac_ext
36195echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36196echo "${ECHO_T}$ac_header_preproc" >&6
36197
36198# So? What about this header?
ac1cb8d3
VS
36199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36200 yes:no: )
a848cd7e
SC
36201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36205 ac_header_preproc=yes
a848cd7e 36206 ;;
ac1cb8d3 36207 no:yes:* )
a848cd7e
SC
36208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36211echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36215echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36220 (
36221 cat <<\_ASBOX
ac1cb8d3
VS
36222## ----------------------------------------- ##
36223## Report this to wx-dev@lists.wxwidgets.org ##
36224## ----------------------------------------- ##
a848cd7e
SC
36225_ASBOX
36226 ) |
36227 sed "s/^/$as_me: WARNING: /" >&2
36228 ;;
36229esac
36230echo "$as_me:$LINENO: checking for $ac_header" >&5
36231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36232if eval "test \"\${$as_ac_Header+set}\" = set"; then
36233 echo $ECHO_N "(cached) $ECHO_C" >&6
36234else
ac1cb8d3 36235 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36236fi
36237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36239
36240fi
36241if test `eval echo '${'$as_ac_Header'}'` = yes; then
36242 cat >>confdefs.h <<_ACEOF
36243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36244_ACEOF
36245
36246fi
36247
36248done
36249
36250 if test "$ac_cv_header_sched_h" = "yes"; then
36251 echo "$as_me:$LINENO: checking for sched_yield" >&5
36252echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36253if test "${ac_cv_func_sched_yield+set}" = set; then
36254 echo $ECHO_N "(cached) $ECHO_C" >&6
36255else
36256 cat >conftest.$ac_ext <<_ACEOF
36257/* confdefs.h. */
36258_ACEOF
36259cat confdefs.h >>conftest.$ac_ext
36260cat >>conftest.$ac_ext <<_ACEOF
36261/* end confdefs.h. */
ac1cb8d3
VS
36262/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36264#define sched_yield innocuous_sched_yield
36265
a848cd7e
SC
36266/* System header to define __stub macros and hopefully few prototypes,
36267 which can conflict with char sched_yield (); below.
36268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36269 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36270
a848cd7e
SC
36271#ifdef __STDC__
36272# include <limits.h>
36273#else
36274# include <assert.h>
36275#endif
ac1cb8d3
VS
36276
36277#undef sched_yield
36278
a848cd7e
SC
36279/* Override any gcc2 internal prototype to avoid an error. */
36280#ifdef __cplusplus
36281extern "C"
36282{
36283#endif
36284/* We use char because int might match the return type of a gcc2
36285 builtin and then its argument prototype would still apply. */
36286char sched_yield ();
36287/* The GNU C library defines this for functions which it implements
36288 to always fail with ENOSYS. Some functions are actually named
36289 something starting with __ and the normal name is an alias. */
36290#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36291choke me
36292#else
36293char (*f) () = sched_yield;
36294#endif
36295#ifdef __cplusplus
36296}
36297#endif
36298
36299int
36300main ()
36301{
36302return f != sched_yield;
36303 ;
36304 return 0;
36305}
36306_ACEOF
36307rm -f conftest.$ac_objext conftest$ac_exeext
36308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36309 (eval $ac_link) 2>conftest.er1
a848cd7e 36310 ac_status=$?
ac1cb8d3
VS
36311 grep -v '^ *+' conftest.er1 >conftest.err
36312 rm -f conftest.er1
36313 cat conftest.err >&5
a848cd7e
SC
36314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); } &&
6ebeb4c7 36316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36318 (eval $ac_try) 2>&5
36319 ac_status=$?
36320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36321 (exit $ac_status); }; } &&
36322 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36324 (eval $ac_try) 2>&5
36325 ac_status=$?
36326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327 (exit $ac_status); }; }; then
36328 ac_cv_func_sched_yield=yes
36329else
36330 echo "$as_me: failed program was:" >&5
36331sed 's/^/| /' conftest.$ac_ext >&5
36332
36333ac_cv_func_sched_yield=no
36334fi
ac1cb8d3
VS
36335rm -f conftest.err conftest.$ac_objext \
36336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36337fi
36338echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
36339echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
36340if test $ac_cv_func_sched_yield = yes; then
36341 cat >>confdefs.h <<\_ACEOF
36342#define HAVE_SCHED_YIELD 1
36343_ACEOF
36344
36345else
36346
36347 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
36348echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
36349if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
36350 echo $ECHO_N "(cached) $ECHO_C" >&6
36351else
36352 ac_check_lib_save_LIBS=$LIBS
36353LIBS="-lposix4 $LIBS"
36354cat >conftest.$ac_ext <<_ACEOF
36355/* confdefs.h. */
36356_ACEOF
36357cat confdefs.h >>conftest.$ac_ext
36358cat >>conftest.$ac_ext <<_ACEOF
36359/* end confdefs.h. */
36360
36361/* Override any gcc2 internal prototype to avoid an error. */
36362#ifdef __cplusplus
36363extern "C"
36364#endif
36365/* We use char because int might match the return type of a gcc2
36366 builtin and then its argument prototype would still apply. */
36367char sched_yield ();
36368int
36369main ()
36370{
36371sched_yield ();
36372 ;
36373 return 0;
36374}
36375_ACEOF
36376rm -f conftest.$ac_objext conftest$ac_exeext
36377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36378 (eval $ac_link) 2>conftest.er1
a848cd7e 36379 ac_status=$?
ac1cb8d3
VS
36380 grep -v '^ *+' conftest.er1 >conftest.err
36381 rm -f conftest.er1
36382 cat conftest.err >&5
a848cd7e
SC
36383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36384 (exit $ac_status); } &&
6ebeb4c7 36385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36387 (eval $ac_try) 2>&5
36388 ac_status=$?
36389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36390 (exit $ac_status); }; } &&
36391 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36393 (eval $ac_try) 2>&5
36394 ac_status=$?
36395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); }; }; then
36397 ac_cv_lib_posix4_sched_yield=yes
36398else
36399 echo "$as_me: failed program was:" >&5
36400sed 's/^/| /' conftest.$ac_ext >&5
36401
36402ac_cv_lib_posix4_sched_yield=no
36403fi
ac1cb8d3
VS
36404rm -f conftest.err conftest.$ac_objext \
36405 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36406LIBS=$ac_check_lib_save_LIBS
36407fi
36408echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
36409echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
36410if test $ac_cv_lib_posix4_sched_yield = yes; then
36411 cat >>confdefs.h <<\_ACEOF
36412#define HAVE_SCHED_YIELD 1
36413_ACEOF
36414 POSIX4_LINK=" -lposix4"
36415else
36416 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
36417echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
36418
36419fi
36420
36421
36422
36423fi
36424
36425 fi
36426
36427 HAVE_PRIOR_FUNCS=0
36428 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
36429echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
36430if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
36431 echo $ECHO_N "(cached) $ECHO_C" >&6
36432else
36433 cat >conftest.$ac_ext <<_ACEOF
36434/* confdefs.h. */
36435_ACEOF
36436cat confdefs.h >>conftest.$ac_ext
36437cat >>conftest.$ac_ext <<_ACEOF
36438/* end confdefs.h. */
ac1cb8d3
VS
36439/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
36440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36441#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
36442
a848cd7e
SC
36443/* System header to define __stub macros and hopefully few prototypes,
36444 which can conflict with char pthread_attr_getschedpolicy (); below.
36445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36446 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36447
a848cd7e
SC
36448#ifdef __STDC__
36449# include <limits.h>
36450#else
36451# include <assert.h>
36452#endif
ac1cb8d3
VS
36453
36454#undef pthread_attr_getschedpolicy
36455
a848cd7e
SC
36456/* Override any gcc2 internal prototype to avoid an error. */
36457#ifdef __cplusplus
36458extern "C"
36459{
36460#endif
36461/* We use char because int might match the return type of a gcc2
36462 builtin and then its argument prototype would still apply. */
36463char pthread_attr_getschedpolicy ();
36464/* The GNU C library defines this for functions which it implements
36465 to always fail with ENOSYS. Some functions are actually named
36466 something starting with __ and the normal name is an alias. */
36467#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
36468choke me
36469#else
36470char (*f) () = pthread_attr_getschedpolicy;
36471#endif
36472#ifdef __cplusplus
36473}
36474#endif
36475
36476int
36477main ()
36478{
36479return f != pthread_attr_getschedpolicy;
36480 ;
36481 return 0;
36482}
36483_ACEOF
36484rm -f conftest.$ac_objext conftest$ac_exeext
36485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36486 (eval $ac_link) 2>conftest.er1
a848cd7e 36487 ac_status=$?
ac1cb8d3
VS
36488 grep -v '^ *+' conftest.er1 >conftest.err
36489 rm -f conftest.er1
36490 cat conftest.err >&5
a848cd7e
SC
36491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492 (exit $ac_status); } &&
6ebeb4c7 36493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36495 (eval $ac_try) 2>&5
36496 ac_status=$?
36497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36498 (exit $ac_status); }; } &&
36499 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36501 (eval $ac_try) 2>&5
36502 ac_status=$?
36503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504 (exit $ac_status); }; }; then
36505 ac_cv_func_pthread_attr_getschedpolicy=yes
36506else
36507 echo "$as_me: failed program was:" >&5
36508sed 's/^/| /' conftest.$ac_ext >&5
36509
36510ac_cv_func_pthread_attr_getschedpolicy=no
36511fi
ac1cb8d3
VS
36512rm -f conftest.err conftest.$ac_objext \
36513 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36514fi
36515echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
36516echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
36517if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
36518 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
36519echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
36520if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
36521 echo $ECHO_N "(cached) $ECHO_C" >&6
36522else
36523 cat >conftest.$ac_ext <<_ACEOF
36524/* confdefs.h. */
36525_ACEOF
36526cat confdefs.h >>conftest.$ac_ext
36527cat >>conftest.$ac_ext <<_ACEOF
36528/* end confdefs.h. */
ac1cb8d3
VS
36529/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
36530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36531#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
36532
a848cd7e
SC
36533/* System header to define __stub macros and hopefully few prototypes,
36534 which can conflict with char pthread_attr_setschedparam (); below.
36535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36536 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36537
a848cd7e
SC
36538#ifdef __STDC__
36539# include <limits.h>
36540#else
36541# include <assert.h>
36542#endif
ac1cb8d3
VS
36543
36544#undef pthread_attr_setschedparam
36545
a848cd7e
SC
36546/* Override any gcc2 internal prototype to avoid an error. */
36547#ifdef __cplusplus
36548extern "C"
36549{
36550#endif
36551/* We use char because int might match the return type of a gcc2
36552 builtin and then its argument prototype would still apply. */
36553char pthread_attr_setschedparam ();
36554/* The GNU C library defines this for functions which it implements
36555 to always fail with ENOSYS. Some functions are actually named
36556 something starting with __ and the normal name is an alias. */
36557#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
36558choke me
36559#else
36560char (*f) () = pthread_attr_setschedparam;
36561#endif
36562#ifdef __cplusplus
36563}
36564#endif
36565
36566int
36567main ()
36568{
36569return f != pthread_attr_setschedparam;
36570 ;
36571 return 0;
36572}
36573_ACEOF
36574rm -f conftest.$ac_objext conftest$ac_exeext
36575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36576 (eval $ac_link) 2>conftest.er1
a848cd7e 36577 ac_status=$?
ac1cb8d3
VS
36578 grep -v '^ *+' conftest.er1 >conftest.err
36579 rm -f conftest.er1
36580 cat conftest.err >&5
a848cd7e
SC
36581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582 (exit $ac_status); } &&
6ebeb4c7 36583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36585 (eval $ac_try) 2>&5
36586 ac_status=$?
36587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588 (exit $ac_status); }; } &&
36589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591 (eval $ac_try) 2>&5
36592 ac_status=$?
36593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594 (exit $ac_status); }; }; then
36595 ac_cv_func_pthread_attr_setschedparam=yes
36596else
36597 echo "$as_me: failed program was:" >&5
36598sed 's/^/| /' conftest.$ac_ext >&5
36599
36600ac_cv_func_pthread_attr_setschedparam=no
36601fi
ac1cb8d3
VS
36602rm -f conftest.err conftest.$ac_objext \
36603 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36604fi
36605echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
36606echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
36607if test $ac_cv_func_pthread_attr_setschedparam = yes; then
36608 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
36609echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
36610if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
36611 echo $ECHO_N "(cached) $ECHO_C" >&6
36612else
36613 cat >conftest.$ac_ext <<_ACEOF
36614/* confdefs.h. */
36615_ACEOF
36616cat confdefs.h >>conftest.$ac_ext
36617cat >>conftest.$ac_ext <<_ACEOF
36618/* end confdefs.h. */
ac1cb8d3
VS
36619/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
36620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36621#define sched_get_priority_max innocuous_sched_get_priority_max
36622
a848cd7e
SC
36623/* System header to define __stub macros and hopefully few prototypes,
36624 which can conflict with char sched_get_priority_max (); below.
36625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36626 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36627
a848cd7e
SC
36628#ifdef __STDC__
36629# include <limits.h>
36630#else
36631# include <assert.h>
36632#endif
ac1cb8d3
VS
36633
36634#undef sched_get_priority_max
36635
a848cd7e
SC
36636/* Override any gcc2 internal prototype to avoid an error. */
36637#ifdef __cplusplus
36638extern "C"
36639{
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 sched_get_priority_max ();
36644/* The GNU C library defines this for functions which it implements
36645 to always fail with ENOSYS. Some functions are actually named
36646 something starting with __ and the normal name is an alias. */
36647#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
36648choke me
36649#else
36650char (*f) () = sched_get_priority_max;
36651#endif
36652#ifdef __cplusplus
36653}
36654#endif
36655
36656int
36657main ()
36658{
36659return f != sched_get_priority_max;
36660 ;
36661 return 0;
36662}
36663_ACEOF
36664rm -f conftest.$ac_objext conftest$ac_exeext
36665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36666 (eval $ac_link) 2>conftest.er1
a848cd7e 36667 ac_status=$?
ac1cb8d3
VS
36668 grep -v '^ *+' conftest.er1 >conftest.err
36669 rm -f conftest.er1
36670 cat conftest.err >&5
a848cd7e
SC
36671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36672 (exit $ac_status); } &&
6ebeb4c7 36673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36675 (eval $ac_try) 2>&5
36676 ac_status=$?
36677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36678 (exit $ac_status); }; } &&
36679 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36681 (eval $ac_try) 2>&5
36682 ac_status=$?
36683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36684 (exit $ac_status); }; }; then
36685 ac_cv_func_sched_get_priority_max=yes
36686else
36687 echo "$as_me: failed program was:" >&5
36688sed 's/^/| /' conftest.$ac_ext >&5
36689
36690ac_cv_func_sched_get_priority_max=no
36691fi
ac1cb8d3
VS
36692rm -f conftest.err conftest.$ac_objext \
36693 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36694fi
36695echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
36696echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
36697if test $ac_cv_func_sched_get_priority_max = yes; then
36698 HAVE_PRIOR_FUNCS=1
36699else
36700 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
36701echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
36702if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
36703 echo $ECHO_N "(cached) $ECHO_C" >&6
36704else
36705 ac_check_lib_save_LIBS=$LIBS
36706LIBS="-lposix4 $LIBS"
36707cat >conftest.$ac_ext <<_ACEOF
36708/* confdefs.h. */
36709_ACEOF
36710cat confdefs.h >>conftest.$ac_ext
36711cat >>conftest.$ac_ext <<_ACEOF
36712/* end confdefs.h. */
36713
36714/* Override any gcc2 internal prototype to avoid an error. */
36715#ifdef __cplusplus
36716extern "C"
36717#endif
36718/* We use char because int might match the return type of a gcc2
36719 builtin and then its argument prototype would still apply. */
36720char sched_get_priority_max ();
36721int
36722main ()
36723{
36724sched_get_priority_max ();
36725 ;
36726 return 0;
36727}
36728_ACEOF
36729rm -f conftest.$ac_objext conftest$ac_exeext
36730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36731 (eval $ac_link) 2>conftest.er1
a848cd7e 36732 ac_status=$?
ac1cb8d3
VS
36733 grep -v '^ *+' conftest.er1 >conftest.err
36734 rm -f conftest.er1
36735 cat conftest.err >&5
a848cd7e
SC
36736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737 (exit $ac_status); } &&
6ebeb4c7 36738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36740 (eval $ac_try) 2>&5
36741 ac_status=$?
36742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36743 (exit $ac_status); }; } &&
36744 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36746 (eval $ac_try) 2>&5
36747 ac_status=$?
36748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749 (exit $ac_status); }; }; then
36750 ac_cv_lib_posix4_sched_get_priority_max=yes
36751else
36752 echo "$as_me: failed program was:" >&5
36753sed 's/^/| /' conftest.$ac_ext >&5
36754
36755ac_cv_lib_posix4_sched_get_priority_max=no
36756fi
ac1cb8d3
VS
36757rm -f conftest.err conftest.$ac_objext \
36758 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36759LIBS=$ac_check_lib_save_LIBS
36760fi
36761echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
36762echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
36763if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
36764
36765 HAVE_PRIOR_FUNCS=1
36766 POSIX4_LINK=" -lposix4"
36767
36768fi
36769
36770
36771fi
36772
36773
36774fi
36775
36776
36777fi
36778
36779
36780 if test "$HAVE_PRIOR_FUNCS" = 1; then
36781 cat >>confdefs.h <<\_ACEOF
36782#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
36783_ACEOF
36784
36785 else
36786 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
36787echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
36788 fi
36789
36790 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
36791echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
36792if test "${ac_cv_func_pthread_cancel+set}" = set; then
36793 echo $ECHO_N "(cached) $ECHO_C" >&6
36794else
36795 cat >conftest.$ac_ext <<_ACEOF
36796/* confdefs.h. */
36797_ACEOF
36798cat confdefs.h >>conftest.$ac_ext
36799cat >>conftest.$ac_ext <<_ACEOF
36800/* end confdefs.h. */
ac1cb8d3
VS
36801/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
36802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36803#define pthread_cancel innocuous_pthread_cancel
36804
a848cd7e
SC
36805/* System header to define __stub macros and hopefully few prototypes,
36806 which can conflict with char pthread_cancel (); below.
36807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36808 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36809
a848cd7e
SC
36810#ifdef __STDC__
36811# include <limits.h>
36812#else
36813# include <assert.h>
36814#endif
ac1cb8d3
VS
36815
36816#undef pthread_cancel
36817
a848cd7e
SC
36818/* Override any gcc2 internal prototype to avoid an error. */
36819#ifdef __cplusplus
36820extern "C"
36821{
36822#endif
36823/* We use char because int might match the return type of a gcc2
36824 builtin and then its argument prototype would still apply. */
36825char pthread_cancel ();
36826/* The GNU C library defines this for functions which it implements
36827 to always fail with ENOSYS. Some functions are actually named
36828 something starting with __ and the normal name is an alias. */
36829#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
36830choke me
36831#else
36832char (*f) () = pthread_cancel;
36833#endif
36834#ifdef __cplusplus
36835}
36836#endif
36837
36838int
36839main ()
36840{
36841return f != pthread_cancel;
36842 ;
36843 return 0;
36844}
36845_ACEOF
36846rm -f conftest.$ac_objext conftest$ac_exeext
36847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36848 (eval $ac_link) 2>conftest.er1
a848cd7e 36849 ac_status=$?
ac1cb8d3
VS
36850 grep -v '^ *+' conftest.er1 >conftest.err
36851 rm -f conftest.er1
36852 cat conftest.err >&5
a848cd7e
SC
36853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36854 (exit $ac_status); } &&
6ebeb4c7 36855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36857 (eval $ac_try) 2>&5
36858 ac_status=$?
36859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36860 (exit $ac_status); }; } &&
36861 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36863 (eval $ac_try) 2>&5
36864 ac_status=$?
36865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866 (exit $ac_status); }; }; then
36867 ac_cv_func_pthread_cancel=yes
36868else
36869 echo "$as_me: failed program was:" >&5
36870sed 's/^/| /' conftest.$ac_ext >&5
36871
36872ac_cv_func_pthread_cancel=no
36873fi
ac1cb8d3
VS
36874rm -f conftest.err conftest.$ac_objext \
36875 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36876fi
36877echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
36878echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
36879if test $ac_cv_func_pthread_cancel = yes; then
36880 cat >>confdefs.h <<\_ACEOF
36881#define HAVE_PTHREAD_CANCEL 1
36882_ACEOF
36883
36884else
36885 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
36886echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
36887fi
36888
36889
abc736fd
MW
36890 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
36891echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
36892if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
36893 echo $ECHO_N "(cached) $ECHO_C" >&6
36894else
36895 cat >conftest.$ac_ext <<_ACEOF
36896/* confdefs.h. */
36897_ACEOF
36898cat confdefs.h >>conftest.$ac_ext
36899cat >>conftest.$ac_ext <<_ACEOF
36900/* end confdefs.h. */
36901/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
36902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36903#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
36904
36905/* System header to define __stub macros and hopefully few prototypes,
36906 which can conflict with char pthread_attr_setstacksize (); below.
36907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36908 <limits.h> exists even on freestanding compilers. */
36909
36910#ifdef __STDC__
36911# include <limits.h>
36912#else
36913# include <assert.h>
36914#endif
36915
36916#undef pthread_attr_setstacksize
36917
36918/* Override any gcc2 internal prototype to avoid an error. */
36919#ifdef __cplusplus
36920extern "C"
36921{
36922#endif
36923/* We use char because int might match the return type of a gcc2
36924 builtin and then its argument prototype would still apply. */
36925char pthread_attr_setstacksize ();
36926/* The GNU C library defines this for functions which it implements
36927 to always fail with ENOSYS. Some functions are actually named
36928 something starting with __ and the normal name is an alias. */
36929#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
36930choke me
36931#else
36932char (*f) () = pthread_attr_setstacksize;
36933#endif
36934#ifdef __cplusplus
36935}
36936#endif
36937
36938int
36939main ()
36940{
36941return f != pthread_attr_setstacksize;
36942 ;
36943 return 0;
36944}
36945_ACEOF
36946rm -f conftest.$ac_objext conftest$ac_exeext
36947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36948 (eval $ac_link) 2>conftest.er1
36949 ac_status=$?
36950 grep -v '^ *+' conftest.er1 >conftest.err
36951 rm -f conftest.er1
36952 cat conftest.err >&5
36953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954 (exit $ac_status); } &&
6ebeb4c7 36955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
36956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36957 (eval $ac_try) 2>&5
36958 ac_status=$?
36959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960 (exit $ac_status); }; } &&
36961 { ac_try='test -s conftest$ac_exeext'
36962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36963 (eval $ac_try) 2>&5
36964 ac_status=$?
36965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36966 (exit $ac_status); }; }; then
36967 ac_cv_func_pthread_attr_setstacksize=yes
36968else
36969 echo "$as_me: failed program was:" >&5
36970sed 's/^/| /' conftest.$ac_ext >&5
36971
36972ac_cv_func_pthread_attr_setstacksize=no
36973fi
36974rm -f conftest.err conftest.$ac_objext \
36975 conftest$ac_exeext conftest.$ac_ext
36976fi
36977echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
36978echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
36979if test $ac_cv_func_pthread_attr_setstacksize = yes; then
36980 cat >>confdefs.h <<\_ACEOF
36981#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
36982_ACEOF
36983
36984fi
36985
a848cd7e
SC
36986
36987
36988 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
36989echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
36990if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
36991 echo $ECHO_N "(cached) $ECHO_C" >&6
36992else
36993
36994 cat >conftest.$ac_ext <<_ACEOF
36995/* confdefs.h. */
36996_ACEOF
36997cat confdefs.h >>conftest.$ac_ext
36998cat >>conftest.$ac_ext <<_ACEOF
36999/* end confdefs.h. */
37000#include <pthread.h>
37001int
37002main ()
37003{
37004
37005 pthread_mutexattr_t attr;
37006 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37007
37008 ;
37009 return 0;
37010}
37011_ACEOF
37012rm -f conftest.$ac_objext
37013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37014 (eval $ac_compile) 2>conftest.er1
a848cd7e 37015 ac_status=$?
ac1cb8d3
VS
37016 grep -v '^ *+' conftest.er1 >conftest.err
37017 rm -f conftest.er1
37018 cat conftest.err >&5
a848cd7e
SC
37019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37020 (exit $ac_status); } &&
6ebeb4c7 37021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37023 (eval $ac_try) 2>&5
37024 ac_status=$?
37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026 (exit $ac_status); }; } &&
37027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37029 (eval $ac_try) 2>&5
37030 ac_status=$?
37031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032 (exit $ac_status); }; }; then
37033
37034 wx_cv_type_pthread_mutexattr_t=yes
37035
37036else
37037 echo "$as_me: failed program was:" >&5
37038sed 's/^/| /' conftest.$ac_ext >&5
37039
37040
37041 wx_cv_type_pthread_mutexattr_t=no
37042
37043
37044fi
ac1cb8d3 37045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37046
37047fi
37048echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37049echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37050
37051 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37052 cat >>confdefs.h <<\_ACEOF
37053#define HAVE_PTHREAD_MUTEXATTR_T 1
37054_ACEOF
37055
37056 else
37057 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37058echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37059if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37060 echo $ECHO_N "(cached) $ECHO_C" >&6
37061else
37062
37063 cat >conftest.$ac_ext <<_ACEOF
37064/* confdefs.h. */
37065_ACEOF
37066cat confdefs.h >>conftest.$ac_ext
37067cat >>conftest.$ac_ext <<_ACEOF
37068/* end confdefs.h. */
37069#include <pthread.h>
37070int
37071main ()
37072{
37073
37074 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37075
37076 ;
37077 return 0;
37078}
37079_ACEOF
37080rm -f conftest.$ac_objext
37081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37082 (eval $ac_compile) 2>conftest.er1
a848cd7e 37083 ac_status=$?
ac1cb8d3
VS
37084 grep -v '^ *+' conftest.er1 >conftest.err
37085 rm -f conftest.er1
37086 cat conftest.err >&5
a848cd7e
SC
37087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37088 (exit $ac_status); } &&
6ebeb4c7 37089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37091 (eval $ac_try) 2>&5
37092 ac_status=$?
37093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37094 (exit $ac_status); }; } &&
37095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37097 (eval $ac_try) 2>&5
37098 ac_status=$?
37099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37100 (exit $ac_status); }; }; then
37101
37102 wx_cv_type_pthread_rec_mutex_init=yes
37103
37104else
37105 echo "$as_me: failed program was:" >&5
37106sed 's/^/| /' conftest.$ac_ext >&5
37107
37108
37109 wx_cv_type_pthread_rec_mutex_init=no
37110
37111
37112fi
ac1cb8d3 37113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37114
37115fi
37116echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37117echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37118 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37119 cat >>confdefs.h <<\_ACEOF
37120#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37121_ACEOF
37122
37123 else
37124 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37125echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37126 fi
37127 fi
37128 fi
37129
37130else
37131 if test "$wxUSE_THREADS" = "yes" ; then
37132 case "${host}" in
37133 *-*-mingw32* )
37134 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37135echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37136if test "${wx_cv_cflags_mthread+set}" = set; then
37137 echo $ECHO_N "(cached) $ECHO_C" >&6
37138else
37139
37140 CFLAGS_OLD="$CFLAGS"
37141 CFLAGS="$CFLAGS -mthreads"
37142 cat >conftest.$ac_ext <<_ACEOF
37143/* confdefs.h. */
37144_ACEOF
37145cat confdefs.h >>conftest.$ac_ext
37146cat >>conftest.$ac_ext <<_ACEOF
37147/* end confdefs.h. */
37148
37149int
37150main ()
37151{
37152
37153 ;
37154 return 0;
37155}
37156_ACEOF
37157rm -f conftest.$ac_objext
37158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37159 (eval $ac_compile) 2>conftest.er1
a848cd7e 37160 ac_status=$?
ac1cb8d3
VS
37161 grep -v '^ *+' conftest.er1 >conftest.err
37162 rm -f conftest.er1
37163 cat conftest.err >&5
a848cd7e
SC
37164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37165 (exit $ac_status); } &&
6ebeb4c7 37166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37168 (eval $ac_try) 2>&5
37169 ac_status=$?
37170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171 (exit $ac_status); }; } &&
37172 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37174 (eval $ac_try) 2>&5
37175 ac_status=$?
37176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); }; }; then
37178 wx_cv_cflags_mthread=yes
37179else
37180 echo "$as_me: failed program was:" >&5
37181sed 's/^/| /' conftest.$ac_ext >&5
37182
37183wx_cv_cflags_mthread=no
37184
37185fi
ac1cb8d3 37186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37187
37188
37189fi
37190echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37191echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37192
37193 if test "$wx_cv_cflags_mthread" = "yes"; then
37194 CXXFLAGS="$CXXFLAGS -mthreads"
37195 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
37196 LDFLAGS="$LDFLAGS -mthreads"
37197 else
37198 CFLAGS="$CFLAGS_OLD"
37199 fi
37200 ;;
37201 *-pc-os2*emx )
37202 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
37203 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
37204 LDFLAGS="$LDFLAGS -Zmt"
37205 ;;
37206 esac
37207 fi
37208fi
37209
37210if test "$wxUSE_THREADS" = "yes"; then
37211 cat >>confdefs.h <<\_ACEOF
37212#define wxUSE_THREADS 1
37213_ACEOF
37214
37215
37216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37217else
37218 if test "$ac_cv_func_strtok_r" = "yes"; then
37219 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37220echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37221 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
37222 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
37223 echo "$as_me:$LINENO: result: yes" >&5
37224echo "${ECHO_T}yes" >&6
37225 else
37226 echo "$as_me:$LINENO: result: no" >&5
37227echo "${ECHO_T}no" >&6
37228 fi
37229 fi
37230fi
37231
37232if test "$WXGTK20" = 1 ; then
37233 cat >>confdefs.h <<_ACEOF
37234#define __WXGTK20__ $WXGTK20
37235_ACEOF
37236
37237 WXGTK12=1
37238fi
37239
37240if test "$WXGTK12" = 1 ; then
37241 cat >>confdefs.h <<_ACEOF
37242#define __WXGTK12__ $WXGTK12
37243_ACEOF
37244
37245fi
37246
37247if test "$WXGTK127" = 1 ; then
37248 cat >>confdefs.h <<_ACEOF
37249#define __WXGTK127__ $WXGTK127
37250_ACEOF
37251
37252fi
37253
37254if test "$WXGPE" = 1 ; then
37255 cat >>confdefs.h <<_ACEOF
37256#define __WXGPE__ $WXGPE
37257_ACEOF
37258
37259fi
37260
37261WXDEBUG=
37262
37263if test "$wxUSE_DEBUG_INFO" = "yes" ; then
37264 WXDEBUG="-g"
37265 wxUSE_OPTIMISE=no
37266fi
37267
37268if test "$wxUSE_DEBUG_GDB" = "yes" ; then
37269 wxUSE_DEBUG_INFO=yes
18228ab4
MW
37270 if test "$GCC" = yes; then
37271 WXDEBUG="-ggdb"
37272 fi
a848cd7e
SC
37273fi
37274
37275if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
37276 cat >>confdefs.h <<\_ACEOF
37277#define WXDEBUG 1
37278_ACEOF
37279
37280 WXDEBUG_DEFINE="-D__WXDEBUG__"
37281else
37282 if test "$wxUSE_GTK" = 1 ; then
37283 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
37284 fi
37285fi
37286
37287if test "$wxUSE_MEM_TRACING" = "yes" ; then
37288 cat >>confdefs.h <<\_ACEOF
37289#define wxUSE_MEMORY_TRACING 1
37290_ACEOF
37291
37292 cat >>confdefs.h <<\_ACEOF
37293#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
37294_ACEOF
37295
37296 cat >>confdefs.h <<\_ACEOF
37297#define wxUSE_DEBUG_NEW_ALWAYS 1
37298_ACEOF
37299
37300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
37301fi
37302
37303if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 37304 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
37305fi
37306
37307PROFILE=
37308if test "$wxUSE_PROFILE" = "yes" ; then
37309 PROFILE=" -pg"
37310fi
37311
37312CODE_GEN_FLAGS=
37313CODE_GEN_FLAGS_CXX=
37314if test "$GCC" = "yes" ; then
37315 if test "$wxUSE_NO_RTTI" = "yes" ; then
37316 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
37317 fi
37318 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37319 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
37320 fi
37321 if test "$wxUSE_PERMISSIVE" = "yes" ; then
37322 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
37323 fi
37324
37325 case "${host}" in
37326 powerpc*-*-aix* )
37327 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
37328 ;;
37329 *-hppa* )
37330 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
37331 ;;
37332 esac
37333fi
37334
37335OPTIMISE=
37336if test "$wxUSE_OPTIMISE" = "no" ; then
37337 if test "$GCC" = yes ; then
37338 OPTIMISE="-O0"
37339 fi
37340else
37341 if test "$GCC" = yes ; then
37342 OPTIMISE="-O2"
37343
37344 case "${host}" in
37345 i586-*-*|i686-*-* )
37346 OPTIMISE="${OPTIMISE} "
37347 ;;
37348 esac
37349 else
37350 OPTIMISE="-O"
37351 fi
37352fi
37353
37354
37355if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
37356 cat >>confdefs.h <<\_ACEOF
37357#define WXWIN_COMPATIBILITY_2_2 1
37358_ACEOF
37359
37360
37361 WXWIN_COMPATIBILITY_2_4="yes"
37362fi
37363
37364if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
37365 cat >>confdefs.h <<\_ACEOF
37366#define WXWIN_COMPATIBILITY_2_4 1
37367_ACEOF
37368
37369fi
37370
37371
37372if test "$wxUSE_GUI" = "yes"; then
881bfcd6 37373 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37374#define wxUSE_GUI 1
37375_ACEOF
37376
37377
370fd4c2 37378 fi
a848cd7e
SC
37379
37380
37381if test "$wxUSE_UNIX" = "yes"; then
37382 cat >>confdefs.h <<\_ACEOF
37383#define wxUSE_UNIX 1
37384_ACEOF
37385
37386fi
37387
37388
37389if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37390
37391 HAVE_DL_FUNCS=0
37392 HAVE_SHL_FUNCS=0
37393 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
37394 if test "$USE_DARWIN" = 1; then
37395 HAVE_DL_FUNCS=1
47a7e797
MW
37396 elif test "$USE_DOS" = 1; then
37397 HAVE_DL_FUNCS=0
a848cd7e
SC
37398 else
37399
37400for ac_func in dlopen
37401do
37402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37403echo "$as_me:$LINENO: checking for $ac_func" >&5
37404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37405if eval "test \"\${$as_ac_var+set}\" = set"; then
37406 echo $ECHO_N "(cached) $ECHO_C" >&6
37407else
37408 cat >conftest.$ac_ext <<_ACEOF
37409/* confdefs.h. */
37410_ACEOF
37411cat confdefs.h >>conftest.$ac_ext
37412cat >>conftest.$ac_ext <<_ACEOF
37413/* end confdefs.h. */
ac1cb8d3
VS
37414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37416#define $ac_func innocuous_$ac_func
37417
a848cd7e
SC
37418/* System header to define __stub macros and hopefully few prototypes,
37419 which can conflict with char $ac_func (); below.
37420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37421 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37422
a848cd7e
SC
37423#ifdef __STDC__
37424# include <limits.h>
37425#else
37426# include <assert.h>
37427#endif
ac1cb8d3
VS
37428
37429#undef $ac_func
37430
a848cd7e
SC
37431/* Override any gcc2 internal prototype to avoid an error. */
37432#ifdef __cplusplus
37433extern "C"
37434{
37435#endif
37436/* We use char because int might match the return type of a gcc2
37437 builtin and then its argument prototype would still apply. */
37438char $ac_func ();
37439/* The GNU C library defines this for functions which it implements
37440 to always fail with ENOSYS. Some functions are actually named
37441 something starting with __ and the normal name is an alias. */
37442#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37443choke me
37444#else
37445char (*f) () = $ac_func;
37446#endif
37447#ifdef __cplusplus
37448}
37449#endif
37450
37451int
37452main ()
37453{
37454return f != $ac_func;
37455 ;
37456 return 0;
37457}
37458_ACEOF
37459rm -f conftest.$ac_objext conftest$ac_exeext
37460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37461 (eval $ac_link) 2>conftest.er1
a848cd7e 37462 ac_status=$?
ac1cb8d3
VS
37463 grep -v '^ *+' conftest.er1 >conftest.err
37464 rm -f conftest.er1
37465 cat conftest.err >&5
a848cd7e
SC
37466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37467 (exit $ac_status); } &&
6ebeb4c7 37468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37470 (eval $ac_try) 2>&5
37471 ac_status=$?
37472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37473 (exit $ac_status); }; } &&
37474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37476 (eval $ac_try) 2>&5
37477 ac_status=$?
37478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37479 (exit $ac_status); }; }; then
37480 eval "$as_ac_var=yes"
37481else
37482 echo "$as_me: failed program was:" >&5
37483sed 's/^/| /' conftest.$ac_ext >&5
37484
37485eval "$as_ac_var=no"
37486fi
ac1cb8d3
VS
37487rm -f conftest.err conftest.$ac_objext \
37488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37489fi
37490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37491echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37492if test `eval echo '${'$as_ac_var'}'` = yes; then
37493 cat >>confdefs.h <<_ACEOF
37494#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37495_ACEOF
37496
37497 cat >>confdefs.h <<\_ACEOF
37498#define HAVE_DLOPEN 1
37499_ACEOF
37500
37501 HAVE_DL_FUNCS=1
37502
37503else
37504
37505 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37506echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
37507if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37508 echo $ECHO_N "(cached) $ECHO_C" >&6
37509else
37510 ac_check_lib_save_LIBS=$LIBS
37511LIBS="-ldl $LIBS"
37512cat >conftest.$ac_ext <<_ACEOF
37513/* confdefs.h. */
37514_ACEOF
37515cat confdefs.h >>conftest.$ac_ext
37516cat >>conftest.$ac_ext <<_ACEOF
37517/* end confdefs.h. */
37518
37519/* Override any gcc2 internal prototype to avoid an error. */
37520#ifdef __cplusplus
37521extern "C"
37522#endif
37523/* We use char because int might match the return type of a gcc2
37524 builtin and then its argument prototype would still apply. */
37525char dlopen ();
37526int
37527main ()
37528{
37529dlopen ();
37530 ;
37531 return 0;
37532}
37533_ACEOF
37534rm -f conftest.$ac_objext conftest$ac_exeext
37535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37536 (eval $ac_link) 2>conftest.er1
a848cd7e 37537 ac_status=$?
ac1cb8d3
VS
37538 grep -v '^ *+' conftest.er1 >conftest.err
37539 rm -f conftest.er1
37540 cat conftest.err >&5
a848cd7e
SC
37541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542 (exit $ac_status); } &&
6ebeb4c7 37543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37545 (eval $ac_try) 2>&5
37546 ac_status=$?
37547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548 (exit $ac_status); }; } &&
37549 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37551 (eval $ac_try) 2>&5
37552 ac_status=$?
37553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554 (exit $ac_status); }; }; then
37555 ac_cv_lib_dl_dlopen=yes
37556else
37557 echo "$as_me: failed program was:" >&5
37558sed 's/^/| /' conftest.$ac_ext >&5
37559
37560ac_cv_lib_dl_dlopen=no
37561fi
ac1cb8d3
VS
37562rm -f conftest.err conftest.$ac_objext \
37563 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37564LIBS=$ac_check_lib_save_LIBS
37565fi
37566echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37567echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
37568if test $ac_cv_lib_dl_dlopen = yes; then
37569
37570 cat >>confdefs.h <<\_ACEOF
37571#define HAVE_DLOPEN 1
37572_ACEOF
37573
37574 HAVE_DL_FUNCS=1
37575 DL_LINK=" -ldl$DL_LINK"
37576
37577else
37578
37579
37580for ac_func in shl_load
37581do
37582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37583echo "$as_me:$LINENO: checking for $ac_func" >&5
37584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37585if eval "test \"\${$as_ac_var+set}\" = set"; then
37586 echo $ECHO_N "(cached) $ECHO_C" >&6
37587else
37588 cat >conftest.$ac_ext <<_ACEOF
37589/* confdefs.h. */
37590_ACEOF
37591cat confdefs.h >>conftest.$ac_ext
37592cat >>conftest.$ac_ext <<_ACEOF
37593/* end confdefs.h. */
ac1cb8d3
VS
37594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37596#define $ac_func innocuous_$ac_func
37597
a848cd7e
SC
37598/* System header to define __stub macros and hopefully few prototypes,
37599 which can conflict with char $ac_func (); below.
37600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37601 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37602
a848cd7e
SC
37603#ifdef __STDC__
37604# include <limits.h>
37605#else
37606# include <assert.h>
37607#endif
ac1cb8d3
VS
37608
37609#undef $ac_func
37610
a848cd7e
SC
37611/* Override any gcc2 internal prototype to avoid an error. */
37612#ifdef __cplusplus
37613extern "C"
37614{
37615#endif
37616/* We use char because int might match the return type of a gcc2
37617 builtin and then its argument prototype would still apply. */
37618char $ac_func ();
37619/* The GNU C library defines this for functions which it implements
37620 to always fail with ENOSYS. Some functions are actually named
37621 something starting with __ and the normal name is an alias. */
37622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37623choke me
37624#else
37625char (*f) () = $ac_func;
37626#endif
37627#ifdef __cplusplus
37628}
37629#endif
37630
37631int
37632main ()
37633{
37634return f != $ac_func;
37635 ;
37636 return 0;
37637}
37638_ACEOF
37639rm -f conftest.$ac_objext conftest$ac_exeext
37640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37641 (eval $ac_link) 2>conftest.er1
a848cd7e 37642 ac_status=$?
ac1cb8d3
VS
37643 grep -v '^ *+' conftest.er1 >conftest.err
37644 rm -f conftest.er1
37645 cat conftest.err >&5
a848cd7e
SC
37646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); } &&
6ebeb4c7 37648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37650 (eval $ac_try) 2>&5
37651 ac_status=$?
37652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37653 (exit $ac_status); }; } &&
37654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37656 (eval $ac_try) 2>&5
37657 ac_status=$?
37658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37659 (exit $ac_status); }; }; then
37660 eval "$as_ac_var=yes"
37661else
37662 echo "$as_me: failed program was:" >&5
37663sed 's/^/| /' conftest.$ac_ext >&5
37664
37665eval "$as_ac_var=no"
37666fi
ac1cb8d3
VS
37667rm -f conftest.err conftest.$ac_objext \
37668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37669fi
37670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37671echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37672if test `eval echo '${'$as_ac_var'}'` = yes; then
37673 cat >>confdefs.h <<_ACEOF
37674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37675_ACEOF
37676
37677 cat >>confdefs.h <<\_ACEOF
37678#define HAVE_SHL_LOAD 1
37679_ACEOF
37680
37681 HAVE_SHL_FUNCS=1
37682
37683else
37684
37685 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
37686echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
37687if test "${ac_cv_lib_shl_load_dld+set}" = set; then
37688 echo $ECHO_N "(cached) $ECHO_C" >&6
37689else
37690 ac_check_lib_save_LIBS=$LIBS
37691LIBS="-lshl_load $LIBS"
37692cat >conftest.$ac_ext <<_ACEOF
37693/* confdefs.h. */
37694_ACEOF
37695cat confdefs.h >>conftest.$ac_ext
37696cat >>conftest.$ac_ext <<_ACEOF
37697/* end confdefs.h. */
37698
37699/* Override any gcc2 internal prototype to avoid an error. */
37700#ifdef __cplusplus
37701extern "C"
37702#endif
37703/* We use char because int might match the return type of a gcc2
37704 builtin and then its argument prototype would still apply. */
37705char dld ();
37706int
37707main ()
37708{
37709dld ();
37710 ;
37711 return 0;
37712}
37713_ACEOF
37714rm -f conftest.$ac_objext conftest$ac_exeext
37715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37716 (eval $ac_link) 2>conftest.er1
a848cd7e 37717 ac_status=$?
ac1cb8d3
VS
37718 grep -v '^ *+' conftest.er1 >conftest.err
37719 rm -f conftest.er1
37720 cat conftest.err >&5
a848cd7e
SC
37721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37722 (exit $ac_status); } &&
6ebeb4c7 37723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37725 (eval $ac_try) 2>&5
37726 ac_status=$?
37727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37728 (exit $ac_status); }; } &&
37729 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37731 (eval $ac_try) 2>&5
37732 ac_status=$?
37733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734 (exit $ac_status); }; }; then
37735 ac_cv_lib_shl_load_dld=yes
37736else
37737 echo "$as_me: failed program was:" >&5
37738sed 's/^/| /' conftest.$ac_ext >&5
37739
37740ac_cv_lib_shl_load_dld=no
37741fi
ac1cb8d3
VS
37742rm -f conftest.err conftest.$ac_objext \
37743 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37744LIBS=$ac_check_lib_save_LIBS
37745fi
37746echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
37747echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
37748if test $ac_cv_lib_shl_load_dld = yes; then
37749
37750 HAVE_SHL_FUNCS=1
37751 DL_LINK=" -ldld$DL_LINK"
37752
37753fi
37754
37755
37756fi
37757done
37758
37759
37760fi
37761
37762
37763fi
37764done
37765
37766
37767 if test "$HAVE_DL_FUNCS" = 1; then
37768
37769for ac_func in dlerror
37770do
37771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37772echo "$as_me:$LINENO: checking for $ac_func" >&5
37773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37774if eval "test \"\${$as_ac_var+set}\" = set"; then
37775 echo $ECHO_N "(cached) $ECHO_C" >&6
37776else
37777 cat >conftest.$ac_ext <<_ACEOF
37778/* confdefs.h. */
37779_ACEOF
37780cat confdefs.h >>conftest.$ac_ext
37781cat >>conftest.$ac_ext <<_ACEOF
37782/* end confdefs.h. */
ac1cb8d3
VS
37783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37785#define $ac_func innocuous_$ac_func
37786
a848cd7e
SC
37787/* System header to define __stub macros and hopefully few prototypes,
37788 which can conflict with char $ac_func (); below.
37789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37790 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37791
a848cd7e
SC
37792#ifdef __STDC__
37793# include <limits.h>
37794#else
37795# include <assert.h>
37796#endif
ac1cb8d3
VS
37797
37798#undef $ac_func
37799
a848cd7e
SC
37800/* Override any gcc2 internal prototype to avoid an error. */
37801#ifdef __cplusplus
37802extern "C"
37803{
37804#endif
37805/* We use char because int might match the return type of a gcc2
37806 builtin and then its argument prototype would still apply. */
37807char $ac_func ();
37808/* The GNU C library defines this for functions which it implements
37809 to always fail with ENOSYS. Some functions are actually named
37810 something starting with __ and the normal name is an alias. */
37811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37812choke me
37813#else
37814char (*f) () = $ac_func;
37815#endif
37816#ifdef __cplusplus
37817}
37818#endif
37819
37820int
37821main ()
37822{
37823return f != $ac_func;
37824 ;
37825 return 0;
37826}
37827_ACEOF
37828rm -f conftest.$ac_objext conftest$ac_exeext
37829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37830 (eval $ac_link) 2>conftest.er1
a848cd7e 37831 ac_status=$?
ac1cb8d3
VS
37832 grep -v '^ *+' conftest.er1 >conftest.err
37833 rm -f conftest.er1
37834 cat conftest.err >&5
a848cd7e
SC
37835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836 (exit $ac_status); } &&
6ebeb4c7 37837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37839 (eval $ac_try) 2>&5
37840 ac_status=$?
37841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37842 (exit $ac_status); }; } &&
37843 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37845 (eval $ac_try) 2>&5
37846 ac_status=$?
37847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37848 (exit $ac_status); }; }; then
37849 eval "$as_ac_var=yes"
37850else
37851 echo "$as_me: failed program was:" >&5
37852sed 's/^/| /' conftest.$ac_ext >&5
37853
37854eval "$as_ac_var=no"
37855fi
ac1cb8d3
VS
37856rm -f conftest.err conftest.$ac_objext \
37857 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37858fi
37859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37860echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37861if test `eval echo '${'$as_ac_var'}'` = yes; then
37862 cat >>confdefs.h <<_ACEOF
37863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37864_ACEOF
37865 cat >>confdefs.h <<\_ACEOF
37866#define HAVE_DLERROR 1
37867_ACEOF
37868
37869else
37870
37871 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
37872echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
37873if test "${ac_cv_lib_dl_dlerror+set}" = set; then
37874 echo $ECHO_N "(cached) $ECHO_C" >&6
37875else
37876 ac_check_lib_save_LIBS=$LIBS
37877LIBS="-ldl $LIBS"
37878cat >conftest.$ac_ext <<_ACEOF
37879/* confdefs.h. */
37880_ACEOF
37881cat confdefs.h >>conftest.$ac_ext
37882cat >>conftest.$ac_ext <<_ACEOF
37883/* end confdefs.h. */
37884
37885/* Override any gcc2 internal prototype to avoid an error. */
37886#ifdef __cplusplus
37887extern "C"
37888#endif
37889/* We use char because int might match the return type of a gcc2
37890 builtin and then its argument prototype would still apply. */
37891char dlerror ();
37892int
37893main ()
37894{
37895dlerror ();
37896 ;
37897 return 0;
37898}
37899_ACEOF
37900rm -f conftest.$ac_objext conftest$ac_exeext
37901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37902 (eval $ac_link) 2>conftest.er1
a848cd7e 37903 ac_status=$?
ac1cb8d3
VS
37904 grep -v '^ *+' conftest.er1 >conftest.err
37905 rm -f conftest.er1
37906 cat conftest.err >&5
a848cd7e
SC
37907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37908 (exit $ac_status); } &&
6ebeb4c7 37909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37911 (eval $ac_try) 2>&5
37912 ac_status=$?
37913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37914 (exit $ac_status); }; } &&
37915 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37917 (eval $ac_try) 2>&5
37918 ac_status=$?
37919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920 (exit $ac_status); }; }; then
37921 ac_cv_lib_dl_dlerror=yes
37922else
37923 echo "$as_me: failed program was:" >&5
37924sed 's/^/| /' conftest.$ac_ext >&5
37925
37926ac_cv_lib_dl_dlerror=no
37927fi
ac1cb8d3
VS
37928rm -f conftest.err conftest.$ac_objext \
37929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37930LIBS=$ac_check_lib_save_LIBS
37931fi
37932echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
37933echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
37934if test $ac_cv_lib_dl_dlerror = yes; then
37935 cat >>confdefs.h <<\_ACEOF
37936#define HAVE_DLERROR 1
37937_ACEOF
37938
37939fi
37940
37941
37942
37943fi
37944done
37945
37946 fi
37947 fi
37948
37949 if test "$HAVE_DL_FUNCS" = 0; then
37950 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 37951 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
37952 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
37953echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
37954 wxUSE_DYNAMIC_LOADER=no
37955 wxUSE_DYNLIB_CLASS=no
37956 else
37957 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
37958echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
37959 fi
37960 fi
37961 fi
37962 fi
37963fi
37964
37965if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
37966 cat >>confdefs.h <<\_ACEOF
37967#define wxUSE_DYNAMIC_LOADER 1
37968_ACEOF
37969
37970fi
37971if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
37972 cat >>confdefs.h <<\_ACEOF
37973#define wxUSE_DYNLIB_CLASS 1
37974_ACEOF
37975
37976fi
37977
37978
37979
37980if test "$wxUSE_PLUGINS" = "yes" ; then
37981 if test "$wxUSE_SHARED" = "no" ; then
37982 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
37983echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
37984 wxUSE_PLUGINS=no
37985 fi
37986 if test "$wxUSE_MONOLITHIC" = "yes" ; then
37987 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
37988echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
37989 wxUSE_PLUGINS=no
37990 fi
37991 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
37992 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
37993echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
37994 wxUSE_PLUGINS=no
37995 fi
37996 if test "$wxUSE_PLUGINS" = "yes" ; then
37997 cat >>confdefs.h <<\_ACEOF
37998#define wxUSE_PLUGINS 1
37999_ACEOF
38000
38001 fi
38002fi
38003
38004
38005if test "$wxUSE_STL" = "yes"; then
38006 cat >>confdefs.h <<\_ACEOF
38007#define wxUSE_STL 1
38008_ACEOF
38009
38010fi
38011
38012if test "$wxUSE_APPLE_IEEE" = "yes"; then
38013 cat >>confdefs.h <<\_ACEOF
38014#define wxUSE_APPLE_IEEE 1
38015_ACEOF
38016
38017fi
38018
38019if test "$wxUSE_TIMER" = "yes"; then
38020 cat >>confdefs.h <<\_ACEOF
38021#define wxUSE_TIMER 1
38022_ACEOF
38023
38024fi
38025
9c112555 38026if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
38027 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38028echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38029if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 38030 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38031else
d12aef51
VZ
38032
38033 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38034/* confdefs.h. */
38035_ACEOF
38036cat confdefs.h >>conftest.$ac_ext
38037cat >>conftest.$ac_ext <<_ACEOF
38038/* end confdefs.h. */
d12aef51
VZ
38039
38040 #include <sys/soundcard.h>
38041
38042int
38043main ()
38044{
38045
38046 ioctl(0, SNDCTL_DSP_SYNC, 0);
38047
38048 ;
38049 return 0;
38050}
a848cd7e 38051_ACEOF
d12aef51
VZ
38052rm -f conftest.$ac_objext conftest$ac_exeext
38053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38054 (eval $ac_link) 2>conftest.er1
a848cd7e 38055 ac_status=$?
ac1cb8d3
VS
38056 grep -v '^ *+' conftest.er1 >conftest.err
38057 rm -f conftest.er1
38058 cat conftest.err >&5
a848cd7e
SC
38059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38060 (exit $ac_status); } &&
6ebeb4c7 38061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38063 (eval $ac_try) 2>&5
38064 ac_status=$?
38065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38066 (exit $ac_status); }; } &&
d12aef51 38067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38069 (eval $ac_try) 2>&5
38070 ac_status=$?
38071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38072 (exit $ac_status); }; }; then
d12aef51 38073 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38074else
38075 echo "$as_me: failed program was:" >&5
38076sed 's/^/| /' conftest.$ac_ext >&5
38077
a848cd7e 38078
d12aef51
VZ
38079 saveLibs="$LIBS"
38080 LIBS="$saveLibs -lossaudio"
38081 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38082/* confdefs.h. */
38083_ACEOF
38084cat confdefs.h >>conftest.$ac_ext
38085cat >>conftest.$ac_ext <<_ACEOF
38086/* end confdefs.h. */
d12aef51
VZ
38087
38088 #include <sys/soundcard.h>
38089
38090int
38091main ()
38092{
38093
38094 ioctl(0, SNDCTL_DSP_SYNC, 0);
38095
38096 ;
38097 return 0;
38098}
a848cd7e 38099_ACEOF
d12aef51
VZ
38100rm -f conftest.$ac_objext conftest$ac_exeext
38101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38102 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
38103 ac_status=$?
38104 grep -v '^ *+' conftest.er1 >conftest.err
38105 rm -f conftest.er1
38106 cat conftest.err >&5
38107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51
VZ
38108 (exit $ac_status); } &&
38109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38111 (eval $ac_try) 2>&5
38112 ac_status=$?
38113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38114 (exit $ac_status); }; } &&
38115 { ac_try='test -s conftest$ac_exeext'
38116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38117 (eval $ac_try) 2>&5
38118 ac_status=$?
38119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38120 (exit $ac_status); }; }; then
38121 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38122else
38123 echo "$as_me: failed program was:" >&5
38124sed 's/^/| /' conftest.$ac_ext >&5
38125
a848cd7e 38126
d12aef51
VZ
38127 LIBS="$saveLibs"
38128 ac_cv_header_sys_soundcard=no
38129
38130
a848cd7e 38131fi
d12aef51
VZ
38132rm -f conftest.err conftest.$ac_objext \
38133 conftest$ac_exeext conftest.$ac_ext
38134
a848cd7e
SC
38135
38136fi
d12aef51
VZ
38137rm -f conftest.err conftest.$ac_objext \
38138 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38139
38140fi
d12aef51
VZ
38141echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38142echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 38143
d12aef51
VZ
38144 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38145 cat >>confdefs.h <<\_ACEOF
38146#define HAVE_SYS_SOUNDCARD_H 1
38147_ACEOF
a848cd7e 38148
d12aef51
VZ
38149 else
38150 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38151 fi
9c112555
MW
38152fi
38153WITH_PLUGIN_SDL=0
38154if test "$wxUSE_SOUND" = "yes"; then
38155 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
38156 if test "$wxUSE_LIBSDL" != "no"; then
38157
38158# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38159if test "${with_sdl_prefix+set}" = set; then
38160 withval="$with_sdl_prefix"
38161 sdl_prefix="$withval"
38162else
38163 sdl_prefix=""
38164fi;
38165
38166# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38167if test "${with_sdl_exec_prefix+set}" = set; then
38168 withval="$with_sdl_exec_prefix"
38169 sdl_exec_prefix="$withval"
38170else
38171 sdl_exec_prefix=""
38172fi;
38173# Check whether --enable-sdltest or --disable-sdltest was given.
38174if test "${enable_sdltest+set}" = set; then
38175 enableval="$enable_sdltest"
38176
38177else
38178 enable_sdltest=yes
38179fi;
38180
38181 if test x$sdl_exec_prefix != x ; then
38182 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38183 if test x${SDL_CONFIG+set} != xset ; then
38184 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38185 fi
38186 fi
38187 if test x$sdl_prefix != x ; then
38188 sdl_args="$sdl_args --prefix=$sdl_prefix"
38189 if test x${SDL_CONFIG+set} != xset ; then
38190 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38191 fi
38192 fi
38193
38194
38195 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38196 # Extract the first word of "sdl-config", so it can be a program name with args.
38197set dummy sdl-config; ac_word=$2
38198echo "$as_me:$LINENO: checking for $ac_word" >&5
38199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38200if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38201 echo $ECHO_N "(cached) $ECHO_C" >&6
38202else
38203 case $SDL_CONFIG in
38204 [\\/]* | ?:[\\/]*)
38205 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38206 ;;
38207 *)
38208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38209for as_dir in $PATH
38210do
38211 IFS=$as_save_IFS
38212 test -z "$as_dir" && as_dir=.
38213 for ac_exec_ext in '' $ac_executable_extensions; do
38214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38215 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38217 break 2
38218 fi
38219done
38220done
38221
38222 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
38223 ;;
38224esac
38225fi
38226SDL_CONFIG=$ac_cv_path_SDL_CONFIG
38227
38228if test -n "$SDL_CONFIG"; then
38229 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
38230echo "${ECHO_T}$SDL_CONFIG" >&6
38231else
38232 echo "$as_me:$LINENO: result: no" >&5
38233echo "${ECHO_T}no" >&6
38234fi
38235
38236 min_sdl_version=1.2.0
38237 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
38238echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
38239 no_sdl=""
38240 if test "$SDL_CONFIG" = "no" ; then
38241 no_sdl=yes
38242 else
38243 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
38244 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
38245
38246 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
38247 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38248 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
38249 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38250 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
38251 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38252 if test "x$enable_sdltest" = "xyes" ; then
38253 ac_save_CFLAGS="$CFLAGS"
94acd38e 38254 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
38255 ac_save_LIBS="$LIBS"
38256 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38257 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38258 LIBS="$LIBS $SDL_LIBS"
38259 rm -f conf.sdltest
38260 if test "$cross_compiling" = yes; then
38261 echo $ac_n "cross compiling; assumed OK... $ac_c"
38262else
38263 cat >conftest.$ac_ext <<_ACEOF
38264/* confdefs.h. */
38265_ACEOF
38266cat confdefs.h >>conftest.$ac_ext
38267cat >>conftest.$ac_ext <<_ACEOF
38268/* end confdefs.h. */
38269
38270#include <stdio.h>
38271#include <stdlib.h>
38272#include <string.h>
38273#include "SDL.h"
38274
38275char*
38276my_strdup (char *str)
38277{
38278 char *new_str;
38279
38280 if (str)
38281 {
38282 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
38283 strcpy (new_str, str);
38284 }
38285 else
38286 new_str = NULL;
38287
38288 return new_str;
38289}
38290
38291int main (int argc, char *argv[])
38292{
38293 int major, minor, micro;
38294 char *tmp_version;
38295
38296 /* This hangs on some systems (?)
38297 system ("touch conf.sdltest");
38298 */
38299 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
38300
38301 /* HP/UX 9 (%@#!) writes to sscanf strings */
38302 tmp_version = my_strdup("$min_sdl_version");
38303 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
38304 printf("%s, bad version string\n", "$min_sdl_version");
38305 exit(1);
38306 }
38307
38308 if (($sdl_major_version > major) ||
38309 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
38310 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
38311 {
38312 return 0;
38313 }
38314 else
38315 {
38316 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
38317 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
38318 printf("*** best to upgrade to the required version.\n");
38319 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
38320 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
38321 printf("*** config.cache before re-running configure\n");
38322 return 1;
38323 }
38324}
38325
38326
38327_ACEOF
38328rm -f conftest$ac_exeext
38329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38330 (eval $ac_link) 2>&5
38331 ac_status=$?
38332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38335 (eval $ac_try) 2>&5
38336 ac_status=$?
38337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38338 (exit $ac_status); }; }; then
38339 :
38340else
38341 echo "$as_me: program exited with status $ac_status" >&5
38342echo "$as_me: failed program was:" >&5
38343sed 's/^/| /' conftest.$ac_ext >&5
38344
38345( exit $ac_status )
38346no_sdl=yes
38347fi
ac1cb8d3 38348rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38349fi
38350 CFLAGS="$ac_save_CFLAGS"
94acd38e 38351 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38352 LIBS="$ac_save_LIBS"
38353 fi
38354 fi
38355 if test "x$no_sdl" = x ; then
38356 echo "$as_me:$LINENO: result: yes" >&5
38357echo "${ECHO_T}yes" >&6
38358
38359 EXTRALIBS_SDL="$SDL_LIBS"
38360 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
38361 cat >>confdefs.h <<\_ACEOF
38362#define wxUSE_LIBSDL 1
38363_ACEOF
38364
38365
38366 else
38367 echo "$as_me:$LINENO: result: no" >&5
38368echo "${ECHO_T}no" >&6
38369 if test "$SDL_CONFIG" = "no" ; then
38370 echo "*** The sdl-config script installed by SDL could not be found"
38371 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
38372 echo "*** your path, or set the SDL_CONFIG environment variable to the"
38373 echo "*** full path to sdl-config."
38374 else
38375 if test -f conf.sdltest ; then
38376 :
38377 else
38378 echo "*** Could not run SDL test program, checking why..."
38379 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38380 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38381 LIBS="$LIBS $SDL_LIBS"
38382 cat >conftest.$ac_ext <<_ACEOF
38383/* confdefs.h. */
38384_ACEOF
38385cat confdefs.h >>conftest.$ac_ext
38386cat >>conftest.$ac_ext <<_ACEOF
38387/* end confdefs.h. */
38388
38389#include <stdio.h>
38390#include "SDL.h"
38391
38392int main(int argc, char *argv[])
38393{ return 0; }
38394#undef main
38395#define main K_and_R_C_main
38396
38397int
38398main ()
38399{
38400 return 0;
38401 ;
38402 return 0;
38403}
38404_ACEOF
38405rm -f conftest.$ac_objext conftest$ac_exeext
38406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38407 (eval $ac_link) 2>conftest.er1
a848cd7e 38408 ac_status=$?
ac1cb8d3
VS
38409 grep -v '^ *+' conftest.er1 >conftest.err
38410 rm -f conftest.er1
38411 cat conftest.err >&5
a848cd7e
SC
38412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38413 (exit $ac_status); } &&
6ebeb4c7 38414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38416 (eval $ac_try) 2>&5
38417 ac_status=$?
38418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419 (exit $ac_status); }; } &&
38420 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38422 (eval $ac_try) 2>&5
38423 ac_status=$?
38424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38425 (exit $ac_status); }; }; then
38426 echo "*** The test program compiled, but did not run. This usually means"
38427 echo "*** that the run-time linker is not finding SDL or finding the wrong"
38428 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
38429 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38430 echo "*** to the installed location Also, make sure you have run ldconfig if that"
38431 echo "*** is required on your system"
38432 echo "***"
38433 echo "*** If you have an old version installed, it is best to remove it, although"
38434 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38435else
38436 echo "$as_me: failed program was:" >&5
38437sed 's/^/| /' conftest.$ac_ext >&5
38438
38439 echo "*** The test program failed to compile or link. See the file config.log for the"
38440 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
38441 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
38442 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
38443fi
ac1cb8d3
VS
38444rm -f conftest.err conftest.$ac_objext \
38445 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38446 CFLAGS="$ac_save_CFLAGS"
94acd38e 38447 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38448 LIBS="$ac_save_LIBS"
38449 fi
38450 fi
38451 SDL_CFLAGS=""
38452 SDL_LIBS=""
38453 wxUSE_LIBSDL="no"
38454 fi
38455
38456
38457 rm -f conf.sdltest
38458
38459 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
38460 WITH_PLUGIN_SDL=1
38461 fi
38462 fi
38463 fi
38464
38465 cat >>confdefs.h <<\_ACEOF
38466#define wxUSE_SOUND 1
38467_ACEOF
38468
38469 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
38470fi
38471
d1c38808
VZ
38472if test "$WXGTK20" = 1; then
38473 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38474 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
38475
38476
38477 succeeded=no
38478
38479 if test -z "$PKG_CONFIG"; then
38480 # Extract the first word of "pkg-config", so it can be a program name with args.
38481set dummy pkg-config; ac_word=$2
38482echo "$as_me:$LINENO: checking for $ac_word" >&5
38483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38484if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
38485 echo $ECHO_N "(cached) $ECHO_C" >&6
38486else
38487 case $PKG_CONFIG in
38488 [\\/]* | ?:[\\/]*)
38489 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38490 ;;
38491 *)
38492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38493for as_dir in $PATH
38494do
38495 IFS=$as_save_IFS
38496 test -z "$as_dir" && as_dir=.
38497 for ac_exec_ext in '' $ac_executable_extensions; do
38498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38499 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38501 break 2
38502 fi
38503done
38504done
38505
38506 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
38507 ;;
38508esac
38509fi
38510PKG_CONFIG=$ac_cv_path_PKG_CONFIG
38511
38512if test -n "$PKG_CONFIG"; then
38513 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
38514echo "${ECHO_T}$PKG_CONFIG" >&6
38515else
38516 echo "$as_me:$LINENO: result: no" >&5
38517echo "${ECHO_T}no" >&6
38518fi
38519
38520 fi
38521
38522 if test "$PKG_CONFIG" = "no" ; then
38523 echo "*** The pkg-config script could not be found. Make sure it is"
38524 echo "*** in your path, or set the PKG_CONFIG environment variable"
38525 echo "*** to the full path to pkg-config."
38526 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
38527 else
38528 PKG_CONFIG_MIN_VERSION=0.9.0
38529 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
38530 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
38531echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 38532
ffa762ff 38533 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
38534 echo "$as_me:$LINENO: result: yes" >&5
38535echo "${ECHO_T}yes" >&6
38536 succeeded=yes
38537
38538 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
38539echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 38540 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38541 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
38542echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
38543
38544 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
38545echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 38546 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38547 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
38548echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
38549 else
38550 LIBGNOMEPRINTUI_CFLAGS=""
38551 LIBGNOMEPRINTUI_LIBS=""
38552 ## If we have a custom action on failure, don't print errors, but
38553 ## do set a variable so people can do so.
ffa762ff 38554 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38555
38556 fi
38557
38558
38559
38560 else
38561 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
38562 echo "*** See http://www.freedesktop.org/software/pkgconfig"
38563 fi
38564 fi
38565
38566 if test $succeeded = yes; then
38567
d1c38808
VZ
38568 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
38569 cat >>confdefs.h <<\_ACEOF
38570#define wxUSE_LIBGNOMEPRINT 1
38571_ACEOF
38572
38573
38574 else
38575
38576 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
38577echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
38578 wxUSE_LIBGNOMEPRINT="no"
38579
38580
38581 fi
38582
38583 fi
38584 fi
38585fi
38586
38587
a848cd7e
SC
38588if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
38589 cat >>confdefs.h <<\_ACEOF
38590#define wxUSE_CMDLINE_PARSER 1
38591_ACEOF
38592
38593fi
38594
38595if test "$wxUSE_STOPWATCH" = "yes"; then
38596 cat >>confdefs.h <<\_ACEOF
38597#define wxUSE_STOPWATCH 1
38598_ACEOF
38599
38600fi
38601
38602if test "$wxUSE_DATETIME" = "yes"; then
38603 cat >>confdefs.h <<\_ACEOF
38604#define wxUSE_DATETIME 1
38605_ACEOF
38606
38607fi
38608
38609if test "$wxUSE_FILE" = "yes"; then
38610 cat >>confdefs.h <<\_ACEOF
38611#define wxUSE_FILE 1
38612_ACEOF
38613
38614fi
38615
38616if test "$wxUSE_FFILE" = "yes"; then
38617 cat >>confdefs.h <<\_ACEOF
38618#define wxUSE_FFILE 1
38619_ACEOF
38620
38621fi
38622
38623if test "$wxUSE_FILESYSTEM" = "yes"; then
38624 cat >>confdefs.h <<\_ACEOF
38625#define wxUSE_FILESYSTEM 1
38626_ACEOF
38627
38628fi
38629
38630if test "$wxUSE_FS_ZIP" = "yes"; then
38631 cat >>confdefs.h <<\_ACEOF
38632#define wxUSE_FS_ZIP 1
38633_ACEOF
38634
38635fi
38636
9e8e867f 38637if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 38638 cat >>confdefs.h <<\_ACEOF
9e8e867f 38639#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
38640_ACEOF
38641
38642fi
38643
38644if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 38645 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
38646 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
38647echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
38648 elif test "$wxUSE_ZLIB" = "no"; then
38649 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
38650echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
38651 else
38652 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38653#define wxUSE_ZIPSTREAM 1
38654_ACEOF
38655
81f90336 38656 fi
a848cd7e
SC
38657fi
38658
a848cd7e 38659if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
38660 if test "$USE_UNIX" != 1; then
38661 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
38662echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
38663 wxUSE_ON_FATAL_EXCEPTION=no
38664 else
38665 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38666#define wxUSE_ON_FATAL_EXCEPTION 1
38667_ACEOF
38668
18228ab4 38669 fi
a848cd7e
SC
38670fi
38671
eaff0f0d
VZ
38672if test "$wxUSE_STACKWALKER" = "yes"; then
38673 cat >>confdefs.h <<\_ACEOF
38674#define wxUSE_STACKWALKER 1
38675_ACEOF
38676
38677fi
38678
36b6448c 38679if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
38680 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
38681 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
38682echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
38683 wxUSE_DEBUGREPORT=no
38684 else
38685 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
38686#define wxUSE_DEBUGREPORT 1
38687_ACEOF
38688
21dfc162
MW
38689 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
38691 fi
dfe0c803 38692 fi
36b6448c
VZ
38693fi
38694
a848cd7e
SC
38695if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38696 cat >>confdefs.h <<\_ACEOF
38697#define wxUSE_SNGLINST_CHECKER 1
38698_ACEOF
38699
38700fi
38701
38702if test "$wxUSE_BUSYINFO" = "yes"; then
38703 cat >>confdefs.h <<\_ACEOF
38704#define wxUSE_BUSYINFO 1
38705_ACEOF
38706
38707fi
38708
38709if test "$wxUSE_STD_IOSTREAM" = "yes"; then
38710 cat >>confdefs.h <<\_ACEOF
38711#define wxUSE_STD_IOSTREAM 1
38712_ACEOF
38713
38714fi
38715
59746b65
MW
38716if test "$wxUSE_STD_STRING" = "yes"; then
38717 cat >>confdefs.h <<\_ACEOF
38718#define wxUSE_STD_STRING 1
38719_ACEOF
38720
38721fi
38722
07158944
VZ
38723if test "$wxUSE_STDPATHS" = "yes"; then
38724 cat >>confdefs.h <<\_ACEOF
38725#define wxUSE_STDPATHS 1
38726_ACEOF
38727
38728fi
38729
a848cd7e
SC
38730if test "$wxUSE_TEXTBUFFER" = "yes"; then
38731 cat >>confdefs.h <<\_ACEOF
38732#define wxUSE_TEXTBUFFER 1
38733_ACEOF
38734
38735fi
38736
38737if test "$wxUSE_TEXTFILE" = "yes"; then
38738 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
38739 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
38740echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
38741 else
38742 cat >>confdefs.h <<\_ACEOF
38743#define wxUSE_TEXTFILE 1
38744_ACEOF
38745
38746 fi
38747fi
38748
38749if test "$wxUSE_CONFIG" = "yes" ; then
38750 if test "$wxUSE_TEXTFILE" != "yes"; then
38751 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
38752echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
38753 else
38754 cat >>confdefs.h <<\_ACEOF
38755#define wxUSE_CONFIG 1
89be85c2
VS
38756_ACEOF
38757
38758 cat >>confdefs.h <<\_ACEOF
38759#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
38760_ACEOF
38761
38762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
38763 fi
38764fi
38765
38766if test "$wxUSE_INTL" = "yes" ; then
38767 if test "$wxUSE_FILE" != "yes"; then
38768 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
38769echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
38770 else
38771 cat >>confdefs.h <<\_ACEOF
38772#define wxUSE_INTL 1
38773_ACEOF
38774
38775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
38776 GUIDIST="$GUIDIST INTL_DIST"
38777 fi
38778fi
38779
38780if test "$wxUSE_LOG" = "yes"; then
38781 cat >>confdefs.h <<\_ACEOF
38782#define wxUSE_LOG 1
38783_ACEOF
38784
38785
38786 if test "$wxUSE_LOGGUI" = "yes"; then
38787 cat >>confdefs.h <<\_ACEOF
38788#define wxUSE_LOGGUI 1
38789_ACEOF
38790
38791 fi
38792
38793 if test "$wxUSE_LOGWINDOW" = "yes"; then
38794 cat >>confdefs.h <<\_ACEOF
38795#define wxUSE_LOGWINDOW 1
38796_ACEOF
38797
38798 fi
38799
38800 if test "$wxUSE_LOGDIALOG" = "yes"; then
38801 cat >>confdefs.h <<\_ACEOF
38802#define wxUSE_LOG_DIALOG 1
38803_ACEOF
38804
38805 fi
0b78747f
MW
38806
38807 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
38808fi
38809
38810if test "$wxUSE_LONGLONG" = "yes"; then
38811 cat >>confdefs.h <<\_ACEOF
38812#define wxUSE_LONGLONG 1
38813_ACEOF
38814
38815fi
38816
38817if test "$wxUSE_GEOMETRY" = "yes"; then
38818 cat >>confdefs.h <<\_ACEOF
38819#define wxUSE_GEOMETRY 1
38820_ACEOF
38821
38822fi
38823
a848cd7e
SC
38824if test "$wxUSE_STREAMS" = "yes" ; then
38825 cat >>confdefs.h <<\_ACEOF
38826#define wxUSE_STREAMS 1
38827_ACEOF
38828
38829fi
38830
38831
38832if test "$wxUSE_DATETIME" = "yes"; then
38833
38834for ac_func in strptime
38835do
38836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38837echo "$as_me:$LINENO: checking for $ac_func" >&5
38838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38839if eval "test \"\${$as_ac_var+set}\" = set"; then
38840 echo $ECHO_N "(cached) $ECHO_C" >&6
38841else
38842 cat >conftest.$ac_ext <<_ACEOF
38843/* confdefs.h. */
38844_ACEOF
38845cat confdefs.h >>conftest.$ac_ext
38846cat >>conftest.$ac_ext <<_ACEOF
38847/* end confdefs.h. */
ac1cb8d3
VS
38848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38850#define $ac_func innocuous_$ac_func
38851
a848cd7e
SC
38852/* System header to define __stub macros and hopefully few prototypes,
38853 which can conflict with char $ac_func (); below.
38854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38855 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38856
a848cd7e
SC
38857#ifdef __STDC__
38858# include <limits.h>
38859#else
38860# include <assert.h>
38861#endif
ac1cb8d3
VS
38862
38863#undef $ac_func
38864
a848cd7e
SC
38865/* Override any gcc2 internal prototype to avoid an error. */
38866#ifdef __cplusplus
38867extern "C"
38868{
38869#endif
38870/* We use char because int might match the return type of a gcc2
38871 builtin and then its argument prototype would still apply. */
38872char $ac_func ();
38873/* The GNU C library defines this for functions which it implements
38874 to always fail with ENOSYS. Some functions are actually named
38875 something starting with __ and the normal name is an alias. */
38876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38877choke me
38878#else
38879char (*f) () = $ac_func;
38880#endif
38881#ifdef __cplusplus
38882}
38883#endif
38884
38885int
38886main ()
38887{
38888return f != $ac_func;
38889 ;
38890 return 0;
38891}
38892_ACEOF
38893rm -f conftest.$ac_objext conftest$ac_exeext
38894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38895 (eval $ac_link) 2>conftest.er1
a848cd7e 38896 ac_status=$?
ac1cb8d3
VS
38897 grep -v '^ *+' conftest.er1 >conftest.err
38898 rm -f conftest.er1
38899 cat conftest.err >&5
a848cd7e
SC
38900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38901 (exit $ac_status); } &&
6ebeb4c7 38902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38904 (eval $ac_try) 2>&5
38905 ac_status=$?
38906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907 (exit $ac_status); }; } &&
38908 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38910 (eval $ac_try) 2>&5
38911 ac_status=$?
38912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38913 (exit $ac_status); }; }; then
38914 eval "$as_ac_var=yes"
38915else
38916 echo "$as_me: failed program was:" >&5
38917sed 's/^/| /' conftest.$ac_ext >&5
38918
38919eval "$as_ac_var=no"
38920fi
ac1cb8d3
VS
38921rm -f conftest.err conftest.$ac_objext \
38922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38923fi
38924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38925echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38926if test `eval echo '${'$as_ac_var'}'` = yes; then
38927 cat >>confdefs.h <<_ACEOF
38928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38929_ACEOF
38930
38931fi
38932done
38933
38934
38935 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
38936echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
38937if test "${wx_cv_var_timezone+set}" = set; then
38938 echo $ECHO_N "(cached) $ECHO_C" >&6
38939else
38940
38941 cat >conftest.$ac_ext <<_ACEOF
38942/* confdefs.h. */
38943_ACEOF
38944cat confdefs.h >>conftest.$ac_ext
38945cat >>conftest.$ac_ext <<_ACEOF
38946/* end confdefs.h. */
38947
38948 #include <time.h>
38949
38950int
38951main ()
38952{
38953
38954 int tz;
38955 tz = timezone;
38956
38957 ;
38958 return 0;
38959}
38960_ACEOF
38961rm -f conftest.$ac_objext
38962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38963 (eval $ac_compile) 2>conftest.er1
a848cd7e 38964 ac_status=$?
ac1cb8d3
VS
38965 grep -v '^ *+' conftest.er1 >conftest.err
38966 rm -f conftest.er1
38967 cat conftest.err >&5
a848cd7e
SC
38968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969 (exit $ac_status); } &&
6ebeb4c7 38970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38972 (eval $ac_try) 2>&5
38973 ac_status=$?
38974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38975 (exit $ac_status); }; } &&
38976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38978 (eval $ac_try) 2>&5
38979 ac_status=$?
38980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38981 (exit $ac_status); }; }; then
38982
38983 wx_cv_var_timezone=timezone
38984
38985else
38986 echo "$as_me: failed program was:" >&5
38987sed 's/^/| /' conftest.$ac_ext >&5
38988
38989
38990 cat >conftest.$ac_ext <<_ACEOF
38991/* confdefs.h. */
38992_ACEOF
38993cat confdefs.h >>conftest.$ac_ext
38994cat >>conftest.$ac_ext <<_ACEOF
38995/* end confdefs.h. */
38996
38997 #include <time.h>
38998
38999int
39000main ()
39001{
39002
39003 int tz;
39004 tz = _timezone;
39005
39006 ;
39007 return 0;
39008}
39009_ACEOF
39010rm -f conftest.$ac_objext
39011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39012 (eval $ac_compile) 2>conftest.er1
a848cd7e 39013 ac_status=$?
ac1cb8d3
VS
39014 grep -v '^ *+' conftest.er1 >conftest.err
39015 rm -f conftest.er1
39016 cat conftest.err >&5
a848cd7e
SC
39017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39018 (exit $ac_status); } &&
6ebeb4c7 39019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
39025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39027 (eval $ac_try) 2>&5
39028 ac_status=$?
39029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39030 (exit $ac_status); }; }; then
39031
39032 wx_cv_var_timezone=_timezone
39033
39034else
39035 echo "$as_me: failed program was:" >&5
39036sed 's/^/| /' conftest.$ac_ext >&5
39037
39038
39039 cat >conftest.$ac_ext <<_ACEOF
39040/* confdefs.h. */
39041_ACEOF
39042cat confdefs.h >>conftest.$ac_ext
39043cat >>conftest.$ac_ext <<_ACEOF
39044/* end confdefs.h. */
39045
39046 #include <time.h>
39047
39048int
39049main ()
39050{
39051
39052 int tz;
39053 tz = __timezone;
39054
39055 ;
39056 return 0;
39057}
39058_ACEOF
39059rm -f conftest.$ac_objext
39060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39061 (eval $ac_compile) 2>conftest.er1
a848cd7e 39062 ac_status=$?
ac1cb8d3
VS
39063 grep -v '^ *+' conftest.er1 >conftest.err
39064 rm -f conftest.er1
39065 cat conftest.err >&5
a848cd7e
SC
39066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39067 (exit $ac_status); } &&
6ebeb4c7 39068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39070 (eval $ac_try) 2>&5
39071 ac_status=$?
39072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073 (exit $ac_status); }; } &&
39074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39076 (eval $ac_try) 2>&5
39077 ac_status=$?
39078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39079 (exit $ac_status); }; }; then
39080
39081 wx_cv_var_timezone=__timezone
39082
39083else
39084 echo "$as_me: failed program was:" >&5
39085sed 's/^/| /' conftest.$ac_ext >&5
39086
39087
39088 if test "$USE_DOS" = 0 ; then
39089 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39090echo "$as_me: WARNING: no timezone variable" >&2;}
39091 fi
39092
39093
39094fi
ac1cb8d3 39095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39096
39097
39098fi
ac1cb8d3 39099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39100
39101
39102fi
ac1cb8d3 39103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39104
39105
39106fi
39107echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39108echo "${ECHO_T}$wx_cv_var_timezone" >&6
39109
39110 if test "x$wx_cv_var_timezone" != x ; then
39111 cat >>confdefs.h <<_ACEOF
39112#define WX_TIMEZONE $wx_cv_var_timezone
39113_ACEOF
39114
39115 fi
39116
39117
39118for ac_func in localtime
39119do
39120as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39121echo "$as_me:$LINENO: checking for $ac_func" >&5
39122echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39123if eval "test \"\${$as_ac_var+set}\" = set"; then
39124 echo $ECHO_N "(cached) $ECHO_C" >&6
39125else
39126 cat >conftest.$ac_ext <<_ACEOF
39127/* confdefs.h. */
39128_ACEOF
39129cat confdefs.h >>conftest.$ac_ext
39130cat >>conftest.$ac_ext <<_ACEOF
39131/* end confdefs.h. */
ac1cb8d3
VS
39132/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39134#define $ac_func innocuous_$ac_func
39135
a848cd7e
SC
39136/* System header to define __stub macros and hopefully few prototypes,
39137 which can conflict with char $ac_func (); below.
39138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39139 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39140
a848cd7e
SC
39141#ifdef __STDC__
39142# include <limits.h>
39143#else
39144# include <assert.h>
39145#endif
ac1cb8d3
VS
39146
39147#undef $ac_func
39148
a848cd7e
SC
39149/* Override any gcc2 internal prototype to avoid an error. */
39150#ifdef __cplusplus
39151extern "C"
39152{
39153#endif
39154/* We use char because int might match the return type of a gcc2
39155 builtin and then its argument prototype would still apply. */
39156char $ac_func ();
39157/* The GNU C library defines this for functions which it implements
39158 to always fail with ENOSYS. Some functions are actually named
39159 something starting with __ and the normal name is an alias. */
39160#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39161choke me
39162#else
39163char (*f) () = $ac_func;
39164#endif
39165#ifdef __cplusplus
39166}
39167#endif
39168
39169int
39170main ()
39171{
39172return f != $ac_func;
39173 ;
39174 return 0;
39175}
39176_ACEOF
39177rm -f conftest.$ac_objext conftest$ac_exeext
39178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39179 (eval $ac_link) 2>conftest.er1
a848cd7e 39180 ac_status=$?
ac1cb8d3
VS
39181 grep -v '^ *+' conftest.er1 >conftest.err
39182 rm -f conftest.er1
39183 cat conftest.err >&5
a848cd7e
SC
39184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185 (exit $ac_status); } &&
6ebeb4c7 39186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39188 (eval $ac_try) 2>&5
39189 ac_status=$?
39190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39191 (exit $ac_status); }; } &&
39192 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39194 (eval $ac_try) 2>&5
39195 ac_status=$?
39196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39197 (exit $ac_status); }; }; then
39198 eval "$as_ac_var=yes"
39199else
39200 echo "$as_me: failed program was:" >&5
39201sed 's/^/| /' conftest.$ac_ext >&5
39202
39203eval "$as_ac_var=no"
39204fi
ac1cb8d3
VS
39205rm -f conftest.err conftest.$ac_objext \
39206 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39207fi
39208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39209echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39210if test `eval echo '${'$as_ac_var'}'` = yes; then
39211 cat >>confdefs.h <<_ACEOF
39212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39213_ACEOF
39214
39215fi
39216done
39217
39218
39219 if test "$ac_cv_func_localtime" = "yes"; then
39220 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
39221echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
39222if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
39223 echo $ECHO_N "(cached) $ECHO_C" >&6
39224else
39225
39226 cat >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
39233 #include <time.h>
39234
39235int
39236main ()
39237{
39238
39239 struct tm tm;
39240 tm.tm_gmtoff++;
39241
39242 ;
39243 return 0;
39244}
39245_ACEOF
39246rm -f conftest.$ac_objext
39247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39248 (eval $ac_compile) 2>conftest.er1
a848cd7e 39249 ac_status=$?
ac1cb8d3
VS
39250 grep -v '^ *+' conftest.er1 >conftest.err
39251 rm -f conftest.er1
39252 cat conftest.err >&5
a848cd7e
SC
39253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39254 (exit $ac_status); } &&
6ebeb4c7 39255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39257 (eval $ac_try) 2>&5
39258 ac_status=$?
39259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39260 (exit $ac_status); }; } &&
39261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39263 (eval $ac_try) 2>&5
39264 ac_status=$?
39265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39266 (exit $ac_status); }; }; then
39267
39268 wx_cv_struct_tm_has_gmtoff=yes
39269
39270else
39271 echo "$as_me: failed program was:" >&5
39272sed 's/^/| /' conftest.$ac_ext >&5
39273
39274wx_cv_struct_tm_has_gmtoff=no
39275
39276fi
ac1cb8d3 39277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39278
39279fi
39280echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
39281echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
39282 fi
39283
39284 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
39285 cat >>confdefs.h <<\_ACEOF
39286#define WX_GMTOFF_IN_TM 1
39287_ACEOF
39288
39289 fi
39290
39291
39292
39293for ac_func in gettimeofday ftime
39294do
39295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39296echo "$as_me:$LINENO: checking for $ac_func" >&5
39297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39298if eval "test \"\${$as_ac_var+set}\" = set"; then
39299 echo $ECHO_N "(cached) $ECHO_C" >&6
39300else
39301 cat >conftest.$ac_ext <<_ACEOF
39302/* confdefs.h. */
39303_ACEOF
39304cat confdefs.h >>conftest.$ac_ext
39305cat >>conftest.$ac_ext <<_ACEOF
39306/* end confdefs.h. */
ac1cb8d3
VS
39307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39309#define $ac_func innocuous_$ac_func
39310
a848cd7e
SC
39311/* System header to define __stub macros and hopefully few prototypes,
39312 which can conflict with char $ac_func (); below.
39313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39314 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39315
a848cd7e
SC
39316#ifdef __STDC__
39317# include <limits.h>
39318#else
39319# include <assert.h>
39320#endif
ac1cb8d3
VS
39321
39322#undef $ac_func
39323
a848cd7e
SC
39324/* Override any gcc2 internal prototype to avoid an error. */
39325#ifdef __cplusplus
39326extern "C"
39327{
39328#endif
39329/* We use char because int might match the return type of a gcc2
39330 builtin and then its argument prototype would still apply. */
39331char $ac_func ();
39332/* The GNU C library defines this for functions which it implements
39333 to always fail with ENOSYS. Some functions are actually named
39334 something starting with __ and the normal name is an alias. */
39335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39336choke me
39337#else
39338char (*f) () = $ac_func;
39339#endif
39340#ifdef __cplusplus
39341}
39342#endif
39343
39344int
39345main ()
39346{
39347return f != $ac_func;
39348 ;
39349 return 0;
39350}
39351_ACEOF
39352rm -f conftest.$ac_objext conftest$ac_exeext
39353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39354 (eval $ac_link) 2>conftest.er1
a848cd7e 39355 ac_status=$?
ac1cb8d3
VS
39356 grep -v '^ *+' conftest.er1 >conftest.err
39357 rm -f conftest.er1
39358 cat conftest.err >&5
a848cd7e
SC
39359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360 (exit $ac_status); } &&
6ebeb4c7 39361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39363 (eval $ac_try) 2>&5
39364 ac_status=$?
39365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39366 (exit $ac_status); }; } &&
39367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39369 (eval $ac_try) 2>&5
39370 ac_status=$?
39371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39372 (exit $ac_status); }; }; then
39373 eval "$as_ac_var=yes"
39374else
39375 echo "$as_me: failed program was:" >&5
39376sed 's/^/| /' conftest.$ac_ext >&5
39377
39378eval "$as_ac_var=no"
39379fi
ac1cb8d3
VS
39380rm -f conftest.err conftest.$ac_objext \
39381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39382fi
39383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39384echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39385if test `eval echo '${'$as_ac_var'}'` = yes; then
39386 cat >>confdefs.h <<_ACEOF
39387#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39388_ACEOF
39389 break
39390fi
39391done
39392
39393
39394 if test "$ac_cv_func_gettimeofday" = "yes"; then
39395 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
39396echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
39397if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
39398 echo $ECHO_N "(cached) $ECHO_C" >&6
39399else
39400
39401
39402
39403 ac_ext=cc
39404ac_cpp='$CXXCPP $CPPFLAGS'
39405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39408
39409
39410 cat >conftest.$ac_ext <<_ACEOF
39411/* confdefs.h. */
39412_ACEOF
39413cat confdefs.h >>conftest.$ac_ext
39414cat >>conftest.$ac_ext <<_ACEOF
39415/* end confdefs.h. */
39416
39417 #include <sys/time.h>
39418 #include <unistd.h>
39419
39420int
39421main ()
39422{
39423
39424 struct timeval tv;
39425 gettimeofday(&tv, NULL);
39426
39427 ;
39428 return 0;
39429}
39430_ACEOF
39431rm -f conftest.$ac_objext
39432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39433 (eval $ac_compile) 2>conftest.er1
a848cd7e 39434 ac_status=$?
ac1cb8d3
VS
39435 grep -v '^ *+' conftest.er1 >conftest.err
39436 rm -f conftest.er1
39437 cat conftest.err >&5
a848cd7e
SC
39438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39439 (exit $ac_status); } &&
6ebeb4c7 39440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39442 (eval $ac_try) 2>&5
39443 ac_status=$?
39444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445 (exit $ac_status); }; } &&
39446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39448 (eval $ac_try) 2>&5
39449 ac_status=$?
39450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39451 (exit $ac_status); }; }; then
39452 wx_cv_func_gettimeofday_has_2_args=yes
39453else
39454 echo "$as_me: failed program was:" >&5
39455sed 's/^/| /' conftest.$ac_ext >&5
39456
39457cat >conftest.$ac_ext <<_ACEOF
39458/* confdefs.h. */
39459_ACEOF
39460cat confdefs.h >>conftest.$ac_ext
39461cat >>conftest.$ac_ext <<_ACEOF
39462/* end confdefs.h. */
39463
39464 #include <sys/time.h>
39465 #include <unistd.h>
39466
39467int
39468main ()
39469{
39470
39471 struct timeval tv;
39472 gettimeofday(&tv);
39473
39474 ;
39475 return 0;
39476}
39477_ACEOF
39478rm -f conftest.$ac_objext
39479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39480 (eval $ac_compile) 2>conftest.er1
a848cd7e 39481 ac_status=$?
ac1cb8d3
VS
39482 grep -v '^ *+' conftest.er1 >conftest.err
39483 rm -f conftest.er1
39484 cat conftest.err >&5
a848cd7e
SC
39485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486 (exit $ac_status); } &&
6ebeb4c7 39487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39489 (eval $ac_try) 2>&5
39490 ac_status=$?
39491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39492 (exit $ac_status); }; } &&
39493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39495 (eval $ac_try) 2>&5
39496 ac_status=$?
39497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39498 (exit $ac_status); }; }; then
39499 wx_cv_func_gettimeofday_has_2_args=no
39500else
39501 echo "$as_me: failed program was:" >&5
39502sed 's/^/| /' conftest.$ac_ext >&5
39503
39504
39505 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
39506echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
39507 wx_cv_func_gettimeofday_has_2_args=unknown
39508
39509
39510fi
ac1cb8d3 39511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39512
39513fi
ac1cb8d3 39514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39515 ac_ext=c
39516ac_cpp='$CPP $CPPFLAGS'
39517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39519ac_compiler_gnu=$ac_cv_c_compiler_gnu
39520
39521
39522fi
39523echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
39524echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
39525
39526 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
39527 cat >>confdefs.h <<\_ACEOF
39528#define WX_GETTIMEOFDAY_NO_TZ 1
39529_ACEOF
39530
39531 fi
39532 fi
39533
39534 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
39535fi
39536
39537
39538if test "$wxUSE_SOCKETS" = "yes"; then
39539 if test "$wxUSE_MGL" = "1"; then
39540 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
39541echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
39542 wxUSE_SOCKETS="no"
39543 fi
39544fi
39545
39546if test "$wxUSE_SOCKETS" = "yes"; then
39547 if test "$TOOLKIT" != "MSW"; then
39548 echo "$as_me:$LINENO: checking for socket" >&5
39549echo $ECHO_N "checking for socket... $ECHO_C" >&6
39550if test "${ac_cv_func_socket+set}" = set; then
39551 echo $ECHO_N "(cached) $ECHO_C" >&6
39552else
39553 cat >conftest.$ac_ext <<_ACEOF
39554/* confdefs.h. */
39555_ACEOF
39556cat confdefs.h >>conftest.$ac_ext
39557cat >>conftest.$ac_ext <<_ACEOF
39558/* end confdefs.h. */
ac1cb8d3
VS
39559/* Define socket to an innocuous variant, in case <limits.h> declares socket.
39560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39561#define socket innocuous_socket
39562
a848cd7e
SC
39563/* System header to define __stub macros and hopefully few prototypes,
39564 which can conflict with char socket (); below.
39565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39566 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39567
a848cd7e
SC
39568#ifdef __STDC__
39569# include <limits.h>
39570#else
39571# include <assert.h>
39572#endif
ac1cb8d3
VS
39573
39574#undef socket
39575
a848cd7e
SC
39576/* Override any gcc2 internal prototype to avoid an error. */
39577#ifdef __cplusplus
39578extern "C"
39579{
39580#endif
39581/* We use char because int might match the return type of a gcc2
39582 builtin and then its argument prototype would still apply. */
39583char socket ();
39584/* The GNU C library defines this for functions which it implements
39585 to always fail with ENOSYS. Some functions are actually named
39586 something starting with __ and the normal name is an alias. */
39587#if defined (__stub_socket) || defined (__stub___socket)
39588choke me
39589#else
39590char (*f) () = socket;
39591#endif
39592#ifdef __cplusplus
39593}
39594#endif
39595
39596int
39597main ()
39598{
39599return f != socket;
39600 ;
39601 return 0;
39602}
39603_ACEOF
39604rm -f conftest.$ac_objext conftest$ac_exeext
39605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39606 (eval $ac_link) 2>conftest.er1
a848cd7e 39607 ac_status=$?
ac1cb8d3
VS
39608 grep -v '^ *+' conftest.er1 >conftest.err
39609 rm -f conftest.er1
39610 cat conftest.err >&5
a848cd7e
SC
39611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612 (exit $ac_status); } &&
6ebeb4c7 39613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39615 (eval $ac_try) 2>&5
39616 ac_status=$?
39617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39618 (exit $ac_status); }; } &&
39619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39621 (eval $ac_try) 2>&5
39622 ac_status=$?
39623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39624 (exit $ac_status); }; }; then
39625 ac_cv_func_socket=yes
39626else
39627 echo "$as_me: failed program was:" >&5
39628sed 's/^/| /' conftest.$ac_ext >&5
39629
39630ac_cv_func_socket=no
39631fi
ac1cb8d3
VS
39632rm -f conftest.err conftest.$ac_objext \
39633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39634fi
39635echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
39636echo "${ECHO_T}$ac_cv_func_socket" >&6
39637if test $ac_cv_func_socket = yes; then
39638 :
39639else
39640
39641 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
39642echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
39643if test "${ac_cv_lib_socket_socket+set}" = set; then
39644 echo $ECHO_N "(cached) $ECHO_C" >&6
39645else
39646 ac_check_lib_save_LIBS=$LIBS
39647LIBS="-lsocket $LIBS"
39648cat >conftest.$ac_ext <<_ACEOF
39649/* confdefs.h. */
39650_ACEOF
39651cat confdefs.h >>conftest.$ac_ext
39652cat >>conftest.$ac_ext <<_ACEOF
39653/* end confdefs.h. */
39654
39655/* Override any gcc2 internal prototype to avoid an error. */
39656#ifdef __cplusplus
39657extern "C"
39658#endif
39659/* We use char because int might match the return type of a gcc2
39660 builtin and then its argument prototype would still apply. */
39661char socket ();
39662int
39663main ()
39664{
39665socket ();
39666 ;
39667 return 0;
39668}
39669_ACEOF
39670rm -f conftest.$ac_objext conftest$ac_exeext
39671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39672 (eval $ac_link) 2>conftest.er1
a848cd7e 39673 ac_status=$?
ac1cb8d3
VS
39674 grep -v '^ *+' conftest.er1 >conftest.err
39675 rm -f conftest.er1
39676 cat conftest.err >&5
a848cd7e
SC
39677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39678 (exit $ac_status); } &&
6ebeb4c7 39679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39681 (eval $ac_try) 2>&5
39682 ac_status=$?
39683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39684 (exit $ac_status); }; } &&
39685 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39687 (eval $ac_try) 2>&5
39688 ac_status=$?
39689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39690 (exit $ac_status); }; }; then
39691 ac_cv_lib_socket_socket=yes
39692else
39693 echo "$as_me: failed program was:" >&5
39694sed 's/^/| /' conftest.$ac_ext >&5
39695
39696ac_cv_lib_socket_socket=no
39697fi
ac1cb8d3
VS
39698rm -f conftest.err conftest.$ac_objext \
39699 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39700LIBS=$ac_check_lib_save_LIBS
39701fi
39702echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
39703echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
39704if test $ac_cv_lib_socket_socket = yes; then
39705 if test "$INET_LINK" != " -lsocket"; then
39706 INET_LINK="$INET_LINK -lsocket"
39707 fi
39708else
39709
39710 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
39711echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
39712 wxUSE_SOCKETS=no
39713
39714
39715fi
39716
39717
39718
39719fi
39720
39721 fi
39722fi
39723
39724if test "$wxUSE_SOCKETS" = "yes" ; then
39725 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
39726 ac_ext=cc
39727ac_cpp='$CXXCPP $CPPFLAGS'
39728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39731
39732 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
39733echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
39734if test "${wx_cv_type_getsockname3+set}" = set; then
39735 echo $ECHO_N "(cached) $ECHO_C" >&6
39736else
39737
39738 cat >conftest.$ac_ext <<_ACEOF
39739/* confdefs.h. */
39740_ACEOF
39741cat confdefs.h >>conftest.$ac_ext
39742cat >>conftest.$ac_ext <<_ACEOF
39743/* end confdefs.h. */
39744
39745 #include <sys/types.h>
39746 #include <sys/socket.h>
39747
39748int
39749main ()
39750{
39751
39752 socklen_t len;
39753 getsockname(0, 0, &len);
39754
39755 ;
39756 return 0;
39757}
39758_ACEOF
39759rm -f conftest.$ac_objext
39760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39761 (eval $ac_compile) 2>conftest.er1
a848cd7e 39762 ac_status=$?
ac1cb8d3
VS
39763 grep -v '^ *+' conftest.er1 >conftest.err
39764 rm -f conftest.er1
39765 cat conftest.err >&5
a848cd7e
SC
39766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39767 (exit $ac_status); } &&
6ebeb4c7 39768 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39770 (eval $ac_try) 2>&5
39771 ac_status=$?
39772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39773 (exit $ac_status); }; } &&
39774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39776 (eval $ac_try) 2>&5
39777 ac_status=$?
39778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779 (exit $ac_status); }; }; then
39780 wx_cv_type_getsockname3=socklen_t
39781else
39782 echo "$as_me: failed program was:" >&5
39783sed 's/^/| /' conftest.$ac_ext >&5
39784
39785
39786 CFLAGS_OLD="$CFLAGS"
39787 if test "$GCC" = yes ; then
39788 CFLAGS="$CFLAGS -Werror"
39789 fi
39790
39791 cat >conftest.$ac_ext <<_ACEOF
39792/* confdefs.h. */
39793_ACEOF
39794cat confdefs.h >>conftest.$ac_ext
39795cat >>conftest.$ac_ext <<_ACEOF
39796/* end confdefs.h. */
39797
39798 #include <sys/types.h>
39799 #include <sys/socket.h>
39800
39801int
39802main ()
39803{
39804
39805 size_t len;
39806 getsockname(0, 0, &len);
39807
39808 ;
39809 return 0;
39810}
39811_ACEOF
39812rm -f conftest.$ac_objext
39813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39814 (eval $ac_compile) 2>conftest.er1
a848cd7e 39815 ac_status=$?
ac1cb8d3
VS
39816 grep -v '^ *+' conftest.er1 >conftest.err
39817 rm -f conftest.er1
39818 cat conftest.err >&5
a848cd7e
SC
39819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39820 (exit $ac_status); } &&
6ebeb4c7 39821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39823 (eval $ac_try) 2>&5
39824 ac_status=$?
39825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39826 (exit $ac_status); }; } &&
39827 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39829 (eval $ac_try) 2>&5
39830 ac_status=$?
39831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832 (exit $ac_status); }; }; then
39833 wx_cv_type_getsockname3=size_t
39834else
39835 echo "$as_me: failed program was:" >&5
39836sed 's/^/| /' conftest.$ac_ext >&5
39837
39838cat >conftest.$ac_ext <<_ACEOF
39839/* confdefs.h. */
39840_ACEOF
39841cat confdefs.h >>conftest.$ac_ext
39842cat >>conftest.$ac_ext <<_ACEOF
39843/* end confdefs.h. */
39844
39845 #include <sys/types.h>
39846 #include <sys/socket.h>
39847
39848int
39849main ()
39850{
39851
39852 int len;
39853 getsockname(0, 0, &len);
39854
39855 ;
39856 return 0;
39857}
39858_ACEOF
39859rm -f conftest.$ac_objext
39860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39861 (eval $ac_compile) 2>conftest.er1
a848cd7e 39862 ac_status=$?
ac1cb8d3
VS
39863 grep -v '^ *+' conftest.er1 >conftest.err
39864 rm -f conftest.er1
39865 cat conftest.err >&5
a848cd7e
SC
39866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39867 (exit $ac_status); } &&
6ebeb4c7 39868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39870 (eval $ac_try) 2>&5
39871 ac_status=$?
39872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39873 (exit $ac_status); }; } &&
39874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39876 (eval $ac_try) 2>&5
39877 ac_status=$?
39878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39879 (exit $ac_status); }; }; then
39880 wx_cv_type_getsockname3=int
39881else
39882 echo "$as_me: failed program was:" >&5
39883sed 's/^/| /' conftest.$ac_ext >&5
39884
39885wx_cv_type_getsockname3=unknown
39886
39887fi
ac1cb8d3 39888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39889
39890fi
ac1cb8d3 39891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39892
39893 CFLAGS="$CFLAGS_OLD"
39894
39895
39896fi
ac1cb8d3 39897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39898
39899fi
39900echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
39901echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
39902
39903 if test "$wx_cv_type_getsockname3" = "unknown"; then
39904 wxUSE_SOCKETS=no
39905 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39906echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39907 else
39908 cat >>confdefs.h <<_ACEOF
9e03e02d 39909#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
39910_ACEOF
39911
39912 fi
39913 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
39914echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
39915if test "${wx_cv_type_getsockopt5+set}" = set; then
39916 echo $ECHO_N "(cached) $ECHO_C" >&6
39917else
39918
39919 cat >conftest.$ac_ext <<_ACEOF
39920/* confdefs.h. */
39921_ACEOF
39922cat confdefs.h >>conftest.$ac_ext
39923cat >>conftest.$ac_ext <<_ACEOF
39924/* end confdefs.h. */
39925
39926 #include <sys/types.h>
39927 #include <sys/socket.h>
39928
39929int
39930main ()
39931{
39932
39933 socklen_t len;
39934 getsockopt(0, 0, 0, 0, &len);
39935
39936 ;
39937 return 0;
39938}
39939_ACEOF
39940rm -f conftest.$ac_objext
39941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39942 (eval $ac_compile) 2>conftest.er1
39943 ac_status=$?
39944 grep -v '^ *+' conftest.er1 >conftest.err
39945 rm -f conftest.er1
39946 cat conftest.err >&5
39947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948 (exit $ac_status); } &&
6ebeb4c7 39949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39951 (eval $ac_try) 2>&5
39952 ac_status=$?
39953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954 (exit $ac_status); }; } &&
39955 { ac_try='test -s conftest.$ac_objext'
39956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39957 (eval $ac_try) 2>&5
39958 ac_status=$?
39959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39960 (exit $ac_status); }; }; then
39961 wx_cv_type_getsockopt5=socklen_t
39962else
39963 echo "$as_me: failed program was:" >&5
39964sed 's/^/| /' conftest.$ac_ext >&5
39965
39966
39967 CFLAGS_OLD="$CFLAGS"
39968 if test "$GCC" = yes ; then
39969 CFLAGS="$CFLAGS -Werror"
39970 fi
39971
39972 cat >conftest.$ac_ext <<_ACEOF
39973/* confdefs.h. */
39974_ACEOF
39975cat confdefs.h >>conftest.$ac_ext
39976cat >>conftest.$ac_ext <<_ACEOF
39977/* end confdefs.h. */
39978
39979 #include <sys/types.h>
39980 #include <sys/socket.h>
39981
39982int
39983main ()
39984{
39985
39986 size_t len;
39987 getsockopt(0, 0, 0, 0, &len);
39988
39989 ;
39990 return 0;
39991}
39992_ACEOF
39993rm -f conftest.$ac_objext
39994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39995 (eval $ac_compile) 2>conftest.er1
39996 ac_status=$?
39997 grep -v '^ *+' conftest.er1 >conftest.err
39998 rm -f conftest.er1
39999 cat conftest.err >&5
40000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40001 (exit $ac_status); } &&
6ebeb4c7 40002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40004 (eval $ac_try) 2>&5
40005 ac_status=$?
40006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40007 (exit $ac_status); }; } &&
40008 { ac_try='test -s conftest.$ac_objext'
40009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40010 (eval $ac_try) 2>&5
40011 ac_status=$?
40012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013 (exit $ac_status); }; }; then
40014 wx_cv_type_getsockopt5=size_t
40015else
40016 echo "$as_me: failed program was:" >&5
40017sed 's/^/| /' conftest.$ac_ext >&5
40018
40019cat >conftest.$ac_ext <<_ACEOF
40020/* confdefs.h. */
40021_ACEOF
40022cat confdefs.h >>conftest.$ac_ext
40023cat >>conftest.$ac_ext <<_ACEOF
40024/* end confdefs.h. */
40025
40026 #include <sys/types.h>
40027 #include <sys/socket.h>
40028
40029int
40030main ()
40031{
40032
40033 int len;
40034 getsockopt(0, 0, 0, 0, &len);
40035
40036 ;
40037 return 0;
40038}
40039_ACEOF
40040rm -f conftest.$ac_objext
40041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40042 (eval $ac_compile) 2>conftest.er1
40043 ac_status=$?
40044 grep -v '^ *+' conftest.er1 >conftest.err
40045 rm -f conftest.er1
40046 cat conftest.err >&5
40047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40048 (exit $ac_status); } &&
6ebeb4c7 40049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40051 (eval $ac_try) 2>&5
40052 ac_status=$?
40053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054 (exit $ac_status); }; } &&
40055 { ac_try='test -s conftest.$ac_objext'
40056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40057 (eval $ac_try) 2>&5
40058 ac_status=$?
40059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060 (exit $ac_status); }; }; then
40061 wx_cv_type_getsockopt5=int
40062else
40063 echo "$as_me: failed program was:" >&5
40064sed 's/^/| /' conftest.$ac_ext >&5
40065
40066wx_cv_type_getsockopt5=unknown
40067
40068fi
40069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40070
40071fi
40072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40073
40074 CFLAGS="$CFLAGS_OLD"
40075
40076
40077fi
40078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40079
40080fi
40081echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40082echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40083
40084 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40085 wxUSE_SOCKETS=no
40086 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40087echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40088 else
40089 cat >>confdefs.h <<_ACEOF
40090#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
40091_ACEOF
40092
40093 fi
4d4ff94c
VZ
40094 ac_ext=c
40095ac_cpp='$CPP $CPPFLAGS'
40096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40098ac_compiler_gnu=$ac_cv_c_compiler_gnu
40099
a848cd7e
SC
40100 fi
40101fi
40102
40103if test "$wxUSE_SOCKETS" = "yes" ; then
40104 cat >>confdefs.h <<\_ACEOF
40105#define wxUSE_SOCKETS 1
40106_ACEOF
40107
40108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40109fi
40110
40111if test "$wxUSE_PROTOCOL" = "yes"; then
40112 if test "$wxUSE_SOCKETS" != "yes"; then
40113 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40114echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40115 wxUSE_PROTOCOL=no
40116 fi
40117fi
40118
40119if test "$wxUSE_PROTOCOL" = "yes"; then
40120 cat >>confdefs.h <<\_ACEOF
40121#define wxUSE_PROTOCOL 1
40122_ACEOF
40123
40124
40125 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40126 cat >>confdefs.h <<\_ACEOF
40127#define wxUSE_PROTOCOL_HTTP 1
40128_ACEOF
40129
40130 fi
40131 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
40132 cat >>confdefs.h <<\_ACEOF
40133#define wxUSE_PROTOCOL_FTP 1
40134_ACEOF
40135
40136 fi
40137 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
40138 cat >>confdefs.h <<\_ACEOF
40139#define wxUSE_PROTOCOL_FILE 1
40140_ACEOF
40141
40142 fi
40143else
40144 if test "$wxUSE_FS_INET" = "yes"; then
40145 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
40146echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
40147 wxUSE_FS_INET="no"
40148 fi
40149fi
40150
40151if test "$wxUSE_URL" = "yes"; then
40152 if test "$wxUSE_PROTOCOL" != "yes"; then
40153 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
40154echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
40155 wxUSE_URL=no
40156 fi
40157 if test "$wxUSE_URL" = "yes"; then
40158 cat >>confdefs.h <<\_ACEOF
40159#define wxUSE_URL 1
40160_ACEOF
40161
40162 fi
40163fi
40164
40165if test "$wxUSE_FS_INET" = "yes"; then
40166 cat >>confdefs.h <<\_ACEOF
40167#define wxUSE_FS_INET 1
40168_ACEOF
40169
40170fi
40171
40172
ee45c548
MW
40173if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
40174 wxUSE_JOYSTICK=no
40175
40176 if test "$TOOLKIT" = "MSW"; then
40177 wxUSE_JOYSTICK=yes
40178
40179 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
40180 if test "$USE_DARWIN" = 1; then
40181 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
40182echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
40183 ac_ext=cc
40184ac_cpp='$CXXCPP $CPPFLAGS'
40185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40188
40189 cat >conftest.$ac_ext <<_ACEOF
40190/* confdefs.h. */
40191_ACEOF
40192cat confdefs.h >>conftest.$ac_ext
40193cat >>conftest.$ac_ext <<_ACEOF
40194/* end confdefs.h. */
40195 #include <IOKit/hid/IOHIDLib.h>
40196int
40197main ()
40198{
40199 IOHIDQueueInterface *qi = NULL;
40200 IOHIDCallbackFunction cb = NULL;
40201 qi->setEventCallout(NULL, cb, NULL, NULL);
40202 ;
40203 return 0;
40204}
40205_ACEOF
40206rm -f conftest.$ac_objext
40207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40208 (eval $ac_compile) 2>conftest.er1
40209 ac_status=$?
40210 grep -v '^ *+' conftest.er1 >conftest.err
40211 rm -f conftest.er1
40212 cat conftest.err >&5
40213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40214 (exit $ac_status); } &&
6ebeb4c7 40215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
40216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40217 (eval $ac_try) 2>&5
40218 ac_status=$?
40219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40220 (exit $ac_status); }; } &&
40221 { ac_try='test -s conftest.$ac_objext'
40222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40223 (eval $ac_try) 2>&5
40224 ac_status=$?
40225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40226 (exit $ac_status); }; }; then
40227 wxUSE_JOYSTICK=yes
a848cd7e 40228
ee45c548
MW
40229else
40230 echo "$as_me: failed program was:" >&5
40231sed 's/^/| /' conftest.$ac_ext >&5
40232
40233fi
40234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40235 ac_ext=c
40236ac_cpp='$CPP $CPPFLAGS'
40237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40239ac_compiler_gnu=$ac_cv_c_compiler_gnu
40240
40241 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
40242echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
40243 fi
40244
40245 else
a848cd7e
SC
40246
40247for ac_header in linux/joystick.h
40248do
40249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40250if eval "test \"\${$as_ac_Header+set}\" = set"; then
40251 echo "$as_me:$LINENO: checking for $ac_header" >&5
40252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40253if eval "test \"\${$as_ac_Header+set}\" = set"; then
40254 echo $ECHO_N "(cached) $ECHO_C" >&6
40255fi
40256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40258else
40259 # Is the header compilable?
40260echo "$as_me:$LINENO: checking $ac_header usability" >&5
40261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40262cat >conftest.$ac_ext <<_ACEOF
40263/* confdefs.h. */
40264_ACEOF
40265cat confdefs.h >>conftest.$ac_ext
40266cat >>conftest.$ac_ext <<_ACEOF
40267/* end confdefs.h. */
40268$ac_includes_default
40269#include <$ac_header>
40270_ACEOF
40271rm -f conftest.$ac_objext
40272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40273 (eval $ac_compile) 2>conftest.er1
a848cd7e 40274 ac_status=$?
ac1cb8d3
VS
40275 grep -v '^ *+' conftest.er1 >conftest.err
40276 rm -f conftest.er1
40277 cat conftest.err >&5
a848cd7e
SC
40278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40279 (exit $ac_status); } &&
6ebeb4c7 40280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40282 (eval $ac_try) 2>&5
40283 ac_status=$?
40284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40285 (exit $ac_status); }; } &&
40286 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40288 (eval $ac_try) 2>&5
40289 ac_status=$?
40290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40291 (exit $ac_status); }; }; then
40292 ac_header_compiler=yes
40293else
40294 echo "$as_me: failed program was:" >&5
40295sed 's/^/| /' conftest.$ac_ext >&5
40296
40297ac_header_compiler=no
40298fi
ac1cb8d3 40299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40301echo "${ECHO_T}$ac_header_compiler" >&6
40302
40303# Is the header present?
40304echo "$as_me:$LINENO: checking $ac_header presence" >&5
40305echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40306cat >conftest.$ac_ext <<_ACEOF
40307/* confdefs.h. */
40308_ACEOF
40309cat confdefs.h >>conftest.$ac_ext
40310cat >>conftest.$ac_ext <<_ACEOF
40311/* end confdefs.h. */
40312#include <$ac_header>
40313_ACEOF
40314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40316 ac_status=$?
40317 grep -v '^ *+' conftest.er1 >conftest.err
40318 rm -f conftest.er1
40319 cat conftest.err >&5
40320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40321 (exit $ac_status); } >/dev/null; then
40322 if test -s conftest.err; then
40323 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 40324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
40325 else
40326 ac_cpp_err=
40327 fi
40328else
40329 ac_cpp_err=yes
40330fi
40331if test -z "$ac_cpp_err"; then
40332 ac_header_preproc=yes
40333else
40334 echo "$as_me: failed program was:" >&5
40335sed 's/^/| /' conftest.$ac_ext >&5
40336
40337 ac_header_preproc=no
40338fi
40339rm -f conftest.err conftest.$ac_ext
40340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40341echo "${ECHO_T}$ac_header_preproc" >&6
40342
40343# So? What about this header?
ac1cb8d3
VS
40344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40345 yes:no: )
a848cd7e
SC
40346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40349echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40350 ac_header_preproc=yes
a848cd7e 40351 ;;
ac1cb8d3 40352 no:yes:* )
a848cd7e
SC
40353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40358echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40360echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40364echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40365 (
40366 cat <<\_ASBOX
ac1cb8d3
VS
40367## ----------------------------------------- ##
40368## Report this to wx-dev@lists.wxwidgets.org ##
40369## ----------------------------------------- ##
a848cd7e
SC
40370_ASBOX
40371 ) |
40372 sed "s/^/$as_me: WARNING: /" >&2
40373 ;;
40374esac
40375echo "$as_me:$LINENO: checking for $ac_header" >&5
40376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40377if eval "test \"\${$as_ac_Header+set}\" = set"; then
40378 echo $ECHO_N "(cached) $ECHO_C" >&6
40379else
ac1cb8d3 40380 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40381fi
40382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40384
40385fi
40386if test `eval echo '${'$as_ac_Header'}'` = yes; then
40387 cat >>confdefs.h <<_ACEOF
40388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40389_ACEOF
ee45c548 40390 wxUSE_JOYSTICK=yes
a848cd7e
SC
40391fi
40392
40393done
40394
ee45c548 40395 fi
4cb1d3da 40396
ee45c548
MW
40397 if test "$wxUSE_JOYSTICK" = "yes"; then
40398 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40399#define wxUSE_JOYSTICK 1
40400_ACEOF
40401
ee45c548
MW
40402 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
40403 else
40404 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
40405echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
40406 fi
40407fi
40408
40409
40410
40411if test "$wxUSE_FONTMAP" = "yes" ; then
40412 cat >>confdefs.h <<\_ACEOF
40413#define wxUSE_FONTMAP 1
40414_ACEOF
40415
40416fi
40417
40418if test "$wxUSE_UNICODE" = "yes" ; then
40419 cat >>confdefs.h <<\_ACEOF
40420#define wxUSE_UNICODE 1
40421_ACEOF
40422
40423
40424 if test "$USE_WIN32" != 1; then
40425 wxUSE_UNICODE_MSLU=no
40426 fi
40427
40428 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
40429 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
40430echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
40431if test "${ac_cv_lib_unicows_main+set}" = set; then
40432 echo $ECHO_N "(cached) $ECHO_C" >&6
40433else
40434 ac_check_lib_save_LIBS=$LIBS
40435LIBS="-lunicows $LIBS"
40436cat >conftest.$ac_ext <<_ACEOF
40437/* confdefs.h. */
40438_ACEOF
40439cat confdefs.h >>conftest.$ac_ext
40440cat >>conftest.$ac_ext <<_ACEOF
40441/* end confdefs.h. */
40442
40443
40444int
40445main ()
40446{
40447main ();
40448 ;
40449 return 0;
40450}
40451_ACEOF
40452rm -f conftest.$ac_objext conftest$ac_exeext
40453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40454 (eval $ac_link) 2>conftest.er1
a848cd7e 40455 ac_status=$?
ac1cb8d3
VS
40456 grep -v '^ *+' conftest.er1 >conftest.err
40457 rm -f conftest.er1
40458 cat conftest.err >&5
a848cd7e
SC
40459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40460 (exit $ac_status); } &&
6ebeb4c7 40461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40463 (eval $ac_try) 2>&5
40464 ac_status=$?
40465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466 (exit $ac_status); }; } &&
40467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40469 (eval $ac_try) 2>&5
40470 ac_status=$?
40471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472 (exit $ac_status); }; }; then
40473 ac_cv_lib_unicows_main=yes
40474else
40475 echo "$as_me: failed program was:" >&5
40476sed 's/^/| /' conftest.$ac_ext >&5
40477
40478ac_cv_lib_unicows_main=no
40479fi
ac1cb8d3
VS
40480rm -f conftest.err conftest.$ac_objext \
40481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40482LIBS=$ac_check_lib_save_LIBS
40483fi
40484echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
40485echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
40486if test $ac_cv_lib_unicows_main = yes; then
40487
40488 cat >>confdefs.h <<\_ACEOF
40489#define wxUSE_UNICODE_MSLU 1
40490_ACEOF
40491
40492
40493else
40494
40495 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
40496 Applications will only run on Windows NT/2000/XP!" >&5
40497echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
40498 Applications will only run on Windows NT/2000/XP!" >&2;}
40499 wxUSE_UNICODE_MSLU=no
40500
40501fi
40502
40503 fi
40504fi
40505
40506if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
40507 cat >>confdefs.h <<\_ACEOF
40508#define wxUSE_EXPERIMENTAL_PRINTF 1
40509_ACEOF
40510
40511fi
40512
40513
40514if test "$wxUSE_POSTSCRIPT" = "yes" ; then
40515 cat >>confdefs.h <<\_ACEOF
40516#define wxUSE_POSTSCRIPT 1
40517_ACEOF
40518
40519fi
40520
40521cat >>confdefs.h <<\_ACEOF
40522#define wxUSE_AFM_FOR_POSTSCRIPT 1
40523_ACEOF
40524
40525
40526cat >>confdefs.h <<\_ACEOF
40527#define wxUSE_NORMALIZED_PS_FONTS 1
40528_ACEOF
40529
40530
40531
40532if test "$wxUSE_CONSTRAINTS" = "yes"; then
40533 cat >>confdefs.h <<\_ACEOF
40534#define wxUSE_CONSTRAINTS 1
40535_ACEOF
40536
40537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
40538fi
40539
8a7b1113
VZ
40540if test "$wxUSE_MDI" = "yes"; then
40541 cat >>confdefs.h <<\_ACEOF
40542#define wxUSE_MDI 1
40543_ACEOF
40544
40545
40546 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
40547 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40548#define wxUSE_MDI_ARCHITECTURE 1
40549_ACEOF
40550
8a7b1113
VZ
40551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
40552 fi
a848cd7e
SC
40553fi
40554
40555if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
40556 cat >>confdefs.h <<\_ACEOF
40557#define wxUSE_DOC_VIEW_ARCHITECTURE 1
40558_ACEOF
40559
40560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
40561 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
40562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
40563 fi
40564fi
40565
40566if test "$wxUSE_HELP" = "yes"; then
40567 cat >>confdefs.h <<\_ACEOF
40568#define wxUSE_HELP 1
40569_ACEOF
40570
40571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
40572
40573 if test "$wxUSE_MSW" = 1; then
40574 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
40575 cat >>confdefs.h <<\_ACEOF
40576#define wxUSE_MS_HTML_HELP 1
40577_ACEOF
40578
40579 fi
40580 fi
40581
40582 if test "$wxUSE_WXHTML_HELP" = "yes"; then
40583 if test "$wxUSE_HTML" = "yes"; then
40584 cat >>confdefs.h <<\_ACEOF
40585#define wxUSE_WXHTML_HELP 1
40586_ACEOF
40587
40588 else
40589 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
40590echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
40591 wxUSE_WXHTML_HELP=no
40592 fi
40593 fi
40594fi
40595
40596if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40597 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40598 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
40599echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
40600 else
40601 cat >>confdefs.h <<\_ACEOF
40602#define wxUSE_PRINTING_ARCHITECTURE 1
40603_ACEOF
40604
40605 fi
40606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
40607fi
40608
40609if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
40610 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
40611echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
40612 { (exit 1); exit 1; }; }
40613fi
40614
40615
efdf6afe
VZ
40616if test "$wxUSE_METAFILE" = "yes"; then
40617 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
40618 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
40619echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
40620 wxUSE_METAFILE=no
40621 fi
40622fi
40623
40624
a848cd7e
SC
40625if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
40626 -o "$wxUSE_CLIPBOARD" = "yes" \
40627 -o "$wxUSE_OLE" = "yes" \
40628 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
40629
40630for ac_header in ole2.h
40631do
40632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40633if eval "test \"\${$as_ac_Header+set}\" = set"; then
40634 echo "$as_me:$LINENO: checking for $ac_header" >&5
40635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40636if eval "test \"\${$as_ac_Header+set}\" = set"; then
40637 echo $ECHO_N "(cached) $ECHO_C" >&6
40638fi
40639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40641else
40642 # Is the header compilable?
40643echo "$as_me:$LINENO: checking $ac_header usability" >&5
40644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40645cat >conftest.$ac_ext <<_ACEOF
40646/* confdefs.h. */
40647_ACEOF
40648cat confdefs.h >>conftest.$ac_ext
40649cat >>conftest.$ac_ext <<_ACEOF
40650/* end confdefs.h. */
40651$ac_includes_default
40652#include <$ac_header>
40653_ACEOF
40654rm -f conftest.$ac_objext
40655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40656 (eval $ac_compile) 2>conftest.er1
a848cd7e 40657 ac_status=$?
ac1cb8d3
VS
40658 grep -v '^ *+' conftest.er1 >conftest.err
40659 rm -f conftest.er1
40660 cat conftest.err >&5
a848cd7e
SC
40661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40662 (exit $ac_status); } &&
6ebeb4c7 40663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40665 (eval $ac_try) 2>&5
40666 ac_status=$?
40667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40668 (exit $ac_status); }; } &&
40669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40671 (eval $ac_try) 2>&5
40672 ac_status=$?
40673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40674 (exit $ac_status); }; }; then
40675 ac_header_compiler=yes
40676else
40677 echo "$as_me: failed program was:" >&5
40678sed 's/^/| /' conftest.$ac_ext >&5
40679
40680ac_header_compiler=no
40681fi
ac1cb8d3 40682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40684echo "${ECHO_T}$ac_header_compiler" >&6
40685
40686# Is the header present?
40687echo "$as_me:$LINENO: checking $ac_header presence" >&5
40688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40689cat >conftest.$ac_ext <<_ACEOF
40690/* confdefs.h. */
40691_ACEOF
40692cat confdefs.h >>conftest.$ac_ext
40693cat >>conftest.$ac_ext <<_ACEOF
40694/* end confdefs.h. */
40695#include <$ac_header>
40696_ACEOF
40697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40699 ac_status=$?
40700 grep -v '^ *+' conftest.er1 >conftest.err
40701 rm -f conftest.er1
40702 cat conftest.err >&5
40703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40704 (exit $ac_status); } >/dev/null; then
40705 if test -s conftest.err; then
40706 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 40707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
40708 else
40709 ac_cpp_err=
40710 fi
40711else
40712 ac_cpp_err=yes
40713fi
40714if test -z "$ac_cpp_err"; then
40715 ac_header_preproc=yes
40716else
40717 echo "$as_me: failed program was:" >&5
40718sed 's/^/| /' conftest.$ac_ext >&5
40719
40720 ac_header_preproc=no
40721fi
40722rm -f conftest.err conftest.$ac_ext
40723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40724echo "${ECHO_T}$ac_header_preproc" >&6
40725
40726# So? What about this header?
ac1cb8d3
VS
40727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40728 yes:no: )
a848cd7e
SC
40729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40733 ac_header_preproc=yes
a848cd7e 40734 ;;
ac1cb8d3 40735 no:yes:* )
a848cd7e
SC
40736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40748 (
40749 cat <<\_ASBOX
ac1cb8d3
VS
40750## ----------------------------------------- ##
40751## Report this to wx-dev@lists.wxwidgets.org ##
40752## ----------------------------------------- ##
a848cd7e
SC
40753_ASBOX
40754 ) |
40755 sed "s/^/$as_me: WARNING: /" >&2
40756 ;;
40757esac
40758echo "$as_me:$LINENO: checking for $ac_header" >&5
40759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40760if eval "test \"\${$as_ac_Header+set}\" = set"; then
40761 echo $ECHO_N "(cached) $ECHO_C" >&6
40762else
ac1cb8d3 40763 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40764fi
40765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40767
40768fi
40769if test `eval echo '${'$as_ac_Header'}'` = yes; then
40770 cat >>confdefs.h <<_ACEOF
40771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40772_ACEOF
40773
40774fi
40775
40776done
40777
40778
40779 if test "$ac_cv_header_ole2_h" = "yes" ; then
40780 if test "$GCC" = yes ; then
40781
40782
40783 ac_ext=cc
40784ac_cpp='$CXXCPP $CPPFLAGS'
40785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40788
40789
40790 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
40791echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
40792 cat >conftest.$ac_ext <<_ACEOF
40793/* confdefs.h. */
40794_ACEOF
40795cat confdefs.h >>conftest.$ac_ext
40796cat >>conftest.$ac_ext <<_ACEOF
40797/* end confdefs.h. */
40798#include <windows.h>
40799 #include <ole2.h>
40800int
40801main ()
40802{
40803
40804 ;
40805 return 0;
40806}
40807_ACEOF
40808rm -f conftest.$ac_objext
40809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40810 (eval $ac_compile) 2>conftest.er1
a848cd7e 40811 ac_status=$?
ac1cb8d3
VS
40812 grep -v '^ *+' conftest.er1 >conftest.err
40813 rm -f conftest.er1
40814 cat conftest.err >&5
a848cd7e
SC
40815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40816 (exit $ac_status); } &&
6ebeb4c7 40817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40819 (eval $ac_try) 2>&5
40820 ac_status=$?
40821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40822 (exit $ac_status); }; } &&
40823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40825 (eval $ac_try) 2>&5
40826 ac_status=$?
40827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40828 (exit $ac_status); }; }; then
40829 echo "$as_me:$LINENO: result: no" >&5
40830echo "${ECHO_T}no" >&6
40831else
40832 echo "$as_me: failed program was:" >&5
40833sed 's/^/| /' conftest.$ac_ext >&5
40834
40835echo "$as_me:$LINENO: result: yes" >&5
40836echo "${ECHO_T}yes" >&6
40837 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
40838fi
ac1cb8d3 40839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40840 ac_ext=c
40841ac_cpp='$CPP $CPPFLAGS'
40842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40844ac_compiler_gnu=$ac_cv_c_compiler_gnu
40845
a848cd7e
SC
40846 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
40847 if test "$wxUSE_OLE" = "yes" ; then
40848 cat >>confdefs.h <<\_ACEOF
40849#define wxUSE_OLE 1
40850_ACEOF
40851
0b78747f 40852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
40853 fi
40854 fi
40855
40856 if test "$wxUSE_DATAOBJ" = "yes" ; then
40857 cat >>confdefs.h <<\_ACEOF
40858#define wxUSE_DATAOBJ 1
40859_ACEOF
40860
40861 fi
40862 else
40863 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
40864echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
40865
40866 wxUSE_CLIPBOARD=no
40867 wxUSE_DRAG_AND_DROP=no
40868 wxUSE_DATAOBJ=no
40869 wxUSE_OLE=no
40870 fi
40871
40872 if test "$wxUSE_METAFILE" = "yes"; then
40873 cat >>confdefs.h <<\_ACEOF
40874#define wxUSE_METAFILE 1
40875_ACEOF
40876
40877
40878 cat >>confdefs.h <<\_ACEOF
40879#define wxUSE_ENH_METAFILE 1
40880_ACEOF
40881
40882 fi
40883fi
40884
40885if test "$wxUSE_IPC" = "yes"; then
0b78747f 40886 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
40887 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
40888echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 40889 wxUSE_IPC=no
a848cd7e
SC
40890 fi
40891
0b78747f
MW
40892 if test "$wxUSE_IPC" = "yes"; then
40893 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40894#define wxUSE_IPC 1
40895_ACEOF
40896
0b78747f
MW
40897 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
40898 fi
a848cd7e
SC
40899fi
40900
eb730a0c 40901if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
40902 if test "$wxUSE_MGL" = 1; then
40903 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
40904echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
40905 wxUSE_DATAOBJ=no
40906 else
40907 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
40908#define wxUSE_DATAOBJ 1
40909_ACEOF
40910
2113bc77 40911 fi
eb730a0c
JS
40912else
40913 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
40914echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
40915 wxUSE_CLIPBOARD=no
40916 wxUSE_DRAG_AND_DROP=no
40917fi
40918
a848cd7e
SC
40919if test "$wxUSE_CLIPBOARD" = "yes"; then
40920 if test "$wxUSE_MGL" = 1; then
40921 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
40922echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
40923 wxUSE_CLIPBOARD=no
40924 fi
40925
40926 if test "$wxUSE_CLIPBOARD" = "yes"; then
40927 cat >>confdefs.h <<\_ACEOF
40928#define wxUSE_CLIPBOARD 1
40929_ACEOF
40930
a848cd7e
SC
40931 fi
40932fi
40933
40934if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
40935 if test "$wxUSE_GTK" = 1; then
40936 if test "$WXGTK12" != 1; then
40937 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
40938echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
40939 wxUSE_DRAG_AND_DROP=no
40940 fi
40941 fi
40942
40943 if test "$wxUSE_MOTIF" = 1; then
40944 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
40945echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
40946 wxUSE_DRAG_AND_DROP=no
40947 fi
40948
40949 if test "$wxUSE_X11" = 1; then
40950 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
40951echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
40952 wxUSE_DRAG_AND_DROP=no
40953 fi
40954
40955 if test "$wxUSE_MGL" = 1; then
40956 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
40957echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
40958 wxUSE_DRAG_AND_DROP=no
40959 fi
40960
40961 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
40962 cat >>confdefs.h <<\_ACEOF
40963#define wxUSE_DRAG_AND_DROP 1
40964_ACEOF
40965
40966 fi
40967
40968fi
40969
40970if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
40971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
40972fi
40973
40974if test "$wxUSE_SPLINES" = "yes" ; then
40975 cat >>confdefs.h <<\_ACEOF
40976#define wxUSE_SPLINES 1
40977_ACEOF
40978
40979fi
40980
fbe2ca43
SN
40981if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
40982 cat >>confdefs.h <<\_ACEOF
40983#define wxUSE_MOUSEWHEEL 1
40984_ACEOF
40985
40986fi
40987
a848cd7e
SC
40988
40989USES_CONTROLS=0
40990if test "$wxUSE_CONTROLS" = "yes"; then
40991 USES_CONTROLS=1
40992fi
40993
40994if test "$wxUSE_ACCEL" = "yes"; then
40995 cat >>confdefs.h <<\_ACEOF
40996#define wxUSE_ACCEL 1
40997_ACEOF
40998
40999 USES_CONTROLS=1
41000fi
41001
41002if test "$wxUSE_BUTTON" = "yes"; then
41003 cat >>confdefs.h <<\_ACEOF
41004#define wxUSE_BUTTON 1
41005_ACEOF
41006
41007 USES_CONTROLS=1
41008fi
41009
41010if test "$wxUSE_BMPBUTTON" = "yes"; then
41011 cat >>confdefs.h <<\_ACEOF
41012#define wxUSE_BMPBUTTON 1
41013_ACEOF
41014
41015 USES_CONTROLS=1
41016fi
41017
41018if test "$wxUSE_CALCTRL" = "yes"; then
41019 cat >>confdefs.h <<\_ACEOF
41020#define wxUSE_CALENDARCTRL 1
41021_ACEOF
41022
41023 USES_CONTROLS=1
41024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41025fi
41026
41027if test "$wxUSE_CARET" = "yes"; then
41028 cat >>confdefs.h <<\_ACEOF
41029#define wxUSE_CARET 1
41030_ACEOF
41031
41032 USES_CONTROLS=1
41033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41034fi
41035
41036if test "$wxUSE_COMBOBOX" = "yes"; then
41037 cat >>confdefs.h <<\_ACEOF
41038#define wxUSE_COMBOBOX 1
41039_ACEOF
41040
41041 USES_CONTROLS=1
41042fi
41043
41044if test "$wxUSE_CHOICE" = "yes"; then
41045 cat >>confdefs.h <<\_ACEOF
41046#define wxUSE_CHOICE 1
41047_ACEOF
41048
41049 USES_CONTROLS=1
41050fi
41051
92bbdbcd
WS
41052if test "$wxUSE_CHOICEBOOK" = "yes"; then
41053 cat >>confdefs.h <<\_ACEOF
41054#define wxUSE_CHOICEBOOK 1
41055_ACEOF
41056
41057 USES_CONTROLS=1
41058fi
41059
a848cd7e
SC
41060if test "$wxUSE_CHECKBOX" = "yes"; then
41061 cat >>confdefs.h <<\_ACEOF
41062#define wxUSE_CHECKBOX 1
41063_ACEOF
41064
41065 USES_CONTROLS=1
41066fi
41067
41068if test "$wxUSE_CHECKLST" = "yes"; then
41069 cat >>confdefs.h <<\_ACEOF
41070#define wxUSE_CHECKLISTBOX 1
41071_ACEOF
41072
41073 USES_CONTROLS=1
41074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41075fi
41076
da98e9be
VZ
41077if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41078 cat >>confdefs.h <<\_ACEOF
41079#define wxUSE_DATEPICKCTRL 1
41080_ACEOF
41081
41082 USES_CONTROLS=1
41083fi
41084
a848cd7e
SC
41085if test "$wxUSE_DISPLAY" = "yes"; then
41086 cat >>confdefs.h <<\_ACEOF
41087#define wxUSE_DISPLAY 1
41088_ACEOF
41089
0b78747f 41090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
41091fi
41092
41093if test "$wxUSE_GAUGE" = "yes"; then
41094 cat >>confdefs.h <<\_ACEOF
41095#define wxUSE_GAUGE 1
41096_ACEOF
41097
41098 USES_CONTROLS=1
41099fi
41100
41101if test "$wxUSE_GRID" = "yes"; then
41102 cat >>confdefs.h <<\_ACEOF
41103#define wxUSE_GRID 1
41104_ACEOF
41105
41106 USES_CONTROLS=1
41107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41108fi
41109
41110if test "$wxUSE_IMAGLIST" = "yes"; then
41111 cat >>confdefs.h <<\_ACEOF
41112#define wxUSE_IMAGLIST 1
41113_ACEOF
41114
41115fi
41116
41117if test "$wxUSE_LISTBOOK" = "yes"; then
41118 cat >>confdefs.h <<\_ACEOF
41119#define wxUSE_LISTBOOK 1
41120_ACEOF
41121
41122 USES_CONTROLS=1
41123fi
41124
41125if test "$wxUSE_LISTBOX" = "yes"; then
41126 cat >>confdefs.h <<\_ACEOF
41127#define wxUSE_LISTBOX 1
41128_ACEOF
41129
41130 USES_CONTROLS=1
0b78747f 41131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
41132fi
41133
41134if test "$wxUSE_LISTCTRL" = "yes"; then
41135 if test "$wxUSE_IMAGLIST" = "yes"; then
41136 cat >>confdefs.h <<\_ACEOF
41137#define wxUSE_LISTCTRL 1
41138_ACEOF
41139
41140 USES_CONTROLS=1
41141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
41142 else
41143 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
41144echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
41145 fi
41146fi
41147
41148if test "$wxUSE_NOTEBOOK" = "yes"; then
41149 cat >>confdefs.h <<\_ACEOF
41150#define wxUSE_NOTEBOOK 1
41151_ACEOF
41152
41153 USES_CONTROLS=1
41154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
41155fi
41156
41157
41158if test "$wxUSE_RADIOBOX" = "yes"; then
41159 cat >>confdefs.h <<\_ACEOF
41160#define wxUSE_RADIOBOX 1
41161_ACEOF
41162
41163 USES_CONTROLS=1
41164fi
41165
41166if test "$wxUSE_RADIOBTN" = "yes"; then
41167 cat >>confdefs.h <<\_ACEOF
41168#define wxUSE_RADIOBTN 1
41169_ACEOF
41170
41171 USES_CONTROLS=1
41172fi
41173
41174if test "$wxUSE_SASH" = "yes"; then
41175 cat >>confdefs.h <<\_ACEOF
41176#define wxUSE_SASH 1
41177_ACEOF
41178
41179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
41180fi
41181
41182if test "$wxUSE_SCROLLBAR" = "yes"; then
41183 cat >>confdefs.h <<\_ACEOF
41184#define wxUSE_SCROLLBAR 1
41185_ACEOF
41186
41187 USES_CONTROLS=1
41188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
41189fi
41190
41191if test "$wxUSE_SLIDER" = "yes"; then
41192 cat >>confdefs.h <<\_ACEOF
41193#define wxUSE_SLIDER 1
41194_ACEOF
41195
41196 USES_CONTROLS=1
41197fi
41198
41199if test "$wxUSE_SPINBTN" = "yes"; then
41200 cat >>confdefs.h <<\_ACEOF
41201#define wxUSE_SPINBTN 1
41202_ACEOF
41203
41204 USES_CONTROLS=1
41205fi
41206
41207if test "$wxUSE_SPINCTRL" = "yes"; then
41208 cat >>confdefs.h <<\_ACEOF
41209#define wxUSE_SPINCTRL 1
41210_ACEOF
41211
41212 USES_CONTROLS=1
41213fi
41214
41215if test "$wxUSE_SPLITTER" = "yes"; then
41216 cat >>confdefs.h <<\_ACEOF
41217#define wxUSE_SPLITTER 1
41218_ACEOF
41219
41220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
41221fi
41222
41223if test "$wxUSE_STATBMP" = "yes"; then
41224 cat >>confdefs.h <<\_ACEOF
41225#define wxUSE_STATBMP 1
41226_ACEOF
41227
41228 USES_CONTROLS=1
41229fi
41230
41231if test "$wxUSE_STATBOX" = "yes"; then
41232 cat >>confdefs.h <<\_ACEOF
41233#define wxUSE_STATBOX 1
41234_ACEOF
41235
41236 USES_CONTROLS=1
41237fi
41238
41239if test "$wxUSE_STATTEXT" = "yes"; then
41240 cat >>confdefs.h <<\_ACEOF
41241#define wxUSE_STATTEXT 1
41242_ACEOF
41243
41244 USES_CONTROLS=1
41245fi
41246
41247if test "$wxUSE_STATLINE" = "yes"; then
41248 cat >>confdefs.h <<\_ACEOF
41249#define wxUSE_STATLINE 1
41250_ACEOF
41251
41252 USES_CONTROLS=1
41253fi
41254
41255if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
41256 cat >>confdefs.h <<\_ACEOF
41257#define wxUSE_NATIVE_STATUSBAR 1
41258_ACEOF
41259
a848cd7e
SC
41260 cat >>confdefs.h <<\_ACEOF
41261#define wxUSE_STATUSBAR 1
41262_ACEOF
41263
41264 USES_CONTROLS=1
41265
41266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
41267fi
41268
41269if test "$wxUSE_TABDIALOG" = "yes"; then
41270 cat >>confdefs.h <<\_ACEOF
41271#define wxUSE_TAB_DIALOG 1
41272_ACEOF
41273
a848cd7e
SC
41274fi
41275
41276if test "$wxUSE_TEXTCTRL" = "yes"; then
41277 cat >>confdefs.h <<\_ACEOF
41278#define wxUSE_TEXTCTRL 1
41279_ACEOF
41280
41281 USES_CONTROLS=1
41282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
41283fi
41284
41285if test "$wxUSE_TOGGLEBTN" = "yes"; then
41286 if test "$wxUSE_COCOA" = 1 ; then
41287 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
41288echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
41289 wxUSE_TOGGLEBTN=no
41290 fi
41291 if test "$wxUSE_UNIVERSAL" = "yes"; then
41292 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
41293echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
41294 wxUSE_TOGGLEBTN=no
41295 fi
41296
41297 if test "$wxUSE_TOGGLEBTN" = "yes"; then
41298 cat >>confdefs.h <<\_ACEOF
41299#define wxUSE_TOGGLEBTN 1
41300_ACEOF
41301
41302 USES_CONTROLS=1
41303 fi
41304fi
41305
41306if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
41307 cat >>confdefs.h <<\_ACEOF
41308#define wxUSE_TOOLBAR_SIMPLE 1
41309_ACEOF
41310
41311 wxUSE_TOOLBAR="yes"
41312 USES_CONTROLS=1
41313fi
41314
41315if test "$wxUSE_TOOLBAR" = "yes"; then
41316 cat >>confdefs.h <<\_ACEOF
41317#define wxUSE_TOOLBAR 1
41318_ACEOF
41319
41320 USES_CONTROLS=1
41321
41322 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
41323 wxUSE_TOOLBAR_NATIVE="yes"
41324 fi
41325
41326 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
41327 cat >>confdefs.h <<\_ACEOF
41328#define wxUSE_TOOLBAR_NATIVE 1
41329_ACEOF
41330
41331 USES_CONTROLS=1
41332 fi
41333
41334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
41335fi
41336
41337if test "$wxUSE_TOOLTIPS" = "yes"; then
41338 if test "$wxUSE_MOTIF" = 1; then
41339 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
41340echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
41341 else
41342 if test "$wxUSE_UNIVERSAL" = "yes"; then
41343 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
41344echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
41345 else
41346 cat >>confdefs.h <<\_ACEOF
41347#define wxUSE_TOOLTIPS 1
41348_ACEOF
41349
41350 fi
41351 fi
41352fi
41353
41354if test "$wxUSE_TREECTRL" = "yes"; then
41355 if test "$wxUSE_IMAGLIST" = "yes"; then
41356 cat >>confdefs.h <<\_ACEOF
41357#define wxUSE_TREECTRL 1
41358_ACEOF
41359
41360 USES_CONTROLS=1
41361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
41362 else
41363 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
41364echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
41365 fi
41366fi
41367
41368if test "$wxUSE_POPUPWIN" = "yes"; then
41369 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
41370 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
41371echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
41372 else
41373 if test "$wxUSE_PM" = 1; then
41374 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
41375echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
41376 else
41377 cat >>confdefs.h <<\_ACEOF
41378#define wxUSE_POPUPWIN 1
41379_ACEOF
41380
0b78747f 41381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
41382
41383 USES_CONTROLS=1
41384 fi
41385 fi
41386fi
41387
0dcd06dd 41388if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
41389 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
41390 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
41391echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
41392 else
41393 cat >>confdefs.h <<\_ACEOF
41394#define wxUSE_DIALUP_MANAGER 1
41395_ACEOF
41396
41397 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
41398 fi
41399fi
41400
a848cd7e
SC
41401if test "$wxUSE_TIPWINDOW" = "yes"; then
41402 if test "$wxUSE_PM" = 1; then
41403 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
41404echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
41405 else
41406 cat >>confdefs.h <<\_ACEOF
41407#define wxUSE_TIPWINDOW 1
41408_ACEOF
41409
41410 fi
41411fi
41412
41413if test "$USES_CONTROLS" = 1; then
41414 cat >>confdefs.h <<\_ACEOF
41415#define wxUSE_CONTROLS 1
41416_ACEOF
41417
41418fi
41419
41420
41421if test "$wxUSE_ACCESSIBILITY" = "yes"; then
41422 cat >>confdefs.h <<\_ACEOF
41423#define wxUSE_ACCESSIBILITY 1
41424_ACEOF
41425
41426 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
41427fi
41428
38b4a946
VZ
41429if test "$wxUSE_DC_CACHEING" = "yes"; then
41430 cat >>confdefs.h <<\_ACEOF
41431#define wxUSE_DC_CACHEING 1
41432_ACEOF
41433
41434fi
41435
a848cd7e
SC
41436if test "$wxUSE_DRAGIMAGE" = "yes"; then
41437 cat >>confdefs.h <<\_ACEOF
41438#define wxUSE_DRAGIMAGE 1
41439_ACEOF
41440
41441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
41442fi
41443
41444if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
41445 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41446 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
41447echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
41448 else
41449 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41450#define wxUSE_EXCEPTIONS 1
41451_ACEOF
41452
07bea8f0
VS
41453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
41454 fi
a848cd7e
SC
41455fi
41456
41457USE_HTML=0
41458if test "$wxUSE_HTML" = "yes"; then
41459 cat >>confdefs.h <<\_ACEOF
41460#define wxUSE_HTML 1
41461_ACEOF
41462
41463 USE_HTML=1
41464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
41465 if test "$wxUSE_MAC" = 1; then
41466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
41467 fi
a848cd7e 41468fi
646b6ec1 41469if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 41470 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
41471 old_CPPFLAGS="$CPPFLAGS"
41472 CPPFLAGS="$CPPFLAGS -x objective-c++"
41473 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
41474echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
41475if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
41476 echo $ECHO_N "(cached) $ECHO_C" >&6
41477else
41478 cat >conftest.$ac_ext <<_ACEOF
41479/* confdefs.h. */
41480_ACEOF
41481cat confdefs.h >>conftest.$ac_ext
41482cat >>conftest.$ac_ext <<_ACEOF
41483/* end confdefs.h. */
41484#include <Carbon/Carbon.h>
41485
41486#include <WebKit/HIWebView.h>
41487_ACEOF
41488rm -f conftest.$ac_objext
41489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41490 (eval $ac_compile) 2>conftest.er1
41491 ac_status=$?
41492 grep -v '^ *+' conftest.er1 >conftest.err
41493 rm -f conftest.er1
41494 cat conftest.err >&5
41495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41496 (exit $ac_status); } &&
6ebeb4c7 41497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
41498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41499 (eval $ac_try) 2>&5
41500 ac_status=$?
41501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41502 (exit $ac_status); }; } &&
41503 { ac_try='test -s conftest.$ac_objext'
41504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41505 (eval $ac_try) 2>&5
41506 ac_status=$?
41507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41508 (exit $ac_status); }; }; then
41509 ac_cv_header_WebKit_HIWebView_h=yes
41510else
41511 echo "$as_me: failed program was:" >&5
41512sed 's/^/| /' conftest.$ac_ext >&5
41513
41514ac_cv_header_WebKit_HIWebView_h=no
41515fi
41516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41517fi
41518echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
41519echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
41520if test $ac_cv_header_WebKit_HIWebView_h = yes; then
41521
41522 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
41523#define wxUSE_WEBKIT 1
41524_ACEOF
41525
07bea8f0
VS
41526 WEBKIT_LINK="-framework WebKit"
41527
41528else
41529
41530 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
41531echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
41532 wxUSE_WEBKIT=no
41533
646b6ec1
VS
41534fi
41535
07bea8f0
VS
41536
41537 CPPFLAGS="$old_CPPFLAGS"
41538 elif test "$wxUSE_COCOA" = 1; then
41539 cat >>confdefs.h <<\_ACEOF
41540#define wxUSE_WEBKIT 1
41541_ACEOF
41542
41543 else
41544 wxUSE_WEBKIT=no
41545 fi
41546fi
41547
9a8f0513
VS
41548USE_XRC=0
41549if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
41550 if test "$wxUSE_XML" != "yes"; then
41551 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
41552echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
41553 wxUSE_XRC=no
41554 else
41555 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
41556#define wxUSE_XRC 1
41557_ACEOF
41558
d2ebf0b7
VS
41559 USE_XRC=1
41560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
41561 fi
9a8f0513 41562fi
07bea8f0 41563
a848cd7e
SC
41564if test "$wxUSE_MENUS" = "yes"; then
41565 cat >>confdefs.h <<\_ACEOF
41566#define wxUSE_MENUS 1
41567_ACEOF
41568
41569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
41570fi
41571
41572if test "$wxUSE_METAFILE" = "yes"; then
41573 cat >>confdefs.h <<\_ACEOF
41574#define wxUSE_METAFILE 1
41575_ACEOF
41576
41577fi
41578
41579if test "$wxUSE_MIMETYPE" = "yes"; then
41580 cat >>confdefs.h <<\_ACEOF
41581#define wxUSE_MIMETYPE 1
41582_ACEOF
41583
41584fi
41585
41586if test "$wxUSE_MINIFRAME" = "yes"; then
41587 cat >>confdefs.h <<\_ACEOF
41588#define wxUSE_MINIFRAME 1
41589_ACEOF
41590
41591 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
41592fi
41593
41594if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
41595 cat >>confdefs.h <<\_ACEOF
41596#define wxUSE_SYSTEM_OPTIONS 1
41597_ACEOF
41598
41599 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 41600 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
41601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
41602 fi
41603fi
41604
41605
41606if test "$wxUSE_VALIDATORS" = "yes"; then
41607 cat >>confdefs.h <<\_ACEOF
41608#define wxUSE_VALIDATORS 1
41609_ACEOF
41610
41611 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
41612fi
41613
41614if test "$wxUSE_PALETTE" = "yes" ; then
41615 cat >>confdefs.h <<\_ACEOF
41616#define wxUSE_PALETTE 1
41617_ACEOF
41618
41619fi
41620
41621if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
41622 LIBS=" -lunicows $LIBS"
41623fi
41624
41625
41626if test "$wxUSE_IMAGE" = "yes" ; then
41627 cat >>confdefs.h <<\_ACEOF
41628#define wxUSE_IMAGE 1
41629_ACEOF
41630
41631
41632 if test "$wxUSE_GIF" = "yes" ; then
41633 cat >>confdefs.h <<\_ACEOF
41634#define wxUSE_GIF 1
41635_ACEOF
41636
41637 fi
41638
41639 if test "$wxUSE_PCX" = "yes" ; then
41640 cat >>confdefs.h <<\_ACEOF
41641#define wxUSE_PCX 1
41642_ACEOF
41643
41644 fi
41645
41646 if test "$wxUSE_IFF" = "yes" ; then
41647 cat >>confdefs.h <<\_ACEOF
41648#define wxUSE_IFF 1
41649_ACEOF
41650
41651 fi
41652
41653 if test "$wxUSE_PNM" = "yes" ; then
41654 cat >>confdefs.h <<\_ACEOF
41655#define wxUSE_PNM 1
41656_ACEOF
41657
41658 fi
41659
41660 if test "$wxUSE_XPM" = "yes" ; then
41661 cat >>confdefs.h <<\_ACEOF
41662#define wxUSE_XPM 1
41663_ACEOF
41664
41665 fi
41666
41667 if test "$wxUSE_ICO_CUR" = "yes" ; then
41668 cat >>confdefs.h <<\_ACEOF
41669#define wxUSE_ICO_CUR 1
41670_ACEOF
41671
41672 fi
41673fi
41674
41675
41676if test "$wxUSE_CHOICEDLG" = "yes"; then
41677 cat >>confdefs.h <<\_ACEOF
41678#define wxUSE_CHOICEDLG 1
41679_ACEOF
41680
41681fi
41682
41683if test "$wxUSE_COLOURDLG" = "yes"; then
41684 cat >>confdefs.h <<\_ACEOF
41685#define wxUSE_COLOURDLG 1
41686_ACEOF
41687
41688fi
41689
41690if test "$wxUSE_FILEDLG" = "yes"; then
41691 cat >>confdefs.h <<\_ACEOF
41692#define wxUSE_FILEDLG 1
41693_ACEOF
41694
41695fi
41696
41697if test "$wxUSE_FINDREPLDLG" = "yes"; then
41698 cat >>confdefs.h <<\_ACEOF
41699#define wxUSE_FINDREPLDLG 1
41700_ACEOF
41701
41702fi
41703
41704if test "$wxUSE_FONTDLG" = "yes"; then
41705 cat >>confdefs.h <<\_ACEOF
41706#define wxUSE_FONTDLG 1
41707_ACEOF
41708
41709fi
41710
41711if test "$wxUSE_DIRDLG" = "yes"; then
41712 if test "$wxUSE_TREECTRL" != "yes"; then
41713 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
41714echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
41715 else
41716 cat >>confdefs.h <<\_ACEOF
41717#define wxUSE_DIRDLG 1
41718_ACEOF
41719
41720 fi
41721fi
41722
41723if test "$wxUSE_MSGDLG" = "yes"; then
41724 cat >>confdefs.h <<\_ACEOF
41725#define wxUSE_MSGDLG 1
41726_ACEOF
41727
41728fi
41729
41730if test "$wxUSE_NUMBERDLG" = "yes"; then
41731 cat >>confdefs.h <<\_ACEOF
41732#define wxUSE_NUMBERDLG 1
41733_ACEOF
41734
41735fi
41736
41737if test "$wxUSE_PROGRESSDLG" = "yes"; then
41738 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41739 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
41740echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
41741 else
41742 cat >>confdefs.h <<\_ACEOF
41743#define wxUSE_PROGRESSDLG 1
41744_ACEOF
41745
41746 fi
41747fi
41748
41749if test "$wxUSE_SPLASH" = "yes"; then
41750 cat >>confdefs.h <<\_ACEOF
41751#define wxUSE_SPLASH 1
41752_ACEOF
41753
2057db16 41754 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
41755fi
41756
41757if test "$wxUSE_STARTUP_TIPS" = "yes"; then
41758 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41759 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
41760echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
41761 else
41762 cat >>confdefs.h <<\_ACEOF
41763#define wxUSE_STARTUP_TIPS 1
41764_ACEOF
41765
41766 fi
41767fi
41768
41769if test "$wxUSE_TEXTDLG" = "yes"; then
41770 cat >>confdefs.h <<\_ACEOF
41771#define wxUSE_TEXTDLG 1
41772_ACEOF
41773
41774fi
41775
41776if test "$wxUSE_WIZARDDLG" = "yes"; then
41777 cat >>confdefs.h <<\_ACEOF
41778#define wxUSE_WIZARDDLG 1
41779_ACEOF
41780
41781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
41782fi
41783
41784
ce756cb0 41785if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
41786 if test "$wxUSE_GTK" = 1; then
41787 wxUSE_GSTREAMER="yes"
41788
ce756cb0 41789
dae87f93 41790 succeeded=no
ce756cb0 41791
dae87f93
RN
41792 if test -z "$PKG_CONFIG"; then
41793 # Extract the first word of "pkg-config", so it can be a program name with args.
41794set dummy pkg-config; ac_word=$2
41795echo "$as_me:$LINENO: checking for $ac_word" >&5
41796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41797if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41798 echo $ECHO_N "(cached) $ECHO_C" >&6
41799else
41800 case $PKG_CONFIG in
41801 [\\/]* | ?:[\\/]*)
41802 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41803 ;;
41804 *)
41805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41806for as_dir in $PATH
41807do
41808 IFS=$as_save_IFS
41809 test -z "$as_dir" && as_dir=.
41810 for ac_exec_ext in '' $ac_executable_extensions; do
41811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41812 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41814 break 2
41815 fi
41816done
41817done
41818
41819 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41820 ;;
41821esac
41822fi
41823PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41824
41825if test -n "$PKG_CONFIG"; then
41826 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41827echo "${ECHO_T}$PKG_CONFIG" >&6
41828else
41829 echo "$as_me:$LINENO: result: no" >&5
41830echo "${ECHO_T}no" >&6
41831fi
41832
41833 fi
41834
41835 if test "$PKG_CONFIG" = "no" ; then
41836 echo "*** The pkg-config script could not be found. Make sure it is"
41837 echo "*** in your path, or set the PKG_CONFIG environment variable"
41838 echo "*** to the full path to pkg-config."
41839 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41840 else
41841 PKG_CONFIG_MIN_VERSION=0.9.0
41842 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41843 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
41844echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
41845
41846 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
41847 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 41848echo "${ECHO_T}yes" >&6
dae87f93 41849 succeeded=yes
ce756cb0 41850
dae87f93
RN
41851 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
41852echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
41853 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
41854 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
41855echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
41856
41857 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
41858echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
41859 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
41860 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
41861echo "${ECHO_T}$GSTREAMER_LIBS" >&6
41862 else
41863 GSTREAMER_CFLAGS=""
41864 GSTREAMER_LIBS=""
41865 ## If we have a custom action on failure, don't print errors, but
41866 ## do set a variable so people can do so.
41867 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 41868
dae87f93
RN
41869 fi
41870
41871
41872
41873 else
41874 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41875 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41876 fi
41877 fi
41878
41879 if test $succeeded = yes; then
41880
41881 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
41882 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 41883
ce756cb0 41884 else
dae87f93
RN
41885
41886 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
41887echo "$as_me: WARNING: GStreamer installation not found" >&2;}
41888 wxUSE_GSTREAMER="no"
41889
41890 fi
41891
41892
41893
41894
41895
41896 if test "x$GST_INSPECT" == "x"; then
41897 # Extract the first word of "gst-inspect", so it can be a program name with args.
41898set dummy gst-inspect; ac_word=$2
41899echo "$as_me:$LINENO: checking for $ac_word" >&5
41900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41901if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
41902 echo $ECHO_N "(cached) $ECHO_C" >&6
41903else
41904 if test -n "$GST_INSPECT"; then
41905 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
41906else
41907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41908for as_dir in $PATH
41909do
41910 IFS=$as_save_IFS
41911 test -z "$as_dir" && as_dir=.
41912 for ac_exec_ext in '' $ac_executable_extensions; do
41913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41914 ac_cv_prog_GST_INSPECT="gst-inspect"
41915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41916 break 2
ce756cb0 41917 fi
dae87f93
RN
41918done
41919done
41920
41921fi
41922fi
41923GST_INSPECT=$ac_cv_prog_GST_INSPECT
41924if test -n "$GST_INSPECT"; then
41925 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
41926echo "${ECHO_T}$GST_INSPECT" >&6
41927else
41928 echo "$as_me:$LINENO: result: no" >&5
41929echo "${ECHO_T}no" >&6
41930fi
41931
41932 fi
41933
41934 if test "x$GST_INSPECT" != "x"; then
41935 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
41936echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
41937 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
41938 echo "$as_me:$LINENO: result: found." >&5
41939echo "${ECHO_T}found." >&6
ce756cb0 41940
ce756cb0 41941 else
dae87f93
RN
41942 echo "$as_me:$LINENO: result: not found." >&5
41943echo "${ECHO_T}not found." >&6
41944
41945 wxUSE_GSTREAMER="no"
41946 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
41947echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
41948
41949 fi
41950 fi
41951
41952
41953 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
41954echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
41955if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
41956 echo $ECHO_N "(cached) $ECHO_C" >&6
41957else
41958 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
41959/* confdefs.h. */
41960_ACEOF
41961cat confdefs.h >>conftest.$ac_ext
41962cat >>conftest.$ac_ext <<_ACEOF
41963/* end confdefs.h. */
dae87f93 41964#include <gst/gst.h>
ce756cb0 41965
dae87f93 41966#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
41967_ACEOF
41968rm -f conftest.$ac_objext
41969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41970 (eval $ac_compile) 2>conftest.er1
41971 ac_status=$?
41972 grep -v '^ *+' conftest.er1 >conftest.err
41973 rm -f conftest.er1
41974 cat conftest.err >&5
41975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41976 (exit $ac_status); } &&
6ebeb4c7 41977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
41978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41979 (eval $ac_try) 2>&5
41980 ac_status=$?
41981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41982 (exit $ac_status); }; } &&
41983 { ac_try='test -s conftest.$ac_objext'
41984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41985 (eval $ac_try) 2>&5
41986 ac_status=$?
41987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41988 (exit $ac_status); }; }; then
dae87f93 41989 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
41990else
41991 echo "$as_me: failed program was:" >&5
41992sed 's/^/| /' conftest.$ac_ext >&5
41993
dae87f93 41994ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
41995fi
41996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
41997fi
41998echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
41999echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42000if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42001 :
42002else
ce756cb0 42003
dae87f93
RN
42004 wxUSE_GSTREAMER="no"
42005 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42006echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 42007
dae87f93 42008fi
ce756cb0 42009
dae87f93
RN
42010
42011
42012 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
42013echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42014
0ad5d837
VZ
42015
42016 ac_find_libraries=
42017 for ac_dir in $SEARCH_LIB;
ce756cb0 42018 do
3eca31dc 42019 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
42020 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42021 ac_find_libraries=$ac_dir
42022 break 2
42023 fi
42024 done
42025 done
42026
0ad5d837
VZ
42027 if test "x$ac_find_libraries" = "x" ; then
42028
42029 ac_find_libraries=
42030 for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
42031 do
42032 for ac_extension in a so sl dylib dll.a; do
42033 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42034 ac_find_libraries=$ac_dir
42035 break 2
42036 fi
42037 done
42038 done
42039
42040 if test "x$ac_find_libraries" != "x" ; then
42041 ac_find_libraries="default location"
42042 fi
42043 fi
42044
ce756cb0 42045
dae87f93
RN
42046 if test "$ac_find_libraries" = "" ; then
42047 echo "$as_me:$LINENO: result: no" >&5
42048echo "${ECHO_T}no" >&6
42049 wxUSE_GSTREAMER="no"
42050 else
42051 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42052echo "${ECHO_T}yes" >&6
dae87f93 42053 fi
ce756cb0 42054
dae87f93
RN
42055 if test "$wxUSE_GSTREAMER" = "yes"; then
42056 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
42057#define wxUSE_GSTREAMER 1
42058_ACEOF
42059
dae87f93
RN
42060 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42061echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
42062 fi
42063 fi
42064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42065 cat >>confdefs.h <<\_ACEOF
42066#define wxUSE_MEDIACTRL 1
42067_ACEOF
42068
42069fi
42070
42071
a848cd7e
SC
42072if test "$cross_compiling" = "yes"; then
42073 OSINFO="\"$host\""
42074else
42075 OSINFO=`uname -s -r -m`
42076 OSINFO="\"$OSINFO\""
42077fi
42078
42079cat >>confdefs.h <<_ACEOF
42080#define WXWIN_OS_DESCRIPTION $OSINFO
42081_ACEOF
42082
42083
42084
42085if test "x$prefix" != "xNONE"; then
42086 wxPREFIX=$prefix
42087else
42088 wxPREFIX=$ac_default_prefix
42089fi
42090
42091cat >>confdefs.h <<_ACEOF
42092#define wxINSTALL_PREFIX "$wxPREFIX"
42093_ACEOF
42094
42095
a848cd7e
SC
42096
42097
42098CORE_BASE_LIBS="net base"
42099CORE_GUI_LIBS="adv core"
42100
42101if test "$wxUSE_XML" = "yes" ; then
42102 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42103fi
42104if test "$wxUSE_ODBC" != "no" ; then
42105 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42106 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42107fi
42108if test "$wxUSE_HTML" = "yes" ; then
42109 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42110fi
61639efb
VZ
42111if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42112 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42113fi
9a8f0513
VS
42114if test "$wxUSE_XRC" = "yes" ; then
42115 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42116fi
a848cd7e
SC
42117
42118if test "$wxUSE_GUI" != "yes"; then
42119 CORE_GUI_LIBS=""
42120fi
42121
42122
42123
42124
42125
42126
42127
42128
42129if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 42130 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
42131 if test "$USE_DARWIN" = 1; then
42132 LDFLAGS="$LDFLAGS -framework QuickTime"
42133 else
42134 LDFLAGS="$LDFLAGS -lQuickTimeLib"
42135 fi
07bea8f0 42136 fi
5dcf30a0 42137 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
42138 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
42139 else
42140 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 42141 fi
a848cd7e
SC
42142fi
42143if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 42144 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
42145 if test "$wxUSE_MEDIACTRL" = "yes"; then
42146 LDFLAGS="$LDFLAGS -framework QuickTime"
42147 fi
a848cd7e 42148fi
19b27e78
MW
42149if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
42150 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
42151fi
a848cd7e
SC
42152
42153
42154LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
42155
42156have_cos=0
42157have_floor=0
42158
42159for ac_func in cos
42160do
42161as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42162echo "$as_me:$LINENO: checking for $ac_func" >&5
42163echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42164if eval "test \"\${$as_ac_var+set}\" = set"; then
42165 echo $ECHO_N "(cached) $ECHO_C" >&6
42166else
42167 cat >conftest.$ac_ext <<_ACEOF
42168/* confdefs.h. */
42169_ACEOF
42170cat confdefs.h >>conftest.$ac_ext
42171cat >>conftest.$ac_ext <<_ACEOF
42172/* end confdefs.h. */
ac1cb8d3
VS
42173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42175#define $ac_func innocuous_$ac_func
42176
a848cd7e
SC
42177/* System header to define __stub macros and hopefully few prototypes,
42178 which can conflict with char $ac_func (); below.
42179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42180 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42181
a848cd7e
SC
42182#ifdef __STDC__
42183# include <limits.h>
42184#else
42185# include <assert.h>
42186#endif
ac1cb8d3
VS
42187
42188#undef $ac_func
42189
a848cd7e
SC
42190/* Override any gcc2 internal prototype to avoid an error. */
42191#ifdef __cplusplus
42192extern "C"
42193{
42194#endif
42195/* We use char because int might match the return type of a gcc2
42196 builtin and then its argument prototype would still apply. */
42197char $ac_func ();
42198/* The GNU C library defines this for functions which it implements
42199 to always fail with ENOSYS. Some functions are actually named
42200 something starting with __ and the normal name is an alias. */
42201#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42202choke me
42203#else
42204char (*f) () = $ac_func;
42205#endif
42206#ifdef __cplusplus
42207}
42208#endif
42209
42210int
42211main ()
42212{
42213return f != $ac_func;
42214 ;
42215 return 0;
42216}
42217_ACEOF
42218rm -f conftest.$ac_objext conftest$ac_exeext
42219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42220 (eval $ac_link) 2>conftest.er1
a848cd7e 42221 ac_status=$?
ac1cb8d3
VS
42222 grep -v '^ *+' conftest.er1 >conftest.err
42223 rm -f conftest.er1
42224 cat conftest.err >&5
a848cd7e
SC
42225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42226 (exit $ac_status); } &&
6ebeb4c7 42227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42229 (eval $ac_try) 2>&5
42230 ac_status=$?
42231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42232 (exit $ac_status); }; } &&
42233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42235 (eval $ac_try) 2>&5
42236 ac_status=$?
42237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42238 (exit $ac_status); }; }; then
42239 eval "$as_ac_var=yes"
42240else
42241 echo "$as_me: failed program was:" >&5
42242sed 's/^/| /' conftest.$ac_ext >&5
42243
42244eval "$as_ac_var=no"
42245fi
ac1cb8d3
VS
42246rm -f conftest.err conftest.$ac_objext \
42247 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42248fi
42249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42250echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42251if test `eval echo '${'$as_ac_var'}'` = yes; then
42252 cat >>confdefs.h <<_ACEOF
42253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42254_ACEOF
42255 have_cos=1
42256fi
42257done
42258
42259
42260for ac_func in floor
42261do
42262as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42263echo "$as_me:$LINENO: checking for $ac_func" >&5
42264echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42265if eval "test \"\${$as_ac_var+set}\" = set"; then
42266 echo $ECHO_N "(cached) $ECHO_C" >&6
42267else
42268 cat >conftest.$ac_ext <<_ACEOF
42269/* confdefs.h. */
42270_ACEOF
42271cat confdefs.h >>conftest.$ac_ext
42272cat >>conftest.$ac_ext <<_ACEOF
42273/* end confdefs.h. */
ac1cb8d3
VS
42274/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42276#define $ac_func innocuous_$ac_func
42277
a848cd7e
SC
42278/* System header to define __stub macros and hopefully few prototypes,
42279 which can conflict with char $ac_func (); below.
42280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42281 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42282
a848cd7e
SC
42283#ifdef __STDC__
42284# include <limits.h>
42285#else
42286# include <assert.h>
42287#endif
ac1cb8d3
VS
42288
42289#undef $ac_func
42290
a848cd7e
SC
42291/* Override any gcc2 internal prototype to avoid an error. */
42292#ifdef __cplusplus
42293extern "C"
42294{
42295#endif
42296/* We use char because int might match the return type of a gcc2
42297 builtin and then its argument prototype would still apply. */
42298char $ac_func ();
42299/* The GNU C library defines this for functions which it implements
42300 to always fail with ENOSYS. Some functions are actually named
42301 something starting with __ and the normal name is an alias. */
42302#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42303choke me
42304#else
42305char (*f) () = $ac_func;
42306#endif
42307#ifdef __cplusplus
42308}
42309#endif
42310
42311int
42312main ()
42313{
42314return f != $ac_func;
42315 ;
42316 return 0;
42317}
42318_ACEOF
42319rm -f conftest.$ac_objext conftest$ac_exeext
42320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42321 (eval $ac_link) 2>conftest.er1
a848cd7e 42322 ac_status=$?
ac1cb8d3
VS
42323 grep -v '^ *+' conftest.er1 >conftest.err
42324 rm -f conftest.er1
42325 cat conftest.err >&5
a848cd7e
SC
42326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42327 (exit $ac_status); } &&
6ebeb4c7 42328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42330 (eval $ac_try) 2>&5
42331 ac_status=$?
42332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42333 (exit $ac_status); }; } &&
42334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42336 (eval $ac_try) 2>&5
42337 ac_status=$?
42338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42339 (exit $ac_status); }; }; then
42340 eval "$as_ac_var=yes"
42341else
42342 echo "$as_me: failed program was:" >&5
42343sed 's/^/| /' conftest.$ac_ext >&5
42344
42345eval "$as_ac_var=no"
42346fi
ac1cb8d3
VS
42347rm -f conftest.err conftest.$ac_objext \
42348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42349fi
42350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42351echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42352if test `eval echo '${'$as_ac_var'}'` = yes; then
42353 cat >>confdefs.h <<_ACEOF
42354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42355_ACEOF
42356 have_floor=1
42357fi
42358done
42359
42360echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
42361echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
42362if test "$have_cos" = 1 -a "$have_floor" = 1; then
42363 echo "$as_me:$LINENO: result: yes" >&5
42364echo "${ECHO_T}yes" >&6
42365else
42366 echo "$as_me:$LINENO: result: no" >&5
42367echo "${ECHO_T}no" >&6
42368 LIBS="$LIBS -lm"
42369 # use different functions to avoid configure caching
42370 have_sin=0
42371 have_ceil=0
42372
42373for ac_func in sin
42374do
42375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42376echo "$as_me:$LINENO: checking for $ac_func" >&5
42377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42378if eval "test \"\${$as_ac_var+set}\" = set"; then
42379 echo $ECHO_N "(cached) $ECHO_C" >&6
42380else
42381 cat >conftest.$ac_ext <<_ACEOF
42382/* confdefs.h. */
42383_ACEOF
42384cat confdefs.h >>conftest.$ac_ext
42385cat >>conftest.$ac_ext <<_ACEOF
42386/* end confdefs.h. */
ac1cb8d3
VS
42387/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42389#define $ac_func innocuous_$ac_func
42390
a848cd7e
SC
42391/* System header to define __stub macros and hopefully few prototypes,
42392 which can conflict with char $ac_func (); below.
42393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42394 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42395
a848cd7e
SC
42396#ifdef __STDC__
42397# include <limits.h>
42398#else
42399# include <assert.h>
42400#endif
ac1cb8d3
VS
42401
42402#undef $ac_func
42403
a848cd7e
SC
42404/* Override any gcc2 internal prototype to avoid an error. */
42405#ifdef __cplusplus
42406extern "C"
42407{
42408#endif
42409/* We use char because int might match the return type of a gcc2
42410 builtin and then its argument prototype would still apply. */
42411char $ac_func ();
42412/* The GNU C library defines this for functions which it implements
42413 to always fail with ENOSYS. Some functions are actually named
42414 something starting with __ and the normal name is an alias. */
42415#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42416choke me
42417#else
42418char (*f) () = $ac_func;
42419#endif
42420#ifdef __cplusplus
42421}
42422#endif
42423
42424int
42425main ()
42426{
42427return f != $ac_func;
42428 ;
42429 return 0;
42430}
42431_ACEOF
42432rm -f conftest.$ac_objext conftest$ac_exeext
42433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42434 (eval $ac_link) 2>conftest.er1
a848cd7e 42435 ac_status=$?
ac1cb8d3
VS
42436 grep -v '^ *+' conftest.er1 >conftest.err
42437 rm -f conftest.er1
42438 cat conftest.err >&5
a848cd7e
SC
42439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42440 (exit $ac_status); } &&
6ebeb4c7 42441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42443 (eval $ac_try) 2>&5
42444 ac_status=$?
42445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42446 (exit $ac_status); }; } &&
42447 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42449 (eval $ac_try) 2>&5
42450 ac_status=$?
42451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42452 (exit $ac_status); }; }; then
42453 eval "$as_ac_var=yes"
42454else
42455 echo "$as_me: failed program was:" >&5
42456sed 's/^/| /' conftest.$ac_ext >&5
42457
42458eval "$as_ac_var=no"
42459fi
ac1cb8d3
VS
42460rm -f conftest.err conftest.$ac_objext \
42461 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42462fi
42463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42464echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42465if test `eval echo '${'$as_ac_var'}'` = yes; then
42466 cat >>confdefs.h <<_ACEOF
42467#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42468_ACEOF
42469 have_sin=1
42470fi
42471done
42472
42473
42474for ac_func in ceil
42475do
42476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42477echo "$as_me:$LINENO: checking for $ac_func" >&5
42478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42479if eval "test \"\${$as_ac_var+set}\" = set"; then
42480 echo $ECHO_N "(cached) $ECHO_C" >&6
42481else
42482 cat >conftest.$ac_ext <<_ACEOF
42483/* confdefs.h. */
42484_ACEOF
42485cat confdefs.h >>conftest.$ac_ext
42486cat >>conftest.$ac_ext <<_ACEOF
42487/* end confdefs.h. */
ac1cb8d3
VS
42488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42490#define $ac_func innocuous_$ac_func
42491
a848cd7e
SC
42492/* System header to define __stub macros and hopefully few prototypes,
42493 which can conflict with char $ac_func (); below.
42494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42495 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42496
a848cd7e
SC
42497#ifdef __STDC__
42498# include <limits.h>
42499#else
42500# include <assert.h>
42501#endif
ac1cb8d3
VS
42502
42503#undef $ac_func
42504
a848cd7e
SC
42505/* Override any gcc2 internal prototype to avoid an error. */
42506#ifdef __cplusplus
42507extern "C"
42508{
42509#endif
42510/* We use char because int might match the return type of a gcc2
42511 builtin and then its argument prototype would still apply. */
42512char $ac_func ();
42513/* The GNU C library defines this for functions which it implements
42514 to always fail with ENOSYS. Some functions are actually named
42515 something starting with __ and the normal name is an alias. */
42516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42517choke me
42518#else
42519char (*f) () = $ac_func;
42520#endif
42521#ifdef __cplusplus
42522}
42523#endif
42524
42525int
42526main ()
42527{
42528return f != $ac_func;
42529 ;
42530 return 0;
42531}
42532_ACEOF
42533rm -f conftest.$ac_objext conftest$ac_exeext
42534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42535 (eval $ac_link) 2>conftest.er1
a848cd7e 42536 ac_status=$?
ac1cb8d3
VS
42537 grep -v '^ *+' conftest.er1 >conftest.err
42538 rm -f conftest.er1
42539 cat conftest.err >&5
a848cd7e
SC
42540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42541 (exit $ac_status); } &&
6ebeb4c7 42542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42544 (eval $ac_try) 2>&5
42545 ac_status=$?
42546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42547 (exit $ac_status); }; } &&
42548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42550 (eval $ac_try) 2>&5
42551 ac_status=$?
42552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42553 (exit $ac_status); }; }; then
42554 eval "$as_ac_var=yes"
42555else
42556 echo "$as_me: failed program was:" >&5
42557sed 's/^/| /' conftest.$ac_ext >&5
42558
42559eval "$as_ac_var=no"
42560fi
ac1cb8d3
VS
42561rm -f conftest.err conftest.$ac_objext \
42562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42563fi
42564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42566if test `eval echo '${'$as_ac_var'}'` = yes; then
42567 cat >>confdefs.h <<_ACEOF
42568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42569_ACEOF
42570 have_ceil=1
42571fi
42572done
42573
42574 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
42575echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
42576 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
42577 echo "$as_me:$LINENO: result: yes" >&5
42578echo "${ECHO_T}yes" >&6
42579 else
42580 echo "$as_me:$LINENO: result: no" >&5
42581echo "${ECHO_T}no" >&6
42582 # not sure we should warn the user, crash, etc.
42583 fi
42584fi
42585
42586if test "$wxUSE_GUI" = "yes"; then
42587
42588
8bce5cda
MW
42589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
42590 dynamic erase event exec font image minimal mobile \
42591 mobile/wxedit mobile/styles propsize render \
42592 richedit rotate shaped vscroll widgets"
a848cd7e
SC
42593
42594 if test "$wxUSE_MONOLITHIC" != "yes"; then
42595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
42596 fi
0b78747f 42597 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
42598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
42599 if test "$wxUSE_UNIVERSAL" != "yes"; then
42600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
42601 fi
42602 fi
42603 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
42604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 42605 fi
a848cd7e
SC
42606else
42607 SAMPLES_SUBDIRS="console"
42608fi
42609
42610
ceec2216 42611INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
42612-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
42613
42614if test "$GXX" = yes ; then
6ebeb4c7 42615 CWARNINGS="-Wall -Wundef"
5294a27e 42616 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
6ebeb4c7 42617fi
a848cd7e
SC
42618
42619EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
42620
0c3c69fc 42621CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 42622CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 42623CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 42624
95986553
DE
42625if test "x$MWCC" = "xyes"; then
42626
42627 CC="$CC -cwd source -I-"
42628 CXX="$CXX -cwd source -I-"
42629fi
42630
a848cd7e 42631
0c3c69fc 42632LIBS=`echo $LIBS`
a848cd7e
SC
42633EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
42634EXTRALIBS_XML="$EXPAT_LINK"
42635EXTRALIBS_HTML="$MSPACK_LINK"
42636EXTRALIBS_ODBC="$ODBC_LINK"
42637if test "$wxUSE_GUI" = "yes"; then
2e350179 42638 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
42639fi
42640if test "$wxUSE_OPENGL" = "yes"; then
42641 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
42642fi
42643
42644LDFLAGS="$LDFLAGS $PROFILE"
42645
42646if test "$wxUSE_GTK" = 1; then
42647 WXCONFIG_INCLUDE=
42648else
42649 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
42650fi
42651
42652WXCONFIG_EXTRALIBS="$LIBS"
42653
42654if test "$wxUSE_REGEX" = "builtin" ; then
74802184 42655 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
42656fi
42657if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 42658 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
42659fi
42660if test "$wxUSE_ODBC" = "builtin" ; then
74802184 42661 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
42662fi
42663if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 42664 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
42665fi
42666if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 42667 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
42668fi
42669if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 42670 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
42671fi
42672if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 42673 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
42674fi
42675
42676for i in $wxconfig_3rdparty ; do
74802184 42677 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
42678done
42679
42680
42681if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
42682 WXUNIV=1
42683else
42684 WXUNIV=0
42685fi
42686
42687
42688
42689
42690
42691
42692
42693
42694
42695if test $wxUSE_MONOLITHIC = "yes" ; then
42696 MONOLITHIC=1
42697else
42698 MONOLITHIC=0
42699fi
42700
42701if test $wxUSE_PLUGINS = "yes" ; then
42702 USE_PLUGINS=1
42703else
42704 USE_PLUGINS=0
42705fi
42706
42707if test $wxUSE_ODBC != "no" ; then
42708 USE_ODBC=1
42709else
42710 USE_ODBC=0
42711fi
42712
16358932
VZ
42713if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42714 USE_QA=1
42715else
42716 USE_QA=0
42717fi
42718
a848cd7e
SC
42719if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
42720 OFFICIAL_BUILD=1
42721else
42722 OFFICIAL_BUILD=0
42723fi
42724
42725
42726
42727
42728
42729
42730
42731
42732
42733
42734
42735
42736
42737
42738
42739
42740
42741
42742
ceec2216 42743
d1c38808 42744
a848cd7e
SC
42745
42746
42747TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
42748
42749
42750
42751
42752
42753
42754
42755
4d4ff94c
VZ
42756case "$TOOLKIT" in
42757 GTK)
42758 TOOLKIT_USER="GTK+"
42759 if test "$WXGTK20" = 1; then
42760 TOOLKIT_USER="$TOOLKIT_USER 2"
42761 fi
9a8f0513 42762 ;;
4d4ff94c
VZ
42763
42764 *)
42765 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 42766 ;;
4d4ff94c 42767esac
a848cd7e 42768
fb00f58d
JS
42769if test "$wxUSE_WINE" = "yes"; then
42770 BAKEFILE_FORCE_PLATFORM=win32
42771fi
42772
9a8f0513 42773
1e9e8aba
DE
42774
42775
a848cd7e
SC
42776 if test "x$BAKEFILE_HOST" = "x"; then
42777 BAKEFILE_HOST="${host}"
42778 fi
42779
42780 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
42781
42782 if test -n "$ac_tool_prefix"; then
42783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
42784set dummy ${ac_tool_prefix}ranlib; ac_word=$2
42785echo "$as_me:$LINENO: checking for $ac_word" >&5
42786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42787if test "${ac_cv_prog_RANLIB+set}" = set; then
42788 echo $ECHO_N "(cached) $ECHO_C" >&6
42789else
42790 if test -n "$RANLIB"; then
42791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
42792else
42793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42794for as_dir in $PATH
42795do
42796 IFS=$as_save_IFS
42797 test -z "$as_dir" && as_dir=.
42798 for ac_exec_ext in '' $ac_executable_extensions; do
42799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
42801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42802 break 2
42803 fi
42804done
42805done
42806
42807fi
42808fi
42809RANLIB=$ac_cv_prog_RANLIB
42810if test -n "$RANLIB"; then
42811 echo "$as_me:$LINENO: result: $RANLIB" >&5
42812echo "${ECHO_T}$RANLIB" >&6
42813else
42814 echo "$as_me:$LINENO: result: no" >&5
42815echo "${ECHO_T}no" >&6
42816fi
42817
42818fi
42819if test -z "$ac_cv_prog_RANLIB"; then
42820 ac_ct_RANLIB=$RANLIB
42821 # Extract the first word of "ranlib", so it can be a program name with args.
42822set dummy ranlib; ac_word=$2
42823echo "$as_me:$LINENO: checking for $ac_word" >&5
42824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42825if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42826 echo $ECHO_N "(cached) $ECHO_C" >&6
42827else
42828 if test -n "$ac_ct_RANLIB"; then
42829 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
42830else
42831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42832for as_dir in $PATH
42833do
42834 IFS=$as_save_IFS
42835 test -z "$as_dir" && as_dir=.
42836 for ac_exec_ext in '' $ac_executable_extensions; do
42837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42838 ac_cv_prog_ac_ct_RANLIB="ranlib"
42839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42840 break 2
42841 fi
42842done
42843done
42844
42845 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
42846fi
42847fi
42848ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
42849if test -n "$ac_ct_RANLIB"; then
42850 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
42851echo "${ECHO_T}$ac_ct_RANLIB" >&6
42852else
42853 echo "$as_me:$LINENO: result: no" >&5
42854echo "${ECHO_T}no" >&6
42855fi
42856
42857 RANLIB=$ac_ct_RANLIB
42858else
42859 RANLIB="$ac_cv_prog_RANLIB"
42860fi
42861
42862 # Find a good install program. We prefer a C program (faster),
42863# so one script is as good as another. But avoid the broken or
42864# incompatible versions:
42865# SysV /etc/install, /usr/sbin/install
42866# SunOS /usr/etc/install
42867# IRIX /sbin/install
42868# AIX /bin/install
42869# AmigaOS /C/install, which installs bootblocks on floppy discs
42870# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
42871# AFS /usr/afsws/bin/install, which mishandles nonexistent args
42872# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 42873# OS/2's system install, which has a completely different semantic
a848cd7e
SC
42874# ./install, which can be erroneously created by make from ./install.sh.
42875echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
42876echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
42877if test -z "$INSTALL"; then
42878if test "${ac_cv_path_install+set}" = set; then
42879 echo $ECHO_N "(cached) $ECHO_C" >&6
42880else
42881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42882for as_dir in $PATH
42883do
42884 IFS=$as_save_IFS
42885 test -z "$as_dir" && as_dir=.
42886 # Account for people who put trailing slashes in PATH elements.
42887case $as_dir/ in
42888 ./ | .// | /cC/* | \
42889 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 42890 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
42891 /usr/ucb/* ) ;;
42892 *)
42893 # OSF1 and SCO ODT 3.0 have their own names for install.
42894 # Don't use installbsd from OSF since it installs stuff as root
42895 # by default.
42896 for ac_prog in ginstall scoinst install; do
42897 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
42898 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
42899 if test $ac_prog = install &&
42900 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
42901 # AIX install. It has an incompatible calling convention.
42902 :
42903 elif test $ac_prog = install &&
42904 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
42905 # program-specific install script used by HP pwplus--don't use.
42906 :
42907 else
42908 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
42909 break 3
42910 fi
42911 fi
a848cd7e
SC
42912 done
42913 done
42914 ;;
42915esac
42916done
42917
42918
42919fi
42920 if test "${ac_cv_path_install+set}" = set; then
42921 INSTALL=$ac_cv_path_install
42922 else
42923 # As a last resort, use the slow shell script. We don't cache a
42924 # path for INSTALL within a source directory, because that will
42925 # break other packages using the cache if that directory is
42926 # removed, or if the path is relative.
42927 INSTALL=$ac_install_sh
42928 fi
42929fi
42930echo "$as_me:$LINENO: result: $INSTALL" >&5
42931echo "${ECHO_T}$INSTALL" >&6
42932
42933# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
42934# It thinks the first close brace ends the variable substitution.
42935test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
42936
42937test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
42938
42939test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
42940
42941 echo "$as_me:$LINENO: checking whether ln -s works" >&5
42942echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
42943LN_S=$as_ln_s
42944if test "$LN_S" = "ln -s"; then
42945 echo "$as_me:$LINENO: result: yes" >&5
42946echo "${ECHO_T}yes" >&6
42947else
42948 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
42949echo "${ECHO_T}no, using $LN_S" >&6
42950fi
42951
42952
42953 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42954echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42955set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42956if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42957 echo $ECHO_N "(cached) $ECHO_C" >&6
42958else
42959 cat >conftest.make <<\_ACEOF
42960all:
42961 @echo 'ac_maketemp="$(MAKE)"'
42962_ACEOF
42963# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42964eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42965if test -n "$ac_maketemp"; then
42966 eval ac_cv_prog_make_${ac_make}_set=yes
42967else
42968 eval ac_cv_prog_make_${ac_make}_set=no
42969fi
42970rm -f conftest.make
42971fi
42972if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42973 echo "$as_me:$LINENO: result: yes" >&5
42974echo "${ECHO_T}yes" >&6
42975 SET_MAKE=
42976else
42977 echo "$as_me:$LINENO: result: no" >&5
42978echo "${ECHO_T}no" >&6
42979 SET_MAKE="MAKE=${MAKE-make}"
42980fi
42981
42982
42983
42984 if test -n "$ac_tool_prefix"; then
42985 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
42986set dummy ${ac_tool_prefix}ar; ac_word=$2
42987echo "$as_me:$LINENO: checking for $ac_word" >&5
42988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42989if test "${ac_cv_prog_AR+set}" = set; then
42990 echo $ECHO_N "(cached) $ECHO_C" >&6
42991else
42992 if test -n "$AR"; then
42993 ac_cv_prog_AR="$AR" # Let the user override the test.
42994else
42995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42996for as_dir in $PATH
42997do
42998 IFS=$as_save_IFS
42999 test -z "$as_dir" && as_dir=.
43000 for ac_exec_ext in '' $ac_executable_extensions; do
43001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43002 ac_cv_prog_AR="${ac_tool_prefix}ar"
43003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43004 break 2
43005 fi
43006done
43007done
43008
43009fi
43010fi
43011AR=$ac_cv_prog_AR
43012if test -n "$AR"; then
43013 echo "$as_me:$LINENO: result: $AR" >&5
43014echo "${ECHO_T}$AR" >&6
43015else
43016 echo "$as_me:$LINENO: result: no" >&5
43017echo "${ECHO_T}no" >&6
43018fi
43019
43020fi
43021if test -z "$ac_cv_prog_AR"; then
43022 ac_ct_AR=$AR
43023 # Extract the first word of "ar", so it can be a program name with args.
43024set dummy ar; ac_word=$2
43025echo "$as_me:$LINENO: checking for $ac_word" >&5
43026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43027if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43028 echo $ECHO_N "(cached) $ECHO_C" >&6
43029else
43030 if test -n "$ac_ct_AR"; then
43031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43032else
43033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43034for as_dir in $PATH
43035do
43036 IFS=$as_save_IFS
43037 test -z "$as_dir" && as_dir=.
43038 for ac_exec_ext in '' $ac_executable_extensions; do
43039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43040 ac_cv_prog_ac_ct_AR="ar"
43041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43042 break 2
43043 fi
43044done
43045done
43046
43047 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43048fi
43049fi
43050ac_ct_AR=$ac_cv_prog_ac_ct_AR
43051if test -n "$ac_ct_AR"; then
43052 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43053echo "${ECHO_T}$ac_ct_AR" >&6
43054else
43055 echo "$as_me:$LINENO: result: no" >&5
43056echo "${ECHO_T}no" >&6
43057fi
43058
43059 AR=$ac_ct_AR
43060else
43061 AR="$ac_cv_prog_AR"
43062fi
43063
43064 if test -n "$ac_tool_prefix"; then
43065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43066set dummy ${ac_tool_prefix}strip; ac_word=$2
43067echo "$as_me:$LINENO: checking for $ac_word" >&5
43068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43069if test "${ac_cv_prog_STRIP+set}" = set; then
43070 echo $ECHO_N "(cached) $ECHO_C" >&6
43071else
43072 if test -n "$STRIP"; then
43073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43074else
43075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43076for as_dir in $PATH
43077do
43078 IFS=$as_save_IFS
43079 test -z "$as_dir" && as_dir=.
43080 for ac_exec_ext in '' $ac_executable_extensions; do
43081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43084 break 2
43085 fi
43086done
43087done
43088
43089fi
43090fi
43091STRIP=$ac_cv_prog_STRIP
43092if test -n "$STRIP"; then
43093 echo "$as_me:$LINENO: result: $STRIP" >&5
43094echo "${ECHO_T}$STRIP" >&6
43095else
43096 echo "$as_me:$LINENO: result: no" >&5
43097echo "${ECHO_T}no" >&6
43098fi
43099
43100fi
43101if test -z "$ac_cv_prog_STRIP"; then
43102 ac_ct_STRIP=$STRIP
43103 # Extract the first word of "strip", so it can be a program name with args.
43104set dummy strip; ac_word=$2
43105echo "$as_me:$LINENO: checking for $ac_word" >&5
43106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43107if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43108 echo $ECHO_N "(cached) $ECHO_C" >&6
43109else
43110 if test -n "$ac_ct_STRIP"; then
43111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43112else
43113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43114for as_dir in $PATH
43115do
43116 IFS=$as_save_IFS
43117 test -z "$as_dir" && as_dir=.
43118 for ac_exec_ext in '' $ac_executable_extensions; do
43119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43120 ac_cv_prog_ac_ct_STRIP="strip"
43121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43122 break 2
43123 fi
43124done
43125done
43126
43127 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
43128fi
43129fi
43130ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43131if test -n "$ac_ct_STRIP"; then
43132 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43133echo "${ECHO_T}$ac_ct_STRIP" >&6
43134else
43135 echo "$as_me:$LINENO: result: no" >&5
43136echo "${ECHO_T}no" >&6
43137fi
43138
43139 STRIP=$ac_ct_STRIP
43140else
43141 STRIP="$ac_cv_prog_STRIP"
43142fi
43143
43144 if test -n "$ac_tool_prefix"; then
43145 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
43146set dummy ${ac_tool_prefix}nm; ac_word=$2
43147echo "$as_me:$LINENO: checking for $ac_word" >&5
43148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43149if test "${ac_cv_prog_NM+set}" = set; then
43150 echo $ECHO_N "(cached) $ECHO_C" >&6
43151else
43152 if test -n "$NM"; then
43153 ac_cv_prog_NM="$NM" # Let the user override the test.
43154else
43155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43156for as_dir in $PATH
43157do
43158 IFS=$as_save_IFS
43159 test -z "$as_dir" && as_dir=.
43160 for ac_exec_ext in '' $ac_executable_extensions; do
43161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43162 ac_cv_prog_NM="${ac_tool_prefix}nm"
43163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43164 break 2
43165 fi
43166done
43167done
43168
43169fi
43170fi
43171NM=$ac_cv_prog_NM
43172if test -n "$NM"; then
43173 echo "$as_me:$LINENO: result: $NM" >&5
43174echo "${ECHO_T}$NM" >&6
43175else
43176 echo "$as_me:$LINENO: result: no" >&5
43177echo "${ECHO_T}no" >&6
43178fi
43179
43180fi
43181if test -z "$ac_cv_prog_NM"; then
43182 ac_ct_NM=$NM
43183 # Extract the first word of "nm", so it can be a program name with args.
43184set dummy nm; ac_word=$2
43185echo "$as_me:$LINENO: checking for $ac_word" >&5
43186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43187if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
43188 echo $ECHO_N "(cached) $ECHO_C" >&6
43189else
43190 if test -n "$ac_ct_NM"; then
43191 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
43192else
43193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43194for as_dir in $PATH
43195do
43196 IFS=$as_save_IFS
43197 test -z "$as_dir" && as_dir=.
43198 for ac_exec_ext in '' $ac_executable_extensions; do
43199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43200 ac_cv_prog_ac_ct_NM="nm"
43201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43202 break 2
43203 fi
43204done
43205done
43206
43207 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
43208fi
43209fi
43210ac_ct_NM=$ac_cv_prog_ac_ct_NM
43211if test -n "$ac_ct_NM"; then
43212 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
43213echo "${ECHO_T}$ac_ct_NM" >&6
43214else
43215 echo "$as_me:$LINENO: result: no" >&5
43216echo "${ECHO_T}no" >&6
43217fi
43218
43219 NM=$ac_ct_NM
43220else
43221 NM="$ac_cv_prog_NM"
43222fi
43223
43224
43225 case ${BAKEFILE_HOST} in
43226 *-hp-hpux* )
1e9e8aba 43227 INSTALL_DIR="mkdir -p"
a848cd7e
SC
43228 ;;
43229 *) INSTALL_DIR="$INSTALL -d"
43230 ;;
43231 esac
43232
43233
43234 LDFLAGS_GUI=
43235 case ${BAKEFILE_HOST} in
43236 *-*-cygwin* | *-*-mingw32* )
43237 LDFLAGS_GUI="-mwindows"
43238 esac
43239
43240
43241 fi
43242
43243 echo "$as_me:$LINENO: checking if make is GNU make" >&5
43244echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
43245if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
43246 echo $ECHO_N "(cached) $ECHO_C" >&6
43247else
43248
43249 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
43250 egrep -s GNU > /dev/null); then
43251 bakefile_cv_prog_makeisgnu="yes"
43252 else
43253 bakefile_cv_prog_makeisgnu="no"
43254 fi
43255
43256fi
43257echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
43258echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
43259
43260 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
43261 IF_GNU_MAKE=""
43262 else
43263 IF_GNU_MAKE="#"
43264 fi
43265
43266
43267
43268 PLATFORM_UNIX=0
43269 PLATFORM_WIN32=0
43270 PLATFORM_MSDOS=0
43271 PLATFORM_MAC=0
1e9e8aba 43272 PLATFORM_MACOS=0
a848cd7e
SC
43273 PLATFORM_MACOSX=0
43274 PLATFORM_OS2=0
1e9e8aba 43275 PLATFORM_BEOS=0
a848cd7e
SC
43276
43277 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
43278 case "${BAKEFILE_HOST}" in
810b94f0 43279 *-*-mingw32* )
a848cd7e
SC
43280 PLATFORM_WIN32=1
43281 ;;
43282 *-pc-msdosdjgpp )
43283 PLATFORM_MSDOS=1
43284 ;;
43285 *-pc-os2_emx | *-pc-os2-emx )
43286 PLATFORM_OS2=1
43287 ;;
47bd5406 43288 *-*-darwin* )
a848cd7e
SC
43289 PLATFORM_MAC=1
43290 PLATFORM_MACOSX=1
43291 ;;
1e9e8aba
DE
43292 *-*-beos* )
43293 PLATFORM_BEOS=1
43294 ;;
43295 powerpc-apple-macos* )
43296 PLATFORM_MAC=1
43297 PLATFORM_MACOS=1
43298 ;;
a848cd7e
SC
43299 * )
43300 PLATFORM_UNIX=1
43301 ;;
43302 esac
43303 else
43304 case "$BAKEFILE_FORCE_PLATFORM" in
43305 win32 )
43306 PLATFORM_WIN32=1
43307 ;;
43308 msdos )
43309 PLATFORM_MSDOS=1
43310 ;;
43311 os2 )
43312 PLATFORM_OS2=1
43313 ;;
43314 darwin )
43315 PLATFORM_MAC=1
43316 PLATFORM_MACOSX=1
43317 ;;
43318 unix )
43319 PLATFORM_UNIX=1
43320 ;;
1e9e8aba
DE
43321 beos )
43322 PLATFORM_BEOS=1
43323 ;;
a848cd7e
SC
43324 * )
43325 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
43326echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
43327 { (exit 1); exit 1; }; }
43328 ;;
43329 esac
43330 fi
43331
43332
43333
43334
43335
43336
43337
43338
43339
1e9e8aba
DE
43340
43341
a848cd7e
SC
43342 # Check whether --enable-omf or --disable-omf was given.
43343if test "${enable_omf+set}" = set; then
43344 enableval="$enable_omf"
43345 bk_os2_use_omf="$enableval"
43346fi;
43347
43348 case "${BAKEFILE_HOST}" in
43349 *-*-darwin* )
47bd5406
VZ
43350 if test "x$GCC" = "xyes"; then
43351 CFLAGS="$CFLAGS -fno-common"
43352 CXXFLAGS="$CXXFLAGS -fno-common"
43353 fi
43354 if test "x$XLCC" = "xyes"; then
43355 CFLAGS="$CFLAGS -qnocommon"
43356 CXXFLAGS="$CXXFLAGS -qnocommon"
43357 fi
a848cd7e
SC
43358 ;;
43359
43360 *-pc-os2_emx | *-pc-os2-emx )
43361 if test "x$bk_os2_use_omf" = "xyes" ; then
43362 AR=emxomfar
43363 RANLIB=:
43364 LDFLAGS="-Zomf $LDFLAGS"
43365 CFLAGS="-Zomf $CFLAGS"
43366 CXXFLAGS="-Zomf $CXXFLAGS"
43367 OS2_LIBEXT="lib"
43368 else
43369 OS2_LIBEXT="a"
43370 fi
43371 ;;
1e9e8aba
DE
43372
43373 i*86-*-beos* )
43374 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
43375 ;;
a848cd7e
SC
43376 esac
43377
43378
43379 SO_SUFFIX="so"
43380 SO_SUFFIX_MODULE="so"
43381 EXEEXT=""
43382 LIBPREFIX="lib"
43383 LIBEXT=".a"
43384 DLLPREFIX="lib"
43385 DLLPREFIX_MODULE=""
43386 DLLIMP_SUFFIX=""
810b94f0 43387 dlldir="$libdir"
a848cd7e
SC
43388
43389 case "${BAKEFILE_HOST}" in
43390 *-hp-hpux* )
43391 SO_SUFFIX="sl"
43392 SO_SUFFIX_MODULE="sl"
43393 ;;
43394 *-*-aix* )
43395 SO_SUFFIX="a"
43396 SO_SUFFIX_MODULE="a"
43397 ;;
810b94f0
MW
43398 *-*-cygwin* )
43399 SO_SUFFIX="dll"
43400 SO_SUFFIX_MODULE="dll"
43401 DLLIMP_SUFFIX="dll.a"
43402 EXEEXT=".exe"
43403 DLLPREFIX="cyg"
43404 dlldir="$bindir"
43405 ;;
43406 *-*-mingw32* )
a848cd7e
SC
43407 SO_SUFFIX="dll"
43408 SO_SUFFIX_MODULE="dll"
43409 DLLIMP_SUFFIX="dll.a"
43410 EXEEXT=".exe"
43411 DLLPREFIX=""
810b94f0 43412 dlldir="$bindir"
a848cd7e
SC
43413 ;;
43414 *-pc-msdosdjgpp )
43415 EXEEXT=".exe"
43416 DLLPREFIX=""
810b94f0 43417 dlldir="$bindir"
a848cd7e
SC
43418 ;;
43419 *-pc-os2_emx | *-pc-os2-emx )
43420 SO_SUFFIX="dll"
43421 SO_SUFFIX_MODULE="dll"
43422 DLLIMP_SUFFIX=$OS2_LIBEXT
43423 EXEEXT=".exe"
43424 DLLPREFIX=""
43425 LIBPREFIX=""
43426 LIBEXT=".$OS2_LIBEXT"
810b94f0 43427 dlldir="$bindir"
a848cd7e 43428 ;;
47bd5406 43429 *-*-darwin* )
a848cd7e
SC
43430 SO_SUFFIX="dylib"
43431 SO_SUFFIX_MODULE="bundle"
43432 ;;
43433 esac
43434
43435 if test "x$DLLIMP_SUFFIX" = "x" ; then
43436 DLLIMP_SUFFIX="$SO_SUFFIX"
43437 fi
43438
43439
43440
43441
43442
43443
43444
43445
43446
43447
43448
810b94f0 43449
1e9e8aba
DE
43450 PIC_FLAG=""
43451 if test "x$GCC" = "xyes"; then
a848cd7e
SC
43452 PIC_FLAG="-fPIC"
43453 fi
43454
1e9e8aba
DE
43455 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
43456 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 43457 WINDOWS_IMPLIB=0
1e9e8aba 43458
a848cd7e
SC
43459 case "${BAKEFILE_HOST}" in
43460 *-hp-hpux* )
1e9e8aba 43461 if test "x$GCC" != "xyes"; then
a848cd7e
SC
43462 LDFLAGS="$LDFLAGS -L/usr/lib"
43463
43464 SHARED_LD_CC="${CC} -b -o"
43465 SHARED_LD_CXX="${CXX} -b -o"
43466 PIC_FLAG="+Z"
43467 fi
43468 ;;
43469
43470 *-*-linux* )
43471 if test "x$GCC" != "xyes"; then
43472 echo "$as_me:$LINENO: checking for Intel compiler" >&5
43473echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
43474if test "${bakefile_cv_prog_icc+set}" = set; then
43475 echo $ECHO_N "(cached) $ECHO_C" >&6
43476else
43477
43478 cat >conftest.$ac_ext <<_ACEOF
43479/* confdefs.h. */
43480_ACEOF
43481cat confdefs.h >>conftest.$ac_ext
43482cat >>conftest.$ac_ext <<_ACEOF
43483/* end confdefs.h. */
43484
43485int
43486main ()
43487{
43488
43489 #ifndef __INTEL_COMPILER
43490 #error Not icc
43491 #endif
43492
43493 ;
43494 return 0;
43495}
43496_ACEOF
43497rm -f conftest.$ac_objext
43498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43499 (eval $ac_compile) 2>conftest.er1
a848cd7e 43500 ac_status=$?
ac1cb8d3
VS
43501 grep -v '^ *+' conftest.er1 >conftest.err
43502 rm -f conftest.er1
43503 cat conftest.err >&5
a848cd7e
SC
43504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43505 (exit $ac_status); } &&
6ebeb4c7 43506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43508 (eval $ac_try) 2>&5
43509 ac_status=$?
43510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43511 (exit $ac_status); }; } &&
43512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43514 (eval $ac_try) 2>&5
43515 ac_status=$?
43516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43517 (exit $ac_status); }; }; then
43518 bakefile_cv_prog_icc=yes
43519else
43520 echo "$as_me: failed program was:" >&5
43521sed 's/^/| /' conftest.$ac_ext >&5
43522
43523bakefile_cv_prog_icc=no
43524
43525fi
ac1cb8d3 43526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43527
43528fi
43529echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
43530echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
43531 if test "$bakefile_cv_prog_icc" = "yes"; then
43532 PIC_FLAG="-KPIC"
43533 fi
43534 fi
43535 ;;
43536
43537 *-*-solaris2* )
43538 if test "x$GCC" != xyes ; then
43539 SHARED_LD_CC="${CC} -G -o"
43540 SHARED_LD_CXX="${CXX} -G -o"
43541 PIC_FLAG="-KPIC"
43542 fi
43543 ;;
43544
43545 *-*-darwin* )
43546
43547 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43548echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
43549if test "${wx_cv_gcc31+set}" = set; then
43550 echo $ECHO_N "(cached) $ECHO_C" >&6
43551else
43552
43553 cat >conftest.$ac_ext <<_ACEOF
43554/* confdefs.h. */
43555_ACEOF
43556cat confdefs.h >>conftest.$ac_ext
43557cat >>conftest.$ac_ext <<_ACEOF
43558/* end confdefs.h. */
43559
43560int
43561main ()
43562{
43563
43564 #if (__GNUC__ < 3) || \
43565 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
43566 #error old gcc
43567 #endif
43568
43569 ;
43570 return 0;
43571}
43572_ACEOF
43573rm -f conftest.$ac_objext
43574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43575 (eval $ac_compile) 2>conftest.er1
a848cd7e 43576 ac_status=$?
ac1cb8d3
VS
43577 grep -v '^ *+' conftest.er1 >conftest.err
43578 rm -f conftest.er1
43579 cat conftest.err >&5
a848cd7e
SC
43580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43581 (exit $ac_status); } &&
6ebeb4c7 43582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43584 (eval $ac_try) 2>&5
43585 ac_status=$?
43586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43587 (exit $ac_status); }; } &&
43588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43590 (eval $ac_try) 2>&5
43591 ac_status=$?
43592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43593 (exit $ac_status); }; }; then
43594
43595 wx_cv_gcc31=yes
43596
43597else
43598 echo "$as_me: failed program was:" >&5
43599sed 's/^/| /' conftest.$ac_ext >&5
43600
43601
43602 wx_cv_gcc31=no
43603
43604
43605fi
ac1cb8d3 43606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43607
43608fi
43609echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
43610echo "${ECHO_T}$wx_cv_gcc31" >&6
43611 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
43612
43613D='$'
43614cat <<EOF >shared-ld-sh
a848cd7e
SC
43615#!/bin/sh
43616#-----------------------------------------------------------------------------
43617#-- Name: distrib/mac/shared-ld-sh
43618#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
43619#-- Author: Gilles Depeyrot
43620#-- Copyright: (c) 2002 Gilles Depeyrot
43621#-- Licence: any use permitted
43622#-----------------------------------------------------------------------------
43623
43624verbose=0
43625args=""
43626objects=""
43627linking_flag="-dynamiclib"
810b94f0 43628ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 43629
473276a9
VS
43630while test ${D}# -gt 0; do
43631 case ${D}1 in
a848cd7e
SC
43632
43633 -v)
43634 verbose=1
43635 ;;
43636
43637 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
43638 # collect these options and values
473276a9 43639 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
43640 shift
43641 ;;
43642
810b94f0
MW
43643 -s|-Wl,*)
43644 # collect these load args
43645 ldargs="${D}{ldargs} ${D}1"
2113bc77 43646 ;;
810b94f0
MW
43647
43648 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 43649 # collect these options
473276a9 43650 args="${D}{args} ${D}1"
a848cd7e
SC
43651 ;;
43652
43653 -dynamiclib|-bundle)
473276a9 43654 linking_flag="${D}1"
a848cd7e
SC
43655 ;;
43656
43657 -*)
473276a9 43658 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
43659 exit 1
43660 ;;
43661
43662 *.o | *.a | *.dylib)
43663 # collect object files
473276a9 43664 objects="${D}{objects} ${D}1"
a848cd7e
SC
43665 ;;
43666
43667 *)
473276a9 43668 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
43669 exit 1
43670 ;;
43671
43672 esac
43673 shift
43674done
43675
810b94f0
MW
43676status=0
43677
a848cd7e
SC
43678#
43679# Link one module containing all the others
43680#
473276a9 43681if test ${D}{verbose} = 1; then
810b94f0 43682 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 43683fi
810b94f0 43684c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 43685status=${D}?
a848cd7e
SC
43686
43687#
810b94f0
MW
43688# Link the shared library from the single module created, but only if the
43689# previous command didn't fail:
a848cd7e 43690#
810b94f0
MW
43691if test ${D}{status} = 0; then
43692 if test ${D}{verbose} = 1; then
43693 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
43694 fi
43695 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
43696 status=${D}?
a848cd7e
SC
43697fi
43698
43699#
43700# Remove intermediate module
43701#
473276a9 43702rm -f master.${D}${D}.o
a848cd7e 43703
810b94f0 43704exit ${D}status
a848cd7e 43705EOF
473276a9 43706
a848cd7e
SC
43707 chmod +x shared-ld-sh
43708
43709 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
43710 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
43711 SHARED_LD_CXX="$SHARED_LD_CC"
43712 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
43713 else
43714 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
43715 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
43716 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
43717 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
43718 fi
43719
47bd5406
VZ
43720 if test "x$GCC" == "xyes"; then
43721 PIC_FLAG="-dynamic -fPIC"
43722 fi
43723 if test "x$XLCC" = "xyes"; then
43724 PIC_FLAG="-dynamic -DPIC"
43725 fi
a848cd7e
SC
43726 ;;
43727
43728 *-*-aix* )
f6b50c59
VZ
43729 if test "x$GCC" = "xyes"; then
43730 PIC_FLAG=""
43731
43732 case "${BAKEFILE_HOST}" in
43733 *-*-aix5* )
43734 LD_EXPFULL="-Wl,-bexpfull"
43735 ;;
43736 esac
43737
7b94a67c
VZ
43738 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
43739 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
0ad5d837 43740 else
f6b50c59 43741 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
43742set dummy makeC++SharedLib; ac_word=$2
43743echo "$as_me:$LINENO: checking for $ac_word" >&5
43744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43745if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
43746 echo $ECHO_N "(cached) $ECHO_C" >&6
43747else
43748 if test -n "$AIX_CXX_LD"; then
43749 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
43750else
43751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43752for as_dir in $PATH
43753do
43754 IFS=$as_save_IFS
43755 test -z "$as_dir" && as_dir=.
43756 for ac_exec_ext in '' $ac_executable_extensions; do
43757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43758 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
43759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43760 break 2
43761 fi
43762done
43763done
43764
43765 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
43766fi
43767fi
43768AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
43769if test -n "$AIX_CXX_LD"; then
43770 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
43771echo "${ECHO_T}$AIX_CXX_LD" >&6
43772else
43773 echo "$as_me:$LINENO: result: no" >&5
43774echo "${ECHO_T}no" >&6
43775fi
43776
f6b50c59 43777 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
43778 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
43779 fi
43780 ;;
43781
43782 *-*-beos* )
1e9e8aba
DE
43783 SHARED_LD_CC="${LD} -nostart -o"
43784 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
43785 ;;
43786
43787 *-*-irix* )
43788 if test "x$GCC" != "xyes"; then
43789 PIC_FLAG="-KPIC"
43790 fi
43791 ;;
43792
43793 *-*-cygwin* | *-*-mingw32* )
43794 PIC_FLAG=""
1e9e8aba
DE
43795 SHARED_LD_CC="\$(CC) -shared -o"
43796 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 43797 WINDOWS_IMPLIB=1
a848cd7e
SC
43798 ;;
43799
43800 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
43801 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43802 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 43803 PIC_FLAG=""
473276a9
VS
43804
43805D='$'
43806cat <<EOF >dllar.sh
43807#!/bin/sh
43808#
43809# dllar - a tool to build both a .dll and an .a file
43810# from a set of object (.o) files for EMX/OS2.
43811#
43812# Written by Andrew Zabolotny, bit@freya.etu.ru
43813# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
43814#
43815# This script will accept a set of files on the command line.
43816# All the public symbols from the .o files will be exported into
43817# a .DEF file, then linker will be run (through gcc) against them to
43818# build a shared library consisting of all given .o files. All libraries
43819# (.a) will be first decompressed into component .o files then act as
43820# described above. You can optionally give a description (-d "description")
43821# which will be put into .DLL. To see the list of accepted options (as well
43822# as command-line format) simply run this program without options. The .DLL
43823# is built to be imported by name (there is no guarantee that new versions
43824# of the library you build will have same ordinals for same symbols).
43825#
43826# dllar is free software; you can redistribute it and/or modify
43827# it under the terms of the GNU General Public License as published by
43828# the Free Software Foundation; either version 2, or (at your option)
43829# any later version.
43830#
43831# dllar is distributed in the hope that it will be useful,
43832# but WITHOUT ANY WARRANTY; without even the implied warranty of
43833# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43834# GNU General Public License for more details.
43835#
43836# You should have received a copy of the GNU General Public License
43837# along with dllar; see the file COPYING. If not, write to the Free
43838# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
43839# 02111-1307, USA.
43840
43841# To successfuly run this program you will need:
43842# - Current drive should have LFN support (HPFS, ext2, network, etc)
43843# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
43844# - gcc
43845# (used to build the .dll)
43846# - emxexp
43847# (used to create .def file from .o files)
43848# - emximp
43849# (used to create .a file from .def file)
43850# - GNU text utilites (cat, sort, uniq)
43851# used to process emxexp output
43852# - GNU file utilities (mv, rm)
43853# - GNU sed
43854# - lxlite (optional, see flag below)
43855# (used for general .dll cleanup)
43856#
43857
43858flag_USE_LXLITE=1;
43859
43860#
43861# helper functions
43862# basnam, variant of basename, which does _not_ remove the path, _iff_
43863# second argument (suffix to remove) is given
43864basnam(){
43865 case ${D}# in
43866 1)
1e9e8aba 43867 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
43868 ;;
43869 2)
43870 echo ${D}1 | sed 's/'${D}2'${D}//'
43871 ;;
43872 *)
43873 echo "error in basnam ${D}*"
43874 exit 8
43875 ;;
43876 esac
43877}
43878
43879# Cleanup temporary files and output
43880CleanUp() {
43881 cd ${D}curDir
43882 for i in ${D}inputFiles ; do
43883 case ${D}i in
43884 *!)
43885 rm -rf \`basnam ${D}i !\`
43886 ;;
43887 *)
43888 ;;
43889 esac
43890 done
43891
43892 # Kill result in case of failure as there is just to many stupid make/nmake
43893 # things out there which doesn't do this.
1e9e8aba 43894 if [ ${D}# -eq 0 ]; then
473276a9
VS
43895 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
43896 fi
43897}
43898
43899# Print usage and exit script with rc=1.
43900PrintHelp() {
b1d22ded
DE
43901 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
43902 echo ' [-name-mangler-script script.sh]'
43903 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
43904 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
43905 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 43906 echo ' [*.o] [*.a]'
473276a9
VS
43907 echo '*> "output_file" should have no extension.'
43908 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
43909 echo ' The import library name is derived from this and is set to "name".a,'
43910 echo ' unless overridden by -import'
43911 echo '*> "importlib_name" should have no extension.'
43912 echo ' If it has the .o, or .a extension, it is automatically removed.'
43913 echo ' This name is used as the import library name and may be longer and'
43914 echo ' more descriptive than the DLL name which has to follow the old '
43915 echo ' 8.3 convention of FAT.'
b1d22ded
DE
43916 echo '*> "script.sh may be given to override the output_file name by a'
43917 echo ' different name. It is mainly useful if the regular make process'
43918 echo ' of some package does not take into account OS/2 restriction of'
43919 echo ' DLL name lengths. It takes the importlib name as input and is'
43920 echo ' supposed to procude a shorter name as output. The script should'
43921 echo ' expect to get importlib_name without extension and should produce'
43922 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
43923 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
43924 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
43925 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
43926 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
43927 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
43928 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
43929 echo ' If the last character of a symbol is "*", all symbols beginning'
43930 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 43931 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 43932 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 43933 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 43934 echo ' C runtime DLLs.'
b1d22ded 43935 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
43936 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
43937 echo ' unchanged to GCC at the end of command line.'
43938 echo '*> If you create a DLL from a library and you do not specify -o,'
43939 echo ' the basename for DLL and import library will be set to library name,'
43940 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
43941 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
43942 echo ' library will be renamed into gcc_s.a.'
43943 echo '--------'
43944 echo 'Example:'
43945 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
43946 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
43947 CleanUp
43948 exit 1
43949}
43950
43951# Execute a command.
43952# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
43953# @Uses Whatever CleanUp() uses.
43954doCommand() {
43955 echo "${D}*"
43956 eval ${D}*
43957 rcCmd=${D}?
43958
1e9e8aba 43959 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
43960 echo "command failed, exit code="${D}rcCmd
43961 CleanUp
43962 exit ${D}rcCmd
43963 fi
43964}
43965
43966# main routine
43967# setup globals
43968cmdLine=${D}*
43969outFile=""
43970outimpFile=""
43971inputFiles=""
b1d22ded 43972renameScript=""
473276a9
VS
43973description=""
43974CC=gcc.exe
43975CFLAGS="-s -Zcrtdll"
43976EXTRA_CFLAGS=""
43977EXPORT_BY_ORDINALS=0
43978exclude_symbols=""
43979library_flags=""
43980curDir=\`pwd\`
43981curDirS=curDir
43982case ${D}curDirS in
43983*/)
43984 ;;
43985*)
43986 curDirS=${D}{curDirS}"/"
43987 ;;
43988esac
43989# Parse commandline
43990libsToLink=0
b1d22ded 43991omfLinking=0
1e9e8aba 43992while [ ${D}1 ]; do
473276a9
VS
43993 case ${D}1 in
43994 -ord*)
43995 EXPORT_BY_ORDINALS=1;
43996 ;;
43997 -o*)
43998 shift
43999 outFile=${D}1
44000 ;;
44001 -i*)
44002 shift
44003 outimpFile=${D}1
44004 ;;
b1d22ded
DE
44005 -name-mangler-script)
44006 shift
44007 renameScript=${D}1
44008 ;;
473276a9
VS
44009 -d*)
44010 shift
44011 description=${D}1
44012 ;;
44013 -f*)
44014 shift
44015 CFLAGS=${D}1
44016 ;;
44017 -c*)
44018 shift
44019 CC=${D}1
44020 ;;
44021 -h*)
44022 PrintHelp
44023 ;;
44024 -ex*)
44025 shift
44026 exclude_symbols=${D}{exclude_symbols}${D}1" "
44027 ;;
44028 -libf*)
44029 shift
44030 library_flags=${D}{library_flags}${D}1" "
44031 ;;
44032 -nocrt*)
44033 CFLAGS="-s"
44034 ;;
44035 -nolxl*)
44036 flag_USE_LXLITE=0
44037 ;;
44038 -* | /*)
44039 case ${D}1 in
44040 -L* | -l*)
44041 libsToLink=1
44042 ;;
b1d22ded
DE
44043 -Zomf)
44044 omfLinking=1
44045 ;;
473276a9
VS
44046 *)
44047 ;;
44048 esac
44049 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44050 ;;
b1d22ded
DE
44051 *.dll)
44052 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44053 if [ ${D}omfLinking -eq 1 ]; then
44054 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44055 else
44056 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44057 fi
44058 ;;
473276a9
VS
44059 *)
44060 found=0;
1e9e8aba 44061 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
44062 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44063 else
44064 for file in ${D}1 ; do
1e9e8aba 44065 if [ -f ${D}file ]; then
473276a9
VS
44066 inputFiles="${D}{inputFiles} ${D}file"
44067 found=1
44068 fi
44069 done
1e9e8aba 44070 if [ ${D}found -eq 0 ]; then
473276a9
VS
44071 echo "ERROR: No file(s) found: "${D}1
44072 exit 8
44073 fi
44074 fi
44075 ;;
44076 esac
44077 shift
44078done # iterate cmdline words
44079
44080#
1e9e8aba 44081if [ -z "${D}inputFiles" ]; then
473276a9
VS
44082 echo "dllar: no input files"
44083 PrintHelp
44084fi
44085
44086# Now extract all .o files from .a files
44087newInputFiles=""
44088for file in ${D}inputFiles ; do
44089 case ${D}file in
44090 *.a | *.lib)
44091 case ${D}file in
44092 *.a)
44093 suffix=".a"
44094 AR="ar"
44095 ;;
44096 *.lib)
44097 suffix=".lib"
44098 AR="emxomfar"
44099 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44100 ;;
44101 *)
44102 ;;
44103 esac
44104 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44105 mkdir ${D}dirname
1e9e8aba 44106 if [ ${D}? -ne 0 ]; then
473276a9
VS
44107 echo "Failed to create subdirectory ./${D}dirname"
44108 CleanUp
44109 exit 8;
44110 fi
44111 # Append '!' to indicate archive
44112 newInputFiles="${D}newInputFiles ${D}{dirname}!"
44113 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44114 cd ${D}curDir
44115 found=0;
44116 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 44117 if [ -f ${D}subfile ]; then
473276a9 44118 found=1
1e9e8aba 44119 if [ -s ${D}subfile ]; then
473276a9
VS
44120 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44121 newInputFiles="${D}newInputFiles ${D}subfile"
44122 fi
44123 fi
44124 done
1e9e8aba
DE
44125 if [ ${D}found -eq 0 ]; then
44126 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
44127 fi
44128 ;;
44129 *)
44130 newInputFiles="${D}{newInputFiles} ${D}file"
44131 ;;
44132 esac
44133done
44134inputFiles="${D}newInputFiles"
44135
44136# Output filename(s).
44137do_backup=0;
1e9e8aba 44138if [ -z ${D}outFile ]; then
473276a9
VS
44139 do_backup=1;
44140 set outFile ${D}inputFiles; outFile=${D}2
44141fi
44142
44143# If it is an archive, remove the '!' and the '_%' suffixes
44144case ${D}outFile in
44145*_%!)
44146 outFile=\`basnam ${D}outFile _%!\`
44147 ;;
44148*)
44149 ;;
44150esac
44151case ${D}outFile in
44152*.dll)
44153 outFile=\`basnam ${D}outFile .dll\`
44154 ;;
44155*.DLL)
44156 outFile=\`basnam ${D}outFile .DLL\`
44157 ;;
44158*.o)
44159 outFile=\`basnam ${D}outFile .o\`
44160 ;;
44161*.obj)
44162 outFile=\`basnam ${D}outFile .obj\`
44163 ;;
44164*.a)
44165 outFile=\`basnam ${D}outFile .a\`
44166 ;;
44167*.lib)
44168 outFile=\`basnam ${D}outFile .lib\`
44169 ;;
44170*)
44171 ;;
44172esac
44173case ${D}outimpFile in
44174*.a)
44175 outimpFile=\`basnam ${D}outimpFile .a\`
44176 ;;
44177*.lib)
44178 outimpFile=\`basnam ${D}outimpFile .lib\`
44179 ;;
44180*)
44181 ;;
44182esac
1e9e8aba 44183if [ -z ${D}outimpFile ]; then
473276a9
VS
44184 outimpFile=${D}outFile
44185fi
44186defFile="${D}{outFile}.def"
44187arcFile="${D}{outimpFile}.a"
44188arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
44189
44190#create ${D}dllFile as something matching 8.3 restrictions,
44191if [ -z ${D}renameScript ] ; then
44192 dllFile="${D}outFile"
44193else
44194 dllFile=\`${D}renameScript ${D}outimpFile\`
44195fi
473276a9 44196
1e9e8aba
DE
44197if [ ${D}do_backup -ne 0 ] ; then
44198 if [ -f ${D}arcFile ] ; then
473276a9
VS
44199 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
44200 fi
1e9e8aba 44201 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
44202 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
44203 fi
44204fi
44205
44206# Extract public symbols from all the object files.
44207tmpdefFile=${D}{defFile}_%
44208rm -f ${D}tmpdefFile
44209for file in ${D}inputFiles ; do
44210 case ${D}file in
44211 *!)
44212 ;;
44213 *)
44214 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
44215 ;;
44216 esac
44217done
44218
44219# Create the def file.
44220rm -f ${D}defFile
44221echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
44222dllFile="${D}{dllFile}.dll"
44223if [ ! -z ${D}description ]; then
1e9e8aba 44224 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
44225fi
44226echo "EXPORTS" >> ${D}defFile
44227
44228doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
44229grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
44230
44231# Checks if the export is ok or not.
44232for word in ${D}exclude_symbols; do
44233 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
44234 mv ${D}{tmpdefFile}% ${D}tmpdefFile
44235done
44236
44237
1e9e8aba
DE
44238if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
44239 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
44240 sed '
44241 N
44242 : loop
1e9e8aba 44243 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
44244 t loop
44245 ' > ${D}{tmpdefFile}%
44246 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
44247else
44248 rm -f ${D}{tmpdefFile}%
44249fi
44250cat ${D}tmpdefFile >> ${D}defFile
44251rm -f ${D}tmpdefFile
44252
44253# Do linking, create implib, and apply lxlite.
44254gccCmdl="";
44255for file in ${D}inputFiles ; do
44256 case ${D}file in
44257 *!)
44258 ;;
44259 *)
44260 gccCmdl="${D}gccCmdl ${D}file"
44261 ;;
44262 esac
44263done
44264doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
44265touch "${D}{outFile}.dll"
44266
44267doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 44268if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 44269 add_flags="";
1e9e8aba 44270 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
44271 add_flags="-ynd"
44272 fi
44273 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
44274fi
44275doCommand "emxomf -s -l ${D}arcFile"
44276
44277# Successful exit.
44278CleanUp 1
44279exit 0
44280EOF
44281
44282 chmod +x dllar.sh
a848cd7e
SC
44283 ;;
44284
1e9e8aba 44285 powerpc-apple-macos* | \
0ad5d837 44286 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
44287 *-*-sunos4* | \
44288 *-*-osf* | \
44289 *-*-dgux5* | \
47a7e797
MW
44290 *-*-sysv5* | \
44291 *-pc-msdosdjgpp )
a848cd7e
SC
44292 ;;
44293
44294 *)
44295 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
44296echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
44297 { (exit 1); exit 1; }; }
44298 esac
44299
2057db16
VS
44300 if test "x$PIC_FLAG" != "x" ; then
44301 PIC_FLAG="$PIC_FLAG -DPIC"
44302 fi
44303
a848cd7e
SC
44304 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
44305 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
44306 fi
44307 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
44308 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
44309 fi
44310
44311
44312
44313
44314
44315
44316
44317
810b94f0 44318
a848cd7e
SC
44319 USE_SOVERSION=0
44320 USE_SOVERLINUX=0
44321 USE_SOVERSOLARIS=0
810b94f0 44322 USE_SOVERCYGWIN=0
a848cd7e
SC
44323 USE_SOSYMLINKS=0
44324 USE_MACVERSION=0
44325 SONAME_FLAG=
44326
44327 case "${BAKEFILE_HOST}" in
0ad5d837 44328 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
44329 SONAME_FLAG="-Wl,-soname,"
44330 USE_SOVERSION=1
44331 USE_SOVERLINUX=1
44332 USE_SOSYMLINKS=1
44333 ;;
44334
a848cd7e
SC
44335 *-*-solaris2* )
44336 SONAME_FLAG="-h "
44337 USE_SOVERSION=1
44338 USE_SOVERSOLARIS=1
44339 USE_SOSYMLINKS=1
44340 ;;
44341
44342 *-*-darwin* )
44343 USE_MACVERSION=1
44344 USE_SOVERSION=1
44345 USE_SOSYMLINKS=1
44346 ;;
810b94f0
MW
44347
44348 *-*-cygwin* )
44349 USE_SOVERSION=1
44350 USE_SOVERCYGWIN=1
44351 ;;
a848cd7e
SC
44352 esac
44353
44354
44355
44356
44357
44358
44359
44360
44361
810b94f0 44362
a848cd7e
SC
44363 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
44364echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 44365 DEPS_TRACKING=1
a848cd7e
SC
44366
44367 if test "x$GCC" = "xyes"; then
44368 DEPSMODE=gcc
a848cd7e 44369 case "${BAKEFILE_HOST}" in
47bd5406 44370 *-*-darwin* )
0ad5d837 44371 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
44372 ;;
44373 * )
0ad5d837 44374 DEPSFLAG="-MMD"
a848cd7e
SC
44375 ;;
44376 esac
44377 echo "$as_me:$LINENO: result: gcc" >&5
44378echo "${ECHO_T}gcc" >&6
b1d22ded 44379 elif test "x$MWCC" = "xyes"; then
81f90336 44380 DEPSMODE=mwcc
0ad5d837 44381 DEPSFLAG="-MM"
b1d22ded
DE
44382 echo "$as_me:$LINENO: result: mwcc" >&5
44383echo "${ECHO_T}mwcc" >&6
a9e5b1f0 44384 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
44385 DEPSMODE=unixcc
44386 DEPSFLAG="-xM1"
44387 echo "$as_me:$LINENO: result: Sun cc" >&5
44388echo "${ECHO_T}Sun cc" >&6
44389 elif test "x$SGICC" = "xyes"; then
44390 DEPSMODE=unixcc
44391 DEPSFLAG="-M"
44392 echo "$as_me:$LINENO: result: SGI cc" >&5
44393echo "${ECHO_T}SGI cc" >&6
a848cd7e 44394 else
0ad5d837 44395 DEPS_TRACKING=0
a848cd7e
SC
44396 echo "$as_me:$LINENO: result: none" >&5
44397echo "${ECHO_T}none" >&6
44398 fi
44399
44400 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
44401
44402D='$'
44403cat <<EOF >bk-deps
a848cd7e
SC
44404#!/bin/sh
44405
44406# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
44407# script. It is used to track C/C++ files dependencies in portable way.
44408#
44409# Permission is given to use this file in any way.
44410
473276a9 44411DEPSMODE=${DEPSMODE}
a848cd7e 44412DEPSDIR=.deps
0ad5d837 44413DEPSFLAG="${DEPSFLAG}"
a848cd7e 44414
473276a9 44415mkdir -p ${D}DEPSDIR
a848cd7e 44416
473276a9 44417if test ${D}DEPSMODE = gcc ; then
0ad5d837 44418 ${D}* ${D}{DEPSFLAG}
473276a9
VS
44419 status=${D}?
44420 if test ${D}{status} != 0 ; then
44421 exit ${D}{status}
a848cd7e
SC
44422 fi
44423 # move created file to the location we want it in:
473276a9
VS
44424 while test ${D}# -gt 0; do
44425 case "${D}1" in
a848cd7e
SC
44426 -o )
44427 shift
473276a9 44428 objfile=${D}1
a848cd7e
SC
44429 ;;
44430 -* )
44431 ;;
44432 * )
473276a9 44433 srcfile=${D}1
a848cd7e
SC
44434 ;;
44435 esac
44436 shift
44437 done
1e9e8aba
DE
44438 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
44439 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
44440 if test -f ${D}depfile ; then
44441 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
44442 rm -f ${D}depfile
a848cd7e 44443 else
1e9e8aba 44444 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
44445 if test -f ${D}depfile ; then
44446 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
44447 rm -f ${D}depfile
a848cd7e
SC
44448 fi
44449 fi
44450 exit 0
81f90336 44451elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 44452 ${D}* || exit ${D}?
81f90336
MW
44453 # Run mwcc again with -MM and redirect into the dep file we want
44454 # NOTE: We can't use shift here because we need ${D}* to be valid
44455 prevarg=
44456 for arg in ${D}* ; do
44457 if test "${D}prevarg" = "-o"; then
44458 objfile=${D}arg
44459 else
44460 case "${D}arg" in
44461 -* )
44462 ;;
44463 * )
44464 srcfile=${D}arg
44465 ;;
44466 esac
44467 fi
44468 prevarg="${D}arg"
44469 done
0ad5d837 44470 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 44471 exit 0
0ad5d837 44472elif test ${D}DEPSMODE = unixcc; then
f6b50c59 44473 ${D}* || exit ${D}?
a9e5b1f0
MW
44474 # Run compiler again with deps flag and redirect into the dep file.
44475 # It doesn't work if the '-o FILE' option is used, but without it the
44476 # dependency file will contain the wrong name for the object. So it is
44477 # removed from the command line, and the dep file is fixed with sed.
44478 cmd=""
44479 while test ${D}# -gt 0; do
44480 case "${D}1" in
44481 -o )
44482 shift
44483 objfile=${D}1
44484 ;;
44485 * )
44486 eval arg${D}#=\\${D}1
44487 cmd="${D}cmd \\${D}arg${D}#"
44488 ;;
44489 esac
44490 shift
44491 done
0ad5d837 44492 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 44493 exit 0
a848cd7e 44494else
473276a9
VS
44495 ${D}*
44496 exit ${D}?
a848cd7e
SC
44497fi
44498EOF
473276a9 44499
a848cd7e
SC
44500 chmod +x bk-deps
44501 fi
44502
44503
44504
44505
44506 RESCOMP=
44507 SETFILE=
44508
44509 case ${BAKEFILE_HOST} in
44510 *-*-cygwin* | *-*-mingw32* )
44511 if test "$build" != "$host" ; then
44512 RESCOMP=$host_alias-windres
44513 else
44514 # Extract the first word of "windres", so it can be a program name with args.
44515set dummy windres; ac_word=$2
44516echo "$as_me:$LINENO: checking for $ac_word" >&5
44517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44518if test "${ac_cv_prog_RESCOMP+set}" = set; then
44519 echo $ECHO_N "(cached) $ECHO_C" >&6
44520else
44521 if test -n "$RESCOMP"; then
44522 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
44523else
44524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44525for as_dir in $PATH
44526do
44527 IFS=$as_save_IFS
44528 test -z "$as_dir" && as_dir=.
44529 for ac_exec_ext in '' $ac_executable_extensions; do
44530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44531 ac_cv_prog_RESCOMP="windres"
44532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44533 break 2
44534 fi
44535done
44536done
44537
44538 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
44539fi
44540fi
44541RESCOMP=$ac_cv_prog_RESCOMP
44542if test -n "$RESCOMP"; then
44543 echo "$as_me:$LINENO: result: $RESCOMP" >&5
44544echo "${ECHO_T}$RESCOMP" >&6
44545else
44546 echo "$as_me:$LINENO: result: no" >&5
44547echo "${ECHO_T}no" >&6
44548fi
44549
44550 fi
44551 ;;
44552
1e9e8aba 44553 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
44554 # Extract the first word of "Rez", so it can be a program name with args.
44555set dummy Rez; ac_word=$2
44556echo "$as_me:$LINENO: checking for $ac_word" >&5
44557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44558if test "${ac_cv_prog_RESCOMP+set}" = set; then
44559 echo $ECHO_N "(cached) $ECHO_C" >&6
44560else
44561 if test -n "$RESCOMP"; then
44562 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
44563else
44564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44565for as_dir in $PATH
44566do
44567 IFS=$as_save_IFS
44568 test -z "$as_dir" && as_dir=.
44569 for ac_exec_ext in '' $ac_executable_extensions; do
44570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44571 ac_cv_prog_RESCOMP="Rez"
44572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44573 break 2
44574 fi
44575done
44576done
44577
44578 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
44579fi
44580fi
44581RESCOMP=$ac_cv_prog_RESCOMP
44582if test -n "$RESCOMP"; then
44583 echo "$as_me:$LINENO: result: $RESCOMP" >&5
44584echo "${ECHO_T}$RESCOMP" >&6
44585else
44586 echo "$as_me:$LINENO: result: no" >&5
44587echo "${ECHO_T}no" >&6
44588fi
44589
44590 # Extract the first word of "SetFile", so it can be a program name with args.
44591set dummy SetFile; ac_word=$2
44592echo "$as_me:$LINENO: checking for $ac_word" >&5
44593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44594if test "${ac_cv_prog_SETFILE+set}" = set; then
44595 echo $ECHO_N "(cached) $ECHO_C" >&6
44596else
44597 if test -n "$SETFILE"; then
44598 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
44599else
44600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44601for as_dir in $PATH
44602do
44603 IFS=$as_save_IFS
44604 test -z "$as_dir" && as_dir=.
44605 for ac_exec_ext in '' $ac_executable_extensions; do
44606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44607 ac_cv_prog_SETFILE="SetFile"
44608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44609 break 2
44610 fi
44611done
44612done
44613
44614 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
44615fi
44616fi
44617SETFILE=$ac_cv_prog_SETFILE
44618if test -n "$SETFILE"; then
44619 echo "$as_me:$LINENO: result: $SETFILE" >&5
44620echo "${ECHO_T}$SETFILE" >&6
44621else
44622 echo "$as_me:$LINENO: result: no" >&5
44623echo "${ECHO_T}no" >&6
44624fi
44625
44626 ;;
44627 esac
44628
44629
44630
44631
44632
c9469659 44633 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 44634
dcc1b6ad 44635
c9469659 44636BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 44637
646b6ec1 44638
74b84332 44639
a848cd7e
SC
44640 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
44641if test "${enable_precomp_headers+set}" = set; then
44642 enableval="$enable_precomp_headers"
44643 bk_use_pch="$enableval"
44644fi;
44645
44646 GCC_PCH=0
44647
44648 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
44649 if test "x$GCC" = "xyes"; then
44650 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
44651echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
44652 cat >conftest.$ac_ext <<_ACEOF
44653/* confdefs.h. */
44654_ACEOF
44655cat confdefs.h >>conftest.$ac_ext
44656cat >>conftest.$ac_ext <<_ACEOF
44657/* end confdefs.h. */
44658
44659int
44660main ()
44661{
44662
44663 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
44664 #error "no pch support"
44665 #endif
44666 #if (__GNUC__ < 3)
44667 #error "no pch support"
44668 #endif
44669 #if (__GNUC__ == 3) && \
44670 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
44671 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
44672 #error "no pch support"
44673 #endif
44674
44675 ;
44676 return 0;
44677}
44678_ACEOF
44679rm -f conftest.$ac_objext
44680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44681 (eval $ac_compile) 2>conftest.er1
a848cd7e 44682 ac_status=$?
ac1cb8d3
VS
44683 grep -v '^ *+' conftest.er1 >conftest.err
44684 rm -f conftest.er1
44685 cat conftest.err >&5
a848cd7e
SC
44686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44687 (exit $ac_status); } &&
6ebeb4c7 44688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44690 (eval $ac_try) 2>&5
44691 ac_status=$?
44692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44693 (exit $ac_status); }; } &&
44694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44696 (eval $ac_try) 2>&5
44697 ac_status=$?
44698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44699 (exit $ac_status); }; }; then
44700
44701 echo "$as_me:$LINENO: result: yes" >&5
44702echo "${ECHO_T}yes" >&6
a848cd7e
SC
44703 GCC_PCH=1
44704
44705else
44706 echo "$as_me: failed program was:" >&5
44707sed 's/^/| /' conftest.$ac_ext >&5
44708
44709
44710 echo "$as_me:$LINENO: result: no" >&5
44711echo "${ECHO_T}no" >&6
44712
44713fi
ac1cb8d3 44714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44715 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
44716
44717D='$'
44718cat <<EOF >bk-make-pch
a848cd7e
SC
44719#!/bin/sh
44720
44721# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
44722# script. It is used to generated precompiled headers.
44723#
44724# Permission is given to use this file in any way.
44725
1e9e8aba
DE
44726outfile="${D}{1}"
44727header="${D}{2}"
a848cd7e
SC
44728shift
44729shift
44730
44731compiler=
44732headerfile=
1e9e8aba
DE
44733while test ${D}{#} -gt 0; do
44734 case "${D}{1}" in
a848cd7e 44735 -I* )
1e9e8aba
DE
44736 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
44737 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
44738 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
44739 fi
44740 ;;
44741 esac
1e9e8aba 44742 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
44743 shift
44744done
44745
1e9e8aba
DE
44746if test "x${D}{headerfile}" = "x" ; then
44747 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 44748else
1e9e8aba
DE
44749 if test -f ${D}{outfile} ; then
44750 rm -f ${D}{outfile}
a848cd7e 44751 else
1e9e8aba 44752 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 44753 fi
1e9e8aba 44754 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
44755 mkdir -p .deps
44756 # can do this because gcc is >= 3.4:
1e9e8aba
DE
44757 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
44758 exit ${D}{?}
a848cd7e
SC
44759fi
44760EOF
1e9e8aba 44761
a848cd7e
SC
44762 chmod +x bk-make-pch
44763 fi
44764 fi
44765 fi
44766
44767
44768
a848cd7e
SC
44769 COND_BUILD_DEBUG="#"
44770 if test "x$BUILD" = "xdebug" ; then
44771 COND_BUILD_DEBUG=""
44772 fi
44773
44774 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
44775 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
44776 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
44777 fi
44778
44779 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
44780 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
44781 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
44782 fi
44783
44784 COND_BUILD_DEBUG_UNICODE_0="#"
44785 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
44786 COND_BUILD_DEBUG_UNICODE_0=""
44787 fi
44788
44789 COND_BUILD_DEBUG_UNICODE_1="#"
44790 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
44791 COND_BUILD_DEBUG_UNICODE_1=""
44792 fi
44793
44794 COND_BUILD_RELEASE="#"
44795 if test "x$BUILD" = "xrelease" ; then
44796 COND_BUILD_RELEASE=""
44797 fi
44798
44799 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
44800 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
44801 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
44802 fi
44803
44804 COND_BUILD_RELEASE_UNICODE_0="#"
44805 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
44806 COND_BUILD_RELEASE_UNICODE_0=""
44807 fi
44808
44809 COND_BUILD_RELEASE_UNICODE_1="#"
44810 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
44811 COND_BUILD_RELEASE_UNICODE_1=""
44812 fi
44813
44814 COND_DEBUG_FLAG_1="#"
44815 if test "x$DEBUG_FLAG" = "x1" ; then
44816 COND_DEBUG_FLAG_1=""
44817 fi
44818
44819 COND_DEBUG_INFO_0="#"
44820 if test "x$DEBUG_INFO" = "x0" ; then
44821 COND_DEBUG_INFO_0=""
44822 fi
44823
44824 COND_DEBUG_INFO_1="#"
44825 if test "x$DEBUG_INFO" = "x1" ; then
44826 COND_DEBUG_INFO_1=""
44827 fi
44828
44829 COND_DEPS_TRACKING_0="#"
44830 if test "x$DEPS_TRACKING" = "x0" ; then
44831 COND_DEPS_TRACKING_0=""
44832 fi
44833
44834 COND_DEPS_TRACKING_1="#"
44835 if test "x$DEPS_TRACKING" = "x1" ; then
44836 COND_DEPS_TRACKING_1=""
44837 fi
44838
44839 COND_GCC_PCH_1="#"
44840 if test "x$GCC_PCH" = "x1" ; then
44841 COND_GCC_PCH_1=""
44842 fi
44843
44844 COND_MONOLITHIC_0="#"
44845 if test "x$MONOLITHIC" = "x0" ; then
44846 COND_MONOLITHIC_0=""
44847 fi
44848
44849 COND_MONOLITHIC_0_SHARED_0="#"
44850 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
44851 COND_MONOLITHIC_0_SHARED_0=""
44852 fi
44853
44854 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
44855 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
44856 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
44857 fi
44858
90970d69
DE
44859 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
44860 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
44861 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
44862 fi
44863
a848cd7e
SC
44864 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
44865 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
44866 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
44867 fi
44868
6671c68b
VZ
44869 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
44870 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
44871 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
44872 fi
44873
a848cd7e
SC
44874 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
44875 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
44876 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
44877 fi
44878
ceec2216
RL
44879 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
44880 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
44881 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
44882 fi
44883
a848cd7e
SC
44884 COND_MONOLITHIC_0_SHARED_1="#"
44885 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
44886 COND_MONOLITHIC_0_SHARED_1=""
44887 fi
44888
44889 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
44890 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
44891 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
44892 fi
44893
90970d69
DE
44894 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
44895 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
44896 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
44897 fi
44898
a848cd7e
SC
44899 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
44900 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
44901 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
44902 fi
44903
6671c68b
VZ
44904 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
44905 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
44906 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
44907 fi
44908
a848cd7e
SC
44909 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
44910 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
44911 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
44912 fi
44913
ceec2216
RL
44914 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
44915 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44916 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
44917 fi
44918
a848cd7e
SC
44919 COND_MONOLITHIC_0_USE_ODBC_1="#"
44920 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
44921 COND_MONOLITHIC_0_USE_ODBC_1=""
44922 fi
44923
44924 COND_MONOLITHIC_1="#"
44925 if test "x$MONOLITHIC" = "x1" ; then
44926 COND_MONOLITHIC_1=""
44927 fi
44928
44929 COND_MONOLITHIC_1_SHARED_0="#"
44930 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
44931 COND_MONOLITHIC_1_SHARED_0=""
44932 fi
44933
44934 COND_MONOLITHIC_1_SHARED_1="#"
44935 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
44936 COND_MONOLITHIC_1_SHARED_1=""
44937 fi
44938
44939 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
44940 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
44941 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
44942 fi
44943
44944 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
44945 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
44946 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
44947 fi
44948
eb730a0c
JS
44949 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
44950 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
44951 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
44952 fi
44953
a848cd7e
SC
44954 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
44955 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
44956 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
44957 fi
44958
44959 COND_PLATFORM_MACOSX_1="#"
44960 if test "x$PLATFORM_MACOSX" = "x1" ; then
44961 COND_PLATFORM_MACOSX_1=""
44962 fi
44963
a30f955f
VS
44964 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
44965 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
44966 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
44967 fi
44968
a848cd7e
SC
44969 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
44970 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
44971 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
44972 fi
44973
44974 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
44975 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
44976 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
44977 fi
44978
44979 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
44980 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
44981 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
44982 fi
44983
fc480dc1
DE
44984 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
44985 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
44986 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
44987 fi
44988
1e9e8aba
DE
44989 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44990 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44991 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44992 fi
44993
ebee3cd0
VS
44994 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
44995 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
44996 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
44997 fi
44998
44999 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45000 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45001 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45002 fi
45003
a848cd7e
SC
45004 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45005 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45006 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45007 fi
45008
45009 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45010 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45011 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45012 fi
45013
b48a2016
DE
45014 COND_PLATFORM_MACOS_1="#"
45015 if test "x$PLATFORM_MACOS" = "x1" ; then
45016 COND_PLATFORM_MACOS_1=""
45017 fi
45018
083508af
MW
45019 COND_PLATFORM_MAC_1="#"
45020 if test "x$PLATFORM_MAC" = "x1" ; then
45021 COND_PLATFORM_MAC_1=""
45022 fi
45023
83d8eb47
MW
45024 COND_PLATFORM_MSDOS_1="#"
45025 if test "x$PLATFORM_MSDOS" = "x1" ; then
45026 COND_PLATFORM_MSDOS_1=""
45027 fi
45028
a848cd7e
SC
45029 COND_PLATFORM_OS2_1="#"
45030 if test "x$PLATFORM_OS2" = "x1" ; then
45031 COND_PLATFORM_OS2_1=""
45032 fi
45033
45034 COND_PLATFORM_UNIX_0="#"
45035 if test "x$PLATFORM_UNIX" = "x0" ; then
45036 COND_PLATFORM_UNIX_0=""
45037 fi
45038
45039 COND_PLATFORM_UNIX_1="#"
45040 if test "x$PLATFORM_UNIX" = "x1" ; then
45041 COND_PLATFORM_UNIX_1=""
45042 fi
45043
45044 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45045 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45046 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45047 fi
45048
45049 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45050 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45051 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45052 fi
45053
45054 COND_PLATFORM_WIN32_0="#"
45055 if test "x$PLATFORM_WIN32" = "x0" ; then
45056 COND_PLATFORM_WIN32_0=""
45057 fi
45058
45059 COND_PLATFORM_WIN32_1="#"
45060 if test "x$PLATFORM_WIN32" = "x1" ; then
45061 COND_PLATFORM_WIN32_1=""
45062 fi
45063
45064 COND_SHARED_0="#"
45065 if test "x$SHARED" = "x0" ; then
45066 COND_SHARED_0=""
45067 fi
45068
083508af
MW
45069 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45070 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45071 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45072 fi
45073
45074 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45075 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45076 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45077 fi
45078
45079 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45080 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45081 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45082 fi
45083
a848cd7e
SC
45084 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45085 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45086 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45087 fi
45088
45089 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45090 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45091 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45092 fi
45093
45094 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45095 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45096 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45097 fi
45098
45099 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45100 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45101 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45102 fi
45103
083508af
MW
45104 COND_SHARED_0_USE_XRC_1="#"
45105 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45106 COND_SHARED_0_USE_XRC_1=""
45107 fi
45108
a848cd7e
SC
45109 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
45110 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
45111 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
45112 fi
45113
45114 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
45115 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
45116 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
45117 fi
45118
45119 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
45120 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
45121 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
45122 fi
45123
45124 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
45125 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
45126 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
45127 fi
45128
45129 COND_SHARED_1="#"
45130 if test "x$SHARED" = "x1" ; then
45131 COND_SHARED_1=""
45132 fi
45133
45134 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
45135 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45136 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
45137 fi
45138
083508af
MW
45139 COND_SHARED_1_USE_XRC_1="#"
45140 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45141 COND_SHARED_1_USE_XRC_1=""
45142 fi
45143
a30f955f
VS
45144 COND_TOOLKIT_="#"
45145 if test "x$TOOLKIT" = "x" ; then
45146 COND_TOOLKIT_=""
45147 fi
45148
a848cd7e
SC
45149 COND_TOOLKIT_COCOA="#"
45150 if test "x$TOOLKIT" = "xCOCOA" ; then
45151 COND_TOOLKIT_COCOA=""
45152 fi
45153
a49baeab
DE
45154 COND_TOOLKIT_COCOA_USE_GUI_1="#"
45155 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
45156 COND_TOOLKIT_COCOA_USE_GUI_1=""
45157 fi
45158
a848cd7e
SC
45159 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
45160 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45161 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
45162 fi
45163
45164 COND_TOOLKIT_GTK="#"
45165 if test "x$TOOLKIT" = "xGTK" ; then
45166 COND_TOOLKIT_GTK=""
45167 fi
45168
45169 COND_TOOLKIT_GTK_USE_GUI_1="#"
45170 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
45171 COND_TOOLKIT_GTK_USE_GUI_1=""
45172 fi
45173
45174 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
45175 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45176 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
45177 fi
45178
45179 COND_TOOLKIT_MAC="#"
45180 if test "x$TOOLKIT" = "xMAC" ; then
45181 COND_TOOLKIT_MAC=""
45182 fi
45183
45184 COND_TOOLKIT_MAC_USE_GUI_1="#"
45185 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45186 COND_TOOLKIT_MAC_USE_GUI_1=""
45187 fi
45188
45189 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45190 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45191 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45192 fi
45193
45194 COND_TOOLKIT_MGL="#"
45195 if test "x$TOOLKIT" = "xMGL" ; then
45196 COND_TOOLKIT_MGL=""
45197 fi
45198
45199 COND_TOOLKIT_MGL_USE_GUI_1="#"
45200 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
45201 COND_TOOLKIT_MGL_USE_GUI_1=""
45202 fi
45203
45204 COND_TOOLKIT_MOTIF="#"
45205 if test "x$TOOLKIT" = "xMOTIF" ; then
45206 COND_TOOLKIT_MOTIF=""
45207 fi
45208
45209 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
45210 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
45211 COND_TOOLKIT_MOTIF_USE_GUI_1=""
45212 fi
45213
45214 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
45215 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45216 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
45217 fi
45218
45219 COND_TOOLKIT_MSW="#"
45220 if test "x$TOOLKIT" = "xMSW" ; then
45221 COND_TOOLKIT_MSW=""
45222 fi
45223
45224 COND_TOOLKIT_MSW_USE_GUI_1="#"
45225 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
45226 COND_TOOLKIT_MSW_USE_GUI_1=""
45227 fi
45228
45229 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
45230 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45231 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
45232 fi
45233
45234 COND_TOOLKIT_PM="#"
45235 if test "x$TOOLKIT" = "xPM" ; then
45236 COND_TOOLKIT_PM=""
45237 fi
45238
45239 COND_TOOLKIT_PM_USE_GUI_1="#"
45240 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
45241 COND_TOOLKIT_PM_USE_GUI_1=""
45242 fi
45243
45244 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
45245 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45246 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
45247 fi
45248
3fd9c298
DE
45249 COND_TOOLKIT_WINCE="#"
45250 if test "x$TOOLKIT" = "xWINCE" ; then
45251 COND_TOOLKIT_WINCE=""
45252 fi
45253
45254 COND_TOOLKIT_WINCE_USE_GUI_1="#"
45255 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
45256 COND_TOOLKIT_WINCE_USE_GUI_1=""
45257 fi
45258
45259 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
45260 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45261 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
45262 fi
45263
a848cd7e
SC
45264 COND_TOOLKIT_X11="#"
45265 if test "x$TOOLKIT" = "xX11" ; then
45266 COND_TOOLKIT_X11=""
45267 fi
45268
45269 COND_TOOLKIT_X11_USE_GUI_1="#"
45270 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
45271 COND_TOOLKIT_X11_USE_GUI_1=""
45272 fi
45273
45274 COND_UNICODE_1="#"
45275 if test "x$UNICODE" = "x1" ; then
45276 COND_UNICODE_1=""
45277 fi
45278
45279 COND_USE_EXCEPTIONS_0="#"
45280 if test "x$USE_EXCEPTIONS" = "x0" ; then
45281 COND_USE_EXCEPTIONS_0=""
45282 fi
45283
45284 COND_USE_EXCEPTIONS_1="#"
45285 if test "x$USE_EXCEPTIONS" = "x1" ; then
45286 COND_USE_EXCEPTIONS_1=""
45287 fi
45288
45289 COND_USE_GUI_0="#"
45290 if test "x$USE_GUI" = "x0" ; then
45291 COND_USE_GUI_0=""
45292 fi
45293
45294 COND_USE_GUI_1="#"
45295 if test "x$USE_GUI" = "x1" ; then
45296 COND_USE_GUI_1=""
45297 fi
45298
45299 COND_USE_GUI_1_WXUNIV_0="#"
45300 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45301 COND_USE_GUI_1_WXUNIV_0=""
45302 fi
45303
45304 COND_USE_GUI_1_WXUNIV_1="#"
45305 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
45306 COND_USE_GUI_1_WXUNIV_1=""
45307 fi
45308
45309 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45310 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45311 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45312 fi
45313
45314 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45315 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45316 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45317 fi
45318
45319 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45320 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45321 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45322 fi
45323
083508af
MW
45324 COND_USE_ODBC_1="#"
45325 if test "x$USE_ODBC" = "x1" ; then
45326 COND_USE_ODBC_1=""
45327 fi
45328
45329 COND_USE_OPENGL_1="#"
45330 if test "x$USE_OPENGL" = "x1" ; then
45331 COND_USE_OPENGL_1=""
45332 fi
45333
a848cd7e
SC
45334 COND_USE_PLUGINS_0="#"
45335 if test "x$USE_PLUGINS" = "x0" ; then
45336 COND_USE_PLUGINS_0=""
45337 fi
45338
0b78747f
MW
45339 COND_USE_RTTI_0="#"
45340 if test "x$USE_RTTI" = "x0" ; then
45341 COND_USE_RTTI_0=""
45342 fi
45343
45344 COND_USE_RTTI_1="#"
45345 if test "x$USE_RTTI" = "x1" ; then
45346 COND_USE_RTTI_1=""
45347 fi
45348
a848cd7e
SC
45349 COND_USE_SOSYMLINKS_1="#"
45350 if test "x$USE_SOSYMLINKS" = "x1" ; then
45351 COND_USE_SOSYMLINKS_1=""
45352 fi
45353
eb730a0c
JS
45354 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
45355 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45356 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
45357 fi
45358
a848cd7e
SC
45359 COND_USE_SOVERLINUX_1="#"
45360 if test "x$USE_SOVERLINUX" = "x1" ; then
45361 COND_USE_SOVERLINUX_1=""
45362 fi
45363
45364 COND_USE_SOVERSION_0="#"
45365 if test "x$USE_SOVERSION" = "x0" ; then
45366 COND_USE_SOVERSION_0=""
45367 fi
45368
45369 COND_USE_SOVERSOLARIS_1="#"
45370 if test "x$USE_SOVERSOLARIS" = "x1" ; then
45371 COND_USE_SOVERSOLARIS_1=""
45372 fi
45373
0b78747f
MW
45374 COND_USE_THREADS_0="#"
45375 if test "x$USE_THREADS" = "x0" ; then
45376 COND_USE_THREADS_0=""
45377 fi
45378
45379 COND_USE_THREADS_1="#"
45380 if test "x$USE_THREADS" = "x1" ; then
45381 COND_USE_THREADS_1=""
45382 fi
45383
a13a7f89
RL
45384 COND_USE_XRC_1="#"
45385 if test "x$USE_XRC" = "x1" ; then
45386 COND_USE_XRC_1=""
45387 fi
45388
eb730a0c
JS
45389 COND_WINDOWS_IMPLIB_1="#"
45390 if test "x$WINDOWS_IMPLIB" = "x1" ; then
45391 COND_WINDOWS_IMPLIB_1=""
45392 fi
45393
a848cd7e
SC
45394 COND_WITH_PLUGIN_SDL_1="#"
45395 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
45396 COND_WITH_PLUGIN_SDL_1=""
45397 fi
45398
1e6eb025
VZ
45399 COND_WXUNIV_0="#"
45400 if test "x$WXUNIV" = "x0" ; then
45401 COND_WXUNIV_0=""
45402 fi
45403
a848cd7e
SC
45404 COND_WXUNIV_1="#"
45405 if test "x$WXUNIV" = "x1" ; then
45406 COND_WXUNIV_1=""
45407 fi
45408
45409 COND_WXUSE_EXPAT_BUILTIN="#"
45410 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
45411 COND_WXUSE_EXPAT_BUILTIN=""
45412 fi
45413
45414 COND_WXUSE_LIBJPEG_BUILTIN="#"
45415 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45416 COND_WXUSE_LIBJPEG_BUILTIN=""
45417 fi
45418
45419 COND_WXUSE_LIBPNG_BUILTIN="#"
45420 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45421 COND_WXUSE_LIBPNG_BUILTIN=""
45422 fi
45423
45424 COND_WXUSE_LIBTIFF_BUILTIN="#"
45425 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45426 COND_WXUSE_LIBTIFF_BUILTIN=""
45427 fi
45428
45429 COND_WXUSE_ODBC_BUILTIN="#"
45430 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
45431 COND_WXUSE_ODBC_BUILTIN=""
45432 fi
45433
45434 COND_WXUSE_REGEX_BUILTIN="#"
45435 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
45436 COND_WXUSE_REGEX_BUILTIN=""
45437 fi
45438
45439 COND_WXUSE_ZLIB_BUILTIN="#"
45440 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
45441 COND_WXUSE_ZLIB_BUILTIN=""
45442 fi
45443
45444
45445
810b94f0
MW
45446 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
45447 { { 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
45448echo "$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;}
45449 { (exit 1); exit 1; }; }
45450 fi
45451
2057db16
VS
45452 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
45453 { { 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
45454echo "$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;}
45455 { (exit 1); exit 1; }; }
45456 fi
45457
a848cd7e 45458
ceec2216
RL
45459if test "$wxUSE_SHARED" = "yes"; then
45460
45461 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
45462 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
45463
5b674b9d
DE
45464 case "${host}" in
45465 *-pc-os2_emx | *-pc-os2-emx )
45466 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45467 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45468 cp -p ${srcdir}/src/os2/dllnames.sh .
45469 cp -p ${srcdir}/src/os2/dllar.sh .
45470 ;;
45471 esac
ceec2216
RL
45472else
45473
45474 EXE_LINKER="$CXX -o"
45475
45476fi
69120ee4
VZ
45477if test "$wxUSE_OMF" = "yes"; then
45478 case "${host}" in
45479 *-pc-os2_emx | *-pc-os2-emx )
45480 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
45481 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
45482 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
45483 ;;
45484 esac
45485fi
a848cd7e 45486
ddd14b14
RR
45487GCC_PRAGMA_FLAGS=""
45488PCH_FLAGS=""
87dd70d3 45489
c08ebc62 45490if test $GCC_PCH = 1 ; then
ddd14b14 45491 PCH_FLAGS="-DWX_PRECOMP"
87ae5038
RR
45492 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
45493else
45494 if test "$GCC" = yes; then
45495 echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5
87dd70d3 45496echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 45497 cat >conftest.$ac_ext <<_ACEOF
87dd70d3
RR
45498/* confdefs.h. */
45499_ACEOF
45500cat confdefs.h >>conftest.$ac_ext
45501cat >>conftest.$ac_ext <<_ACEOF
45502/* end confdefs.h. */
45503
45504int
45505main ()
45506{
45507#if (__GNUC__ < 4)
04e525a0 45508 Not GCC 4.0 or greater
87ae5038 45509 #endif
87dd70d3
RR
45510
45511 ;
45512 return 0;
45513}
45514_ACEOF
45515rm -f conftest.$ac_objext
45516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45517 (eval $ac_compile) 2>conftest.er1
45518 ac_status=$?
45519 grep -v '^ *+' conftest.er1 >conftest.err
45520 rm -f conftest.er1
45521 cat conftest.err >&5
45522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45523 (exit $ac_status); } &&
6ebeb4c7 45524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
87dd70d3
RR
45525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45526 (eval $ac_try) 2>&5
45527 ac_status=$?
45528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45529 (exit $ac_status); }; } &&
45530 { ac_try='test -s conftest.$ac_objext'
45531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45532 (eval $ac_try) 2>&5
45533 ac_status=$?
45534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45535 (exit $ac_status); }; }; then
45536 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 45537 echo "$as_me:$LINENO: result: yes" >&5
87dd70d3
RR
45538echo "${ECHO_T}yes" >&6
45539else
45540 echo "$as_me: failed program was:" >&5
45541sed 's/^/| /' conftest.$ac_ext >&5
45542
45543echo "$as_me:$LINENO: result: no" >&5
45544echo "${ECHO_T}no" >&6
87ae5038 45545 case "${host}" in
cfda0ea8 45546 *-*-darwin* )
87ae5038
RR
45547 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
45548 ;;
45549 *-*-mingw32* )
45550 if test "$wxUSE_STL" = "yes" -o \
ddd14b14
RR
45551 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
45552 "$wxUSE_NO_RTTI" != "yes"; then
87ae5038 45553 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 45554echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 45555 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
45556/* confdefs.h. */
45557_ACEOF
45558cat confdefs.h >>conftest.$ac_ext
45559cat >>conftest.$ac_ext <<_ACEOF
45560/* end confdefs.h. */
45561
45562int
45563main ()
45564{
45565#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
04e525a0 45566 Not GCC 3.2 or greater
87ae5038 45567 #endif
ddd14b14
RR
45568
45569 ;
45570 return 0;
45571}
45572_ACEOF
45573rm -f conftest.$ac_objext
45574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45575 (eval $ac_compile) 2>conftest.er1
45576 ac_status=$?
45577 grep -v '^ *+' conftest.er1 >conftest.err
45578 rm -f conftest.er1
45579 cat conftest.err >&5
45580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45581 (exit $ac_status); } &&
6ebeb4c7 45582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
45583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45584 (eval $ac_try) 2>&5
45585 ac_status=$?
45586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45587 (exit $ac_status); }; } &&
45588 { ac_try='test -s conftest.$ac_objext'
45589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45590 (eval $ac_try) 2>&5
45591 ac_status=$?
45592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45593 (exit $ac_status); }; }; then
45594 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 45595 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
45596echo "${ECHO_T}yes" >&6
45597else
45598 echo "$as_me: failed program was:" >&5
45599sed 's/^/| /' conftest.$ac_ext >&5
45600
45601echo "$as_me:$LINENO: result: no" >&5
45602echo "${ECHO_T}no" >&6
3314e67b 45603fi
ddd14b14 45604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
45605 fi
45606 ;;
45607 *-pc-os2_emx | *-pc-os2-emx )
45608 if test "$wxUSE_STL" = "yes"; then
45609 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 45610echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 45611 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
45612/* confdefs.h. */
45613_ACEOF
45614cat confdefs.h >>conftest.$ac_ext
45615cat >>conftest.$ac_ext <<_ACEOF
45616/* end confdefs.h. */
45617
45618int
45619main ()
45620{
45621#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
04e525a0 45622 Not GCC 3.2 or greater
87ae5038 45623 #endif
ddd14b14
RR
45624
45625 ;
45626 return 0;
45627}
45628_ACEOF
45629rm -f conftest.$ac_objext
45630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45631 (eval $ac_compile) 2>conftest.er1
45632 ac_status=$?
45633 grep -v '^ *+' conftest.er1 >conftest.err
45634 rm -f conftest.er1
45635 cat conftest.err >&5
45636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45637 (exit $ac_status); } &&
6ebeb4c7 45638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
45639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45640 (eval $ac_try) 2>&5
45641 ac_status=$?
45642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45643 (exit $ac_status); }; } &&
45644 { ac_try='test -s conftest.$ac_objext'
45645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45646 (eval $ac_try) 2>&5
45647 ac_status=$?
45648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45649 (exit $ac_status); }; }; then
45650 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 45651 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
45652echo "${ECHO_T}yes" >&6
45653else
45654 echo "$as_me: failed program was:" >&5
45655sed 's/^/| /' conftest.$ac_ext >&5
bea8e651 45656
ddd14b14
RR
45657echo "$as_me:$LINENO: result: no" >&5
45658echo "${ECHO_T}no" >&6
45659fi
45660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
45661 fi
45662 ;;
45663 esac
45664
45665fi
45666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45667 fi
ddd14b14
RR
45668fi
45669CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
45670
45671
45672SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
45673
45674
45675
45676
45677
45678
45679
45680
45681
45682
45683
45684
45685
45686
45687
45688
45689
45690
45691
45692
45693
45694
45695
45696
45697
45698
45699
45700
45701
45702
45703
45704
45705
45706
45707
45708
45709
45710
45711
45712
45713
45714
a848cd7e
SC
45715
45716
45717
45718
45719
45720
45721
45722
45723
45724
45725
45726
45727
45728
45729
45730
45731
45732
ddd14b14 45733
a848cd7e
SC
45734
45735
45736echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45737echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45738set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45739if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45740 echo $ECHO_N "(cached) $ECHO_C" >&6
45741else
45742 cat >conftest.make <<\_ACEOF
45743all:
45744 @echo 'ac_maketemp="$(MAKE)"'
45745_ACEOF
45746# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45747eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45748if test -n "$ac_maketemp"; then
45749 eval ac_cv_prog_make_${ac_make}_set=yes
45750else
45751 eval ac_cv_prog_make_${ac_make}_set=no
45752fi
45753rm -f conftest.make
45754fi
45755if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45756 echo "$as_me:$LINENO: result: yes" >&5
45757echo "${ECHO_T}yes" >&6
45758 SET_MAKE=
45759else
45760 echo "$as_me:$LINENO: result: no" >&5
45761echo "${ECHO_T}no" >&6
45762 SET_MAKE="MAKE=${MAKE-make}"
45763fi
45764
45765
a848cd7e 45766
ceec2216
RL
45767 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
45768
a848cd7e 45769
ceec2216 45770 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 45771
a848cd7e 45772
ceec2216 45773 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 45774
ceec2216
RL
45775
45776 ac_config_files="$ac_config_files version-script Makefile"
45777
45778
45779 ac_config_commands="$ac_config_commands wx-config
45780 "
a848cd7e
SC
45781
45782
9103d280
RL
45783
45784
a848cd7e
SC
45785if test "$wxUSE_GUI" = "yes"; then
45786 SUBDIRS="samples demos utils contrib"
45787else SUBDIRS="samples utils"
45788fi
45789
45790
45791
45792# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
45793if test "${with_cppunit_prefix+set}" = set; then
45794 withval="$with_cppunit_prefix"
45795 cppunit_config_prefix="$withval"
45796else
45797 cppunit_config_prefix=""
45798fi;
45799
45800# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
45801if test "${with_cppunit_exec_prefix+set}" = set; then
45802 withval="$with_cppunit_exec_prefix"
45803 cppunit_config_exec_prefix="$withval"
45804else
45805 cppunit_config_exec_prefix=""
45806fi;
45807
45808 if test x$cppunit_config_exec_prefix != x ; then
45809 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
45810 if test x${CPPUNIT_CONFIG+set} != xset ; then
45811 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
45812 fi
45813 fi
45814 if test x$cppunit_config_prefix != x ; then
45815 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
45816 if test x${CPPUNIT_CONFIG+set} != xset ; then
45817 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
45818 fi
45819 fi
45820
45821 # Extract the first word of "cppunit-config", so it can be a program name with args.
45822set dummy cppunit-config; ac_word=$2
45823echo "$as_me:$LINENO: checking for $ac_word" >&5
45824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45825if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
45826 echo $ECHO_N "(cached) $ECHO_C" >&6
45827else
45828 case $CPPUNIT_CONFIG in
45829 [\\/]* | ?:[\\/]*)
45830 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
45831 ;;
45832 *)
45833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45834for as_dir in $PATH
45835do
45836 IFS=$as_save_IFS
45837 test -z "$as_dir" && as_dir=.
45838 for ac_exec_ext in '' $ac_executable_extensions; do
45839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45840 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45842 break 2
45843 fi
45844done
45845done
45846
45847 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
45848 ;;
45849esac
45850fi
45851CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
45852
45853if test -n "$CPPUNIT_CONFIG"; then
45854 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
45855echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
45856else
45857 echo "$as_me:$LINENO: result: no" >&5
45858echo "${ECHO_T}no" >&6
45859fi
45860
45861 cppunit_version_min=1.8.0
45862
45863 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
45864echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
45865 no_cppunit=""
45866 if test "$CPPUNIT_CONFIG" = "no" ; then
45867 no_cppunit=yes
45868 else
45869 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
45870 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
45871 cppunit_version=`$CPPUNIT_CONFIG --version`
45872
45873 cppunit_major_version=`echo $cppunit_version | \
45874 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45875 cppunit_minor_version=`echo $cppunit_version | \
45876 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45877 cppunit_micro_version=`echo $cppunit_version | \
45878 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45879
45880 cppunit_major_min=`echo $cppunit_version_min | \
45881 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45882 cppunit_minor_min=`echo $cppunit_version_min | \
45883 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45884 cppunit_micro_min=`echo $cppunit_version_min | \
45885 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45886
45887 cppunit_version_proper=`expr \
45888 $cppunit_major_version \> $cppunit_major_min \| \
45889 $cppunit_major_version \= $cppunit_major_min \& \
45890 $cppunit_minor_version \> $cppunit_minor_min \| \
45891 $cppunit_major_version \= $cppunit_major_min \& \
45892 $cppunit_minor_version \= $cppunit_minor_min \& \
45893 $cppunit_micro_version \>= $cppunit_micro_min `
45894
45895 if test "$cppunit_version_proper" = "1" ; then
45896 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
45897echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
45898 else
45899 echo "$as_me:$LINENO: result: no" >&5
45900echo "${ECHO_T}no" >&6
45901 no_cppunit=yes
45902 fi
45903 fi
45904
45905 if test "x$no_cppunit" = x ; then
c2218763 45906 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
45907 else
45908 CPPUNIT_CFLAGS=""
45909 CPPUNIT_LIBS=""
c2218763 45910 :
a848cd7e
SC
45911 fi
45912
45913
45914
45915
45916
45917for subdir in `echo $SUBDIRS`; do
45918 if test -d ${srcdir}/${subdir} ; then
45919 if test "$wxUSE_GUI" = "yes"; then
45920 if test ${subdir} = "samples"; then
45921 makefiles="samples/Makefile.in $makefiles"
45922 for sample in `echo $SAMPLES_SUBDIRS`; do
45923 if test -d $srcdir/samples/$sample; then
45924 makefiles="samples/$sample/Makefile.in $makefiles"
45925 fi
45926 done
9c112555
MW
45927 else
45928 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
45929 eval "disabled=\$$disabled_var"
45930 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
45931 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
45932 fi
45933 else if test ${subdir} = "samples"; then
45934 makefiles="samples/Makefile.in samples/console/Makefile.in"
45935 elif test ${subdir} = "utils"; then
6537ccf8
VS
45936 makefiles=""
45937 for util in HelpGen tex2rtf ; do
45938 if test -d $srcdir/utils/$util ; then
45939 makefiles="utils/$util/Makefile.in \
45940 utils/$util/src/Makefile.in \
45941 $makefiles"
45942 fi
45943 done
a848cd7e
SC
45944 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
45945 fi
45946 fi
45947
45948 for mkin in $makefiles ; do
45949 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
45950 ac_config_files="$ac_config_files $mk"
45951
45952 done
45953 fi
45954done
45955
45956
45957cat >confcache <<\_ACEOF
45958# This file is a shell script that caches the results of configure
45959# tests run on this system so they can be shared between configure
45960# scripts and configure runs, see configure's option --config-cache.
45961# It is not useful on other systems. If it contains results you don't
45962# want to keep, you may remove or edit it.
45963#
45964# config.status only pays attention to the cache file if you give it
45965# the --recheck option to rerun configure.
45966#
45967# `ac_cv_env_foo' variables (set or unset) will be overridden when
45968# loading this file, other *unset* `ac_cv_foo' will be assigned the
45969# following values.
45970
45971_ACEOF
45972
45973# The following way of writing the cache mishandles newlines in values,
45974# but we know of no workaround that is simple, portable, and efficient.
45975# So, don't put newlines in cache variables' values.
45976# Ultrix sh set writes to stderr and can't be redirected directly,
45977# and sets the high bit in the cache file unless we assign to the vars.
45978{
45979 (set) 2>&1 |
45980 case `(ac_space=' '; set | grep ac_space) 2>&1` in
45981 *ac_space=\ *)
45982 # `set' does not quote correctly, so add quotes (double-quote
45983 # substitution turns \\\\ into \\, and sed turns \\ into \).
45984 sed -n \
ac1cb8d3
VS
45985 "s/'/'\\\\''/g;
45986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
45987 ;;
45988 *)
45989 # `set' quotes correctly as required by POSIX, so do not add quotes.
45990 sed -n \
ac1cb8d3 45991 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
45992 ;;
45993 esac;
45994} |
45995 sed '
45996 t clear
45997 : clear
45998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45999 t end
46000 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46001 : end' >>confcache
46002if diff $cache_file confcache >/dev/null 2>&1; then :; else
46003 if test -w $cache_file; then
46004 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46005 cat confcache >$cache_file
46006 else
46007 echo "not updating unwritable cache $cache_file"
46008 fi
46009fi
46010rm -f confcache
46011
46012test "x$prefix" = xNONE && prefix=$ac_default_prefix
46013# Let make expand exec_prefix.
46014test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46015
46016# VPATH may cause trouble with some makes, so we remove $(srcdir),
46017# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46018# trailing colons and then remove the whole line if VPATH becomes empty
46019# (actually we leave an empty line to preserve line numbers).
46020if test "x$srcdir" = x.; then
ac1cb8d3 46021 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
46022s/:*\$(srcdir):*/:/;
46023s/:*\${srcdir}:*/:/;
46024s/:*@srcdir@:*/:/;
ac1cb8d3 46025s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 46026s/:*$//;
ac1cb8d3 46027s/^[^=]*=[ ]*$//;
a848cd7e
SC
46028}'
46029fi
46030
46031DEFS=-DHAVE_CONFIG_H
46032
46033ac_libobjs=
46034ac_ltlibobjs=
46035for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46036 # 1. Remove the extension, and $U if already installed.
46037 ac_i=`echo "$ac_i" |
ac1cb8d3 46038 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
46039 # 2. Add them.
46040 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46041 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46042done
46043LIBOBJS=$ac_libobjs
46044
46045LTLIBOBJS=$ac_ltlibobjs
46046
46047
46048
46049: ${CONFIG_STATUS=./config.status}
46050ac_clean_files_save=$ac_clean_files
46051ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46052{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46053echo "$as_me: creating $CONFIG_STATUS" >&6;}
46054cat >$CONFIG_STATUS <<_ACEOF
46055#! $SHELL
46056# Generated by $as_me.
46057# Run this file to recreate the current configuration.
46058# Compiler output produced by configure, useful for debugging
46059# configure, is in config.log if it exists.
46060
46061debug=false
46062ac_cs_recheck=false
46063ac_cs_silent=false
46064SHELL=\${CONFIG_SHELL-$SHELL}
46065_ACEOF
46066
46067cat >>$CONFIG_STATUS <<\_ACEOF
46068## --------------------- ##
46069## M4sh Initialization. ##
46070## --------------------- ##
46071
46072# Be Bourne compatible
46073if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46074 emulate sh
46075 NULLCMD=:
46076 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46077 # is contrary to our usage. Disable this feature.
46078 alias -g '${1+"$@"}'='"$@"'
46079elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46080 set -o posix
46081fi
ac1cb8d3 46082DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
46083
46084# Support unset when possible.
ac1cb8d3 46085if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
46086 as_unset=unset
46087else
46088 as_unset=false
46089fi
46090
46091
46092# Work around bugs in pre-3.0 UWIN ksh.
46093$as_unset ENV MAIL MAILPATH
46094PS1='$ '
46095PS2='> '
46096PS4='+ '
46097
46098# NLS nuisances.
46099for as_var in \
46100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46102 LC_TELEPHONE LC_TIME
46103do
ac1cb8d3 46104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
46105 eval $as_var=C; export $as_var
46106 else
46107 $as_unset $as_var
46108 fi
46109done
46110
46111# Required to use basename.
46112if expr a : '\(a\)' >/dev/null 2>&1; then
46113 as_expr=expr
46114else
46115 as_expr=false
46116fi
46117
46118if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46119 as_basename=basename
46120else
46121 as_basename=false
46122fi
46123
46124
46125# Name of the executable.
46126as_me=`$as_basename "$0" ||
46127$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46128 X"$0" : 'X\(//\)$' \| \
46129 X"$0" : 'X\(/\)$' \| \
46130 . : '\(.\)' 2>/dev/null ||
46131echo X/"$0" |
46132 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46133 /^X\/\(\/\/\)$/{ s//\1/; q; }
46134 /^X\/\(\/\).*/{ s//\1/; q; }
46135 s/.*/./; q'`
46136
46137
46138# PATH needs CR, and LINENO needs CR and PATH.
46139# Avoid depending upon Character Ranges.
46140as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46141as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46142as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46143as_cr_digits='0123456789'
46144as_cr_alnum=$as_cr_Letters$as_cr_digits
46145
46146# The user is always right.
46147if test "${PATH_SEPARATOR+set}" != set; then
46148 echo "#! /bin/sh" >conf$$.sh
46149 echo "exit 0" >>conf$$.sh
46150 chmod +x conf$$.sh
46151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46152 PATH_SEPARATOR=';'
46153 else
46154 PATH_SEPARATOR=:
46155 fi
46156 rm -f conf$$.sh
46157fi
46158
46159
46160 as_lineno_1=$LINENO
46161 as_lineno_2=$LINENO
46162 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46163 test "x$as_lineno_1" != "x$as_lineno_2" &&
46164 test "x$as_lineno_3" = "x$as_lineno_2" || {
46165 # Find who we are. Look in the path if we contain no path at all
46166 # relative or not.
46167 case $0 in
46168 *[\\/]* ) as_myself=$0 ;;
46169 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46170for as_dir in $PATH
46171do
46172 IFS=$as_save_IFS
46173 test -z "$as_dir" && as_dir=.
46174 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46175done
46176
46177 ;;
46178 esac
46179 # We did not find ourselves, most probably we were run as `sh COMMAND'
46180 # in which case we are not to be found in the path.
46181 if test "x$as_myself" = x; then
46182 as_myself=$0
46183 fi
46184 if test ! -f "$as_myself"; then
46185 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46186echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46187 { (exit 1); exit 1; }; }
46188 fi
46189 case $CONFIG_SHELL in
46190 '')
46191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46192for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46193do
46194 IFS=$as_save_IFS
46195 test -z "$as_dir" && as_dir=.
46196 for as_base in sh bash ksh sh5; do
46197 case $as_dir in
46198 /*)
46199 if ("$as_dir/$as_base" -c '
46200 as_lineno_1=$LINENO
46201 as_lineno_2=$LINENO
46202 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46203 test "x$as_lineno_1" != "x$as_lineno_2" &&
46204 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46205 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46206 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46207 CONFIG_SHELL=$as_dir/$as_base
46208 export CONFIG_SHELL
46209 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46210 fi;;
46211 esac
46212 done
46213done
46214;;
46215 esac
46216
46217 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46218 # uniformly replaced by the line number. The first 'sed' inserts a
46219 # line-number line before each line; the second 'sed' does the real
46220 # work. The second script uses 'N' to pair each line-number line
46221 # with the numbered line, and appends trailing '-' during
46222 # substitution so that $LINENO is not a special case at line end.
46223 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46224 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46225 sed '=' <$as_myself |
46226 sed '
46227 N
46228 s,$,-,
46229 : loop
46230 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46231 t loop
46232 s,-$,,
46233 s,^['$as_cr_digits']*\n,,
46234 ' >$as_me.lineno &&
46235 chmod +x $as_me.lineno ||
46236 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46237echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46238 { (exit 1); exit 1; }; }
46239
46240 # Don't try to exec as it changes $[0], causing all sort of problems
46241 # (the dirname of $[0] is not the place where we might find the
46242 # original and so on. Autoconf is especially sensible to this).
46243 . ./$as_me.lineno
46244 # Exit status is that of the last command.
46245 exit
46246}
46247
46248
46249case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46250 *c*,-n*) ECHO_N= ECHO_C='
46251' ECHO_T=' ' ;;
46252 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46253 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46254esac
46255
46256if expr a : '\(a\)' >/dev/null 2>&1; then
46257 as_expr=expr
46258else
46259 as_expr=false
46260fi
46261
46262rm -f conf$$ conf$$.exe conf$$.file
46263echo >conf$$.file
46264if ln -s conf$$.file conf$$ 2>/dev/null; then
46265 # We could just check for DJGPP; but this test a) works b) is more generic
46266 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46267 if test -f conf$$.exe; then
46268 # Don't use ln at all; we don't have any links
46269 as_ln_s='cp -p'
46270 else
46271 as_ln_s='ln -s'
46272 fi
46273elif ln conf$$.file conf$$ 2>/dev/null; then
46274 as_ln_s=ln
46275else
46276 as_ln_s='cp -p'
46277fi
46278rm -f conf$$ conf$$.exe conf$$.file
46279
46280if mkdir -p . 2>/dev/null; then
46281 as_mkdir_p=:
46282else
ac1cb8d3 46283 test -d ./-p && rmdir ./-p
a848cd7e
SC
46284 as_mkdir_p=false
46285fi
46286
46287as_executable_p="test -f"
46288
46289# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 46290as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46291
46292# Sed expression to map a string onto a valid variable name.
ac1cb8d3 46293as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46294
46295
46296# IFS
46297# We need space, tab and new line, in precisely that order.
46298as_nl='
46299'
46300IFS=" $as_nl"
46301
46302# CDPATH.
46303$as_unset CDPATH
46304
46305exec 6>&1
46306
46307# Open the log real soon, to keep \$[0] and so on meaningful, and to
46308# report actual input values of CONFIG_FILES etc. instead of their
46309# values after options handling. Logging --version etc. is OK.
46310exec 5>>config.log
46311{
46312 echo
46313 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46314## Running $as_me. ##
46315_ASBOX
46316} >&5
46317cat >&5 <<_CSEOF
46318
eb730a0c 46319This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 46320generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
46321
46322 CONFIG_FILES = $CONFIG_FILES
46323 CONFIG_HEADERS = $CONFIG_HEADERS
46324 CONFIG_LINKS = $CONFIG_LINKS
46325 CONFIG_COMMANDS = $CONFIG_COMMANDS
46326 $ $0 $@
46327
46328_CSEOF
46329echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
46330echo >&5
46331_ACEOF
46332
46333# Files that config.status was made for.
46334if test -n "$ac_config_files"; then
46335 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
46336fi
46337
46338if test -n "$ac_config_headers"; then
46339 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
46340fi
46341
46342if test -n "$ac_config_links"; then
46343 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
46344fi
46345
46346if test -n "$ac_config_commands"; then
46347 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
46348fi
46349
46350cat >>$CONFIG_STATUS <<\_ACEOF
46351
46352ac_cs_usage="\
46353\`$as_me' instantiates files from templates according to the
46354current configuration.
46355
46356Usage: $0 [OPTIONS] [FILE]...
46357
46358 -h, --help print this help, then exit
46359 -V, --version print version number, then exit
46360 -q, --quiet do not print progress messages
46361 -d, --debug don't remove temporary files
46362 --recheck update $as_me by reconfiguring in the same conditions
46363 --file=FILE[:TEMPLATE]
ac1cb8d3 46364 instantiate the configuration file FILE
a848cd7e 46365 --header=FILE[:TEMPLATE]
ac1cb8d3 46366 instantiate the configuration header FILE
a848cd7e
SC
46367
46368Configuration files:
46369$config_files
46370
46371Configuration headers:
46372$config_headers
46373
46374Configuration commands:
46375$config_commands
46376
46377Report bugs to <bug-autoconf@gnu.org>."
46378_ACEOF
46379
46380cat >>$CONFIG_STATUS <<_ACEOF
46381ac_cs_version="\\
eb730a0c 46382wxWidgets config.status 2.6.2
ac1cb8d3 46383configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
46384 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
46385
ac1cb8d3 46386Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
46387This config.status script is free software; the Free Software Foundation
46388gives unlimited permission to copy, distribute and modify it."
46389srcdir=$srcdir
46390INSTALL="$INSTALL"
46391_ACEOF
46392
46393cat >>$CONFIG_STATUS <<\_ACEOF
46394# If no file are specified by the user, then we need to provide default
46395# value. By we need to know if files were specified by the user.
46396ac_need_defaults=:
46397while test $# != 0
46398do
46399 case $1 in
46400 --*=*)
46401 ac_option=`expr "x$1" : 'x\([^=]*\)='`
46402 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
46403 ac_shift=:
46404 ;;
46405 -*)
46406 ac_option=$1
46407 ac_optarg=$2
46408 ac_shift=shift
46409 ;;
46410 *) # This is not an option, so the user has probably given explicit
46411 # arguments.
46412 ac_option=$1
46413 ac_need_defaults=false;;
46414 esac
46415
46416 case $ac_option in
46417 # Handling of the options.
46418_ACEOF
46419cat >>$CONFIG_STATUS <<\_ACEOF
46420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46421 ac_cs_recheck=: ;;
46422 --version | --vers* | -V )
46423 echo "$ac_cs_version"; exit 0 ;;
46424 --he | --h)
46425 # Conflict between --help and --header
46426 { { echo "$as_me:$LINENO: error: ambiguous option: $1
46427Try \`$0 --help' for more information." >&5
46428echo "$as_me: error: ambiguous option: $1
46429Try \`$0 --help' for more information." >&2;}
46430 { (exit 1); exit 1; }; };;
46431 --help | --hel | -h )
46432 echo "$ac_cs_usage"; exit 0 ;;
46433 --debug | --d* | -d )
46434 debug=: ;;
46435 --file | --fil | --fi | --f )
46436 $ac_shift
46437 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
46438 ac_need_defaults=false;;
46439 --header | --heade | --head | --hea )
46440 $ac_shift
46441 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
46442 ac_need_defaults=false;;
46443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46444 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46445 ac_cs_silent=: ;;
46446
46447 # This is an error.
46448 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
46449Try \`$0 --help' for more information." >&5
46450echo "$as_me: error: unrecognized option: $1
46451Try \`$0 --help' for more information." >&2;}
46452 { (exit 1); exit 1; }; } ;;
46453
46454 *) ac_config_targets="$ac_config_targets $1" ;;
46455
46456 esac
46457 shift
46458done
46459
46460ac_configure_extra_args=
46461
46462if $ac_cs_silent; then
46463 exec 6>/dev/null
46464 ac_configure_extra_args="$ac_configure_extra_args --silent"
46465fi
46466
46467_ACEOF
46468cat >>$CONFIG_STATUS <<_ACEOF
46469if \$ac_cs_recheck; then
46470 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
46471 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46472fi
46473
46474_ACEOF
46475
46476cat >>$CONFIG_STATUS <<_ACEOF
46477#
46478# INIT-COMMANDS section.
46479#
46480
ceec2216
RL
46481 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46482 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46483 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46484 LN_S="${LN_S}"
a848cd7e
SC
46485
46486
46487_ACEOF
46488
46489
46490
46491cat >>$CONFIG_STATUS <<\_ACEOF
46492for ac_config_target in $ac_config_targets
46493do
46494 case "$ac_config_target" in
46495 # Handling of arguments.
ceec2216
RL
46496 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
46497 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
46498 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
46499 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46500 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
46501 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
46502 "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
46503 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46504echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46505 { (exit 1); exit 1; }; };;
46506 esac
46507done
46508
46509# If the user did not use the arguments to specify the items to instantiate,
46510# then the envvar interface is used. Set only those that are not.
46511# We use the long form for the default assignment because of an extremely
46512# bizarre bug on SunOS 4.1.3.
46513if $ac_need_defaults; then
46514 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46515 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46516 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46517fi
46518
46519# Have a temporary directory for convenience. Make it in the build tree
46520# simply because there is no reason to put it here, and in addition,
46521# creating and moving files from /tmp can sometimes cause problems.
46522# Create a temporary directory, and hook for its removal unless debugging.
46523$debug ||
46524{
46525 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
46526 trap '{ (exit 1); exit 1; }' 1 2 13 15
46527}
46528
46529# Create a (secure) tmp directory for tmp files.
46530
46531{
46532 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
46533 test -n "$tmp" && test -d "$tmp"
46534} ||
46535{
46536 tmp=./confstat$$-$RANDOM
46537 (umask 077 && mkdir $tmp)
46538} ||
46539{
46540 echo "$me: cannot create a temporary directory in ." >&2
46541 { (exit 1); exit 1; }
46542}
46543
46544_ACEOF
46545
46546cat >>$CONFIG_STATUS <<_ACEOF
46547
46548#
46549# CONFIG_FILES section.
46550#
46551
46552# No need to generate the scripts if there are no CONFIG_FILES.
46553# This happens for instance when ./config.status config.h
46554if test -n "\$CONFIG_FILES"; then
46555 # Protect against being on the right side of a sed subst in config.status.
46556 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
46557 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
46558s,@SHELL@,$SHELL,;t t
46559s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
46560s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
46561s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
46562s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
46563s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
46564s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
46565s,@exec_prefix@,$exec_prefix,;t t
46566s,@prefix@,$prefix,;t t
46567s,@program_transform_name@,$program_transform_name,;t t
46568s,@bindir@,$bindir,;t t
46569s,@sbindir@,$sbindir,;t t
46570s,@libexecdir@,$libexecdir,;t t
46571s,@datadir@,$datadir,;t t
46572s,@sysconfdir@,$sysconfdir,;t t
46573s,@sharedstatedir@,$sharedstatedir,;t t
46574s,@localstatedir@,$localstatedir,;t t
46575s,@libdir@,$libdir,;t t
46576s,@includedir@,$includedir,;t t
46577s,@oldincludedir@,$oldincludedir,;t t
46578s,@infodir@,$infodir,;t t
46579s,@mandir@,$mandir,;t t
46580s,@build_alias@,$build_alias,;t t
46581s,@host_alias@,$host_alias,;t t
46582s,@target_alias@,$target_alias,;t t
46583s,@DEFS@,$DEFS,;t t
46584s,@ECHO_C@,$ECHO_C,;t t
46585s,@ECHO_N@,$ECHO_N,;t t
46586s,@ECHO_T@,$ECHO_T,;t t
46587s,@LIBS@,$LIBS,;t t
46588s,@build@,$build,;t t
46589s,@build_cpu@,$build_cpu,;t t
46590s,@build_vendor@,$build_vendor,;t t
46591s,@build_os@,$build_os,;t t
46592s,@host@,$host,;t t
46593s,@host_cpu@,$host_cpu,;t t
46594s,@host_vendor@,$host_vendor,;t t
46595s,@host_os@,$host_os,;t t
46596s,@target@,$target,;t t
46597s,@target_cpu@,$target_cpu,;t t
46598s,@target_vendor@,$target_vendor,;t t
46599s,@target_os@,$target_os,;t t
46600s,@CC@,$CC,;t t
46601s,@CFLAGS@,$CFLAGS,;t t
46602s,@LDFLAGS@,$LDFLAGS,;t t
46603s,@CPPFLAGS@,$CPPFLAGS,;t t
46604s,@ac_ct_CC@,$ac_ct_CC,;t t
46605s,@EXEEXT@,$EXEEXT,;t t
46606s,@OBJEXT@,$OBJEXT,;t t
46607s,@CPP@,$CPP,;t t
46608s,@EGREP@,$EGREP,;t t
46609s,@CXX@,$CXX,;t t
46610s,@CXXFLAGS@,$CXXFLAGS,;t t
46611s,@ac_ct_CXX@,$ac_ct_CXX,;t t
46612s,@RANLIB@,$RANLIB,;t t
46613s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
46614s,@AR@,$AR,;t t
8c80d384 46615s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
46616s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
46617s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
46618s,@INSTALL_DATA@,$INSTALL_DATA,;t t
46619s,@STRIP@,$STRIP,;t t
8c80d384
DE
46620s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
46621s,@RESCOMP@,$RESCOMP,;t t
46622s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
46623s,@DLLTOOL@,$DLLTOOL,;t t
46624s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
46625s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
46626s,@LN_S@,$LN_S,;t t
46627s,@CXXCPP@,$CXXCPP,;t t
46628s,@subdirs@,$subdirs,;t t
46629s,@PKG_CONFIG@,$PKG_CONFIG,;t t
46630s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
46631s,@GTK_LIBS@,$GTK_LIBS,;t t
46632s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
46633s,@X_CFLAGS@,$X_CFLAGS,;t t
46634s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
46635s,@X_LIBS@,$X_LIBS,;t t
46636s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
46637s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
46638s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
46639s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
46640s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
46641s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
46642s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
46643s,@DEREZ@,$DEREZ,;t t
46644s,@SETFILE@,$SETFILE,;t t
46645s,@LIBICONV@,$LIBICONV,;t t
46646s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
46647s,@SDL_CONFIG@,$SDL_CONFIG,;t t
46648s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
46649s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
46650s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
46651s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
46652s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
46653s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
46654s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
46655s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
46656s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
46657s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
46658s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
46659s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
46660s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
46661s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
46662s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
46663s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
46664s,@VENDOR@,$VENDOR,;t t
46665s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
46666s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
46667s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
46668s,@WXUNIV@,$WXUNIV,;t t
46669s,@MONOLITHIC@,$MONOLITHIC,;t t
46670s,@USE_PLUGINS@,$USE_PLUGINS,;t t
46671s,@EXTRALIBS@,$EXTRALIBS,;t t
46672s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
46673s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
46674s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
46675s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
46676s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
46677s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
46678s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 46679s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
46680s,@UNICODE@,$UNICODE,;t t
46681s,@BUILD@,$BUILD,;t t
46682s,@DEBUG_INFO@,$DEBUG_INFO,;t t
46683s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
46684s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
46685s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
46686s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
46687s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
46688s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
46689s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
46690s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
46691s,@SET_MAKE@,$SET_MAKE,;t t
46692s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
46693s,@NM@,$NM,;t t
46694s,@ac_ct_NM@,$ac_ct_NM,;t t
46695s,@INSTALL_DIR@,$INSTALL_DIR,;t t
46696s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
46697s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
46698s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
46699s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
46700s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 46701s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
46702s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
46703s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 46704s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
46705s,@SO_SUFFIX@,$SO_SUFFIX,;t t
46706s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
46707s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
46708s,@LIBPREFIX@,$LIBPREFIX,;t t
46709s,@LIBEXT@,$LIBEXT,;t t
46710s,@DLLPREFIX@,$DLLPREFIX,;t t
46711s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 46712s,@dlldir@,$dlldir,;t t
a848cd7e
SC
46713s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
46714s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
46715s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
46716s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
46717s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
46718s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 46719s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
46720s,@USE_SOVERSION@,$USE_SOVERSION,;t t
46721s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
46722s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 46723s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
46724s,@USE_MACVERSION@,$USE_MACVERSION,;t t
46725s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
46726s,@SONAME_FLAG@,$SONAME_FLAG,;t t
46727s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
46728s,@GCC_PCH@,$GCC_PCH,;t t
46729s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
46730s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
46731s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
46732s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
46733s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
46734s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
46735s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
46736s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
46737s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
46738s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
46739s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
46740s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
46741s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
46742s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
46743s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
46744s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
46745s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
46746s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 46747s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 46748s,@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 46749s,@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 46750s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 46751s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46752s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
46753s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 46754s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 46755s,@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 46756s,@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 46757s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 46758s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
46759s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
46760s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
46761s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
46762s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
46763s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
46764s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 46765s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
46766s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
46767s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 46768s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
46769s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
46770s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
46771s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 46772s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 46773s,@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
46774s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
46775s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
46776s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
46777s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 46778s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 46779s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 46780s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
46781s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
46782s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
46783s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
46784s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
46785s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
46786s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
46787s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
46788s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
46789s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
46790s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
46791s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
46792s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
46793s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46794s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46795s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 46796s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46797s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
46798s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
46799s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
46800s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
46801s,@COND_SHARED_1@,$COND_SHARED_1,;t t
46802s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 46803s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 46804s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 46805s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 46806s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
46807s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
46808s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
46809s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
46810s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
46811s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
46812s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
46813s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
46814s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
46815s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
46816s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
46817s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
46818s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
46819s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
46820s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
46821s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
46822s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
46823s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
46824s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
46825s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
46826s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
46827s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
46828s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
46829s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
46830s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
46831s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
46832s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
46833s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
46834s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
46835s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
46836s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
46837s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46838s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46839s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
46840s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
46841s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 46842s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
46843s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
46844s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 46845s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 46846s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
46847s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
46848s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
46849s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
46850s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
46851s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 46852s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 46853s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 46854s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 46855s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
46856s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
46857s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
46858s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
46859s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
46860s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
46861s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
46862s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
46863s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 46864s,@SHARED@,$SHARED,;t t
a848cd7e
SC
46865s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
46866s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
46867s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
46868s,@USE_GUI@,$USE_GUI,;t t
46869s,@AFMINSTALL@,$AFMINSTALL,;t t
46870s,@WIN32INSTALL@,$WIN32INSTALL,;t t
46871s,@TOOLKIT@,$TOOLKIT,;t t
46872s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 46873s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 46874s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
46875s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
46876s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 46877s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
46878s,@WIDGET_SET@,$WIDGET_SET,;t t
46879s,@WX_RELEASE@,$WX_RELEASE,;t t
46880s,@WX_VERSION@,$WX_VERSION,;t t
46881s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
46882s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
46883s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 46884s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
46885s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
46886s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
46887s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
46888s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 46889s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
46890s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
46891s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 46892s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 46893s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
46894s,@DISTDIR@,$DISTDIR,;t t
46895s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
46896s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
46897s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
46898s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
46899s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
46900s,@RESFLAGS@,$RESFLAGS,;t t
46901s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
46902s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
46903s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
46904s,@LIBWXMACRES@,$LIBWXMACRES,;t t
46905s,@MACRESCOMP@,$MACRESCOMP,;t t
46906s,@MACSETFILE@,$MACSETFILE,;t t
46907s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
46908s,@GCC@,$GCC,;t t
a848cd7e
SC
46909s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
46910s,@LIBOBJS@,$LIBOBJS,;t t
46911s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46912CEOF
46913
46914_ACEOF
46915
46916 cat >>$CONFIG_STATUS <<\_ACEOF
46917 # Split the substitutions into bite-sized pieces for seds with
46918 # small command number limits, like on Digital OSF/1 and HP-UX.
46919 ac_max_sed_lines=48
46920 ac_sed_frag=1 # Number of current file.
46921 ac_beg=1 # First line for current file.
46922 ac_end=$ac_max_sed_lines # Line after last line for current file.
46923 ac_more_lines=:
46924 ac_sed_cmds=
46925 while $ac_more_lines; do
46926 if test $ac_beg -gt 1; then
46927 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46928 else
46929 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46930 fi
46931 if test ! -s $tmp/subs.frag; then
46932 ac_more_lines=false
46933 else
46934 # The purpose of the label and of the branching condition is to
46935 # speed up the sed processing (if there are no `@' at all, there
46936 # is no need to browse any of the substitutions).
46937 # These are the two extra sed commands mentioned above.
46938 (echo ':t
46939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46940 if test -z "$ac_sed_cmds"; then
ac1cb8d3 46941 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 46942 else
ac1cb8d3 46943 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
46944 fi
46945 ac_sed_frag=`expr $ac_sed_frag + 1`
46946 ac_beg=$ac_end
46947 ac_end=`expr $ac_end + $ac_max_sed_lines`
46948 fi
46949 done
46950 if test -z "$ac_sed_cmds"; then
46951 ac_sed_cmds=cat
46952 fi
46953fi # test -n "$CONFIG_FILES"
46954
46955_ACEOF
46956cat >>$CONFIG_STATUS <<\_ACEOF
46957for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46959 case $ac_file in
46960 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46961 cat >$tmp/stdin
46962 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46963 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46964 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46966 * ) ac_file_in=$ac_file.in ;;
46967 esac
46968
46969 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46970 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46971$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46972 X"$ac_file" : 'X\(//\)[^/]' \| \
46973 X"$ac_file" : 'X\(//\)$' \| \
46974 X"$ac_file" : 'X\(/\)' \| \
46975 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46976echo X"$ac_file" |
46977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46979 /^X\(\/\/\)$/{ s//\1/; q; }
46980 /^X\(\/\).*/{ s//\1/; q; }
46981 s/.*/./; q'`
46982 { if $as_mkdir_p; then
46983 mkdir -p "$ac_dir"
46984 else
46985 as_dir="$ac_dir"
46986 as_dirs=
46987 while test ! -d "$as_dir"; do
46988 as_dirs="$as_dir $as_dirs"
46989 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46990$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46991 X"$as_dir" : 'X\(//\)[^/]' \| \
46992 X"$as_dir" : 'X\(//\)$' \| \
46993 X"$as_dir" : 'X\(/\)' \| \
46994 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46995echo X"$as_dir" |
46996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46997 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46998 /^X\(\/\/\)$/{ s//\1/; q; }
46999 /^X\(\/\).*/{ s//\1/; q; }
47000 s/.*/./; q'`
47001 done
47002 test ! -n "$as_dirs" || mkdir $as_dirs
47003 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47004echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47005 { (exit 1); exit 1; }; }; }
47006
47007 ac_builddir=.
47008
47009if test "$ac_dir" != .; then
47010 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47011 # A "../" for each directory in $ac_dir_suffix.
47012 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47013else
47014 ac_dir_suffix= ac_top_builddir=
47015fi
47016
47017case $srcdir in
47018 .) # No --srcdir option. We are building in place.
47019 ac_srcdir=.
47020 if test -z "$ac_top_builddir"; then
47021 ac_top_srcdir=.
47022 else
47023 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47024 fi ;;
47025 [\\/]* | ?:[\\/]* ) # Absolute path.
47026 ac_srcdir=$srcdir$ac_dir_suffix;
47027 ac_top_srcdir=$srcdir ;;
47028 *) # Relative path.
47029 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47030 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47031esac
ac1cb8d3
VS
47032
47033# Do not use `cd foo && pwd` to compute absolute paths, because
47034# the directories may not exist.
47035case `pwd` in
47036.) ac_abs_builddir="$ac_dir";;
47037*)
47038 case "$ac_dir" in
47039 .) ac_abs_builddir=`pwd`;;
47040 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47041 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47042 esac;;
47043esac
47044case $ac_abs_builddir in
47045.) ac_abs_top_builddir=${ac_top_builddir}.;;
47046*)
47047 case ${ac_top_builddir}. in
47048 .) ac_abs_top_builddir=$ac_abs_builddir;;
47049 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47050 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47051 esac;;
47052esac
47053case $ac_abs_builddir in
47054.) ac_abs_srcdir=$ac_srcdir;;
47055*)
47056 case $ac_srcdir in
47057 .) ac_abs_srcdir=$ac_abs_builddir;;
47058 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47059 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47060 esac;;
47061esac
47062case $ac_abs_builddir in
47063.) ac_abs_top_srcdir=$ac_top_srcdir;;
47064*)
47065 case $ac_top_srcdir in
47066 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47067 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47068 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47069 esac;;
47070esac
a848cd7e
SC
47071
47072
47073 case $INSTALL in
47074 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47075 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47076 esac
47077
a848cd7e
SC
47078 # Let's still pretend it is `configure' which instantiates (i.e., don't
47079 # use $as_me), people would be surprised to read:
47080 # /* config.h. Generated by config.status. */
47081 if test x"$ac_file" = x-; then
47082 configure_input=
47083 else
47084 configure_input="$ac_file. "
47085 fi
47086 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 47087 sed 's,.*/,,'` by configure."
a848cd7e
SC
47088
47089 # First look for the input files in the build tree, otherwise in the
47090 # src tree.
47091 ac_file_inputs=`IFS=:
47092 for f in $ac_file_in; do
47093 case $f in
47094 -) echo $tmp/stdin ;;
47095 [\\/$]*)
ac1cb8d3
VS
47096 # Absolute (can't be DOS-style, as IFS=:)
47097 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47098echo "$as_me: error: cannot find input file: $f" >&2;}
47099 { (exit 1); exit 1; }; }
ac1cb8d3 47100 echo "$f";;
a848cd7e 47101 *) # Relative
ac1cb8d3
VS
47102 if test -f "$f"; then
47103 # Build tree
47104 echo "$f"
47105 elif test -f "$srcdir/$f"; then
47106 # Source tree
47107 echo "$srcdir/$f"
47108 else
47109 # /dev/null tree
47110 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47111echo "$as_me: error: cannot find input file: $f" >&2;}
47112 { (exit 1); exit 1; }; }
ac1cb8d3 47113 fi;;
a848cd7e
SC
47114 esac
47115 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
47116
47117 if test x"$ac_file" != x-; then
47118 { echo "$as_me:$LINENO: creating $ac_file" >&5
47119echo "$as_me: creating $ac_file" >&6;}
47120 rm -f "$ac_file"
47121 fi
a848cd7e
SC
47122_ACEOF
47123cat >>$CONFIG_STATUS <<_ACEOF
47124 sed "$ac_vpsub
47125$extrasub
47126_ACEOF
47127cat >>$CONFIG_STATUS <<\_ACEOF
47128:t
47129/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47130s,@configure_input@,$configure_input,;t t
47131s,@srcdir@,$ac_srcdir,;t t
47132s,@abs_srcdir@,$ac_abs_srcdir,;t t
47133s,@top_srcdir@,$ac_top_srcdir,;t t
47134s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47135s,@builddir@,$ac_builddir,;t t
47136s,@abs_builddir@,$ac_abs_builddir,;t t
47137s,@top_builddir@,$ac_top_builddir,;t t
47138s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47139s,@INSTALL@,$ac_INSTALL,;t t
47140" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47141 rm -f $tmp/stdin
47142 if test x"$ac_file" != x-; then
47143 mv $tmp/out $ac_file
47144 else
47145 cat $tmp/out
47146 rm -f $tmp/out
47147 fi
47148
ceec2216
RL
47149 # Run the commands associated with the file.
47150 case $ac_file in
47151 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
47152 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
47153 esac
a848cd7e
SC
47154done
47155_ACEOF
47156cat >>$CONFIG_STATUS <<\_ACEOF
47157
47158#
47159# CONFIG_HEADER section.
47160#
47161
47162# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47163# NAME is the cpp macro being defined and VALUE is the value it is being given.
47164#
47165# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
47166ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47167ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
47168ac_dC=' '
47169ac_dD=',;t'
47170# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 47171ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
47172ac_uB='$,\1#\2define\3'
47173ac_uC=' '
47174ac_uD=',;t'
47175
47176for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47177 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47178 case $ac_file in
47179 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47180 cat >$tmp/stdin
47181 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47183 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47184 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47185 * ) ac_file_in=$ac_file.in ;;
47186 esac
47187
47188 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47189echo "$as_me: creating $ac_file" >&6;}
47190
47191 # First look for the input files in the build tree, otherwise in the
47192 # src tree.
47193 ac_file_inputs=`IFS=:
47194 for f in $ac_file_in; do
47195 case $f in
47196 -) echo $tmp/stdin ;;
47197 [\\/$]*)
ac1cb8d3
VS
47198 # Absolute (can't be DOS-style, as IFS=:)
47199 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47200echo "$as_me: error: cannot find input file: $f" >&2;}
47201 { (exit 1); exit 1; }; }
ac1cb8d3
VS
47202 # Do quote $f, to prevent DOS paths from being IFS'd.
47203 echo "$f";;
a848cd7e 47204 *) # Relative
ac1cb8d3
VS
47205 if test -f "$f"; then
47206 # Build tree
47207 echo "$f"
47208 elif test -f "$srcdir/$f"; then
47209 # Source tree
47210 echo "$srcdir/$f"
47211 else
47212 # /dev/null tree
47213 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47214echo "$as_me: error: cannot find input file: $f" >&2;}
47215 { (exit 1); exit 1; }; }
ac1cb8d3 47216 fi;;
a848cd7e
SC
47217 esac
47218 done` || { (exit 1); exit 1; }
47219 # Remove the trailing spaces.
ac1cb8d3 47220 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
47221
47222_ACEOF
47223
47224# Transform confdefs.h into two sed scripts, `conftest.defines' and
47225# `conftest.undefs', that substitutes the proper values into
47226# config.h.in to produce config.h. The first handles `#define'
47227# templates, and the second `#undef' templates.
47228# And first: Protect against being on the right side of a sed subst in
47229# config.status. Protect against being in an unquoted here document
47230# in config.status.
47231rm -f conftest.defines conftest.undefs
47232# Using a here document instead of a string reduces the quoting nightmare.
47233# Putting comments in sed scripts is not portable.
47234#
47235# `end' is used to avoid that the second main sed command (meant for
47236# 0-ary CPP macros) applies to n-ary macro definitions.
47237# See the Autoconf documentation for `clear'.
47238cat >confdef2sed.sed <<\_ACEOF
47239s/[\\&,]/\\&/g
47240s,[\\$`],\\&,g
47241t clear
47242: clear
ac1cb8d3 47243s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 47244t end
ac1cb8d3 47245s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
47246: end
47247_ACEOF
47248# If some macros were called several times there might be several times
47249# the same #defines, which is useless. Nevertheless, we may not want to
47250# sort them, since we want the *last* AC-DEFINE to be honored.
47251uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47252sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47253rm -f confdef2sed.sed
47254
47255# This sed command replaces #undef with comments. This is necessary, for
47256# example, in the case of _POSIX_SOURCE, which is predefined and required
47257# on some systems where configure will not decide to define it.
47258cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 47259s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
47260_ACEOF
47261
47262# Break up conftest.defines because some shells have a limit on the size
47263# of here documents, and old seds have small limits too (100 cmds).
47264echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 47265echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
47266echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47267echo ' :' >>$CONFIG_STATUS
47268rm -f conftest.tail
47269while grep . conftest.defines >/dev/null
47270do
47271 # Write a limited-size here document to $tmp/defines.sed.
47272 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47273 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 47274 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
47275 # Work around the forget-to-reset-the-flag bug.
47276 echo 't clr' >>$CONFIG_STATUS
47277 echo ': clr' >>$CONFIG_STATUS
47278 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47279 echo 'CEOF
47280 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47281 rm -f $tmp/in
47282 mv $tmp/out $tmp/in
47283' >>$CONFIG_STATUS
47284 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47285 rm -f conftest.defines
47286 mv conftest.tail conftest.defines
47287done
47288rm -f conftest.defines
47289echo ' fi # grep' >>$CONFIG_STATUS
47290echo >>$CONFIG_STATUS
47291
47292# Break up conftest.undefs because some shells have a limit on the size
47293# of here documents, and old seds have small limits too (100 cmds).
47294echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47295rm -f conftest.tail
47296while grep . conftest.undefs >/dev/null
47297do
47298 # Write a limited-size here document to $tmp/undefs.sed.
47299 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47300 # Speed up: don't consider the non `#undef'
ac1cb8d3 47301 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
47302 # Work around the forget-to-reset-the-flag bug.
47303 echo 't clr' >>$CONFIG_STATUS
47304 echo ': clr' >>$CONFIG_STATUS
47305 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47306 echo 'CEOF
47307 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47308 rm -f $tmp/in
47309 mv $tmp/out $tmp/in
47310' >>$CONFIG_STATUS
47311 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47312 rm -f conftest.undefs
47313 mv conftest.tail conftest.undefs
47314done
47315rm -f conftest.undefs
47316
47317cat >>$CONFIG_STATUS <<\_ACEOF
47318 # Let's still pretend it is `configure' which instantiates (i.e., don't
47319 # use $as_me), people would be surprised to read:
47320 # /* config.h. Generated by config.status. */
47321 if test x"$ac_file" = x-; then
47322 echo "/* Generated by configure. */" >$tmp/config.h
47323 else
47324 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
47325 fi
47326 cat $tmp/in >>$tmp/config.h
47327 rm -f $tmp/in
47328 if test x"$ac_file" != x-; then
47329 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47330 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47331echo "$as_me: $ac_file is unchanged" >&6;}
47332 else
47333 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47334$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47335 X"$ac_file" : 'X\(//\)[^/]' \| \
47336 X"$ac_file" : 'X\(//\)$' \| \
47337 X"$ac_file" : 'X\(/\)' \| \
47338 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47339echo X"$ac_file" |
47340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47342 /^X\(\/\/\)$/{ s//\1/; q; }
47343 /^X\(\/\).*/{ s//\1/; q; }
47344 s/.*/./; q'`
47345 { if $as_mkdir_p; then
47346 mkdir -p "$ac_dir"
47347 else
47348 as_dir="$ac_dir"
47349 as_dirs=
47350 while test ! -d "$as_dir"; do
47351 as_dirs="$as_dir $as_dirs"
47352 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47353$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47354 X"$as_dir" : 'X\(//\)[^/]' \| \
47355 X"$as_dir" : 'X\(//\)$' \| \
47356 X"$as_dir" : 'X\(/\)' \| \
47357 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47358echo X"$as_dir" |
47359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47361 /^X\(\/\/\)$/{ s//\1/; q; }
47362 /^X\(\/\).*/{ s//\1/; q; }
47363 s/.*/./; q'`
47364 done
47365 test ! -n "$as_dirs" || mkdir $as_dirs
47366 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47367echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47368 { (exit 1); exit 1; }; }; }
47369
47370 rm -f $ac_file
47371 mv $tmp/config.h $ac_file
47372 fi
47373 else
47374 cat $tmp/config.h
47375 rm -f $tmp/config.h
47376 fi
47377done
47378_ACEOF
47379cat >>$CONFIG_STATUS <<\_ACEOF
47380
47381#
47382# CONFIG_COMMANDS section.
47383#
47384for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
47385 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
47386 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
47387 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
47388$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47389 X"$ac_dest" : 'X\(//\)[^/]' \| \
47390 X"$ac_dest" : 'X\(//\)$' \| \
47391 X"$ac_dest" : 'X\(/\)' \| \
47392 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47393echo X"$ac_dest" |
47394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47396 /^X\(\/\/\)$/{ s//\1/; q; }
47397 /^X\(\/\).*/{ s//\1/; q; }
47398 s/.*/./; q'`
ac1cb8d3
VS
47399 { if $as_mkdir_p; then
47400 mkdir -p "$ac_dir"
47401 else
47402 as_dir="$ac_dir"
47403 as_dirs=
47404 while test ! -d "$as_dir"; do
47405 as_dirs="$as_dir $as_dirs"
47406 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47407$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47408 X"$as_dir" : 'X\(//\)[^/]' \| \
47409 X"$as_dir" : 'X\(//\)$' \| \
47410 X"$as_dir" : 'X\(/\)' \| \
47411 . : '\(.\)' 2>/dev/null ||
47412echo X"$as_dir" |
47413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47415 /^X\(\/\/\)$/{ s//\1/; q; }
47416 /^X\(\/\).*/{ s//\1/; q; }
47417 s/.*/./; q'`
47418 done
47419 test ! -n "$as_dirs" || mkdir $as_dirs
47420 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47421echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47422 { (exit 1); exit 1; }; }; }
47423
a848cd7e
SC
47424 ac_builddir=.
47425
47426if test "$ac_dir" != .; then
47427 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47428 # A "../" for each directory in $ac_dir_suffix.
47429 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47430else
47431 ac_dir_suffix= ac_top_builddir=
47432fi
47433
47434case $srcdir in
47435 .) # No --srcdir option. We are building in place.
47436 ac_srcdir=.
47437 if test -z "$ac_top_builddir"; then
47438 ac_top_srcdir=.
47439 else
47440 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47441 fi ;;
47442 [\\/]* | ?:[\\/]* ) # Absolute path.
47443 ac_srcdir=$srcdir$ac_dir_suffix;
47444 ac_top_srcdir=$srcdir ;;
47445 *) # Relative path.
47446 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47447 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47448esac
ac1cb8d3
VS
47449
47450# Do not use `cd foo && pwd` to compute absolute paths, because
47451# the directories may not exist.
47452case `pwd` in
47453.) ac_abs_builddir="$ac_dir";;
47454*)
47455 case "$ac_dir" in
47456 .) ac_abs_builddir=`pwd`;;
47457 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47458 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47459 esac;;
47460esac
47461case $ac_abs_builddir in
47462.) ac_abs_top_builddir=${ac_top_builddir}.;;
47463*)
47464 case ${ac_top_builddir}. in
47465 .) ac_abs_top_builddir=$ac_abs_builddir;;
47466 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47467 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47468 esac;;
47469esac
47470case $ac_abs_builddir in
47471.) ac_abs_srcdir=$ac_srcdir;;
47472*)
47473 case $ac_srcdir in
47474 .) ac_abs_srcdir=$ac_abs_builddir;;
47475 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47476 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47477 esac;;
47478esac
47479case $ac_abs_builddir in
47480.) ac_abs_top_srcdir=$ac_top_srcdir;;
47481*)
47482 case $ac_top_srcdir in
47483 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47484 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47485 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47486 esac;;
47487esac
a848cd7e
SC
47488
47489
47490 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
47491echo "$as_me: executing $ac_dest commands" >&6;}
47492 case $ac_dest in
ceec2216
RL
47493 wx-config ) rm -f wx-config
47494 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
47495 ;;
a848cd7e
SC
47496 esac
47497done
47498_ACEOF
47499
47500cat >>$CONFIG_STATUS <<\_ACEOF
47501
47502{ (exit 0); exit 0; }
47503_ACEOF
47504chmod +x $CONFIG_STATUS
47505ac_clean_files=$ac_clean_files_save
47506
47507
47508# configure is writing to config.log, and then calls config.status.
47509# config.status does its own redirection, appending to config.log.
47510# Unfortunately, on DOS this fails, as config.log is still kept open
47511# by configure, so config.status won't be able to write to it; its
47512# output is simply discarded. So we exec the FD to /dev/null,
47513# effectively closing config.log, so it can be properly (re)opened and
47514# appended to by config.status. When coming back to configure, we
47515# need to make the FD available again.
47516if test "$no_create" != yes; then
47517 ac_cs_success=:
47518 ac_config_status_args=
47519 test "$silent" = yes &&
47520 ac_config_status_args="$ac_config_status_args --quiet"
47521 exec 5>/dev/null
47522 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47523 exec 5>>config.log
47524 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47525 # would make configure fail if this is the last instruction.
47526 $ac_cs_success || { (exit 1); exit 1; }
47527fi
47528
47529#
47530# CONFIG_SUBDIRS section.
47531#
47532if test "$no_recursion" != yes; then
47533
47534 # Remove --cache-file and --srcdir arguments so they do not pile up.
47535 ac_sub_configure_args=
47536 ac_prev=
47537 for ac_arg in $ac_configure_args; do
47538 if test -n "$ac_prev"; then
47539 ac_prev=
47540 continue
47541 fi
47542 case $ac_arg in
47543 -cache-file | --cache-file | --cache-fil | --cache-fi \
47544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
47545 ac_prev=cache_file ;;
47546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
47547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
47548 | --c=*)
47549 ;;
47550 --config-cache | -C)
47551 ;;
47552 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
47553 ac_prev=srcdir ;;
47554 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47555 ;;
47556 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
47557 ac_prev=prefix ;;
47558 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47559 ;;
47560 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
47561 esac
47562 done
47563
47564 # Always prepend --prefix to ensure using the same prefix
47565 # in subdir configurations.
47566 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
47567
47568 ac_popdir=`pwd`
47569 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
47570
47571 # Do not complain, so a configure script can configure whichever
47572 # parts of a large source tree are present.
47573 test -d $srcdir/$ac_dir || continue
47574
47575 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
47576echo "$as_me: configuring in $ac_dir" >&6;}
47577 { if $as_mkdir_p; then
47578 mkdir -p "$ac_dir"
47579 else
47580 as_dir="$ac_dir"
47581 as_dirs=
47582 while test ! -d "$as_dir"; do
47583 as_dirs="$as_dir $as_dirs"
47584 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47585$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47586 X"$as_dir" : 'X\(//\)[^/]' \| \
47587 X"$as_dir" : 'X\(//\)$' \| \
47588 X"$as_dir" : 'X\(/\)' \| \
47589 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47590echo X"$as_dir" |
47591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47593 /^X\(\/\/\)$/{ s//\1/; q; }
47594 /^X\(\/\).*/{ s//\1/; q; }
47595 s/.*/./; q'`
47596 done
47597 test ! -n "$as_dirs" || mkdir $as_dirs
47598 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47599echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47600 { (exit 1); exit 1; }; }; }
47601
47602 ac_builddir=.
47603
47604if test "$ac_dir" != .; then
47605 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47606 # A "../" for each directory in $ac_dir_suffix.
47607 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47608else
47609 ac_dir_suffix= ac_top_builddir=
47610fi
47611
47612case $srcdir in
47613 .) # No --srcdir option. We are building in place.
47614 ac_srcdir=.
47615 if test -z "$ac_top_builddir"; then
47616 ac_top_srcdir=.
47617 else
47618 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47619 fi ;;
47620 [\\/]* | ?:[\\/]* ) # Absolute path.
47621 ac_srcdir=$srcdir$ac_dir_suffix;
47622 ac_top_srcdir=$srcdir ;;
47623 *) # Relative path.
47624 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47625 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47626esac
ac1cb8d3
VS
47627
47628# Do not use `cd foo && pwd` to compute absolute paths, because
47629# the directories may not exist.
47630case `pwd` in
47631.) ac_abs_builddir="$ac_dir";;
47632*)
47633 case "$ac_dir" in
47634 .) ac_abs_builddir=`pwd`;;
47635 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47636 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47637 esac;;
47638esac
47639case $ac_abs_builddir in
47640.) ac_abs_top_builddir=${ac_top_builddir}.;;
47641*)
47642 case ${ac_top_builddir}. in
47643 .) ac_abs_top_builddir=$ac_abs_builddir;;
47644 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47645 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47646 esac;;
47647esac
47648case $ac_abs_builddir in
47649.) ac_abs_srcdir=$ac_srcdir;;
47650*)
47651 case $ac_srcdir in
47652 .) ac_abs_srcdir=$ac_abs_builddir;;
47653 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47654 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47655 esac;;
47656esac
47657case $ac_abs_builddir in
47658.) ac_abs_top_srcdir=$ac_top_srcdir;;
47659*)
47660 case $ac_top_srcdir in
47661 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47662 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47663 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47664 esac;;
47665esac
a848cd7e
SC
47666
47667
47668 cd $ac_dir
47669
47670 # Check for guested configure; otherwise get Cygnus style configure.
47671 if test -f $ac_srcdir/configure.gnu; then
47672 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
47673 elif test -f $ac_srcdir/configure; then
47674 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
47675 elif test -f $ac_srcdir/configure.in; then
47676 ac_sub_configure=$ac_configure
47677 else
47678 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
47679echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
47680 ac_sub_configure=
47681 fi
47682
47683 # The recursion is here.
47684 if test -n "$ac_sub_configure"; then
47685 # Make the cache file name correct relative to the subdirectory.
47686 case $cache_file in
47687 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
47688 *) # Relative path.
ac1cb8d3 47689 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
47690 esac
47691
47692 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
47693echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
47694 # The eval makes quoting arguments work.
47695 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
47696 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
47697 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
47698echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
47699 { (exit 1); exit 1; }; }
47700 fi
47701
6ebeb4c7 47702 cd "$ac_popdir"
a848cd7e
SC
47703 done
47704fi
47705
47706
47707echo
77ffb593 47708echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 47709echo ""
4d4ff94c 47710echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 47711echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 47712
77ffb593
JS
47713echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
47714echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
47715echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 47716
77ffb593
JS
47717echo " What level of wxWidgets compatibility should be enabled?"
47718echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
47719echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 47720
77ffb593 47721echo " Which libraries should wxWidgets use?"
a848cd7e
SC
47722echo " jpeg ${wxUSE_LIBJPEG-none}"
47723echo " png ${wxUSE_LIBPNG-none}"
47724echo " regex ${wxUSE_REGEX}"
47725echo " tiff ${wxUSE_LIBTIFF-none}"
47726if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
47727echo " xpm ${wxUSE_LIBXPM-none}"
47728fi
47729echo " zlib ${wxUSE_ZLIB}"
47730echo " odbc ${wxUSE_ODBC}"
47731echo " expat ${wxUSE_EXPAT}"
47732echo " libmspack ${wxUSE_LIBMSPACK}"
47733echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 47734echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
47735
47736echo ""
47737