]> git.saurik.com Git - wxWidgets.git/blame - configure
don't put borders by default between sizer elements on smartphones
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
0ee4059d 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_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_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
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
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)
1c14217d 1057 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1058 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1059 --with-motif use Motif/Lesstif
1060 --with-mac use Mac OS X
1061 --with-cocoa use Cocoa
1062 --with-wine use Wine
1063 --with-msw use MS-Windows
1064 --with-pm use OS/2 Presentation Manager
1065 --with-mgl use SciTech MGL
1066 --with-microwin use MicroWindows
1067 --with-x11 use X11
1068 --with-libpng use libpng (PNG image format)
1069 --with-libjpeg use libjpeg (JPEG file format)
1070 --with-libtiff use libtiff (TIFF file format)
1071 --with-libxpm use libxpm (XPM file format)
1072 --with-libmspack use libmspack (CHM help files loading)
1073 --with-sdl use SDL for audio on Unix
d51253e8 1074 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1075 --with-opengl use OpenGL (or Mesa)
1076 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1077 --with-regex enable support for wxRegEx class
1078 --with-zlib use zlib for LZW compression
1079 --with-odbc use the IODBC and wxODBC classes
1080 --with-expat enable XML support using expat parser
ceec2216 1081 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1082 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1083 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1084 --with-x use the X Window System
1085 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1086 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1087 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1088 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1089 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1090
1091Some influential environment variables:
dcc1b6ad
VS
1092 CC C compiler command
1093 CFLAGS C compiler flags
1094 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1095 nonstandard directory <lib dir>
1096 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1097 headers in a nonstandard directory <include dir>
1098 CPP C preprocessor
1099 CXX C++ compiler command
1100 CXXFLAGS C++ compiler flags
1101 CXXCPP C++ preprocessor
a848cd7e
SC
1102
1103Use these variables to override the choices made by `configure' or to help
1104it to find libraries and programs with nonstandard names/locations.
1105
77ffb593 1106Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1107_ACEOF
1108fi
1109
1110if test "$ac_init_help" = "recursive"; then
1111 # If there are subdirs, report their specific --help.
1112 ac_popdir=`pwd`
1113 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1114 test -d $ac_dir || continue
1115 ac_builddir=.
1116
1117if test "$ac_dir" != .; then
1118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1119 # A "../" for each directory in $ac_dir_suffix.
1120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1121else
1122 ac_dir_suffix= ac_top_builddir=
1123fi
1124
1125case $srcdir in
1126 .) # No --srcdir option. We are building in place.
1127 ac_srcdir=.
1128 if test -z "$ac_top_builddir"; then
1129 ac_top_srcdir=.
1130 else
1131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1132 fi ;;
1133 [\\/]* | ?:[\\/]* ) # Absolute path.
1134 ac_srcdir=$srcdir$ac_dir_suffix;
1135 ac_top_srcdir=$srcdir ;;
1136 *) # Relative path.
1137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1139esac
ac1cb8d3
VS
1140
1141# Do not use `cd foo && pwd` to compute absolute paths, because
1142# the directories may not exist.
1143case `pwd` in
1144.) ac_abs_builddir="$ac_dir";;
1145*)
1146 case "$ac_dir" in
1147 .) ac_abs_builddir=`pwd`;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1149 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1150 esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_top_builddir=${ac_top_builddir}.;;
1154*)
1155 case ${ac_top_builddir}. in
1156 .) ac_abs_top_builddir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1159 esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_srcdir=$ac_srcdir;;
1163*)
1164 case $ac_srcdir in
1165 .) ac_abs_srcdir=$ac_abs_builddir;;
1166 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1167 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1168 esac;;
1169esac
1170case $ac_abs_builddir in
1171.) ac_abs_top_srcdir=$ac_top_srcdir;;
1172*)
1173 case $ac_top_srcdir in
1174 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1175 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1177 esac;;
1178esac
a848cd7e
SC
1179
1180 cd $ac_dir
1181 # Check for guested configure; otherwise get Cygnus style configure.
1182 if test -f $ac_srcdir/configure.gnu; then
1183 echo
1184 $SHELL $ac_srcdir/configure.gnu --help=recursive
1185 elif test -f $ac_srcdir/configure; then
1186 echo
1187 $SHELL $ac_srcdir/configure --help=recursive
1188 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1189 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1190 echo
1191 $ac_configure --help
1192 else
1193 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1194 fi
6ebeb4c7 1195 cd "$ac_popdir"
a848cd7e
SC
1196 done
1197fi
1198
1199test -n "$ac_init_help" && exit 0
1200if $ac_init_version; then
1201 cat <<\_ACEOF
dd8df4fc 1202wxWidgets configure 2.7.0
ac1cb8d3 1203generated by GNU Autoconf 2.59
a848cd7e 1204
ac1cb8d3 1205Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1206This configure script is free software; the Free Software Foundation
1207gives unlimited permission to copy, distribute and modify it.
1208_ACEOF
1209 exit 0
1210fi
1211exec 5>config.log
1212cat >&5 <<_ACEOF
1213This file contains any messages produced by compilers while
1214running configure, to aid debugging if configure makes a mistake.
1215
dd8df4fc 1216It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1217generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1218
1219 $ $0 $@
1220
1221_ACEOF
1222{
1223cat <<_ASUNAME
1224## --------- ##
1225## Platform. ##
1226## --------- ##
1227
1228hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1229uname -m = `(uname -m) 2>/dev/null || echo unknown`
1230uname -r = `(uname -r) 2>/dev/null || echo unknown`
1231uname -s = `(uname -s) 2>/dev/null || echo unknown`
1232uname -v = `(uname -v) 2>/dev/null || echo unknown`
1233
1234/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1235/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1236
1237/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1238/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1239/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1240hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1241/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1242/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1243/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1244
1245_ASUNAME
1246
1247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1248for as_dir in $PATH
1249do
1250 IFS=$as_save_IFS
1251 test -z "$as_dir" && as_dir=.
1252 echo "PATH: $as_dir"
1253done
1254
1255} >&5
1256
1257cat >&5 <<_ACEOF
1258
1259
1260## ----------- ##
1261## Core tests. ##
1262## ----------- ##
1263
1264_ACEOF
1265
1266
1267# Keep a trace of the command line.
1268# Strip out --no-create and --no-recursion so they do not pile up.
1269# Strip out --silent because we don't want to record it for future runs.
1270# Also quote any args containing shell meta-characters.
1271# Make two passes to allow for proper duplicate-argument suppression.
1272ac_configure_args=
1273ac_configure_args0=
1274ac_configure_args1=
1275ac_sep=
1276ac_must_keep_next=false
1277for ac_pass in 1 2
1278do
1279 for ac_arg
1280 do
1281 case $ac_arg in
1282 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284 | -silent | --silent | --silen | --sile | --sil)
1285 continue ;;
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 esac
1289 case $ac_pass in
1290 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1291 2)
1292 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1293 if test $ac_must_keep_next = true; then
ac1cb8d3 1294 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1295 else
ac1cb8d3
VS
1296 case $ac_arg in
1297 *=* | --config-cache | -C | -disable-* | --disable-* \
1298 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1299 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1300 | -with-* | --with-* | -without-* | --without-* | --x)
1301 case "$ac_configure_args0 " in
1302 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1303 esac
1304 ;;
1305 -* ) ac_must_keep_next=true ;;
1306 esac
a848cd7e
SC
1307 fi
1308 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1309 # Get rid of the leading space.
1310 ac_sep=" "
1311 ;;
1312 esac
1313 done
1314done
1315$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1316$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1317
1318# When interrupted or exit'd, cleanup temporary files, and complete
1319# config.log. We remove comments because anyway the quotes in there
1320# would cause problems or look ugly.
1321# WARNING: Be sure not to use single quotes in there, as some shells,
1322# such as our DU 5.0 friend, will then `close' the trap.
1323trap 'exit_status=$?
1324 # Save into config.log some information that might help in debugging.
1325 {
1326 echo
1327
1328 cat <<\_ASBOX
1329## ---------------- ##
1330## Cache variables. ##
1331## ---------------- ##
1332_ASBOX
1333 echo
1334 # The following way of writing the cache mishandles newlines in values,
1335{
1336 (set) 2>&1 |
1337 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1338 *ac_space=\ *)
1339 sed -n \
ac1cb8d3
VS
1340 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1342 ;;
1343 *)
1344 sed -n \
ac1cb8d3 1345 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1346 ;;
1347 esac;
1348}
1349 echo
1350
1351 cat <<\_ASBOX
1352## ----------------- ##
1353## Output variables. ##
1354## ----------------- ##
1355_ASBOX
1356 echo
1357 for ac_var in $ac_subst_vars
1358 do
1359 eval ac_val=$`echo $ac_var`
1360 echo "$ac_var='"'"'$ac_val'"'"'"
1361 done | sort
1362 echo
1363
1364 if test -n "$ac_subst_files"; then
1365 cat <<\_ASBOX
1366## ------------- ##
1367## Output files. ##
1368## ------------- ##
1369_ASBOX
1370 echo
1371 for ac_var in $ac_subst_files
1372 do
1373 eval ac_val=$`echo $ac_var`
ac1cb8d3 1374 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1375 done | sort
1376 echo
1377 fi
1378
1379 if test -s confdefs.h; then
1380 cat <<\_ASBOX
1381## ----------- ##
1382## confdefs.h. ##
1383## ----------- ##
1384_ASBOX
1385 echo
1386 sed "/^$/d" confdefs.h | sort
1387 echo
1388 fi
1389 test "$ac_signal" != 0 &&
1390 echo "$as_me: caught signal $ac_signal"
1391 echo "$as_me: exit $exit_status"
1392 } >&5
ac1cb8d3 1393 rm -f core *.core &&
a848cd7e
SC
1394 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1395 exit $exit_status
1396 ' 0
1397for ac_signal in 1 2 13 15; do
1398 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1399done
1400ac_signal=0
1401
1402# confdefs.h avoids OS command line length limits that DEFS can exceed.
1403rm -rf conftest* confdefs.h
1404# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1405echo >confdefs.h
1406
1407# Predefined preprocessor variables.
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_NAME "$PACKAGE_NAME"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1416_ACEOF
1417
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_VERSION "$PACKAGE_VERSION"
1421_ACEOF
1422
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_STRING "$PACKAGE_STRING"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1431_ACEOF
1432
1433
1434# Let the site file select an alternate cache file if it wants to.
1435# Prefer explicitly selected file to automatically selected ones.
1436if test -z "$CONFIG_SITE"; then
1437 if test "x$prefix" != xNONE; then
1438 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1439 else
1440 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1441 fi
1442fi
1443for ac_site_file in $CONFIG_SITE; do
1444 if test -r "$ac_site_file"; then
1445 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1446echo "$as_me: loading site script $ac_site_file" >&6;}
1447 sed 's/^/| /' "$ac_site_file" >&5
1448 . "$ac_site_file"
1449 fi
1450done
1451
1452if test -r "$cache_file"; then
1453 # Some versions of bash will fail to source /dev/null (special
1454 # files actually), so we avoid doing that.
1455 if test -f "$cache_file"; then
1456 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1457echo "$as_me: loading cache $cache_file" >&6;}
1458 case $cache_file in
1459 [\\/]* | ?:[\\/]* ) . $cache_file;;
1460 *) . ./$cache_file;;
1461 esac
1462 fi
1463else
1464 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1465echo "$as_me: creating cache $cache_file" >&6;}
1466 >$cache_file
1467fi
1468
1469# Check that the precious variables saved in the cache have kept the same
1470# value.
1471ac_cache_corrupted=false
1472for ac_var in `(set) 2>&1 |
ac1cb8d3 1473 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1474 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1475 eval ac_new_set=\$ac_env_${ac_var}_set
1476 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1477 eval ac_new_val="\$ac_env_${ac_var}_value"
1478 case $ac_old_set,$ac_new_set in
1479 set,)
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1481echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1483 ,set)
1484 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1485echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1486 ac_cache_corrupted=: ;;
1487 ,);;
1488 *)
1489 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1490 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1491echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1492 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1493echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1494 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1495echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1496 ac_cache_corrupted=:
a848cd7e
SC
1497 fi;;
1498 esac
1499 # Pass precious variables to config.status.
1500 if test "$ac_new_set" = set; then
1501 case $ac_new_val in
1502 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1503 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1504 *) ac_arg=$ac_var=$ac_new_val ;;
1505 esac
1506 case " $ac_configure_args " in
1507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1508 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1509 esac
1510 fi
1511done
1512if $ac_cache_corrupted; then
1513 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1514echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1515 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1516echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1517 { (exit 1); exit 1; }; }
1518fi
1519
1520ac_ext=c
1521ac_cpp='$CPP $CPPFLAGS'
1522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1554
1555ac_aux_dir=
1556for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1557 if test -f $ac_dir/install-sh; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/install-sh -c"
1560 break
1561 elif test -f $ac_dir/install.sh; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/install.sh -c"
1564 break
1565 elif test -f $ac_dir/shtool; then
1566 ac_aux_dir=$ac_dir
1567 ac_install_sh="$ac_aux_dir/shtool install -c"
1568 break
1569 fi
1570done
1571if test -z "$ac_aux_dir"; then
1572 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1573echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1574 { (exit 1); exit 1; }; }
1575fi
1576ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1577ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1578ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1579
1580# Make sure we can run config.sub.
1581$ac_config_sub sun4 >/dev/null 2>&1 ||
1582 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1583echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1584 { (exit 1); exit 1; }; }
1585
1586echo "$as_me:$LINENO: checking build system type" >&5
1587echo $ECHO_N "checking build system type... $ECHO_C" >&6
1588if test "${ac_cv_build+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591 ac_cv_build_alias=$build_alias
1592test -z "$ac_cv_build_alias" &&
1593 ac_cv_build_alias=`$ac_config_guess`
1594test -z "$ac_cv_build_alias" &&
1595 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1596echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1597 { (exit 1); exit 1; }; }
1598ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1599 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1600echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1601 { (exit 1); exit 1; }; }
1602
1603fi
1604echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1605echo "${ECHO_T}$ac_cv_build" >&6
1606build=$ac_cv_build
1607build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1608build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1609build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610
1611
1612echo "$as_me:$LINENO: checking host system type" >&5
1613echo $ECHO_N "checking host system type... $ECHO_C" >&6
1614if test "${ac_cv_host+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616else
1617 ac_cv_host_alias=$host_alias
1618test -z "$ac_cv_host_alias" &&
1619 ac_cv_host_alias=$ac_cv_build_alias
1620ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1621 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1622echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1623 { (exit 1); exit 1; }; }
1624
1625fi
1626echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1627echo "${ECHO_T}$ac_cv_host" >&6
1628host=$ac_cv_host
1629host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632
1633
1634echo "$as_me:$LINENO: checking target system type" >&5
1635echo $ECHO_N "checking target system type... $ECHO_C" >&6
1636if test "${ac_cv_target+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639 ac_cv_target_alias=$target_alias
1640test "x$ac_cv_target_alias" = "x" &&
1641 ac_cv_target_alias=$ac_cv_host_alias
1642ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1643 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1644echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1645 { (exit 1); exit 1; }; }
1646
1647fi
1648echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1649echo "${ECHO_T}$ac_cv_target" >&6
1650target=$ac_cv_target
1651target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
1655
1656# The aliases save the names the user supplied, while $host etc.
1657# will get canonicalized.
1658test -n "$target_alias" &&
1659 test "$program_prefix$program_suffix$program_transform_name" = \
1660 NONENONEs,x,x, &&
1661 program_prefix=${target_alias}-
1662
1663
1664
ceec2216 1665wx_major_version_number=2
dd8df4fc
VZ
1666wx_minor_version_number=7
1667wx_release_number=0
1668wx_subrelease_number=0
a848cd7e 1669
ceec2216
RL
1670WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1671WX_VERSION=$WX_RELEASE.$wx_release_number
1672WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1673
ceec2216 1674WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1675
a848cd7e
SC
1676
1677
1678
1679USE_UNIX=1
1680USE_OS2=0
1681USE_WIN32=0
1682USE_DOS=0
1683USE_BEOS=0
1684USE_MAC=0
1685
1686USE_AIX=
1687USE_BSD= USE_DARWIN= USE_FREEBSD=
1688USE_GNU= USE_HPUX=
1689USE_LINUX=
1690USE_NETBSD=
1691USE_OPENBSD=
1692USE_OSF= USE_SGI=
1693USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1694USE_ULTRIX=
1695USE_UNIXWARE=
1696
1697USE_ALPHA=
1698
1699NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1700
1701ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1702
1703DEFAULT_wxUSE_COCOA=0
1704DEFAULT_wxUSE_GTK=0
1705DEFAULT_wxUSE_MAC=0
1706DEFAULT_wxUSE_MGL=0
1707DEFAULT_wxUSE_MICROWIN=0
1708DEFAULT_wxUSE_MOTIF=0
1709DEFAULT_wxUSE_MSW=0
1710DEFAULT_wxUSE_PM=0
1711DEFAULT_wxUSE_X11=0
1712
1713DEFAULT_DEFAULT_wxUSE_COCOA=0
1714DEFAULT_DEFAULT_wxUSE_GTK=0
1715DEFAULT_DEFAULT_wxUSE_MAC=0
1716DEFAULT_DEFAULT_wxUSE_MGL=0
1717DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1718DEFAULT_DEFAULT_wxUSE_MOTIF=0
1719DEFAULT_DEFAULT_wxUSE_MSW=0
1720DEFAULT_DEFAULT_wxUSE_PM=0
1721DEFAULT_DEFAULT_wxUSE_X11=0
1722
1723PROGRAM_EXT=
1724SO_SUFFIX=so
1725SAMPLES_RPATH_FLAG=
1726SAMPLES_RPATH_POSTLINK=
1727
a03b8b04
RD
1728DEFAULT_STD_FLAG=yes
1729
a848cd7e
SC
1730case "${host}" in
1731 *-hp-hpux* )
1732 USE_HPUX=1
1733 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1734 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1735 SO_SUFFIX=sl
1736 cat >>confdefs.h <<\_ACEOF
1737#define __HPUX__ 1
1738_ACEOF
1739
2eef8513
VZ
1740
1741 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
a848cd7e
SC
1742 ;;
1743 *-*-linux* )
1744 USE_LINUX=1
1745 cat >>confdefs.h <<\_ACEOF
1746#define __LINUX__ 1
1747_ACEOF
1748
1749 TMP=`uname -m`
1750 if test "x$TMP" = "xalpha"; then
1751 USE_ALPHA=1
1752 cat >>confdefs.h <<\_ACEOF
1753#define __ALPHA__ 1
1754_ACEOF
1755
1756 fi
1757 DEFAULT_DEFAULT_wxUSE_GTK=1
1758 ;;
1759 *-*-gnu* | *-*-k*bsd*-gnu )
1760 USE_GNU=1
1761 TMP=`uname -m`
1762 if test "x$TMP" = "xalpha"; then
1763 USE_ALPHA=1
1764 cat >>confdefs.h <<\_ACEOF
1765#define __ALPHA__ 1
1766_ACEOF
1767
1768 fi
1769 DEFAULT_DEFAULT_wxUSE_GTK=1
1770 ;;
1771 *-*-irix5* | *-*-irix6* )
1772 USE_SGI=1
1773 USE_SVR4=1
1774 cat >>confdefs.h <<\_ACEOF
1775#define __SGI__ 1
1776_ACEOF
1777
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SVR4__ 1
1780_ACEOF
1781
1782 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1783 ;;
1784 *-*-solaris2* )
1785 USE_SUN=1
1786 USE_SOLARIS=1
1787 USE_SVR4=1
1788 cat >>confdefs.h <<\_ACEOF
1789#define __SUN__ 1
1790_ACEOF
1791
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SOLARIS__ 1
1794_ACEOF
1795
1796 cat >>confdefs.h <<\_ACEOF
1797#define __SVR4__ 1
1798_ACEOF
1799
1800 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1801 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1802 ;;
1803 *-*-sunos4* )
1804 USE_SUN=1
1805 USE_SUNOS=1
1806 USE_BSD=1
1807 cat >>confdefs.h <<\_ACEOF
1808#define __SUN__ 1
1809_ACEOF
1810
1811 cat >>confdefs.h <<\_ACEOF
1812#define __SUNOS__ 1
1813_ACEOF
1814
1815 cat >>confdefs.h <<\_ACEOF
1816#define __BSD__ 1
1817_ACEOF
1818
1819 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1820 ;;
1821 *-*-freebsd*)
1822 USE_BSD=1
1823 USE_FREEBSD=1
1824 cat >>confdefs.h <<\_ACEOF
1825#define __FREEBSD__ 1
1826_ACEOF
1827
1828 cat >>confdefs.h <<\_ACEOF
1829#define __BSD__ 1
1830_ACEOF
1831
1832 DEFAULT_DEFAULT_wxUSE_GTK=1
1833 ;;
1834 *-*-openbsd*)
1835 USE_BSD=1
1836 USE_OPENBSD=1
1837 cat >>confdefs.h <<\_ACEOF
1838#define __OPENBSD__ 1
1839_ACEOF
1840
1841 cat >>confdefs.h <<\_ACEOF
1842#define __BSD__ 1
1843_ACEOF
1844
1845 DEFAULT_DEFAULT_wxUSE_GTK=1
1846 ;;
1847 *-*-netbsd*)
1848 USE_BSD=1
1849 USE_NETBSD=1
1850 cat >>confdefs.h <<\_ACEOF
1851#define __NETBSD__ 1
1852_ACEOF
1853
1854 cat >>confdefs.h <<\_ACEOF
1855#define __BSD__ 1
1856_ACEOF
1857
1858 DEFAULT_DEFAULT_wxUSE_GTK=1
1859 ;;
1860 *-*-osf* )
1861 USE_ALPHA=1
1862 USE_OSF=1
1863 cat >>confdefs.h <<\_ACEOF
1864#define __ALPHA__ 1
1865_ACEOF
1866
1867 cat >>confdefs.h <<\_ACEOF
1868#define __OSF__ 1
1869_ACEOF
1870
1871 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1872 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1873 ;;
1874 *-*-dgux5* )
1875 USE_ALPHA=1
1876 USE_SVR4=1
1877 cat >>confdefs.h <<\_ACEOF
1878#define __ALPHA__ 1
1879_ACEOF
1880
1881 cat >>confdefs.h <<\_ACEOF
1882#define __SVR4__ 1
1883_ACEOF
1884
1885 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1886 ;;
1887 *-*-sysv5* )
1888 USE_SYSV=1
1889 USE_SVR4=1
1890 cat >>confdefs.h <<\_ACEOF
1891#define __SYSV__ 1
1892_ACEOF
1893
1894 cat >>confdefs.h <<\_ACEOF
1895#define __SVR4__ 1
1896_ACEOF
1897
1898 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1899 ;;
1900 *-*-aix* )
1901 USE_AIX=1
1902 USE_SYSV=1
1903 USE_SVR4=1
1904 SO_SUFFIX=a
1905 cat >>confdefs.h <<\_ACEOF
1906#define __AIX__ 1
1907_ACEOF
1908
1909 cat >>confdefs.h <<\_ACEOF
1910#define __SYSV__ 1
1911_ACEOF
1912
1913 cat >>confdefs.h <<\_ACEOF
1914#define __SVR4__ 1
1915_ACEOF
1916
1917 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1918 ;;
1919
1920 *-*-*UnixWare*)
1921 USE_SYSV=1
1922 USE_SVR4=1
1923 USE_UNIXWARE=1
1924 cat >>confdefs.h <<\_ACEOF
1925#define __UNIXWARE__ 1
1926_ACEOF
1927
1928 ;;
1929
1930 *-*-cygwin* | *-*-mingw32* )
1931 SO_SUFFIX=dll
1932 PROGRAM_EXT=".exe"
a848cd7e 1933 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1934 DEFAULT_STD_FLAG=no
a848cd7e
SC
1935 ;;
1936
1937 *-pc-msdosdjgpp )
1938 USE_UNIX=0
1939 USE_DOS=1
1940 cat >>confdefs.h <<\_ACEOF
1941#define __DOS__ 1
1942_ACEOF
1943
1944 PROGRAM_EXT=".exe"
1945 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1946 ;;
1947
1948 *-pc-os2_emx | *-pc-os2-emx )
1949 cat >>confdefs.h <<\_ACEOF
1950#define __EMX__ 1
1951_ACEOF
1952
1953 USE_OS2=1
1954 cat >>confdefs.h <<\_ACEOF
1955#define __OS2__ 1
1956_ACEOF
1957
1958 PROGRAM_EXT=".exe"
1959 DEFAULT_DEFAULT_wxUSE_PM=1
1960 CXX=gcc
1961 LDFLAGS="$LDFLAGS -Zcrtdll"
1962 ac_executable_extensions=".exe"
1963 export ac_executable_extensions
1964 ac_save_IFS="$IFS"
1965 IFS='\\'
1966 ac_TEMP_PATH=
1967 for ac_dir in $PATH; do
1968 IFS=$ac_save_IFS
1969 if test -z "$ac_TEMP_PATH"; then
1970 ac_TEMP_PATH="$ac_dir"
1971 else
1972 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1973 fi
1974 done
1975 export PATH="$ac_TEMP_PATH"
1976 unset ac_TEMP_PATH
a03b8b04 1977 DEFAULT_STD_FLAG=no
a848cd7e
SC
1978 ;;
1979
cfda0ea8 1980 *-*-darwin* )
a848cd7e
SC
1981 USE_BSD=1
1982 USE_DARWIN=1
1983 SO_SUFFIX=dylib
1984 cat >>confdefs.h <<\_ACEOF
1985#define __BSD__ 1
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define __DARWIN__ 1
a848cd7e
SC
1990_ACEOF
1991
1992 cat >>confdefs.h <<\_ACEOF
1993#define TARGET_CARBON 1
1994_ACEOF
1995
1996 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1997 DEFAULT_STD_FLAG=no
a848cd7e 1998 ;;
1e9e8aba
DE
1999 powerpc-apple-macos* )
2000 USE_UNIX=0
2001 ac_cv_c_bigendian=yes
2002 SO_SUFFIX=shlib
2003 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2004 DEFAULT_STD_FLAG=no
1e9e8aba 2005 ;;
a848cd7e
SC
2006
2007 *-*-beos* )
2008 USE_BEOS=1
2009 cat >>confdefs.h <<\_ACEOF
2010#define __BEOS__ 1
2011_ACEOF
2012
2013 ;;
2014
2015 *)
2016 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2017echo "$as_me: error: unknown system type ${host}." >&2;}
2018 { (exit 1); exit 1; }; }
2019esac
2020
2021
2022
2023
2024 wx_arg_cache_file="configarg.cache"
2025 echo "loading argument cache $wx_arg_cache_file"
2026 rm -f ${wx_arg_cache_file}.tmp
2027 touch ${wx_arg_cache_file}.tmp
2028 touch ${wx_arg_cache_file}
2029
2030
2031DEBUG_CONFIGURE=0
2032if test $DEBUG_CONFIGURE = 1; then
2033 DEFAULT_wxUSE_UNIVERSAL=no
2034 DEFAULT_wxUSE_STL=no
2035
2036 DEFAULT_wxUSE_NANOX=no
2037
2038 DEFAULT_wxUSE_THREADS=yes
2039
2040 DEFAULT_wxUSE_SHARED=yes
2041 DEFAULT_wxUSE_OPTIMISE=no
2042 DEFAULT_wxUSE_PROFILE=no
2043 DEFAULT_wxUSE_NO_DEPS=no
2044 DEFAULT_wxUSE_NO_RTTI=no
2045 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2046 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2047 DEFAULT_wxUSE_PERMISSIVE=no
2048 DEFAULT_wxUSE_DEBUG_FLAG=yes
2049 DEFAULT_wxUSE_DEBUG_INFO=yes
2050 DEFAULT_wxUSE_DEBUG_GDB=yes
2051 DEFAULT_wxUSE_MEM_TRACING=no
2052 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2053 DEFAULT_wxUSE_DMALLOC=no
2054 DEFAULT_wxUSE_APPLE_IEEE=no
2055
2056 DEFAULT_wxUSE_EXCEPTIONS=no
2057 DEFAULT_wxUSE_LOG=yes
2058 DEFAULT_wxUSE_LOGWINDOW=no
2059 DEFAULT_wxUSE_LOGGUI=no
2060 DEFAULT_wxUSE_LOGDIALOG=no
2061
2062 DEFAULT_wxUSE_GUI=yes
2063 DEFAULT_wxUSE_CONTROLS=no
2064
2065 DEFAULT_wxUSE_REGEX=no
2066 DEFAULT_wxUSE_XML=no
2067 DEFAULT_wxUSE_EXPAT=no
2068 DEFAULT_wxUSE_ZLIB=no
2069 DEFAULT_wxUSE_LIBPNG=no
2070 DEFAULT_wxUSE_LIBJPEG=no
2071 DEFAULT_wxUSE_LIBTIFF=no
2072 DEFAULT_wxUSE_LIBXPM=no
2073 DEFAULT_wxUSE_LIBMSPACK=no
2074 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2075 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2076 DEFAULT_wxUSE_ODBC=no
2077 DEFAULT_wxUSE_OPENGL=no
2078
2079 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2080 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2081 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2082 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2083 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2084 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2085 DEFAULT_wxUSE_CMDLINE_PARSER=no
2086 DEFAULT_wxUSE_DATETIME=no
2087 DEFAULT_wxUSE_TIMER=no
2088 DEFAULT_wxUSE_STOPWATCH=no
2089 DEFAULT_wxUSE_FILE=no
2090 DEFAULT_wxUSE_FFILE=no
07158944 2091 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2092 DEFAULT_wxUSE_TEXTBUFFER=no
2093 DEFAULT_wxUSE_TEXTFILE=no
2094 DEFAULT_wxUSE_SOUND=no
3b57de8b 2095 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2096 DEFAULT_wxUSE_INTL=no
2097 DEFAULT_wxUSE_CONFIG=no
2098 DEFAULT_wxUSE_FONTMAP=no
2099 DEFAULT_wxUSE_STREAMS=no
2100 DEFAULT_wxUSE_SOCKETS=no
2101 DEFAULT_wxUSE_OLE=no
2102 DEFAULT_wxUSE_DATAOBJ=no
2103 DEFAULT_wxUSE_DIALUP_MANAGER=no
2104 DEFAULT_wxUSE_JOYSTICK=no
2105 DEFAULT_wxUSE_DYNLIB_CLASS=no
2106 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2107 DEFAULT_wxUSE_LONGLONG=no
2108 DEFAULT_wxUSE_GEOMETRY=no
2109
2110 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2111 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2112 DEFAULT_wxUSE_POSTSCRIPT=no
2113
2114 DEFAULT_wxUSE_CLIPBOARD=no
2115 DEFAULT_wxUSE_TOOLTIPS=no
2116 DEFAULT_wxUSE_DRAG_AND_DROP=no
2117 DEFAULT_wxUSE_DRAGIMAGE=no
2118 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2119 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2120
8a7b1113 2121 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2122 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2123 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2124 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2125
2126 DEFAULT_wxUSE_RESOURCES=no
2127 DEFAULT_wxUSE_CONSTRAINTS=no
2128 DEFAULT_wxUSE_IPC=no
2129 DEFAULT_wxUSE_HELP=no
2130 DEFAULT_wxUSE_MS_HTML_HELP=no
2131 DEFAULT_wxUSE_WXHTML_HELP=no
2132 DEFAULT_wxUSE_TREELAYOUT=no
2133 DEFAULT_wxUSE_METAFILE=no
2134 DEFAULT_wxUSE_MIMETYPE=no
2135 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2136 DEFAULT_wxUSE_PROTOCOL=no
2137 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2138 DEFAULT_wxUSE_PROTOCOL_FTP=no
2139 DEFAULT_wxUSE_PROTOCOL_FILE=no
2140 DEFAULT_wxUSE_URL=no
2141
2142 DEFAULT_wxUSE_COMMONDLGS=no
2143 DEFAULT_wxUSE_CHOICEDLG=no
2144 DEFAULT_wxUSE_COLOURDLG=no
2145 DEFAULT_wxUSE_DIRDLG=no
2146 DEFAULT_wxUSE_FILEDLG=no
2147 DEFAULT_wxUSE_FINDREPLDLG=no
2148 DEFAULT_wxUSE_FONTDLG=no
2149 DEFAULT_wxUSE_MSGDLG=no
2150 DEFAULT_wxUSE_NUMBERDLG=no
2151 DEFAULT_wxUSE_TEXTDLG=no
2152 DEFAULT_wxUSE_SPLASH=no
2153 DEFAULT_wxUSE_STARTUP_TIPS=no
2154 DEFAULT_wxUSE_PROGRESSDLG=no
2155 DEFAULT_wxUSE_WIZARDDLG=no
2156
2157 DEFAULT_wxUSE_MENUS=no
2158 DEFAULT_wxUSE_MINIFRAME=no
2159 DEFAULT_wxUSE_HTML=no
9a8f0513 2160 DEFAULT_wxUSE_XRC=no
646b6ec1 2161 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2162 DEFAULT_wxUSE_FILESYSTEM=no
2163 DEFAULT_wxUSE_FS_INET=no
2164 DEFAULT_wxUSE_FS_ZIP=no
2165 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2166 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2167 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2168 DEFAULT_wxUSE_VALIDATORS=no
2169
2170 DEFAULT_wxUSE_ACCEL=no
2171 DEFAULT_wxUSE_BUTTON=no
2172 DEFAULT_wxUSE_BMPBUTTON=no
2173 DEFAULT_wxUSE_CALCTRL=no
2174 DEFAULT_wxUSE_CARET=no
2175 DEFAULT_wxUSE_CHECKBOX=no
2176 DEFAULT_wxUSE_CHECKLST=no
2177 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2178 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2179 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2180 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2181 DEFAULT_wxUSE_DISPLAY=no
2182 DEFAULT_wxUSE_GAUGE=no
2183 DEFAULT_wxUSE_GRID=no
2184 DEFAULT_wxUSE_IMAGLIST=no
2185 DEFAULT_wxUSE_LISTBOOK=no
2186 DEFAULT_wxUSE_LISTBOX=no
2187 DEFAULT_wxUSE_LISTCTRL=no
2188 DEFAULT_wxUSE_NOTEBOOK=no
2189 DEFAULT_wxUSE_RADIOBOX=no
2190 DEFAULT_wxUSE_RADIOBTN=no
2191 DEFAULT_wxUSE_SASH=no
2192 DEFAULT_wxUSE_SCROLLBAR=no
2193 DEFAULT_wxUSE_SLIDER=no
2194 DEFAULT_wxUSE_SPINBTN=no
2195 DEFAULT_wxUSE_SPINCTRL=no
2196 DEFAULT_wxUSE_SPLITTER=no
2197 DEFAULT_wxUSE_STATBMP=no
2198 DEFAULT_wxUSE_STATBOX=no
2199 DEFAULT_wxUSE_STATLINE=no
2200 DEFAULT_wxUSE_STATTEXT=no
2201 DEFAULT_wxUSE_STATUSBAR=yes
2202 DEFAULT_wxUSE_TABDIALOG=no
2203 DEFAULT_wxUSE_TEXTCTRL=no
2204 DEFAULT_wxUSE_TOGGLEBTN=no
2205 DEFAULT_wxUSE_TOOLBAR=no
2206 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2207 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2208 DEFAULT_wxUSE_TREECTRL=no
2209 DEFAULT_wxUSE_POPUPWIN=no
2210 DEFAULT_wxUSE_TIPWINDOW=no
2211
2212 DEFAULT_wxUSE_UNICODE=no
2213 DEFAULT_wxUSE_UNICODE_MSLU=no
2214 DEFAULT_wxUSE_WCSRTOMBS=no
2215
2216 DEFAULT_wxUSE_PALETTE=no
2217 DEFAULT_wxUSE_IMAGE=no
2218 DEFAULT_wxUSE_GIF=no
2219 DEFAULT_wxUSE_PCX=no
2220 DEFAULT_wxUSE_PNM=no
2221 DEFAULT_wxUSE_IFF=no
2222 DEFAULT_wxUSE_XPM=no
2223 DEFAULT_wxUSE_ICO_CUR=no
2224 DEFAULT_wxUSE_ACCESSIBILITY=no
2225
2226 DEFAULT_wxUSE_MONOLITHIC=no
2227 DEFAULT_wxUSE_PLUGINS=no
2228 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2229else
2230 DEFAULT_wxUSE_UNIVERSAL=no
2231 DEFAULT_wxUSE_STL=no
2232
2233 DEFAULT_wxUSE_NANOX=no
2234
2235 DEFAULT_wxUSE_THREADS=yes
2236
2237 DEFAULT_wxUSE_SHARED=yes
2238 DEFAULT_wxUSE_OPTIMISE=yes
2239 DEFAULT_wxUSE_PROFILE=no
2240 DEFAULT_wxUSE_NO_DEPS=no
2241 DEFAULT_wxUSE_NO_RTTI=no
2242 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2243 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2244 DEFAULT_wxUSE_PERMISSIVE=no
2245 DEFAULT_wxUSE_DEBUG_FLAG=no
2246 DEFAULT_wxUSE_DEBUG_INFO=no
2247 DEFAULT_wxUSE_DEBUG_GDB=no
2248 DEFAULT_wxUSE_MEM_TRACING=no
2249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2250 DEFAULT_wxUSE_DMALLOC=no
2251 DEFAULT_wxUSE_APPLE_IEEE=yes
2252
2253 DEFAULT_wxUSE_EXCEPTIONS=yes
2254 DEFAULT_wxUSE_LOG=yes
2255 DEFAULT_wxUSE_LOGWINDOW=yes
2256 DEFAULT_wxUSE_LOGGUI=yes
2257 DEFAULT_wxUSE_LOGDIALOG=yes
2258
2259 DEFAULT_wxUSE_GUI=yes
2260
2261 DEFAULT_wxUSE_REGEX=yes
2262 DEFAULT_wxUSE_XML=yes
2263 DEFAULT_wxUSE_EXPAT=yes
2264 DEFAULT_wxUSE_ZLIB=yes
2265 DEFAULT_wxUSE_LIBPNG=yes
2266 DEFAULT_wxUSE_LIBJPEG=yes
2267 DEFAULT_wxUSE_LIBTIFF=yes
2268 DEFAULT_wxUSE_LIBXPM=yes
2269 DEFAULT_wxUSE_LIBMSPACK=yes
2270 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2271 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2272 DEFAULT_wxUSE_ODBC=no
52cb607e 2273 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2274
2275 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2276 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2277 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2278 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2279 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2280 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2281 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2282 DEFAULT_wxUSE_DATETIME=yes
2283 DEFAULT_wxUSE_TIMER=yes
2284 DEFAULT_wxUSE_STOPWATCH=yes
2285 DEFAULT_wxUSE_FILE=yes
2286 DEFAULT_wxUSE_FFILE=yes
07158944 2287 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2288 DEFAULT_wxUSE_TEXTBUFFER=yes
2289 DEFAULT_wxUSE_TEXTFILE=yes
2290 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2291 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2292 DEFAULT_wxUSE_INTL=yes
2293 DEFAULT_wxUSE_CONFIG=yes
2294 DEFAULT_wxUSE_FONTMAP=yes
2295 DEFAULT_wxUSE_STREAMS=yes
2296 DEFAULT_wxUSE_SOCKETS=yes
2297 DEFAULT_wxUSE_OLE=yes
2298 DEFAULT_wxUSE_DATAOBJ=yes
2299 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2300 DEFAULT_wxUSE_JOYSTICK=yes
2301 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2302 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2303 DEFAULT_wxUSE_LONGLONG=yes
2304 DEFAULT_wxUSE_GEOMETRY=yes
2305
2306 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2307 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2308 DEFAULT_wxUSE_POSTSCRIPT=yes
2309
2310 DEFAULT_wxUSE_CLIPBOARD=yes
2311 DEFAULT_wxUSE_TOOLTIPS=yes
2312 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2313 DEFAULT_wxUSE_DRAGIMAGE=yes
2314 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2315 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2316
8a7b1113 2317 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2318 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2319 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2320 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2321
2322 DEFAULT_wxUSE_RESOURCES=no
2323 DEFAULT_wxUSE_CONSTRAINTS=yes
2324 DEFAULT_wxUSE_IPC=yes
2325 DEFAULT_wxUSE_HELP=yes
2326 DEFAULT_wxUSE_MS_HTML_HELP=yes
2327 DEFAULT_wxUSE_WXHTML_HELP=yes
2328 DEFAULT_wxUSE_TREELAYOUT=yes
2329 DEFAULT_wxUSE_METAFILE=yes
2330 DEFAULT_wxUSE_MIMETYPE=yes
2331 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2332 DEFAULT_wxUSE_PROTOCOL=yes
2333 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2334 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2335 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2336 DEFAULT_wxUSE_URL=yes
2337
2338 DEFAULT_wxUSE_COMMONDLGS=yes
2339 DEFAULT_wxUSE_CHOICEDLG=yes
2340 DEFAULT_wxUSE_COLOURDLG=yes
2341 DEFAULT_wxUSE_DIRDLG=yes
2342 DEFAULT_wxUSE_FILEDLG=yes
2343 DEFAULT_wxUSE_FINDREPLDLG=yes
2344 DEFAULT_wxUSE_FONTDLG=yes
2345 DEFAULT_wxUSE_MSGDLG=yes
2346 DEFAULT_wxUSE_NUMBERDLG=yes
2347 DEFAULT_wxUSE_TEXTDLG=yes
2348 DEFAULT_wxUSE_SPLASH=yes
2349 DEFAULT_wxUSE_STARTUP_TIPS=yes
2350 DEFAULT_wxUSE_PROGRESSDLG=yes
2351 DEFAULT_wxUSE_WIZARDDLG=yes
2352
2353 DEFAULT_wxUSE_MENUS=yes
2354 DEFAULT_wxUSE_MINIFRAME=yes
2355 DEFAULT_wxUSE_HTML=yes
9a8f0513 2356 DEFAULT_wxUSE_XRC=yes
646b6ec1 2357 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2358 DEFAULT_wxUSE_FILESYSTEM=yes
2359 DEFAULT_wxUSE_FS_INET=yes
2360 DEFAULT_wxUSE_FS_ZIP=yes
2361 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2362 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2363 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2364 DEFAULT_wxUSE_VALIDATORS=yes
2365
2366 DEFAULT_wxUSE_ACCEL=yes
2367 DEFAULT_wxUSE_BUTTON=yes
2368 DEFAULT_wxUSE_BMPBUTTON=yes
2369 DEFAULT_wxUSE_CALCTRL=yes
2370 DEFAULT_wxUSE_CARET=yes
2371 DEFAULT_wxUSE_CHECKBOX=yes
2372 DEFAULT_wxUSE_CHECKLST=yes
2373 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2374 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2375 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2376 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2377 DEFAULT_wxUSE_DISPLAY=yes
2378 DEFAULT_wxUSE_GAUGE=yes
2379 DEFAULT_wxUSE_GRID=yes
2380 DEFAULT_wxUSE_IMAGLIST=yes
2381 DEFAULT_wxUSE_LISTBOOK=yes
2382 DEFAULT_wxUSE_LISTBOX=yes
2383 DEFAULT_wxUSE_LISTCTRL=yes
2384 DEFAULT_wxUSE_NOTEBOOK=yes
2385 DEFAULT_wxUSE_RADIOBOX=yes
2386 DEFAULT_wxUSE_RADIOBTN=yes
2387 DEFAULT_wxUSE_SASH=yes
2388 DEFAULT_wxUSE_SCROLLBAR=yes
2389 DEFAULT_wxUSE_SLIDER=yes
2390 DEFAULT_wxUSE_SPINBTN=yes
2391 DEFAULT_wxUSE_SPINCTRL=yes
2392 DEFAULT_wxUSE_SPLITTER=yes
2393 DEFAULT_wxUSE_STATBMP=yes
2394 DEFAULT_wxUSE_STATBOX=yes
2395 DEFAULT_wxUSE_STATLINE=yes
2396 DEFAULT_wxUSE_STATTEXT=yes
2397 DEFAULT_wxUSE_STATUSBAR=yes
2398 DEFAULT_wxUSE_TABDIALOG=no
2399 DEFAULT_wxUSE_TEXTCTRL=yes
2400 DEFAULT_wxUSE_TOGGLEBTN=yes
2401 DEFAULT_wxUSE_TOOLBAR=yes
2402 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2403 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2404 DEFAULT_wxUSE_TREECTRL=yes
2405 DEFAULT_wxUSE_POPUPWIN=yes
2406 DEFAULT_wxUSE_TIPWINDOW=yes
2407
78de529b 2408 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2409 DEFAULT_wxUSE_UNICODE_MSLU=yes
2410 DEFAULT_wxUSE_WCSRTOMBS=no
2411
2412 DEFAULT_wxUSE_PALETTE=yes
2413 DEFAULT_wxUSE_IMAGE=yes
2414 DEFAULT_wxUSE_GIF=yes
2415 DEFAULT_wxUSE_PCX=yes
2416 DEFAULT_wxUSE_IFF=no
2417 DEFAULT_wxUSE_PNM=yes
2418 DEFAULT_wxUSE_XPM=yes
2419 DEFAULT_wxUSE_ICO_CUR=yes
2420 DEFAULT_wxUSE_ACCESSIBILITY=no
2421
2422 DEFAULT_wxUSE_MONOLITHIC=no
2423 DEFAULT_wxUSE_PLUGINS=no
2424 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2425
f34ca037 2426 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2427fi
2428
2429
2430
f34ca037 2431
a848cd7e
SC
2432for toolkit in `echo $ALL_TOOLKITS`; do
2433 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2434 if test "x$LINE" != "x" ; then
2435 has_toolkit_in_cache=1
2436 eval "DEFAULT_$LINE"
2437 eval "CACHE_$toolkit=1"
f34ca037
MW
2438
2439 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2440 if test "x$LINE" != "x" ; then
2441 eval "DEFAULT_$LINE"
2442 fi
a848cd7e
SC
2443 fi
2444done
2445
2446
2447
2448 enablestring=
2449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2450echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2451 no_cache=0
2452 # Check whether --enable-gui or --disable-gui was given.
2453if test "${enable_gui+set}" = set; then
2454 enableval="$enable_gui"
2455
2456 if test "$enableval" = yes; then
2457 ac_cv_use_gui='wxUSE_GUI=yes'
2458 else
2459 ac_cv_use_gui='wxUSE_GUI=no'
2460 fi
2461
2462else
2463
2464 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2465 if test "x$LINE" != x ; then
2466 eval "DEFAULT_$LINE"
2467 else
2468 no_cache=1
2469 fi
2470
2471 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2472
2473fi;
2474
2475 eval "$ac_cv_use_gui"
2476 if test "$no_cache" != 1; then
2477 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2478 fi
2479
2480 if test "$wxUSE_GUI" = yes; then
2481 echo "$as_me:$LINENO: result: yes" >&5
2482echo "${ECHO_T}yes" >&6
2483 else
2484 echo "$as_me:$LINENO: result: no" >&5
2485echo "${ECHO_T}no" >&6
2486 fi
2487
2488
2489 enablestring=
2490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2491echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2492 no_cache=0
2493 # Check whether --enable-monolithic or --disable-monolithic was given.
2494if test "${enable_monolithic+set}" = set; then
2495 enableval="$enable_monolithic"
2496
2497 if test "$enableval" = yes; then
2498 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2499 else
2500 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2501 fi
2502
2503else
2504
2505 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2506 if test "x$LINE" != x ; then
2507 eval "DEFAULT_$LINE"
2508 else
2509 no_cache=1
2510 fi
2511
2512 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2513
2514fi;
2515
2516 eval "$ac_cv_use_monolithic"
2517 if test "$no_cache" != 1; then
2518 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2519 fi
2520
2521 if test "$wxUSE_MONOLITHIC" = yes; then
2522 echo "$as_me:$LINENO: result: yes" >&5
2523echo "${ECHO_T}yes" >&6
2524 else
2525 echo "$as_me:$LINENO: result: no" >&5
2526echo "${ECHO_T}no" >&6
2527 fi
2528
2529
2530 enablestring=
2531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2532echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2533 no_cache=0
2534 # Check whether --enable-plugins or --disable-plugins was given.
2535if test "${enable_plugins+set}" = set; then
2536 enableval="$enable_plugins"
2537
2538 if test "$enableval" = yes; then
2539 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2540 else
2541 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2542 fi
2543
2544else
2545
2546 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2554
2555fi;
2556
2557 eval "$ac_cv_use_plugins"
2558 if test "$no_cache" != 1; then
2559 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2560 fi
2561
2562 if test "$wxUSE_PLUGINS" = yes; then
2563 echo "$as_me:$LINENO: result: yes" >&5
2564echo "${ECHO_T}yes" >&6
2565 else
2566 echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6
2568 fi
2569
2570
1c14217d
VZ
2571 withstring=without
2572 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2573echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2574 no_cache=0
2575
2576# Check whether --with-subdirs or --without-subdirs was given.
2577if test "${with_subdirs+set}" = set; then
2578 withval="$with_subdirs"
2579
2580 if test "$withval" = yes; then
2581 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2582 else
2583 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2584 fi
2585
2586else
2587
2588 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2596
2597fi;
2598
2599 eval "$ac_cv_use_subdirs"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxWITH_SUBDIRS" = yes; then
2605 echo "$as_me:$LINENO: result: yes" >&5
2606echo "${ECHO_T}yes" >&6
2607 else
2608 echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6
2610 fi
2611
2612
a848cd7e
SC
2613if test "$wxUSE_GUI" = "yes"; then
2614
2615
2616 enablestring=
2617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2618echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2619 no_cache=0
2620 # Check whether --enable-universal or --disable-universal was given.
2621if test "${enable_universal+set}" = set; then
2622 enableval="$enable_universal"
2623
2624 if test "$enableval" = yes; then
2625 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2626 else
2627 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2628 fi
2629
2630else
2631
2632 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2633 if test "x$LINE" != x ; then
2634 eval "DEFAULT_$LINE"
2635 else
2636 no_cache=1
2637 fi
2638
2639 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2640
2641fi;
2642
2643 eval "$ac_cv_use_universal"
2644 if test "$no_cache" != 1; then
2645 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2646 fi
2647
2648 if test "$wxUSE_UNIVERSAL" = yes; then
2649 echo "$as_me:$LINENO: result: yes" >&5
2650echo "${ECHO_T}yes" >&6
2651 else
2652 echo "$as_me:$LINENO: result: no" >&5
2653echo "${ECHO_T}no" >&6
2654 fi
2655
2656
2657# Check whether --with-gtk or --without-gtk was given.
2658if test "${with_gtk+set}" = set; then
2659 withval="$with_gtk"
2660 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2661fi;
2662
2663# Check whether --with-motif or --without-motif was given.
2664if test "${with_motif+set}" = set; then
2665 withval="$with_motif"
2666 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2667fi;
2668
2669# Check whether --with-mac or --without-mac was given.
2670if test "${with_mac+set}" = set; then
2671 withval="$with_mac"
c228d3a4 2672 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2673fi;
2674
2675# Check whether --with-cocoa or --without-cocoa was given.
2676if test "${with_cocoa+set}" = set; then
2677 withval="$with_cocoa"
c228d3a4 2678 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2679fi;
2680
2681# Check whether --with-wine or --without-wine was given.
2682if test "${with_wine+set}" = set; then
2683 withval="$with_wine"
2684 wxUSE_WINE="$withval" CACHE_WINE=1
2685fi;
2686
2687# Check whether --with-msw or --without-msw was given.
2688if test "${with_msw+set}" = set; then
2689 withval="$with_msw"
2690 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2691fi;
2692
2693# Check whether --with-pm or --without-pm was given.
2694if test "${with_pm+set}" = set; then
2695 withval="$with_pm"
2696 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2697fi;
2698
2699# Check whether --with-mgl or --without-mgl was given.
2700if test "${with_mgl+set}" = set; then
2701 withval="$with_mgl"
2702 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2703fi;
2704
2705# Check whether --with-microwin or --without-microwin was given.
2706if test "${with_microwin+set}" = set; then
2707 withval="$with_microwin"
2708 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2709fi;
2710
2711# Check whether --with-x11 or --without-x11 was given.
2712if test "${with_x11+set}" = set; then
2713 withval="$with_x11"
2714 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2715fi;
2716
2717 enablestring=
2718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2719echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2720 no_cache=0
2721 # Check whether --enable-nanox or --disable-nanox was given.
2722if test "${enable_nanox+set}" = set; then
2723 enableval="$enable_nanox"
2724
2725 if test "$enableval" = yes; then
2726 ac_cv_use_nanox='wxUSE_NANOX=yes'
2727 else
2728 ac_cv_use_nanox='wxUSE_NANOX=no'
2729 fi
2730
2731else
2732
2733 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
2740 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2741
2742fi;
2743
2744 eval "$ac_cv_use_nanox"
2745 if test "$no_cache" != 1; then
2746 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2747 fi
2748
2749 if test "$wxUSE_NANOX" = yes; then
2750 echo "$as_me:$LINENO: result: yes" >&5
2751echo "${ECHO_T}yes" >&6
2752 else
2753 echo "$as_me:$LINENO: result: no" >&5
2754echo "${ECHO_T}no" >&6
2755 fi
2756
2757
f34ca037
MW
2758# Check whether --enable-gtk2 or --disable-gtk2 was given.
2759if test "${enable_gtk2+set}" = set; then
2760 enableval="$enable_gtk2"
2761 wxUSE_GTK2="$enableval"
2762fi;
a848cd7e 2763
a848cd7e
SC
2764 enablestring=
2765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2766echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2767 no_cache=0
2768 # Check whether --enable-gpe or --disable-gpe was given.
2769if test "${enable_gpe+set}" = set; then
2770 enableval="$enable_gpe"
2771
2772 if test "$enableval" = yes; then
2773 ac_cv_use_gpe='wxUSE_GPE=yes'
2774 else
2775 ac_cv_use_gpe='wxUSE_GPE=no'
2776 fi
2777
2778else
2779
2780 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2781 if test "x$LINE" != x ; then
2782 eval "DEFAULT_$LINE"
2783 else
2784 no_cache=1
2785 fi
2786
2787 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2788
2789fi;
2790
2791 eval "$ac_cv_use_gpe"
2792 if test "$no_cache" != 1; then
2793 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2794 fi
2795
2796 if test "$wxUSE_GPE" = yes; then
2797 echo "$as_me:$LINENO: result: yes" >&5
2798echo "${ECHO_T}yes" >&6
2799 else
2800 echo "$as_me:$LINENO: result: no" >&5
2801echo "${ECHO_T}no" >&6
2802 fi
2803
2804
2805
2806 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2807echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2808 no_cache=0
2809
2810# Check whether --with-libpng or --without-libpng was given.
2811if test "${with_libpng+set}" = set; then
2812 withval="$with_libpng"
2813
2814 if test "$withval" = yes; then
2815 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2816 elif test "$withval" = no; then
2817 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2818 elif test "$withval" = sys; then
2819 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2820 elif test "$withval" = builtin; then
2821 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2822 else
2823 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2824echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2825 { (exit 1); exit 1; }; }
2826 fi
2827
2828else
2829
2830 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2831 if test "x$LINE" != x ; then
2832 eval "DEFAULT_$LINE"
2833 else
2834 no_cache=1
2835 fi
2836
2837 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2838
2839fi;
2840
2841 eval "$ac_cv_use_libpng"
2842 if test "$no_cache" != 1; then
2843 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2844 fi
2845
2846 if test "$wxUSE_LIBPNG" = yes; then
2847 echo "$as_me:$LINENO: result: yes" >&5
2848echo "${ECHO_T}yes" >&6
2849 elif test "$wxUSE_LIBPNG" = no; then
2850 echo "$as_me:$LINENO: result: no" >&5
2851echo "${ECHO_T}no" >&6
2852 elif test "$wxUSE_LIBPNG" = sys; then
2853 echo "$as_me:$LINENO: result: system version" >&5
2854echo "${ECHO_T}system version" >&6
2855 elif test "$wxUSE_LIBPNG" = builtin; then
2856 echo "$as_me:$LINENO: result: builtin version" >&5
2857echo "${ECHO_T}builtin version" >&6
2858 else
2859 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2860echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2861 { (exit 1); exit 1; }; }
2862 fi
2863
2864
2865 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2866echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2867 no_cache=0
2868
2869# Check whether --with-libjpeg or --without-libjpeg was given.
2870if test "${with_libjpeg+set}" = set; then
2871 withval="$with_libjpeg"
2872
2873 if test "$withval" = yes; then
2874 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2875 elif test "$withval" = no; then
2876 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2877 elif test "$withval" = sys; then
2878 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2879 elif test "$withval" = builtin; then
2880 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2881 else
2882 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2883echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2884 { (exit 1); exit 1; }; }
2885 fi
2886
2887else
2888
2889 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2890 if test "x$LINE" != x ; then
2891 eval "DEFAULT_$LINE"
2892 else
2893 no_cache=1
2894 fi
2895
2896 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2897
2898fi;
2899
2900 eval "$ac_cv_use_libjpeg"
2901 if test "$no_cache" != 1; then
2902 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2903 fi
2904
2905 if test "$wxUSE_LIBJPEG" = yes; then
2906 echo "$as_me:$LINENO: result: yes" >&5
2907echo "${ECHO_T}yes" >&6
2908 elif test "$wxUSE_LIBJPEG" = no; then
2909 echo "$as_me:$LINENO: result: no" >&5
2910echo "${ECHO_T}no" >&6
2911 elif test "$wxUSE_LIBJPEG" = sys; then
2912 echo "$as_me:$LINENO: result: system version" >&5
2913echo "${ECHO_T}system version" >&6
2914 elif test "$wxUSE_LIBJPEG" = builtin; then
2915 echo "$as_me:$LINENO: result: builtin version" >&5
2916echo "${ECHO_T}builtin version" >&6
2917 else
2918 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2919echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2920 { (exit 1); exit 1; }; }
2921 fi
2922
2923
2924 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2925echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2926 no_cache=0
2927
2928# Check whether --with-libtiff or --without-libtiff was given.
2929if test "${with_libtiff+set}" = set; then
2930 withval="$with_libtiff"
2931
2932 if test "$withval" = yes; then
2933 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2934 elif test "$withval" = no; then
2935 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2936 elif test "$withval" = sys; then
2937 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2938 elif test "$withval" = builtin; then
2939 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2940 else
2941 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2942echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2943 { (exit 1); exit 1; }; }
2944 fi
2945
2946else
2947
2948 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2949 if test "x$LINE" != x ; then
2950 eval "DEFAULT_$LINE"
2951 else
2952 no_cache=1
2953 fi
2954
2955 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2956
2957fi;
2958
2959 eval "$ac_cv_use_libtiff"
2960 if test "$no_cache" != 1; then
2961 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2962 fi
2963
2964 if test "$wxUSE_LIBTIFF" = yes; then
2965 echo "$as_me:$LINENO: result: yes" >&5
2966echo "${ECHO_T}yes" >&6
2967 elif test "$wxUSE_LIBTIFF" = no; then
2968 echo "$as_me:$LINENO: result: no" >&5
2969echo "${ECHO_T}no" >&6
2970 elif test "$wxUSE_LIBTIFF" = sys; then
2971 echo "$as_me:$LINENO: result: system version" >&5
2972echo "${ECHO_T}system version" >&6
2973 elif test "$wxUSE_LIBTIFF" = builtin; then
2974 echo "$as_me:$LINENO: result: builtin version" >&5
2975echo "${ECHO_T}builtin version" >&6
2976 else
2977 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2978echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2979 { (exit 1); exit 1; }; }
2980 fi
2981
2982
2983 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2984echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2985 no_cache=0
2986
2987# Check whether --with-libxpm or --without-libxpm was given.
2988if test "${with_libxpm+set}" = set; then
2989 withval="$with_libxpm"
2990
2991 if test "$withval" = yes; then
2992 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2993 elif test "$withval" = no; then
2994 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2995 elif test "$withval" = sys; then
2996 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2997 elif test "$withval" = builtin; then
2998 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2999 else
3000 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3001echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3002 { (exit 1); exit 1; }; }
3003 fi
3004
3005else
3006
3007 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3008 if test "x$LINE" != x ; then
3009 eval "DEFAULT_$LINE"
3010 else
3011 no_cache=1
3012 fi
3013
3014 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3015
3016fi;
3017
3018 eval "$ac_cv_use_libxpm"
3019 if test "$no_cache" != 1; then
3020 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3021 fi
3022
3023 if test "$wxUSE_LIBXPM" = yes; then
3024 echo "$as_me:$LINENO: result: yes" >&5
3025echo "${ECHO_T}yes" >&6
3026 elif test "$wxUSE_LIBXPM" = no; then
3027 echo "$as_me:$LINENO: result: no" >&5
3028echo "${ECHO_T}no" >&6
3029 elif test "$wxUSE_LIBXPM" = sys; then
3030 echo "$as_me:$LINENO: result: system version" >&5
3031echo "${ECHO_T}system version" >&6
3032 elif test "$wxUSE_LIBXPM" = builtin; then
3033 echo "$as_me:$LINENO: result: builtin version" >&5
3034echo "${ECHO_T}builtin version" >&6
3035 else
3036 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3037echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3038 { (exit 1); exit 1; }; }
3039 fi
3040
3041
1c14217d
VZ
3042 withstring=
3043 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3044echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3045 no_cache=0
3046
3047# Check whether --with-libmspack or --without-libmspack was given.
3048if test "${with_libmspack+set}" = set; then
3049 withval="$with_libmspack"
3050
3051 if test "$withval" = yes; then
3052 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3053 else
3054 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3055 fi
3056
3057else
3058
3059 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3060 if test "x$LINE" != x ; then
3061 eval "DEFAULT_$LINE"
3062 else
3063 no_cache=1
3064 fi
3065
3066 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3067
3068fi;
3069
3070 eval "$ac_cv_use_libmspack"
3071 if test "$no_cache" != 1; then
3072 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3073 fi
3074
3075 if test "$wxUSE_LIBMSPACK" = yes; then
3076 echo "$as_me:$LINENO: result: yes" >&5
3077echo "${ECHO_T}yes" >&6
3078 else
3079 echo "$as_me:$LINENO: result: no" >&5
3080echo "${ECHO_T}no" >&6
3081 fi
3082
3083
1c14217d
VZ
3084 withstring=
3085 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3086echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3087 no_cache=0
3088
3089# Check whether --with-sdl or --without-sdl was given.
3090if test "${with_sdl+set}" = set; then
3091 withval="$with_sdl"
3092
3093 if test "$withval" = yes; then
3094 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3095 else
3096 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3097 fi
3098
3099else
3100
3101 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3102 if test "x$LINE" != x ; then
3103 eval "DEFAULT_$LINE"
3104 else
3105 no_cache=1
3106 fi
3107
3108 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3109
3110fi;
3111
3112 eval "$ac_cv_use_sdl"
3113 if test "$no_cache" != 1; then
3114 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3115 fi
3116
3117 if test "$wxUSE_LIBSDL" = yes; then
3118 echo "$as_me:$LINENO: result: yes" >&5
3119echo "${ECHO_T}yes" >&6
3120 else
3121 echo "$as_me:$LINENO: result: no" >&5
3122echo "${ECHO_T}no" >&6
3123 fi
3124
3125
1c14217d
VZ
3126 withstring=
3127 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3128echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3129 no_cache=0
3130
3131# Check whether --with-gnomeprint or --without-gnomeprint was given.
3132if test "${with_gnomeprint+set}" = set; then
3133 withval="$with_gnomeprint"
3134
3135 if test "$withval" = yes; then
3136 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3137 else
3138 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3139 fi
3140
3141else
3142
3143 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3144 if test "x$LINE" != x ; then
3145 eval "DEFAULT_$LINE"
3146 else
3147 no_cache=1
3148 fi
3149
3150 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3151
3152fi;
3153
3154 eval "$ac_cv_use_gnomeprint"
3155 if test "$no_cache" != 1; then
3156 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3157 fi
3158
3159 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3160 echo "$as_me:$LINENO: result: yes" >&5
3161echo "${ECHO_T}yes" >&6
3162 else
3163 echo "$as_me:$LINENO: result: no" >&5
3164echo "${ECHO_T}no" >&6
3165 fi
3166
3167
1c14217d
VZ
3168 withstring=
3169 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3170echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3171 no_cache=0
3172
3173# Check whether --with-opengl or --without-opengl was given.
3174if test "${with_opengl+set}" = set; then
3175 withval="$with_opengl"
3176
3177 if test "$withval" = yes; then
3178 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3179 else
3180 ac_cv_use_opengl='wxUSE_OPENGL=no'
3181 fi
3182
3183else
3184
3185 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3186 if test "x$LINE" != x ; then
3187 eval "DEFAULT_$LINE"
3188 else
3189 no_cache=1
3190 fi
3191
3192 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3193
3194fi;
3195
3196 eval "$ac_cv_use_opengl"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_OPENGL" = yes; then
3202 echo "$as_me:$LINENO: result: yes" >&5
3203echo "${ECHO_T}yes" >&6
3204 else
3205 echo "$as_me:$LINENO: result: no" >&5
3206echo "${ECHO_T}no" >&6
3207 fi
3208
3209
3210fi
3211
3212
1c14217d
VZ
3213 withstring=
3214 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3215echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3216 no_cache=0
3217
3218# Check whether --with-dmalloc or --without-dmalloc was given.
3219if test "${with_dmalloc+set}" = set; then
3220 withval="$with_dmalloc"
3221
3222 if test "$withval" = yes; then
3223 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3224 else
3225 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3226 fi
3227
3228else
3229
3230 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3231 if test "x$LINE" != x ; then
3232 eval "DEFAULT_$LINE"
3233 else
3234 no_cache=1
3235 fi
3236
3237 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3238
3239fi;
3240
3241 eval "$ac_cv_use_dmalloc"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_DMALLOC" = yes; then
3247 echo "$as_me:$LINENO: result: yes" >&5
3248echo "${ECHO_T}yes" >&6
3249 else
3250 echo "$as_me:$LINENO: result: no" >&5
3251echo "${ECHO_T}no" >&6
3252 fi
3253
3254
3255 echo "$as_me:$LINENO: checking for --with-regex" >&5
3256echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3257 no_cache=0
3258
3259# Check whether --with-regex or --without-regex was given.
3260if test "${with_regex+set}" = set; then
3261 withval="$with_regex"
3262
3263 if test "$withval" = yes; then
3264 ac_cv_use_regex='wxUSE_REGEX=yes'
3265 elif test "$withval" = no; then
3266 ac_cv_use_regex='wxUSE_REGEX=no'
3267 elif test "$withval" = sys; then
3268 ac_cv_use_regex='wxUSE_REGEX=sys'
3269 elif test "$withval" = builtin; then
3270 ac_cv_use_regex='wxUSE_REGEX=builtin'
3271 else
3272 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3273echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3274 { (exit 1); exit 1; }; }
3275 fi
3276
3277else
3278
3279 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3280 if test "x$LINE" != x ; then
3281 eval "DEFAULT_$LINE"
3282 else
3283 no_cache=1
3284 fi
3285
3286 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3287
3288fi;
3289
3290 eval "$ac_cv_use_regex"
3291 if test "$no_cache" != 1; then
3292 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3293 fi
3294
3295 if test "$wxUSE_REGEX" = yes; then
3296 echo "$as_me:$LINENO: result: yes" >&5
3297echo "${ECHO_T}yes" >&6
3298 elif test "$wxUSE_REGEX" = no; then
3299 echo "$as_me:$LINENO: result: no" >&5
3300echo "${ECHO_T}no" >&6
3301 elif test "$wxUSE_REGEX" = sys; then
3302 echo "$as_me:$LINENO: result: system version" >&5
3303echo "${ECHO_T}system version" >&6
3304 elif test "$wxUSE_REGEX" = builtin; then
3305 echo "$as_me:$LINENO: result: builtin version" >&5
3306echo "${ECHO_T}builtin version" >&6
3307 else
3308 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3309echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3310 { (exit 1); exit 1; }; }
3311 fi
3312
3313
3314 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3315echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3316 no_cache=0
3317
3318# Check whether --with-zlib or --without-zlib was given.
3319if test "${with_zlib+set}" = set; then
3320 withval="$with_zlib"
3321
3322 if test "$withval" = yes; then
3323 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3324 elif test "$withval" = no; then
3325 ac_cv_use_zlib='wxUSE_ZLIB=no'
3326 elif test "$withval" = sys; then
3327 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3328 elif test "$withval" = builtin; then
3329 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3330 else
3331 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3332echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3333 { (exit 1); exit 1; }; }
3334 fi
3335
3336else
3337
3338 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3339 if test "x$LINE" != x ; then
3340 eval "DEFAULT_$LINE"
3341 else
3342 no_cache=1
3343 fi
3344
3345 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3346
3347fi;
3348
3349 eval "$ac_cv_use_zlib"
3350 if test "$no_cache" != 1; then
3351 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3352 fi
3353
3354 if test "$wxUSE_ZLIB" = yes; then
3355 echo "$as_me:$LINENO: result: yes" >&5
3356echo "${ECHO_T}yes" >&6
3357 elif test "$wxUSE_ZLIB" = no; then
3358 echo "$as_me:$LINENO: result: no" >&5
3359echo "${ECHO_T}no" >&6
3360 elif test "$wxUSE_ZLIB" = sys; then
3361 echo "$as_me:$LINENO: result: system version" >&5
3362echo "${ECHO_T}system version" >&6
3363 elif test "$wxUSE_ZLIB" = builtin; then
3364 echo "$as_me:$LINENO: result: builtin version" >&5
3365echo "${ECHO_T}builtin version" >&6
3366 else
3367 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3368echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3369 { (exit 1); exit 1; }; }
3370 fi
3371
3372
3373 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3374echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3375 no_cache=0
3376
3377# Check whether --with-odbc or --without-odbc was given.
3378if test "${with_odbc+set}" = set; then
3379 withval="$with_odbc"
3380
3381 if test "$withval" = yes; then
3382 ac_cv_use_odbc='wxUSE_ODBC=yes'
3383 elif test "$withval" = no; then
3384 ac_cv_use_odbc='wxUSE_ODBC=no'
3385 elif test "$withval" = sys; then
3386 ac_cv_use_odbc='wxUSE_ODBC=sys'
3387 elif test "$withval" = builtin; then
3388 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3389 else
3390 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3391echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3392 { (exit 1); exit 1; }; }
3393 fi
3394
3395else
3396
3397 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3398 if test "x$LINE" != x ; then
3399 eval "DEFAULT_$LINE"
3400 else
3401 no_cache=1
3402 fi
3403
3404 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3405
3406fi;
3407
3408 eval "$ac_cv_use_odbc"
3409 if test "$no_cache" != 1; then
3410 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3411 fi
3412
3413 if test "$wxUSE_ODBC" = yes; then
3414 echo "$as_me:$LINENO: result: yes" >&5
3415echo "${ECHO_T}yes" >&6
3416 elif test "$wxUSE_ODBC" = no; then
3417 echo "$as_me:$LINENO: result: no" >&5
3418echo "${ECHO_T}no" >&6
3419 elif test "$wxUSE_ODBC" = sys; then
3420 echo "$as_me:$LINENO: result: system version" >&5
3421echo "${ECHO_T}system version" >&6
3422 elif test "$wxUSE_ODBC" = builtin; then
3423 echo "$as_me:$LINENO: result: builtin version" >&5
3424echo "${ECHO_T}builtin version" >&6
3425 else
3426 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3427echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3428 { (exit 1); exit 1; }; }
3429 fi
3430
3431
3432 echo "$as_me:$LINENO: checking for --with-expat" >&5
3433echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3434 no_cache=0
3435
3436# Check whether --with-expat or --without-expat was given.
3437if test "${with_expat+set}" = set; then
3438 withval="$with_expat"
3439
3440 if test "$withval" = yes; then
3441 ac_cv_use_expat='wxUSE_EXPAT=yes'
3442 elif test "$withval" = no; then
3443 ac_cv_use_expat='wxUSE_EXPAT=no'
3444 elif test "$withval" = sys; then
3445 ac_cv_use_expat='wxUSE_EXPAT=sys'
3446 elif test "$withval" = builtin; then
3447 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3448 else
3449 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3450echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3451 { (exit 1); exit 1; }; }
3452 fi
3453
3454else
3455
3456 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3457 if test "x$LINE" != x ; then
3458 eval "DEFAULT_$LINE"
3459 else
3460 no_cache=1
3461 fi
3462
3463 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3464
3465fi;
3466
3467 eval "$ac_cv_use_expat"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_EXPAT" = yes; then
3473 echo "$as_me:$LINENO: result: yes" >&5
3474echo "${ECHO_T}yes" >&6
3475 elif test "$wxUSE_EXPAT" = no; then
3476 echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
3478 elif test "$wxUSE_EXPAT" = sys; then
3479 echo "$as_me:$LINENO: result: system version" >&5
3480echo "${ECHO_T}system version" >&6
3481 elif test "$wxUSE_EXPAT" = builtin; then
3482 echo "$as_me:$LINENO: result: builtin version" >&5
3483echo "${ECHO_T}builtin version" >&6
3484 else
3485 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3486echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3487 { (exit 1); exit 1; }; }
3488 fi
3489
3490
3491
3492
3493 enablestring=
3494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3495echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3496 no_cache=0
3497 # Check whether --enable-shared or --disable-shared was given.
3498if test "${enable_shared+set}" = set; then
3499 enableval="$enable_shared"
3500
3501 if test "$enableval" = yes; then
3502 ac_cv_use_shared='wxUSE_SHARED=yes'
3503 else
3504 ac_cv_use_shared='wxUSE_SHARED=no'
3505 fi
3506
3507else
3508
3509 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3510 if test "x$LINE" != x ; then
3511 eval "DEFAULT_$LINE"
3512 else
3513 no_cache=1
3514 fi
3515
3516 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3517
3518fi;
3519
3520 eval "$ac_cv_use_shared"
3521 if test "$no_cache" != 1; then
3522 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3523 fi
3524
3525 if test "$wxUSE_SHARED" = yes; then
3526 echo "$as_me:$LINENO: result: yes" >&5
3527echo "${ECHO_T}yes" >&6
3528 else
3529 echo "$as_me:$LINENO: result: no" >&5
3530echo "${ECHO_T}no" >&6
3531 fi
3532
3533
3534 enablestring=
3535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3536echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3537 no_cache=0
3538 # Check whether --enable-optimise or --disable-optimise was given.
3539if test "${enable_optimise+set}" = set; then
3540 enableval="$enable_optimise"
3541
3542 if test "$enableval" = yes; then
3543 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3544 else
3545 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3546 fi
3547
3548else
3549
3550 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3551 if test "x$LINE" != x ; then
3552 eval "DEFAULT_$LINE"
3553 else
3554 no_cache=1
3555 fi
3556
3557 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3558
3559fi;
3560
3561 eval "$ac_cv_use_optimise"
3562 if test "$no_cache" != 1; then
3563 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3564 fi
3565
3566 if test "$wxUSE_OPTIMISE" = yes; then
3567 echo "$as_me:$LINENO: result: yes" >&5
3568echo "${ECHO_T}yes" >&6
3569 else
3570 echo "$as_me:$LINENO: result: no" >&5
3571echo "${ECHO_T}no" >&6
3572 fi
3573
3574
3575 enablestring=
3576 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3577echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3578 no_cache=0
3579 # Check whether --enable-debug or --disable-debug was given.
3580if test "${enable_debug+set}" = set; then
3581 enableval="$enable_debug"
3582
3583 if test "$enableval" = yes; then
3584 ac_cv_use_debug='wxUSE_DEBUG=yes'
3585 else
3586 ac_cv_use_debug='wxUSE_DEBUG=no'
3587 fi
3588
3589else
3590
3591 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3592 if test "x$LINE" != x ; then
3593 eval "DEFAULT_$LINE"
3594 else
3595 no_cache=1
3596 fi
3597
3598 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3599
3600fi;
3601
3602 eval "$ac_cv_use_debug"
3603 if test "$no_cache" != 1; then
3604 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3605 fi
3606
3607 if test "$wxUSE_DEBUG" = yes; then
3608 echo "$as_me:$LINENO: result: yes" >&5
3609echo "${ECHO_T}yes" >&6
3610 else
3611 echo "$as_me:$LINENO: result: no" >&5
3612echo "${ECHO_T}no" >&6
3613 fi
3614
3615
3616 enablestring=
3617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3618echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3619 no_cache=0
3620 # Check whether --enable-stl or --disable-stl was given.
3621if test "${enable_stl+set}" = set; then
3622 enableval="$enable_stl"
3623
3624 if test "$enableval" = yes; then
3625 ac_cv_use_stl='wxUSE_STL=yes'
3626 else
3627 ac_cv_use_stl='wxUSE_STL=no'
3628 fi
3629
3630else
3631
3632 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3633 if test "x$LINE" != x ; then
3634 eval "DEFAULT_$LINE"
3635 else
3636 no_cache=1
3637 fi
3638
3639 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3640
3641fi;
3642
3643 eval "$ac_cv_use_stl"
3644 if test "$no_cache" != 1; then
3645 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3646 fi
3647
3648 if test "$wxUSE_STL" = yes; then
3649 echo "$as_me:$LINENO: result: yes" >&5
3650echo "${ECHO_T}yes" >&6
3651 else
3652 echo "$as_me:$LINENO: result: no" >&5
3653echo "${ECHO_T}no" >&6
3654 fi
3655
3656if test "$USE_OS2" = "1"; then
69120ee4 3657 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3658
3659 enablestring=
3660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3661echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3662 no_cache=0
3663 # Check whether --enable-omf or --disable-omf was given.
3664if test "${enable_omf+set}" = set; then
3665 enableval="$enable_omf"
3666
3667 if test "$enableval" = yes; then
3668 ac_cv_use_omf='wxUSE_OMF=yes'
3669 else
3670 ac_cv_use_omf='wxUSE_OMF=no'
3671 fi
3672
3673else
3674
3675 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3676 if test "x$LINE" != x ; then
3677 eval "DEFAULT_$LINE"
3678 else
3679 no_cache=1
3680 fi
3681
3682 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3683
3684fi;
3685
3686 eval "$ac_cv_use_omf"
3687 if test "$no_cache" != 1; then
3688 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3689 fi
3690
3691 if test "$wxUSE_OMF" = yes; then
3692 echo "$as_me:$LINENO: result: yes" >&5
3693echo "${ECHO_T}yes" >&6
3694 else
3695 echo "$as_me:$LINENO: result: no" >&5
3696echo "${ECHO_T}no" >&6
3697 fi
3698
3699fi
3700
3701if test "$wxUSE_DEBUG" = "yes"; then
3702 DEFAULT_wxUSE_DEBUG_FLAG=yes
3703 DEFAULT_wxUSE_DEBUG_INFO=yes
3704 BUILD=debug
3705elif test "$wxUSE_DEBUG" = "no"; then
3706 DEFAULT_wxUSE_DEBUG_FLAG=no
3707 DEFAULT_wxUSE_DEBUG_INFO=no
3708 BUILD=release
3709fi
3710
3711
3712 enablestring=
3713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3714echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3715 no_cache=0
3716 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3717if test "${enable_debug_flag+set}" = set; then
3718 enableval="$enable_debug_flag"
3719
3720 if test "$enableval" = yes; then
3721 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3722 else
3723 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3724 fi
3725
3726else
3727
3728 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3729 if test "x$LINE" != x ; then
3730 eval "DEFAULT_$LINE"
3731 else
3732 no_cache=1
3733 fi
3734
3735 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3736
3737fi;
3738
3739 eval "$ac_cv_use_debug_flag"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_DEBUG_FLAG" = yes; then
3745 echo "$as_me:$LINENO: result: yes" >&5
3746echo "${ECHO_T}yes" >&6
3747 else
3748 echo "$as_me:$LINENO: result: no" >&5
3749echo "${ECHO_T}no" >&6
3750 fi
3751
3752
3753 enablestring=
3754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3755echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3756 no_cache=0
3757 # Check whether --enable-debug_info or --disable-debug_info was given.
3758if test "${enable_debug_info+set}" = set; then
3759 enableval="$enable_debug_info"
3760
3761 if test "$enableval" = yes; then
3762 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3763 else
3764 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3765 fi
3766
3767else
3768
3769 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3770 if test "x$LINE" != x ; then
3771 eval "DEFAULT_$LINE"
3772 else
3773 no_cache=1
3774 fi
3775
3776 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3777
3778fi;
3779
3780 eval "$ac_cv_use_debug_info"
3781 if test "$no_cache" != 1; then
3782 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3783 fi
3784
3785 if test "$wxUSE_DEBUG_INFO" = yes; then
3786 echo "$as_me:$LINENO: result: yes" >&5
3787echo "${ECHO_T}yes" >&6
3788 else
3789 echo "$as_me:$LINENO: result: no" >&5
3790echo "${ECHO_T}no" >&6
3791 fi
3792
3793
3794 enablestring=
3795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3796echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3797 no_cache=0
3798 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3799if test "${enable_debug_gdb+set}" = set; then
3800 enableval="$enable_debug_gdb"
3801
3802 if test "$enableval" = yes; then
3803 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3804 else
3805 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3806 fi
3807
3808else
3809
3810 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3811 if test "x$LINE" != x ; then
3812 eval "DEFAULT_$LINE"
3813 else
3814 no_cache=1
3815 fi
3816
3817 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3818
3819fi;
3820
3821 eval "$ac_cv_use_debug_gdb"
3822 if test "$no_cache" != 1; then
3823 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3824 fi
3825
3826 if test "$wxUSE_DEBUG_GDB" = yes; then
3827 echo "$as_me:$LINENO: result: yes" >&5
3828echo "${ECHO_T}yes" >&6
3829 else
3830 echo "$as_me:$LINENO: result: no" >&5
3831echo "${ECHO_T}no" >&6
3832 fi
3833
3834
3835 enablestring=
3836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3837echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3838 no_cache=0
3839 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3840if test "${enable_debug_cntxt+set}" = set; then
3841 enableval="$enable_debug_cntxt"
3842
3843 if test "$enableval" = yes; then
3844 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3845 else
3846 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3847 fi
3848
3849else
3850
3851 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3852 if test "x$LINE" != x ; then
3853 eval "DEFAULT_$LINE"
3854 else
3855 no_cache=1
3856 fi
3857
3858 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3859
3860fi;
3861
3862 eval "$ac_cv_use_debug_cntxt"
3863 if test "$no_cache" != 1; then
3864 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3865 fi
3866
3867 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3868 echo "$as_me:$LINENO: result: yes" >&5
3869echo "${ECHO_T}yes" >&6
3870 else
3871 echo "$as_me:$LINENO: result: no" >&5
3872echo "${ECHO_T}no" >&6
3873 fi
3874
3875
3876 enablestring=
3877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3878echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3879 no_cache=0
3880 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3881if test "${enable_mem_tracing+set}" = set; then
3882 enableval="$enable_mem_tracing"
3883
3884 if test "$enableval" = yes; then
3885 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3886 else
3887 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3888 fi
3889
3890else
3891
3892 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3893 if test "x$LINE" != x ; then
3894 eval "DEFAULT_$LINE"
3895 else
3896 no_cache=1
3897 fi
3898
3899 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3900
3901fi;
3902
3903 eval "$ac_cv_use_mem_tracing"
3904 if test "$no_cache" != 1; then
3905 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3906 fi
3907
3908 if test "$wxUSE_MEM_TRACING" = yes; then
3909 echo "$as_me:$LINENO: result: yes" >&5
3910echo "${ECHO_T}yes" >&6
3911 else
3912 echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6
3914 fi
3915
3916
3917 enablestring=
3918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3919echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3920 no_cache=0
3921 # Check whether --enable-profile or --disable-profile was given.
3922if test "${enable_profile+set}" = set; then
3923 enableval="$enable_profile"
3924
3925 if test "$enableval" = yes; then
3926 ac_cv_use_profile='wxUSE_PROFILE=yes'
3927 else
3928 ac_cv_use_profile='wxUSE_PROFILE=no'
3929 fi
3930
3931else
3932
3933 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3934 if test "x$LINE" != x ; then
3935 eval "DEFAULT_$LINE"
3936 else
3937 no_cache=1
3938 fi
3939
3940 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3941
3942fi;
3943
3944 eval "$ac_cv_use_profile"
3945 if test "$no_cache" != 1; then
3946 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3947 fi
3948
3949 if test "$wxUSE_PROFILE" = yes; then
3950 echo "$as_me:$LINENO: result: yes" >&5
3951echo "${ECHO_T}yes" >&6
3952 else
3953 echo "$as_me:$LINENO: result: no" >&5
3954echo "${ECHO_T}no" >&6
3955 fi
3956
3957
3958 enablestring=
3959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3960echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3961 no_cache=0
3962 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3963if test "${enable_no_rtti+set}" = set; then
3964 enableval="$enable_no_rtti"
3965
3966 if test "$enableval" = yes; then
3967 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3968 else
3969 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3970 fi
3971
3972else
3973
3974 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3975 if test "x$LINE" != x ; then
3976 eval "DEFAULT_$LINE"
3977 else
3978 no_cache=1
3979 fi
3980
3981 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3982
3983fi;
3984
3985 eval "$ac_cv_use_no_rtti"
3986 if test "$no_cache" != 1; then
3987 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3988 fi
3989
3990 if test "$wxUSE_NO_RTTI" = yes; then
3991 echo "$as_me:$LINENO: result: yes" >&5
3992echo "${ECHO_T}yes" >&6
3993 else
3994 echo "$as_me:$LINENO: result: no" >&5
3995echo "${ECHO_T}no" >&6
3996 fi
3997
3998
3999 enablestring=
4000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4001echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4002 no_cache=0
4003 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4004if test "${enable_no_exceptions+set}" = set; then
4005 enableval="$enable_no_exceptions"
4006
4007 if test "$enableval" = yes; then
4008 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4009 else
4010 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4011 fi
4012
4013else
4014
4015 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4016 if test "x$LINE" != x ; then
4017 eval "DEFAULT_$LINE"
4018 else
4019 no_cache=1
4020 fi
4021
4022 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4023
4024fi;
4025
4026 eval "$ac_cv_use_no_exceptions"
4027 if test "$no_cache" != 1; then
4028 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4029 fi
4030
4031 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4032 echo "$as_me:$LINENO: result: yes" >&5
4033echo "${ECHO_T}yes" >&6
4034 else
4035 echo "$as_me:$LINENO: result: no" >&5
4036echo "${ECHO_T}no" >&6
4037 fi
4038
4039
4040 enablestring=
4041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4042echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4043 no_cache=0
4044 # Check whether --enable-permissive or --disable-permissive was given.
4045if test "${enable_permissive+set}" = set; then
4046 enableval="$enable_permissive"
4047
4048 if test "$enableval" = yes; then
4049 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4050 else
4051 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4052 fi
4053
4054else
4055
4056 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4057 if test "x$LINE" != x ; then
4058 eval "DEFAULT_$LINE"
4059 else
4060 no_cache=1
4061 fi
4062
4063 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4064
4065fi;
4066
4067 eval "$ac_cv_use_permissive"
4068 if test "$no_cache" != 1; then
4069 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4070 fi
4071
4072 if test "$wxUSE_PERMISSIVE" = yes; then
4073 echo "$as_me:$LINENO: result: yes" >&5
4074echo "${ECHO_T}yes" >&6
4075 else
4076 echo "$as_me:$LINENO: result: no" >&5
4077echo "${ECHO_T}no" >&6
4078 fi
4079
4080
4081 enablestring=
4082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4083echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4084 no_cache=0
4085 # Check whether --enable-no_deps or --disable-no_deps was given.
4086if test "${enable_no_deps+set}" = set; then
4087 enableval="$enable_no_deps"
4088
4089 if test "$enableval" = yes; then
4090 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4091 else
4092 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4093 fi
4094
4095else
4096
4097 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4098 if test "x$LINE" != x ; then
4099 eval "DEFAULT_$LINE"
4100 else
4101 no_cache=1
4102 fi
4103
4104 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4105
4106fi;
4107
4108 eval "$ac_cv_use_no_deps"
4109 if test "$no_cache" != 1; then
4110 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4111 fi
4112
4113 if test "$wxUSE_NO_DEPS" = yes; then
4114 echo "$as_me:$LINENO: result: yes" >&5
4115echo "${ECHO_T}yes" >&6
4116 else
4117 echo "$as_me:$LINENO: result: no" >&5
4118echo "${ECHO_T}no" >&6
4119 fi
4120
4121
4122
4123 enablestring=
4124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4125echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4126 no_cache=0
4127 # Check whether --enable-compat22 or --disable-compat22 was given.
4128if test "${enable_compat22+set}" = set; then
4129 enableval="$enable_compat22"
4130
4131 if test "$enableval" = yes; then
4132 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4133 else
4134 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4135 fi
4136
4137else
4138
4139 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4140 if test "x$LINE" != x ; then
4141 eval "DEFAULT_$LINE"
4142 else
4143 no_cache=1
4144 fi
4145
4146 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4147
4148fi;
4149
4150 eval "$ac_cv_use_compat22"
4151 if test "$no_cache" != 1; then
4152 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4153 fi
4154
4155 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4156 echo "$as_me:$LINENO: result: yes" >&5
4157echo "${ECHO_T}yes" >&6
4158 else
4159 echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161 fi
4162
4163
4164 enablestring=disable
4165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4166echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4167 no_cache=0
4168 # Check whether --enable-compat24 or --disable-compat24 was given.
4169if test "${enable_compat24+set}" = set; then
4170 enableval="$enable_compat24"
4171
4172 if test "$enableval" = yes; then
4173 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4174 else
4175 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4176 fi
4177
4178else
4179
4180 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4181 if test "x$LINE" != x ; then
4182 eval "DEFAULT_$LINE"
4183 else
4184 no_cache=1
4185 fi
4186
4187 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4188
4189fi;
4190
4191 eval "$ac_cv_use_compat24"
4192 if test "$no_cache" != 1; then
4193 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4194 fi
4195
4196 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4197 echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6
4199 else
4200 echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
4202 fi
4203
4204
ffa0583f
RL
4205
4206 enablestring=
4207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4208echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4209 no_cache=0
4210 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4211if test "${enable_rpath+set}" = set; then
4212 enableval="$enable_rpath"
ffa0583f
RL
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_rpath='wxUSE_RPATH=yes'
4216 else
4217 ac_cv_use_rpath='wxUSE_RPATH=no'
4218 fi
4219
4220else
4221
4222 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4230
a848cd7e
SC
4231fi;
4232
ffa0583f
RL
4233 eval "$ac_cv_use_rpath"
4234 if test "$no_cache" != 1; then
4235 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4236 fi
4237
4238 if test "$wxUSE_RPATH" = yes; then
4239 echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
4241 else
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244 fi
4245
a848cd7e
SC
4246
4247
4248
4249
4250 enablestring=
4251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4252echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4253 no_cache=0
4254 # Check whether --enable-intl or --disable-intl was given.
4255if test "${enable_intl+set}" = set; then
4256 enableval="$enable_intl"
4257
4258 if test "$enableval" = yes; then
4259 ac_cv_use_intl='wxUSE_INTL=yes'
4260 else
4261 ac_cv_use_intl='wxUSE_INTL=no'
4262 fi
4263
4264else
4265
4266 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4274
4275fi;
4276
4277 eval "$ac_cv_use_intl"
4278 if test "$no_cache" != 1; then
4279 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4280 fi
4281
4282 if test "$wxUSE_INTL" = yes; then
4283 echo "$as_me:$LINENO: result: yes" >&5
4284echo "${ECHO_T}yes" >&6
4285 else
4286 echo "$as_me:$LINENO: result: no" >&5
4287echo "${ECHO_T}no" >&6
4288 fi
4289
4290
4291 enablestring=
4292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4293echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4294 no_cache=0
4295 # Check whether --enable-config or --disable-config was given.
4296if test "${enable_config+set}" = set; then
4297 enableval="$enable_config"
4298
4299 if test "$enableval" = yes; then
4300 ac_cv_use_config='wxUSE_CONFIG=yes'
4301 else
4302 ac_cv_use_config='wxUSE_CONFIG=no'
4303 fi
4304
4305else
4306
4307 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4308 if test "x$LINE" != x ; then
4309 eval "DEFAULT_$LINE"
4310 else
4311 no_cache=1
4312 fi
4313
4314 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4315
4316fi;
4317
4318 eval "$ac_cv_use_config"
4319 if test "$no_cache" != 1; then
4320 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4321 fi
4322
4323 if test "$wxUSE_CONFIG" = yes; then
4324 echo "$as_me:$LINENO: result: yes" >&5
4325echo "${ECHO_T}yes" >&6
4326 else
4327 echo "$as_me:$LINENO: result: no" >&5
4328echo "${ECHO_T}no" >&6
4329 fi
4330
4331
4332
4333 enablestring=
4334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4335echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4336 no_cache=0
4337 # Check whether --enable-protocols or --disable-protocols was given.
4338if test "${enable_protocols+set}" = set; then
4339 enableval="$enable_protocols"
4340
4341 if test "$enableval" = yes; then
4342 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4343 else
4344 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4345 fi
4346
4347else
4348
4349 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4350 if test "x$LINE" != x ; then
4351 eval "DEFAULT_$LINE"
4352 else
4353 no_cache=1
4354 fi
4355
4356 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4357
4358fi;
4359
4360 eval "$ac_cv_use_protocols"
4361 if test "$no_cache" != 1; then
4362 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4363 fi
4364
4365 if test "$wxUSE_PROTOCOL" = yes; then
4366 echo "$as_me:$LINENO: result: yes" >&5
4367echo "${ECHO_T}yes" >&6
4368 else
4369 echo "$as_me:$LINENO: result: no" >&5
4370echo "${ECHO_T}no" >&6
4371 fi
4372
4373
4374 enablestring=
4375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4376echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4377 no_cache=0
4378 # Check whether --enable-ftp or --disable-ftp was given.
4379if test "${enable_ftp+set}" = set; then
4380 enableval="$enable_ftp"
4381
4382 if test "$enableval" = yes; then
4383 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4384 else
4385 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4386 fi
4387
4388else
4389
4390 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4391 if test "x$LINE" != x ; then
4392 eval "DEFAULT_$LINE"
4393 else
4394 no_cache=1
4395 fi
4396
4397 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4398
4399fi;
4400
4401 eval "$ac_cv_use_ftp"
4402 if test "$no_cache" != 1; then
4403 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4404 fi
4405
4406 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4407 echo "$as_me:$LINENO: result: yes" >&5
4408echo "${ECHO_T}yes" >&6
4409 else
4410 echo "$as_me:$LINENO: result: no" >&5
4411echo "${ECHO_T}no" >&6
4412 fi
4413
4414
4415 enablestring=
4416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4417echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4418 no_cache=0
4419 # Check whether --enable-http or --disable-http was given.
4420if test "${enable_http+set}" = set; then
4421 enableval="$enable_http"
4422
4423 if test "$enableval" = yes; then
4424 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4425 else
4426 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4427 fi
4428
4429else
4430
4431 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4432 if test "x$LINE" != x ; then
4433 eval "DEFAULT_$LINE"
4434 else
4435 no_cache=1
4436 fi
4437
4438 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4439
4440fi;
4441
4442 eval "$ac_cv_use_http"
4443 if test "$no_cache" != 1; then
4444 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4445 fi
4446
4447 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4448 echo "$as_me:$LINENO: result: yes" >&5
4449echo "${ECHO_T}yes" >&6
4450 else
4451 echo "$as_me:$LINENO: result: no" >&5
4452echo "${ECHO_T}no" >&6
4453 fi
4454
4455
4456 enablestring=
4457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4458echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4459 no_cache=0
4460 # Check whether --enable-fileproto or --disable-fileproto was given.
4461if test "${enable_fileproto+set}" = set; then
4462 enableval="$enable_fileproto"
4463
4464 if test "$enableval" = yes; then
4465 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4466 else
4467 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4468 fi
4469
4470else
4471
4472 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4473 if test "x$LINE" != x ; then
4474 eval "DEFAULT_$LINE"
4475 else
4476 no_cache=1
4477 fi
4478
4479 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4480
4481fi;
4482
4483 eval "$ac_cv_use_fileproto"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4489 echo "$as_me:$LINENO: result: yes" >&5
4490echo "${ECHO_T}yes" >&6
4491 else
4492 echo "$as_me:$LINENO: result: no" >&5
4493echo "${ECHO_T}no" >&6
4494 fi
4495
4496
4497 enablestring=
4498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4499echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4500 no_cache=0
4501 # Check whether --enable-sockets or --disable-sockets was given.
4502if test "${enable_sockets+set}" = set; then
4503 enableval="$enable_sockets"
4504
4505 if test "$enableval" = yes; then
4506 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4507 else
4508 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4509 fi
4510
4511else
4512
4513 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4514 if test "x$LINE" != x ; then
4515 eval "DEFAULT_$LINE"
4516 else
4517 no_cache=1
4518 fi
4519
4520 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4521
4522fi;
4523
4524 eval "$ac_cv_use_sockets"
4525 if test "$no_cache" != 1; then
4526 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4527 fi
4528
4529 if test "$wxUSE_SOCKETS" = yes; then
4530 echo "$as_me:$LINENO: result: yes" >&5
4531echo "${ECHO_T}yes" >&6
4532 else
4533 echo "$as_me:$LINENO: result: no" >&5
4534echo "${ECHO_T}no" >&6
4535 fi
4536
4537
4538 enablestring=
4539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4540echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4541 no_cache=0
4542 # Check whether --enable-ole or --disable-ole was given.
4543if test "${enable_ole+set}" = set; then
4544 enableval="$enable_ole"
4545
4546 if test "$enableval" = yes; then
4547 ac_cv_use_ole='wxUSE_OLE=yes'
4548 else
4549 ac_cv_use_ole='wxUSE_OLE=no'
4550 fi
4551
4552else
4553
4554 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4555 if test "x$LINE" != x ; then
4556 eval "DEFAULT_$LINE"
4557 else
4558 no_cache=1
4559 fi
4560
4561 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4562
4563fi;
4564
4565 eval "$ac_cv_use_ole"
4566 if test "$no_cache" != 1; then
4567 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4568 fi
4569
4570 if test "$wxUSE_OLE" = yes; then
4571 echo "$as_me:$LINENO: result: yes" >&5
4572echo "${ECHO_T}yes" >&6
4573 else
4574 echo "$as_me:$LINENO: result: no" >&5
4575echo "${ECHO_T}no" >&6
4576 fi
4577
4578
4579 enablestring=
4580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4581echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4582 no_cache=0
4583 # Check whether --enable-dataobj or --disable-dataobj was given.
4584if test "${enable_dataobj+set}" = set; then
4585 enableval="$enable_dataobj"
4586
4587 if test "$enableval" = yes; then
4588 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4589 else
4590 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4591 fi
4592
4593else
4594
4595 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4596 if test "x$LINE" != x ; then
4597 eval "DEFAULT_$LINE"
4598 else
4599 no_cache=1
4600 fi
4601
4602 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4603
4604fi;
4605
4606 eval "$ac_cv_use_dataobj"
4607 if test "$no_cache" != 1; then
4608 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4609 fi
4610
4611 if test "$wxUSE_DATAOBJ" = yes; then
4612 echo "$as_me:$LINENO: result: yes" >&5
4613echo "${ECHO_T}yes" >&6
4614 else
4615 echo "$as_me:$LINENO: result: no" >&5
4616echo "${ECHO_T}no" >&6
4617 fi
4618
4619
4620
4621 enablestring=
4622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4623echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4624 no_cache=0
4625 # Check whether --enable-ipc or --disable-ipc was given.
4626if test "${enable_ipc+set}" = set; then
4627 enableval="$enable_ipc"
4628
4629 if test "$enableval" = yes; then
4630 ac_cv_use_ipc='wxUSE_IPC=yes'
4631 else
4632 ac_cv_use_ipc='wxUSE_IPC=no'
4633 fi
4634
4635else
4636
4637 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4638 if test "x$LINE" != x ; then
4639 eval "DEFAULT_$LINE"
4640 else
4641 no_cache=1
4642 fi
4643
4644 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4645
4646fi;
4647
4648 eval "$ac_cv_use_ipc"
4649 if test "$no_cache" != 1; then
4650 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4651 fi
4652
4653 if test "$wxUSE_IPC" = yes; then
4654 echo "$as_me:$LINENO: result: yes" >&5
4655echo "${ECHO_T}yes" >&6
4656 else
4657 echo "$as_me:$LINENO: result: no" >&5
4658echo "${ECHO_T}no" >&6
4659 fi
4660
4661
4662
4663 enablestring=
4664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4665echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4666 no_cache=0
4667 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4668if test "${enable_apple_ieee+set}" = set; then
4669 enableval="$enable_apple_ieee"
4670
4671 if test "$enableval" = yes; then
4672 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4673 else
4674 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4675 fi
4676
4677else
4678
4679 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4680 if test "x$LINE" != x ; then
4681 eval "DEFAULT_$LINE"
4682 else
4683 no_cache=1
4684 fi
4685
4686 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4687
4688fi;
4689
4690 eval "$ac_cv_use_apple_ieee"
4691 if test "$no_cache" != 1; then
4692 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4693 fi
4694
4695 if test "$wxUSE_APPLE_IEEE" = yes; then
4696 echo "$as_me:$LINENO: result: yes" >&5
4697echo "${ECHO_T}yes" >&6
4698 else
4699 echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6
4701 fi
4702
4703
81f90336
MW
4704 enablestring=
4705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4706echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4707 no_cache=0
4708 # Check whether --enable-arcstream or --disable-arcstream was given.
4709if test "${enable_arcstream+set}" = set; then
4710 enableval="$enable_arcstream"
4711
4712 if test "$enableval" = yes; then
9e8e867f 4713 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4714 else
9e8e867f 4715 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4716 fi
4717
4718else
4719
9e8e867f 4720 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4721 if test "x$LINE" != x ; then
4722 eval "DEFAULT_$LINE"
4723 else
4724 no_cache=1
4725 fi
4726
9e8e867f 4727 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4728
4729fi;
4730
4731 eval "$ac_cv_use_arcstream"
4732 if test "$no_cache" != 1; then
4733 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4734 fi
4735
9e8e867f 4736 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4737 echo "$as_me:$LINENO: result: yes" >&5
4738echo "${ECHO_T}yes" >&6
4739 else
4740 echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6
4742 fi
4743
4744
a848cd7e 4745 enablestring=
36b6448c
VZ
4746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4747echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4748 no_cache=0
36b6448c
VZ
4749 # Check whether --enable-backtrace or --disable-backtrace was given.
4750if test "${enable_backtrace+set}" = set; then
4751 enableval="$enable_backtrace"
a848cd7e
SC
4752
4753 if test "$enableval" = yes; then
36b6448c 4754 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4755 else
36b6448c 4756 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4757 fi
4758
4759else
4760
36b6448c 4761 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4762 if test "x$LINE" != x ; then
4763 eval "DEFAULT_$LINE"
4764 else
4765 no_cache=1
4766 fi
4767
36b6448c 4768 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4769
4770fi;
4771
36b6448c 4772 eval "$ac_cv_use_backtrace"
a848cd7e 4773 if test "$no_cache" != 1; then
36b6448c 4774 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4775 fi
4776
36b6448c 4777 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4778 echo "$as_me:$LINENO: result: yes" >&5
4779echo "${ECHO_T}yes" >&6
4780 else
4781 echo "$as_me:$LINENO: result: no" >&5
4782echo "${ECHO_T}no" >&6
4783 fi
4784
4785
eaff0f0d 4786 enablestring=
36b6448c
VZ
4787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4788echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4789 no_cache=0
36b6448c
VZ
4790 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4791if test "${enable_catch_segvs+set}" = set; then
4792 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4793
4794 if test "$enableval" = yes; then
36b6448c 4795 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4796 else
36b6448c 4797 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4798 fi
4799
4800else
4801
36b6448c 4802 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4803 if test "x$LINE" != x ; then
4804 eval "DEFAULT_$LINE"
4805 else
4806 no_cache=1
4807 fi
4808
36b6448c 4809 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4810
4811fi;
4812
36b6448c 4813 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4814 if test "$no_cache" != 1; then
36b6448c 4815 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4816 fi
4817
36b6448c 4818 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4819 echo "$as_me:$LINENO: result: yes" >&5
4820echo "${ECHO_T}yes" >&6
4821 else
4822 echo "$as_me:$LINENO: result: no" >&5
4823echo "${ECHO_T}no" >&6
4824 fi
4825
4826
a848cd7e
SC
4827 enablestring=
4828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4829echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4830 no_cache=0
4831 # Check whether --enable-cmdline or --disable-cmdline was given.
4832if test "${enable_cmdline+set}" = set; then
4833 enableval="$enable_cmdline"
4834
4835 if test "$enableval" = yes; then
4836 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4837 else
4838 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4839 fi
4840
4841else
4842
4843 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4844 if test "x$LINE" != x ; then
4845 eval "DEFAULT_$LINE"
4846 else
4847 no_cache=1
4848 fi
4849
4850 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4851
4852fi;
4853
4854 eval "$ac_cv_use_cmdline"
4855 if test "$no_cache" != 1; then
4856 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4857 fi
4858
4859 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4860 echo "$as_me:$LINENO: result: yes" >&5
4861echo "${ECHO_T}yes" >&6
4862 else
4863 echo "$as_me:$LINENO: result: no" >&5
4864echo "${ECHO_T}no" >&6
4865 fi
4866
4867
4868 enablestring=
4869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4870echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4871 no_cache=0
4872 # Check whether --enable-datetime or --disable-datetime was given.
4873if test "${enable_datetime+set}" = set; then
4874 enableval="$enable_datetime"
4875
4876 if test "$enableval" = yes; then
4877 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4878 else
4879 ac_cv_use_datetime='wxUSE_DATETIME=no'
4880 fi
4881
4882else
4883
4884 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4885 if test "x$LINE" != x ; then
4886 eval "DEFAULT_$LINE"
4887 else
4888 no_cache=1
4889 fi
4890
4891 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4892
4893fi;
4894
4895 eval "$ac_cv_use_datetime"
4896 if test "$no_cache" != 1; then
4897 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4898 fi
4899
4900 if test "$wxUSE_DATETIME" = yes; then
4901 echo "$as_me:$LINENO: result: yes" >&5
4902echo "${ECHO_T}yes" >&6
4903 else
4904 echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6
4906 fi
4907
4908
36b6448c
VZ
4909 enablestring=
4910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4911echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4912 no_cache=0
4913 # Check whether --enable-debugreport or --disable-debugreport was given.
4914if test "${enable_debugreport+set}" = set; then
4915 enableval="$enable_debugreport"
4916
4917 if test "$enableval" = yes; then
4918 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4919 else
4920 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4921 fi
4922
4923else
4924
4925 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4926 if test "x$LINE" != x ; then
4927 eval "DEFAULT_$LINE"
4928 else
4929 no_cache=1
4930 fi
4931
4932 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4933
4934fi;
4935
4936 eval "$ac_cv_use_debugreport"
4937 if test "$no_cache" != 1; then
4938 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4939 fi
4940
4941 if test "$wxUSE_DEBUGREPORT" = yes; then
4942 echo "$as_me:$LINENO: result: yes" >&5
4943echo "${ECHO_T}yes" >&6
4944 else
4945 echo "$as_me:$LINENO: result: no" >&5
4946echo "${ECHO_T}no" >&6
4947 fi
4948
4949
a848cd7e
SC
4950 enablestring=
4951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4952echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4953 no_cache=0
4954 # Check whether --enable-dialupman or --disable-dialupman was given.
4955if test "${enable_dialupman+set}" = set; then
4956 enableval="$enable_dialupman"
4957
4958 if test "$enableval" = yes; then
4959 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4960 else
4961 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4962 fi
4963
4964else
4965
4966 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4967 if test "x$LINE" != x ; then
4968 eval "DEFAULT_$LINE"
4969 else
4970 no_cache=1
4971 fi
4972
4973 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4974
4975fi;
4976
4977 eval "$ac_cv_use_dialupman"
4978 if test "$no_cache" != 1; then
4979 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4980 fi
4981
4982 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4983 echo "$as_me:$LINENO: result: yes" >&5
4984echo "${ECHO_T}yes" >&6
4985 else
4986 echo "$as_me:$LINENO: result: no" >&5
4987echo "${ECHO_T}no" >&6
4988 fi
4989
4990
4991 enablestring=
4992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4993echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4994 no_cache=0
4995 # Check whether --enable-dynlib or --disable-dynlib was given.
4996if test "${enable_dynlib+set}" = set; then
4997 enableval="$enable_dynlib"
4998
4999 if test "$enableval" = yes; then
5000 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5001 else
5002 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5003 fi
5004
5005else
5006
5007 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5008 if test "x$LINE" != x ; then
5009 eval "DEFAULT_$LINE"
5010 else
5011 no_cache=1
5012 fi
5013
5014 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5015
5016fi;
5017
5018 eval "$ac_cv_use_dynlib"
5019 if test "$no_cache" != 1; then
5020 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5021 fi
5022
5023 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5024 echo "$as_me:$LINENO: result: yes" >&5
5025echo "${ECHO_T}yes" >&6
5026 else
5027 echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6
5029 fi
5030
5031
5032 enablestring=
5033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5034echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5035 no_cache=0
5036 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5037if test "${enable_dynamicloader+set}" = set; then
5038 enableval="$enable_dynamicloader"
5039
5040 if test "$enableval" = yes; then
5041 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5042 else
5043 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5044 fi
5045
5046else
5047
5048 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5049 if test "x$LINE" != x ; then
5050 eval "DEFAULT_$LINE"
5051 else
5052 no_cache=1
5053 fi
5054
5055 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5056
5057fi;
5058
5059 eval "$ac_cv_use_dynamicloader"
5060 if test "$no_cache" != 1; then
5061 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5062 fi
5063
5064 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5065 echo "$as_me:$LINENO: result: yes" >&5
5066echo "${ECHO_T}yes" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069echo "${ECHO_T}no" >&6
5070 fi
5071
5072
5073 enablestring=
5074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5075echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5076 no_cache=0
5077 # Check whether --enable-exceptions or --disable-exceptions was given.
5078if test "${enable_exceptions+set}" = set; then
5079 enableval="$enable_exceptions"
5080
5081 if test "$enableval" = yes; then
5082 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5083 else
5084 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5085 fi
5086
5087else
5088
5089 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5090 if test "x$LINE" != x ; then
5091 eval "DEFAULT_$LINE"
5092 else
5093 no_cache=1
5094 fi
5095
5096 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5097
5098fi;
5099
5100 eval "$ac_cv_use_exceptions"
5101 if test "$no_cache" != 1; then
5102 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5103 fi
5104
5105 if test "$wxUSE_EXCEPTIONS" = yes; then
5106 echo "$as_me:$LINENO: result: yes" >&5
5107echo "${ECHO_T}yes" >&6
5108 else
5109 echo "$as_me:$LINENO: result: no" >&5
5110echo "${ECHO_T}no" >&6
5111 fi
5112
5113
5114 enablestring=
5115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5116echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5117 no_cache=0
5118 # Check whether --enable-ffile or --disable-ffile was given.
5119if test "${enable_ffile+set}" = set; then
5120 enableval="$enable_ffile"
5121
5122 if test "$enableval" = yes; then
5123 ac_cv_use_ffile='wxUSE_FFILE=yes'
5124 else
5125 ac_cv_use_ffile='wxUSE_FFILE=no'
5126 fi
5127
5128else
5129
5130 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5131 if test "x$LINE" != x ; then
5132 eval "DEFAULT_$LINE"
5133 else
5134 no_cache=1
5135 fi
5136
5137 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5138
5139fi;
5140
5141 eval "$ac_cv_use_ffile"
5142 if test "$no_cache" != 1; then
5143 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5144 fi
5145
5146 if test "$wxUSE_FFILE" = yes; then
5147 echo "$as_me:$LINENO: result: yes" >&5
5148echo "${ECHO_T}yes" >&6
5149 else
5150 echo "$as_me:$LINENO: result: no" >&5
5151echo "${ECHO_T}no" >&6
5152 fi
5153
5154
5155 enablestring=
5156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5157echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5158 no_cache=0
5159 # Check whether --enable-file or --disable-file was given.
5160if test "${enable_file+set}" = set; then
5161 enableval="$enable_file"
5162
5163 if test "$enableval" = yes; then
5164 ac_cv_use_file='wxUSE_FILE=yes'
5165 else
5166 ac_cv_use_file='wxUSE_FILE=no'
5167 fi
5168
5169else
5170
5171 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5172 if test "x$LINE" != x ; then
5173 eval "DEFAULT_$LINE"
5174 else
5175 no_cache=1
5176 fi
5177
5178 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5179
5180fi;
5181
5182 eval "$ac_cv_use_file"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_FILE" = yes; then
5188 echo "$as_me:$LINENO: result: yes" >&5
5189echo "${ECHO_T}yes" >&6
5190 else
5191 echo "$as_me:$LINENO: result: no" >&5
5192echo "${ECHO_T}no" >&6
5193 fi
5194
5195
5196 enablestring=
5197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5198echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5199 no_cache=0
5200 # Check whether --enable-filesystem or --disable-filesystem was given.
5201if test "${enable_filesystem+set}" = set; then
5202 enableval="$enable_filesystem"
5203
5204 if test "$enableval" = yes; then
5205 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5206 else
5207 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5208 fi
5209
5210else
5211
5212 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5213 if test "x$LINE" != x ; then
5214 eval "DEFAULT_$LINE"
5215 else
5216 no_cache=1
5217 fi
5218
5219 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5220
5221fi;
5222
5223 eval "$ac_cv_use_filesystem"
5224 if test "$no_cache" != 1; then
5225 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5226 fi
5227
5228 if test "$wxUSE_FILESYSTEM" = yes; then
5229 echo "$as_me:$LINENO: result: yes" >&5
5230echo "${ECHO_T}yes" >&6
5231 else
5232 echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6
5234 fi
5235
5236
5237 enablestring=
5238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5239echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5240 no_cache=0
5241 # Check whether --enable-fontmap or --disable-fontmap was given.
5242if test "${enable_fontmap+set}" = set; then
5243 enableval="$enable_fontmap"
5244
5245 if test "$enableval" = yes; then
5246 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5247 else
5248 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5249 fi
5250
5251else
5252
5253 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5261
5262fi;
5263
5264 eval "$ac_cv_use_fontmap"
5265 if test "$no_cache" != 1; then
5266 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5267 fi
5268
5269 if test "$wxUSE_FONTMAP" = yes; then
5270 echo "$as_me:$LINENO: result: yes" >&5
5271echo "${ECHO_T}yes" >&6
5272 else
5273 echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
5275 fi
5276
5277
5278 enablestring=
5279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5280echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5281 no_cache=0
5282 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5283if test "${enable_fs_inet+set}" = set; then
5284 enableval="$enable_fs_inet"
5285
5286 if test "$enableval" = yes; then
5287 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5288 else
5289 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5290 fi
5291
5292else
5293
5294 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5295 if test "x$LINE" != x ; then
5296 eval "DEFAULT_$LINE"
5297 else
5298 no_cache=1
5299 fi
5300
5301 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5302
5303fi;
5304
5305 eval "$ac_cv_use_fs_inet"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_FS_INET" = yes; then
5311 echo "$as_me:$LINENO: result: yes" >&5
5312echo "${ECHO_T}yes" >&6
5313 else
5314 echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6
5316 fi
5317
5318
5319 enablestring=
5320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5321echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5322 no_cache=0
5323 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5324if test "${enable_fs_zip+set}" = set; then
5325 enableval="$enable_fs_zip"
5326
5327 if test "$enableval" = yes; then
5328 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5329 else
5330 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5331 fi
5332
5333else
5334
5335 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5343
5344fi;
5345
5346 eval "$ac_cv_use_fs_zip"
5347 if test "$no_cache" != 1; then
5348 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5349 fi
5350
5351 if test "$wxUSE_FS_ZIP" = yes; then
5352 echo "$as_me:$LINENO: result: yes" >&5
5353echo "${ECHO_T}yes" >&6
5354 else
5355 echo "$as_me:$LINENO: result: no" >&5
5356echo "${ECHO_T}no" >&6
5357 fi
5358
5359
5360 enablestring=
5361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5362echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5363 no_cache=0
5364 # Check whether --enable-geometry or --disable-geometry was given.
5365if test "${enable_geometry+set}" = set; then
5366 enableval="$enable_geometry"
5367
5368 if test "$enableval" = yes; then
5369 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5370 else
5371 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5372 fi
5373
5374else
5375
5376 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5377 if test "x$LINE" != x ; then
5378 eval "DEFAULT_$LINE"
5379 else
5380 no_cache=1
5381 fi
5382
5383 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5384
5385fi;
5386
5387 eval "$ac_cv_use_geometry"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_GEOMETRY" = yes; then
5393 echo "$as_me:$LINENO: result: yes" >&5
5394echo "${ECHO_T}yes" >&6
5395 else
5396 echo "$as_me:$LINENO: result: no" >&5
5397echo "${ECHO_T}no" >&6
5398 fi
5399
5400
5401 enablestring=
5402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5403echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5404 no_cache=0
5405 # Check whether --enable-log or --disable-log was given.
5406if test "${enable_log+set}" = set; then
5407 enableval="$enable_log"
5408
5409 if test "$enableval" = yes; then
5410 ac_cv_use_log='wxUSE_LOG=yes'
5411 else
5412 ac_cv_use_log='wxUSE_LOG=no'
5413 fi
5414
5415else
5416
5417 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5418 if test "x$LINE" != x ; then
5419 eval "DEFAULT_$LINE"
5420 else
5421 no_cache=1
5422 fi
5423
5424 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5425
5426fi;
5427
5428 eval "$ac_cv_use_log"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_LOG" = yes; then
5434 echo "$as_me:$LINENO: result: yes" >&5
5435echo "${ECHO_T}yes" >&6
5436 else
5437 echo "$as_me:$LINENO: result: no" >&5
5438echo "${ECHO_T}no" >&6
5439 fi
5440
5441
5442 enablestring=
5443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5444echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5445 no_cache=0
5446 # Check whether --enable-longlong or --disable-longlong was given.
5447if test "${enable_longlong+set}" = set; then
5448 enableval="$enable_longlong"
5449
5450 if test "$enableval" = yes; then
5451 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5452 else
5453 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5454 fi
5455
5456else
5457
5458 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5459 if test "x$LINE" != x ; then
5460 eval "DEFAULT_$LINE"
5461 else
5462 no_cache=1
5463 fi
5464
5465 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5466
5467fi;
5468
5469 eval "$ac_cv_use_longlong"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_LONGLONG" = yes; then
5475 echo "$as_me:$LINENO: result: yes" >&5
5476echo "${ECHO_T}yes" >&6
5477 else
5478 echo "$as_me:$LINENO: result: no" >&5
5479echo "${ECHO_T}no" >&6
5480 fi
5481
5482
5483 enablestring=
5484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5485echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5486 no_cache=0
5487 # Check whether --enable-mimetype or --disable-mimetype was given.
5488if test "${enable_mimetype+set}" = set; then
5489 enableval="$enable_mimetype"
5490
5491 if test "$enableval" = yes; then
5492 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5493 else
5494 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5495 fi
5496
5497else
5498
5499 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5500 if test "x$LINE" != x ; then
5501 eval "DEFAULT_$LINE"
5502 else
5503 no_cache=1
5504 fi
5505
5506 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5507
5508fi;
5509
5510 eval "$ac_cv_use_mimetype"
5511 if test "$no_cache" != 1; then
5512 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5513 fi
5514
5515 if test "$wxUSE_MIMETYPE" = yes; then
5516 echo "$as_me:$LINENO: result: yes" >&5
5517echo "${ECHO_T}yes" >&6
5518 else
5519 echo "$as_me:$LINENO: result: no" >&5
5520echo "${ECHO_T}no" >&6
5521 fi
5522
5523
5524 enablestring=
5525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5526echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5527 no_cache=0
5528 # Check whether --enable-mslu or --disable-mslu was given.
5529if test "${enable_mslu+set}" = set; then
5530 enableval="$enable_mslu"
5531
5532 if test "$enableval" = yes; then
5533 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5534 else
5535 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5536 fi
5537
5538else
5539
5540 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5541 if test "x$LINE" != x ; then
5542 eval "DEFAULT_$LINE"
5543 else
5544 no_cache=1
5545 fi
5546
5547 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5548
5549fi;
5550
5551 eval "$ac_cv_use_mslu"
5552 if test "$no_cache" != 1; then
5553 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5554 fi
5555
5556 if test "$wxUSE_UNICODE_MSLU" = yes; then
5557 echo "$as_me:$LINENO: result: yes" >&5
5558echo "${ECHO_T}yes" >&6
5559 else
5560 echo "$as_me:$LINENO: result: no" >&5
5561echo "${ECHO_T}no" >&6
5562 fi
5563
5564
5565 enablestring=
5566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5567echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5568 no_cache=0
5569 # Check whether --enable-snglinst or --disable-snglinst was given.
5570if test "${enable_snglinst+set}" = set; then
5571 enableval="$enable_snglinst"
5572
5573 if test "$enableval" = yes; then
5574 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5575 else
5576 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5577 fi
5578
5579else
5580
5581 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5589
5590fi;
5591
5592 eval "$ac_cv_use_snglinst"
5593 if test "$no_cache" != 1; then
5594 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5595 fi
5596
5597 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5598 echo "$as_me:$LINENO: result: yes" >&5
5599echo "${ECHO_T}yes" >&6
5600 else
5601 echo "$as_me:$LINENO: result: no" >&5
5602echo "${ECHO_T}no" >&6
5603 fi
5604
5605
5606 enablestring=
07158944
VZ
5607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5608echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5609 no_cache=0
07158944
VZ
5610 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5611if test "${enable_std_iostreams+set}" = set; then
5612 enableval="$enable_std_iostreams"
a848cd7e
SC
5613
5614 if test "$enableval" = yes; then
07158944 5615 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5616 else
07158944 5617 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5618 fi
5619
5620else
5621
07158944 5622 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5623 if test "x$LINE" != x ; then
5624 eval "DEFAULT_$LINE"
5625 else
5626 no_cache=1
5627 fi
5628
07158944 5629 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5630
5631fi;
5632
07158944 5633 eval "$ac_cv_use_std_iostreams"
a848cd7e 5634 if test "$no_cache" != 1; then
07158944 5635 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5636 fi
5637
07158944 5638 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5639 echo "$as_me:$LINENO: result: yes" >&5
5640echo "${ECHO_T}yes" >&6
5641 else
5642 echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6
5644 fi
5645
5646
59746b65
MW
5647 enablestring=
5648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5649echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5650 no_cache=0
5651 # Check whether --enable-std_string or --disable-std_string was given.
5652if test "${enable_std_string+set}" = set; then
5653 enableval="$enable_std_string"
5654
5655 if test "$enableval" = yes; then
5656 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5657 else
5658 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5659 fi
5660
5661else
5662
5663 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5671
5672fi;
5673
5674 eval "$ac_cv_use_std_string"
5675 if test "$no_cache" != 1; then
5676 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5677 fi
5678
5679 if test "$wxUSE_STD_STRING" = yes; then
5680 echo "$as_me:$LINENO: result: yes" >&5
5681echo "${ECHO_T}yes" >&6
5682 else
5683 echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6
5685 fi
5686
5687
a848cd7e 5688 enablestring=
07158944
VZ
5689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5690echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5691 no_cache=0
07158944
VZ
5692 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5693if test "${enable_stdpaths+set}" = set; then
5694 enableval="$enable_stdpaths"
a848cd7e
SC
5695
5696 if test "$enableval" = yes; then
07158944 5697 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5698 else
07158944 5699 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5700 fi
5701
5702else
5703
07158944 5704 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5705 if test "x$LINE" != x ; then
5706 eval "DEFAULT_$LINE"
5707 else
5708 no_cache=1
5709 fi
5710
07158944 5711 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5712
5713fi;
5714
07158944 5715 eval "$ac_cv_use_stdpaths"
a848cd7e 5716 if test "$no_cache" != 1; then
07158944 5717 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5718 fi
5719
07158944 5720 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5721 echo "$as_me:$LINENO: result: yes" >&5
5722echo "${ECHO_T}yes" >&6
5723 else
5724 echo "$as_me:$LINENO: result: no" >&5
5725echo "${ECHO_T}no" >&6
5726 fi
5727
5728
5729 enablestring=
5730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5731echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5732 no_cache=0
5733 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5734if test "${enable_stopwatch+set}" = set; then
5735 enableval="$enable_stopwatch"
5736
5737 if test "$enableval" = yes; then
5738 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5739 else
5740 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5741 fi
5742
5743else
5744
5745 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5746 if test "x$LINE" != x ; then
5747 eval "DEFAULT_$LINE"
5748 else
5749 no_cache=1
5750 fi
5751
5752 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5753
5754fi;
5755
5756 eval "$ac_cv_use_stopwatch"
5757 if test "$no_cache" != 1; then
5758 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5759 fi
5760
5761 if test "$wxUSE_STOPWATCH" = yes; then
5762 echo "$as_me:$LINENO: result: yes" >&5
5763echo "${ECHO_T}yes" >&6
5764 else
5765 echo "$as_me:$LINENO: result: no" >&5
5766echo "${ECHO_T}no" >&6
5767 fi
5768
5769
07158944
VZ
5770 enablestring=
5771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5772echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5773 no_cache=0
5774 # Check whether --enable-streams or --disable-streams was given.
5775if test "${enable_streams+set}" = set; then
5776 enableval="$enable_streams"
5777
5778 if test "$enableval" = yes; then
5779 ac_cv_use_streams='wxUSE_STREAMS=yes'
5780 else
5781 ac_cv_use_streams='wxUSE_STREAMS=no'
5782 fi
5783
5784else
5785
5786 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 else
5790 no_cache=1
5791 fi
5792
5793 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5794
5795fi;
5796
5797 eval "$ac_cv_use_streams"
5798 if test "$no_cache" != 1; then
5799 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5800 fi
5801
5802 if test "$wxUSE_STREAMS" = yes; then
5803 echo "$as_me:$LINENO: result: yes" >&5
5804echo "${ECHO_T}yes" >&6
5805 else
5806 echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6
5808 fi
5809
5810
a848cd7e
SC
5811 enablestring=
5812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5813echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5814 no_cache=0
5815 # Check whether --enable-system_options or --disable-system_options was given.
5816if test "${enable_system_options+set}" = set; then
5817 enableval="$enable_system_options"
5818
5819 if test "$enableval" = yes; then
5820 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5821 else
5822 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5823 fi
5824
5825else
5826
5827 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5828 if test "x$LINE" != x ; then
5829 eval "DEFAULT_$LINE"
5830 else
5831 no_cache=1
5832 fi
5833
5834 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5835
5836fi;
5837
5838 eval "$ac_cv_use_system_options"
5839 if test "$no_cache" != 1; then
5840 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5841 fi
5842
5843 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5844 echo "$as_me:$LINENO: result: yes" >&5
5845echo "${ECHO_T}yes" >&6
5846 else
5847 echo "$as_me:$LINENO: result: no" >&5
5848echo "${ECHO_T}no" >&6
5849 fi
5850
5851
5852 enablestring=
5853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5854echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5855 no_cache=0
5856 # Check whether --enable-textbuf or --disable-textbuf was given.
5857if test "${enable_textbuf+set}" = set; then
5858 enableval="$enable_textbuf"
5859
5860 if test "$enableval" = yes; then
5861 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5862 else
5863 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5864 fi
5865
5866else
5867
5868 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5869 if test "x$LINE" != x ; then
5870 eval "DEFAULT_$LINE"
5871 else
5872 no_cache=1
5873 fi
5874
5875 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5876
5877fi;
5878
5879 eval "$ac_cv_use_textbuf"
5880 if test "$no_cache" != 1; then
5881 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5882 fi
5883
5884 if test "$wxUSE_TEXTBUFFER" = yes; then
5885 echo "$as_me:$LINENO: result: yes" >&5
5886echo "${ECHO_T}yes" >&6
5887 else
5888 echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6
5890 fi
5891
5892
5893 enablestring=
5894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5895echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5896 no_cache=0
5897 # Check whether --enable-textfile or --disable-textfile was given.
5898if test "${enable_textfile+set}" = set; then
5899 enableval="$enable_textfile"
5900
5901 if test "$enableval" = yes; then
5902 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5903 else
5904 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5905 fi
5906
5907else
5908
5909 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5910 if test "x$LINE" != x ; then
5911 eval "DEFAULT_$LINE"
5912 else
5913 no_cache=1
5914 fi
5915
5916 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5917
5918fi;
5919
5920 eval "$ac_cv_use_textfile"
5921 if test "$no_cache" != 1; then
5922 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5923 fi
5924
5925 if test "$wxUSE_TEXTFILE" = yes; then
5926 echo "$as_me:$LINENO: result: yes" >&5
5927echo "${ECHO_T}yes" >&6
5928 else
5929 echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6
5931 fi
5932
5933
5934 enablestring=
5935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5936echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5937 no_cache=0
5938 # Check whether --enable-timer or --disable-timer was given.
5939if test "${enable_timer+set}" = set; then
5940 enableval="$enable_timer"
5941
5942 if test "$enableval" = yes; then
5943 ac_cv_use_timer='wxUSE_TIMER=yes'
5944 else
5945 ac_cv_use_timer='wxUSE_TIMER=no'
5946 fi
5947
5948else
5949
5950 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5951 if test "x$LINE" != x ; then
5952 eval "DEFAULT_$LINE"
5953 else
5954 no_cache=1
5955 fi
5956
5957 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5958
5959fi;
5960
5961 eval "$ac_cv_use_timer"
5962 if test "$no_cache" != 1; then
5963 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5964 fi
5965
5966 if test "$wxUSE_TIMER" = yes; then
5967 echo "$as_me:$LINENO: result: yes" >&5
5968echo "${ECHO_T}yes" >&6
5969 else
5970 echo "$as_me:$LINENO: result: no" >&5
5971echo "${ECHO_T}no" >&6
5972 fi
5973
5974
5975 enablestring=
5976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5977echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5978 no_cache=0
5979 # Check whether --enable-unicode or --disable-unicode was given.
5980if test "${enable_unicode+set}" = set; then
5981 enableval="$enable_unicode"
5982
5983 if test "$enableval" = yes; then
5984 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5985 else
5986 ac_cv_use_unicode='wxUSE_UNICODE=no'
5987 fi
5988
5989else
5990
5991 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5992 if test "x$LINE" != x ; then
5993 eval "DEFAULT_$LINE"
5994 else
5995 no_cache=1
5996 fi
5997
5998 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5999
6000fi;
6001
6002 eval "$ac_cv_use_unicode"
6003 if test "$no_cache" != 1; then
6004 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6005 fi
6006
6007 if test "$wxUSE_UNICODE" = yes; then
6008 echo "$as_me:$LINENO: result: yes" >&5
6009echo "${ECHO_T}yes" >&6
6010 else
6011 echo "$as_me:$LINENO: result: no" >&5
6012echo "${ECHO_T}no" >&6
6013 fi
6014
6015
6016 enablestring=
6017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6018echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6019 no_cache=0
6020 # Check whether --enable-sound or --disable-sound was given.
6021if test "${enable_sound+set}" = set; then
6022 enableval="$enable_sound"
6023
6024 if test "$enableval" = yes; then
6025 ac_cv_use_sound='wxUSE_SOUND=yes'
6026 else
6027 ac_cv_use_sound='wxUSE_SOUND=no'
6028 fi
6029
6030else
6031
6032 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6033 if test "x$LINE" != x ; then
6034 eval "DEFAULT_$LINE"
6035 else
6036 no_cache=1
6037 fi
6038
6039 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6040
6041fi;
6042
6043 eval "$ac_cv_use_sound"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_SOUND" = yes; then
6049 echo "$as_me:$LINENO: result: yes" >&5
6050echo "${ECHO_T}yes" >&6
6051 else
6052 echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054 fi
6055
6056
3b57de8b
RL
6057 enablestring=
6058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6059echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6060 no_cache=0
6061 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6062if test "${enable_mediactrl+set}" = set; then
6063 enableval="$enable_mediactrl"
6064
6065 if test "$enableval" = yes; then
6066 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6067 else
6068 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6069 fi
6070
6071else
6072
6073 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6074 if test "x$LINE" != x ; then
6075 eval "DEFAULT_$LINE"
6076 else
6077 no_cache=1
6078 fi
6079
6080 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6081
6082fi;
6083
6084 eval "$ac_cv_use_mediactrl"
6085 if test "$no_cache" != 1; then
6086 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6087 fi
6088
6089 if test "$wxUSE_MEDIACTRL" = yes; then
6090 echo "$as_me:$LINENO: result: yes" >&5
6091echo "${ECHO_T}yes" >&6
6092 else
6093 echo "$as_me:$LINENO: result: no" >&5
6094echo "${ECHO_T}no" >&6
6095 fi
6096
6097
a848cd7e
SC
6098 enablestring=
6099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6100echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6101 no_cache=0
6102 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6103if test "${enable_wxprintfv+set}" = set; then
6104 enableval="$enable_wxprintfv"
6105
6106 if test "$enableval" = yes; then
6107 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6108 else
6109 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6110 fi
6111
6112else
6113
6114 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6115 if test "x$LINE" != x ; then
6116 eval "DEFAULT_$LINE"
6117 else
6118 no_cache=1
6119 fi
6120
6121 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6122
6123fi;
6124
6125 eval "$ac_cv_use_wxprintfv"
6126 if test "$no_cache" != 1; then
6127 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6128 fi
6129
6130 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6131 echo "$as_me:$LINENO: result: yes" >&5
6132echo "${ECHO_T}yes" >&6
6133 else
6134 echo "$as_me:$LINENO: result: no" >&5
6135echo "${ECHO_T}no" >&6
6136 fi
6137
6138
6139 enablestring=
6140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6141echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6142 no_cache=0
6143 # Check whether --enable-zipstream or --disable-zipstream was given.
6144if test "${enable_zipstream+set}" = set; then
6145 enableval="$enable_zipstream"
6146
6147 if test "$enableval" = yes; then
6148 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6149 else
6150 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6151 fi
6152
6153else
6154
6155 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6156 if test "x$LINE" != x ; then
6157 eval "DEFAULT_$LINE"
6158 else
6159 no_cache=1
6160 fi
6161
6162 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6163
6164fi;
6165
6166 eval "$ac_cv_use_zipstream"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_ZIPSTREAM" = yes; then
6172 echo "$as_me:$LINENO: result: yes" >&5
6173echo "${ECHO_T}yes" >&6
6174 else
6175 echo "$as_me:$LINENO: result: no" >&5
6176echo "${ECHO_T}no" >&6
6177 fi
6178
6179
a848cd7e
SC
6180
6181 enablestring=
6182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6183echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6184 no_cache=0
6185 # Check whether --enable-url or --disable-url was given.
6186if test "${enable_url+set}" = set; then
6187 enableval="$enable_url"
6188
6189 if test "$enableval" = yes; then
6190 ac_cv_use_url='wxUSE_URL=yes'
6191 else
6192 ac_cv_use_url='wxUSE_URL=no'
6193 fi
6194
6195else
6196
6197 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6198 if test "x$LINE" != x ; then
6199 eval "DEFAULT_$LINE"
6200 else
6201 no_cache=1
6202 fi
6203
6204 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6205
6206fi;
6207
6208 eval "$ac_cv_use_url"
6209 if test "$no_cache" != 1; then
6210 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6211 fi
6212
6213 if test "$wxUSE_URL" = yes; then
6214 echo "$as_me:$LINENO: result: yes" >&5
6215echo "${ECHO_T}yes" >&6
6216 else
6217 echo "$as_me:$LINENO: result: no" >&5
6218echo "${ECHO_T}no" >&6
6219 fi
6220
6221
6222 enablestring=
6223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6224echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6225 no_cache=0
6226 # Check whether --enable-protocol or --disable-protocol was given.
6227if test "${enable_protocol+set}" = set; then
6228 enableval="$enable_protocol"
6229
6230 if test "$enableval" = yes; then
6231 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6232 else
6233 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6234 fi
6235
6236else
6237
6238 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6239 if test "x$LINE" != x ; then
6240 eval "DEFAULT_$LINE"
6241 else
6242 no_cache=1
6243 fi
6244
6245 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6246
6247fi;
6248
6249 eval "$ac_cv_use_protocol"
6250 if test "$no_cache" != 1; then
6251 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6252 fi
6253
6254 if test "$wxUSE_PROTOCOL" = yes; then
6255 echo "$as_me:$LINENO: result: yes" >&5
6256echo "${ECHO_T}yes" >&6
6257 else
6258 echo "$as_me:$LINENO: result: no" >&5
6259echo "${ECHO_T}no" >&6
6260 fi
6261
6262
6263 enablestring=
6264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6265echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6266 no_cache=0
6267 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6268if test "${enable_protocol_http+set}" = set; then
6269 enableval="$enable_protocol_http"
6270
6271 if test "$enableval" = yes; then
6272 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6273 else
6274 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6275 fi
6276
6277else
6278
6279 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6280 if test "x$LINE" != x ; then
6281 eval "DEFAULT_$LINE"
6282 else
6283 no_cache=1
6284 fi
6285
6286 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6287
6288fi;
6289
6290 eval "$ac_cv_use_protocol_http"
6291 if test "$no_cache" != 1; then
6292 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6293 fi
6294
6295 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6296 echo "$as_me:$LINENO: result: yes" >&5
6297echo "${ECHO_T}yes" >&6
6298 else
6299 echo "$as_me:$LINENO: result: no" >&5
6300echo "${ECHO_T}no" >&6
6301 fi
6302
6303
6304 enablestring=
6305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6306echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6307 no_cache=0
6308 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6309if test "${enable_protocol_ftp+set}" = set; then
6310 enableval="$enable_protocol_ftp"
6311
6312 if test "$enableval" = yes; then
6313 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6314 else
6315 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6316 fi
6317
6318else
6319
6320 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6321 if test "x$LINE" != x ; then
6322 eval "DEFAULT_$LINE"
6323 else
6324 no_cache=1
6325 fi
6326
6327 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6328
6329fi;
6330
6331 eval "$ac_cv_use_protocol_ftp"
6332 if test "$no_cache" != 1; then
6333 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6334 fi
6335
6336 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6337 echo "$as_me:$LINENO: result: yes" >&5
6338echo "${ECHO_T}yes" >&6
6339 else
6340 echo "$as_me:$LINENO: result: no" >&5
6341echo "${ECHO_T}no" >&6
6342 fi
6343
6344
6345 enablestring=
6346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6347echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6348 no_cache=0
6349 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6350if test "${enable_protocol_file+set}" = set; then
6351 enableval="$enable_protocol_file"
6352
6353 if test "$enableval" = yes; then
6354 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6355 else
6356 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6357 fi
6358
6359else
6360
6361 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6362 if test "x$LINE" != x ; then
6363 eval "DEFAULT_$LINE"
6364 else
6365 no_cache=1
6366 fi
6367
6368 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6369
6370fi;
6371
6372 eval "$ac_cv_use_protocol_file"
6373 if test "$no_cache" != 1; then
6374 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6375 fi
6376
6377 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6378 echo "$as_me:$LINENO: result: yes" >&5
6379echo "${ECHO_T}yes" >&6
6380 else
6381 echo "$as_me:$LINENO: result: no" >&5
6382echo "${ECHO_T}no" >&6
6383 fi
6384
6385
6386
6387
6388
6389 enablestring=
6390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6391echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6392 no_cache=0
6393 # Check whether --enable-threads or --disable-threads was given.
6394if test "${enable_threads+set}" = set; then
6395 enableval="$enable_threads"
6396
6397 if test "$enableval" = yes; then
6398 ac_cv_use_threads='wxUSE_THREADS=yes'
6399 else
6400 ac_cv_use_threads='wxUSE_THREADS=no'
6401 fi
6402
6403else
6404
6405 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
6412 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6413
6414fi;
6415
6416 eval "$ac_cv_use_threads"
6417 if test "$no_cache" != 1; then
6418 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6419 fi
6420
6421 if test "$wxUSE_THREADS" = yes; then
6422 echo "$as_me:$LINENO: result: yes" >&5
6423echo "${ECHO_T}yes" >&6
6424 else
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
6427 fi
6428
6429
6430if test "$wxUSE_GUI" = "yes"; then
6431
6432
6433
6434 enablestring=
6435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6436echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6437 no_cache=0
6438 # Check whether --enable-docview or --disable-docview was given.
6439if test "${enable_docview+set}" = set; then
6440 enableval="$enable_docview"
6441
6442 if test "$enableval" = yes; then
6443 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6444 else
6445 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6446 fi
6447
6448else
6449
6450 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6451 if test "x$LINE" != x ; then
6452 eval "DEFAULT_$LINE"
6453 else
6454 no_cache=1
6455 fi
6456
6457 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6458
6459fi;
6460
6461 eval "$ac_cv_use_docview"
6462 if test "$no_cache" != 1; then
6463 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6464 fi
6465
6466 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6467 echo "$as_me:$LINENO: result: yes" >&5
6468echo "${ECHO_T}yes" >&6
6469 else
6470 echo "$as_me:$LINENO: result: no" >&5
6471echo "${ECHO_T}no" >&6
6472 fi
6473
6474
6475 enablestring=
6476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6477echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6478 no_cache=0
6479 # Check whether --enable-help or --disable-help was given.
6480if test "${enable_help+set}" = set; then
6481 enableval="$enable_help"
6482
6483 if test "$enableval" = yes; then
6484 ac_cv_use_help='wxUSE_HELP=yes'
6485 else
6486 ac_cv_use_help='wxUSE_HELP=no'
6487 fi
6488
6489else
6490
6491 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6492 if test "x$LINE" != x ; then
6493 eval "DEFAULT_$LINE"
6494 else
6495 no_cache=1
6496 fi
6497
6498 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6499
6500fi;
6501
6502 eval "$ac_cv_use_help"
6503 if test "$no_cache" != 1; then
6504 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6505 fi
6506
6507 if test "$wxUSE_HELP" = yes; then
6508 echo "$as_me:$LINENO: result: yes" >&5
6509echo "${ECHO_T}yes" >&6
6510 else
6511 echo "$as_me:$LINENO: result: no" >&5
6512echo "${ECHO_T}no" >&6
6513 fi
6514
6515
6516 enablestring=
6517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6518echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6519 no_cache=0
6520 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6521if test "${enable_mshtmlhelp+set}" = set; then
6522 enableval="$enable_mshtmlhelp"
6523
6524 if test "$enableval" = yes; then
6525 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6526 else
6527 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6528 fi
6529
6530else
6531
6532 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6533 if test "x$LINE" != x ; then
6534 eval "DEFAULT_$LINE"
6535 else
6536 no_cache=1
6537 fi
6538
6539 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6540
6541fi;
6542
6543 eval "$ac_cv_use_mshtmlhelp"
6544 if test "$no_cache" != 1; then
6545 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6546 fi
6547
6548 if test "$wxUSE_MS_HTML_HELP" = yes; then
6549 echo "$as_me:$LINENO: result: yes" >&5
6550echo "${ECHO_T}yes" >&6
6551 else
6552 echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6
6554 fi
6555
6556
6557 enablestring=
6558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6559echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6560 no_cache=0
6561 # Check whether --enable-html or --disable-html was given.
6562if test "${enable_html+set}" = set; then
6563 enableval="$enable_html"
6564
6565 if test "$enableval" = yes; then
6566 ac_cv_use_html='wxUSE_HTML=yes'
6567 else
6568 ac_cv_use_html='wxUSE_HTML=no'
6569 fi
6570
6571else
6572
6573 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6574 if test "x$LINE" != x ; then
6575 eval "DEFAULT_$LINE"
6576 else
6577 no_cache=1
6578 fi
6579
6580 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6581
6582fi;
6583
6584 eval "$ac_cv_use_html"
6585 if test "$no_cache" != 1; then
6586 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6587 fi
6588
6589 if test "$wxUSE_HTML" = yes; then
6590 echo "$as_me:$LINENO: result: yes" >&5
6591echo "${ECHO_T}yes" >&6
6592 else
6593 echo "$as_me:$LINENO: result: no" >&5
6594echo "${ECHO_T}no" >&6
6595 fi
6596
6597
6598 enablestring=
6599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6600echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6601 no_cache=0
6602 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6603if test "${enable_htmlhelp+set}" = set; then
6604 enableval="$enable_htmlhelp"
6605
6606 if test "$enableval" = yes; then
6607 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6608 else
6609 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6610 fi
6611
6612else
6613
6614 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6615 if test "x$LINE" != x ; then
6616 eval "DEFAULT_$LINE"
6617 else
6618 no_cache=1
6619 fi
6620
6621 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6622
6623fi;
6624
6625 eval "$ac_cv_use_htmlhelp"
6626 if test "$no_cache" != 1; then
6627 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6628 fi
6629
6630 if test "$wxUSE_WXHTML_HELP" = yes; then
6631 echo "$as_me:$LINENO: result: yes" >&5
6632echo "${ECHO_T}yes" >&6
6633 else
6634 echo "$as_me:$LINENO: result: no" >&5
6635echo "${ECHO_T}no" >&6
6636 fi
6637
6638
9a8f0513
VS
6639 enablestring=
6640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6641echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6642 no_cache=0
6643 # Check whether --enable-xrc or --disable-xrc was given.
6644if test "${enable_xrc+set}" = set; then
6645 enableval="$enable_xrc"
6646
6647 if test "$enableval" = yes; then
6648 ac_cv_use_xrc='wxUSE_XRC=yes'
6649 else
6650 ac_cv_use_xrc='wxUSE_XRC=no'
6651 fi
6652
6653else
6654
6655 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6656 if test "x$LINE" != x ; then
6657 eval "DEFAULT_$LINE"
6658 else
6659 no_cache=1
6660 fi
6661
6662 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6663
6664fi;
6665
6666 eval "$ac_cv_use_xrc"
6667 if test "$no_cache" != 1; then
6668 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6669 fi
6670
6671 if test "$wxUSE_XRC" = yes; then
6672 echo "$as_me:$LINENO: result: yes" >&5
6673echo "${ECHO_T}yes" >&6
6674 else
6675 echo "$as_me:$LINENO: result: no" >&5
6676echo "${ECHO_T}no" >&6
6677 fi
6678
6679
a848cd7e
SC
6680 enablestring=
6681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6682echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6683 no_cache=0
6684 # Check whether --enable-constraints or --disable-constraints was given.
6685if test "${enable_constraints+set}" = set; then
6686 enableval="$enable_constraints"
6687
6688 if test "$enableval" = yes; then
6689 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6690 else
6691 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6692 fi
6693
6694else
6695
6696 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6697 if test "x$LINE" != x ; then
6698 eval "DEFAULT_$LINE"
6699 else
6700 no_cache=1
6701 fi
6702
6703 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6704
6705fi;
6706
6707 eval "$ac_cv_use_constraints"
6708 if test "$no_cache" != 1; then
6709 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6710 fi
6711
6712 if test "$wxUSE_CONSTRAINTS" = yes; then
6713 echo "$as_me:$LINENO: result: yes" >&5
6714echo "${ECHO_T}yes" >&6
6715 else
6716 echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6
6718 fi
6719
6720
6721 enablestring=
6722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6723echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6724 no_cache=0
6725 # Check whether --enable-printarch or --disable-printarch was given.
6726if test "${enable_printarch+set}" = set; then
6727 enableval="$enable_printarch"
6728
6729 if test "$enableval" = yes; then
6730 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6731 else
6732 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6733 fi
6734
6735else
6736
6737 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6738 if test "x$LINE" != x ; then
6739 eval "DEFAULT_$LINE"
6740 else
6741 no_cache=1
6742 fi
6743
6744 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6745
6746fi;
6747
6748 eval "$ac_cv_use_printarch"
6749 if test "$no_cache" != 1; then
6750 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6751 fi
6752
6753 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6754 echo "$as_me:$LINENO: result: yes" >&5
6755echo "${ECHO_T}yes" >&6
6756 else
6757 echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759 fi
6760
6761
6762 enablestring=
6763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6764echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6765 no_cache=0
6766 # Check whether --enable-mdi or --disable-mdi was given.
6767if test "${enable_mdi+set}" = set; then
6768 enableval="$enable_mdi"
6769
6770 if test "$enableval" = yes; then
8a7b1113 6771 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6772 else
8a7b1113 6773 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6774 fi
6775
6776else
6777
8a7b1113 6778 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6779 if test "x$LINE" != x ; then
6780 eval "DEFAULT_$LINE"
6781 else
6782 no_cache=1
6783 fi
6784
8a7b1113 6785 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6786
6787fi;
6788
6789 eval "$ac_cv_use_mdi"
6790 if test "$no_cache" != 1; then
6791 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6792 fi
6793
8a7b1113
VZ
6794 if test "$wxUSE_MDI" = yes; then
6795 echo "$as_me:$LINENO: result: yes" >&5
6796echo "${ECHO_T}yes" >&6
6797 else
6798 echo "$as_me:$LINENO: result: no" >&5
6799echo "${ECHO_T}no" >&6
6800 fi
6801
6802
6803 enablestring=
6804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6805echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6806 no_cache=0
6807 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6808if test "${enable_mdidoc+set}" = set; then
6809 enableval="$enable_mdidoc"
6810
6811 if test "$enableval" = yes; then
6812 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6813 else
6814 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6815 fi
6816
6817else
6818
6819 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6820 if test "x$LINE" != x ; then
6821 eval "DEFAULT_$LINE"
6822 else
6823 no_cache=1
6824 fi
6825
6826 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6827
6828fi;
6829
6830 eval "$ac_cv_use_mdidoc"
6831 if test "$no_cache" != 1; then
6832 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6833 fi
6834
a848cd7e
SC
6835 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6836 echo "$as_me:$LINENO: result: yes" >&5
6837echo "${ECHO_T}yes" >&6
6838 else
6839 echo "$as_me:$LINENO: result: no" >&5
6840echo "${ECHO_T}no" >&6
6841 fi
6842
6843
6844 enablestring=
6845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6846echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6847 no_cache=0
6848 # Check whether --enable-loggui or --disable-loggui was given.
6849if test "${enable_loggui+set}" = set; then
6850 enableval="$enable_loggui"
6851
6852 if test "$enableval" = yes; then
6853 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6854 else
6855 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6856 fi
6857
6858else
6859
6860 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6861 if test "x$LINE" != x ; then
6862 eval "DEFAULT_$LINE"
6863 else
6864 no_cache=1
6865 fi
6866
6867 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6868
6869fi;
6870
6871 eval "$ac_cv_use_loggui"
6872 if test "$no_cache" != 1; then
6873 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6874 fi
6875
6876 if test "$wxUSE_LOGGUI" = yes; then
6877 echo "$as_me:$LINENO: result: yes" >&5
6878echo "${ECHO_T}yes" >&6
6879 else
6880 echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6
6882 fi
6883
6884
6885 enablestring=
6886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6887echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6888 no_cache=0
6889 # Check whether --enable-logwin or --disable-logwin was given.
6890if test "${enable_logwin+set}" = set; then
6891 enableval="$enable_logwin"
6892
6893 if test "$enableval" = yes; then
6894 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6895 else
6896 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6897 fi
6898
6899else
6900
6901 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6902 if test "x$LINE" != x ; then
6903 eval "DEFAULT_$LINE"
6904 else
6905 no_cache=1
6906 fi
6907
6908 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6909
6910fi;
6911
6912 eval "$ac_cv_use_logwin"
6913 if test "$no_cache" != 1; then
6914 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6915 fi
6916
6917 if test "$wxUSE_LOGWINDOW" = yes; then
6918 echo "$as_me:$LINENO: result: yes" >&5
6919echo "${ECHO_T}yes" >&6
6920 else
6921 echo "$as_me:$LINENO: result: no" >&5
6922echo "${ECHO_T}no" >&6
6923 fi
6924
6925
6926 enablestring=
6927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6928echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6929 no_cache=0
6930 # Check whether --enable-logdialog or --disable-logdialog was given.
6931if test "${enable_logdialog+set}" = set; then
6932 enableval="$enable_logdialog"
6933
6934 if test "$enableval" = yes; then
6935 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6936 else
6937 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6938 fi
6939
6940else
6941
6942 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6943 if test "x$LINE" != x ; then
6944 eval "DEFAULT_$LINE"
6945 else
6946 no_cache=1
6947 fi
6948
6949 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6950
6951fi;
6952
6953 eval "$ac_cv_use_logdialog"
6954 if test "$no_cache" != 1; then
6955 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6956 fi
6957
6958 if test "$wxUSE_LOGDIALOG" = yes; then
6959 echo "$as_me:$LINENO: result: yes" >&5
6960echo "${ECHO_T}yes" >&6
6961 else
6962 echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6
6964 fi
6965
6966
646b6ec1
VS
6967 enablestring=
6968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6969echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6970 no_cache=0
6971 # Check whether --enable-webkit or --disable-webkit was given.
6972if test "${enable_webkit+set}" = set; then
6973 enableval="$enable_webkit"
6974
6975 if test "$enableval" = yes; then
6976 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6977 else
6978 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6979 fi
6980
6981else
6982
6983 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6984 if test "x$LINE" != x ; then
6985 eval "DEFAULT_$LINE"
6986 else
6987 no_cache=1
6988 fi
6989
6990 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6991
6992fi;
6993
6994 eval "$ac_cv_use_webkit"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6997 fi
6998
6999 if test "$wxUSE_WEBKIT" = yes; then
7000 echo "$as_me:$LINENO: result: yes" >&5
7001echo "${ECHO_T}yes" >&6
7002 else
7003 echo "$as_me:$LINENO: result: no" >&5
7004echo "${ECHO_T}no" >&6
7005 fi
7006
7007
a848cd7e
SC
7008
7009 enablestring=
7010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7011echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7012 no_cache=0
7013 # Check whether --enable-postscript or --disable-postscript was given.
7014if test "${enable_postscript+set}" = set; then
7015 enableval="$enable_postscript"
7016
7017 if test "$enableval" = yes; then
7018 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7019 else
7020 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7021 fi
7022
7023else
7024
7025 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7026 if test "x$LINE" != x ; then
7027 eval "DEFAULT_$LINE"
7028 else
7029 no_cache=1
7030 fi
7031
7032 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7033
7034fi;
7035
7036 eval "$ac_cv_use_postscript"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_POSTSCRIPT" = yes; then
7042 echo "$as_me:$LINENO: result: yes" >&5
7043echo "${ECHO_T}yes" >&6
7044 else
7045 echo "$as_me:$LINENO: result: no" >&5
7046echo "${ECHO_T}no" >&6
7047 fi
7048
7049
7050
7051
7052
7053 enablestring=
7054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7055echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7056 no_cache=0
7057 # Check whether --enable-prologio or --disable-prologio was given.
7058if test "${enable_prologio+set}" = set; then
7059 enableval="$enable_prologio"
7060
7061 if test "$enableval" = yes; then
7062 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7063 else
7064 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7065 fi
7066
7067else
7068
7069 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7070 if test "x$LINE" != x ; then
7071 eval "DEFAULT_$LINE"
7072 else
7073 no_cache=1
7074 fi
7075
7076 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7077
7078fi;
7079
7080 eval "$ac_cv_use_prologio"
7081 if test "$no_cache" != 1; then
7082 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7083 fi
7084
7085 if test "$wxUSE_PROLOGIO" = yes; then
7086 echo "$as_me:$LINENO: result: yes" >&5
7087echo "${ECHO_T}yes" >&6
7088 else
7089 echo "$as_me:$LINENO: result: no" >&5
7090echo "${ECHO_T}no" >&6
7091 fi
7092
7093
7094 enablestring=
7095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7096echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7097 no_cache=0
7098 # Check whether --enable-resources or --disable-resources was given.
7099if test "${enable_resources+set}" = set; then
7100 enableval="$enable_resources"
7101
7102 if test "$enableval" = yes; then
7103 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7104 else
7105 ac_cv_use_resources='wxUSE_RESOURCES=no'
7106 fi
7107
7108else
7109
7110 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7111 if test "x$LINE" != x ; then
7112 eval "DEFAULT_$LINE"
7113 else
7114 no_cache=1
7115 fi
7116
7117 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7118
7119fi;
7120
7121 eval "$ac_cv_use_resources"
7122 if test "$no_cache" != 1; then
7123 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7124 fi
7125
7126 if test "$wxUSE_RESOURCES" = yes; then
7127 echo "$as_me:$LINENO: result: yes" >&5
7128echo "${ECHO_T}yes" >&6
7129 else
7130 echo "$as_me:$LINENO: result: no" >&5
7131echo "${ECHO_T}no" >&6
7132 fi
7133
7134
7135
7136
7137 enablestring=
7138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7139echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7140 no_cache=0
7141 # Check whether --enable-clipboard or --disable-clipboard was given.
7142if test "${enable_clipboard+set}" = set; then
7143 enableval="$enable_clipboard"
7144
7145 if test "$enableval" = yes; then
7146 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7147 else
7148 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7149 fi
7150
7151else
7152
7153 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7154 if test "x$LINE" != x ; then
7155 eval "DEFAULT_$LINE"
7156 else
7157 no_cache=1
7158 fi
7159
7160 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7161
7162fi;
7163
7164 eval "$ac_cv_use_clipboard"
7165 if test "$no_cache" != 1; then
7166 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7167 fi
7168
7169 if test "$wxUSE_CLIPBOARD" = yes; then
7170 echo "$as_me:$LINENO: result: yes" >&5
7171echo "${ECHO_T}yes" >&6
7172 else
7173 echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6
7175 fi
7176
7177
7178 enablestring=
7179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7180echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7181 no_cache=0
7182 # Check whether --enable-dnd or --disable-dnd was given.
7183if test "${enable_dnd+set}" = set; then
7184 enableval="$enable_dnd"
7185
7186 if test "$enableval" = yes; then
7187 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7188 else
7189 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7190 fi
7191
7192else
7193
7194 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7195 if test "x$LINE" != x ; then
7196 eval "DEFAULT_$LINE"
7197 else
7198 no_cache=1
7199 fi
7200
7201 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7202
7203fi;
7204
7205 eval "$ac_cv_use_dnd"
7206 if test "$no_cache" != 1; then
7207 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7208 fi
7209
7210 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7211 echo "$as_me:$LINENO: result: yes" >&5
7212echo "${ECHO_T}yes" >&6
7213 else
7214 echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6
7216 fi
7217
7218
7219 enablestring=
7220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7221echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7222 no_cache=0
7223 # Check whether --enable-metafile or --disable-metafile was given.
7224if test "${enable_metafile+set}" = set; then
7225 enableval="$enable_metafile"
7226
7227 if test "$enableval" = yes; then
7228 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7229 else
7230 ac_cv_use_metafile='wxUSE_METAFILE=no'
7231 fi
7232
7233else
7234
7235 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7236 if test "x$LINE" != x ; then
7237 eval "DEFAULT_$LINE"
7238 else
7239 no_cache=1
7240 fi
7241
7242 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7243
7244fi;
7245
7246 eval "$ac_cv_use_metafile"
7247 if test "$no_cache" != 1; then
7248 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7249 fi
7250
7251 if test "$wxUSE_METAFILE" = yes; then
7252 echo "$as_me:$LINENO: result: yes" >&5
7253echo "${ECHO_T}yes" >&6
7254 else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257 fi
7258
7259
7260
7261
7262
7263 enablestring=
7264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7265echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7266 no_cache=0
7267 # Check whether --enable-controls or --disable-controls was given.
7268if test "${enable_controls+set}" = set; then
7269 enableval="$enable_controls"
7270
7271 if test "$enableval" = yes; then
7272 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7273 else
7274 ac_cv_use_controls='wxUSE_CONTROLS=no'
7275 fi
7276
7277else
7278
7279 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7280 if test "x$LINE" != x ; then
7281 eval "DEFAULT_$LINE"
7282 else
7283 no_cache=1
7284 fi
7285
7286 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7287
7288fi;
7289
7290 eval "$ac_cv_use_controls"
7291 if test "$no_cache" != 1; then
7292 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7293 fi
7294
7295 if test "$wxUSE_CONTROLS" = yes; then
7296 echo "$as_me:$LINENO: result: yes" >&5
7297echo "${ECHO_T}yes" >&6
7298 else
7299 echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6
7301 fi
7302
7303
7304if test "$wxUSE_CONTROLS" = "yes"; then
7305 DEFAULT_wxUSE_ACCEL=yes
7306 DEFAULT_wxUSE_BMPBUTTON=yes
7307 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7308 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7309 DEFAULT_wxUSE_CARET=yes
7310 DEFAULT_wxUSE_COMBOBOX=yes
7311 DEFAULT_wxUSE_CHECKBOX=yes
7312 DEFAULT_wxUSE_CHECKLISTBOX=yes
7313 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7314 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7315 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7316 DEFAULT_wxUSE_GAUGE=yes
7317 DEFAULT_wxUSE_GRID=yes
7318 DEFAULT_wxUSE_IMAGLIST=yes
7319 DEFAULT_wxUSE_LISTBOOK=yes
7320 DEFAULT_wxUSE_LISTBOX=yes
7321 DEFAULT_wxUSE_LISTCTRL=yes
7322 DEFAULT_wxUSE_NOTEBOOK=yes
7323 DEFAULT_wxUSE_RADIOBOX=yes
7324 DEFAULT_wxUSE_RADIOBTN=yes
7325 DEFAULT_wxUSE_SASH=yes
7326 DEFAULT_wxUSE_SCROLLBAR=yes
7327 DEFAULT_wxUSE_SLIDER=yes
7328 DEFAULT_wxUSE_SPINBTN=yes
7329 DEFAULT_wxUSE_SPINCTRL=yes
7330 DEFAULT_wxUSE_SPLITTER=yes
7331 DEFAULT_wxUSE_STATBMP=yes
7332 DEFAULT_wxUSE_STATBOX=yes
7333 DEFAULT_wxUSE_STATLINE=yes
7334 DEFAULT_wxUSE_STATUSBAR=yes
7335 DEFAULT_wxUSE_TAB_DIALOG=yes
7336 DEFAULT_wxUSE_TOGGLEBTN=yes
7337 DEFAULT_wxUSE_TOOLBAR=yes
7338 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7339 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7340 DEFAULT_wxUSE_TOOLTIPS=yes
7341 DEFAULT_wxUSE_TREECTRL=yes
7342 DEFAULT_wxUSE_POPUPWIN=yes
7343 DEFAULT_wxUSE_TIPWINDOW=yes
7344elif test "$wxUSE_CONTROLS" = "no"; then
7345 DEFAULT_wxUSE_ACCEL=no
7346 DEFAULT_wxUSE_BMPBUTTON=no
7347 DEFAULT_wxUSE_BUTTON=no
7348 DEFAULT_wxUSE_CALCTRL=no
7349 DEFAULT_wxUSE_CARET=no
7350 DEFAULT_wxUSE_COMBOBOX=no
7351 DEFAULT_wxUSE_CHECKBOX=no
7352 DEFAULT_wxUSE_CHECKLISTBOX=no
7353 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7354 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7355 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7356 DEFAULT_wxUSE_GAUGE=no
7357 DEFAULT_wxUSE_GRID=no
7358 DEFAULT_wxUSE_IMAGLIST=no
7359 DEFAULT_wxUSE_LISTBOOK=no
7360 DEFAULT_wxUSE_LISTBOX=no
7361 DEFAULT_wxUSE_LISTCTRL=no
7362 DEFAULT_wxUSE_NOTEBOOK=no
7363 DEFAULT_wxUSE_RADIOBOX=no
7364 DEFAULT_wxUSE_RADIOBTN=no
7365 DEFAULT_wxUSE_SASH=no
7366 DEFAULT_wxUSE_SCROLLBAR=no
7367 DEFAULT_wxUSE_SLIDER=no
7368 DEFAULT_wxUSE_SPINBTN=no
7369 DEFAULT_wxUSE_SPINCTRL=no
7370 DEFAULT_wxUSE_SPLITTER=no
7371 DEFAULT_wxUSE_STATBMP=no
7372 DEFAULT_wxUSE_STATBOX=no
7373 DEFAULT_wxUSE_STATLINE=no
7374 DEFAULT_wxUSE_STATUSBAR=no
7375 DEFAULT_wxUSE_TAB_DIALOG=no
7376 DEFAULT_wxUSE_TOGGLEBTN=no
7377 DEFAULT_wxUSE_TOOLBAR=no
7378 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7379 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7380 DEFAULT_wxUSE_TOOLTIPS=no
7381 DEFAULT_wxUSE_TREECTRL=no
7382 DEFAULT_wxUSE_POPUPWIN=no
7383 DEFAULT_wxUSE_TIPWINDOW=no
7384fi
7385
a848cd7e
SC
7386
7387 enablestring=
7388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7389echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7390 no_cache=0
7391 # Check whether --enable-accel or --disable-accel was given.
7392if test "${enable_accel+set}" = set; then
7393 enableval="$enable_accel"
7394
7395 if test "$enableval" = yes; then
7396 ac_cv_use_accel='wxUSE_ACCEL=yes'
7397 else
7398 ac_cv_use_accel='wxUSE_ACCEL=no'
7399 fi
7400
7401else
7402
7403 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7404 if test "x$LINE" != x ; then
7405 eval "DEFAULT_$LINE"
7406 else
7407 no_cache=1
7408 fi
7409
7410 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7411
7412fi;
7413
7414 eval "$ac_cv_use_accel"
7415 if test "$no_cache" != 1; then
7416 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7417 fi
7418
7419 if test "$wxUSE_ACCEL" = yes; then
7420 echo "$as_me:$LINENO: result: yes" >&5
7421echo "${ECHO_T}yes" >&6
7422 else
7423 echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6
7425 fi
7426
7427
7428 enablestring=
7429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7430echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7431 no_cache=0
7432 # Check whether --enable-button or --disable-button was given.
7433if test "${enable_button+set}" = set; then
7434 enableval="$enable_button"
7435
7436 if test "$enableval" = yes; then
7437 ac_cv_use_button='wxUSE_BUTTON=yes'
7438 else
7439 ac_cv_use_button='wxUSE_BUTTON=no'
7440 fi
7441
7442else
7443
7444 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7445 if test "x$LINE" != x ; then
7446 eval "DEFAULT_$LINE"
7447 else
7448 no_cache=1
7449 fi
7450
7451 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7452
7453fi;
7454
7455 eval "$ac_cv_use_button"
7456 if test "$no_cache" != 1; then
7457 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7458 fi
7459
7460 if test "$wxUSE_BUTTON" = yes; then
7461 echo "$as_me:$LINENO: result: yes" >&5
7462echo "${ECHO_T}yes" >&6
7463 else
7464 echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6
7466 fi
7467
7468
7469 enablestring=
7470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7471echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7472 no_cache=0
7473 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7474if test "${enable_bmpbutton+set}" = set; then
7475 enableval="$enable_bmpbutton"
7476
7477 if test "$enableval" = yes; then
7478 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7479 else
7480 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7481 fi
7482
7483else
7484
7485 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7486 if test "x$LINE" != x ; then
7487 eval "DEFAULT_$LINE"
7488 else
7489 no_cache=1
7490 fi
7491
7492 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7493
7494fi;
7495
7496 eval "$ac_cv_use_bmpbutton"
7497 if test "$no_cache" != 1; then
7498 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7499 fi
7500
7501 if test "$wxUSE_BMPBUTTON" = yes; then
7502 echo "$as_me:$LINENO: result: yes" >&5
7503echo "${ECHO_T}yes" >&6
7504 else
7505 echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6
7507 fi
7508
7509
7510 enablestring=
7511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7512echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7513 no_cache=0
7514 # Check whether --enable-calendar or --disable-calendar was given.
7515if test "${enable_calendar+set}" = set; then
7516 enableval="$enable_calendar"
7517
7518 if test "$enableval" = yes; then
7519 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7520 else
7521 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7522 fi
7523
7524else
7525
7526 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7527 if test "x$LINE" != x ; then
7528 eval "DEFAULT_$LINE"
7529 else
7530 no_cache=1
7531 fi
7532
7533 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7534
7535fi;
7536
7537 eval "$ac_cv_use_calendar"
7538 if test "$no_cache" != 1; then
7539 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7540 fi
7541
7542 if test "$wxUSE_CALCTRL" = yes; then
7543 echo "$as_me:$LINENO: result: yes" >&5
7544echo "${ECHO_T}yes" >&6
7545 else
7546 echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6
7548 fi
7549
7550
7551 enablestring=
7552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7553echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7554 no_cache=0
7555 # Check whether --enable-caret or --disable-caret was given.
7556if test "${enable_caret+set}" = set; then
7557 enableval="$enable_caret"
7558
7559 if test "$enableval" = yes; then
7560 ac_cv_use_caret='wxUSE_CARET=yes'
7561 else
7562 ac_cv_use_caret='wxUSE_CARET=no'
7563 fi
7564
7565else
7566
7567 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7568 if test "x$LINE" != x ; then
7569 eval "DEFAULT_$LINE"
7570 else
7571 no_cache=1
7572 fi
7573
7574 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7575
7576fi;
7577
7578 eval "$ac_cv_use_caret"
7579 if test "$no_cache" != 1; then
7580 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7581 fi
7582
7583 if test "$wxUSE_CARET" = yes; then
7584 echo "$as_me:$LINENO: result: yes" >&5
7585echo "${ECHO_T}yes" >&6
7586 else
7587 echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6
7589 fi
7590
7591
7592 enablestring=
7593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7594echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7595 no_cache=0
7596 # Check whether --enable-checkbox or --disable-checkbox was given.
7597if test "${enable_checkbox+set}" = set; then
7598 enableval="$enable_checkbox"
7599
7600 if test "$enableval" = yes; then
7601 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7602 else
7603 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7604 fi
7605
7606else
7607
7608 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7609 if test "x$LINE" != x ; then
7610 eval "DEFAULT_$LINE"
7611 else
7612 no_cache=1
7613 fi
7614
7615 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7616
7617fi;
7618
7619 eval "$ac_cv_use_checkbox"
7620 if test "$no_cache" != 1; then
7621 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7622 fi
7623
7624 if test "$wxUSE_CHECKBOX" = yes; then
7625 echo "$as_me:$LINENO: result: yes" >&5
7626echo "${ECHO_T}yes" >&6
7627 else
7628 echo "$as_me:$LINENO: result: no" >&5
7629echo "${ECHO_T}no" >&6
7630 fi
7631
7632
7633 enablestring=
7634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7635echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7636 no_cache=0
7637 # Check whether --enable-checklst or --disable-checklst was given.
7638if test "${enable_checklst+set}" = set; then
7639 enableval="$enable_checklst"
7640
7641 if test "$enableval" = yes; then
7642 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7643 else
7644 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7645 fi
7646
7647else
7648
7649 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7650 if test "x$LINE" != x ; then
7651 eval "DEFAULT_$LINE"
7652 else
7653 no_cache=1
7654 fi
7655
7656 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7657
7658fi;
7659
7660 eval "$ac_cv_use_checklst"
7661 if test "$no_cache" != 1; then
7662 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7663 fi
7664
7665 if test "$wxUSE_CHECKLST" = yes; then
7666 echo "$as_me:$LINENO: result: yes" >&5
7667echo "${ECHO_T}yes" >&6
7668 else
7669 echo "$as_me:$LINENO: result: no" >&5
7670echo "${ECHO_T}no" >&6
7671 fi
7672
7673
7674 enablestring=
7675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7676echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7677 no_cache=0
7678 # Check whether --enable-choice or --disable-choice was given.
7679if test "${enable_choice+set}" = set; then
7680 enableval="$enable_choice"
7681
7682 if test "$enableval" = yes; then
7683 ac_cv_use_choice='wxUSE_CHOICE=yes'
7684 else
7685 ac_cv_use_choice='wxUSE_CHOICE=no'
7686 fi
7687
7688else
7689
7690 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7691 if test "x$LINE" != x ; then
7692 eval "DEFAULT_$LINE"
7693 else
7694 no_cache=1
7695 fi
7696
7697 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7698
7699fi;
7700
7701 eval "$ac_cv_use_choice"
7702 if test "$no_cache" != 1; then
7703 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7704 fi
7705
7706 if test "$wxUSE_CHOICE" = yes; then
7707 echo "$as_me:$LINENO: result: yes" >&5
7708echo "${ECHO_T}yes" >&6
7709 else
7710 echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6
7712 fi
7713
7714
92bbdbcd
WS
7715 enablestring=
7716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7717echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7718 no_cache=0
7719 # Check whether --enable-choicebook or --disable-choicebook was given.
7720if test "${enable_choicebook+set}" = set; then
7721 enableval="$enable_choicebook"
7722
7723 if test "$enableval" = yes; then
7724 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7725 else
7726 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7727 fi
7728
7729else
7730
7731 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7732 if test "x$LINE" != x ; then
7733 eval "DEFAULT_$LINE"
7734 else
7735 no_cache=1
7736 fi
7737
7738 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7739
7740fi;
7741
7742 eval "$ac_cv_use_choicebook"
7743 if test "$no_cache" != 1; then
7744 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7745 fi
7746
7747 if test "$wxUSE_CHOICEBOOK" = yes; then
7748 echo "$as_me:$LINENO: result: yes" >&5
7749echo "${ECHO_T}yes" >&6
7750 else
7751 echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6
7753 fi
7754
7755
a848cd7e
SC
7756 enablestring=
7757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7758echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7759 no_cache=0
7760 # Check whether --enable-combobox or --disable-combobox was given.
7761if test "${enable_combobox+set}" = set; then
7762 enableval="$enable_combobox"
7763
7764 if test "$enableval" = yes; then
7765 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7766 else
7767 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7768 fi
7769
7770else
7771
7772 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7773 if test "x$LINE" != x ; then
7774 eval "DEFAULT_$LINE"
7775 else
7776 no_cache=1
7777 fi
7778
7779 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7780
7781fi;
7782
7783 eval "$ac_cv_use_combobox"
7784 if test "$no_cache" != 1; then
7785 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7786 fi
7787
7788 if test "$wxUSE_COMBOBOX" = yes; then
7789 echo "$as_me:$LINENO: result: yes" >&5
7790echo "${ECHO_T}yes" >&6
7791 else
7792 echo "$as_me:$LINENO: result: no" >&5
7793echo "${ECHO_T}no" >&6
7794 fi
7795
7796
da98e9be
VZ
7797 enablestring=
7798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7799echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7800 no_cache=0
7801 # Check whether --enable-datepick or --disable-datepick was given.
7802if test "${enable_datepick+set}" = set; then
7803 enableval="$enable_datepick"
7804
7805 if test "$enableval" = yes; then
7806 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7807 else
7808 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7809 fi
7810
7811else
7812
7813 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7814 if test "x$LINE" != x ; then
7815 eval "DEFAULT_$LINE"
7816 else
7817 no_cache=1
7818 fi
7819
7820 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7821
7822fi;
7823
7824 eval "$ac_cv_use_datepick"
7825 if test "$no_cache" != 1; then
7826 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7827 fi
7828
7829 if test "$wxUSE_DATEPICKCTRL" = yes; then
7830 echo "$as_me:$LINENO: result: yes" >&5
7831echo "${ECHO_T}yes" >&6
7832 else
7833 echo "$as_me:$LINENO: result: no" >&5
7834echo "${ECHO_T}no" >&6
7835 fi
7836
7837
a848cd7e
SC
7838 enablestring=
7839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7840echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7841 no_cache=0
7842 # Check whether --enable-display or --disable-display was given.
7843if test "${enable_display+set}" = set; then
7844 enableval="$enable_display"
7845
7846 if test "$enableval" = yes; then
7847 ac_cv_use_display='wxUSE_DISPLAY=yes'
7848 else
7849 ac_cv_use_display='wxUSE_DISPLAY=no'
7850 fi
7851
7852else
7853
7854 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7855 if test "x$LINE" != x ; then
7856 eval "DEFAULT_$LINE"
7857 else
7858 no_cache=1
7859 fi
7860
7861 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7862
7863fi;
7864
7865 eval "$ac_cv_use_display"
7866 if test "$no_cache" != 1; then
7867 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7868 fi
7869
7870 if test "$wxUSE_DISPLAY" = yes; then
7871 echo "$as_me:$LINENO: result: yes" >&5
7872echo "${ECHO_T}yes" >&6
7873 else
7874 echo "$as_me:$LINENO: result: no" >&5
7875echo "${ECHO_T}no" >&6
7876 fi
7877
7878
7879 enablestring=
7880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7881echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7882 no_cache=0
7883 # Check whether --enable-gauge or --disable-gauge was given.
7884if test "${enable_gauge+set}" = set; then
7885 enableval="$enable_gauge"
7886
7887 if test "$enableval" = yes; then
7888 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7889 else
7890 ac_cv_use_gauge='wxUSE_GAUGE=no'
7891 fi
7892
7893else
7894
7895 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7896 if test "x$LINE" != x ; then
7897 eval "DEFAULT_$LINE"
7898 else
7899 no_cache=1
7900 fi
7901
7902 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7903
7904fi;
7905
7906 eval "$ac_cv_use_gauge"
7907 if test "$no_cache" != 1; then
7908 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7909 fi
7910
7911 if test "$wxUSE_GAUGE" = yes; then
7912 echo "$as_me:$LINENO: result: yes" >&5
7913echo "${ECHO_T}yes" >&6
7914 else
7915 echo "$as_me:$LINENO: result: no" >&5
7916echo "${ECHO_T}no" >&6
7917 fi
7918
7919
7920 enablestring=
7921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7922echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7923 no_cache=0
7924 # Check whether --enable-grid or --disable-grid was given.
7925if test "${enable_grid+set}" = set; then
7926 enableval="$enable_grid"
7927
7928 if test "$enableval" = yes; then
7929 ac_cv_use_grid='wxUSE_GRID=yes'
7930 else
7931 ac_cv_use_grid='wxUSE_GRID=no'
7932 fi
7933
7934else
7935
7936 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7937 if test "x$LINE" != x ; then
7938 eval "DEFAULT_$LINE"
7939 else
7940 no_cache=1
7941 fi
7942
7943 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7944
7945fi;
7946
7947 eval "$ac_cv_use_grid"
7948 if test "$no_cache" != 1; then
7949 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7950 fi
7951
7952 if test "$wxUSE_GRID" = yes; then
7953 echo "$as_me:$LINENO: result: yes" >&5
7954echo "${ECHO_T}yes" >&6
7955 else
7956 echo "$as_me:$LINENO: result: no" >&5
7957echo "${ECHO_T}no" >&6
7958 fi
7959
7960
7961 enablestring=
7962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7963echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7964 no_cache=0
7965 # Check whether --enable-imaglist or --disable-imaglist was given.
7966if test "${enable_imaglist+set}" = set; then
7967 enableval="$enable_imaglist"
7968
7969 if test "$enableval" = yes; then
7970 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7971 else
7972 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7973 fi
7974
7975else
7976
7977 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7978 if test "x$LINE" != x ; then
7979 eval "DEFAULT_$LINE"
7980 else
7981 no_cache=1
7982 fi
7983
7984 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7985
7986fi;
7987
7988 eval "$ac_cv_use_imaglist"
7989 if test "$no_cache" != 1; then
7990 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7991 fi
7992
7993 if test "$wxUSE_IMAGLIST" = yes; then
7994 echo "$as_me:$LINENO: result: yes" >&5
7995echo "${ECHO_T}yes" >&6
7996 else
7997 echo "$as_me:$LINENO: result: no" >&5
7998echo "${ECHO_T}no" >&6
7999 fi
8000
8001
8002 enablestring=
8003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8004echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8005 no_cache=0
8006 # Check whether --enable-listbook or --disable-listbook was given.
8007if test "${enable_listbook+set}" = set; then
8008 enableval="$enable_listbook"
8009
8010 if test "$enableval" = yes; then
8011 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8012 else
8013 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8014 fi
8015
8016else
8017
8018 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8019 if test "x$LINE" != x ; then
8020 eval "DEFAULT_$LINE"
8021 else
8022 no_cache=1
8023 fi
8024
8025 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8026
8027fi;
8028
8029 eval "$ac_cv_use_listbook"
8030 if test "$no_cache" != 1; then
8031 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8032 fi
8033
8034 if test "$wxUSE_LISTBOOK" = yes; then
8035 echo "$as_me:$LINENO: result: yes" >&5
8036echo "${ECHO_T}yes" >&6
8037 else
8038 echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
8040 fi
8041
8042
8043 enablestring=
8044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8045echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8046 no_cache=0
8047 # Check whether --enable-listbox or --disable-listbox was given.
8048if test "${enable_listbox+set}" = set; then
8049 enableval="$enable_listbox"
8050
8051 if test "$enableval" = yes; then
8052 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8053 else
8054 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8055 fi
8056
8057else
8058
8059 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8060 if test "x$LINE" != x ; then
8061 eval "DEFAULT_$LINE"
8062 else
8063 no_cache=1
8064 fi
8065
8066 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8067
8068fi;
8069
8070 eval "$ac_cv_use_listbox"
8071 if test "$no_cache" != 1; then
8072 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8073 fi
8074
8075 if test "$wxUSE_LISTBOX" = yes; then
8076 echo "$as_me:$LINENO: result: yes" >&5
8077echo "${ECHO_T}yes" >&6
8078 else
8079 echo "$as_me:$LINENO: result: no" >&5
8080echo "${ECHO_T}no" >&6
8081 fi
8082
8083
8084 enablestring=
8085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8086echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8087 no_cache=0
8088 # Check whether --enable-listctrl or --disable-listctrl was given.
8089if test "${enable_listctrl+set}" = set; then
8090 enableval="$enable_listctrl"
8091
8092 if test "$enableval" = yes; then
8093 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8094 else
8095 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8096 fi
8097
8098else
8099
8100 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8101 if test "x$LINE" != x ; then
8102 eval "DEFAULT_$LINE"
8103 else
8104 no_cache=1
8105 fi
8106
8107 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8108
8109fi;
8110
8111 eval "$ac_cv_use_listctrl"
8112 if test "$no_cache" != 1; then
8113 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8114 fi
8115
8116 if test "$wxUSE_LISTCTRL" = yes; then
8117 echo "$as_me:$LINENO: result: yes" >&5
8118echo "${ECHO_T}yes" >&6
8119 else
8120 echo "$as_me:$LINENO: result: no" >&5
8121echo "${ECHO_T}no" >&6
8122 fi
8123
8124
8125 enablestring=
8126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8127echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8128 no_cache=0
8129 # Check whether --enable-notebook or --disable-notebook was given.
8130if test "${enable_notebook+set}" = set; then
8131 enableval="$enable_notebook"
8132
8133 if test "$enableval" = yes; then
8134 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8135 else
8136 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8137 fi
8138
8139else
8140
8141 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8142 if test "x$LINE" != x ; then
8143 eval "DEFAULT_$LINE"
8144 else
8145 no_cache=1
8146 fi
8147
8148 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8149
8150fi;
8151
8152 eval "$ac_cv_use_notebook"
8153 if test "$no_cache" != 1; then
8154 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8155 fi
8156
8157 if test "$wxUSE_NOTEBOOK" = yes; then
8158 echo "$as_me:$LINENO: result: yes" >&5
8159echo "${ECHO_T}yes" >&6
8160 else
8161 echo "$as_me:$LINENO: result: no" >&5
8162echo "${ECHO_T}no" >&6
8163 fi
8164
8165
8166 enablestring=
8167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8168echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8169 no_cache=0
8170 # Check whether --enable-radiobox or --disable-radiobox was given.
8171if test "${enable_radiobox+set}" = set; then
8172 enableval="$enable_radiobox"
8173
8174 if test "$enableval" = yes; then
8175 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8176 else
8177 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8178 fi
8179
8180else
8181
8182 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8183 if test "x$LINE" != x ; then
8184 eval "DEFAULT_$LINE"
8185 else
8186 no_cache=1
8187 fi
8188
8189 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8190
8191fi;
8192
8193 eval "$ac_cv_use_radiobox"
8194 if test "$no_cache" != 1; then
8195 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8196 fi
8197
8198 if test "$wxUSE_RADIOBOX" = yes; then
8199 echo "$as_me:$LINENO: result: yes" >&5
8200echo "${ECHO_T}yes" >&6
8201 else
8202 echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6
8204 fi
8205
8206
8207 enablestring=
8208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8209echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8210 no_cache=0
8211 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8212if test "${enable_radiobtn+set}" = set; then
8213 enableval="$enable_radiobtn"
8214
8215 if test "$enableval" = yes; then
8216 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8217 else
8218 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8219 fi
8220
8221else
8222
8223 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8224 if test "x$LINE" != x ; then
8225 eval "DEFAULT_$LINE"
8226 else
8227 no_cache=1
8228 fi
8229
8230 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8231
8232fi;
8233
8234 eval "$ac_cv_use_radiobtn"
8235 if test "$no_cache" != 1; then
8236 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8237 fi
8238
8239 if test "$wxUSE_RADIOBTN" = yes; then
8240 echo "$as_me:$LINENO: result: yes" >&5
8241echo "${ECHO_T}yes" >&6
8242 else
8243 echo "$as_me:$LINENO: result: no" >&5
8244echo "${ECHO_T}no" >&6
8245 fi
8246
8247
8248 enablestring=
8249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8250echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8251 no_cache=0
8252 # Check whether --enable-sash or --disable-sash was given.
8253if test "${enable_sash+set}" = set; then
8254 enableval="$enable_sash"
8255
8256 if test "$enableval" = yes; then
8257 ac_cv_use_sash='wxUSE_SASH=yes'
8258 else
8259 ac_cv_use_sash='wxUSE_SASH=no'
8260 fi
8261
8262else
8263
8264 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8265 if test "x$LINE" != x ; then
8266 eval "DEFAULT_$LINE"
8267 else
8268 no_cache=1
8269 fi
8270
8271 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8272
8273fi;
8274
8275 eval "$ac_cv_use_sash"
8276 if test "$no_cache" != 1; then
8277 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8278 fi
8279
8280 if test "$wxUSE_SASH" = yes; then
8281 echo "$as_me:$LINENO: result: yes" >&5
8282echo "${ECHO_T}yes" >&6
8283 else
8284 echo "$as_me:$LINENO: result: no" >&5
8285echo "${ECHO_T}no" >&6
8286 fi
8287
8288
8289 enablestring=
8290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8291echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8292 no_cache=0
8293 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8294if test "${enable_scrollbar+set}" = set; then
8295 enableval="$enable_scrollbar"
8296
8297 if test "$enableval" = yes; then
8298 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8299 else
8300 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8301 fi
8302
8303else
8304
8305 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8306 if test "x$LINE" != x ; then
8307 eval "DEFAULT_$LINE"
8308 else
8309 no_cache=1
8310 fi
8311
8312 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8313
8314fi;
8315
8316 eval "$ac_cv_use_scrollbar"
8317 if test "$no_cache" != 1; then
8318 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8319 fi
8320
8321 if test "$wxUSE_SCROLLBAR" = yes; then
8322 echo "$as_me:$LINENO: result: yes" >&5
8323echo "${ECHO_T}yes" >&6
8324 else
8325 echo "$as_me:$LINENO: result: no" >&5
8326echo "${ECHO_T}no" >&6
8327 fi
8328
8329
8330 enablestring=
8331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8332echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8333 no_cache=0
8334 # Check whether --enable-slider or --disable-slider was given.
8335if test "${enable_slider+set}" = set; then
8336 enableval="$enable_slider"
8337
8338 if test "$enableval" = yes; then
8339 ac_cv_use_slider='wxUSE_SLIDER=yes'
8340 else
8341 ac_cv_use_slider='wxUSE_SLIDER=no'
8342 fi
8343
8344else
8345
8346 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8347 if test "x$LINE" != x ; then
8348 eval "DEFAULT_$LINE"
8349 else
8350 no_cache=1
8351 fi
8352
8353 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8354
8355fi;
8356
8357 eval "$ac_cv_use_slider"
8358 if test "$no_cache" != 1; then
8359 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8360 fi
8361
8362 if test "$wxUSE_SLIDER" = yes; then
8363 echo "$as_me:$LINENO: result: yes" >&5
8364echo "${ECHO_T}yes" >&6
8365 else
8366 echo "$as_me:$LINENO: result: no" >&5
8367echo "${ECHO_T}no" >&6
8368 fi
8369
8370
8371 enablestring=
8372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8373echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8374 no_cache=0
8375 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8376if test "${enable_spinbtn+set}" = set; then
8377 enableval="$enable_spinbtn"
8378
8379 if test "$enableval" = yes; then
8380 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8381 else
8382 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8383 fi
8384
8385else
8386
8387 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8388 if test "x$LINE" != x ; then
8389 eval "DEFAULT_$LINE"
8390 else
8391 no_cache=1
8392 fi
8393
8394 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8395
8396fi;
8397
8398 eval "$ac_cv_use_spinbtn"
8399 if test "$no_cache" != 1; then
8400 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8401 fi
8402
8403 if test "$wxUSE_SPINBTN" = yes; then
8404 echo "$as_me:$LINENO: result: yes" >&5
8405echo "${ECHO_T}yes" >&6
8406 else
8407 echo "$as_me:$LINENO: result: no" >&5
8408echo "${ECHO_T}no" >&6
8409 fi
8410
8411
8412 enablestring=
8413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8414echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8415 no_cache=0
8416 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8417if test "${enable_spinctrl+set}" = set; then
8418 enableval="$enable_spinctrl"
8419
8420 if test "$enableval" = yes; then
8421 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8422 else
8423 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8424 fi
8425
8426else
8427
8428 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8429 if test "x$LINE" != x ; then
8430 eval "DEFAULT_$LINE"
8431 else
8432 no_cache=1
8433 fi
8434
8435 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8436
8437fi;
8438
8439 eval "$ac_cv_use_spinctrl"
8440 if test "$no_cache" != 1; then
8441 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8442 fi
8443
8444 if test "$wxUSE_SPINCTRL" = yes; then
8445 echo "$as_me:$LINENO: result: yes" >&5
8446echo "${ECHO_T}yes" >&6
8447 else
8448 echo "$as_me:$LINENO: result: no" >&5
8449echo "${ECHO_T}no" >&6
8450 fi
8451
8452
8453 enablestring=
8454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8455echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8456 no_cache=0
8457 # Check whether --enable-splitter or --disable-splitter was given.
8458if test "${enable_splitter+set}" = set; then
8459 enableval="$enable_splitter"
8460
8461 if test "$enableval" = yes; then
8462 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8463 else
8464 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8465 fi
8466
8467else
8468
8469 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8470 if test "x$LINE" != x ; then
8471 eval "DEFAULT_$LINE"
8472 else
8473 no_cache=1
8474 fi
8475
8476 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8477
8478fi;
8479
8480 eval "$ac_cv_use_splitter"
8481 if test "$no_cache" != 1; then
8482 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8483 fi
8484
8485 if test "$wxUSE_SPLITTER" = yes; then
8486 echo "$as_me:$LINENO: result: yes" >&5
8487echo "${ECHO_T}yes" >&6
8488 else
8489 echo "$as_me:$LINENO: result: no" >&5
8490echo "${ECHO_T}no" >&6
8491 fi
8492
8493
8494 enablestring=
8495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8496echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8497 no_cache=0
8498 # Check whether --enable-statbmp or --disable-statbmp was given.
8499if test "${enable_statbmp+set}" = set; then
8500 enableval="$enable_statbmp"
8501
8502 if test "$enableval" = yes; then
8503 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8504 else
8505 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8506 fi
8507
8508else
8509
8510 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8511 if test "x$LINE" != x ; then
8512 eval "DEFAULT_$LINE"
8513 else
8514 no_cache=1
8515 fi
8516
8517 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8518
8519fi;
8520
8521 eval "$ac_cv_use_statbmp"
8522 if test "$no_cache" != 1; then
8523 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8524 fi
8525
8526 if test "$wxUSE_STATBMP" = yes; then
8527 echo "$as_me:$LINENO: result: yes" >&5
8528echo "${ECHO_T}yes" >&6
8529 else
8530 echo "$as_me:$LINENO: result: no" >&5
8531echo "${ECHO_T}no" >&6
8532 fi
8533
8534
8535 enablestring=
8536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8537echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8538 no_cache=0
8539 # Check whether --enable-statbox or --disable-statbox was given.
8540if test "${enable_statbox+set}" = set; then
8541 enableval="$enable_statbox"
8542
8543 if test "$enableval" = yes; then
8544 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8545 else
8546 ac_cv_use_statbox='wxUSE_STATBOX=no'
8547 fi
8548
8549else
8550
8551 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8552 if test "x$LINE" != x ; then
8553 eval "DEFAULT_$LINE"
8554 else
8555 no_cache=1
8556 fi
8557
8558 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8559
8560fi;
8561
8562 eval "$ac_cv_use_statbox"
8563 if test "$no_cache" != 1; then
8564 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8565 fi
8566
8567 if test "$wxUSE_STATBOX" = yes; then
8568 echo "$as_me:$LINENO: result: yes" >&5
8569echo "${ECHO_T}yes" >&6
8570 else
8571 echo "$as_me:$LINENO: result: no" >&5
8572echo "${ECHO_T}no" >&6
8573 fi
8574
8575
8576 enablestring=
8577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8578echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8579 no_cache=0
8580 # Check whether --enable-statline or --disable-statline was given.
8581if test "${enable_statline+set}" = set; then
8582 enableval="$enable_statline"
8583
8584 if test "$enableval" = yes; then
8585 ac_cv_use_statline='wxUSE_STATLINE=yes'
8586 else
8587 ac_cv_use_statline='wxUSE_STATLINE=no'
8588 fi
8589
8590else
8591
8592 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8593 if test "x$LINE" != x ; then
8594 eval "DEFAULT_$LINE"
8595 else
8596 no_cache=1
8597 fi
8598
8599 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8600
8601fi;
8602
8603 eval "$ac_cv_use_statline"
8604 if test "$no_cache" != 1; then
8605 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8606 fi
8607
8608 if test "$wxUSE_STATLINE" = yes; then
8609 echo "$as_me:$LINENO: result: yes" >&5
8610echo "${ECHO_T}yes" >&6
8611 else
8612 echo "$as_me:$LINENO: result: no" >&5
8613echo "${ECHO_T}no" >&6
8614 fi
8615
8616
8617 enablestring=
8618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8619echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8620 no_cache=0
8621 # Check whether --enable-stattext or --disable-stattext was given.
8622if test "${enable_stattext+set}" = set; then
8623 enableval="$enable_stattext"
8624
8625 if test "$enableval" = yes; then
8626 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8627 else
8628 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8629 fi
8630
8631else
8632
8633 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8634 if test "x$LINE" != x ; then
8635 eval "DEFAULT_$LINE"
8636 else
8637 no_cache=1
8638 fi
8639
8640 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8641
8642fi;
8643
8644 eval "$ac_cv_use_stattext"
8645 if test "$no_cache" != 1; then
8646 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8647 fi
8648
8649 if test "$wxUSE_STATTEXT" = yes; then
8650 echo "$as_me:$LINENO: result: yes" >&5
8651echo "${ECHO_T}yes" >&6
8652 else
8653 echo "$as_me:$LINENO: result: no" >&5
8654echo "${ECHO_T}no" >&6
8655 fi
8656
8657
8658 enablestring=
8659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8660echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8661 no_cache=0
8662 # Check whether --enable-statusbar or --disable-statusbar was given.
8663if test "${enable_statusbar+set}" = set; then
8664 enableval="$enable_statusbar"
8665
8666 if test "$enableval" = yes; then
8667 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8668 else
8669 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8670 fi
8671
8672else
8673
8674 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8675 if test "x$LINE" != x ; then
8676 eval "DEFAULT_$LINE"
8677 else
8678 no_cache=1
8679 fi
8680
8681 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8682
8683fi;
8684
8685 eval "$ac_cv_use_statusbar"
8686 if test "$no_cache" != 1; then
8687 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8688 fi
8689
8690 if test "$wxUSE_STATUSBAR" = yes; then
8691 echo "$as_me:$LINENO: result: yes" >&5
8692echo "${ECHO_T}yes" >&6
8693 else
8694 echo "$as_me:$LINENO: result: no" >&5
8695echo "${ECHO_T}no" >&6
8696 fi
8697
8698
8699 enablestring=
8700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8701echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8702 no_cache=0
8703 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8704if test "${enable_tabdialog+set}" = set; then
8705 enableval="$enable_tabdialog"
8706
8707 if test "$enableval" = yes; then
8708 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8709 else
8710 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8711 fi
8712
8713else
8714
8715 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8716 if test "x$LINE" != x ; then
8717 eval "DEFAULT_$LINE"
8718 else
8719 no_cache=1
8720 fi
8721
8722 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8723
8724fi;
8725
8726 eval "$ac_cv_use_tabdialog"
8727 if test "$no_cache" != 1; then
8728 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8729 fi
8730
8731 if test "$wxUSE_TABDIALOG" = yes; then
8732 echo "$as_me:$LINENO: result: yes" >&5
8733echo "${ECHO_T}yes" >&6
8734 else
8735 echo "$as_me:$LINENO: result: no" >&5
8736echo "${ECHO_T}no" >&6
8737 fi
8738
8739
8740 enablestring=
8741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8742echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8743 no_cache=0
8744 # Check whether --enable-textctrl or --disable-textctrl was given.
8745if test "${enable_textctrl+set}" = set; then
8746 enableval="$enable_textctrl"
8747
8748 if test "$enableval" = yes; then
8749 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8750 else
8751 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8752 fi
8753
8754else
8755
8756 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8757 if test "x$LINE" != x ; then
8758 eval "DEFAULT_$LINE"
8759 else
8760 no_cache=1
8761 fi
8762
8763 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8764
8765fi;
8766
8767 eval "$ac_cv_use_textctrl"
8768 if test "$no_cache" != 1; then
8769 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8770 fi
8771
8772 if test "$wxUSE_TEXTCTRL" = yes; then
8773 echo "$as_me:$LINENO: result: yes" >&5
8774echo "${ECHO_T}yes" >&6
8775 else
8776 echo "$as_me:$LINENO: result: no" >&5
8777echo "${ECHO_T}no" >&6
8778 fi
8779
8780
8781 enablestring=
8782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8783echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8784 no_cache=0
8785 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8786if test "${enable_togglebtn+set}" = set; then
8787 enableval="$enable_togglebtn"
8788
8789 if test "$enableval" = yes; then
8790 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8791 else
8792 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8793 fi
8794
8795else
8796
8797 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8798 if test "x$LINE" != x ; then
8799 eval "DEFAULT_$LINE"
8800 else
8801 no_cache=1
8802 fi
8803
8804 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8805
8806fi;
8807
8808 eval "$ac_cv_use_togglebtn"
8809 if test "$no_cache" != 1; then
8810 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8811 fi
8812
8813 if test "$wxUSE_TOGGLEBTN" = yes; then
8814 echo "$as_me:$LINENO: result: yes" >&5
8815echo "${ECHO_T}yes" >&6
8816 else
8817 echo "$as_me:$LINENO: result: no" >&5
8818echo "${ECHO_T}no" >&6
8819 fi
8820
8821
8822 enablestring=
8823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8824echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8825 no_cache=0
8826 # Check whether --enable-toolbar or --disable-toolbar was given.
8827if test "${enable_toolbar+set}" = set; then
8828 enableval="$enable_toolbar"
8829
8830 if test "$enableval" = yes; then
8831 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8832 else
8833 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8834 fi
8835
8836else
8837
8838 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8839 if test "x$LINE" != x ; then
8840 eval "DEFAULT_$LINE"
8841 else
8842 no_cache=1
8843 fi
8844
8845 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8846
8847fi;
8848
8849 eval "$ac_cv_use_toolbar"
8850 if test "$no_cache" != 1; then
8851 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8852 fi
8853
8854 if test "$wxUSE_TOOLBAR" = yes; then
8855 echo "$as_me:$LINENO: result: yes" >&5
8856echo "${ECHO_T}yes" >&6
8857 else
8858 echo "$as_me:$LINENO: result: no" >&5
8859echo "${ECHO_T}no" >&6
8860 fi
8861
8862
8863 enablestring=
8864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8865echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8866 no_cache=0
8867 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8868if test "${enable_tbarnative+set}" = set; then
8869 enableval="$enable_tbarnative"
8870
8871 if test "$enableval" = yes; then
8872 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8873 else
8874 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8875 fi
8876
8877else
8878
8879 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8880 if test "x$LINE" != x ; then
8881 eval "DEFAULT_$LINE"
8882 else
8883 no_cache=1
8884 fi
8885
8886 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8887
8888fi;
8889
8890 eval "$ac_cv_use_tbarnative"
8891 if test "$no_cache" != 1; then
8892 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8893 fi
8894
8895 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8896 echo "$as_me:$LINENO: result: yes" >&5
8897echo "${ECHO_T}yes" >&6
8898 else
8899 echo "$as_me:$LINENO: result: no" >&5
8900echo "${ECHO_T}no" >&6
8901 fi
8902
8903
8904 enablestring=
8905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8906echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8907 no_cache=0
8908 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8909if test "${enable_tbarsmpl+set}" = set; then
8910 enableval="$enable_tbarsmpl"
8911
8912 if test "$enableval" = yes; then
8913 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8914 else
8915 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8916 fi
8917
8918else
8919
8920 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8921 if test "x$LINE" != x ; then
8922 eval "DEFAULT_$LINE"
8923 else
8924 no_cache=1
8925 fi
8926
8927 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8928
8929fi;
8930
8931 eval "$ac_cv_use_tbarsmpl"
8932 if test "$no_cache" != 1; then
8933 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8934 fi
8935
8936 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8937 echo "$as_me:$LINENO: result: yes" >&5
8938echo "${ECHO_T}yes" >&6
8939 else
8940 echo "$as_me:$LINENO: result: no" >&5
8941echo "${ECHO_T}no" >&6
8942 fi
8943
8944
8945 enablestring=
8946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8947echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8948 no_cache=0
8949 # Check whether --enable-treectrl or --disable-treectrl was given.
8950if test "${enable_treectrl+set}" = set; then
8951 enableval="$enable_treectrl"
8952
8953 if test "$enableval" = yes; then
8954 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8955 else
8956 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8957 fi
8958
8959else
8960
8961 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8962 if test "x$LINE" != x ; then
8963 eval "DEFAULT_$LINE"
8964 else
8965 no_cache=1
8966 fi
8967
8968 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8969
8970fi;
8971
8972 eval "$ac_cv_use_treectrl"
8973 if test "$no_cache" != 1; then
8974 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8975 fi
8976
8977 if test "$wxUSE_TREECTRL" = yes; then
8978 echo "$as_me:$LINENO: result: yes" >&5
8979echo "${ECHO_T}yes" >&6
8980 else
8981 echo "$as_me:$LINENO: result: no" >&5
8982echo "${ECHO_T}no" >&6
8983 fi
8984
8985
8986 enablestring=
8987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8988echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8989 no_cache=0
8990 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8991if test "${enable_tipwindow+set}" = set; then
8992 enableval="$enable_tipwindow"
8993
8994 if test "$enableval" = yes; then
8995 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8996 else
8997 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8998 fi
8999
9000else
9001
9002 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9003 if test "x$LINE" != x ; then
9004 eval "DEFAULT_$LINE"
9005 else
9006 no_cache=1
9007 fi
9008
9009 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9010
9011fi;
9012
9013 eval "$ac_cv_use_tipwindow"
9014 if test "$no_cache" != 1; then
9015 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9016 fi
9017
9018 if test "$wxUSE_TIPWINDOW" = yes; then
9019 echo "$as_me:$LINENO: result: yes" >&5
9020echo "${ECHO_T}yes" >&6
9021 else
9022 echo "$as_me:$LINENO: result: no" >&5
9023echo "${ECHO_T}no" >&6
9024 fi
9025
9026
9027 enablestring=
9028 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9029echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9030 no_cache=0
9031 # Check whether --enable-popupwin or --disable-popupwin was given.
9032if test "${enable_popupwin+set}" = set; then
9033 enableval="$enable_popupwin"
9034
9035 if test "$enableval" = yes; then
9036 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9037 else
9038 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9039 fi
9040
9041else
9042
9043 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9044 if test "x$LINE" != x ; then
9045 eval "DEFAULT_$LINE"
9046 else
9047 no_cache=1
9048 fi
9049
9050 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9051
9052fi;
9053
9054 eval "$ac_cv_use_popupwin"
9055 if test "$no_cache" != 1; then
9056 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9057 fi
9058
9059 if test "$wxUSE_POPUPWIN" = yes; then
9060 echo "$as_me:$LINENO: result: yes" >&5
9061echo "${ECHO_T}yes" >&6
9062 else
9063 echo "$as_me:$LINENO: result: no" >&5
9064echo "${ECHO_T}no" >&6
9065 fi
9066
9067
9068
9069
9070 enablestring=
9071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9072echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9073 no_cache=0
9074 # Check whether --enable-commondlg or --disable-commondlg was given.
9075if test "${enable_commondlg+set}" = set; then
9076 enableval="$enable_commondlg"
9077
9078 if test "$enableval" = yes; then
9079 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9080 else
9081 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9082 fi
9083
9084else
9085
9086 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9087 if test "x$LINE" != x ; then
9088 eval "DEFAULT_$LINE"
9089 else
9090 no_cache=1
9091 fi
9092
9093 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9094
9095fi;
9096
9097 eval "$ac_cv_use_commondlg"
9098 if test "$no_cache" != 1; then
9099 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9100 fi
9101
9102 if test "$wxUSE_COMMONDLGS" = yes; then
9103 echo "$as_me:$LINENO: result: yes" >&5
9104echo "${ECHO_T}yes" >&6
9105 else
9106 echo "$as_me:$LINENO: result: no" >&5
9107echo "${ECHO_T}no" >&6
9108 fi
9109
9110
9111 enablestring=
9112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9113echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9114 no_cache=0
9115 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9116if test "${enable_choicedlg+set}" = set; then
9117 enableval="$enable_choicedlg"
9118
9119 if test "$enableval" = yes; then
9120 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9121 else
9122 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9123 fi
9124
9125else
9126
9127 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9128 if test "x$LINE" != x ; then
9129 eval "DEFAULT_$LINE"
9130 else
9131 no_cache=1
9132 fi
9133
9134 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9135
9136fi;
9137
9138 eval "$ac_cv_use_choicedlg"
9139 if test "$no_cache" != 1; then
9140 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9141 fi
9142
9143 if test "$wxUSE_CHOICEDLG" = yes; then
9144 echo "$as_me:$LINENO: result: yes" >&5
9145echo "${ECHO_T}yes" >&6
9146 else
9147 echo "$as_me:$LINENO: result: no" >&5
9148echo "${ECHO_T}no" >&6
9149 fi
9150
9151
9152 enablestring=
9153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9154echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9155 no_cache=0
9156 # Check whether --enable-coldlg or --disable-coldlg was given.
9157if test "${enable_coldlg+set}" = set; then
9158 enableval="$enable_coldlg"
9159
9160 if test "$enableval" = yes; then
9161 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9162 else
9163 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9164 fi
9165
9166else
9167
9168 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9169 if test "x$LINE" != x ; then
9170 eval "DEFAULT_$LINE"
9171 else
9172 no_cache=1
9173 fi
9174
9175 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9176
9177fi;
9178
9179 eval "$ac_cv_use_coldlg"
9180 if test "$no_cache" != 1; then
9181 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9182 fi
9183
9184 if test "$wxUSE_COLOURDLG" = yes; then
9185 echo "$as_me:$LINENO: result: yes" >&5
9186echo "${ECHO_T}yes" >&6
9187 else
9188 echo "$as_me:$LINENO: result: no" >&5
9189echo "${ECHO_T}no" >&6
9190 fi
9191
9192
9193 enablestring=
9194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9195echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9196 no_cache=0
9197 # Check whether --enable-filedlg or --disable-filedlg was given.
9198if test "${enable_filedlg+set}" = set; then
9199 enableval="$enable_filedlg"
9200
9201 if test "$enableval" = yes; then
9202 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9203 else
9204 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9205 fi
9206
9207else
9208
9209 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9210 if test "x$LINE" != x ; then
9211 eval "DEFAULT_$LINE"
9212 else
9213 no_cache=1
9214 fi
9215
9216 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9217
9218fi;
9219
9220 eval "$ac_cv_use_filedlg"
9221 if test "$no_cache" != 1; then
9222 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9223 fi
9224
9225 if test "$wxUSE_FILEDLG" = yes; then
9226 echo "$as_me:$LINENO: result: yes" >&5
9227echo "${ECHO_T}yes" >&6
9228 else
9229 echo "$as_me:$LINENO: result: no" >&5
9230echo "${ECHO_T}no" >&6
9231 fi
9232
9233
9234 enablestring=
9235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9236echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9237 no_cache=0
9238 # Check whether --enable-finddlg or --disable-finddlg was given.
9239if test "${enable_finddlg+set}" = set; then
9240 enableval="$enable_finddlg"
9241
9242 if test "$enableval" = yes; then
9243 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9244 else
9245 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9246 fi
9247
9248else
9249
9250 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9251 if test "x$LINE" != x ; then
9252 eval "DEFAULT_$LINE"
9253 else
9254 no_cache=1
9255 fi
9256
9257 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9258
9259fi;
9260
9261 eval "$ac_cv_use_finddlg"
9262 if test "$no_cache" != 1; then
9263 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9264 fi
9265
9266 if test "$wxUSE_FINDREPLDLG" = yes; then
9267 echo "$as_me:$LINENO: result: yes" >&5
9268echo "${ECHO_T}yes" >&6
9269 else
9270 echo "$as_me:$LINENO: result: no" >&5
9271echo "${ECHO_T}no" >&6
9272 fi
9273
9274
9275 enablestring=
9276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9277echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9278 no_cache=0
9279 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9280if test "${enable_fontdlg+set}" = set; then
9281 enableval="$enable_fontdlg"
9282
9283 if test "$enableval" = yes; then
9284 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9285 else
9286 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9287 fi
9288
9289else
9290
9291 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9292 if test "x$LINE" != x ; then
9293 eval "DEFAULT_$LINE"
9294 else
9295 no_cache=1
9296 fi
9297
9298 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9299
9300fi;
9301
9302 eval "$ac_cv_use_fontdlg"
9303 if test "$no_cache" != 1; then
9304 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9305 fi
9306
9307 if test "$wxUSE_FONTDLG" = yes; then
9308 echo "$as_me:$LINENO: result: yes" >&5
9309echo "${ECHO_T}yes" >&6
9310 else
9311 echo "$as_me:$LINENO: result: no" >&5
9312echo "${ECHO_T}no" >&6
9313 fi
9314
9315
9316 enablestring=
9317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9318echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9319 no_cache=0
9320 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9321if test "${enable_dirdlg+set}" = set; then
9322 enableval="$enable_dirdlg"
9323
9324 if test "$enableval" = yes; then
9325 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9326 else
9327 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9328 fi
9329
9330else
9331
9332 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9333 if test "x$LINE" != x ; then
9334 eval "DEFAULT_$LINE"
9335 else
9336 no_cache=1
9337 fi
9338
9339 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9340
9341fi;
9342
9343 eval "$ac_cv_use_dirdlg"
9344 if test "$no_cache" != 1; then
9345 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9346 fi
9347
9348 if test "$wxUSE_DIRDLG" = yes; then
9349 echo "$as_me:$LINENO: result: yes" >&5
9350echo "${ECHO_T}yes" >&6
9351 else
9352 echo "$as_me:$LINENO: result: no" >&5
9353echo "${ECHO_T}no" >&6
9354 fi
9355
9356
9357 enablestring=
9358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9359echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9360 no_cache=0
9361 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9362if test "${enable_msgdlg+set}" = set; then
9363 enableval="$enable_msgdlg"
9364
9365 if test "$enableval" = yes; then
9366 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9367 else
9368 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9369 fi
9370
9371else
9372
9373 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9374 if test "x$LINE" != x ; then
9375 eval "DEFAULT_$LINE"
9376 else
9377 no_cache=1
9378 fi
9379
9380 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9381
9382fi;
9383
9384 eval "$ac_cv_use_msgdlg"
9385 if test "$no_cache" != 1; then
9386 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9387 fi
9388
9389 if test "$wxUSE_MSGDLG" = yes; then
9390 echo "$as_me:$LINENO: result: yes" >&5
9391echo "${ECHO_T}yes" >&6
9392 else
9393 echo "$as_me:$LINENO: result: no" >&5
9394echo "${ECHO_T}no" >&6
9395 fi
9396
9397
9398 enablestring=
9399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9400echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9401 no_cache=0
9402 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9403if test "${enable_numberdlg+set}" = set; then
9404 enableval="$enable_numberdlg"
9405
9406 if test "$enableval" = yes; then
9407 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9408 else
9409 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9410 fi
9411
9412else
9413
9414 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9415 if test "x$LINE" != x ; then
9416 eval "DEFAULT_$LINE"
9417 else
9418 no_cache=1
9419 fi
9420
9421 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9422
9423fi;
9424
9425 eval "$ac_cv_use_numberdlg"
9426 if test "$no_cache" != 1; then
9427 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9428 fi
9429
9430 if test "$wxUSE_NUMBERDLG" = yes; then
9431 echo "$as_me:$LINENO: result: yes" >&5
9432echo "${ECHO_T}yes" >&6
9433 else
9434 echo "$as_me:$LINENO: result: no" >&5
9435echo "${ECHO_T}no" >&6
9436 fi
9437
9438
9439 enablestring=
9440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9441echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9442 no_cache=0
9443 # Check whether --enable-splash or --disable-splash was given.
9444if test "${enable_splash+set}" = set; then
9445 enableval="$enable_splash"
9446
9447 if test "$enableval" = yes; then
9448 ac_cv_use_splash='wxUSE_SPLASH=yes'
9449 else
9450 ac_cv_use_splash='wxUSE_SPLASH=no'
9451 fi
9452
9453else
9454
9455 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9456 if test "x$LINE" != x ; then
9457 eval "DEFAULT_$LINE"
9458 else
9459 no_cache=1
9460 fi
9461
9462 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9463
9464fi;
9465
9466 eval "$ac_cv_use_splash"
9467 if test "$no_cache" != 1; then
9468 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9469 fi
9470
9471 if test "$wxUSE_SPLASH" = yes; then
9472 echo "$as_me:$LINENO: result: yes" >&5
9473echo "${ECHO_T}yes" >&6
9474 else
9475 echo "$as_me:$LINENO: result: no" >&5
9476echo "${ECHO_T}no" >&6
9477 fi
9478
9479
9480 enablestring=
9481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9482echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9483 no_cache=0
9484 # Check whether --enable-textdlg or --disable-textdlg was given.
9485if test "${enable_textdlg+set}" = set; then
9486 enableval="$enable_textdlg"
9487
9488 if test "$enableval" = yes; then
9489 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9490 else
9491 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9492 fi
9493
9494else
9495
9496 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9497 if test "x$LINE" != x ; then
9498 eval "DEFAULT_$LINE"
9499 else
9500 no_cache=1
9501 fi
9502
9503 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9504
9505fi;
9506
9507 eval "$ac_cv_use_textdlg"
9508 if test "$no_cache" != 1; then
9509 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9510 fi
9511
9512 if test "$wxUSE_TEXTDLG" = yes; then
9513 echo "$as_me:$LINENO: result: yes" >&5
9514echo "${ECHO_T}yes" >&6
9515 else
9516 echo "$as_me:$LINENO: result: no" >&5
9517echo "${ECHO_T}no" >&6
9518 fi
9519
9520
9521 enablestring=
9522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9523echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9524 no_cache=0
9525 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9526if test "${enable_tipdlg+set}" = set; then
9527 enableval="$enable_tipdlg"
9528
9529 if test "$enableval" = yes; then
9530 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9531 else
9532 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9533 fi
9534
9535else
9536
9537 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9538 if test "x$LINE" != x ; then
9539 eval "DEFAULT_$LINE"
9540 else
9541 no_cache=1
9542 fi
9543
9544 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9545
9546fi;
9547
9548 eval "$ac_cv_use_tipdlg"
9549 if test "$no_cache" != 1; then
9550 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9551 fi
9552
9553 if test "$wxUSE_STARTUP_TIPS" = yes; then
9554 echo "$as_me:$LINENO: result: yes" >&5
9555echo "${ECHO_T}yes" >&6
9556 else
9557 echo "$as_me:$LINENO: result: no" >&5
9558echo "${ECHO_T}no" >&6
9559 fi
9560
9561
9562 enablestring=
9563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9564echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9565 no_cache=0
9566 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9567if test "${enable_progressdlg+set}" = set; then
9568 enableval="$enable_progressdlg"
9569
9570 if test "$enableval" = yes; then
9571 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9572 else
9573 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9574 fi
9575
9576else
9577
9578 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9579 if test "x$LINE" != x ; then
9580 eval "DEFAULT_$LINE"
9581 else
9582 no_cache=1
9583 fi
9584
9585 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9586
9587fi;
9588
9589 eval "$ac_cv_use_progressdlg"
9590 if test "$no_cache" != 1; then
9591 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9592 fi
9593
9594 if test "$wxUSE_PROGRESSDLG" = yes; then
9595 echo "$as_me:$LINENO: result: yes" >&5
9596echo "${ECHO_T}yes" >&6
9597 else
9598 echo "$as_me:$LINENO: result: no" >&5
9599echo "${ECHO_T}no" >&6
9600 fi
9601
9602
9603 enablestring=
9604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9605echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9606 no_cache=0
9607 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9608if test "${enable_wizarddlg+set}" = set; then
9609 enableval="$enable_wizarddlg"
9610
9611 if test "$enableval" = yes; then
9612 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9613 else
9614 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9615 fi
9616
9617else
9618
9619 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9620 if test "x$LINE" != x ; then
9621 eval "DEFAULT_$LINE"
9622 else
9623 no_cache=1
9624 fi
9625
9626 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9627
9628fi;
9629
9630 eval "$ac_cv_use_wizarddlg"
9631 if test "$no_cache" != 1; then
9632 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9633 fi
9634
9635 if test "$wxUSE_WIZARDDLG" = yes; then
9636 echo "$as_me:$LINENO: result: yes" >&5
9637echo "${ECHO_T}yes" >&6
9638 else
9639 echo "$as_me:$LINENO: result: no" >&5
9640echo "${ECHO_T}no" >&6
9641 fi
9642
9643
9644
9645
9646 enablestring=
9647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9648echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9649 no_cache=0
9650 # Check whether --enable-menus or --disable-menus was given.
9651if test "${enable_menus+set}" = set; then
9652 enableval="$enable_menus"
9653
9654 if test "$enableval" = yes; then
9655 ac_cv_use_menus='wxUSE_MENUS=yes'
9656 else
9657 ac_cv_use_menus='wxUSE_MENUS=no'
9658 fi
9659
9660else
9661
9662 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9663 if test "x$LINE" != x ; then
9664 eval "DEFAULT_$LINE"
9665 else
9666 no_cache=1
9667 fi
9668
9669 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9670
9671fi;
9672
9673 eval "$ac_cv_use_menus"
9674 if test "$no_cache" != 1; then
9675 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9676 fi
9677
9678 if test "$wxUSE_MENUS" = yes; then
9679 echo "$as_me:$LINENO: result: yes" >&5
9680echo "${ECHO_T}yes" >&6
9681 else
9682 echo "$as_me:$LINENO: result: no" >&5
9683echo "${ECHO_T}no" >&6
9684 fi
9685
9686
9687 enablestring=
9688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9689echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9690 no_cache=0
9691 # Check whether --enable-miniframe or --disable-miniframe was given.
9692if test "${enable_miniframe+set}" = set; then
9693 enableval="$enable_miniframe"
9694
9695 if test "$enableval" = yes; then
9696 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9697 else
9698 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9699 fi
9700
9701else
9702
9703 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9704 if test "x$LINE" != x ; then
9705 eval "DEFAULT_$LINE"
9706 else
9707 no_cache=1
9708 fi
9709
9710 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9711
9712fi;
9713
9714 eval "$ac_cv_use_miniframe"
9715 if test "$no_cache" != 1; then
9716 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9717 fi
9718
9719 if test "$wxUSE_MINIFRAME" = yes; then
9720 echo "$as_me:$LINENO: result: yes" >&5
9721echo "${ECHO_T}yes" >&6
9722 else
9723 echo "$as_me:$LINENO: result: no" >&5
9724echo "${ECHO_T}no" >&6
9725 fi
9726
9727
9728 enablestring=
9729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9730echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9731 no_cache=0
9732 # Check whether --enable-tooltips or --disable-tooltips was given.
9733if test "${enable_tooltips+set}" = set; then
9734 enableval="$enable_tooltips"
9735
9736 if test "$enableval" = yes; then
9737 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9738 else
9739 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9740 fi
9741
9742else
9743
9744 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9745 if test "x$LINE" != x ; then
9746 eval "DEFAULT_$LINE"
9747 else
9748 no_cache=1
9749 fi
9750
9751 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9752
9753fi;
9754
9755 eval "$ac_cv_use_tooltips"
9756 if test "$no_cache" != 1; then
9757 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9758 fi
9759
9760 if test "$wxUSE_TOOLTIPS" = yes; then
9761 echo "$as_me:$LINENO: result: yes" >&5
9762echo "${ECHO_T}yes" >&6
9763 else
9764 echo "$as_me:$LINENO: result: no" >&5
9765echo "${ECHO_T}no" >&6
9766 fi
9767
9768
9769 enablestring=
9770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9771echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9772 no_cache=0
9773 # Check whether --enable-splines or --disable-splines was given.
9774if test "${enable_splines+set}" = set; then
9775 enableval="$enable_splines"
9776
9777 if test "$enableval" = yes; then
9778 ac_cv_use_splines='wxUSE_SPLINES=yes'
9779 else
9780 ac_cv_use_splines='wxUSE_SPLINES=no'
9781 fi
9782
9783else
9784
9785 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9786 if test "x$LINE" != x ; then
9787 eval "DEFAULT_$LINE"
9788 else
9789 no_cache=1
9790 fi
9791
9792 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9793
9794fi;
9795
9796 eval "$ac_cv_use_splines"
9797 if test "$no_cache" != 1; then
9798 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9799 fi
9800
9801 if test "$wxUSE_SPLINES" = yes; then
9802 echo "$as_me:$LINENO: result: yes" >&5
9803echo "${ECHO_T}yes" >&6
9804 else
9805 echo "$as_me:$LINENO: result: no" >&5
9806echo "${ECHO_T}no" >&6
9807 fi
9808
9809
fbe2ca43
SN
9810 enablestring=
9811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9812echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9813 no_cache=0
9814 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9815if test "${enable_mousewheel+set}" = set; then
9816 enableval="$enable_mousewheel"
9817
9818 if test "$enableval" = yes; then
9819 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9820 else
9821 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9822 fi
9823
9824else
9825
9826 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9827 if test "x$LINE" != x ; then
9828 eval "DEFAULT_$LINE"
9829 else
9830 no_cache=1
9831 fi
9832
9833 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9834
9835fi;
9836
9837 eval "$ac_cv_use_mousewheel"
9838 if test "$no_cache" != 1; then
9839 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9840 fi
9841
9842 if test "$wxUSE_MOUSEWHEEL" = yes; then
9843 echo "$as_me:$LINENO: result: yes" >&5
9844echo "${ECHO_T}yes" >&6
9845 else
9846 echo "$as_me:$LINENO: result: no" >&5
9847echo "${ECHO_T}no" >&6
9848 fi
9849
9850
a848cd7e
SC
9851 enablestring=
9852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9853echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9854 no_cache=0
9855 # Check whether --enable-validators or --disable-validators was given.
9856if test "${enable_validators+set}" = set; then
9857 enableval="$enable_validators"
9858
9859 if test "$enableval" = yes; then
9860 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9861 else
9862 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9863 fi
9864
9865else
9866
9867 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9868 if test "x$LINE" != x ; then
9869 eval "DEFAULT_$LINE"
9870 else
9871 no_cache=1
9872 fi
9873
9874 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9875
9876fi;
9877
9878 eval "$ac_cv_use_validators"
9879 if test "$no_cache" != 1; then
9880 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9881 fi
9882
9883 if test "$wxUSE_VALIDATORS" = yes; then
9884 echo "$as_me:$LINENO: result: yes" >&5
9885echo "${ECHO_T}yes" >&6
9886 else
9887 echo "$as_me:$LINENO: result: no" >&5
9888echo "${ECHO_T}no" >&6
9889 fi
9890
9891
9892 enablestring=
9893 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9894echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9895 no_cache=0
9896 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9897if test "${enable_busyinfo+set}" = set; then
9898 enableval="$enable_busyinfo"
9899
9900 if test "$enableval" = yes; then
9901 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9902 else
9903 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9904 fi
9905
9906else
9907
9908 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9909 if test "x$LINE" != x ; then
9910 eval "DEFAULT_$LINE"
9911 else
9912 no_cache=1
9913 fi
9914
9915 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9916
9917fi;
9918
9919 eval "$ac_cv_use_busyinfo"
9920 if test "$no_cache" != 1; then
9921 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9922 fi
9923
9924 if test "$wxUSE_BUSYINFO" = yes; then
9925 echo "$as_me:$LINENO: result: yes" >&5
9926echo "${ECHO_T}yes" >&6
9927 else
9928 echo "$as_me:$LINENO: result: no" >&5
9929echo "${ECHO_T}no" >&6
9930 fi
9931
9932
9933 enablestring=
9934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9935echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9936 no_cache=0
9937 # Check whether --enable-joystick or --disable-joystick was given.
9938if test "${enable_joystick+set}" = set; then
9939 enableval="$enable_joystick"
9940
9941 if test "$enableval" = yes; then
9942 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9943 else
9944 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9945 fi
9946
9947else
9948
9949 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9950 if test "x$LINE" != x ; then
9951 eval "DEFAULT_$LINE"
9952 else
9953 no_cache=1
9954 fi
9955
9956 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9957
9958fi;
9959
9960 eval "$ac_cv_use_joystick"
9961 if test "$no_cache" != 1; then
9962 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9963 fi
9964
9965 if test "$wxUSE_JOYSTICK" = yes; then
9966 echo "$as_me:$LINENO: result: yes" >&5
9967echo "${ECHO_T}yes" >&6
9968 else
9969 echo "$as_me:$LINENO: result: no" >&5
9970echo "${ECHO_T}no" >&6
9971 fi
9972
9973
9974 enablestring=
9975 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9976echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9977 no_cache=0
9978 # Check whether --enable-metafile or --disable-metafile was given.
9979if test "${enable_metafile+set}" = set; then
9980 enableval="$enable_metafile"
9981
9982 if test "$enableval" = yes; then
9983 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9984 else
9985 ac_cv_use_metafile='wxUSE_METAFILE=no'
9986 fi
9987
9988else
9989
9990 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9991 if test "x$LINE" != x ; then
9992 eval "DEFAULT_$LINE"
9993 else
9994 no_cache=1
9995 fi
9996
9997 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9998
9999fi;
10000
10001 eval "$ac_cv_use_metafile"
10002 if test "$no_cache" != 1; then
10003 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10004 fi
10005
10006 if test "$wxUSE_METAFILE" = yes; then
10007 echo "$as_me:$LINENO: result: yes" >&5
10008echo "${ECHO_T}yes" >&6
10009 else
10010 echo "$as_me:$LINENO: result: no" >&5
10011echo "${ECHO_T}no" >&6
10012 fi
10013
10014
10015 enablestring=
10016 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10017echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10018 no_cache=0
10019 # Check whether --enable-dragimage or --disable-dragimage was given.
10020if test "${enable_dragimage+set}" = set; then
10021 enableval="$enable_dragimage"
10022
10023 if test "$enableval" = yes; then
10024 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10025 else
10026 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10027 fi
10028
10029else
10030
10031 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10032 if test "x$LINE" != x ; then
10033 eval "DEFAULT_$LINE"
10034 else
10035 no_cache=1
10036 fi
10037
10038 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10039
10040fi;
10041
10042 eval "$ac_cv_use_dragimage"
10043 if test "$no_cache" != 1; then
10044 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10045 fi
10046
10047 if test "$wxUSE_DRAGIMAGE" = yes; then
10048 echo "$as_me:$LINENO: result: yes" >&5
10049echo "${ECHO_T}yes" >&6
10050 else
10051 echo "$as_me:$LINENO: result: no" >&5
10052echo "${ECHO_T}no" >&6
10053 fi
10054
10055
10056 enablestring=
10057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10058echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10059 no_cache=0
10060 # Check whether --enable-accessibility or --disable-accessibility was given.
10061if test "${enable_accessibility+set}" = set; then
10062 enableval="$enable_accessibility"
10063
10064 if test "$enableval" = yes; then
10065 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10066 else
10067 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10068 fi
10069
10070else
10071
10072 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10073 if test "x$LINE" != x ; then
10074 eval "DEFAULT_$LINE"
10075 else
10076 no_cache=1
10077 fi
10078
10079 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10080
10081fi;
10082
10083 eval "$ac_cv_use_accessibility"
10084 if test "$no_cache" != 1; then
10085 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10086 fi
10087
10088 if test "$wxUSE_ACCESSIBILITY" = yes; then
10089 echo "$as_me:$LINENO: result: yes" >&5
10090echo "${ECHO_T}yes" >&6
10091 else
10092 echo "$as_me:$LINENO: result: no" >&5
10093echo "${ECHO_T}no" >&6
10094 fi
10095
10096
38b4a946
VZ
10097if test "$wxUSE_MSW" = "1"; then
10098
10099 enablestring=
10100 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10101echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10102 no_cache=0
10103 # Check whether --enable-dccache or --disable-dccache was given.
10104if test "${enable_dccache+set}" = set; then
10105 enableval="$enable_dccache"
10106
10107 if test "$enableval" = yes; then
10108 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10109 else
10110 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10111 fi
10112
10113else
10114
10115 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10116 if test "x$LINE" != x ; then
10117 eval "DEFAULT_$LINE"
10118 else
10119 no_cache=1
10120 fi
10121
10122 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10123
10124fi;
10125
10126 eval "$ac_cv_use_dccache"
10127 if test "$no_cache" != 1; then
10128 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10129 fi
10130
10131 if test "$wxUSE_DC_CACHEING" = yes; then
10132 echo "$as_me:$LINENO: result: yes" >&5
10133echo "${ECHO_T}yes" >&6
10134 else
10135 echo "$as_me:$LINENO: result: no" >&5
10136echo "${ECHO_T}no" >&6
10137 fi
10138
10139fi
10140
a848cd7e
SC
10141
10142
10143 enablestring=
10144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10145echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10146 no_cache=0
10147 # Check whether --enable-palette or --disable-palette was given.
10148if test "${enable_palette+set}" = set; then
10149 enableval="$enable_palette"
10150
10151 if test "$enableval" = yes; then
10152 ac_cv_use_palette='wxUSE_PALETTE=yes'
10153 else
10154 ac_cv_use_palette='wxUSE_PALETTE=no'
10155 fi
10156
10157else
10158
10159 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10160 if test "x$LINE" != x ; then
10161 eval "DEFAULT_$LINE"
10162 else
10163 no_cache=1
10164 fi
10165
10166 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10167
10168fi;
10169
10170 eval "$ac_cv_use_palette"
10171 if test "$no_cache" != 1; then
10172 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10173 fi
10174
10175 if test "$wxUSE_PALETTE" = yes; then
10176 echo "$as_me:$LINENO: result: yes" >&5
10177echo "${ECHO_T}yes" >&6
10178 else
10179 echo "$as_me:$LINENO: result: no" >&5
10180echo "${ECHO_T}no" >&6
10181 fi
10182
10183
10184 enablestring=
10185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10186echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10187 no_cache=0
10188 # Check whether --enable-image or --disable-image was given.
10189if test "${enable_image+set}" = set; then
10190 enableval="$enable_image"
10191
10192 if test "$enableval" = yes; then
10193 ac_cv_use_image='wxUSE_IMAGE=yes'
10194 else
10195 ac_cv_use_image='wxUSE_IMAGE=no'
10196 fi
10197
10198else
10199
10200 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10201 if test "x$LINE" != x ; then
10202 eval "DEFAULT_$LINE"
10203 else
10204 no_cache=1
10205 fi
10206
10207 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10208
10209fi;
10210
10211 eval "$ac_cv_use_image"
10212 if test "$no_cache" != 1; then
10213 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10214 fi
10215
10216 if test "$wxUSE_IMAGE" = yes; then
10217 echo "$as_me:$LINENO: result: yes" >&5
10218echo "${ECHO_T}yes" >&6
10219 else
10220 echo "$as_me:$LINENO: result: no" >&5
10221echo "${ECHO_T}no" >&6
10222 fi
10223
10224
10225 enablestring=
10226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10227echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10228 no_cache=0
10229 # Check whether --enable-gif or --disable-gif was given.
10230if test "${enable_gif+set}" = set; then
10231 enableval="$enable_gif"
10232
10233 if test "$enableval" = yes; then
10234 ac_cv_use_gif='wxUSE_GIF=yes'
10235 else
10236 ac_cv_use_gif='wxUSE_GIF=no'
10237 fi
10238
10239else
10240
10241 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10242 if test "x$LINE" != x ; then
10243 eval "DEFAULT_$LINE"
10244 else
10245 no_cache=1
10246 fi
10247
10248 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10249
10250fi;
10251
10252 eval "$ac_cv_use_gif"
10253 if test "$no_cache" != 1; then
10254 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10255 fi
10256
10257 if test "$wxUSE_GIF" = yes; then
10258 echo "$as_me:$LINENO: result: yes" >&5
10259echo "${ECHO_T}yes" >&6
10260 else
10261 echo "$as_me:$LINENO: result: no" >&5
10262echo "${ECHO_T}no" >&6
10263 fi
10264
10265
10266 enablestring=
10267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10268echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10269 no_cache=0
10270 # Check whether --enable-pcx or --disable-pcx was given.
10271if test "${enable_pcx+set}" = set; then
10272 enableval="$enable_pcx"
10273
10274 if test "$enableval" = yes; then
10275 ac_cv_use_pcx='wxUSE_PCX=yes'
10276 else
10277 ac_cv_use_pcx='wxUSE_PCX=no'
10278 fi
10279
10280else
10281
10282 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10283 if test "x$LINE" != x ; then
10284 eval "DEFAULT_$LINE"
10285 else
10286 no_cache=1
10287 fi
10288
10289 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10290
10291fi;
10292
10293 eval "$ac_cv_use_pcx"
10294 if test "$no_cache" != 1; then
10295 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10296 fi
10297
10298 if test "$wxUSE_PCX" = yes; then
10299 echo "$as_me:$LINENO: result: yes" >&5
10300echo "${ECHO_T}yes" >&6
10301 else
10302 echo "$as_me:$LINENO: result: no" >&5
10303echo "${ECHO_T}no" >&6
10304 fi
10305
10306
10307 enablestring=
10308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10309echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10310 no_cache=0
10311 # Check whether --enable-iff or --disable-iff was given.
10312if test "${enable_iff+set}" = set; then
10313 enableval="$enable_iff"
10314
10315 if test "$enableval" = yes; then
10316 ac_cv_use_iff='wxUSE_IFF=yes'
10317 else
10318 ac_cv_use_iff='wxUSE_IFF=no'
10319 fi
10320
10321else
10322
10323 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10324 if test "x$LINE" != x ; then
10325 eval "DEFAULT_$LINE"
10326 else
10327 no_cache=1
10328 fi
10329
10330 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10331
10332fi;
10333
10334 eval "$ac_cv_use_iff"
10335 if test "$no_cache" != 1; then
10336 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10337 fi
10338
10339 if test "$wxUSE_IFF" = yes; then
10340 echo "$as_me:$LINENO: result: yes" >&5
10341echo "${ECHO_T}yes" >&6
10342 else
10343 echo "$as_me:$LINENO: result: no" >&5
10344echo "${ECHO_T}no" >&6
10345 fi
10346
10347
10348 enablestring=
10349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10350echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10351 no_cache=0
10352 # Check whether --enable-pnm or --disable-pnm was given.
10353if test "${enable_pnm+set}" = set; then
10354 enableval="$enable_pnm"
10355
10356 if test "$enableval" = yes; then
10357 ac_cv_use_pnm='wxUSE_PNM=yes'
10358 else
10359 ac_cv_use_pnm='wxUSE_PNM=no'
10360 fi
10361
10362else
10363
10364 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10365 if test "x$LINE" != x ; then
10366 eval "DEFAULT_$LINE"
10367 else
10368 no_cache=1
10369 fi
10370
10371 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10372
10373fi;
10374
10375 eval "$ac_cv_use_pnm"
10376 if test "$no_cache" != 1; then
10377 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10378 fi
10379
10380 if test "$wxUSE_PNM" = yes; then
10381 echo "$as_me:$LINENO: result: yes" >&5
10382echo "${ECHO_T}yes" >&6
10383 else
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
10386 fi
10387
10388
10389 enablestring=
10390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10391echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10392 no_cache=0
10393 # Check whether --enable-xpm or --disable-xpm was given.
10394if test "${enable_xpm+set}" = set; then
10395 enableval="$enable_xpm"
10396
10397 if test "$enableval" = yes; then
10398 ac_cv_use_xpm='wxUSE_XPM=yes'
10399 else
10400 ac_cv_use_xpm='wxUSE_XPM=no'
10401 fi
10402
10403else
10404
10405 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10406 if test "x$LINE" != x ; then
10407 eval "DEFAULT_$LINE"
10408 else
10409 no_cache=1
10410 fi
10411
10412 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10413
10414fi;
10415
10416 eval "$ac_cv_use_xpm"
10417 if test "$no_cache" != 1; then
10418 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10419 fi
10420
10421 if test "$wxUSE_XPM" = yes; then
10422 echo "$as_me:$LINENO: result: yes" >&5
10423echo "${ECHO_T}yes" >&6
10424 else
10425 echo "$as_me:$LINENO: result: no" >&5
10426echo "${ECHO_T}no" >&6
10427 fi
10428
10429
10430 enablestring=
10431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10432echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10433 no_cache=0
10434 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10435if test "${enable_ico_cur+set}" = set; then
10436 enableval="$enable_ico_cur"
10437
10438 if test "$enableval" = yes; then
10439 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10440 else
10441 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10442 fi
10443
10444else
10445
10446 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10447 if test "x$LINE" != x ; then
10448 eval "DEFAULT_$LINE"
10449 else
10450 no_cache=1
10451 fi
10452
10453 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10454
10455fi;
10456
10457 eval "$ac_cv_use_ico_cur"
10458 if test "$no_cache" != 1; then
10459 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10460 fi
10461
10462 if test "$wxUSE_ICO_CUR" = yes; then
10463 echo "$as_me:$LINENO: result: yes" >&5
10464echo "${ECHO_T}yes" >&6
10465 else
10466 echo "$as_me:$LINENO: result: no" >&5
10467echo "${ECHO_T}no" >&6
10468 fi
10469
10470
10471fi
10472
10473
10474
ceec2216
RL
10475# Check whether --with-flavour or --without-flavour was given.
10476if test "${with_flavour+set}" = set; then
10477 withval="$with_flavour"
10478 WX_FLAVOUR="$withval"
10479fi;
10480
10481
10482
a848cd7e
SC
10483 enablestring=
10484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10485echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10486 no_cache=0
10487 # Check whether --enable-official_build or --disable-official_build was given.
10488if test "${enable_official_build+set}" = set; then
10489 enableval="$enable_official_build"
10490
10491 if test "$enableval" = yes; then
10492 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10493 else
10494 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10495 fi
10496
10497else
10498
10499 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10500 if test "x$LINE" != x ; then
10501 eval "DEFAULT_$LINE"
10502 else
10503 no_cache=1
10504 fi
10505
10506 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10507
10508fi;
10509
10510 eval "$ac_cv_use_official_build"
10511 if test "$no_cache" != 1; then
10512 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10513 fi
10514
10515 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10516 echo "$as_me:$LINENO: result: yes" >&5
10517echo "${ECHO_T}yes" >&6
10518 else
10519 echo "$as_me:$LINENO: result: no" >&5
10520echo "${ECHO_T}no" >&6
10521 fi
10522
10523# Check whether --enable-vendor or --disable-vendor was given.
10524if test "${enable_vendor+set}" = set; then
10525 enableval="$enable_vendor"
10526 VENDOR="$enableval"
10527fi;
10528if test "x$VENDOR" = "x"; then
10529 VENDOR="custom"
10530fi
10531
a848cd7e
SC
10532
10533
10534
10535 echo "saving argument cache $wx_arg_cache_file"
10536 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10537
10538
10539
10540echo "$as_me:$LINENO: checking for toolkit" >&5
10541echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10542
10543# In Wine, we need to default to MSW, not GTK or MOTIF
10544if test "$wxUSE_WINE" = "yes"; then
10545 DEFAULT_DEFAULT_wxUSE_GTK=0
10546 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10547 DEFAULT_DEFAULT_wxUSE_MSW=1
10548 wxUSE_SHARED=no
10549fi
10550
f597b41c 10551
a848cd7e
SC
10552if test "$wxUSE_GUI" = "yes"; then
10553
10554 if test "$USE_BEOS" = 1; then
10555 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10556echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10557 { (exit 1); exit 1; }; }
10558 fi
10559
10560 if test "$TOOLKIT_GIVEN" = 1; then
10561 for toolkit in `echo $ALL_TOOLKITS`; do
10562 var=wxUSE_$toolkit
10563 eval "value=\$${var}"
f34ca037
MW
10564 if test "x$value" = "xno"; then
10565 eval "$var=0"
10566 elif test "x$value" != "x"; then
10567 eval "$var=1"
10568 fi
10569
10570 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10571 eval "wx${toolkit}_VERSION=$value"
10572 fi
a848cd7e
SC
10573 done
10574 else
10575 for toolkit in `echo $ALL_TOOLKITS`; do
10576 if test "$has_toolkit_in_cache" != 1; then
10577 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10578 else
10579 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10580
10581 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10582 if test "x$version" != "x"; then
10583 eval "wx${toolkit}_VERSION=$version"
10584 fi
a848cd7e
SC
10585 fi
10586 eval "wxUSE_$toolkit=\$${var}"
10587 done
10588 fi
10589
10590 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10591 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10592 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10593
10594 case "${host}" in
10595 *-pc-os2_emx | *-pc-os2-emx )
10596 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10597 esac
10598
10599 case "$NUM_TOOLKITS" in
10600 1)
10601 ;;
10602 0)
10603 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10604echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10605 { (exit 1); exit 1; }; }
10606 ;;
10607 *)
10608 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10609echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10610 { (exit 1); exit 1; }; }
10611 esac
10612
f34ca037
MW
10613 # to be removed when --disable-gtk2 isn't needed
10614 if test "x$wxUSE_GTK2" = "xyes"; then
10615 wxGTK_VERSION=2
10616 elif test "x$wxUSE_GTK2" = "xno"; then
10617 wxGTK_VERSION=1
10618 fi
10619
a848cd7e
SC
10620 for toolkit in `echo $ALL_TOOLKITS`; do
10621 var=wxUSE_$toolkit
10622 eval "value=\$${var}"
10623 if test "x$value" != x; then
10624 cache_var=CACHE_$toolkit
10625 eval "cache=\$${cache_var}"
10626 if test "$cache" = 1; then
10627 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10628 eval "version=\$wx${toolkit}_VERSION"
10629 if test "x$version" != "x"; then
10630 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10631 fi
a848cd7e
SC
10632 fi
10633 if test "$value" = 1; then
10634 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10635 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10636echo "${ECHO_T}$toolkit_echo" >&6
10637 fi
10638 fi
10639 done
10640else
10641 if test "x$host_alias" != "x"; then
10642 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10643echo "${ECHO_T}base ($host_alias hosted) only" >&6
10644 else
10645 echo "$as_me:$LINENO: result: base only" >&5
10646echo "${ECHO_T}base only" >&6
10647 fi
10648fi
10649
10650wants_win32=0
10651doesnt_want_win32=0
10652case "${host}" in
10653 *-*-cygwin*)
10654 if test "$wxUSE_MSW" = 1 ; then
10655 wants_win32=1
7275146d 10656 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10657 else
10658 doesnt_want_win32=1
10659 fi
10660 ;;
10661 *-*-mingw*)
10662 wants_win32=1
10663 ;;
10664esac
10665
10666if test "$wxUSE_WINE" = "yes"; then
10667 wants_win32=1
10668 CC=winegcc
10669 CXX=wineg++
a848cd7e
SC
10670 LDFLAGS_GUI="-mwindows"
10671fi
10672
10673if test "$wants_win32" = 1 ; then
10674 USE_UNIX=0
10675 USE_WIN32=1
10676 cat >>confdefs.h <<\_ACEOF
10677#define __WIN32__ 1
10678_ACEOF
10679
10680 cat >>confdefs.h <<\_ACEOF
10681#define __WIN95__ 1
10682_ACEOF
10683
10684 cat >>confdefs.h <<\_ACEOF
10685#define __WINDOWS__ 1
10686_ACEOF
10687
10688 cat >>confdefs.h <<\_ACEOF
10689#define __GNUWIN32__ 1
10690_ACEOF
10691
10692 cat >>confdefs.h <<\_ACEOF
10693#define STRICT 1
10694_ACEOF
10695
10696 cat >>confdefs.h <<\_ACEOF
10697#define WINVER 0x0400
10698_ACEOF
10699
10700fi
10701if test "$doesnt_want_win32" = 1 ; then
10702 USE_UNIX=1
10703 USE_WIN32=0
10704fi
10705
10706if test "$USE_UNIX" = 1 ; then
10707 wxUSE_UNIX=yes
10708 cat >>confdefs.h <<\_ACEOF
10709#define __UNIX__ 1
10710_ACEOF
10711
10712fi
10713
10714
10715cat >confcache <<\_ACEOF
10716# This file is a shell script that caches the results of configure
10717# tests run on this system so they can be shared between configure
10718# scripts and configure runs, see configure's option --config-cache.
10719# It is not useful on other systems. If it contains results you don't
10720# want to keep, you may remove or edit it.
10721#
10722# config.status only pays attention to the cache file if you give it
10723# the --recheck option to rerun configure.
10724#
10725# `ac_cv_env_foo' variables (set or unset) will be overridden when
10726# loading this file, other *unset* `ac_cv_foo' will be assigned the
10727# following values.
10728
10729_ACEOF
10730
10731# The following way of writing the cache mishandles newlines in values,
10732# but we know of no workaround that is simple, portable, and efficient.
10733# So, don't put newlines in cache variables' values.
10734# Ultrix sh set writes to stderr and can't be redirected directly,
10735# and sets the high bit in the cache file unless we assign to the vars.
10736{
10737 (set) 2>&1 |
10738 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10739 *ac_space=\ *)
10740 # `set' does not quote correctly, so add quotes (double-quote
10741 # substitution turns \\\\ into \\, and sed turns \\ into \).
10742 sed -n \
ac1cb8d3
VS
10743 "s/'/'\\\\''/g;
10744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10745 ;;
10746 *)
10747 # `set' quotes correctly as required by POSIX, so do not add quotes.
10748 sed -n \
ac1cb8d3 10749 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10750 ;;
10751 esac;
10752} |
10753 sed '
10754 t clear
10755 : clear
10756 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10757 t end
10758 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10759 : end' >>confcache
10760if diff $cache_file confcache >/dev/null 2>&1; then :; else
10761 if test -w $cache_file; then
10762 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10763 cat confcache >$cache_file
10764 else
10765 echo "not updating unwritable cache $cache_file"
10766 fi
10767fi
10768rm -f confcache
10769
a848cd7e 10770CFLAGS=${CFLAGS:=}
6dcfc289
DE
10771
10772
3006edc0 10773
6dcfc289 10774 ac_ext=c
a848cd7e
SC
10775ac_cpp='$CPP $CPPFLAGS'
10776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10778ac_compiler_gnu=$ac_cv_c_compiler_gnu
10779if test -n "$ac_tool_prefix"; then
10780 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10781set dummy ${ac_tool_prefix}gcc; ac_word=$2
10782echo "$as_me:$LINENO: checking for $ac_word" >&5
10783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10784if test "${ac_cv_prog_CC+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786else
10787 if test -n "$CC"; then
10788 ac_cv_prog_CC="$CC" # Let the user override the test.
10789else
10790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791for as_dir in $PATH
10792do
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10799 break 2
10800 fi
10801done
10802done
10803
10804fi
10805fi
10806CC=$ac_cv_prog_CC
10807if test -n "$CC"; then
10808 echo "$as_me:$LINENO: result: $CC" >&5
10809echo "${ECHO_T}$CC" >&6
10810else
10811 echo "$as_me:$LINENO: result: no" >&5
10812echo "${ECHO_T}no" >&6
10813fi
10814
10815fi
10816if test -z "$ac_cv_prog_CC"; then
10817 ac_ct_CC=$CC
10818 # Extract the first word of "gcc", so it can be a program name with args.
10819set dummy gcc; ac_word=$2
10820echo "$as_me:$LINENO: checking for $ac_word" >&5
10821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824else
10825 if test -n "$ac_ct_CC"; then
10826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10827else
10828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829for as_dir in $PATH
10830do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10835 ac_cv_prog_ac_ct_CC="gcc"
10836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10838 fi
10839done
10840done
10841
10842fi
10843fi
10844ac_ct_CC=$ac_cv_prog_ac_ct_CC
10845if test -n "$ac_ct_CC"; then
10846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10847echo "${ECHO_T}$ac_ct_CC" >&6
10848else
10849 echo "$as_me:$LINENO: result: no" >&5
10850echo "${ECHO_T}no" >&6
10851fi
10852
10853 CC=$ac_ct_CC
10854else
10855 CC="$ac_cv_prog_CC"
10856fi
10857
10858if test -z "$CC"; then
10859 if test -n "$ac_tool_prefix"; then
10860 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10861set dummy ${ac_tool_prefix}cc; ac_word=$2
10862echo "$as_me:$LINENO: checking for $ac_word" >&5
10863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10864if test "${ac_cv_prog_CC+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866else
10867 if test -n "$CC"; then
10868 ac_cv_prog_CC="$CC" # Let the user override the test.
10869else
10870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871for as_dir in $PATH
10872do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10877 ac_cv_prog_CC="${ac_tool_prefix}cc"
10878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10879 break 2
10880 fi
10881done
10882done
10883
10884fi
10885fi
10886CC=$ac_cv_prog_CC
10887if test -n "$CC"; then
10888 echo "$as_me:$LINENO: result: $CC" >&5
10889echo "${ECHO_T}$CC" >&6
10890else
10891 echo "$as_me:$LINENO: result: no" >&5
10892echo "${ECHO_T}no" >&6
10893fi
10894
10895fi
10896if test -z "$ac_cv_prog_CC"; then
10897 ac_ct_CC=$CC
10898 # Extract the first word of "cc", so it can be a program name with args.
10899set dummy cc; ac_word=$2
10900echo "$as_me:$LINENO: checking for $ac_word" >&5
10901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10902if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904else
10905 if test -n "$ac_ct_CC"; then
10906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10907else
10908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909for as_dir in $PATH
10910do
10911 IFS=$as_save_IFS
10912 test -z "$as_dir" && as_dir=.
10913 for ac_exec_ext in '' $ac_executable_extensions; do
10914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10915 ac_cv_prog_ac_ct_CC="cc"
10916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10917 break 2
10918 fi
10919done
10920done
10921
10922fi
10923fi
10924ac_ct_CC=$ac_cv_prog_ac_ct_CC
10925if test -n "$ac_ct_CC"; then
10926 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10927echo "${ECHO_T}$ac_ct_CC" >&6
10928else
10929 echo "$as_me:$LINENO: result: no" >&5
10930echo "${ECHO_T}no" >&6
10931fi
10932
10933 CC=$ac_ct_CC
10934else
10935 CC="$ac_cv_prog_CC"
10936fi
10937
10938fi
10939if test -z "$CC"; then
10940 # Extract the first word of "cc", so it can be a program name with args.
10941set dummy cc; ac_word=$2
10942echo "$as_me:$LINENO: checking for $ac_word" >&5
10943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944if test "${ac_cv_prog_CC+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946else
10947 if test -n "$CC"; then
10948 ac_cv_prog_CC="$CC" # Let the user override the test.
10949else
10950 ac_prog_rejected=no
10951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952for as_dir in $PATH
10953do
10954 IFS=$as_save_IFS
10955 test -z "$as_dir" && as_dir=.
10956 for ac_exec_ext in '' $ac_executable_extensions; do
10957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10958 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10959 ac_prog_rejected=yes
10960 continue
10961 fi
10962 ac_cv_prog_CC="cc"
10963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10964 break 2
10965 fi
10966done
10967done
10968
10969if test $ac_prog_rejected = yes; then
10970 # We found a bogon in the path, so make sure we never use it.
10971 set dummy $ac_cv_prog_CC
10972 shift
10973 if test $# != 0; then
10974 # We chose a different compiler from the bogus one.
10975 # However, it has the same basename, so the bogon will be chosen
10976 # first if we set CC to just the basename; use the full file name.
10977 shift
10978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10979 fi
10980fi
10981fi
10982fi
10983CC=$ac_cv_prog_CC
10984if test -n "$CC"; then
10985 echo "$as_me:$LINENO: result: $CC" >&5
10986echo "${ECHO_T}$CC" >&6
10987else
10988 echo "$as_me:$LINENO: result: no" >&5
10989echo "${ECHO_T}no" >&6
10990fi
10991
10992fi
10993if test -z "$CC"; then
10994 if test -n "$ac_tool_prefix"; then
10995 for ac_prog in cl
10996 do
10997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10999echo "$as_me:$LINENO: checking for $ac_word" >&5
11000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11001if test "${ac_cv_prog_CC+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003else
11004 if test -n "$CC"; then
11005 ac_cv_prog_CC="$CC" # Let the user override the test.
11006else
11007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008for as_dir in $PATH
11009do
11010 IFS=$as_save_IFS
11011 test -z "$as_dir" && as_dir=.
11012 for ac_exec_ext in '' $ac_executable_extensions; do
11013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11014 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11016 break 2
11017 fi
11018done
11019done
11020
11021fi
11022fi
11023CC=$ac_cv_prog_CC
11024if test -n "$CC"; then
11025 echo "$as_me:$LINENO: result: $CC" >&5
11026echo "${ECHO_T}$CC" >&6
11027else
11028 echo "$as_me:$LINENO: result: no" >&5
11029echo "${ECHO_T}no" >&6
11030fi
11031
11032 test -n "$CC" && break
11033 done
11034fi
11035if test -z "$CC"; then
11036 ac_ct_CC=$CC
11037 for ac_prog in cl
11038do
11039 # Extract the first word of "$ac_prog", so it can be a program name with args.
11040set dummy $ac_prog; ac_word=$2
11041echo "$as_me:$LINENO: checking for $ac_word" >&5
11042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11043if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045else
11046 if test -n "$ac_ct_CC"; then
11047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11048else
11049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11050for as_dir in $PATH
11051do
11052 IFS=$as_save_IFS
11053 test -z "$as_dir" && as_dir=.
11054 for ac_exec_ext in '' $ac_executable_extensions; do
11055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11056 ac_cv_prog_ac_ct_CC="$ac_prog"
11057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11058 break 2
11059 fi
11060done
11061done
11062
11063fi
11064fi
11065ac_ct_CC=$ac_cv_prog_ac_ct_CC
11066if test -n "$ac_ct_CC"; then
11067 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11068echo "${ECHO_T}$ac_ct_CC" >&6
11069else
11070 echo "$as_me:$LINENO: result: no" >&5
11071echo "${ECHO_T}no" >&6
11072fi
11073
11074 test -n "$ac_ct_CC" && break
11075done
11076
11077 CC=$ac_ct_CC
11078fi
11079
11080fi
11081
11082
11083test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11084See \`config.log' for more details." >&5
11085echo "$as_me: error: no acceptable C compiler found in \$PATH
11086See \`config.log' for more details." >&2;}
11087 { (exit 1); exit 1; }; }
11088
11089# Provide some information about the compiler.
11090echo "$as_me:$LINENO:" \
11091 "checking for C compiler version" >&5
11092ac_compiler=`set X $ac_compile; echo $2`
11093{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11094 (eval $ac_compiler --version </dev/null >&5) 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }
11098{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11099 (eval $ac_compiler -v </dev/null >&5) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }
11103{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11104 (eval $ac_compiler -V </dev/null >&5) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }
11108
11109cat >conftest.$ac_ext <<_ACEOF
11110/* confdefs.h. */
11111_ACEOF
11112cat confdefs.h >>conftest.$ac_ext
11113cat >>conftest.$ac_ext <<_ACEOF
11114/* end confdefs.h. */
11115
11116int
11117main ()
11118{
11119
11120 ;
11121 return 0;
11122}
11123_ACEOF
11124ac_clean_files_save=$ac_clean_files
11125ac_clean_files="$ac_clean_files a.out a.exe b.out"
11126# Try to create an executable without -o first, disregard a.out.
11127# It will help us diagnose broken compilers, and finding out an intuition
11128# of exeext.
ac1cb8d3
VS
11129echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11130echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11131ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11132if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11133 (eval $ac_link_default) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; then
11137 # Find the output, starting from the most likely. This scheme is
11138# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11139# resort.
11140
11141# Be careful to initialize this variable, since it used to be cached.
11142# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11143ac_cv_exeext=
11144# b.out is created by i960 compilers.
11145for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11146do
11147 test -f "$ac_file" || continue
11148 case $ac_file in
11149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11150 ;;
a848cd7e 11151 conftest.$ac_ext )
ac1cb8d3
VS
11152 # This is the source file.
11153 ;;
a848cd7e 11154 [ab].out )
ac1cb8d3
VS
11155 # We found the default executable, but exeext='' is most
11156 # certainly right.
11157 break;;
a848cd7e 11158 *.* )
ac1cb8d3
VS
11159 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11160 # FIXME: I believe we export ac_cv_exeext for Libtool,
11161 # but it would be cool to find out if it's true. Does anybody
11162 # maintain Libtool? --akim.
11163 export ac_cv_exeext
11164 break;;
a848cd7e 11165 * )
ac1cb8d3 11166 break;;
a848cd7e
SC
11167 esac
11168done
11169else
11170 echo "$as_me: failed program was:" >&5
11171sed 's/^/| /' conftest.$ac_ext >&5
11172
11173{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11174See \`config.log' for more details." >&5
11175echo "$as_me: error: C compiler cannot create executables
11176See \`config.log' for more details." >&2;}
11177 { (exit 77); exit 77; }; }
11178fi
11179
11180ac_exeext=$ac_cv_exeext
11181echo "$as_me:$LINENO: result: $ac_file" >&5
11182echo "${ECHO_T}$ac_file" >&6
11183
11184# Check the compiler produces executables we can run. If not, either
11185# the compiler is broken, or we cross compile.
11186echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11187echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11188# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11189# If not cross compiling, check that we can run a simple program.
11190if test "$cross_compiling" != yes; then
11191 if { ac_try='./$ac_file'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 cross_compiling=no
11198 else
11199 if test "$cross_compiling" = maybe; then
11200 cross_compiling=yes
11201 else
11202 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11203If you meant to cross compile, use \`--host'.
11204See \`config.log' for more details." >&5
11205echo "$as_me: error: cannot run C compiled programs.
11206If you meant to cross compile, use \`--host'.
11207See \`config.log' for more details." >&2;}
11208 { (exit 1); exit 1; }; }
11209 fi
11210 fi
11211fi
11212echo "$as_me:$LINENO: result: yes" >&5
11213echo "${ECHO_T}yes" >&6
11214
11215rm -f a.out a.exe conftest$ac_cv_exeext b.out
11216ac_clean_files=$ac_clean_files_save
11217# Check the compiler produces executables we can run. If not, either
11218# the compiler is broken, or we cross compile.
11219echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11220echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11221echo "$as_me:$LINENO: result: $cross_compiling" >&5
11222echo "${ECHO_T}$cross_compiling" >&6
11223
11224echo "$as_me:$LINENO: checking for suffix of executables" >&5
11225echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11227 (eval $ac_link) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; then
11231 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11232# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11233# work properly (i.e., refer to `conftest.exe'), while it won't with
11234# `rm'.
11235for ac_file in conftest.exe conftest conftest.*; do
11236 test -f "$ac_file" || continue
11237 case $ac_file in
11238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11239 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11240 export ac_cv_exeext
11241 break;;
a848cd7e
SC
11242 * ) break;;
11243 esac
11244done
11245else
11246 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11247See \`config.log' for more details." >&5
11248echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11249See \`config.log' for more details." >&2;}
11250 { (exit 1); exit 1; }; }
11251fi
11252
11253rm -f conftest$ac_cv_exeext
11254echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11255echo "${ECHO_T}$ac_cv_exeext" >&6
11256
11257rm -f conftest.$ac_ext
11258EXEEXT=$ac_cv_exeext
11259ac_exeext=$EXEEXT
11260echo "$as_me:$LINENO: checking for suffix of object files" >&5
11261echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11262if test "${ac_cv_objext+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11264else
11265 cat >conftest.$ac_ext <<_ACEOF
11266/* confdefs.h. */
11267_ACEOF
11268cat confdefs.h >>conftest.$ac_ext
11269cat >>conftest.$ac_ext <<_ACEOF
11270/* end confdefs.h. */
11271
11272int
11273main ()
11274{
11275
11276 ;
11277 return 0;
11278}
11279_ACEOF
11280rm -f conftest.o conftest.obj
11281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11282 (eval $ac_compile) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; then
11286 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11287 case $ac_file in
11288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11290 break;;
11291 esac
11292done
11293else
11294 echo "$as_me: failed program was:" >&5
11295sed 's/^/| /' conftest.$ac_ext >&5
11296
11297{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11298See \`config.log' for more details." >&5
11299echo "$as_me: error: cannot compute suffix of object files: cannot compile
11300See \`config.log' for more details." >&2;}
11301 { (exit 1); exit 1; }; }
11302fi
11303
11304rm -f conftest.$ac_cv_objext conftest.$ac_ext
11305fi
11306echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11307echo "${ECHO_T}$ac_cv_objext" >&6
11308OBJEXT=$ac_cv_objext
11309ac_objext=$OBJEXT
11310echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11311echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11312if test "${ac_cv_c_compiler_gnu+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314else
11315 cat >conftest.$ac_ext <<_ACEOF
11316/* confdefs.h. */
11317_ACEOF
11318cat confdefs.h >>conftest.$ac_ext
11319cat >>conftest.$ac_ext <<_ACEOF
11320/* end confdefs.h. */
11321
11322int
11323main ()
11324{
11325#ifndef __GNUC__
11326 choke me
11327#endif
11328
11329 ;
11330 return 0;
11331}
11332_ACEOF
11333rm -f conftest.$ac_objext
11334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11335 (eval $ac_compile) 2>conftest.er1
a848cd7e 11336 ac_status=$?
ac1cb8d3
VS
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
a848cd7e
SC
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
6ebeb4c7 11342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; } &&
11348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354 ac_compiler_gnu=yes
11355else
11356 echo "$as_me: failed program was:" >&5
11357sed 's/^/| /' conftest.$ac_ext >&5
11358
11359ac_compiler_gnu=no
11360fi
ac1cb8d3 11361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11362ac_cv_c_compiler_gnu=$ac_compiler_gnu
11363
11364fi
11365echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11366echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11367GCC=`test $ac_compiler_gnu = yes && echo yes`
11368ac_test_CFLAGS=${CFLAGS+set}
11369ac_save_CFLAGS=$CFLAGS
1c14217d 11370CFLAGS="-g"
a848cd7e
SC
11371echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11372echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11373if test "${ac_cv_prog_cc_g+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11375else
11376 cat >conftest.$ac_ext <<_ACEOF
11377/* confdefs.h. */
11378_ACEOF
11379cat confdefs.h >>conftest.$ac_ext
11380cat >>conftest.$ac_ext <<_ACEOF
11381/* end confdefs.h. */
11382
11383int
11384main ()
11385{
11386
11387 ;
11388 return 0;
11389}
11390_ACEOF
11391rm -f conftest.$ac_objext
11392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11393 (eval $ac_compile) 2>conftest.er1
a848cd7e 11394 ac_status=$?
ac1cb8d3
VS
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
a848cd7e
SC
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
6ebeb4c7 11400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 ac_cv_prog_cc_g=yes
11413else
11414 echo "$as_me: failed program was:" >&5
11415sed 's/^/| /' conftest.$ac_ext >&5
11416
11417ac_cv_prog_cc_g=no
11418fi
ac1cb8d3 11419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11420fi
11421echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11422echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11423if test "$ac_test_CFLAGS" = set; then
11424 CFLAGS=$ac_save_CFLAGS
11425elif test $ac_cv_prog_cc_g = yes; then
11426 if test "$GCC" = yes; then
11427 CFLAGS="-g -O2"
11428 else
11429 CFLAGS="-g"
11430 fi
11431else
11432 if test "$GCC" = yes; then
11433 CFLAGS="-O2"
11434 else
11435 CFLAGS=
11436 fi
11437fi
11438echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11439echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11440if test "${ac_cv_prog_cc_stdc+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11442else
11443 ac_cv_prog_cc_stdc=no
11444ac_save_CC=$CC
11445cat >conftest.$ac_ext <<_ACEOF
11446/* confdefs.h. */
11447_ACEOF
11448cat confdefs.h >>conftest.$ac_ext
11449cat >>conftest.$ac_ext <<_ACEOF
11450/* end confdefs.h. */
11451#include <stdarg.h>
11452#include <stdio.h>
11453#include <sys/types.h>
11454#include <sys/stat.h>
11455/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11456struct buf { int x; };
11457FILE * (*rcsopen) (struct buf *, struct stat *, int);
11458static char *e (p, i)
11459 char **p;
11460 int i;
11461{
11462 return p[i];
11463}
11464static char *f (char * (*g) (char **, int), char **p, ...)
11465{
11466 char *s;
11467 va_list v;
11468 va_start (v,p);
11469 s = g (p, va_arg (v,int));
11470 va_end (v);
11471 return s;
11472}
ac1cb8d3
VS
11473
11474/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11475 function prototypes and stuff, but not '\xHH' hex character constants.
11476 These don't provoke an error unfortunately, instead are silently treated
11477 as 'x'. The following induces an error, until -std1 is added to get
11478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11479 array size at least. It's necessary to write '\x00'==0 to get something
11480 that's true only with -std1. */
11481int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11482
a848cd7e
SC
11483int test (int i, double x);
11484struct s1 {int (*f) (int a);};
11485struct s2 {int (*f) (double a);};
11486int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11487int argc;
11488char **argv;
11489int
11490main ()
11491{
11492return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11493 ;
11494 return 0;
11495}
11496_ACEOF
11497# Don't try gcc -ansi; that turns off useful extensions and
11498# breaks some systems' header files.
11499# AIX -qlanglvl=ansi
11500# Ultrix and OSF/1 -std1
11501# HP-UX 10.20 and later -Ae
11502# HP-UX older versions -Aa -D_HPUX_SOURCE
11503# SVR4 -Xc -D__EXTENSIONS__
11504for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11505do
11506 CC="$ac_save_CC $ac_arg"
11507 rm -f conftest.$ac_objext
11508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11509 (eval $ac_compile) 2>conftest.er1
a848cd7e 11510 ac_status=$?
ac1cb8d3
VS
11511 grep -v '^ *+' conftest.er1 >conftest.err
11512 rm -f conftest.er1
11513 cat conftest.err >&5
a848cd7e
SC
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } &&
6ebeb4c7 11516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; } &&
11522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
11528 ac_cv_prog_cc_stdc=$ac_arg
11529break
11530else
11531 echo "$as_me: failed program was:" >&5
11532sed 's/^/| /' conftest.$ac_ext >&5
11533
11534fi
ac1cb8d3 11535rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11536done
11537rm -f conftest.$ac_ext conftest.$ac_objext
11538CC=$ac_save_CC
11539
11540fi
11541
11542case "x$ac_cv_prog_cc_stdc" in
11543 x|xno)
11544 echo "$as_me:$LINENO: result: none needed" >&5
11545echo "${ECHO_T}none needed" >&6 ;;
11546 *)
11547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11548echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11549 CC="$CC $ac_cv_prog_cc_stdc" ;;
11550esac
11551
11552# Some people use a C++ compiler to compile C. Since we use `exit',
11553# in C++ we need to declare it. In case someone uses the same compiler
11554# for both compiling C and C++ we need to have the C++ compiler decide
11555# the declaration of exit, since it's the most demanding environment.
11556cat >conftest.$ac_ext <<_ACEOF
11557#ifndef __cplusplus
11558 choke me
11559#endif
11560_ACEOF
11561rm -f conftest.$ac_objext
11562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11563 (eval $ac_compile) 2>conftest.er1
a848cd7e 11564 ac_status=$?
ac1cb8d3
VS
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
a848cd7e
SC
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
6ebeb4c7 11570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
11576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 for ac_declaration in \
ac1cb8d3 11583 '' \
a848cd7e
SC
11584 'extern "C" void std::exit (int) throw (); using std::exit;' \
11585 'extern "C" void std::exit (int); using std::exit;' \
11586 'extern "C" void exit (int) throw ();' \
11587 'extern "C" void exit (int);' \
11588 'void exit (int);'
11589do
11590 cat >conftest.$ac_ext <<_ACEOF
11591/* confdefs.h. */
11592_ACEOF
11593cat confdefs.h >>conftest.$ac_ext
11594cat >>conftest.$ac_ext <<_ACEOF
11595/* end confdefs.h. */
de59c161 11596$ac_declaration
ac1cb8d3 11597#include <stdlib.h>
a848cd7e
SC
11598int
11599main ()
11600{
11601exit (42);
11602 ;
11603 return 0;
11604}
11605_ACEOF
11606rm -f conftest.$ac_objext
11607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11608 (eval $ac_compile) 2>conftest.er1
a848cd7e 11609 ac_status=$?
ac1cb8d3
VS
11610 grep -v '^ *+' conftest.er1 >conftest.err
11611 rm -f conftest.er1
11612 cat conftest.err >&5
a848cd7e
SC
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } &&
6ebeb4c7 11615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 :
11628else
11629 echo "$as_me: failed program was:" >&5
11630sed 's/^/| /' conftest.$ac_ext >&5
11631
11632continue
11633fi
ac1cb8d3 11634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11635 cat >conftest.$ac_ext <<_ACEOF
11636/* confdefs.h. */
11637_ACEOF
11638cat confdefs.h >>conftest.$ac_ext
11639cat >>conftest.$ac_ext <<_ACEOF
11640/* end confdefs.h. */
11641$ac_declaration
11642int
11643main ()
11644{
11645exit (42);
11646 ;
11647 return 0;
11648}
11649_ACEOF
11650rm -f conftest.$ac_objext
11651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11652 (eval $ac_compile) 2>conftest.er1
a848cd7e 11653 ac_status=$?
ac1cb8d3
VS
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
a848cd7e
SC
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
6ebeb4c7 11659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; } &&
11665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 break
11672else
11673 echo "$as_me: failed program was:" >&5
11674sed 's/^/| /' conftest.$ac_ext >&5
11675
11676fi
ac1cb8d3 11677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11678done
11679rm -f conftest*
11680if test -n "$ac_declaration"; then
11681 echo '#ifdef __cplusplus' >>confdefs.h
11682 echo $ac_declaration >>confdefs.h
11683 echo '#endif' >>confdefs.h
11684fi
11685
11686else
11687 echo "$as_me: failed program was:" >&5
11688sed 's/^/| /' conftest.$ac_ext >&5
11689
11690fi
ac1cb8d3 11691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11692ac_ext=c
11693ac_cpp='$CPP $CPPFLAGS'
11694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11696ac_compiler_gnu=$ac_cv_c_compiler_gnu
11697
ab0ad5f1
VZ
11698
11699
11700 ac_ext=c
11701ac_cpp='$CPP $CPPFLAGS'
11702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11704ac_compiler_gnu=$ac_cv_c_compiler_gnu
11705
11706 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11707echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11708if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
11711 cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717
11718int
11719main ()
11720{
11721
11722 #ifndef __INTEL_COMPILER
11723 choke me
11724 #endif
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); } &&
11739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11752else
11753 echo "$as_me: failed program was:" >&5
11754sed 's/^/| /' conftest.$ac_ext >&5
11755
11756bakefile_cv_c_compiler___INTEL_COMPILER=no
11757
11758fi
11759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11760
11761
11762fi
11763echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11764echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11765 ac_ext=c
11766ac_cpp='$CPP $CPPFLAGS'
11767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11769ac_compiler_gnu=$ac_cv_c_compiler_gnu
11770
11771 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11772 :; INTELCC=yes
11773 else
11774 :;
11775 fi
11776
11777
11778 if test "x$GCC" != "xyes"; then
3006edc0
VZ
11779 if test "xCC" = "xC"; then
11780 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 11781echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
a1aa0349 11782if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784else
11785 cat >conftest.$ac_ext <<_ACEOF
11786/* confdefs.h. */
11787_ACEOF
11788cat confdefs.h >>conftest.$ac_ext
11789cat >>conftest.$ac_ext <<_ACEOF
11790/* end confdefs.h. */
11791
11792int
11793main ()
11794{
11795
11796 ;
11797 return 0;
11798}
11799_ACEOF
11800rm -f conftest.$ac_objext conftest.$ac_ext.o
11801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802 (eval $ac_compile) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; then
11806 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11807 case $ac_file in
11808 conftest.$ac_ext.o)
a1aa0349 11809 bakefile_cv_c_exto="-ext o"
480ccd21
DE
11810 ;;
11811 *)
11812 ;;
11813 esac
11814done
11815else
11816 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11817See \`config.log' for more details." >&5
11818echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11819See \`config.log' for more details." >&2;}
11820 { (exit 1); exit 1; }; }
11821
11822fi
11823
11824rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11825
11826fi
a1aa0349
VZ
11827echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
11828echo "${ECHO_T}$bakefile_cv_c_exto" >&6
11829if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 11830 if test "c" = "c"; then
a1aa0349 11831 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
11832 fi
11833 if test "c" = "cxx"; then
a1aa0349 11834 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
11835 fi
11836fi
11837
a1aa0349 11838 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
11839 unset ac_cv_prog_cc_g
11840 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11841ac_save_CFLAGS=$CFLAGS
1c14217d 11842CFLAGS="-g"
480ccd21
DE
11843echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11844echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11845if test "${ac_cv_prog_cc_g+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11847else
11848 cat >conftest.$ac_ext <<_ACEOF
11849/* confdefs.h. */
11850_ACEOF
11851cat confdefs.h >>conftest.$ac_ext
11852cat >>conftest.$ac_ext <<_ACEOF
11853/* end confdefs.h. */
11854
11855int
11856main ()
11857{
11858
11859 ;
11860 return 0;
11861}
11862_ACEOF
11863rm -f conftest.$ac_objext
11864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11865 (eval $ac_compile) 2>conftest.er1
11866 ac_status=$?
11867 grep -v '^ *+' conftest.er1 >conftest.err
11868 rm -f conftest.er1
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
6ebeb4c7 11872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; } &&
11878 { ac_try='test -s conftest.$ac_objext'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 ac_cv_prog_cc_g=yes
11885else
11886 echo "$as_me: failed program was:" >&5
11887sed 's/^/| /' conftest.$ac_ext >&5
11888
11889ac_cv_prog_cc_g=no
11890fi
11891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11892fi
11893echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11894echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11895if test "$ac_test_CFLAGS" = set; then
11896 CFLAGS=$ac_save_CFLAGS
11897elif test $ac_cv_prog_cc_g = yes; then
11898 if test "$GCC" = yes; then
11899 CFLAGS="-g -O2"
11900 else
11901 CFLAGS="-g"
11902 fi
11903else
11904 if test "$GCC" = yes; then
11905 CFLAGS="-O2"
11906 else
11907 CFLAGS=
11908 fi
11909fi
3006edc0 11910 fi
ab0ad5f1 11911 fi
3006edc0
VZ
11912
11913 case `uname -s` in
11914 AIX*)
11915 ac_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
11921echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11922echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
a1aa0349 11923if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925else
11926 cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h. */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h. */
11932
11933int
11934main ()
11935{
11936#ifndef __xlC__
11937 choke me
11938#endif
11939
11940 ;
11941 return 0;
11942}
11943_ACEOF
11944rm -f conftest.$ac_objext
11945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11946 (eval $ac_compile) 2>conftest.er1
11947 ac_status=$?
11948 grep -v '^ *+' conftest.er1 >conftest.err
11949 rm -f conftest.er1
11950 cat conftest.err >&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; } &&
11959 { ac_try='test -s conftest.$ac_objext'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
a1aa0349 11965 bakefile_compiler_xlc=yes
3006edc0
VZ
11966else
11967 echo "$as_me: failed program was:" >&5
11968sed 's/^/| /' conftest.$ac_ext >&5
11969
a1aa0349 11970bakefile_compiler_xlc=no
3006edc0
VZ
11971fi
11972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a1aa0349 11973 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
11974
11975fi
a1aa0349
VZ
11976echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
11977echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 11978
a1aa0349 11979XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
11980ac_ext=c
11981ac_cpp='$CPP $CPPFLAGS'
11982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11984ac_compiler_gnu=$ac_cv_c_compiler_gnu
11985
11986
11987 ;;
11988
11989 Darwin)
11990 ac_ext=c
95986553
DE
11991ac_cpp='$CPP $CPPFLAGS'
11992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11994ac_compiler_gnu=$ac_cv_c_compiler_gnu
11995
11996echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11997echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11998if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000else
12001 cat >conftest.$ac_ext <<_ACEOF
12002/* confdefs.h. */
12003_ACEOF
12004cat confdefs.h >>conftest.$ac_ext
12005cat >>conftest.$ac_ext <<_ACEOF
12006/* end confdefs.h. */
12007
12008int
12009main ()
12010{
12011#ifndef __MWERKS__
12012 choke me
12013#endif
12014
12015 ;
12016 return 0;
12017}
12018_ACEOF
12019rm -f conftest.$ac_objext
12020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12021 (eval $ac_compile) 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
6ebeb4c7 12028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest.$ac_objext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 bakefile_compiler_mwerks=yes
12041else
12042 echo "$as_me: failed program was:" >&5
12043sed 's/^/| /' conftest.$ac_ext >&5
12044
12045bakefile_compiler_mwerks=no
12046fi
12047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12048 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12049
12050fi
12051echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12052echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12053
0e6fa1d9 12054MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12055ac_ext=c
12056ac_cpp='$CPP $CPPFLAGS'
12057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12059ac_compiler_gnu=$ac_cv_c_compiler_gnu
12060
12061
3006edc0 12062 ac_ext=c
9273ffba
DE
12063ac_cpp='$CPP $CPPFLAGS'
12064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12066ac_compiler_gnu=$ac_cv_c_compiler_gnu
12067
12068echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12069echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
a1aa0349 12070if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072else
12073 cat >conftest.$ac_ext <<_ACEOF
12074/* confdefs.h. */
12075_ACEOF
12076cat confdefs.h >>conftest.$ac_ext
12077cat >>conftest.$ac_ext <<_ACEOF
12078/* end confdefs.h. */
12079
12080int
12081main ()
12082{
12083#ifndef __xlC__
12084 choke me
12085#endif
12086
12087 ;
12088 return 0;
12089}
12090_ACEOF
12091rm -f conftest.$ac_objext
12092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12093 (eval $ac_compile) 2>conftest.er1
12094 ac_status=$?
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
6ebeb4c7 12100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; } &&
12106 { ac_try='test -s conftest.$ac_objext'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
a1aa0349 12112 bakefile_compiler_xlc=yes
9273ffba
DE
12113else
12114 echo "$as_me: failed program was:" >&5
12115sed 's/^/| /' conftest.$ac_ext >&5
12116
a1aa0349 12117bakefile_compiler_xlc=no
9273ffba
DE
12118fi
12119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a1aa0349 12120 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12121
12122fi
a1aa0349
VZ
12123echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12124echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12125
a1aa0349 12126XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12127ac_ext=c
12128ac_cpp='$CPP $CPPFLAGS'
12129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12131ac_compiler_gnu=$ac_cv_c_compiler_gnu
12132
12133
3006edc0
VZ
12134 ;;
12135
12136 IRIX*)
a848cd7e 12137
6dcfc289 12138
0ad5d837
VZ
12139 ac_ext=c
12140ac_cpp='$CPP $CPPFLAGS'
12141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12143ac_compiler_gnu=$ac_cv_c_compiler_gnu
12144
12145 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12146echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12147if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149else
12150 cat >conftest.$ac_ext <<_ACEOF
12151/* confdefs.h. */
12152_ACEOF
12153cat confdefs.h >>conftest.$ac_ext
12154cat >>conftest.$ac_ext <<_ACEOF
12155/* end confdefs.h. */
12156
12157int
12158main ()
12159{
12160
12161 #ifndef _SGI_COMPILER_VERSION
12162 choke me
12163 #endif
12164
12165 ;
12166 return 0;
12167}
12168_ACEOF
12169rm -f conftest.$ac_objext
12170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12171 (eval $ac_compile) 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; } &&
12184 { ac_try='test -s conftest.$ac_objext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12191else
12192 echo "$as_me: failed program was:" >&5
12193sed 's/^/| /' conftest.$ac_ext >&5
12194
12195bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12196
12197fi
12198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12199
12200
12201fi
12202echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12203echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12204 ac_ext=c
12205ac_cpp='$CPP $CPPFLAGS'
12206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12208ac_compiler_gnu=$ac_cv_c_compiler_gnu
12209
12210 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12211 :; SGICC=yes
12212 else
12213 :;
12214 fi
12215
12216
3006edc0
VZ
12217 ;;
12218
a1aa0349 12219 HP-UX*)
0ad5d837
VZ
12220
12221
a9e5b1f0
MW
12222 ac_ext=c
12223ac_cpp='$CPP $CPPFLAGS'
12224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227
a1aa0349
VZ
12228 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12229echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12230if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
a9e5b1f0
MW
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232else
12233 cat >conftest.$ac_ext <<_ACEOF
12234/* confdefs.h. */
12235_ACEOF
12236cat confdefs.h >>conftest.$ac_ext
12237cat >>conftest.$ac_ext <<_ACEOF
12238/* end confdefs.h. */
12239
12240int
12241main ()
12242{
12243
a1aa0349 12244 #ifndef __HP_cc
a9e5b1f0
MW
12245 choke me
12246 #endif
12247
12248 ;
12249 return 0;
12250}
12251_ACEOF
12252rm -f conftest.$ac_objext
12253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254 (eval $ac_compile) 2>conftest.er1
12255 ac_status=$?
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
6ebeb4c7 12261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest.$ac_objext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
a1aa0349 12273 bakefile_cv_c_compiler___HP_cc=yes
a9e5b1f0
MW
12274else
12275 echo "$as_me: failed program was:" >&5
12276sed 's/^/| /' conftest.$ac_ext >&5
12277
a1aa0349 12278bakefile_cv_c_compiler___HP_cc=no
a9e5b1f0
MW
12279
12280fi
12281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12282
12283
12284fi
a1aa0349
VZ
12285echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12286echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
a9e5b1f0
MW
12287 ac_ext=c
12288ac_cpp='$CPP $CPPFLAGS'
12289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12291ac_compiler_gnu=$ac_cv_c_compiler_gnu
12292
a1aa0349
VZ
12293 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12294 :; HPCC=yes
a9e5b1f0
MW
12295 else
12296 :;
12297 fi
12298
12299
3006edc0
VZ
12300 ;;
12301
a1aa0349 12302 OSF1)
3006edc0
VZ
12303
12304
12305 ac_ext=c
12306ac_cpp='$CPP $CPPFLAGS'
12307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12309ac_compiler_gnu=$ac_cv_c_compiler_gnu
12310
a1aa0349
VZ
12311 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12312echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12313if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
3006edc0
VZ
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12315else
12316 cat >conftest.$ac_ext <<_ACEOF
12317/* confdefs.h. */
12318_ACEOF
12319cat confdefs.h >>conftest.$ac_ext
12320cat >>conftest.$ac_ext <<_ACEOF
12321/* end confdefs.h. */
12322
12323int
12324main ()
12325{
12326
a1aa0349 12327 #ifndef __DECC
3006edc0
VZ
12328 choke me
12329 #endif
12330
12331 ;
12332 return 0;
12333}
12334_ACEOF
12335rm -f conftest.$ac_objext
12336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12337 (eval $ac_compile) 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; } &&
12350 { ac_try='test -s conftest.$ac_objext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
a1aa0349 12356 bakefile_cv_c_compiler___DECC=yes
3006edc0
VZ
12357else
12358 echo "$as_me: failed program was:" >&5
12359sed 's/^/| /' conftest.$ac_ext >&5
12360
a1aa0349 12361bakefile_cv_c_compiler___DECC=no
3006edc0
VZ
12362
12363fi
12364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12365
12366
12367fi
a1aa0349
VZ
12368echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12369echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
3006edc0
VZ
12370 ac_ext=c
12371ac_cpp='$CPP $CPPFLAGS'
12372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12374ac_compiler_gnu=$ac_cv_c_compiler_gnu
12375
a1aa0349
VZ
12376 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12377 :; COMPAQCC=yes
12378 else
12379 :;
12380 fi
12381
12382
12383 ;;
12384
12385 SunOS)
12386
12387
12388 ac_ext=c
12389ac_cpp='$CPP $CPPFLAGS'
12390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12392ac_compiler_gnu=$ac_cv_c_compiler_gnu
12393
12394 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12395echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12396if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398else
12399 cat >conftest.$ac_ext <<_ACEOF
12400/* confdefs.h. */
12401_ACEOF
12402cat confdefs.h >>conftest.$ac_ext
12403cat >>conftest.$ac_ext <<_ACEOF
12404/* end confdefs.h. */
12405
12406int
12407main ()
12408{
12409
12410 #ifndef __SUNPRO_C
12411 choke me
12412 #endif
12413
12414 ;
12415 return 0;
12416}
12417_ACEOF
12418rm -f conftest.$ac_objext
12419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420 (eval $ac_compile) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } &&
12433 { ac_try='test -s conftest.$ac_objext'
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 bakefile_cv_c_compiler___SUNPRO_C=yes
12440else
12441 echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
12444bakefile_cv_c_compiler___SUNPRO_C=no
12445
12446fi
12447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12448
12449
12450fi
12451echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12452echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12453 ac_ext=c
12454ac_cpp='$CPP $CPPFLAGS'
12455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12457ac_compiler_gnu=$ac_cv_c_compiler_gnu
12458
12459 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12460 :; SUNCC=yes
3006edc0
VZ
12461 else
12462 :;
12463 fi
12464
12465
12466 ;;
12467 esac
ab0ad5f1 12468 fi
a9e5b1f0
MW
12469
12470
3006edc0 12471
a848cd7e
SC
12472ac_ext=c
12473ac_cpp='$CPP $CPPFLAGS'
12474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12476ac_compiler_gnu=$ac_cv_c_compiler_gnu
12477echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12478echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12479# On Suns, sometimes $CPP names a directory.
12480if test -n "$CPP" && test -d "$CPP"; then
12481 CPP=
12482fi
12483if test -z "$CPP"; then
12484 if test "${ac_cv_prog_CPP+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12486else
12487 # Double quotes because CPP needs to be expanded
12488 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12489 do
12490 ac_preproc_ok=false
12491for ac_c_preproc_warn_flag in '' yes
12492do
12493 # Use a header file that comes with gcc, so configuring glibc
12494 # with a fresh cross-compiler works.
12495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12496 # <limits.h> exists even on freestanding compilers.
12497 # On the NeXT, cc -E runs the code through the compiler's parser,
12498 # not just through cpp. "Syntax error" is here to catch this case.
12499 cat >conftest.$ac_ext <<_ACEOF
12500/* confdefs.h. */
12501_ACEOF
12502cat confdefs.h >>conftest.$ac_ext
12503cat >>conftest.$ac_ext <<_ACEOF
12504/* end confdefs.h. */
12505#ifdef __STDC__
12506# include <limits.h>
12507#else
12508# include <assert.h>
12509#endif
ac1cb8d3 12510 Syntax error
a848cd7e
SC
12511_ACEOF
12512if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12514 ac_status=$?
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } >/dev/null; then
12520 if test -s conftest.err; then
12521 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12523 else
12524 ac_cpp_err=
12525 fi
12526else
12527 ac_cpp_err=yes
12528fi
12529if test -z "$ac_cpp_err"; then
12530 :
12531else
12532 echo "$as_me: failed program was:" >&5
12533sed 's/^/| /' conftest.$ac_ext >&5
12534
12535 # Broken: fails on valid input.
12536continue
12537fi
12538rm -f conftest.err conftest.$ac_ext
12539
12540 # OK, works on sane cases. Now check whether non-existent headers
12541 # can be detected and how.
12542 cat >conftest.$ac_ext <<_ACEOF
12543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
12548#include <ac_nonexistent.h>
12549_ACEOF
12550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } >/dev/null; then
12558 if test -s conftest.err; then
12559 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12561 else
12562 ac_cpp_err=
12563 fi
12564else
12565 ac_cpp_err=yes
12566fi
12567if test -z "$ac_cpp_err"; then
12568 # Broken: success on invalid input.
12569continue
12570else
12571 echo "$as_me: failed program was:" >&5
12572sed 's/^/| /' conftest.$ac_ext >&5
12573
12574 # Passes both tests.
12575ac_preproc_ok=:
12576break
12577fi
12578rm -f conftest.err conftest.$ac_ext
12579
12580done
12581# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12582rm -f conftest.err conftest.$ac_ext
12583if $ac_preproc_ok; then
12584 break
12585fi
12586
12587 done
12588 ac_cv_prog_CPP=$CPP
12589
12590fi
12591 CPP=$ac_cv_prog_CPP
12592else
12593 ac_cv_prog_CPP=$CPP
12594fi
12595echo "$as_me:$LINENO: result: $CPP" >&5
12596echo "${ECHO_T}$CPP" >&6
12597ac_preproc_ok=false
12598for ac_c_preproc_warn_flag in '' yes
12599do
12600 # Use a header file that comes with gcc, so configuring glibc
12601 # with a fresh cross-compiler works.
12602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12603 # <limits.h> exists even on freestanding compilers.
12604 # On the NeXT, cc -E runs the code through the compiler's parser,
12605 # not just through cpp. "Syntax error" is here to catch this case.
12606 cat >conftest.$ac_ext <<_ACEOF
12607/* confdefs.h. */
12608_ACEOF
12609cat confdefs.h >>conftest.$ac_ext
12610cat >>conftest.$ac_ext <<_ACEOF
12611/* end confdefs.h. */
12612#ifdef __STDC__
12613# include <limits.h>
12614#else
12615# include <assert.h>
12616#endif
ac1cb8d3 12617 Syntax error
a848cd7e
SC
12618_ACEOF
12619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } >/dev/null; then
12627 if test -s conftest.err; then
12628 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12630 else
12631 ac_cpp_err=
12632 fi
12633else
12634 ac_cpp_err=yes
12635fi
12636if test -z "$ac_cpp_err"; then
12637 :
12638else
12639 echo "$as_me: failed program was:" >&5
12640sed 's/^/| /' conftest.$ac_ext >&5
12641
12642 # Broken: fails on valid input.
12643continue
12644fi
12645rm -f conftest.err conftest.$ac_ext
12646
12647 # OK, works on sane cases. Now check whether non-existent headers
12648 # can be detected and how.
12649 cat >conftest.$ac_ext <<_ACEOF
12650/* confdefs.h. */
12651_ACEOF
12652cat confdefs.h >>conftest.$ac_ext
12653cat >>conftest.$ac_ext <<_ACEOF
12654/* end confdefs.h. */
12655#include <ac_nonexistent.h>
12656_ACEOF
12657if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } >/dev/null; then
12665 if test -s conftest.err; then
12666 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12668 else
12669 ac_cpp_err=
12670 fi
12671else
12672 ac_cpp_err=yes
12673fi
12674if test -z "$ac_cpp_err"; then
12675 # Broken: success on invalid input.
12676continue
12677else
12678 echo "$as_me: failed program was:" >&5
12679sed 's/^/| /' conftest.$ac_ext >&5
12680
12681 # Passes both tests.
12682ac_preproc_ok=:
12683break
12684fi
12685rm -f conftest.err conftest.$ac_ext
12686
12687done
12688# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12689rm -f conftest.err conftest.$ac_ext
12690if $ac_preproc_ok; then
12691 :
12692else
12693 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12694See \`config.log' for more details." >&5
12695echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12696See \`config.log' for more details." >&2;}
12697 { (exit 1); exit 1; }; }
12698fi
12699
12700ac_ext=c
12701ac_cpp='$CPP $CPPFLAGS'
12702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12704ac_compiler_gnu=$ac_cv_c_compiler_gnu
12705
12706
12707echo "$as_me:$LINENO: checking for egrep" >&5
12708echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12709if test "${ac_cv_prog_egrep+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711else
12712 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12713 then ac_cv_prog_egrep='grep -E'
12714 else ac_cv_prog_egrep='egrep'
12715 fi
12716fi
12717echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12718echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12719 EGREP=$ac_cv_prog_egrep
12720
12721
12722if test $ac_cv_c_compiler_gnu = yes; then
12723 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12724echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12725if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12727else
12728 ac_pattern="Autoconf.*'x'"
12729 cat >conftest.$ac_ext <<_ACEOF
12730/* confdefs.h. */
12731_ACEOF
12732cat confdefs.h >>conftest.$ac_ext
12733cat >>conftest.$ac_ext <<_ACEOF
12734/* end confdefs.h. */
12735#include <sgtty.h>
12736Autoconf TIOCGETP
12737_ACEOF
12738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12739 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12740 ac_cv_prog_gcc_traditional=yes
12741else
12742 ac_cv_prog_gcc_traditional=no
12743fi
12744rm -f conftest*
12745
12746
12747 if test $ac_cv_prog_gcc_traditional = no; then
12748 cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h. */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h. */
12754#include <termio.h>
12755Autoconf TCGETA
12756_ACEOF
12757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12758 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12759 ac_cv_prog_gcc_traditional=yes
12760fi
12761rm -f conftest*
12762
12763 fi
12764fi
12765echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12766echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12767 if test $ac_cv_prog_gcc_traditional = yes; then
12768 CC="$CC -traditional"
12769 fi
12770fi
12771
12772
12773
12774
12775ac_ext=cc
12776ac_cpp='$CXXCPP $CPPFLAGS'
12777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12780
12781
12782CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12783
12784
3006edc0 12785
6dcfc289 12786 ac_ext=cc
a848cd7e
SC
12787ac_cpp='$CXXCPP $CPPFLAGS'
12788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12791if test -n "$ac_tool_prefix"; then
12792 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12793 do
12794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12795set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12796echo "$as_me:$LINENO: checking for $ac_word" >&5
12797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12798if test "${ac_cv_prog_CXX+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12800else
12801 if test -n "$CXX"; then
12802 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12803else
12804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805for as_dir in $PATH
12806do
12807 IFS=$as_save_IFS
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12811 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 break 2
12814 fi
12815done
12816done
12817
12818fi
12819fi
12820CXX=$ac_cv_prog_CXX
12821if test -n "$CXX"; then
12822 echo "$as_me:$LINENO: result: $CXX" >&5
12823echo "${ECHO_T}$CXX" >&6
12824else
12825 echo "$as_me:$LINENO: result: no" >&5
12826echo "${ECHO_T}no" >&6
12827fi
12828
12829 test -n "$CXX" && break
12830 done
12831fi
12832if test -z "$CXX"; then
12833 ac_ct_CXX=$CXX
12834 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12835do
12836 # Extract the first word of "$ac_prog", so it can be a program name with args.
12837set dummy $ac_prog; ac_word=$2
12838echo "$as_me:$LINENO: checking for $ac_word" >&5
12839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12840if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842else
12843 if test -n "$ac_ct_CXX"; then
12844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12845else
12846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847for as_dir in $PATH
12848do
12849 IFS=$as_save_IFS
12850 test -z "$as_dir" && as_dir=.
12851 for ac_exec_ext in '' $ac_executable_extensions; do
12852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12853 ac_cv_prog_ac_ct_CXX="$ac_prog"
12854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12855 break 2
12856 fi
12857done
12858done
12859
12860fi
12861fi
12862ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12863if test -n "$ac_ct_CXX"; then
12864 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12865echo "${ECHO_T}$ac_ct_CXX" >&6
12866else
12867 echo "$as_me:$LINENO: result: no" >&5
12868echo "${ECHO_T}no" >&6
12869fi
12870
12871 test -n "$ac_ct_CXX" && break
12872done
12873test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12874
12875 CXX=$ac_ct_CXX
12876fi
12877
12878
12879# Provide some information about the compiler.
12880echo "$as_me:$LINENO:" \
12881 "checking for C++ compiler version" >&5
12882ac_compiler=`set X $ac_compile; echo $2`
12883{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12884 (eval $ac_compiler --version </dev/null >&5) 2>&5
12885 ac_status=$?
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }
12888{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12889 (eval $ac_compiler -v </dev/null >&5) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }
12893{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12894 (eval $ac_compiler -V </dev/null >&5) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }
12898
12899echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12900echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12901if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903else
12904 cat >conftest.$ac_ext <<_ACEOF
12905/* confdefs.h. */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h. */
12910
12911int
12912main ()
12913{
12914#ifndef __GNUC__
12915 choke me
12916#endif
12917
12918 ;
12919 return 0;
12920}
12921_ACEOF
12922rm -f conftest.$ac_objext
12923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12924 (eval $ac_compile) 2>conftest.er1
a848cd7e 12925 ac_status=$?
ac1cb8d3
VS
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
a848cd7e
SC
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
6ebeb4c7 12931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; } &&
12937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943 ac_compiler_gnu=yes
12944else
12945 echo "$as_me: failed program was:" >&5
12946sed 's/^/| /' conftest.$ac_ext >&5
12947
12948ac_compiler_gnu=no
12949fi
ac1cb8d3 12950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12951ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12952
12953fi
12954echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12955echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12956GXX=`test $ac_compiler_gnu = yes && echo yes`
12957ac_test_CXXFLAGS=${CXXFLAGS+set}
12958ac_save_CXXFLAGS=$CXXFLAGS
12959CXXFLAGS="-g"
12960echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12961echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12962if test "${ac_cv_prog_cxx_g+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12964else
12965 cat >conftest.$ac_ext <<_ACEOF
12966/* confdefs.h. */
12967_ACEOF
12968cat confdefs.h >>conftest.$ac_ext
12969cat >>conftest.$ac_ext <<_ACEOF
12970/* end confdefs.h. */
12971
12972int
12973main ()
12974{
12975
12976 ;
12977 return 0;
12978}
12979_ACEOF
12980rm -f conftest.$ac_objext
12981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12982 (eval $ac_compile) 2>conftest.er1
a848cd7e 12983 ac_status=$?
ac1cb8d3
VS
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
a848cd7e
SC
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'
ac1cb8d3
VS
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'
a848cd7e
SC
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 ac_cv_prog_cxx_g=yes
13002else
13003 echo "$as_me: failed program was:" >&5
13004sed 's/^/| /' conftest.$ac_ext >&5
13005
13006ac_cv_prog_cxx_g=no
13007fi
ac1cb8d3 13008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13009fi
13010echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13011echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13012if test "$ac_test_CXXFLAGS" = set; then
13013 CXXFLAGS=$ac_save_CXXFLAGS
13014elif test $ac_cv_prog_cxx_g = yes; then
13015 if test "$GXX" = yes; then
1c14217d 13016 CXXFLAGS="-g -O2"
a848cd7e 13017 else
1c14217d 13018 CXXFLAGS="-g"
a848cd7e
SC
13019 fi
13020else
13021 if test "$GXX" = yes; then
13022 CXXFLAGS="-O2"
13023 else
13024 CXXFLAGS=
13025 fi
13026fi
13027for ac_declaration in \
ac1cb8d3 13028 '' \
a848cd7e
SC
13029 'extern "C" void std::exit (int) throw (); using std::exit;' \
13030 'extern "C" void std::exit (int); using std::exit;' \
13031 'extern "C" void exit (int) throw ();' \
13032 'extern "C" void exit (int);' \
13033 'void exit (int);'
13034do
13035 cat >conftest.$ac_ext <<_ACEOF
13036/* confdefs.h. */
13037_ACEOF
13038cat confdefs.h >>conftest.$ac_ext
13039cat >>conftest.$ac_ext <<_ACEOF
13040/* end confdefs.h. */
de59c161 13041$ac_declaration
ac1cb8d3 13042#include <stdlib.h>
a848cd7e
SC
13043int
13044main ()
13045{
13046exit (42);
13047 ;
13048 return 0;
13049}
13050_ACEOF
13051rm -f conftest.$ac_objext
13052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13053 (eval $ac_compile) 2>conftest.er1
a848cd7e 13054 ac_status=$?
ac1cb8d3
VS
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
a848cd7e
SC
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
6ebeb4c7 13060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 :
13073else
13074 echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
13077continue
13078fi
ac1cb8d3 13079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13080 cat >conftest.$ac_ext <<_ACEOF
13081/* confdefs.h. */
13082_ACEOF
13083cat confdefs.h >>conftest.$ac_ext
13084cat >>conftest.$ac_ext <<_ACEOF
13085/* end confdefs.h. */
13086$ac_declaration
13087int
13088main ()
13089{
13090exit (42);
13091 ;
13092 return 0;
13093}
13094_ACEOF
13095rm -f conftest.$ac_objext
13096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13097 (eval $ac_compile) 2>conftest.er1
a848cd7e 13098 ac_status=$?
ac1cb8d3
VS
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
a848cd7e
SC
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
6ebeb4c7 13104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; } &&
13110 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; }; then
13116 break
13117else
13118 echo "$as_me: failed program was:" >&5
13119sed 's/^/| /' conftest.$ac_ext >&5
13120
13121fi
ac1cb8d3 13122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13123done
13124rm -f conftest*
13125if test -n "$ac_declaration"; then
13126 echo '#ifdef __cplusplus' >>confdefs.h
13127 echo $ac_declaration >>confdefs.h
13128 echo '#endif' >>confdefs.h
13129fi
13130
13131ac_ext=cc
13132ac_cpp='$CXXCPP $CPPFLAGS'
13133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13136
ab0ad5f1
VZ
13137
13138
13139 ac_ext=cc
13140ac_cpp='$CXXCPP $CPPFLAGS'
13141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13144
13145 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13146echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13147if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149else
13150 cat >conftest.$ac_ext <<_ACEOF
13151/* confdefs.h. */
13152_ACEOF
13153cat confdefs.h >>conftest.$ac_ext
13154cat >>conftest.$ac_ext <<_ACEOF
13155/* end confdefs.h. */
13156
13157int
13158main ()
13159{
13160
13161 #ifndef __INTEL_COMPILER
13162 choke me
13163 #endif
13164
13165 ;
13166 return 0;
13167}
13168_ACEOF
13169rm -f conftest.$ac_objext
13170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13171 (eval $ac_compile) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest.$ac_objext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
13190 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13191else
13192 echo "$as_me: failed program was:" >&5
13193sed 's/^/| /' conftest.$ac_ext >&5
13194
13195bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13196
13197fi
13198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13199
13200
13201fi
13202echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13203echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13204 ac_ext=cc
13205ac_cpp='$CXXCPP $CPPFLAGS'
13206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13209
13210 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13211 :; INTELCXX=yes
13212 else
13213 :;
13214 fi
13215
13216
3006edc0
VZ
13217 if test "x$GCXX" != "xyes"; then
13218 if test "xCXX" = "xC"; then
13219 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13220echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
a1aa0349 13221if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223else
13224 cat >conftest.$ac_ext <<_ACEOF
13225/* confdefs.h. */
13226_ACEOF
13227cat confdefs.h >>conftest.$ac_ext
13228cat >>conftest.$ac_ext <<_ACEOF
13229/* end confdefs.h. */
13230
13231int
13232main ()
13233{
13234
13235 ;
13236 return 0;
13237}
13238_ACEOF
13239rm -f conftest.$ac_objext conftest.$ac_ext.o
13240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13241 (eval $ac_compile) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; then
13245 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13246 case $ac_file in
13247 conftest.$ac_ext.o)
a1aa0349 13248 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13249 ;;
13250 *)
13251 ;;
13252 esac
13253done
13254else
13255 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13256See \`config.log' for more details." >&5
13257echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13258See \`config.log' for more details." >&2;}
13259 { (exit 1); exit 1; }; }
13260
13261fi
13262
13263rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13264
13265fi
a1aa0349
VZ
13266echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13267echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13268if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13269 if test "cxx" = "c"; then
a1aa0349 13270 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13271 fi
13272 if test "cxx" = "cxx"; then
a1aa0349 13273 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13274 fi
13275fi
13276
a1aa0349 13277 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13278 unset ac_cv_prog_cc_g
13279 ac_test_CFLAGS=${CFLAGS+set}
13280ac_save_CFLAGS=$CFLAGS
13281CFLAGS="-g"
13282echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13283echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13284if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13286else
13287 cat >conftest.$ac_ext <<_ACEOF
13288/* confdefs.h. */
13289_ACEOF
13290cat confdefs.h >>conftest.$ac_ext
13291cat >>conftest.$ac_ext <<_ACEOF
13292/* end confdefs.h. */
13293
13294int
13295main ()
13296{
13297
13298 ;
13299 return 0;
13300}
13301_ACEOF
13302rm -f conftest.$ac_objext
13303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13304 (eval $ac_compile) 2>conftest.er1
13305 ac_status=$?
13306 grep -v '^ *+' conftest.er1 >conftest.err
13307 rm -f conftest.er1
13308 cat conftest.err >&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } &&
6ebeb4c7 13311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; } &&
13317 { ac_try='test -s conftest.$ac_objext'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
3006edc0 13323 ac_cv_prog_cc_g=yes
480ccd21
DE
13324else
13325 echo "$as_me: failed program was:" >&5
13326sed 's/^/| /' conftest.$ac_ext >&5
13327
3006edc0 13328ac_cv_prog_cc_g=no
480ccd21
DE
13329fi
13330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13331fi
3006edc0
VZ
13332echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13333echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13334if test "$ac_test_CFLAGS" = set; then
13335 CFLAGS=$ac_save_CFLAGS
13336elif test $ac_cv_prog_cc_g = yes; then
13337 if test "$GCC" = yes; then
13338 CFLAGS="-g -O2"
480ccd21 13339 else
3006edc0 13340 CFLAGS="-g"
480ccd21
DE
13341 fi
13342else
3006edc0
VZ
13343 if test "$GCC" = yes; then
13344 CFLAGS="-O2"
480ccd21 13345 else
3006edc0 13346 CFLAGS=
480ccd21
DE
13347 fi
13348fi
3006edc0 13349 fi
ab0ad5f1 13350 fi
3006edc0
VZ
13351
13352 case `uname -s` in
13353 AIX*)
13354 ac_ext=cc
13355ac_cpp='$CXXCPP $CPPFLAGS'
13356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13359
13360echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13361echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
a1aa0349 13362if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364else
13365 cat >conftest.$ac_ext <<_ACEOF
13366/* confdefs.h. */
13367_ACEOF
13368cat confdefs.h >>conftest.$ac_ext
13369cat >>conftest.$ac_ext <<_ACEOF
13370/* end confdefs.h. */
13371
13372int
13373main ()
13374{
13375#ifndef __xlC__
13376 choke me
13377#endif
13378
13379 ;
13380 return 0;
13381}
13382_ACEOF
13383rm -f conftest.$ac_objext
13384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13385 (eval $ac_compile) 2>conftest.er1
13386 ac_status=$?
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; } &&
13398 { ac_try='test -s conftest.$ac_objext'
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; }; then
a1aa0349 13404 bakefile_compiler_xlc=yes
3006edc0
VZ
13405else
13406 echo "$as_me: failed program was:" >&5
13407sed 's/^/| /' conftest.$ac_ext >&5
13408
a1aa0349 13409bakefile_compiler_xlc=no
3006edc0
VZ
13410fi
13411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a1aa0349 13412 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13413
13414fi
a1aa0349
VZ
13415echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13416echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13417
a1aa0349 13418XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13419ac_ext=cc
13420ac_cpp='$CXXCPP $CPPFLAGS'
13421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13424
13425
13426 ;;
13427
13428 Darwin)
13429 ac_ext=cc
95986553
DE
13430ac_cpp='$CXXCPP $CPPFLAGS'
13431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13434
13435echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13436echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13437if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13439else
13440 cat >conftest.$ac_ext <<_ACEOF
13441/* confdefs.h. */
13442_ACEOF
13443cat confdefs.h >>conftest.$ac_ext
13444cat >>conftest.$ac_ext <<_ACEOF
13445/* end confdefs.h. */
13446
13447int
13448main ()
13449{
13450#ifndef __MWERKS__
13451 choke me
13452#endif
13453
13454 ;
13455 return 0;
13456}
13457_ACEOF
13458rm -f conftest.$ac_objext
13459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13460 (eval $ac_compile) 2>conftest.er1
13461 ac_status=$?
13462 grep -v '^ *+' conftest.er1 >conftest.err
13463 rm -f conftest.er1
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
6ebeb4c7 13467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; } &&
13473 { ac_try='test -s conftest.$ac_objext'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 bakefile_compiler_mwerks=yes
13480else
13481 echo "$as_me: failed program was:" >&5
13482sed 's/^/| /' conftest.$ac_ext >&5
13483
13484bakefile_compiler_mwerks=no
13485fi
13486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13487 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13488
13489fi
13490echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13491echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13492
0e6fa1d9 13493MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13494ac_ext=cc
13495ac_cpp='$CXXCPP $CPPFLAGS'
13496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13499
13500
3006edc0 13501 ac_ext=cc
9273ffba
DE
13502ac_cpp='$CXXCPP $CPPFLAGS'
13503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13506
13507echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13508echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
a1aa0349 13509if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13511else
13512 cat >conftest.$ac_ext <<_ACEOF
13513/* confdefs.h. */
13514_ACEOF
13515cat confdefs.h >>conftest.$ac_ext
13516cat >>conftest.$ac_ext <<_ACEOF
13517/* end confdefs.h. */
13518
13519int
13520main ()
13521{
13522#ifndef __xlC__
13523 choke me
13524#endif
13525
13526 ;
13527 return 0;
13528}
13529_ACEOF
13530rm -f conftest.$ac_objext
13531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13532 (eval $ac_compile) 2>conftest.er1
13533 ac_status=$?
13534 grep -v '^ *+' conftest.er1 >conftest.err
13535 rm -f conftest.er1
13536 cat conftest.err >&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } &&
6ebeb4c7 13539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13542 ac_status=$?
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; } &&
13545 { ac_try='test -s conftest.$ac_objext'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; }; then
a1aa0349 13551 bakefile_compiler_xlc=yes
9273ffba
DE
13552else
13553 echo "$as_me: failed program was:" >&5
13554sed 's/^/| /' conftest.$ac_ext >&5
13555
a1aa0349 13556bakefile_compiler_xlc=no
9273ffba
DE
13557fi
13558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a1aa0349 13559 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13560
13561fi
a1aa0349
VZ
13562echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13563echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13564
a1aa0349 13565XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13566ac_ext=cc
13567ac_cpp='$CXXCPP $CPPFLAGS'
13568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13571
13572
3006edc0
VZ
13573 ;;
13574
13575 IRIX*)
95986553 13576
6dcfc289 13577
0ad5d837
VZ
13578 ac_ext=cc
13579ac_cpp='$CXXCPP $CPPFLAGS'
13580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13583
13584 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13585echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13586if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588else
13589 cat >conftest.$ac_ext <<_ACEOF
13590/* confdefs.h. */
13591_ACEOF
13592cat confdefs.h >>conftest.$ac_ext
13593cat >>conftest.$ac_ext <<_ACEOF
13594/* end confdefs.h. */
13595
13596int
13597main ()
13598{
13599
13600 #ifndef _SGI_COMPILER_VERSION
13601 choke me
13602 #endif
13603
13604 ;
13605 return 0;
13606}
13607_ACEOF
13608rm -f conftest.$ac_objext
13609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610 (eval $ac_compile) 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; } &&
13623 { ac_try='test -s conftest.$ac_objext'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13630else
13631 echo "$as_me: failed program was:" >&5
13632sed 's/^/| /' conftest.$ac_ext >&5
13633
13634bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13635
13636fi
13637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638
13639
13640fi
13641echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13642echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13643 ac_ext=cc
13644ac_cpp='$CXXCPP $CPPFLAGS'
13645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13648
13649 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13650 :; SGICXX=yes
13651 else
13652 :;
13653 fi
13654
13655
3006edc0
VZ
13656 ;;
13657
a1aa0349 13658 HP-UX*)
0ad5d837
VZ
13659
13660
a9e5b1f0
MW
13661 ac_ext=cc
13662ac_cpp='$CXXCPP $CPPFLAGS'
13663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13666
a1aa0349
VZ
13667 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13668echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13669if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
a9e5b1f0
MW
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671else
13672 cat >conftest.$ac_ext <<_ACEOF
13673/* confdefs.h. */
13674_ACEOF
13675cat confdefs.h >>conftest.$ac_ext
13676cat >>conftest.$ac_ext <<_ACEOF
13677/* end confdefs.h. */
13678
13679int
13680main ()
13681{
13682
a1aa0349 13683 #ifndef __HP_aCC
a9e5b1f0
MW
13684 choke me
13685 #endif
13686
13687 ;
13688 return 0;
13689}
13690_ACEOF
13691rm -f conftest.$ac_objext
13692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13693 (eval $ac_compile) 2>conftest.er1
13694 ac_status=$?
13695 grep -v '^ *+' conftest.er1 >conftest.err
13696 rm -f conftest.er1
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } &&
6ebeb4c7 13700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; } &&
13706 { ac_try='test -s conftest.$ac_objext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
a1aa0349 13712 bakefile_cv_cxx_compiler___HP_aCC=yes
a9e5b1f0
MW
13713else
13714 echo "$as_me: failed program was:" >&5
13715sed 's/^/| /' conftest.$ac_ext >&5
13716
a1aa0349 13717bakefile_cv_cxx_compiler___HP_aCC=no
a9e5b1f0
MW
13718
13719fi
13720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13721
13722
13723fi
a1aa0349
VZ
13724echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13725echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
a9e5b1f0
MW
13726 ac_ext=cc
13727ac_cpp='$CXXCPP $CPPFLAGS'
13728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13731
a1aa0349
VZ
13732 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13733 :; HPCXX=yes
a9e5b1f0
MW
13734 else
13735 :;
13736 fi
13737
13738
3006edc0
VZ
13739 ;;
13740
a1aa0349 13741 OSF1)
3006edc0
VZ
13742
13743
13744 ac_ext=cc
13745ac_cpp='$CXXCPP $CPPFLAGS'
13746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13749
a1aa0349
VZ
13750 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
13751echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
13752if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
3006edc0
VZ
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13754else
13755 cat >conftest.$ac_ext <<_ACEOF
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
13761
13762int
13763main ()
13764{
13765
a1aa0349 13766 #ifndef __DECCXX
3006edc0
VZ
13767 choke me
13768 #endif
13769
13770 ;
13771 return 0;
13772}
13773_ACEOF
13774rm -f conftest.$ac_objext
13775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest.$ac_objext'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; }; then
a1aa0349 13795 bakefile_cv_cxx_compiler___DECCXX=yes
3006edc0
VZ
13796else
13797 echo "$as_me: failed program was:" >&5
13798sed 's/^/| /' conftest.$ac_ext >&5
13799
a1aa0349 13800bakefile_cv_cxx_compiler___DECCXX=no
3006edc0
VZ
13801
13802fi
13803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13804
13805
13806fi
a1aa0349
VZ
13807echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
13808echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
3006edc0
VZ
13809 ac_ext=cc
13810ac_cpp='$CXXCPP $CPPFLAGS'
13811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13814
a1aa0349
VZ
13815 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
13816 :; COMPAQCXX=yes
13817 else
13818 :;
13819 fi
13820
13821
13822 ;;
13823
13824 SunOS)
13825
13826
13827 ac_ext=cc
13828ac_cpp='$CXXCPP $CPPFLAGS'
13829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13832
13833 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13834echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13835if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837else
13838 cat >conftest.$ac_ext <<_ACEOF
13839/* confdefs.h. */
13840_ACEOF
13841cat confdefs.h >>conftest.$ac_ext
13842cat >>conftest.$ac_ext <<_ACEOF
13843/* end confdefs.h. */
13844
13845int
13846main ()
13847{
13848
13849 #ifndef __SUNPRO_CC
13850 choke me
13851 #endif
13852
13853 ;
13854 return 0;
13855}
13856_ACEOF
13857rm -f conftest.$ac_objext
13858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13859 (eval $ac_compile) 2>conftest.er1
13860 ac_status=$?
13861 grep -v '^ *+' conftest.er1 >conftest.err
13862 rm -f conftest.er1
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest.$ac_objext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13879else
13880 echo "$as_me: failed program was:" >&5
13881sed 's/^/| /' conftest.$ac_ext >&5
13882
13883bakefile_cv_cxx_compiler___SUNPRO_CC=no
13884
13885fi
13886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13887
13888
13889fi
13890echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13891echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13892 ac_ext=cc
13893ac_cpp='$CXXCPP $CPPFLAGS'
13894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13897
13898 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13899 :; SUNCXX=yes
3006edc0
VZ
13900 else
13901 :;
ab0ad5f1 13902 fi
a9e5b1f0
MW
13903
13904
3006edc0
VZ
13905 ;;
13906 esac
13907 fi
13908
13909
13910
a848cd7e
SC
13911ac_ext=c
13912ac_cpp='$CPP $CPPFLAGS'
13913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13915ac_compiler_gnu=$ac_cv_c_compiler_gnu
13916
13917
a848cd7e
SC
13918if test -n "$ac_tool_prefix"; then
13919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13920set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13921echo "$as_me:$LINENO: checking for $ac_word" >&5
13922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13923if test "${ac_cv_prog_RANLIB+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13925else
13926 if test -n "$RANLIB"; then
13927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13928else
13929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930for as_dir in $PATH
13931do
13932 IFS=$as_save_IFS
13933 test -z "$as_dir" && as_dir=.
13934 for ac_exec_ext in '' $ac_executable_extensions; do
13935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13938 break 2
13939 fi
13940done
13941done
13942
13943fi
13944fi
13945RANLIB=$ac_cv_prog_RANLIB
13946if test -n "$RANLIB"; then
13947 echo "$as_me:$LINENO: result: $RANLIB" >&5
13948echo "${ECHO_T}$RANLIB" >&6
13949else
13950 echo "$as_me:$LINENO: result: no" >&5
13951echo "${ECHO_T}no" >&6
13952fi
13953
13954fi
13955if test -z "$ac_cv_prog_RANLIB"; then
13956 ac_ct_RANLIB=$RANLIB
13957 # Extract the first word of "ranlib", so it can be a program name with args.
13958set dummy ranlib; ac_word=$2
13959echo "$as_me:$LINENO: checking for $ac_word" >&5
13960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13961if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963else
13964 if test -n "$ac_ct_RANLIB"; then
13965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13966else
13967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968for as_dir in $PATH
13969do
13970 IFS=$as_save_IFS
13971 test -z "$as_dir" && as_dir=.
13972 for ac_exec_ext in '' $ac_executable_extensions; do
13973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13974 ac_cv_prog_ac_ct_RANLIB="ranlib"
13975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13976 break 2
13977 fi
13978done
13979done
13980
13981 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13982fi
13983fi
13984ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13985if test -n "$ac_ct_RANLIB"; then
13986 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13987echo "${ECHO_T}$ac_ct_RANLIB" >&6
13988else
13989 echo "$as_me:$LINENO: result: no" >&5
13990echo "${ECHO_T}no" >&6
13991fi
13992
13993 RANLIB=$ac_ct_RANLIB
13994else
13995 RANLIB="$ac_cv_prog_RANLIB"
13996fi
13997
13998
8c80d384
DE
13999if test -n "$ac_tool_prefix"; then
14000 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14001set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14002echo "$as_me:$LINENO: checking for $ac_word" >&5
14003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14004if test "${ac_cv_prog_AR+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006else
14007 if test -n "$AR"; then
14008 ac_cv_prog_AR="$AR" # Let the user override the test.
14009else
14010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14011for as_dir in $PATH
14012do
14013 IFS=$as_save_IFS
14014 test -z "$as_dir" && as_dir=.
14015 for ac_exec_ext in '' $ac_executable_extensions; do
14016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14017 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14019 break 2
14020 fi
14021done
14022done
14023
14024fi
14025fi
14026AR=$ac_cv_prog_AR
14027if test -n "$AR"; then
14028 echo "$as_me:$LINENO: result: $AR" >&5
14029echo "${ECHO_T}$AR" >&6
14030else
14031 echo "$as_me:$LINENO: result: no" >&5
14032echo "${ECHO_T}no" >&6
14033fi
14034
8c80d384
DE
14035fi
14036if test -z "$ac_cv_prog_AR"; then
14037 ac_ct_AR=$AR
14038 # Extract the first word of "ar", so it can be a program name with args.
14039set dummy ar; ac_word=$2
14040echo "$as_me:$LINENO: checking for $ac_word" >&5
14041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14042if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044else
14045 if test -n "$ac_ct_AR"; then
14046 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14047else
14048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049for as_dir in $PATH
14050do
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055 ac_cv_prog_ac_ct_AR="ar"
14056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 break 2
14058 fi
14059done
14060done
14061
14062fi
14063fi
14064ac_ct_AR=$ac_cv_prog_ac_ct_AR
14065if test -n "$ac_ct_AR"; then
14066 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14067echo "${ECHO_T}$ac_ct_AR" >&6
14068else
14069 echo "$as_me:$LINENO: result: no" >&5
14070echo "${ECHO_T}no" >&6
14071fi
14072
14073 AR=$ac_ct_AR
14074else
14075 AR="$ac_cv_prog_AR"
14076fi
14077
a848cd7e 14078if test "x$AR" = "x" ; then
77ffb593
JS
14079 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14080echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14081 { (exit 1); exit 1; }; }
14082fi
14083
14084# Find a good install program. We prefer a C program (faster),
14085# so one script is as good as another. But avoid the broken or
14086# incompatible versions:
14087# SysV /etc/install, /usr/sbin/install
14088# SunOS /usr/etc/install
14089# IRIX /sbin/install
14090# AIX /bin/install
14091# AmigaOS /C/install, which installs bootblocks on floppy discs
14092# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14093# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14094# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14095# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14096# ./install, which can be erroneously created by make from ./install.sh.
14097echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14098echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14099if test -z "$INSTALL"; then
14100if test "${ac_cv_path_install+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14102else
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104for as_dir in $PATH
14105do
14106 IFS=$as_save_IFS
14107 test -z "$as_dir" && as_dir=.
14108 # Account for people who put trailing slashes in PATH elements.
14109case $as_dir/ in
14110 ./ | .// | /cC/* | \
14111 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14112 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14113 /usr/ucb/* ) ;;
14114 *)
14115 # OSF1 and SCO ODT 3.0 have their own names for install.
14116 # Don't use installbsd from OSF since it installs stuff as root
14117 # by default.
14118 for ac_prog in ginstall scoinst install; do
14119 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14120 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14121 if test $ac_prog = install &&
14122 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14123 # AIX install. It has an incompatible calling convention.
14124 :
14125 elif test $ac_prog = install &&
14126 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14127 # program-specific install script used by HP pwplus--don't use.
14128 :
14129 else
14130 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14131 break 3
14132 fi
14133 fi
a848cd7e
SC
14134 done
14135 done
14136 ;;
14137esac
14138done
14139
14140
14141fi
14142 if test "${ac_cv_path_install+set}" = set; then
14143 INSTALL=$ac_cv_path_install
14144 else
14145 # As a last resort, use the slow shell script. We don't cache a
14146 # path for INSTALL within a source directory, because that will
14147 # break other packages using the cache if that directory is
14148 # removed, or if the path is relative.
14149 INSTALL=$ac_install_sh
14150 fi
14151fi
14152echo "$as_me:$LINENO: result: $INSTALL" >&5
14153echo "${ECHO_T}$INSTALL" >&6
14154
14155# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14156# It thinks the first close brace ends the variable substitution.
14157test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14158
14159test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14160
14161test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14162
14163
14164case ${INSTALL} in
14165 /* ) # Absolute
14166 ;;
14167 ?:* ) # Drive letter, considered as absolute.
14168 ;;
14169 *)
14170 INSTALL=`pwd`/${INSTALL} ;;
14171esac
14172
a848cd7e
SC
14173
14174case "${host}" in
14175
cfda0ea8 14176 *-*-darwin* )
a848cd7e
SC
14177 INSTALL_PROGRAM="cp -fp"
14178 INSTALL_DATA="cp -fp"
14179 ;;
14180 *)
14181 ;;
14182esac
14183
8c80d384
DE
14184if test -n "$ac_tool_prefix"; then
14185 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14186set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14187echo "$as_me:$LINENO: checking for $ac_word" >&5
14188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14189if test "${ac_cv_prog_STRIP+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191else
14192 if test -n "$STRIP"; then
14193 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14194else
14195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196for as_dir in $PATH
14197do
14198 IFS=$as_save_IFS
14199 test -z "$as_dir" && as_dir=.
14200 for ac_exec_ext in '' $ac_executable_extensions; do
14201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14202 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14204 break 2
14205 fi
14206done
14207done
14208
a848cd7e
SC
14209fi
14210fi
14211STRIP=$ac_cv_prog_STRIP
14212if test -n "$STRIP"; then
14213 echo "$as_me:$LINENO: result: $STRIP" >&5
14214echo "${ECHO_T}$STRIP" >&6
14215else
14216 echo "$as_me:$LINENO: result: no" >&5
14217echo "${ECHO_T}no" >&6
14218fi
14219
8c80d384
DE
14220fi
14221if test -z "$ac_cv_prog_STRIP"; then
14222 ac_ct_STRIP=$STRIP
14223 # Extract the first word of "strip", so it can be a program name with args.
14224set dummy strip; ac_word=$2
14225echo "$as_me:$LINENO: checking for $ac_word" >&5
14226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14227if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229else
14230 if test -n "$ac_ct_STRIP"; then
14231 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14232else
14233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234for as_dir in $PATH
14235do
14236 IFS=$as_save_IFS
14237 test -z "$as_dir" && as_dir=.
14238 for ac_exec_ext in '' $ac_executable_extensions; do
14239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14240 ac_cv_prog_ac_ct_STRIP="strip"
14241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14242 break 2
14243 fi
14244done
14245done
14246
14247 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14248fi
14249fi
14250ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14251if test -n "$ac_ct_STRIP"; then
14252 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14253echo "${ECHO_T}$ac_ct_STRIP" >&6
14254else
14255 echo "$as_me:$LINENO: result: no" >&5
14256echo "${ECHO_T}no" >&6
14257fi
14258
14259 STRIP=$ac_ct_STRIP
14260else
14261 STRIP="$ac_cv_prog_STRIP"
14262fi
14263
14264
14265if test "$wxUSE_WINE" = "yes"; then
14266 if test -n "$ac_tool_prefix"; then
14267 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14268set dummy ${ac_tool_prefix}wrc; ac_word=$2
14269echo "$as_me:$LINENO: checking for $ac_word" >&5
14270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14271if test "${ac_cv_prog_RESCOMP+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14273else
14274 if test -n "$RESCOMP"; then
14275 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14276else
14277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14278for as_dir in $PATH
14279do
14280 IFS=$as_save_IFS
14281 test -z "$as_dir" && as_dir=.
14282 for ac_exec_ext in '' $ac_executable_extensions; do
14283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14284 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
14285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14286 break 2
14287 fi
14288done
14289done
14290
14291fi
14292fi
14293RESCOMP=$ac_cv_prog_RESCOMP
14294if test -n "$RESCOMP"; then
14295 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14296echo "${ECHO_T}$RESCOMP" >&6
14297else
14298 echo "$as_me:$LINENO: result: no" >&5
14299echo "${ECHO_T}no" >&6
14300fi
14301
14302fi
14303if test -z "$ac_cv_prog_RESCOMP"; then
14304 ac_ct_RESCOMP=$RESCOMP
14305 # Extract the first word of "wrc", so it can be a program name with args.
14306set dummy wrc; ac_word=$2
14307echo "$as_me:$LINENO: checking for $ac_word" >&5
14308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14309if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14311else
14312 if test -n "$ac_ct_RESCOMP"; then
14313 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14314else
14315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316for as_dir in $PATH
14317do
14318 IFS=$as_save_IFS
14319 test -z "$as_dir" && as_dir=.
14320 for ac_exec_ext in '' $ac_executable_extensions; do
14321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14322 ac_cv_prog_ac_ct_RESCOMP="wrc"
14323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14324 break 2
14325 fi
14326done
14327done
14328
14329fi
14330fi
14331ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14332if test -n "$ac_ct_RESCOMP"; then
14333 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14334echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14335else
14336 echo "$as_me:$LINENO: result: no" >&5
14337echo "${ECHO_T}no" >&6
14338fi
14339
14340 RESCOMP=$ac_ct_RESCOMP
14341else
14342 RESCOMP="$ac_cv_prog_RESCOMP"
14343fi
14344
14345else
14346 case "${host}" in
14347 *-*-cygwin* | *-*-mingw32* )
14348 if test -n "$ac_tool_prefix"; then
14349 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14350set dummy ${ac_tool_prefix}windres; ac_word=$2
14351echo "$as_me:$LINENO: checking for $ac_word" >&5
14352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14353if test "${ac_cv_prog_RESCOMP+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355else
14356 if test -n "$RESCOMP"; then
14357 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14358else
14359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360for as_dir in $PATH
14361do
14362 IFS=$as_save_IFS
14363 test -z "$as_dir" && as_dir=.
14364 for ac_exec_ext in '' $ac_executable_extensions; do
14365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14366 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
14367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14368 break 2
14369 fi
14370done
14371done
14372
14373fi
14374fi
14375RESCOMP=$ac_cv_prog_RESCOMP
14376if test -n "$RESCOMP"; then
14377 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14378echo "${ECHO_T}$RESCOMP" >&6
14379else
14380 echo "$as_me:$LINENO: result: no" >&5
14381echo "${ECHO_T}no" >&6
14382fi
14383
14384fi
14385if test -z "$ac_cv_prog_RESCOMP"; then
14386 ac_ct_RESCOMP=$RESCOMP
14387 # Extract the first word of "windres", so it can be a program name with args.
14388set dummy windres; ac_word=$2
14389echo "$as_me:$LINENO: checking for $ac_word" >&5
14390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14391if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14393else
14394 if test -n "$ac_ct_RESCOMP"; then
14395 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14396else
14397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14398for as_dir in $PATH
14399do
14400 IFS=$as_save_IFS
14401 test -z "$as_dir" && as_dir=.
14402 for ac_exec_ext in '' $ac_executable_extensions; do
14403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14404 ac_cv_prog_ac_ct_RESCOMP="windres"
14405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14406 break 2
14407 fi
14408done
14409done
14410
14411fi
14412fi
14413ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14414if test -n "$ac_ct_RESCOMP"; then
14415 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14416echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14417else
14418 echo "$as_me:$LINENO: result: no" >&5
14419echo "${ECHO_T}no" >&6
14420fi
14421
14422 RESCOMP=$ac_ct_RESCOMP
14423else
14424 RESCOMP="$ac_cv_prog_RESCOMP"
14425fi
14426
14427 if test -n "$ac_tool_prefix"; then
14428 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14429set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14430echo "$as_me:$LINENO: checking for $ac_word" >&5
14431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14432if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14434else
14435 if test -n "$DLLTOOL"; then
14436 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14437else
14438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14439for as_dir in $PATH
14440do
14441 IFS=$as_save_IFS
14442 test -z "$as_dir" && as_dir=.
14443 for ac_exec_ext in '' $ac_executable_extensions; do
14444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14445 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14447 break 2
14448 fi
14449done
14450done
14451
14452fi
14453fi
14454DLLTOOL=$ac_cv_prog_DLLTOOL
14455if test -n "$DLLTOOL"; then
14456 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14457echo "${ECHO_T}$DLLTOOL" >&6
14458else
14459 echo "$as_me:$LINENO: result: no" >&5
14460echo "${ECHO_T}no" >&6
14461fi
14462
14463fi
14464if test -z "$ac_cv_prog_DLLTOOL"; then
14465 ac_ct_DLLTOOL=$DLLTOOL
14466 # Extract the first word of "dlltool", so it can be a program name with args.
14467set dummy dlltool; ac_word=$2
14468echo "$as_me:$LINENO: checking for $ac_word" >&5
14469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14470if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14472else
14473 if test -n "$ac_ct_DLLTOOL"; then
14474 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14475else
14476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14477for as_dir in $PATH
14478do
14479 IFS=$as_save_IFS
14480 test -z "$as_dir" && as_dir=.
14481 for ac_exec_ext in '' $ac_executable_extensions; do
14482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14483 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14485 break 2
14486 fi
14487done
14488done
14489
14490fi
14491fi
14492ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14493if test -n "$ac_ct_DLLTOOL"; then
14494 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14495echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14496else
14497 echo "$as_me:$LINENO: result: no" >&5
14498echo "${ECHO_T}no" >&6
14499fi
14500
14501 DLLTOOL=$ac_ct_DLLTOOL
14502else
14503 DLLTOOL="$ac_cv_prog_DLLTOOL"
14504fi
14505
14506 ;;
14507 esac
14508fi
a848cd7e
SC
14509
14510echo "$as_me:$LINENO: checking if make is GNU make" >&5
14511echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14512if test "${wx_cv_prog_makeisgnu+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14514else
14515
14516 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14517 egrep -s GNU > /dev/null); then
14518 wx_cv_prog_makeisgnu="yes"
14519 else
14520 wx_cv_prog_makeisgnu="no"
14521 fi
14522
14523fi
14524echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14525echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14526
14527if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14528 IF_GNU_MAKE=""
14529else
14530 IF_GNU_MAKE="#"
14531fi
14532
14533
14534
14535if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14536echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14537echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14538if test "${wx_cv_prog_makevpath+set}" = set; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14540else
14541
14542cat - << EOF > confMake
14543check : file
14544 cp \$? \$@
14545 cp \$? final_file
14546EOF
14547
14548if test ! -d sub ; then
14549 mkdir sub
14550fi
14551echo dummy > sub/file
14552${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14553RESULT=$?
14554rm -f sub/file check final_file confMake
14555rmdir sub
14556if test "$RESULT" = 0; then
14557 wx_cv_prog_makevpath="yes"
14558else
14559 wx_cv_prog_makevpath="no"
14560fi
14561
14562fi
14563echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14564echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14565
14566if test "x$wx_cv_prog_makevpath" != "xyes"; then
14567{ { echo "$as_me:$LINENO: error:
14568You need a make-utility that is able to use the variable
14569VPATH correctly.
14570If your version of make does not support VPATH correctly,
14571please install GNU-make (possibly as gmake), and start
14572configure with the following command:
14573export MAKE=gmake; ./configure for sh-type shells
14574setenv MAKE gmake; ./configure for csh-type shells
14575Also please do remember to use gmake in this case every time
14576you are trying to compile.
14577" >&5
14578echo "$as_me: error:
14579You need a make-utility that is able to use the variable
14580VPATH correctly.
14581If your version of make does not support VPATH correctly,
14582please install GNU-make (possibly as gmake), and start
14583configure with the following command:
14584export MAKE=gmake; ./configure for sh-type shells
14585setenv MAKE gmake; ./configure for csh-type shells
14586Also please do remember to use gmake in this case every time
14587you are trying to compile.
14588" >&2;}
14589 { (exit 1); exit 1; }; }
14590fi fi
14591echo "$as_me:$LINENO: checking whether ln -s works" >&5
14592echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14593LN_S=$as_ln_s
14594if test "$LN_S" = "ln -s"; then
14595 echo "$as_me:$LINENO: result: yes" >&5
14596echo "${ECHO_T}yes" >&6
14597else
14598 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14599echo "${ECHO_T}no, using $LN_S" >&6
14600fi
14601
14602
14603
2113bc77 14604if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
14605 CXXFLAGS="$CXXFLAGS -qunique"
14606fi
14607
4d7ec9f1
DE
14608case "${host}" in
14609 powerpc-*-darwin* )
14610 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14611echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14612 cat >conftest.$ac_ext <<_ACEOF
14613/* confdefs.h. */
14614_ACEOF
14615cat confdefs.h >>conftest.$ac_ext
14616cat >>conftest.$ac_ext <<_ACEOF
14617/* end confdefs.h. */
14618
14619int
14620main ()
14621{
14622#ifndef __POWERPC__
14623 choke me for lack of PowerPC
14624#endif
14625
14626 ;
14627 return 0;
14628}
14629_ACEOF
14630rm -f conftest.$ac_objext
14631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14632 (eval $ac_compile) 2>conftest.er1
14633 ac_status=$?
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
6ebeb4c7 14639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14651 echo "$as_me:$LINENO: result: yes" >&5
14652echo "${ECHO_T}yes" >&6
14653else
14654 echo "$as_me: failed program was:" >&5
14655sed 's/^/| /' conftest.$ac_ext >&5
14656
14657echo "$as_me:$LINENO: result: no" >&5
14658echo "${ECHO_T}no" >&6
14659 cat >>confdefs.h <<\_ACEOF
14660#define __POWERPC__ 1
14661_ACEOF
14662
14663
14664fi
14665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14666 ;;
14667esac
14668
14669case "${host}" in
14670 *-*-darwin* )
4d7ec9f1
DE
14671 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14672echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14673 cat >conftest.$ac_ext <<_ACEOF
14674/* confdefs.h. */
14675_ACEOF
14676cat confdefs.h >>conftest.$ac_ext
14677cat >>conftest.$ac_ext <<_ACEOF
14678/* end confdefs.h. */
14679#include <CoreFoundation/CFBase.h>
14680
14681int
14682main ()
14683{
14684
14685 ;
14686 return 0;
14687}
14688_ACEOF
14689rm -f conftest.$ac_objext
14690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14691 (eval $ac_compile) 2>conftest.er1
14692 ac_status=$?
14693 grep -v '^ *+' conftest.er1 >conftest.err
14694 rm -f conftest.er1
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } &&
6ebeb4c7 14698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; } &&
14704 { ac_try='test -s conftest.$ac_objext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14710 echo "$as_me:$LINENO: result: yes" >&5
14711echo "${ECHO_T}yes" >&6
14712else
14713 echo "$as_me: failed program was:" >&5
14714sed 's/^/| /' conftest.$ac_ext >&5
14715
14716echo "$as_me:$LINENO: result: no" >&5
14717echo "${ECHO_T}no" >&6
14718 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14719echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14720 cat >conftest.$ac_ext <<_ACEOF
14721/* confdefs.h. */
14722_ACEOF
14723cat confdefs.h >>conftest.$ac_ext
14724cat >>conftest.$ac_ext <<_ACEOF
14725/* end confdefs.h. */
14726#define __CF_USE_FRAMEWORK_INCLUDES__
14727#include <CoreFoundation/CFBase.h>
14728
14729int
14730main ()
14731{
14732
14733 ;
14734 return 0;
14735}
14736_ACEOF
14737rm -f conftest.$ac_objext
14738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739 (eval $ac_compile) 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
6ebeb4c7 14746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; } &&
14752 { ac_try='test -s conftest.$ac_objext'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; }; then
14758 echo "$as_me:$LINENO: result: yes" >&5
14759echo "${ECHO_T}yes" >&6
14760 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14761else
14762 echo "$as_me: failed program was:" >&5
14763sed 's/^/| /' conftest.$ac_ext >&5
14764
14765{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14766See \`config.log' for more details." >&5
14767echo "$as_me: error: no. CoreFoundation not available.
14768See \`config.log' for more details." >&2;}
14769 { (exit 1); exit 1; }; }
14770
14771fi
14772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14773
14774
14775fi
14776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14777 ;;
14778esac
14779
a848cd7e
SC
14780case "${host}" in
14781 *-pc-os2_emx | *-pc-os2-emx )
14782 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14783 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14784echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14785if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14787else
14788 ac_check_lib_save_LIBS=$LIBS
14789LIBS="-lcExt $LIBS"
14790cat >conftest.$ac_ext <<_ACEOF
14791/* confdefs.h. */
14792_ACEOF
14793cat confdefs.h >>conftest.$ac_ext
14794cat >>conftest.$ac_ext <<_ACEOF
14795/* end confdefs.h. */
14796
14797/* Override any gcc2 internal prototype to avoid an error. */
14798#ifdef __cplusplus
14799extern "C"
14800#endif
14801/* We use char because int might match the return type of a gcc2
14802 builtin and then its argument prototype would still apply. */
14803char drand48 ();
14804int
14805main ()
14806{
14807drand48 ();
14808 ;
14809 return 0;
14810}
14811_ACEOF
14812rm -f conftest.$ac_objext conftest$ac_exeext
14813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14814 (eval $ac_link) 2>conftest.er1
a848cd7e 14815 ac_status=$?
ac1cb8d3
VS
14816 grep -v '^ *+' conftest.er1 >conftest.err
14817 rm -f conftest.er1
14818 cat conftest.err >&5
a848cd7e
SC
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } &&
6ebeb4c7 14821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; } &&
14827 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833 ac_cv_lib_cExt_drand48=yes
14834else
14835 echo "$as_me: failed program was:" >&5
14836sed 's/^/| /' conftest.$ac_ext >&5
14837
14838ac_cv_lib_cExt_drand48=no
14839fi
ac1cb8d3
VS
14840rm -f conftest.err conftest.$ac_objext \
14841 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14842LIBS=$ac_check_lib_save_LIBS
14843fi
14844echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14845echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14846if test $ac_cv_lib_cExt_drand48 = yes; then
14847 LIBS="$LIBS -lcExt"
14848fi
14849
14850 else
14851 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14852 fi
69120ee4
VZ
14853 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14854echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14855if test "${wx_cv_gccversion+set}" = set; then
14856 echo $ECHO_N "(cached) $ECHO_C" >&6
14857else
14858
391a765e
VS
14859 if test "$cross_compiling" = yes; then
14860 wx_cv_gccversion="EMX2"
14861
14862else
14863 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14864/* confdefs.h. */
14865_ACEOF
14866cat confdefs.h >>conftest.$ac_ext
14867cat >>conftest.$ac_ext <<_ACEOF
14868/* end confdefs.h. */
14869
391a765e 14870 #include <stdio.h>
a848cd7e 14871
391a765e
VS
14872 int main()
14873 {
14874 FILE *f=fopen("conftestval", "w");
14875 if (!f) exit(1);
14876 fprintf(f,
a848cd7e 14877 #if (__GNUC__ < 3)
391a765e
VS
14878 "EMX2"
14879 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14880 "EMX3"
14881 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14882 "Innotek5"
14883 #else
14884 "Innotek6"
a848cd7e 14885 #endif
391a765e
VS
14886 );
14887 exit(0);
14888 }
a848cd7e 14889
a848cd7e 14890_ACEOF
391a765e
VS
14891rm -f conftest$ac_exeext
14892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14893 (eval $ac_link) 2>&5
ac1cb8d3
VS
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 14896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
391a765e 14902 wx_cv_gccversion=`cat conftestval`
a848cd7e 14903else
391a765e
VS
14904 echo "$as_me: program exited with status $ac_status" >&5
14905echo "$as_me: failed program was:" >&5
a848cd7e
SC
14906sed 's/^/| /' conftest.$ac_ext >&5
14907
391a765e
VS
14908( exit $ac_status )
14909wx_cv_gccversion="EMX2"
a848cd7e 14910fi
391a765e 14911rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 14912fi
a848cd7e
SC
14913
14914fi
14915echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
14916echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 14917 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
14918 LIBS="$LIBS -lstdcpp"
14919 LDFLAGS="$LDFLAGS -Zsysv-signals"
14920 else
391a765e 14921 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 14922 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
14923 LDFLAGS="$LDFLAGS -Zsysv-signals"
14924 else
14925 LIBS="$LIBS -lstdc++"
14926 fi
14927 fi
94acd38e
DE
14928 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
14929 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
14930echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
14931 wxUSE_OMF=yes
2da0c077 14932 enable_omf=yes
a848cd7e
SC
14933 fi
14934 ;;
14935 *)
14936
14937
14938
14939 ac_ext=cc
14940ac_cpp='$CXXCPP $CPPFLAGS'
14941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14944
14945
95986553 14946 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
14947echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
14948if test "${ac_cv_string_strcasecmp+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14950else
14951
14952 cat >conftest.$ac_ext <<_ACEOF
14953/* confdefs.h. */
14954_ACEOF
14955cat confdefs.h >>conftest.$ac_ext
14956cat >>conftest.$ac_ext <<_ACEOF
14957/* end confdefs.h. */
14958
14959 #include <string.h>
14960
14961int
14962main ()
14963{
14964
14965 strcasecmp("foo", "bar");
14966
14967 ;
14968 return 0;
14969}
14970_ACEOF
14971rm -f conftest.$ac_objext conftest$ac_exeext
14972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14973 (eval $ac_link) 2>conftest.er1
a848cd7e 14974 ac_status=$?
ac1cb8d3
VS
14975 grep -v '^ *+' conftest.er1 >conftest.err
14976 rm -f conftest.er1
14977 cat conftest.err >&5
a848cd7e
SC
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } &&
6ebeb4c7 14980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; } &&
14986 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 ac_cv_string_strcasecmp=yes
14993else
14994 echo "$as_me: failed program was:" >&5
14995sed 's/^/| /' conftest.$ac_ext >&5
14996
14997ac_cv_string_strcasecmp=no
14998
14999fi
ac1cb8d3
VS
15000rm -f conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15002
15003fi
15004echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15005echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15006
15007 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15008 cat >>confdefs.h <<\_ACEOF
15009#define HAVE_STRCASECMP_IN_STRING_H 1
15010_ACEOF
15011
15012 else
15013 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15014echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15015if test "${ac_cv_strings_strcasecmp+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017else
15018
15019 cat >conftest.$ac_ext <<_ACEOF
15020/* confdefs.h. */
15021_ACEOF
15022cat confdefs.h >>conftest.$ac_ext
15023cat >>conftest.$ac_ext <<_ACEOF
15024/* end confdefs.h. */
15025
15026 #include <strings.h>
15027
15028int
15029main ()
15030{
15031
15032 strcasecmp("foo", "bar");
15033
15034 ;
15035 return 0;
15036}
15037_ACEOF
15038rm -f conftest.$ac_objext conftest$ac_exeext
15039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15040 (eval $ac_link) 2>conftest.er1
a848cd7e 15041 ac_status=$?
ac1cb8d3
VS
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
a848cd7e
SC
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
6ebeb4c7 15047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_strings_strcasecmp=yes
15060else
15061 echo "$as_me: failed program was:" >&5
15062sed 's/^/| /' conftest.$ac_ext >&5
15063
15064ac_cv_strings_strcasecmp=no
15065
15066fi
ac1cb8d3
VS
15067rm -f conftest.err conftest.$ac_objext \
15068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15069
15070fi
15071echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15072echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15073
0c3c69fc 15074 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15075 cat >>confdefs.h <<\_ACEOF
15076#define HAVE_STRCASECMP_IN_STRINGS_H 1
15077_ACEOF
15078
15079 else
15080 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15081echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15082 { (exit 1); exit 1; }; }
15083 fi
15084 fi
15085
15086 ac_ext=c
15087ac_cpp='$CPP $CPPFLAGS'
15088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15090ac_compiler_gnu=$ac_cv_c_compiler_gnu
15091
15092 ;;
15093esac
15094
15095
15096echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15097echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15098if test "${ac_cv_header_stdc+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15100else
15101 cat >conftest.$ac_ext <<_ACEOF
15102/* confdefs.h. */
15103_ACEOF
15104cat confdefs.h >>conftest.$ac_ext
15105cat >>conftest.$ac_ext <<_ACEOF
15106/* end confdefs.h. */
15107#include <stdlib.h>
15108#include <stdarg.h>
15109#include <string.h>
15110#include <float.h>
15111
15112int
15113main ()
15114{
15115
15116 ;
15117 return 0;
15118}
15119_ACEOF
15120rm -f conftest.$ac_objext
15121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15122 (eval $ac_compile) 2>conftest.er1
a848cd7e 15123 ac_status=$?
ac1cb8d3
VS
15124 grep -v '^ *+' conftest.er1 >conftest.err
15125 rm -f conftest.er1
15126 cat conftest.err >&5
a848cd7e
SC
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
6ebeb4c7 15129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15132 ac_status=$?
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; } &&
15135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; }; then
15141 ac_cv_header_stdc=yes
15142else
15143 echo "$as_me: failed program was:" >&5
15144sed 's/^/| /' conftest.$ac_ext >&5
15145
15146ac_cv_header_stdc=no
15147fi
ac1cb8d3 15148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15149
15150if test $ac_cv_header_stdc = yes; then
15151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15152 cat >conftest.$ac_ext <<_ACEOF
15153/* confdefs.h. */
15154_ACEOF
15155cat confdefs.h >>conftest.$ac_ext
15156cat >>conftest.$ac_ext <<_ACEOF
15157/* end confdefs.h. */
15158#include <string.h>
15159
15160_ACEOF
15161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15162 $EGREP "memchr" >/dev/null 2>&1; then
15163 :
15164else
15165 ac_cv_header_stdc=no
15166fi
15167rm -f conftest*
15168
15169fi
15170
15171if test $ac_cv_header_stdc = yes; then
15172 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15173 cat >conftest.$ac_ext <<_ACEOF
15174/* confdefs.h. */
15175_ACEOF
15176cat confdefs.h >>conftest.$ac_ext
15177cat >>conftest.$ac_ext <<_ACEOF
15178/* end confdefs.h. */
15179#include <stdlib.h>
15180
15181_ACEOF
15182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15183 $EGREP "free" >/dev/null 2>&1; then
15184 :
15185else
15186 ac_cv_header_stdc=no
15187fi
15188rm -f conftest*
15189
15190fi
15191
15192if test $ac_cv_header_stdc = yes; then
15193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15194 if test "$cross_compiling" = yes; then
15195 :
15196else
15197 cat >conftest.$ac_ext <<_ACEOF
15198/* confdefs.h. */
15199_ACEOF
15200cat confdefs.h >>conftest.$ac_ext
15201cat >>conftest.$ac_ext <<_ACEOF
15202/* end confdefs.h. */
15203#include <ctype.h>
15204#if ((' ' & 0x0FF) == 0x020)
15205# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15206# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15207#else
15208# define ISLOWER(c) \
ac1cb8d3
VS
15209 (('a' <= (c) && (c) <= 'i') \
15210 || ('j' <= (c) && (c) <= 'r') \
15211 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15212# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15213#endif
15214
15215#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15216int
15217main ()
15218{
15219 int i;
15220 for (i = 0; i < 256; i++)
15221 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15222 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15223 exit(2);
15224 exit (0);
15225}
15226_ACEOF
15227rm -f conftest$ac_exeext
15228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15229 (eval $ac_link) 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15235 ac_status=$?
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
15238 :
15239else
15240 echo "$as_me: program exited with status $ac_status" >&5
15241echo "$as_me: failed program was:" >&5
15242sed 's/^/| /' conftest.$ac_ext >&5
15243
15244( exit $ac_status )
15245ac_cv_header_stdc=no
15246fi
ac1cb8d3 15247rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15248fi
15249fi
15250fi
15251echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15252echo "${ECHO_T}$ac_cv_header_stdc" >&6
15253if test $ac_cv_header_stdc = yes; then
15254
15255cat >>confdefs.h <<\_ACEOF
15256#define STDC_HEADERS 1
15257_ACEOF
15258
15259fi
15260
15261# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15272 inttypes.h stdint.h unistd.h
a848cd7e
SC
15273do
15274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15275echo "$as_me:$LINENO: checking for $ac_header" >&5
15276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15277if eval "test \"\${$as_ac_Header+set}\" = set"; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279else
15280 cat >conftest.$ac_ext <<_ACEOF
15281/* confdefs.h. */
15282_ACEOF
15283cat confdefs.h >>conftest.$ac_ext
15284cat >>conftest.$ac_ext <<_ACEOF
15285/* end confdefs.h. */
15286$ac_includes_default
15287
15288#include <$ac_header>
15289_ACEOF
15290rm -f conftest.$ac_objext
15291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15292 (eval $ac_compile) 2>conftest.er1
a848cd7e 15293 ac_status=$?
ac1cb8d3
VS
15294 grep -v '^ *+' conftest.er1 >conftest.err
15295 rm -f conftest.er1
15296 cat conftest.err >&5
a848cd7e
SC
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } &&
6ebeb4c7 15299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15301 (eval $ac_try) 2>&5
15302 ac_status=$?
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; } &&
15305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15308 ac_status=$?
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311 eval "$as_ac_Header=yes"
15312else
15313 echo "$as_me: failed program was:" >&5
15314sed 's/^/| /' conftest.$ac_ext >&5
15315
15316eval "$as_ac_Header=no"
15317fi
ac1cb8d3 15318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15319fi
15320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15322if test `eval echo '${'$as_ac_Header'}'` = yes; then
15323 cat >>confdefs.h <<_ACEOF
15324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15325_ACEOF
15326
15327fi
15328
15329done
15330
15331
15332
15333for ac_header in stdlib.h
15334do
15335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15336if eval "test \"\${$as_ac_Header+set}\" = set"; then
15337 echo "$as_me:$LINENO: checking for $ac_header" >&5
15338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15339if eval "test \"\${$as_ac_Header+set}\" = set"; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15341fi
15342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15344else
15345 # Is the header compilable?
15346echo "$as_me:$LINENO: checking $ac_header usability" >&5
15347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15348cat >conftest.$ac_ext <<_ACEOF
15349/* confdefs.h. */
15350_ACEOF
15351cat confdefs.h >>conftest.$ac_ext
15352cat >>conftest.$ac_ext <<_ACEOF
15353/* end confdefs.h. */
15354$ac_includes_default
15355#include <$ac_header>
15356_ACEOF
15357rm -f conftest.$ac_objext
15358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15359 (eval $ac_compile) 2>conftest.er1
a848cd7e 15360 ac_status=$?
ac1cb8d3
VS
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
a848cd7e
SC
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
6ebeb4c7 15366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } &&
15372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 ac_header_compiler=yes
15379else
15380 echo "$as_me: failed program was:" >&5
15381sed 's/^/| /' conftest.$ac_ext >&5
15382
15383ac_header_compiler=no
15384fi
ac1cb8d3 15385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15387echo "${ECHO_T}$ac_header_compiler" >&6
15388
15389# Is the header present?
15390echo "$as_me:$LINENO: checking $ac_header presence" >&5
15391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15392cat >conftest.$ac_ext <<_ACEOF
15393/* confdefs.h. */
15394_ACEOF
15395cat confdefs.h >>conftest.$ac_ext
15396cat >>conftest.$ac_ext <<_ACEOF
15397/* end confdefs.h. */
15398#include <$ac_header>
15399_ACEOF
15400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15402 ac_status=$?
15403 grep -v '^ *+' conftest.er1 >conftest.err
15404 rm -f conftest.er1
15405 cat conftest.err >&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } >/dev/null; then
15408 if test -s conftest.err; then
15409 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15411 else
15412 ac_cpp_err=
15413 fi
15414else
15415 ac_cpp_err=yes
15416fi
15417if test -z "$ac_cpp_err"; then
15418 ac_header_preproc=yes
15419else
15420 echo "$as_me: failed program was:" >&5
15421sed 's/^/| /' conftest.$ac_ext >&5
15422
15423 ac_header_preproc=no
15424fi
15425rm -f conftest.err conftest.$ac_ext
15426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15427echo "${ECHO_T}$ac_header_preproc" >&6
15428
15429# So? What about this header?
ac1cb8d3
VS
15430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15431 yes:no: )
a848cd7e
SC
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15435echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15436 ac_header_preproc=yes
a848cd7e 15437 ;;
ac1cb8d3 15438 no:yes:* )
a848cd7e
SC
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15440echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15442echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15444echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15446echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15450echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15451 (
15452 cat <<\_ASBOX
ac1cb8d3
VS
15453## ----------------------------------------- ##
15454## Report this to wx-dev@lists.wxwidgets.org ##
15455## ----------------------------------------- ##
a848cd7e
SC
15456_ASBOX
15457 ) |
15458 sed "s/^/$as_me: WARNING: /" >&2
15459 ;;
15460esac
15461echo "$as_me:$LINENO: checking for $ac_header" >&5
15462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15463if eval "test \"\${$as_ac_Header+set}\" = set"; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15465else
ac1cb8d3 15466 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15467fi
15468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15470
15471fi
15472if test `eval echo '${'$as_ac_Header'}'` = yes; then
15473 cat >>confdefs.h <<_ACEOF
15474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15475_ACEOF
15476
15477fi
15478
15479done
15480
15481
15482for ac_header in malloc.h
15483do
15484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15485if eval "test \"\${$as_ac_Header+set}\" = set"; then
15486 echo "$as_me:$LINENO: checking for $ac_header" >&5
15487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15488if eval "test \"\${$as_ac_Header+set}\" = set"; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490fi
15491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15493else
15494 # Is the header compilable?
15495echo "$as_me:$LINENO: checking $ac_header usability" >&5
15496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15497cat >conftest.$ac_ext <<_ACEOF
15498/* confdefs.h. */
15499_ACEOF
15500cat confdefs.h >>conftest.$ac_ext
15501cat >>conftest.$ac_ext <<_ACEOF
15502/* end confdefs.h. */
15503$ac_includes_default
15504#include <$ac_header>
15505_ACEOF
15506rm -f conftest.$ac_objext
15507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15508 (eval $ac_compile) 2>conftest.er1
a848cd7e 15509 ac_status=$?
ac1cb8d3
VS
15510 grep -v '^ *+' conftest.er1 >conftest.err
15511 rm -f conftest.er1
15512 cat conftest.err >&5
a848cd7e
SC
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
6ebeb4c7 15515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }; then
15527 ac_header_compiler=yes
15528else
15529 echo "$as_me: failed program was:" >&5
15530sed 's/^/| /' conftest.$ac_ext >&5
15531
15532ac_header_compiler=no
15533fi
ac1cb8d3 15534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15535echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15536echo "${ECHO_T}$ac_header_compiler" >&6
15537
15538# Is the header present?
15539echo "$as_me:$LINENO: checking $ac_header presence" >&5
15540echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15541cat >conftest.$ac_ext <<_ACEOF
15542/* confdefs.h. */
15543_ACEOF
15544cat confdefs.h >>conftest.$ac_ext
15545cat >>conftest.$ac_ext <<_ACEOF
15546/* end confdefs.h. */
15547#include <$ac_header>
15548_ACEOF
15549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } >/dev/null; then
15557 if test -s conftest.err; then
15558 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15560 else
15561 ac_cpp_err=
15562 fi
15563else
15564 ac_cpp_err=yes
15565fi
15566if test -z "$ac_cpp_err"; then
15567 ac_header_preproc=yes
15568else
15569 echo "$as_me: failed program was:" >&5
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
15572 ac_header_preproc=no
15573fi
15574rm -f conftest.err conftest.$ac_ext
15575echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15576echo "${ECHO_T}$ac_header_preproc" >&6
15577
15578# So? What about this header?
ac1cb8d3
VS
15579case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15580 yes:no: )
a848cd7e
SC
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15582echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15584echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15585 ac_header_preproc=yes
a848cd7e 15586 ;;
ac1cb8d3 15587 no:yes:* )
a848cd7e
SC
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15589echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15593echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15595echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15597echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15599echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15600 (
15601 cat <<\_ASBOX
ac1cb8d3
VS
15602## ----------------------------------------- ##
15603## Report this to wx-dev@lists.wxwidgets.org ##
15604## ----------------------------------------- ##
a848cd7e
SC
15605_ASBOX
15606 ) |
15607 sed "s/^/$as_me: WARNING: /" >&2
15608 ;;
15609esac
15610echo "$as_me:$LINENO: checking for $ac_header" >&5
15611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15612if eval "test \"\${$as_ac_Header+set}\" = set"; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15614else
ac1cb8d3 15615 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15616fi
15617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15619
15620fi
15621if test `eval echo '${'$as_ac_Header'}'` = yes; then
15622 cat >>confdefs.h <<_ACEOF
15623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15624_ACEOF
15625
15626fi
15627
15628done
15629
15630
15631for ac_header in unistd.h
15632do
15633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15634if eval "test \"\${$as_ac_Header+set}\" = set"; then
15635 echo "$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
15639fi
15640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15642else
15643 # Is the header compilable?
15644echo "$as_me:$LINENO: checking $ac_header usability" >&5
15645echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15646cat >conftest.$ac_ext <<_ACEOF
15647/* confdefs.h. */
15648_ACEOF
15649cat confdefs.h >>conftest.$ac_ext
15650cat >>conftest.$ac_ext <<_ACEOF
15651/* end confdefs.h. */
15652$ac_includes_default
15653#include <$ac_header>
15654_ACEOF
15655rm -f conftest.$ac_objext
15656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15657 (eval $ac_compile) 2>conftest.er1
a848cd7e 15658 ac_status=$?
ac1cb8d3
VS
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
a848cd7e
SC
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } &&
6ebeb4c7 15664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; } &&
15670 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; }; then
15676 ac_header_compiler=yes
15677else
15678 echo "$as_me: failed program was:" >&5
15679sed 's/^/| /' conftest.$ac_ext >&5
15680
15681ac_header_compiler=no
15682fi
ac1cb8d3 15683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15684echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15685echo "${ECHO_T}$ac_header_compiler" >&6
15686
15687# Is the header present?
15688echo "$as_me:$LINENO: checking $ac_header presence" >&5
15689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15690cat >conftest.$ac_ext <<_ACEOF
15691/* confdefs.h. */
15692_ACEOF
15693cat confdefs.h >>conftest.$ac_ext
15694cat >>conftest.$ac_ext <<_ACEOF
15695/* end confdefs.h. */
15696#include <$ac_header>
15697_ACEOF
15698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15700 ac_status=$?
15701 grep -v '^ *+' conftest.er1 >conftest.err
15702 rm -f conftest.er1
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } >/dev/null; then
15706 if test -s conftest.err; then
15707 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15709 else
15710 ac_cpp_err=
15711 fi
15712else
15713 ac_cpp_err=yes
15714fi
15715if test -z "$ac_cpp_err"; then
15716 ac_header_preproc=yes
15717else
15718 echo "$as_me: failed program was:" >&5
15719sed 's/^/| /' conftest.$ac_ext >&5
15720
15721 ac_header_preproc=no
15722fi
15723rm -f conftest.err conftest.$ac_ext
15724echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15725echo "${ECHO_T}$ac_header_preproc" >&6
15726
15727# So? What about this header?
ac1cb8d3
VS
15728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15729 yes:no: )
a848cd7e
SC
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15734 ac_header_preproc=yes
a848cd7e 15735 ;;
ac1cb8d3 15736 no:yes:* )
a848cd7e
SC
15737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15740echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15744echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15749 (
15750 cat <<\_ASBOX
ac1cb8d3
VS
15751## ----------------------------------------- ##
15752## Report this to wx-dev@lists.wxwidgets.org ##
15753## ----------------------------------------- ##
a848cd7e
SC
15754_ASBOX
15755 ) |
15756 sed "s/^/$as_me: WARNING: /" >&2
15757 ;;
15758esac
15759echo "$as_me:$LINENO: checking for $ac_header" >&5
15760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15761if eval "test \"\${$as_ac_Header+set}\" = set"; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15763else
ac1cb8d3 15764 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15765fi
15766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15768
15769fi
15770if test `eval echo '${'$as_ac_Header'}'` = yes; then
15771 cat >>confdefs.h <<_ACEOF
15772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15773_ACEOF
15774
15775fi
15776
15777done
15778
15779
15780for ac_header in wchar.h
15781do
15782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15783if eval "test \"\${$as_ac_Header+set}\" = set"; then
15784 echo "$as_me:$LINENO: checking for $ac_header" >&5
15785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15786if eval "test \"\${$as_ac_Header+set}\" = set"; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15788fi
15789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15791else
15792 # Is the header compilable?
15793echo "$as_me:$LINENO: checking $ac_header usability" >&5
15794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15795cat >conftest.$ac_ext <<_ACEOF
15796/* confdefs.h. */
15797_ACEOF
15798cat confdefs.h >>conftest.$ac_ext
15799cat >>conftest.$ac_ext <<_ACEOF
15800/* end confdefs.h. */
15801$ac_includes_default
15802#include <$ac_header>
15803_ACEOF
15804rm -f conftest.$ac_objext
15805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15806 (eval $ac_compile) 2>conftest.er1
a848cd7e 15807 ac_status=$?
ac1cb8d3
VS
15808 grep -v '^ *+' conftest.er1 >conftest.err
15809 rm -f conftest.er1
15810 cat conftest.err >&5
a848cd7e
SC
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } &&
6ebeb4c7 15813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 ac_header_compiler=yes
15826else
15827 echo "$as_me: failed program was:" >&5
15828sed 's/^/| /' conftest.$ac_ext >&5
15829
15830ac_header_compiler=no
15831fi
ac1cb8d3 15832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15833echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15834echo "${ECHO_T}$ac_header_compiler" >&6
15835
15836# Is the header present?
15837echo "$as_me:$LINENO: checking $ac_header presence" >&5
15838echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15839cat >conftest.$ac_ext <<_ACEOF
15840/* confdefs.h. */
15841_ACEOF
15842cat confdefs.h >>conftest.$ac_ext
15843cat >>conftest.$ac_ext <<_ACEOF
15844/* end confdefs.h. */
15845#include <$ac_header>
15846_ACEOF
15847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15849 ac_status=$?
15850 grep -v '^ *+' conftest.er1 >conftest.err
15851 rm -f conftest.er1
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } >/dev/null; then
15855 if test -s conftest.err; then
15856 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15858 else
15859 ac_cpp_err=
15860 fi
15861else
15862 ac_cpp_err=yes
15863fi
15864if test -z "$ac_cpp_err"; then
15865 ac_header_preproc=yes
15866else
15867 echo "$as_me: failed program was:" >&5
15868sed 's/^/| /' conftest.$ac_ext >&5
15869
15870 ac_header_preproc=no
15871fi
15872rm -f conftest.err conftest.$ac_ext
15873echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15874echo "${ECHO_T}$ac_header_preproc" >&6
15875
15876# So? What about this header?
ac1cb8d3
VS
15877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15878 yes:no: )
a848cd7e
SC
15879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15880echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15882echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15883 ac_header_preproc=yes
a848cd7e 15884 ;;
ac1cb8d3 15885 no:yes:* )
a848cd7e
SC
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15887echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15889echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15891echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15893echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15895echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15897echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15898 (
15899 cat <<\_ASBOX
ac1cb8d3
VS
15900## ----------------------------------------- ##
15901## Report this to wx-dev@lists.wxwidgets.org ##
15902## ----------------------------------------- ##
a848cd7e
SC
15903_ASBOX
15904 ) |
15905 sed "s/^/$as_me: WARNING: /" >&2
15906 ;;
15907esac
15908echo "$as_me:$LINENO: checking for $ac_header" >&5
15909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15910if eval "test \"\${$as_ac_Header+set}\" = set"; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15912else
ac1cb8d3 15913 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15914fi
15915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15917
15918fi
15919if test `eval echo '${'$as_ac_Header'}'` = yes; then
15920 cat >>confdefs.h <<_ACEOF
15921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15922_ACEOF
15923
15924fi
15925
15926done
15927
15928
15929if test "$ac_cv_header_wchar_h" != "yes"; then
15930
15931for ac_header in wcstr.h
15932do
15933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15934if eval "test \"\${$as_ac_Header+set}\" = set"; then
15935 echo "$as_me:$LINENO: checking for $ac_header" >&5
15936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15937if eval "test \"\${$as_ac_Header+set}\" = set"; then
15938 echo $ECHO_N "(cached) $ECHO_C" >&6
15939fi
15940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15942else
15943 # Is the header compilable?
15944echo "$as_me:$LINENO: checking $ac_header usability" >&5
15945echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15946cat >conftest.$ac_ext <<_ACEOF
15947/* confdefs.h. */
15948_ACEOF
15949cat confdefs.h >>conftest.$ac_ext
15950cat >>conftest.$ac_ext <<_ACEOF
15951/* end confdefs.h. */
15952$ac_includes_default
15953#include <$ac_header>
15954_ACEOF
15955rm -f conftest.$ac_objext
15956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15957 (eval $ac_compile) 2>conftest.er1
a848cd7e 15958 ac_status=$?
ac1cb8d3
VS
15959 grep -v '^ *+' conftest.er1 >conftest.err
15960 rm -f conftest.er1
15961 cat conftest.err >&5
a848cd7e
SC
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } &&
6ebeb4c7 15964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966 (eval $ac_try) 2>&5
15967 ac_status=$?
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; } &&
15970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15973 ac_status=$?
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; }; then
15976 ac_header_compiler=yes
15977else
15978 echo "$as_me: failed program was:" >&5
15979sed 's/^/| /' conftest.$ac_ext >&5
15980
15981ac_header_compiler=no
15982fi
ac1cb8d3 15983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15984echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15985echo "${ECHO_T}$ac_header_compiler" >&6
15986
15987# Is the header present?
15988echo "$as_me:$LINENO: checking $ac_header presence" >&5
15989echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15990cat >conftest.$ac_ext <<_ACEOF
15991/* confdefs.h. */
15992_ACEOF
15993cat confdefs.h >>conftest.$ac_ext
15994cat >>conftest.$ac_ext <<_ACEOF
15995/* end confdefs.h. */
15996#include <$ac_header>
15997_ACEOF
15998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } >/dev/null; then
16006 if test -s conftest.err; then
16007 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16009 else
16010 ac_cpp_err=
16011 fi
16012else
16013 ac_cpp_err=yes
16014fi
16015if test -z "$ac_cpp_err"; then
16016 ac_header_preproc=yes
16017else
16018 echo "$as_me: failed program was:" >&5
16019sed 's/^/| /' conftest.$ac_ext >&5
16020
16021 ac_header_preproc=no
16022fi
16023rm -f conftest.err conftest.$ac_ext
16024echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16025echo "${ECHO_T}$ac_header_preproc" >&6
16026
16027# So? What about this header?
ac1cb8d3
VS
16028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16029 yes:no: )
a848cd7e
SC
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16031echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16033echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16034 ac_header_preproc=yes
a848cd7e 16035 ;;
ac1cb8d3 16036 no:yes:* )
a848cd7e
SC
16037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16038echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16040echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16042echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16044echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16046echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16048echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16049 (
16050 cat <<\_ASBOX
ac1cb8d3
VS
16051## ----------------------------------------- ##
16052## Report this to wx-dev@lists.wxwidgets.org ##
16053## ----------------------------------------- ##
a848cd7e
SC
16054_ASBOX
16055 ) |
16056 sed "s/^/$as_me: WARNING: /" >&2
16057 ;;
16058esac
16059echo "$as_me:$LINENO: checking for $ac_header" >&5
16060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16061if eval "test \"\${$as_ac_Header+set}\" = set"; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16063else
ac1cb8d3 16064 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16065fi
16066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16068
16069fi
16070if test `eval echo '${'$as_ac_Header'}'` = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16073_ACEOF
16074
16075fi
16076
16077done
16078
16079fi
16080
16081
16082for ac_header in fnmatch.h
16083do
16084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16085if eval "test \"\${$as_ac_Header+set}\" = set"; then
16086 echo "$as_me:$LINENO: checking for $ac_header" >&5
16087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16088if eval "test \"\${$as_ac_Header+set}\" = set"; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090fi
16091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16093else
16094 # Is the header compilable?
16095echo "$as_me:$LINENO: checking $ac_header usability" >&5
16096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16097cat >conftest.$ac_ext <<_ACEOF
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
16103$ac_includes_default
16104#include <$ac_header>
16105_ACEOF
16106rm -f conftest.$ac_objext
16107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16108 (eval $ac_compile) 2>conftest.er1
a848cd7e 16109 ac_status=$?
ac1cb8d3
VS
16110 grep -v '^ *+' conftest.er1 >conftest.err
16111 rm -f conftest.er1
16112 cat conftest.err >&5
a848cd7e
SC
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
6ebeb4c7 16115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; } &&
16121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123 (eval $ac_try) 2>&5
16124 ac_status=$?
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; }; then
16127 ac_header_compiler=yes
16128else
16129 echo "$as_me: failed program was:" >&5
16130sed 's/^/| /' conftest.$ac_ext >&5
16131
16132ac_header_compiler=no
16133fi
ac1cb8d3 16134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16136echo "${ECHO_T}$ac_header_compiler" >&6
16137
16138# Is the header present?
16139echo "$as_me:$LINENO: checking $ac_header presence" >&5
16140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16141cat >conftest.$ac_ext <<_ACEOF
16142/* confdefs.h. */
16143_ACEOF
16144cat confdefs.h >>conftest.$ac_ext
16145cat >>conftest.$ac_ext <<_ACEOF
16146/* end confdefs.h. */
16147#include <$ac_header>
16148_ACEOF
16149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } >/dev/null; then
16157 if test -s conftest.err; then
16158 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16160 else
16161 ac_cpp_err=
16162 fi
16163else
16164 ac_cpp_err=yes
16165fi
16166if test -z "$ac_cpp_err"; then
16167 ac_header_preproc=yes
16168else
16169 echo "$as_me: failed program was:" >&5
16170sed 's/^/| /' conftest.$ac_ext >&5
16171
16172 ac_header_preproc=no
16173fi
16174rm -f conftest.err conftest.$ac_ext
16175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16176echo "${ECHO_T}$ac_header_preproc" >&6
16177
16178# So? What about this header?
ac1cb8d3
VS
16179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16180 yes:no: )
a848cd7e
SC
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16185 ac_header_preproc=yes
a848cd7e 16186 ;;
ac1cb8d3 16187 no:yes:* )
a848cd7e
SC
16188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16200 (
16201 cat <<\_ASBOX
ac1cb8d3
VS
16202## ----------------------------------------- ##
16203## Report this to wx-dev@lists.wxwidgets.org ##
16204## ----------------------------------------- ##
a848cd7e
SC
16205_ASBOX
16206 ) |
16207 sed "s/^/$as_me: WARNING: /" >&2
16208 ;;
16209esac
16210echo "$as_me:$LINENO: checking for $ac_header" >&5
16211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16212if eval "test \"\${$as_ac_Header+set}\" = set"; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16214else
ac1cb8d3 16215 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16216fi
16217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16219
16220fi
16221if test `eval echo '${'$as_ac_Header'}'` = yes; then
16222 cat >>confdefs.h <<_ACEOF
16223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16224_ACEOF
16225
16226fi
16227
16228done
16229
16230
a848cd7e
SC
16231
16232for ac_header in langinfo.h
16233do
16234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16235if eval "test \"\${$as_ac_Header+set}\" = set"; then
16236 echo "$as_me:$LINENO: checking for $ac_header" >&5
16237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16238if eval "test \"\${$as_ac_Header+set}\" = set"; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16240fi
16241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16243else
16244 # Is the header compilable?
16245echo "$as_me:$LINENO: checking $ac_header usability" >&5
16246echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16247cat >conftest.$ac_ext <<_ACEOF
16248/* confdefs.h. */
16249_ACEOF
16250cat confdefs.h >>conftest.$ac_ext
16251cat >>conftest.$ac_ext <<_ACEOF
16252/* end confdefs.h. */
16253$ac_includes_default
16254#include <$ac_header>
16255_ACEOF
16256rm -f conftest.$ac_objext
16257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16258 (eval $ac_compile) 2>conftest.er1
a848cd7e 16259 ac_status=$?
ac1cb8d3
VS
16260 grep -v '^ *+' conftest.er1 >conftest.err
16261 rm -f conftest.er1
16262 cat conftest.err >&5
a848cd7e
SC
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } &&
6ebeb4c7 16265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_header_compiler=yes
16278else
16279 echo "$as_me: failed program was:" >&5
16280sed 's/^/| /' conftest.$ac_ext >&5
16281
16282ac_header_compiler=no
16283fi
ac1cb8d3 16284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16286echo "${ECHO_T}$ac_header_compiler" >&6
16287
16288# Is the header present?
16289echo "$as_me:$LINENO: checking $ac_header presence" >&5
16290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16291cat >conftest.$ac_ext <<_ACEOF
16292/* confdefs.h. */
16293_ACEOF
16294cat confdefs.h >>conftest.$ac_ext
16295cat >>conftest.$ac_ext <<_ACEOF
16296/* end confdefs.h. */
16297#include <$ac_header>
16298_ACEOF
16299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16301 ac_status=$?
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } >/dev/null; then
16307 if test -s conftest.err; then
16308 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16310 else
16311 ac_cpp_err=
16312 fi
16313else
16314 ac_cpp_err=yes
16315fi
16316if test -z "$ac_cpp_err"; then
16317 ac_header_preproc=yes
16318else
16319 echo "$as_me: failed program was:" >&5
16320sed 's/^/| /' conftest.$ac_ext >&5
16321
16322 ac_header_preproc=no
16323fi
16324rm -f conftest.err conftest.$ac_ext
16325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16326echo "${ECHO_T}$ac_header_preproc" >&6
16327
16328# So? What about this header?
ac1cb8d3
VS
16329case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16330 yes:no: )
a848cd7e
SC
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16332echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16334echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16335 ac_header_preproc=yes
a848cd7e 16336 ;;
ac1cb8d3 16337 no:yes:* )
a848cd7e
SC
16338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16339echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16341echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16343echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16345echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16347echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16349echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16350 (
16351 cat <<\_ASBOX
ac1cb8d3
VS
16352## ----------------------------------------- ##
16353## Report this to wx-dev@lists.wxwidgets.org ##
16354## ----------------------------------------- ##
a848cd7e
SC
16355_ASBOX
16356 ) |
16357 sed "s/^/$as_me: WARNING: /" >&2
16358 ;;
16359esac
16360echo "$as_me:$LINENO: checking for $ac_header" >&5
16361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16362if eval "test \"\${$as_ac_Header+set}\" = set"; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16364else
ac1cb8d3 16365 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16366fi
16367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16369
16370fi
16371if test `eval echo '${'$as_ac_Header'}'` = yes; then
16372 cat >>confdefs.h <<_ACEOF
16373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16374_ACEOF
16375
16376fi
16377
16378done
16379
16380
16381case "${host}" in
16382 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16383 if test $ac_cv_header_langinfo_h = "yes" \
16384 -a \( "$wx_cv_gccversion" = "EMX2" \
16385 -o "$wx_cv_gccversion" = "EMX3" \
16386 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16387 LIBS="$LIBS -lintl"
16388 fi
16389 ;;
16390esac
16391
a848cd7e
SC
16392
16393echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16394echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16395if test "${ac_cv_c_const+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16397else
16398 cat >conftest.$ac_ext <<_ACEOF
16399/* confdefs.h. */
16400_ACEOF
16401cat confdefs.h >>conftest.$ac_ext
16402cat >>conftest.$ac_ext <<_ACEOF
16403/* end confdefs.h. */
16404
16405int
16406main ()
16407{
16408/* FIXME: Include the comments suggested by Paul. */
16409#ifndef __cplusplus
16410 /* Ultrix mips cc rejects this. */
16411 typedef int charset[2];
16412 const charset x;
16413 /* SunOS 4.1.1 cc rejects this. */
16414 char const *const *ccp;
16415 char **p;
16416 /* NEC SVR4.0.2 mips cc rejects this. */
16417 struct point {int x, y;};
16418 static struct point const zero = {0,0};
16419 /* AIX XL C 1.02.0.0 rejects this.
16420 It does not let you subtract one const X* pointer from another in
16421 an arm of an if-expression whose if-part is not a constant
16422 expression */
16423 const char *g = "string";
16424 ccp = &g + (g ? g-g : 0);
16425 /* HPUX 7.0 cc rejects these. */
16426 ++ccp;
16427 p = (char**) ccp;
16428 ccp = (char const *const *) p;
16429 { /* SCO 3.2v4 cc rejects this. */
16430 char *t;
16431 char const *s = 0 ? (char *) 0 : (char const *) 0;
16432
16433 *t++ = 0;
16434 }
16435 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16436 int x[] = {25, 17};
16437 const int *foo = &x[0];
16438 ++foo;
16439 }
16440 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16441 typedef const int *iptr;
16442 iptr p = 0;
16443 ++p;
16444 }
16445 { /* AIX XL C 1.02.0.0 rejects this saying
16446 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16447 struct s { int j; const int *ap[3]; };
16448 struct s *b; b->j = 5;
16449 }
16450 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16451 const int foo = 10;
16452 }
16453#endif
16454
16455 ;
16456 return 0;
16457}
16458_ACEOF
16459rm -f conftest.$ac_objext
16460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16461 (eval $ac_compile) 2>conftest.er1
a848cd7e 16462 ac_status=$?
ac1cb8d3
VS
16463 grep -v '^ *+' conftest.er1 >conftest.err
16464 rm -f conftest.er1
16465 cat conftest.err >&5
a848cd7e
SC
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
6ebeb4c7 16468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; } &&
16474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; }; then
16480 ac_cv_c_const=yes
16481else
16482 echo "$as_me: failed program was:" >&5
16483sed 's/^/| /' conftest.$ac_ext >&5
16484
16485ac_cv_c_const=no
16486fi
ac1cb8d3 16487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16488fi
16489echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16490echo "${ECHO_T}$ac_cv_c_const" >&6
16491if test $ac_cv_c_const = no; then
16492
16493cat >>confdefs.h <<\_ACEOF
16494#define const
16495_ACEOF
16496
16497fi
16498
16499echo "$as_me:$LINENO: checking for inline" >&5
16500echo $ECHO_N "checking for inline... $ECHO_C" >&6
16501if test "${ac_cv_c_inline+set}" = set; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16503else
16504 ac_cv_c_inline=no
16505for ac_kw in inline __inline__ __inline; do
16506 cat >conftest.$ac_ext <<_ACEOF
16507/* confdefs.h. */
16508_ACEOF
16509cat confdefs.h >>conftest.$ac_ext
16510cat >>conftest.$ac_ext <<_ACEOF
16511/* end confdefs.h. */
16512#ifndef __cplusplus
16513typedef int foo_t;
16514static $ac_kw foo_t static_foo () {return 0; }
16515$ac_kw foo_t foo () {return 0; }
16516#endif
16517
16518_ACEOF
16519rm -f conftest.$ac_objext
16520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16521 (eval $ac_compile) 2>conftest.er1
a848cd7e 16522 ac_status=$?
ac1cb8d3
VS
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
a848cd7e
SC
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
6ebeb4c7 16528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; } &&
16534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 ac_cv_c_inline=$ac_kw; break
16541else
16542 echo "$as_me: failed program was:" >&5
16543sed 's/^/| /' conftest.$ac_ext >&5
16544
16545fi
ac1cb8d3 16546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16547done
16548
16549fi
16550echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16551echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16552
16553
a848cd7e
SC
16554case $ac_cv_c_inline in
16555 inline | yes) ;;
ac1cb8d3
VS
16556 *)
16557 case $ac_cv_c_inline in
16558 no) ac_val=;;
16559 *) ac_val=$ac_cv_c_inline;;
16560 esac
16561 cat >>confdefs.h <<_ACEOF
16562#ifndef __cplusplus
16563#define inline $ac_val
16564#endif
de59c161 16565_ACEOF
ac1cb8d3 16566 ;;
a848cd7e
SC
16567esac
16568
16569
16570echo "$as_me:$LINENO: checking for char" >&5
16571echo $ECHO_N "checking for char... $ECHO_C" >&6
16572if test "${ac_cv_type_char+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16574else
16575 cat >conftest.$ac_ext <<_ACEOF
16576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h. */
16581$ac_includes_default
16582int
16583main ()
16584{
16585if ((char *) 0)
16586 return 0;
16587if (sizeof (char))
16588 return 0;
16589 ;
16590 return 0;
16591}
16592_ACEOF
16593rm -f conftest.$ac_objext
16594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16595 (eval $ac_compile) 2>conftest.er1
a848cd7e 16596 ac_status=$?
ac1cb8d3
VS
16597 grep -v '^ *+' conftest.er1 >conftest.err
16598 rm -f conftest.er1
16599 cat conftest.err >&5
a848cd7e
SC
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } &&
6ebeb4c7 16602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; } &&
16608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ac_cv_type_char=yes
16615else
16616 echo "$as_me: failed program was:" >&5
16617sed 's/^/| /' conftest.$ac_ext >&5
16618
16619ac_cv_type_char=no
16620fi
ac1cb8d3 16621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16622fi
16623echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16624echo "${ECHO_T}$ac_cv_type_char" >&6
16625
16626echo "$as_me:$LINENO: checking size of char" >&5
16627echo $ECHO_N "checking size of char... $ECHO_C" >&6
16628if test "${ac_cv_sizeof_char+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630else
16631 if test "$ac_cv_type_char" = yes; then
16632 # The cast to unsigned long works around a bug in the HP C Compiler
16633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16635 # This bug is HP SR number 8606223364.
16636 if test "$cross_compiling" = yes; then
16637 # Depending upon the size, compute the lo and hi bounds.
16638cat >conftest.$ac_ext <<_ACEOF
16639/* confdefs.h. */
16640_ACEOF
16641cat confdefs.h >>conftest.$ac_ext
16642cat >>conftest.$ac_ext <<_ACEOF
16643/* end confdefs.h. */
16644$ac_includes_default
16645int
16646main ()
16647{
16648static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16649test_array [0] = 0
16650
16651 ;
16652 return 0;
16653}
16654_ACEOF
16655rm -f conftest.$ac_objext
16656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16657 (eval $ac_compile) 2>conftest.er1
a848cd7e 16658 ac_status=$?
ac1cb8d3
VS
16659 grep -v '^ *+' conftest.er1 >conftest.err
16660 rm -f conftest.er1
16661 cat conftest.err >&5
a848cd7e
SC
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
6ebeb4c7 16664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_lo=0 ac_mid=0
16677 while :; do
16678 cat >conftest.$ac_ext <<_ACEOF
16679/* confdefs.h. */
16680_ACEOF
16681cat confdefs.h >>conftest.$ac_ext
16682cat >>conftest.$ac_ext <<_ACEOF
16683/* end confdefs.h. */
16684$ac_includes_default
16685int
16686main ()
16687{
16688static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16689test_array [0] = 0
16690
16691 ;
16692 return 0;
16693}
16694_ACEOF
16695rm -f conftest.$ac_objext
16696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16697 (eval $ac_compile) 2>conftest.er1
a848cd7e 16698 ac_status=$?
ac1cb8d3
VS
16699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
a848cd7e
SC
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
6ebeb4c7 16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; } &&
16710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_hi=$ac_mid; break
16717else
16718 echo "$as_me: failed program was:" >&5
16719sed 's/^/| /' conftest.$ac_ext >&5
16720
16721ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16722 if test $ac_lo -le $ac_mid; then
16723 ac_lo= ac_hi=
16724 break
16725 fi
16726 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16727fi
ac1cb8d3 16728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16729 done
16730else
16731 echo "$as_me: failed program was:" >&5
16732sed 's/^/| /' conftest.$ac_ext >&5
16733
16734cat >conftest.$ac_ext <<_ACEOF
16735/* confdefs.h. */
16736_ACEOF
16737cat confdefs.h >>conftest.$ac_ext
16738cat >>conftest.$ac_ext <<_ACEOF
16739/* end confdefs.h. */
16740$ac_includes_default
16741int
16742main ()
16743{
16744static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16745test_array [0] = 0
16746
16747 ;
16748 return 0;
16749}
16750_ACEOF
16751rm -f conftest.$ac_objext
16752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16753 (eval $ac_compile) 2>conftest.er1
a848cd7e 16754 ac_status=$?
ac1cb8d3
VS
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
a848cd7e
SC
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
6ebeb4c7 16760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; } &&
16766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768 (eval $ac_try) 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; }; then
16772 ac_hi=-1 ac_mid=-1
16773 while :; do
16774 cat >conftest.$ac_ext <<_ACEOF
16775/* confdefs.h. */
16776_ACEOF
16777cat confdefs.h >>conftest.$ac_ext
16778cat >>conftest.$ac_ext <<_ACEOF
16779/* end confdefs.h. */
16780$ac_includes_default
16781int
16782main ()
16783{
16784static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16785test_array [0] = 0
16786
16787 ;
16788 return 0;
16789}
16790_ACEOF
16791rm -f conftest.$ac_objext
16792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16793 (eval $ac_compile) 2>conftest.er1
a848cd7e 16794 ac_status=$?
ac1cb8d3
VS
16795 grep -v '^ *+' conftest.er1 >conftest.err
16796 rm -f conftest.er1
16797 cat conftest.err >&5
a848cd7e
SC
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } &&
6ebeb4c7 16800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16803 ac_status=$?
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; } &&
16806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; }; then
16812 ac_lo=$ac_mid; break
16813else
16814 echo "$as_me: failed program was:" >&5
16815sed 's/^/| /' conftest.$ac_ext >&5
16816
16817ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16818 if test $ac_mid -le $ac_hi; then
16819 ac_lo= ac_hi=
16820 break
16821 fi
16822 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16823fi
ac1cb8d3 16824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16825 done
16826else
16827 echo "$as_me: failed program was:" >&5
16828sed 's/^/| /' conftest.$ac_ext >&5
16829
16830ac_lo= ac_hi=
16831fi
ac1cb8d3 16832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16833fi
ac1cb8d3 16834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16835# Binary search between lo and hi bounds.
16836while test "x$ac_lo" != "x$ac_hi"; do
16837 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16838 cat >conftest.$ac_ext <<_ACEOF
16839/* confdefs.h. */
16840_ACEOF
16841cat confdefs.h >>conftest.$ac_ext
16842cat >>conftest.$ac_ext <<_ACEOF
16843/* end confdefs.h. */
16844$ac_includes_default
16845int
16846main ()
16847{
16848static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16849test_array [0] = 0
16850
16851 ;
16852 return 0;
16853}
16854_ACEOF
16855rm -f conftest.$ac_objext
16856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16857 (eval $ac_compile) 2>conftest.er1
a848cd7e 16858 ac_status=$?
ac1cb8d3
VS
16859 grep -v '^ *+' conftest.er1 >conftest.err
16860 rm -f conftest.er1
16861 cat conftest.err >&5
a848cd7e
SC
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } &&
6ebeb4c7 16864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; } &&
16870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_hi=$ac_mid
16877else
16878 echo "$as_me: failed program was:" >&5
16879sed 's/^/| /' conftest.$ac_ext >&5
16880
16881ac_lo=`expr '(' $ac_mid ')' + 1`
16882fi
ac1cb8d3 16883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16884done
16885case $ac_lo in
16886?*) ac_cv_sizeof_char=$ac_lo;;
16887'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16888See \`config.log' for more details." >&5
16889echo "$as_me: error: cannot compute sizeof (char), 77
16890See \`config.log' for more details." >&2;}
16891 { (exit 1); exit 1; }; } ;;
16892esac
16893else
16894 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16895 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16896echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16897 { (exit 1); exit 1; }; }
16898else
16899 cat >conftest.$ac_ext <<_ACEOF
16900/* confdefs.h. */
16901_ACEOF
16902cat confdefs.h >>conftest.$ac_ext
16903cat >>conftest.$ac_ext <<_ACEOF
16904/* end confdefs.h. */
16905$ac_includes_default
16906long longval () { return (long) (sizeof (char)); }
16907unsigned long ulongval () { return (long) (sizeof (char)); }
16908#include <stdio.h>
16909#include <stdlib.h>
16910int
16911main ()
16912{
16913
16914 FILE *f = fopen ("conftest.val", "w");
16915 if (! f)
16916 exit (1);
16917 if (((long) (sizeof (char))) < 0)
16918 {
16919 long i = longval ();
16920 if (i != ((long) (sizeof (char))))
16921 exit (1);
16922 fprintf (f, "%ld\n", i);
16923 }
16924 else
16925 {
16926 unsigned long i = ulongval ();
16927 if (i != ((long) (sizeof (char))))
16928 exit (1);
16929 fprintf (f, "%lu\n", i);
16930 }
16931 exit (ferror (f) || fclose (f) != 0);
16932
16933 ;
16934 return 0;
16935}
16936_ACEOF
16937rm -f conftest$ac_exeext
16938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939 (eval $ac_link) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 ac_cv_sizeof_char=`cat conftest.val`
16949else
16950 echo "$as_me: program exited with status $ac_status" >&5
16951echo "$as_me: failed program was:" >&5
16952sed 's/^/| /' conftest.$ac_ext >&5
16953
16954( exit $ac_status )
16955{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16956See \`config.log' for more details." >&5
16957echo "$as_me: error: cannot compute sizeof (char), 77
16958See \`config.log' for more details." >&2;}
16959 { (exit 1); exit 1; }; }
16960fi
ac1cb8d3 16961rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16962fi
16963fi
16964rm -f conftest.val
16965else
16966 ac_cv_sizeof_char=0
16967fi
16968fi
16969echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16970echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16971cat >>confdefs.h <<_ACEOF
16972#define SIZEOF_CHAR $ac_cv_sizeof_char
16973_ACEOF
16974
16975
16976echo "$as_me:$LINENO: checking for short" >&5
16977echo $ECHO_N "checking for short... $ECHO_C" >&6
16978if test "${ac_cv_type_short+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16980else
16981 cat >conftest.$ac_ext <<_ACEOF
16982/* confdefs.h. */
16983_ACEOF
16984cat confdefs.h >>conftest.$ac_ext
16985cat >>conftest.$ac_ext <<_ACEOF
16986/* end confdefs.h. */
16987$ac_includes_default
16988int
16989main ()
16990{
16991if ((short *) 0)
16992 return 0;
16993if (sizeof (short))
16994 return 0;
16995 ;
16996 return 0;
16997}
16998_ACEOF
16999rm -f conftest.$ac_objext
17000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17001 (eval $ac_compile) 2>conftest.er1
a848cd7e 17002 ac_status=$?
ac1cb8d3
VS
17003 grep -v '^ *+' conftest.er1 >conftest.err
17004 rm -f conftest.er1
17005 cat conftest.err >&5
a848cd7e
SC
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } &&
6ebeb4c7 17008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17010 (eval $ac_try) 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; } &&
17014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; }; then
17020 ac_cv_type_short=yes
17021else
17022 echo "$as_me: failed program was:" >&5
17023sed 's/^/| /' conftest.$ac_ext >&5
17024
17025ac_cv_type_short=no
17026fi
ac1cb8d3 17027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17028fi
17029echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17030echo "${ECHO_T}$ac_cv_type_short" >&6
17031
17032echo "$as_me:$LINENO: checking size of short" >&5
17033echo $ECHO_N "checking size of short... $ECHO_C" >&6
17034if test "${ac_cv_sizeof_short+set}" = set; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17036else
17037 if test "$ac_cv_type_short" = yes; then
17038 # The cast to unsigned long works around a bug in the HP C Compiler
17039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17041 # This bug is HP SR number 8606223364.
17042 if test "$cross_compiling" = yes; then
17043 # Depending upon the size, compute the lo and hi bounds.
17044cat >conftest.$ac_ext <<_ACEOF
17045/* confdefs.h. */
17046_ACEOF
17047cat confdefs.h >>conftest.$ac_ext
17048cat >>conftest.$ac_ext <<_ACEOF
17049/* end confdefs.h. */
17050$ac_includes_default
17051int
17052main ()
17053{
17054static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17055test_array [0] = 0
17056
17057 ;
17058 return 0;
17059}
17060_ACEOF
17061rm -f conftest.$ac_objext
17062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17063 (eval $ac_compile) 2>conftest.er1
a848cd7e 17064 ac_status=$?
ac1cb8d3
VS
17065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
a848cd7e
SC
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
6ebeb4c7 17070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072 (eval $ac_try) 2>&5
17073 ac_status=$?
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; } &&
17076 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; }; then
17082 ac_lo=0 ac_mid=0
17083 while :; do
17084 cat >conftest.$ac_ext <<_ACEOF
17085/* confdefs.h. */
17086_ACEOF
17087cat confdefs.h >>conftest.$ac_ext
17088cat >>conftest.$ac_ext <<_ACEOF
17089/* end confdefs.h. */
17090$ac_includes_default
17091int
17092main ()
17093{
17094static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17095test_array [0] = 0
17096
17097 ;
17098 return 0;
17099}
17100_ACEOF
17101rm -f conftest.$ac_objext
17102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17103 (eval $ac_compile) 2>conftest.er1
a848cd7e 17104 ac_status=$?
ac1cb8d3
VS
17105 grep -v '^ *+' conftest.er1 >conftest.err
17106 rm -f conftest.er1
17107 cat conftest.err >&5
a848cd7e
SC
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } &&
6ebeb4c7 17110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; } &&
17116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17122 ac_hi=$ac_mid; break
17123else
17124 echo "$as_me: failed program was:" >&5
17125sed 's/^/| /' conftest.$ac_ext >&5
17126
17127ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17128 if test $ac_lo -le $ac_mid; then
17129 ac_lo= ac_hi=
17130 break
17131 fi
17132 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17133fi
ac1cb8d3 17134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17135 done
17136else
17137 echo "$as_me: failed program was:" >&5
17138sed 's/^/| /' conftest.$ac_ext >&5
17139
17140cat >conftest.$ac_ext <<_ACEOF
17141/* confdefs.h. */
17142_ACEOF
17143cat confdefs.h >>conftest.$ac_ext
17144cat >>conftest.$ac_ext <<_ACEOF
17145/* end confdefs.h. */
17146$ac_includes_default
17147int
17148main ()
17149{
17150static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17151test_array [0] = 0
17152
17153 ;
17154 return 0;
17155}
17156_ACEOF
17157rm -f conftest.$ac_objext
17158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17159 (eval $ac_compile) 2>conftest.er1
a848cd7e 17160 ac_status=$?
ac1cb8d3
VS
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
a848cd7e
SC
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
6ebeb4c7 17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_hi=-1 ac_mid=-1
17179 while :; do
17180 cat >conftest.$ac_ext <<_ACEOF
17181/* confdefs.h. */
17182_ACEOF
17183cat confdefs.h >>conftest.$ac_ext
17184cat >>conftest.$ac_ext <<_ACEOF
17185/* end confdefs.h. */
17186$ac_includes_default
17187int
17188main ()
17189{
17190static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17191test_array [0] = 0
17192
17193 ;
17194 return 0;
17195}
17196_ACEOF
17197rm -f conftest.$ac_objext
17198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17199 (eval $ac_compile) 2>conftest.er1
a848cd7e 17200 ac_status=$?
ac1cb8d3
VS
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
a848cd7e
SC
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
6ebeb4c7 17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; } &&
17212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 ac_lo=$ac_mid; break
17219else
17220 echo "$as_me: failed program was:" >&5
17221sed 's/^/| /' conftest.$ac_ext >&5
17222
17223ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17224 if test $ac_mid -le $ac_hi; then
17225 ac_lo= ac_hi=
17226 break
17227 fi
17228 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17229fi
ac1cb8d3 17230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17231 done
17232else
17233 echo "$as_me: failed program was:" >&5
17234sed 's/^/| /' conftest.$ac_ext >&5
17235
17236ac_lo= ac_hi=
17237fi
ac1cb8d3 17238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17239fi
ac1cb8d3 17240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17241# Binary search between lo and hi bounds.
17242while test "x$ac_lo" != "x$ac_hi"; do
17243 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17244 cat >conftest.$ac_ext <<_ACEOF
17245/* confdefs.h. */
17246_ACEOF
17247cat confdefs.h >>conftest.$ac_ext
17248cat >>conftest.$ac_ext <<_ACEOF
17249/* end confdefs.h. */
17250$ac_includes_default
17251int
17252main ()
17253{
17254static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17255test_array [0] = 0
17256
17257 ;
17258 return 0;
17259}
17260_ACEOF
17261rm -f conftest.$ac_objext
17262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17263 (eval $ac_compile) 2>conftest.er1
a848cd7e 17264 ac_status=$?
ac1cb8d3
VS
17265 grep -v '^ *+' conftest.er1 >conftest.err
17266 rm -f conftest.er1
17267 cat conftest.err >&5
a848cd7e
SC
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
6ebeb4c7 17270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; } &&
17276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 ac_hi=$ac_mid
17283else
17284 echo "$as_me: failed program was:" >&5
17285sed 's/^/| /' conftest.$ac_ext >&5
17286
17287ac_lo=`expr '(' $ac_mid ')' + 1`
17288fi
ac1cb8d3 17289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17290done
17291case $ac_lo in
17292?*) ac_cv_sizeof_short=$ac_lo;;
17293'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17294See \`config.log' for more details." >&5
17295echo "$as_me: error: cannot compute sizeof (short), 77
17296See \`config.log' for more details." >&2;}
17297 { (exit 1); exit 1; }; } ;;
17298esac
17299else
17300 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17301 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17302echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17303 { (exit 1); exit 1; }; }
17304else
17305 cat >conftest.$ac_ext <<_ACEOF
17306/* confdefs.h. */
17307_ACEOF
17308cat confdefs.h >>conftest.$ac_ext
17309cat >>conftest.$ac_ext <<_ACEOF
17310/* end confdefs.h. */
17311$ac_includes_default
17312long longval () { return (long) (sizeof (short)); }
17313unsigned long ulongval () { return (long) (sizeof (short)); }
17314#include <stdio.h>
17315#include <stdlib.h>
17316int
17317main ()
17318{
17319
17320 FILE *f = fopen ("conftest.val", "w");
17321 if (! f)
17322 exit (1);
17323 if (((long) (sizeof (short))) < 0)
17324 {
17325 long i = longval ();
17326 if (i != ((long) (sizeof (short))))
17327 exit (1);
17328 fprintf (f, "%ld\n", i);
17329 }
17330 else
17331 {
17332 unsigned long i = ulongval ();
17333 if (i != ((long) (sizeof (short))))
17334 exit (1);
17335 fprintf (f, "%lu\n", i);
17336 }
17337 exit (ferror (f) || fclose (f) != 0);
17338
17339 ;
17340 return 0;
17341}
17342_ACEOF
17343rm -f conftest$ac_exeext
17344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17345 (eval $ac_link) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 ac_cv_sizeof_short=`cat conftest.val`
17355else
17356 echo "$as_me: program exited with status $ac_status" >&5
17357echo "$as_me: failed program was:" >&5
17358sed 's/^/| /' conftest.$ac_ext >&5
17359
17360( exit $ac_status )
17361{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17362See \`config.log' for more details." >&5
17363echo "$as_me: error: cannot compute sizeof (short), 77
17364See \`config.log' for more details." >&2;}
17365 { (exit 1); exit 1; }; }
17366fi
ac1cb8d3 17367rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17368fi
17369fi
17370rm -f conftest.val
17371else
17372 ac_cv_sizeof_short=0
17373fi
17374fi
17375echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17376echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17377cat >>confdefs.h <<_ACEOF
17378#define SIZEOF_SHORT $ac_cv_sizeof_short
17379_ACEOF
17380
17381
17382echo "$as_me:$LINENO: checking for void *" >&5
17383echo $ECHO_N "checking for void *... $ECHO_C" >&6
17384if test "${ac_cv_type_void_p+set}" = set; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17386else
17387 cat >conftest.$ac_ext <<_ACEOF
17388/* confdefs.h. */
17389_ACEOF
17390cat confdefs.h >>conftest.$ac_ext
17391cat >>conftest.$ac_ext <<_ACEOF
17392/* end confdefs.h. */
17393$ac_includes_default
17394int
17395main ()
17396{
17397if ((void * *) 0)
17398 return 0;
17399if (sizeof (void *))
17400 return 0;
17401 ;
17402 return 0;
17403}
17404_ACEOF
17405rm -f conftest.$ac_objext
17406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17407 (eval $ac_compile) 2>conftest.er1
a848cd7e 17408 ac_status=$?
ac1cb8d3
VS
17409 grep -v '^ *+' conftest.er1 >conftest.err
17410 rm -f conftest.er1
17411 cat conftest.err >&5
a848cd7e
SC
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } &&
6ebeb4c7 17414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; } &&
17420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 ac_cv_type_void_p=yes
17427else
17428 echo "$as_me: failed program was:" >&5
17429sed 's/^/| /' conftest.$ac_ext >&5
17430
17431ac_cv_type_void_p=no
17432fi
ac1cb8d3 17433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17434fi
17435echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17436echo "${ECHO_T}$ac_cv_type_void_p" >&6
17437
17438echo "$as_me:$LINENO: checking size of void *" >&5
17439echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17440if test "${ac_cv_sizeof_void_p+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17442else
17443 if test "$ac_cv_type_void_p" = yes; then
17444 # The cast to unsigned long works around a bug in the HP C Compiler
17445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17447 # This bug is HP SR number 8606223364.
17448 if test "$cross_compiling" = yes; then
17449 # Depending upon the size, compute the lo and hi bounds.
17450cat >conftest.$ac_ext <<_ACEOF
17451/* confdefs.h. */
17452_ACEOF
17453cat confdefs.h >>conftest.$ac_ext
17454cat >>conftest.$ac_ext <<_ACEOF
17455/* end confdefs.h. */
17456$ac_includes_default
17457int
17458main ()
17459{
17460static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17461test_array [0] = 0
17462
17463 ;
17464 return 0;
17465}
17466_ACEOF
17467rm -f conftest.$ac_objext
17468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17469 (eval $ac_compile) 2>conftest.er1
a848cd7e 17470 ac_status=$?
ac1cb8d3
VS
17471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
a848cd7e
SC
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
6ebeb4c7 17476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 ac_lo=0 ac_mid=0
17489 while :; do
17490 cat >conftest.$ac_ext <<_ACEOF
17491/* confdefs.h. */
17492_ACEOF
17493cat confdefs.h >>conftest.$ac_ext
17494cat >>conftest.$ac_ext <<_ACEOF
17495/* end confdefs.h. */
17496$ac_includes_default
17497int
17498main ()
17499{
17500static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17501test_array [0] = 0
17502
17503 ;
17504 return 0;
17505}
17506_ACEOF
17507rm -f conftest.$ac_objext
17508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17509 (eval $ac_compile) 2>conftest.er1
a848cd7e 17510 ac_status=$?
ac1cb8d3
VS
17511 grep -v '^ *+' conftest.er1 >conftest.err
17512 rm -f conftest.er1
17513 cat conftest.err >&5
a848cd7e
SC
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } &&
6ebeb4c7 17516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17528 ac_hi=$ac_mid; break
17529else
17530 echo "$as_me: failed program was:" >&5
17531sed 's/^/| /' conftest.$ac_ext >&5
17532
17533ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17534 if test $ac_lo -le $ac_mid; then
17535 ac_lo= ac_hi=
17536 break
17537 fi
17538 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17539fi
ac1cb8d3 17540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17541 done
17542else
17543 echo "$as_me: failed program was:" >&5
17544sed 's/^/| /' conftest.$ac_ext >&5
17545
17546cat >conftest.$ac_ext <<_ACEOF
17547/* confdefs.h. */
17548_ACEOF
17549cat confdefs.h >>conftest.$ac_ext
17550cat >>conftest.$ac_ext <<_ACEOF
17551/* end confdefs.h. */
17552$ac_includes_default
17553int
17554main ()
17555{
17556static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17557test_array [0] = 0
17558
17559 ;
17560 return 0;
17561}
17562_ACEOF
17563rm -f conftest.$ac_objext
17564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17565 (eval $ac_compile) 2>conftest.er1
a848cd7e 17566 ac_status=$?
ac1cb8d3
VS
17567 grep -v '^ *+' conftest.er1 >conftest.err
17568 rm -f conftest.er1
17569 cat conftest.err >&5
a848cd7e
SC
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } &&
6ebeb4c7 17572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; } &&
17578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17581 ac_status=$?
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; }; then
17584 ac_hi=-1 ac_mid=-1
17585 while :; do
17586 cat >conftest.$ac_ext <<_ACEOF
17587/* confdefs.h. */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h. */
17592$ac_includes_default
17593int
17594main ()
17595{
17596static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17597test_array [0] = 0
17598
17599 ;
17600 return 0;
17601}
17602_ACEOF
17603rm -f conftest.$ac_objext
17604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17605 (eval $ac_compile) 2>conftest.er1
a848cd7e 17606 ac_status=$?
ac1cb8d3
VS
17607 grep -v '^ *+' conftest.er1 >conftest.err
17608 rm -f conftest.er1
17609 cat conftest.err >&5
a848cd7e
SC
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
6ebeb4c7 17612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624 ac_lo=$ac_mid; break
17625else
17626 echo "$as_me: failed program was:" >&5
17627sed 's/^/| /' conftest.$ac_ext >&5
17628
17629ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17630 if test $ac_mid -le $ac_hi; then
17631 ac_lo= ac_hi=
17632 break
17633 fi
17634 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17635fi
ac1cb8d3 17636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17637 done
17638else
17639 echo "$as_me: failed program was:" >&5
17640sed 's/^/| /' conftest.$ac_ext >&5
17641
17642ac_lo= ac_hi=
17643fi
ac1cb8d3 17644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17645fi
ac1cb8d3 17646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17647# Binary search between lo and hi bounds.
17648while test "x$ac_lo" != "x$ac_hi"; do
17649 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17650 cat >conftest.$ac_ext <<_ACEOF
17651/* confdefs.h. */
17652_ACEOF
17653cat confdefs.h >>conftest.$ac_ext
17654cat >>conftest.$ac_ext <<_ACEOF
17655/* end confdefs.h. */
17656$ac_includes_default
17657int
17658main ()
17659{
17660static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17661test_array [0] = 0
17662
17663 ;
17664 return 0;
17665}
17666_ACEOF
17667rm -f conftest.$ac_objext
17668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17669 (eval $ac_compile) 2>conftest.er1
a848cd7e 17670 ac_status=$?
ac1cb8d3
VS
17671 grep -v '^ *+' conftest.er1 >conftest.err
17672 rm -f conftest.er1
17673 cat conftest.err >&5
a848cd7e
SC
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } &&
6ebeb4c7 17676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; } &&
17682 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
17688 ac_hi=$ac_mid
17689else
17690 echo "$as_me: failed program was:" >&5
17691sed 's/^/| /' conftest.$ac_ext >&5
17692
17693ac_lo=`expr '(' $ac_mid ')' + 1`
17694fi
ac1cb8d3 17695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17696done
17697case $ac_lo in
17698?*) ac_cv_sizeof_void_p=$ac_lo;;
17699'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17700See \`config.log' for more details." >&5
17701echo "$as_me: error: cannot compute sizeof (void *), 77
17702See \`config.log' for more details." >&2;}
17703 { (exit 1); exit 1; }; } ;;
17704esac
17705else
17706 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17707 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17708echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17709 { (exit 1); exit 1; }; }
17710else
17711 cat >conftest.$ac_ext <<_ACEOF
17712/* confdefs.h. */
17713_ACEOF
17714cat confdefs.h >>conftest.$ac_ext
17715cat >>conftest.$ac_ext <<_ACEOF
17716/* end confdefs.h. */
17717$ac_includes_default
17718long longval () { return (long) (sizeof (void *)); }
17719unsigned long ulongval () { return (long) (sizeof (void *)); }
17720#include <stdio.h>
17721#include <stdlib.h>
17722int
17723main ()
17724{
17725
17726 FILE *f = fopen ("conftest.val", "w");
17727 if (! f)
17728 exit (1);
17729 if (((long) (sizeof (void *))) < 0)
17730 {
17731 long i = longval ();
17732 if (i != ((long) (sizeof (void *))))
17733 exit (1);
17734 fprintf (f, "%ld\n", i);
17735 }
17736 else
17737 {
17738 unsigned long i = ulongval ();
17739 if (i != ((long) (sizeof (void *))))
17740 exit (1);
17741 fprintf (f, "%lu\n", i);
17742 }
17743 exit (ferror (f) || fclose (f) != 0);
17744
17745 ;
17746 return 0;
17747}
17748_ACEOF
17749rm -f conftest$ac_exeext
17750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17751 (eval $ac_link) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; }; then
17760 ac_cv_sizeof_void_p=`cat conftest.val`
17761else
17762 echo "$as_me: program exited with status $ac_status" >&5
17763echo "$as_me: failed program was:" >&5
17764sed 's/^/| /' conftest.$ac_ext >&5
17765
17766( exit $ac_status )
17767{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17768See \`config.log' for more details." >&5
17769echo "$as_me: error: cannot compute sizeof (void *), 77
17770See \`config.log' for more details." >&2;}
17771 { (exit 1); exit 1; }; }
17772fi
ac1cb8d3 17773rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17774fi
17775fi
17776rm -f conftest.val
17777else
17778 ac_cv_sizeof_void_p=0
17779fi
17780fi
17781echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17782echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17783cat >>confdefs.h <<_ACEOF
17784#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17785_ACEOF
17786
17787
17788echo "$as_me:$LINENO: checking for int" >&5
17789echo $ECHO_N "checking for int... $ECHO_C" >&6
17790if test "${ac_cv_type_int+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17792else
17793 cat >conftest.$ac_ext <<_ACEOF
17794/* confdefs.h. */
17795_ACEOF
17796cat confdefs.h >>conftest.$ac_ext
17797cat >>conftest.$ac_ext <<_ACEOF
17798/* end confdefs.h. */
17799$ac_includes_default
17800int
17801main ()
17802{
17803if ((int *) 0)
17804 return 0;
17805if (sizeof (int))
17806 return 0;
17807 ;
17808 return 0;
17809}
17810_ACEOF
17811rm -f conftest.$ac_objext
17812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17813 (eval $ac_compile) 2>conftest.er1
a848cd7e 17814 ac_status=$?
ac1cb8d3
VS
17815 grep -v '^ *+' conftest.er1 >conftest.err
17816 rm -f conftest.er1
17817 cat conftest.err >&5
a848cd7e
SC
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
6ebeb4c7 17820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; }; then
17832 ac_cv_type_int=yes
17833else
17834 echo "$as_me: failed program was:" >&5
17835sed 's/^/| /' conftest.$ac_ext >&5
17836
17837ac_cv_type_int=no
17838fi
ac1cb8d3 17839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17840fi
17841echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17842echo "${ECHO_T}$ac_cv_type_int" >&6
17843
17844echo "$as_me:$LINENO: checking size of int" >&5
17845echo $ECHO_N "checking size of int... $ECHO_C" >&6
17846if test "${ac_cv_sizeof_int+set}" = set; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17848else
17849 if test "$ac_cv_type_int" = yes; then
17850 # The cast to unsigned long works around a bug in the HP C Compiler
17851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17853 # This bug is HP SR number 8606223364.
17854 if test "$cross_compiling" = yes; then
17855 # Depending upon the size, compute the lo and hi bounds.
17856cat >conftest.$ac_ext <<_ACEOF
17857/* confdefs.h. */
17858_ACEOF
17859cat confdefs.h >>conftest.$ac_ext
17860cat >>conftest.$ac_ext <<_ACEOF
17861/* end confdefs.h. */
17862$ac_includes_default
17863int
17864main ()
17865{
17866static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17867test_array [0] = 0
17868
17869 ;
17870 return 0;
17871}
17872_ACEOF
17873rm -f conftest.$ac_objext
17874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17875 (eval $ac_compile) 2>conftest.er1
a848cd7e 17876 ac_status=$?
ac1cb8d3
VS
17877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
a848cd7e
SC
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } &&
6ebeb4c7 17882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17885 ac_status=$?
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; } &&
17888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17894 ac_lo=0 ac_mid=0
17895 while :; do
17896 cat >conftest.$ac_ext <<_ACEOF
17897/* confdefs.h. */
17898_ACEOF
17899cat confdefs.h >>conftest.$ac_ext
17900cat >>conftest.$ac_ext <<_ACEOF
17901/* end confdefs.h. */
17902$ac_includes_default
17903int
17904main ()
17905{
17906static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17907test_array [0] = 0
17908
17909 ;
17910 return 0;
17911}
17912_ACEOF
17913rm -f conftest.$ac_objext
17914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17915 (eval $ac_compile) 2>conftest.er1
a848cd7e 17916 ac_status=$?
ac1cb8d3
VS
17917 grep -v '^ *+' conftest.er1 >conftest.err
17918 rm -f conftest.er1
17919 cat conftest.err >&5
a848cd7e
SC
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
6ebeb4c7 17922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17925 ac_status=$?
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; } &&
17928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 ac_hi=$ac_mid; break
17935else
17936 echo "$as_me: failed program was:" >&5
17937sed 's/^/| /' conftest.$ac_ext >&5
17938
17939ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17940 if test $ac_lo -le $ac_mid; then
17941 ac_lo= ac_hi=
17942 break
17943 fi
17944 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17945fi
ac1cb8d3 17946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17947 done
17948else
17949 echo "$as_me: failed program was:" >&5
17950sed 's/^/| /' conftest.$ac_ext >&5
17951
17952cat >conftest.$ac_ext <<_ACEOF
17953/* confdefs.h. */
17954_ACEOF
17955cat confdefs.h >>conftest.$ac_ext
17956cat >>conftest.$ac_ext <<_ACEOF
17957/* end confdefs.h. */
17958$ac_includes_default
17959int
17960main ()
17961{
17962static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17963test_array [0] = 0
17964
17965 ;
17966 return 0;
17967}
17968_ACEOF
17969rm -f conftest.$ac_objext
17970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17971 (eval $ac_compile) 2>conftest.er1
a848cd7e 17972 ac_status=$?
ac1cb8d3
VS
17973 grep -v '^ *+' conftest.er1 >conftest.err
17974 rm -f conftest.er1
17975 cat conftest.err >&5
a848cd7e
SC
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
6ebeb4c7 17978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980 (eval $ac_try) 2>&5
17981 ac_status=$?
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; } &&
17984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17987 ac_status=$?
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; }; then
17990 ac_hi=-1 ac_mid=-1
17991 while :; do
17992 cat >conftest.$ac_ext <<_ACEOF
17993/* confdefs.h. */
17994_ACEOF
17995cat confdefs.h >>conftest.$ac_ext
17996cat >>conftest.$ac_ext <<_ACEOF
17997/* end confdefs.h. */
17998$ac_includes_default
17999int
18000main ()
18001{
18002static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18003test_array [0] = 0
18004
18005 ;
18006 return 0;
18007}
18008_ACEOF
18009rm -f conftest.$ac_objext
18010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18011 (eval $ac_compile) 2>conftest.er1
a848cd7e 18012 ac_status=$?
ac1cb8d3
VS
18013 grep -v '^ *+' conftest.er1 >conftest.err
18014 rm -f conftest.er1
18015 cat conftest.err >&5
a848cd7e
SC
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } &&
6ebeb4c7 18018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; } &&
18024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_lo=$ac_mid; break
18031else
18032 echo "$as_me: failed program was:" >&5
18033sed 's/^/| /' conftest.$ac_ext >&5
18034
18035ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18036 if test $ac_mid -le $ac_hi; then
18037 ac_lo= ac_hi=
18038 break
18039 fi
18040 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18041fi
ac1cb8d3 18042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18043 done
18044else
18045 echo "$as_me: failed program was:" >&5
18046sed 's/^/| /' conftest.$ac_ext >&5
18047
18048ac_lo= ac_hi=
18049fi
ac1cb8d3 18050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18051fi
ac1cb8d3 18052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18053# Binary search between lo and hi bounds.
18054while test "x$ac_lo" != "x$ac_hi"; do
18055 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18056 cat >conftest.$ac_ext <<_ACEOF
18057/* confdefs.h. */
18058_ACEOF
18059cat confdefs.h >>conftest.$ac_ext
18060cat >>conftest.$ac_ext <<_ACEOF
18061/* end confdefs.h. */
18062$ac_includes_default
18063int
18064main ()
18065{
18066static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18067test_array [0] = 0
18068
18069 ;
18070 return 0;
18071}
18072_ACEOF
18073rm -f conftest.$ac_objext
18074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18075 (eval $ac_compile) 2>conftest.er1
a848cd7e 18076 ac_status=$?
ac1cb8d3
VS
18077 grep -v '^ *+' conftest.er1 >conftest.err
18078 rm -f conftest.er1
18079 cat conftest.err >&5
a848cd7e
SC
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } &&
6ebeb4c7 18082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18085 ac_status=$?
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; } &&
18088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_hi=$ac_mid
18095else
18096 echo "$as_me: failed program was:" >&5
18097sed 's/^/| /' conftest.$ac_ext >&5
18098
18099ac_lo=`expr '(' $ac_mid ')' + 1`
18100fi
ac1cb8d3 18101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18102done
18103case $ac_lo in
18104?*) ac_cv_sizeof_int=$ac_lo;;
18105'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18106See \`config.log' for more details." >&5
18107echo "$as_me: error: cannot compute sizeof (int), 77
18108See \`config.log' for more details." >&2;}
18109 { (exit 1); exit 1; }; } ;;
18110esac
18111else
18112 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18113 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18114echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18115 { (exit 1); exit 1; }; }
18116else
18117 cat >conftest.$ac_ext <<_ACEOF
18118/* confdefs.h. */
18119_ACEOF
18120cat confdefs.h >>conftest.$ac_ext
18121cat >>conftest.$ac_ext <<_ACEOF
18122/* end confdefs.h. */
18123$ac_includes_default
18124long longval () { return (long) (sizeof (int)); }
18125unsigned long ulongval () { return (long) (sizeof (int)); }
18126#include <stdio.h>
18127#include <stdlib.h>
18128int
18129main ()
18130{
18131
18132 FILE *f = fopen ("conftest.val", "w");
18133 if (! f)
18134 exit (1);
18135 if (((long) (sizeof (int))) < 0)
18136 {
18137 long i = longval ();
18138 if (i != ((long) (sizeof (int))))
18139 exit (1);
18140 fprintf (f, "%ld\n", i);
18141 }
18142 else
18143 {
18144 unsigned long i = ulongval ();
18145 if (i != ((long) (sizeof (int))))
18146 exit (1);
18147 fprintf (f, "%lu\n", i);
18148 }
18149 exit (ferror (f) || fclose (f) != 0);
18150
18151 ;
18152 return 0;
18153}
18154_ACEOF
18155rm -f conftest$ac_exeext
18156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18157 (eval $ac_link) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 ac_cv_sizeof_int=`cat conftest.val`
18167else
18168 echo "$as_me: program exited with status $ac_status" >&5
18169echo "$as_me: failed program was:" >&5
18170sed 's/^/| /' conftest.$ac_ext >&5
18171
18172( exit $ac_status )
18173{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18174See \`config.log' for more details." >&5
18175echo "$as_me: error: cannot compute sizeof (int), 77
18176See \`config.log' for more details." >&2;}
18177 { (exit 1); exit 1; }; }
18178fi
ac1cb8d3 18179rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18180fi
18181fi
18182rm -f conftest.val
18183else
18184 ac_cv_sizeof_int=0
18185fi
18186fi
18187echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18188echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18189cat >>confdefs.h <<_ACEOF
18190#define SIZEOF_INT $ac_cv_sizeof_int
18191_ACEOF
18192
18193
18194echo "$as_me:$LINENO: checking for long" >&5
18195echo $ECHO_N "checking for long... $ECHO_C" >&6
18196if test "${ac_cv_type_long+set}" = set; then
18197 echo $ECHO_N "(cached) $ECHO_C" >&6
18198else
18199 cat >conftest.$ac_ext <<_ACEOF
18200/* confdefs.h. */
18201_ACEOF
18202cat confdefs.h >>conftest.$ac_ext
18203cat >>conftest.$ac_ext <<_ACEOF
18204/* end confdefs.h. */
18205$ac_includes_default
18206int
18207main ()
18208{
18209if ((long *) 0)
18210 return 0;
18211if (sizeof (long))
18212 return 0;
18213 ;
18214 return 0;
18215}
18216_ACEOF
18217rm -f conftest.$ac_objext
18218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18219 (eval $ac_compile) 2>conftest.er1
a848cd7e 18220 ac_status=$?
ac1cb8d3
VS
18221 grep -v '^ *+' conftest.er1 >conftest.err
18222 rm -f conftest.er1
18223 cat conftest.err >&5
a848cd7e
SC
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } &&
6ebeb4c7 18226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; } &&
18232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; }; then
18238 ac_cv_type_long=yes
18239else
18240 echo "$as_me: failed program was:" >&5
18241sed 's/^/| /' conftest.$ac_ext >&5
18242
18243ac_cv_type_long=no
18244fi
ac1cb8d3 18245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18246fi
18247echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18248echo "${ECHO_T}$ac_cv_type_long" >&6
18249
18250echo "$as_me:$LINENO: checking size of long" >&5
18251echo $ECHO_N "checking size of long... $ECHO_C" >&6
18252if test "${ac_cv_sizeof_long+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18254else
18255 if test "$ac_cv_type_long" = yes; then
18256 # The cast to unsigned long works around a bug in the HP C Compiler
18257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18259 # This bug is HP SR number 8606223364.
18260 if test "$cross_compiling" = yes; then
18261 # Depending upon the size, compute the lo and hi bounds.
18262cat >conftest.$ac_ext <<_ACEOF
18263/* confdefs.h. */
18264_ACEOF
18265cat confdefs.h >>conftest.$ac_ext
18266cat >>conftest.$ac_ext <<_ACEOF
18267/* end confdefs.h. */
18268$ac_includes_default
18269int
18270main ()
18271{
18272static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18273test_array [0] = 0
18274
18275 ;
18276 return 0;
18277}
18278_ACEOF
18279rm -f conftest.$ac_objext
18280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18281 (eval $ac_compile) 2>conftest.er1
a848cd7e 18282 ac_status=$?
ac1cb8d3
VS
18283 grep -v '^ *+' conftest.er1 >conftest.err
18284 rm -f conftest.er1
18285 cat conftest.err >&5
a848cd7e
SC
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } &&
6ebeb4c7 18288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 ac_lo=0 ac_mid=0
18301 while :; do
18302 cat >conftest.$ac_ext <<_ACEOF
18303/* confdefs.h. */
18304_ACEOF
18305cat confdefs.h >>conftest.$ac_ext
18306cat >>conftest.$ac_ext <<_ACEOF
18307/* end confdefs.h. */
18308$ac_includes_default
18309int
18310main ()
18311{
18312static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18313test_array [0] = 0
18314
18315 ;
18316 return 0;
18317}
18318_ACEOF
18319rm -f conftest.$ac_objext
18320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18321 (eval $ac_compile) 2>conftest.er1
a848cd7e 18322 ac_status=$?
ac1cb8d3
VS
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
a848cd7e
SC
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
6ebeb4c7 18328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 ac_hi=$ac_mid; break
18341else
18342 echo "$as_me: failed program was:" >&5
18343sed 's/^/| /' conftest.$ac_ext >&5
18344
18345ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18346 if test $ac_lo -le $ac_mid; then
18347 ac_lo= ac_hi=
18348 break
18349 fi
18350 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18351fi
ac1cb8d3 18352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18353 done
18354else
18355 echo "$as_me: failed program was:" >&5
18356sed 's/^/| /' conftest.$ac_ext >&5
18357
18358cat >conftest.$ac_ext <<_ACEOF
18359/* confdefs.h. */
18360_ACEOF
18361cat confdefs.h >>conftest.$ac_ext
18362cat >>conftest.$ac_ext <<_ACEOF
18363/* end confdefs.h. */
18364$ac_includes_default
18365int
18366main ()
18367{
18368static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18369test_array [0] = 0
18370
18371 ;
18372 return 0;
18373}
18374_ACEOF
18375rm -f conftest.$ac_objext
18376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18377 (eval $ac_compile) 2>conftest.er1
a848cd7e 18378 ac_status=$?
ac1cb8d3
VS
18379 grep -v '^ *+' conftest.er1 >conftest.err
18380 rm -f conftest.er1
18381 cat conftest.err >&5
a848cd7e
SC
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
6ebeb4c7 18384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 ac_hi=-1 ac_mid=-1
18397 while :; do
18398 cat >conftest.$ac_ext <<_ACEOF
18399/* confdefs.h. */
18400_ACEOF
18401cat confdefs.h >>conftest.$ac_ext
18402cat >>conftest.$ac_ext <<_ACEOF
18403/* end confdefs.h. */
18404$ac_includes_default
18405int
18406main ()
18407{
18408static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18409test_array [0] = 0
18410
18411 ;
18412 return 0;
18413}
18414_ACEOF
18415rm -f conftest.$ac_objext
18416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18417 (eval $ac_compile) 2>conftest.er1
a848cd7e 18418 ac_status=$?
ac1cb8d3
VS
18419 grep -v '^ *+' conftest.er1 >conftest.err
18420 rm -f conftest.er1
18421 cat conftest.err >&5
a848cd7e
SC
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } &&
6ebeb4c7 18424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; }; then
18436 ac_lo=$ac_mid; break
18437else
18438 echo "$as_me: failed program was:" >&5
18439sed 's/^/| /' conftest.$ac_ext >&5
18440
18441ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18442 if test $ac_mid -le $ac_hi; then
18443 ac_lo= ac_hi=
18444 break
18445 fi
18446 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18447fi
ac1cb8d3 18448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18449 done
18450else
18451 echo "$as_me: failed program was:" >&5
18452sed 's/^/| /' conftest.$ac_ext >&5
18453
18454ac_lo= ac_hi=
18455fi
ac1cb8d3 18456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18457fi
ac1cb8d3 18458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18459# Binary search between lo and hi bounds.
18460while test "x$ac_lo" != "x$ac_hi"; do
18461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18462 cat >conftest.$ac_ext <<_ACEOF
18463/* confdefs.h. */
18464_ACEOF
18465cat confdefs.h >>conftest.$ac_ext
18466cat >>conftest.$ac_ext <<_ACEOF
18467/* end confdefs.h. */
18468$ac_includes_default
18469int
18470main ()
18471{
18472static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18473test_array [0] = 0
18474
18475 ;
18476 return 0;
18477}
18478_ACEOF
18479rm -f conftest.$ac_objext
18480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18481 (eval $ac_compile) 2>conftest.er1
a848cd7e 18482 ac_status=$?
ac1cb8d3
VS
18483 grep -v '^ *+' conftest.er1 >conftest.err
18484 rm -f conftest.er1
18485 cat conftest.err >&5
a848cd7e
SC
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } &&
6ebeb4c7 18488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490 (eval $ac_try) 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; } &&
18494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18497 ac_status=$?
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; }; then
18500 ac_hi=$ac_mid
18501else
18502 echo "$as_me: failed program was:" >&5
18503sed 's/^/| /' conftest.$ac_ext >&5
18504
18505ac_lo=`expr '(' $ac_mid ')' + 1`
18506fi
ac1cb8d3 18507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18508done
18509case $ac_lo in
18510?*) ac_cv_sizeof_long=$ac_lo;;
18511'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18512See \`config.log' for more details." >&5
18513echo "$as_me: error: cannot compute sizeof (long), 77
18514See \`config.log' for more details." >&2;}
18515 { (exit 1); exit 1; }; } ;;
18516esac
18517else
18518 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18519 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18520echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18521 { (exit 1); exit 1; }; }
18522else
18523 cat >conftest.$ac_ext <<_ACEOF
18524/* confdefs.h. */
18525_ACEOF
18526cat confdefs.h >>conftest.$ac_ext
18527cat >>conftest.$ac_ext <<_ACEOF
18528/* end confdefs.h. */
18529$ac_includes_default
18530long longval () { return (long) (sizeof (long)); }
18531unsigned long ulongval () { return (long) (sizeof (long)); }
18532#include <stdio.h>
18533#include <stdlib.h>
18534int
18535main ()
18536{
18537
18538 FILE *f = fopen ("conftest.val", "w");
18539 if (! f)
18540 exit (1);
18541 if (((long) (sizeof (long))) < 0)
18542 {
18543 long i = longval ();
18544 if (i != ((long) (sizeof (long))))
18545 exit (1);
18546 fprintf (f, "%ld\n", i);
18547 }
18548 else
18549 {
18550 unsigned long i = ulongval ();
18551 if (i != ((long) (sizeof (long))))
18552 exit (1);
18553 fprintf (f, "%lu\n", i);
18554 }
18555 exit (ferror (f) || fclose (f) != 0);
18556
18557 ;
18558 return 0;
18559}
18560_ACEOF
18561rm -f conftest$ac_exeext
18562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18563 (eval $ac_link) 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
18572 ac_cv_sizeof_long=`cat conftest.val`
18573else
18574 echo "$as_me: program exited with status $ac_status" >&5
18575echo "$as_me: failed program was:" >&5
18576sed 's/^/| /' conftest.$ac_ext >&5
18577
18578( exit $ac_status )
18579{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18580See \`config.log' for more details." >&5
18581echo "$as_me: error: cannot compute sizeof (long), 77
18582See \`config.log' for more details." >&2;}
18583 { (exit 1); exit 1; }; }
18584fi
ac1cb8d3 18585rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18586fi
18587fi
18588rm -f conftest.val
18589else
18590 ac_cv_sizeof_long=0
18591fi
18592fi
18593echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18594echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18595cat >>confdefs.h <<_ACEOF
18596#define SIZEOF_LONG $ac_cv_sizeof_long
18597_ACEOF
18598
18599
18600echo "$as_me:$LINENO: checking for size_t" >&5
18601echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18602if test "${ac_cv_type_size_t+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18604else
18605 cat >conftest.$ac_ext <<_ACEOF
18606/* confdefs.h. */
18607_ACEOF
18608cat confdefs.h >>conftest.$ac_ext
18609cat >>conftest.$ac_ext <<_ACEOF
18610/* end confdefs.h. */
18611$ac_includes_default
18612int
18613main ()
18614{
18615if ((size_t *) 0)
18616 return 0;
18617if (sizeof (size_t))
18618 return 0;
18619 ;
18620 return 0;
18621}
18622_ACEOF
18623rm -f conftest.$ac_objext
18624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18625 (eval $ac_compile) 2>conftest.er1
a848cd7e 18626 ac_status=$?
ac1cb8d3
VS
18627 grep -v '^ *+' conftest.er1 >conftest.err
18628 rm -f conftest.er1
18629 cat conftest.err >&5
a848cd7e
SC
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } &&
6ebeb4c7 18632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634 (eval $ac_try) 2>&5
18635 ac_status=$?
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); }; } &&
18638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18641 ac_status=$?
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
18644 ac_cv_type_size_t=yes
18645else
18646 echo "$as_me: failed program was:" >&5
18647sed 's/^/| /' conftest.$ac_ext >&5
18648
18649ac_cv_type_size_t=no
18650fi
ac1cb8d3 18651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18652fi
18653echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18654echo "${ECHO_T}$ac_cv_type_size_t" >&6
18655
18656echo "$as_me:$LINENO: checking size of size_t" >&5
18657echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18658if test "${ac_cv_sizeof_size_t+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660else
18661 if test "$ac_cv_type_size_t" = yes; then
18662 # The cast to unsigned long works around a bug in the HP C Compiler
18663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18665 # This bug is HP SR number 8606223364.
18666 if test "$cross_compiling" = yes; then
18667 # Depending upon the size, compute the lo and hi bounds.
18668cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h. */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h. */
18674$ac_includes_default
18675int
18676main ()
18677{
18678static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18679test_array [0] = 0
18680
18681 ;
18682 return 0;
18683}
18684_ACEOF
18685rm -f conftest.$ac_objext
18686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18687 (eval $ac_compile) 2>conftest.er1
a848cd7e 18688 ac_status=$?
ac1cb8d3
VS
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
a848cd7e
SC
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
6ebeb4c7 18694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; } &&
18700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; }; then
18706 ac_lo=0 ac_mid=0
18707 while :; do
18708 cat >conftest.$ac_ext <<_ACEOF
18709/* confdefs.h. */
18710_ACEOF
18711cat confdefs.h >>conftest.$ac_ext
18712cat >>conftest.$ac_ext <<_ACEOF
18713/* end confdefs.h. */
18714$ac_includes_default
18715int
18716main ()
18717{
18718static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18719test_array [0] = 0
18720
18721 ;
18722 return 0;
18723}
18724_ACEOF
18725rm -f conftest.$ac_objext
18726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18727 (eval $ac_compile) 2>conftest.er1
a848cd7e 18728 ac_status=$?
ac1cb8d3
VS
18729 grep -v '^ *+' conftest.er1 >conftest.err
18730 rm -f conftest.er1
18731 cat conftest.err >&5
a848cd7e
SC
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
6ebeb4c7 18734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; } &&
18740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
18746 ac_hi=$ac_mid; break
18747else
18748 echo "$as_me: failed program was:" >&5
18749sed 's/^/| /' conftest.$ac_ext >&5
18750
18751ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18752 if test $ac_lo -le $ac_mid; then
18753 ac_lo= ac_hi=
18754 break
18755 fi
18756 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18757fi
ac1cb8d3 18758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18759 done
18760else
18761 echo "$as_me: failed program was:" >&5
18762sed 's/^/| /' conftest.$ac_ext >&5
18763
18764cat >conftest.$ac_ext <<_ACEOF
18765/* confdefs.h. */
18766_ACEOF
18767cat confdefs.h >>conftest.$ac_ext
18768cat >>conftest.$ac_ext <<_ACEOF
18769/* end confdefs.h. */
18770$ac_includes_default
18771int
18772main ()
18773{
18774static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18775test_array [0] = 0
18776
18777 ;
18778 return 0;
18779}
18780_ACEOF
18781rm -f conftest.$ac_objext
18782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18783 (eval $ac_compile) 2>conftest.er1
a848cd7e 18784 ac_status=$?
ac1cb8d3
VS
18785 grep -v '^ *+' conftest.er1 >conftest.err
18786 rm -f conftest.er1
18787 cat conftest.err >&5
a848cd7e
SC
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
6ebeb4c7 18790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_hi=-1 ac_mid=-1
18803 while :; do
18804 cat >conftest.$ac_ext <<_ACEOF
18805/* confdefs.h. */
18806_ACEOF
18807cat confdefs.h >>conftest.$ac_ext
18808cat >>conftest.$ac_ext <<_ACEOF
18809/* end confdefs.h. */
18810$ac_includes_default
18811int
18812main ()
18813{
18814static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18815test_array [0] = 0
18816
18817 ;
18818 return 0;
18819}
18820_ACEOF
18821rm -f conftest.$ac_objext
18822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18823 (eval $ac_compile) 2>conftest.er1
a848cd7e 18824 ac_status=$?
ac1cb8d3
VS
18825 grep -v '^ *+' conftest.er1 >conftest.err
18826 rm -f conftest.er1
18827 cat conftest.err >&5
a848cd7e
SC
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } &&
6ebeb4c7 18830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; } &&
18836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_lo=$ac_mid; break
18843else
18844 echo "$as_me: failed program was:" >&5
18845sed 's/^/| /' conftest.$ac_ext >&5
18846
18847ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18848 if test $ac_mid -le $ac_hi; then
18849 ac_lo= ac_hi=
18850 break
18851 fi
18852 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18853fi
ac1cb8d3 18854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18855 done
18856else
18857 echo "$as_me: failed program was:" >&5
18858sed 's/^/| /' conftest.$ac_ext >&5
18859
18860ac_lo= ac_hi=
18861fi
ac1cb8d3 18862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18863fi
ac1cb8d3 18864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18865# Binary search between lo and hi bounds.
18866while test "x$ac_lo" != "x$ac_hi"; do
18867 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18868 cat >conftest.$ac_ext <<_ACEOF
18869/* confdefs.h. */
18870_ACEOF
18871cat confdefs.h >>conftest.$ac_ext
18872cat >>conftest.$ac_ext <<_ACEOF
18873/* end confdefs.h. */
18874$ac_includes_default
18875int
18876main ()
18877{
18878static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18879test_array [0] = 0
18880
18881 ;
18882 return 0;
18883}
18884_ACEOF
18885rm -f conftest.$ac_objext
18886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18887 (eval $ac_compile) 2>conftest.er1
a848cd7e 18888 ac_status=$?
ac1cb8d3
VS
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
a848cd7e
SC
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } &&
6ebeb4c7 18894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18897 ac_status=$?
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; } &&
18900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 ac_hi=$ac_mid
18907else
18908 echo "$as_me: failed program was:" >&5
18909sed 's/^/| /' conftest.$ac_ext >&5
18910
18911ac_lo=`expr '(' $ac_mid ')' + 1`
18912fi
ac1cb8d3 18913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18914done
18915case $ac_lo in
18916?*) ac_cv_sizeof_size_t=$ac_lo;;
18917'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18918See \`config.log' for more details." >&5
18919echo "$as_me: error: cannot compute sizeof (size_t), 77
18920See \`config.log' for more details." >&2;}
18921 { (exit 1); exit 1; }; } ;;
18922esac
18923else
18924 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18925 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18926echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18927 { (exit 1); exit 1; }; }
18928else
18929 cat >conftest.$ac_ext <<_ACEOF
18930/* confdefs.h. */
18931_ACEOF
18932cat confdefs.h >>conftest.$ac_ext
18933cat >>conftest.$ac_ext <<_ACEOF
18934/* end confdefs.h. */
18935$ac_includes_default
18936long longval () { return (long) (sizeof (size_t)); }
18937unsigned long ulongval () { return (long) (sizeof (size_t)); }
18938#include <stdio.h>
18939#include <stdlib.h>
18940int
18941main ()
18942{
18943
18944 FILE *f = fopen ("conftest.val", "w");
18945 if (! f)
18946 exit (1);
18947 if (((long) (sizeof (size_t))) < 0)
18948 {
18949 long i = longval ();
18950 if (i != ((long) (sizeof (size_t))))
18951 exit (1);
18952 fprintf (f, "%ld\n", i);
18953 }
18954 else
18955 {
18956 unsigned long i = ulongval ();
18957 if (i != ((long) (sizeof (size_t))))
18958 exit (1);
18959 fprintf (f, "%lu\n", i);
18960 }
18961 exit (ferror (f) || fclose (f) != 0);
18962
18963 ;
18964 return 0;
18965}
18966_ACEOF
18967rm -f conftest$ac_exeext
18968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18969 (eval $ac_link) 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 ac_cv_sizeof_size_t=`cat conftest.val`
18979else
18980 echo "$as_me: program exited with status $ac_status" >&5
18981echo "$as_me: failed program was:" >&5
18982sed 's/^/| /' conftest.$ac_ext >&5
18983
18984( exit $ac_status )
18985{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18986See \`config.log' for more details." >&5
18987echo "$as_me: error: cannot compute sizeof (size_t), 77
18988See \`config.log' for more details." >&2;}
18989 { (exit 1); exit 1; }; }
18990fi
ac1cb8d3 18991rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18992fi
18993fi
18994rm -f conftest.val
18995else
18996 ac_cv_sizeof_size_t=0
18997fi
18998fi
18999echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19000echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19001cat >>confdefs.h <<_ACEOF
19002#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19003_ACEOF
19004
19005
19006
19007case "${host}" in
19008 arm-*-linux* )
19009 echo "$as_me:$LINENO: checking for long long" >&5
19010echo $ECHO_N "checking for long long... $ECHO_C" >&6
19011if test "${ac_cv_type_long_long+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013else
19014 cat >conftest.$ac_ext <<_ACEOF
19015/* confdefs.h. */
19016_ACEOF
19017cat confdefs.h >>conftest.$ac_ext
19018cat >>conftest.$ac_ext <<_ACEOF
19019/* end confdefs.h. */
19020$ac_includes_default
19021int
19022main ()
19023{
19024if ((long long *) 0)
19025 return 0;
19026if (sizeof (long long))
19027 return 0;
19028 ;
19029 return 0;
19030}
19031_ACEOF
19032rm -f conftest.$ac_objext
19033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19034 (eval $ac_compile) 2>conftest.er1
a848cd7e 19035 ac_status=$?
ac1cb8d3
VS
19036 grep -v '^ *+' conftest.er1 >conftest.err
19037 rm -f conftest.er1
19038 cat conftest.err >&5
a848cd7e
SC
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
6ebeb4c7 19041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043 (eval $ac_try) 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19050 ac_status=$?
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 ac_cv_type_long_long=yes
19054else
19055 echo "$as_me: failed program was:" >&5
19056sed 's/^/| /' conftest.$ac_ext >&5
19057
19058ac_cv_type_long_long=no
19059fi
ac1cb8d3 19060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19061fi
19062echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19063echo "${ECHO_T}$ac_cv_type_long_long" >&6
19064
19065echo "$as_me:$LINENO: checking size of long long" >&5
19066echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19067if test "${ac_cv_sizeof_long_long+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19069else
19070 if test "$ac_cv_type_long_long" = yes; then
19071 # The cast to unsigned long works around a bug in the HP C Compiler
19072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19074 # This bug is HP SR number 8606223364.
19075 if test "$cross_compiling" = yes; then
19076 # Depending upon the size, compute the lo and hi bounds.
19077cat >conftest.$ac_ext <<_ACEOF
19078/* confdefs.h. */
19079_ACEOF
19080cat confdefs.h >>conftest.$ac_ext
19081cat >>conftest.$ac_ext <<_ACEOF
19082/* end confdefs.h. */
19083$ac_includes_default
19084int
19085main ()
19086{
19087static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19088test_array [0] = 0
19089
19090 ;
19091 return 0;
19092}
19093_ACEOF
19094rm -f conftest.$ac_objext
19095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19096 (eval $ac_compile) 2>conftest.er1
a848cd7e 19097 ac_status=$?
ac1cb8d3
VS
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
a848cd7e
SC
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
6ebeb4c7 19103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 ac_lo=0 ac_mid=0
19116 while :; do
19117 cat >conftest.$ac_ext <<_ACEOF
19118/* confdefs.h. */
19119_ACEOF
19120cat confdefs.h >>conftest.$ac_ext
19121cat >>conftest.$ac_ext <<_ACEOF
19122/* end confdefs.h. */
19123$ac_includes_default
19124int
19125main ()
19126{
19127static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19128test_array [0] = 0
19129
19130 ;
19131 return 0;
19132}
19133_ACEOF
19134rm -f conftest.$ac_objext
19135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19136 (eval $ac_compile) 2>conftest.er1
a848cd7e 19137 ac_status=$?
ac1cb8d3
VS
19138 grep -v '^ *+' conftest.er1 >conftest.err
19139 rm -f conftest.er1
19140 cat conftest.err >&5
a848cd7e
SC
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
6ebeb4c7 19143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 ac_hi=$ac_mid; break
19156else
19157 echo "$as_me: failed program was:" >&5
19158sed 's/^/| /' conftest.$ac_ext >&5
19159
19160ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19161 if test $ac_lo -le $ac_mid; then
19162 ac_lo= ac_hi=
19163 break
19164 fi
19165 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19166fi
ac1cb8d3 19167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19168 done
19169else
19170 echo "$as_me: failed program was:" >&5
19171sed 's/^/| /' conftest.$ac_ext >&5
19172
19173cat >conftest.$ac_ext <<_ACEOF
19174/* confdefs.h. */
19175_ACEOF
19176cat confdefs.h >>conftest.$ac_ext
19177cat >>conftest.$ac_ext <<_ACEOF
19178/* end confdefs.h. */
19179$ac_includes_default
19180int
19181main ()
19182{
19183static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19184test_array [0] = 0
19185
19186 ;
19187 return 0;
19188}
19189_ACEOF
19190rm -f conftest.$ac_objext
19191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19192 (eval $ac_compile) 2>conftest.er1
a848cd7e 19193 ac_status=$?
ac1cb8d3
VS
19194 grep -v '^ *+' conftest.er1 >conftest.err
19195 rm -f conftest.er1
19196 cat conftest.err >&5
a848cd7e
SC
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
6ebeb4c7 19199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; } &&
19205 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 ac_hi=-1 ac_mid=-1
19212 while :; do
19213 cat >conftest.$ac_ext <<_ACEOF
19214/* confdefs.h. */
19215_ACEOF
19216cat confdefs.h >>conftest.$ac_ext
19217cat >>conftest.$ac_ext <<_ACEOF
19218/* end confdefs.h. */
19219$ac_includes_default
19220int
19221main ()
19222{
19223static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19224test_array [0] = 0
19225
19226 ;
19227 return 0;
19228}
19229_ACEOF
19230rm -f conftest.$ac_objext
19231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19232 (eval $ac_compile) 2>conftest.er1
a848cd7e 19233 ac_status=$?
ac1cb8d3
VS
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
a848cd7e
SC
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
6ebeb4c7 19239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 ac_lo=$ac_mid; break
19252else
19253 echo "$as_me: failed program was:" >&5
19254sed 's/^/| /' conftest.$ac_ext >&5
19255
19256ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19257 if test $ac_mid -le $ac_hi; then
19258 ac_lo= ac_hi=
19259 break
19260 fi
19261 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19262fi
ac1cb8d3 19263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19264 done
19265else
19266 echo "$as_me: failed program was:" >&5
19267sed 's/^/| /' conftest.$ac_ext >&5
19268
19269ac_lo= ac_hi=
19270fi
ac1cb8d3 19271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19272fi
ac1cb8d3 19273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19274# Binary search between lo and hi bounds.
19275while test "x$ac_lo" != "x$ac_hi"; do
19276 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19277 cat >conftest.$ac_ext <<_ACEOF
19278/* confdefs.h. */
19279_ACEOF
19280cat confdefs.h >>conftest.$ac_ext
19281cat >>conftest.$ac_ext <<_ACEOF
19282/* end confdefs.h. */
19283$ac_includes_default
19284int
19285main ()
19286{
19287static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19288test_array [0] = 0
19289
19290 ;
19291 return 0;
19292}
19293_ACEOF
19294rm -f conftest.$ac_objext
19295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19296 (eval $ac_compile) 2>conftest.er1
a848cd7e 19297 ac_status=$?
ac1cb8d3
VS
19298 grep -v '^ *+' conftest.er1 >conftest.err
19299 rm -f conftest.er1
19300 cat conftest.err >&5
a848cd7e
SC
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } &&
6ebeb4c7 19303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; } &&
19309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; }; then
19315 ac_hi=$ac_mid
19316else
19317 echo "$as_me: failed program was:" >&5
19318sed 's/^/| /' conftest.$ac_ext >&5
19319
19320ac_lo=`expr '(' $ac_mid ')' + 1`
19321fi
ac1cb8d3 19322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19323done
19324case $ac_lo in
19325?*) ac_cv_sizeof_long_long=$ac_lo;;
19326'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19327See \`config.log' for more details." >&5
19328echo "$as_me: error: cannot compute sizeof (long long), 77
19329See \`config.log' for more details." >&2;}
19330 { (exit 1); exit 1; }; } ;;
19331esac
19332else
19333 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19334 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19335echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19336 { (exit 1); exit 1; }; }
19337else
19338 cat >conftest.$ac_ext <<_ACEOF
19339/* confdefs.h. */
19340_ACEOF
19341cat confdefs.h >>conftest.$ac_ext
19342cat >>conftest.$ac_ext <<_ACEOF
19343/* end confdefs.h. */
19344$ac_includes_default
19345long longval () { return (long) (sizeof (long long)); }
19346unsigned long ulongval () { return (long) (sizeof (long long)); }
19347#include <stdio.h>
19348#include <stdlib.h>
19349int
19350main ()
19351{
19352
19353 FILE *f = fopen ("conftest.val", "w");
19354 if (! f)
19355 exit (1);
19356 if (((long) (sizeof (long long))) < 0)
19357 {
19358 long i = longval ();
19359 if (i != ((long) (sizeof (long long))))
19360 exit (1);
19361 fprintf (f, "%ld\n", i);
19362 }
19363 else
19364 {
19365 unsigned long i = ulongval ();
19366 if (i != ((long) (sizeof (long long))))
19367 exit (1);
19368 fprintf (f, "%lu\n", i);
19369 }
19370 exit (ferror (f) || fclose (f) != 0);
19371
19372 ;
19373 return 0;
19374}
19375_ACEOF
19376rm -f conftest$ac_exeext
19377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19378 (eval $ac_link) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; }; then
19387 ac_cv_sizeof_long_long=`cat conftest.val`
19388else
19389 echo "$as_me: program exited with status $ac_status" >&5
19390echo "$as_me: failed program was:" >&5
19391sed 's/^/| /' conftest.$ac_ext >&5
19392
19393( exit $ac_status )
19394{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19395See \`config.log' for more details." >&5
19396echo "$as_me: error: cannot compute sizeof (long long), 77
19397See \`config.log' for more details." >&2;}
19398 { (exit 1); exit 1; }; }
19399fi
ac1cb8d3 19400rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19401fi
19402fi
19403rm -f conftest.val
19404else
19405 ac_cv_sizeof_long_long=0
19406fi
19407fi
19408echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19409echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19410cat >>confdefs.h <<_ACEOF
19411#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19412_ACEOF
19413
19414
19415 ;;
19416 *-hp-hpux* )
19417 echo "$as_me:$LINENO: checking for long long" >&5
19418echo $ECHO_N "checking for long long... $ECHO_C" >&6
19419if test "${ac_cv_type_long_long+set}" = set; then
19420 echo $ECHO_N "(cached) $ECHO_C" >&6
19421else
19422 cat >conftest.$ac_ext <<_ACEOF
19423/* confdefs.h. */
19424_ACEOF
19425cat confdefs.h >>conftest.$ac_ext
19426cat >>conftest.$ac_ext <<_ACEOF
19427/* end confdefs.h. */
19428$ac_includes_default
19429int
19430main ()
19431{
19432if ((long long *) 0)
19433 return 0;
19434if (sizeof (long long))
19435 return 0;
19436 ;
19437 return 0;
19438}
19439_ACEOF
19440rm -f conftest.$ac_objext
19441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19442 (eval $ac_compile) 2>conftest.er1
a848cd7e 19443 ac_status=$?
ac1cb8d3
VS
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
a848cd7e
SC
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } &&
6ebeb4c7 19449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; } &&
19455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 ac_cv_type_long_long=yes
19462else
19463 echo "$as_me: failed program was:" >&5
19464sed 's/^/| /' conftest.$ac_ext >&5
19465
19466ac_cv_type_long_long=no
19467fi
ac1cb8d3 19468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19469fi
19470echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19471echo "${ECHO_T}$ac_cv_type_long_long" >&6
19472
19473echo "$as_me:$LINENO: checking size of long long" >&5
19474echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19475if test "${ac_cv_sizeof_long_long+set}" = set; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
19477else
19478 if test "$ac_cv_type_long_long" = yes; then
19479 # The cast to unsigned long works around a bug in the HP C Compiler
19480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19482 # This bug is HP SR number 8606223364.
19483 if test "$cross_compiling" = yes; then
19484 # Depending upon the size, compute the lo and hi bounds.
19485cat >conftest.$ac_ext <<_ACEOF
19486/* confdefs.h. */
19487_ACEOF
19488cat confdefs.h >>conftest.$ac_ext
19489cat >>conftest.$ac_ext <<_ACEOF
19490/* end confdefs.h. */
19491$ac_includes_default
19492int
19493main ()
19494{
19495static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19496test_array [0] = 0
19497
19498 ;
19499 return 0;
19500}
19501_ACEOF
19502rm -f conftest.$ac_objext
19503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19504 (eval $ac_compile) 2>conftest.er1
a848cd7e 19505 ac_status=$?
ac1cb8d3
VS
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
a848cd7e
SC
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
6ebeb4c7 19511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; } &&
19517 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 ac_lo=0 ac_mid=0
19524 while :; do
19525 cat >conftest.$ac_ext <<_ACEOF
19526/* confdefs.h. */
19527_ACEOF
19528cat confdefs.h >>conftest.$ac_ext
19529cat >>conftest.$ac_ext <<_ACEOF
19530/* end confdefs.h. */
19531$ac_includes_default
19532int
19533main ()
19534{
19535static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19536test_array [0] = 0
19537
19538 ;
19539 return 0;
19540}
19541_ACEOF
19542rm -f conftest.$ac_objext
19543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19544 (eval $ac_compile) 2>conftest.er1
a848cd7e 19545 ac_status=$?
ac1cb8d3
VS
19546 grep -v '^ *+' conftest.er1 >conftest.err
19547 rm -f conftest.er1
19548 cat conftest.err >&5
a848cd7e
SC
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
6ebeb4c7 19551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_hi=$ac_mid; break
19564else
19565 echo "$as_me: failed program was:" >&5
19566sed 's/^/| /' conftest.$ac_ext >&5
19567
19568ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19569 if test $ac_lo -le $ac_mid; then
19570 ac_lo= ac_hi=
19571 break
19572 fi
19573 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19574fi
ac1cb8d3 19575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19576 done
19577else
19578 echo "$as_me: failed program was:" >&5
19579sed 's/^/| /' conftest.$ac_ext >&5
19580
19581cat >conftest.$ac_ext <<_ACEOF
19582/* confdefs.h. */
19583_ACEOF
19584cat confdefs.h >>conftest.$ac_ext
19585cat >>conftest.$ac_ext <<_ACEOF
19586/* end confdefs.h. */
19587$ac_includes_default
19588int
19589main ()
19590{
19591static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19592test_array [0] = 0
19593
19594 ;
19595 return 0;
19596}
19597_ACEOF
19598rm -f conftest.$ac_objext
19599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19600 (eval $ac_compile) 2>conftest.er1
a848cd7e 19601 ac_status=$?
ac1cb8d3
VS
19602 grep -v '^ *+' conftest.er1 >conftest.err
19603 rm -f conftest.er1
19604 cat conftest.err >&5
a848cd7e
SC
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } &&
6ebeb4c7 19607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; } &&
19613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19616 ac_status=$?
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; }; then
19619 ac_hi=-1 ac_mid=-1
19620 while :; do
19621 cat >conftest.$ac_ext <<_ACEOF
19622/* confdefs.h. */
19623_ACEOF
19624cat confdefs.h >>conftest.$ac_ext
19625cat >>conftest.$ac_ext <<_ACEOF
19626/* end confdefs.h. */
19627$ac_includes_default
19628int
19629main ()
19630{
19631static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19632test_array [0] = 0
19633
19634 ;
19635 return 0;
19636}
19637_ACEOF
19638rm -f conftest.$ac_objext
19639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19640 (eval $ac_compile) 2>conftest.er1
a848cd7e 19641 ac_status=$?
ac1cb8d3
VS
19642 grep -v '^ *+' conftest.er1 >conftest.err
19643 rm -f conftest.er1
19644 cat conftest.err >&5
a848cd7e
SC
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
6ebeb4c7 19647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; } &&
19653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; }; then
19659 ac_lo=$ac_mid; break
19660else
19661 echo "$as_me: failed program was:" >&5
19662sed 's/^/| /' conftest.$ac_ext >&5
19663
19664ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19665 if test $ac_mid -le $ac_hi; then
19666 ac_lo= ac_hi=
19667 break
19668 fi
19669 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19670fi
ac1cb8d3 19671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19672 done
19673else
19674 echo "$as_me: failed program was:" >&5
19675sed 's/^/| /' conftest.$ac_ext >&5
19676
19677ac_lo= ac_hi=
19678fi
ac1cb8d3 19679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19680fi
ac1cb8d3 19681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19682# Binary search between lo and hi bounds.
19683while test "x$ac_lo" != "x$ac_hi"; do
19684 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19685 cat >conftest.$ac_ext <<_ACEOF
19686/* confdefs.h. */
19687_ACEOF
19688cat confdefs.h >>conftest.$ac_ext
19689cat >>conftest.$ac_ext <<_ACEOF
19690/* end confdefs.h. */
19691$ac_includes_default
19692int
19693main ()
19694{
19695static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19696test_array [0] = 0
19697
19698 ;
19699 return 0;
19700}
19701_ACEOF
19702rm -f conftest.$ac_objext
19703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19704 (eval $ac_compile) 2>conftest.er1
a848cd7e 19705 ac_status=$?
ac1cb8d3
VS
19706 grep -v '^ *+' conftest.er1 >conftest.err
19707 rm -f conftest.er1
19708 cat conftest.err >&5
a848cd7e
SC
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
6ebeb4c7 19711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19714 ac_status=$?
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; } &&
19717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19720 ac_status=$?
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19723 ac_hi=$ac_mid
19724else
19725 echo "$as_me: failed program was:" >&5
19726sed 's/^/| /' conftest.$ac_ext >&5
19727
19728ac_lo=`expr '(' $ac_mid ')' + 1`
19729fi
ac1cb8d3 19730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19731done
19732case $ac_lo in
19733?*) ac_cv_sizeof_long_long=$ac_lo;;
19734'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19735See \`config.log' for more details." >&5
19736echo "$as_me: error: cannot compute sizeof (long long), 77
19737See \`config.log' for more details." >&2;}
19738 { (exit 1); exit 1; }; } ;;
19739esac
19740else
19741 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19742 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19743echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19744 { (exit 1); exit 1; }; }
19745else
19746 cat >conftest.$ac_ext <<_ACEOF
19747/* confdefs.h. */
19748_ACEOF
19749cat confdefs.h >>conftest.$ac_ext
19750cat >>conftest.$ac_ext <<_ACEOF
19751/* end confdefs.h. */
19752$ac_includes_default
19753long longval () { return (long) (sizeof (long long)); }
19754unsigned long ulongval () { return (long) (sizeof (long long)); }
19755#include <stdio.h>
19756#include <stdlib.h>
19757int
19758main ()
19759{
19760
19761 FILE *f = fopen ("conftest.val", "w");
19762 if (! f)
19763 exit (1);
19764 if (((long) (sizeof (long long))) < 0)
19765 {
19766 long i = longval ();
19767 if (i != ((long) (sizeof (long long))))
19768 exit (1);
19769 fprintf (f, "%ld\n", i);
19770 }
19771 else
19772 {
19773 unsigned long i = ulongval ();
19774 if (i != ((long) (sizeof (long long))))
19775 exit (1);
19776 fprintf (f, "%lu\n", i);
19777 }
19778 exit (ferror (f) || fclose (f) != 0);
19779
19780 ;
19781 return 0;
19782}
19783_ACEOF
19784rm -f conftest$ac_exeext
19785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19786 (eval $ac_link) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; }; then
19795 ac_cv_sizeof_long_long=`cat conftest.val`
19796else
19797 echo "$as_me: program exited with status $ac_status" >&5
19798echo "$as_me: failed program was:" >&5
19799sed 's/^/| /' conftest.$ac_ext >&5
19800
19801( exit $ac_status )
19802{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19803See \`config.log' for more details." >&5
19804echo "$as_me: error: cannot compute sizeof (long long), 77
19805See \`config.log' for more details." >&2;}
19806 { (exit 1); exit 1; }; }
19807fi
ac1cb8d3 19808rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19809fi
19810fi
19811rm -f conftest.val
19812else
19813 ac_cv_sizeof_long_long=0
19814fi
19815fi
19816echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19817echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19818cat >>confdefs.h <<_ACEOF
19819#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19820_ACEOF
19821
19822
19823 if test "$ac_cv_sizeof_long_long" != "0"; then
19824 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19825 fi
19826 ;;
19827 * )
19828 echo "$as_me:$LINENO: checking for long long" >&5
19829echo $ECHO_N "checking for long long... $ECHO_C" >&6
19830if test "${ac_cv_type_long_long+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19832else
19833 cat >conftest.$ac_ext <<_ACEOF
19834/* confdefs.h. */
19835_ACEOF
19836cat confdefs.h >>conftest.$ac_ext
19837cat >>conftest.$ac_ext <<_ACEOF
19838/* end confdefs.h. */
19839$ac_includes_default
19840int
19841main ()
19842{
19843if ((long long *) 0)
19844 return 0;
19845if (sizeof (long long))
19846 return 0;
19847 ;
19848 return 0;
19849}
19850_ACEOF
19851rm -f conftest.$ac_objext
19852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19853 (eval $ac_compile) 2>conftest.er1
a848cd7e 19854 ac_status=$?
ac1cb8d3
VS
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
a848cd7e
SC
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
6ebeb4c7 19860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_cv_type_long_long=yes
19873else
19874 echo "$as_me: failed program was:" >&5
19875sed 's/^/| /' conftest.$ac_ext >&5
19876
19877ac_cv_type_long_long=no
19878fi
ac1cb8d3 19879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19880fi
19881echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19882echo "${ECHO_T}$ac_cv_type_long_long" >&6
19883
19884echo "$as_me:$LINENO: checking size of long long" >&5
19885echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19886if test "${ac_cv_sizeof_long_long+set}" = set; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19888else
19889 if test "$ac_cv_type_long_long" = yes; then
19890 # The cast to unsigned long works around a bug in the HP C Compiler
19891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19893 # This bug is HP SR number 8606223364.
19894 if test "$cross_compiling" = yes; then
19895 # Depending upon the size, compute the lo and hi bounds.
19896cat >conftest.$ac_ext <<_ACEOF
19897/* confdefs.h. */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
19901/* end confdefs.h. */
19902$ac_includes_default
19903int
19904main ()
19905{
19906static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19907test_array [0] = 0
19908
19909 ;
19910 return 0;
19911}
19912_ACEOF
19913rm -f conftest.$ac_objext
19914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19915 (eval $ac_compile) 2>conftest.er1
a848cd7e 19916 ac_status=$?
ac1cb8d3
VS
19917 grep -v '^ *+' conftest.er1 >conftest.err
19918 rm -f conftest.er1
19919 cat conftest.err >&5
a848cd7e
SC
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } &&
6ebeb4c7 19922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; } &&
19928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; }; then
19934 ac_lo=0 ac_mid=0
19935 while :; do
19936 cat >conftest.$ac_ext <<_ACEOF
19937/* confdefs.h. */
19938_ACEOF
19939cat confdefs.h >>conftest.$ac_ext
19940cat >>conftest.$ac_ext <<_ACEOF
19941/* end confdefs.h. */
19942$ac_includes_default
19943int
19944main ()
19945{
19946static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19947test_array [0] = 0
19948
19949 ;
19950 return 0;
19951}
19952_ACEOF
19953rm -f conftest.$ac_objext
19954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19955 (eval $ac_compile) 2>conftest.er1
a848cd7e 19956 ac_status=$?
ac1cb8d3
VS
19957 grep -v '^ *+' conftest.er1 >conftest.err
19958 rm -f conftest.er1
19959 cat conftest.err >&5
a848cd7e
SC
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
6ebeb4c7 19962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19965 ac_status=$?
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; } &&
19968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970 (eval $ac_try) 2>&5
19971 ac_status=$?
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; }; then
19974 ac_hi=$ac_mid; break
19975else
19976 echo "$as_me: failed program was:" >&5
19977sed 's/^/| /' conftest.$ac_ext >&5
19978
19979ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19980 if test $ac_lo -le $ac_mid; then
19981 ac_lo= ac_hi=
19982 break
19983 fi
19984 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19985fi
ac1cb8d3 19986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19987 done
19988else
19989 echo "$as_me: failed program was:" >&5
19990sed 's/^/| /' conftest.$ac_ext >&5
19991
19992cat >conftest.$ac_ext <<_ACEOF
19993/* confdefs.h. */
19994_ACEOF
19995cat confdefs.h >>conftest.$ac_ext
19996cat >>conftest.$ac_ext <<_ACEOF
19997/* end confdefs.h. */
19998$ac_includes_default
19999int
20000main ()
20001{
20002static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20003test_array [0] = 0
20004
20005 ;
20006 return 0;
20007}
20008_ACEOF
20009rm -f conftest.$ac_objext
20010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20011 (eval $ac_compile) 2>conftest.er1
a848cd7e 20012 ac_status=$?
ac1cb8d3
VS
20013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
a848cd7e
SC
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
6ebeb4c7 20018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20021 ac_status=$?
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; } &&
20024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20027 ac_status=$?
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030 ac_hi=-1 ac_mid=-1
20031 while :; do
20032 cat >conftest.$ac_ext <<_ACEOF
20033/* confdefs.h. */
20034_ACEOF
20035cat confdefs.h >>conftest.$ac_ext
20036cat >>conftest.$ac_ext <<_ACEOF
20037/* end confdefs.h. */
20038$ac_includes_default
20039int
20040main ()
20041{
20042static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20043test_array [0] = 0
20044
20045 ;
20046 return 0;
20047}
20048_ACEOF
20049rm -f conftest.$ac_objext
20050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20051 (eval $ac_compile) 2>conftest.er1
a848cd7e 20052 ac_status=$?
ac1cb8d3
VS
20053 grep -v '^ *+' conftest.er1 >conftest.err
20054 rm -f conftest.er1
20055 cat conftest.err >&5
a848cd7e
SC
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
6ebeb4c7 20058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; } &&
20064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066 (eval $ac_try) 2>&5
20067 ac_status=$?
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; }; then
20070 ac_lo=$ac_mid; break
20071else
20072 echo "$as_me: failed program was:" >&5
20073sed 's/^/| /' conftest.$ac_ext >&5
20074
20075ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20076 if test $ac_mid -le $ac_hi; then
20077 ac_lo= ac_hi=
20078 break
20079 fi
20080 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20081fi
ac1cb8d3 20082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20083 done
20084else
20085 echo "$as_me: failed program was:" >&5
20086sed 's/^/| /' conftest.$ac_ext >&5
20087
20088ac_lo= ac_hi=
20089fi
ac1cb8d3 20090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20091fi
ac1cb8d3 20092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20093# Binary search between lo and hi bounds.
20094while test "x$ac_lo" != "x$ac_hi"; do
20095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20096 cat >conftest.$ac_ext <<_ACEOF
20097/* confdefs.h. */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
20101/* end confdefs.h. */
20102$ac_includes_default
20103int
20104main ()
20105{
20106static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20107test_array [0] = 0
20108
20109 ;
20110 return 0;
20111}
20112_ACEOF
20113rm -f conftest.$ac_objext
20114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20115 (eval $ac_compile) 2>conftest.er1
a848cd7e 20116 ac_status=$?
ac1cb8d3
VS
20117 grep -v '^ *+' conftest.er1 >conftest.err
20118 rm -f conftest.er1
20119 cat conftest.err >&5
a848cd7e
SC
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } &&
6ebeb4c7 20122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; } &&
20128 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 ac_hi=$ac_mid
20135else
20136 echo "$as_me: failed program was:" >&5
20137sed 's/^/| /' conftest.$ac_ext >&5
20138
20139ac_lo=`expr '(' $ac_mid ')' + 1`
20140fi
ac1cb8d3 20141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20142done
20143case $ac_lo in
20144?*) ac_cv_sizeof_long_long=$ac_lo;;
20145'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20146See \`config.log' for more details." >&5
20147echo "$as_me: error: cannot compute sizeof (long long), 77
20148See \`config.log' for more details." >&2;}
20149 { (exit 1); exit 1; }; } ;;
20150esac
20151else
20152 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
20153 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20154echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20155 { (exit 1); exit 1; }; }
20156else
20157 cat >conftest.$ac_ext <<_ACEOF
20158/* confdefs.h. */
20159_ACEOF
20160cat confdefs.h >>conftest.$ac_ext
20161cat >>conftest.$ac_ext <<_ACEOF
20162/* end confdefs.h. */
20163$ac_includes_default
20164long longval () { return (long) (sizeof (long long)); }
20165unsigned long ulongval () { return (long) (sizeof (long long)); }
20166#include <stdio.h>
20167#include <stdlib.h>
20168int
20169main ()
20170{
20171
20172 FILE *f = fopen ("conftest.val", "w");
20173 if (! f)
20174 exit (1);
20175 if (((long) (sizeof (long long))) < 0)
20176 {
20177 long i = longval ();
20178 if (i != ((long) (sizeof (long long))))
20179 exit (1);
20180 fprintf (f, "%ld\n", i);
20181 }
20182 else
20183 {
20184 unsigned long i = ulongval ();
20185 if (i != ((long) (sizeof (long long))))
20186 exit (1);
20187 fprintf (f, "%lu\n", i);
20188 }
20189 exit (ferror (f) || fclose (f) != 0);
20190
20191 ;
20192 return 0;
20193}
20194_ACEOF
20195rm -f conftest$ac_exeext
20196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20197 (eval $ac_link) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 (eval $ac_try) 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; }; then
20206 ac_cv_sizeof_long_long=`cat conftest.val`
20207else
20208 echo "$as_me: program exited with status $ac_status" >&5
20209echo "$as_me: failed program was:" >&5
20210sed 's/^/| /' conftest.$ac_ext >&5
20211
20212( exit $ac_status )
20213{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20214See \`config.log' for more details." >&5
20215echo "$as_me: error: cannot compute sizeof (long long), 77
20216See \`config.log' for more details." >&2;}
20217 { (exit 1); exit 1; }; }
20218fi
ac1cb8d3 20219rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20220fi
20221fi
20222rm -f conftest.val
20223else
20224 ac_cv_sizeof_long_long=0
20225fi
20226fi
20227echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20228echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20229cat >>confdefs.h <<_ACEOF
20230#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20231_ACEOF
20232
20233
20234esac
20235
238ecede
MW
20236echo "$as_me:$LINENO: checking for wchar_t" >&5
20237echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20238if test "${ac_cv_type_wchar_t+set}" = set; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20240else
20241 cat >conftest.$ac_ext <<_ACEOF
20242/* confdefs.h. */
20243_ACEOF
20244cat confdefs.h >>conftest.$ac_ext
20245cat >>conftest.$ac_ext <<_ACEOF
20246/* end confdefs.h. */
20247
83d8eb47
MW
20248 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20249 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20250 # error "fake wchar_t"
20251 #endif
20252 #ifdef HAVE_WCHAR_H
20253 # ifdef __CYGWIN__
20254 # include <stddef.h>
20255 # endif
20256 # include <wchar.h>
20257 #endif
20258 #ifdef HAVE_STDLIB_H
20259 # include <stdlib.h>
20260 #endif
20261 #include <stdio.h>
20262
20263
20264
20265int
20266main ()
20267{
20268if ((wchar_t *) 0)
20269 return 0;
20270if (sizeof (wchar_t))
20271 return 0;
20272 ;
20273 return 0;
20274}
20275_ACEOF
20276rm -f conftest.$ac_objext
20277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20278 (eval $ac_compile) 2>conftest.er1
20279 ac_status=$?
20280 grep -v '^ *+' conftest.er1 >conftest.err
20281 rm -f conftest.er1
20282 cat conftest.err >&5
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'
238ecede
MW
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'
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_type_wchar_t=yes
20298else
20299 echo "$as_me: failed program was:" >&5
20300sed 's/^/| /' conftest.$ac_ext >&5
20301
20302ac_cv_type_wchar_t=no
20303fi
20304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20305fi
20306echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20307echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20308
a848cd7e
SC
20309echo "$as_me:$LINENO: checking size of wchar_t" >&5
20310echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20311if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20313else
238ecede
MW
20314 if test "$ac_cv_type_wchar_t" = yes; then
20315 # The cast to unsigned long works around a bug in the HP C Compiler
20316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20318 # This bug is HP SR number 8606223364.
20319 if test "$cross_compiling" = yes; then
20320 # Depending upon the size, compute the lo and hi bounds.
20321cat >conftest.$ac_ext <<_ACEOF
20322/* confdefs.h. */
20323_ACEOF
20324cat confdefs.h >>conftest.$ac_ext
20325cat >>conftest.$ac_ext <<_ACEOF
20326/* end confdefs.h. */
20327
83d8eb47
MW
20328 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20329 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20330 # error "fake wchar_t"
20331 #endif
20332 #ifdef HAVE_WCHAR_H
20333 # ifdef __CYGWIN__
20334 # include <stddef.h>
20335 # endif
20336 # include <wchar.h>
20337 #endif
20338 #ifdef HAVE_STDLIB_H
20339 # include <stdlib.h>
20340 #endif
20341 #include <stdio.h>
20342
20343
20344
20345int
20346main ()
20347{
20348static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20349test_array [0] = 0
20350
20351 ;
20352 return 0;
20353}
20354_ACEOF
20355rm -f conftest.$ac_objext
20356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>conftest.er1
20358 ac_status=$?
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
6ebeb4c7 20364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; } &&
20370 { ac_try='test -s conftest.$ac_objext'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; }; then
20376 ac_lo=0 ac_mid=0
20377 while :; do
20378 cat >conftest.$ac_ext <<_ACEOF
20379/* confdefs.h. */
20380_ACEOF
20381cat confdefs.h >>conftest.$ac_ext
20382cat >>conftest.$ac_ext <<_ACEOF
20383/* end confdefs.h. */
20384
83d8eb47
MW
20385 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20386 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20387 # error "fake wchar_t"
20388 #endif
20389 #ifdef HAVE_WCHAR_H
20390 # ifdef __CYGWIN__
20391 # include <stddef.h>
20392 # endif
20393 # include <wchar.h>
20394 #endif
20395 #ifdef HAVE_STDLIB_H
20396 # include <stdlib.h>
20397 #endif
20398 #include <stdio.h>
20399
20400
20401
20402int
20403main ()
20404{
20405static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20406test_array [0] = 0
20407
20408 ;
20409 return 0;
20410}
20411_ACEOF
20412rm -f conftest.$ac_objext
20413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20414 (eval $ac_compile) 2>conftest.er1
20415 ac_status=$?
20416 grep -v '^ *+' conftest.er1 >conftest.err
20417 rm -f conftest.er1
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } &&
6ebeb4c7 20421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; } &&
20427 { ac_try='test -s conftest.$ac_objext'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }; then
20433 ac_hi=$ac_mid; break
20434else
20435 echo "$as_me: failed program was:" >&5
20436sed 's/^/| /' conftest.$ac_ext >&5
20437
20438ac_lo=`expr $ac_mid + 1`
20439 if test $ac_lo -le $ac_mid; then
20440 ac_lo= ac_hi=
20441 break
20442 fi
20443 ac_mid=`expr 2 '*' $ac_mid + 1`
20444fi
20445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20446 done
20447else
20448 echo "$as_me: failed program was:" >&5
20449sed 's/^/| /' conftest.$ac_ext >&5
20450
20451cat >conftest.$ac_ext <<_ACEOF
20452/* confdefs.h. */
20453_ACEOF
20454cat confdefs.h >>conftest.$ac_ext
20455cat >>conftest.$ac_ext <<_ACEOF
20456/* end confdefs.h. */
20457
83d8eb47
MW
20458 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20459 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20460 # error "fake wchar_t"
20461 #endif
20462 #ifdef HAVE_WCHAR_H
20463 # ifdef __CYGWIN__
20464 # include <stddef.h>
20465 # endif
20466 # include <wchar.h>
20467 #endif
20468 #ifdef HAVE_STDLIB_H
20469 # include <stdlib.h>
20470 #endif
20471 #include <stdio.h>
20472
20473
20474
20475int
20476main ()
20477{
20478static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20479test_array [0] = 0
20480
20481 ;
20482 return 0;
20483}
20484_ACEOF
20485rm -f conftest.$ac_objext
20486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>conftest.er1
20488 ac_status=$?
20489 grep -v '^ *+' conftest.er1 >conftest.err
20490 rm -f conftest.er1
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } &&
6ebeb4c7 20494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try='test -s conftest.$ac_objext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 ac_hi=-1 ac_mid=-1
20507 while :; do
20508 cat >conftest.$ac_ext <<_ACEOF
20509/* confdefs.h. */
20510_ACEOF
20511cat confdefs.h >>conftest.$ac_ext
20512cat >>conftest.$ac_ext <<_ACEOF
20513/* end confdefs.h. */
20514
83d8eb47
MW
20515 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20516 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20517 # error "fake wchar_t"
20518 #endif
20519 #ifdef HAVE_WCHAR_H
20520 # ifdef __CYGWIN__
20521 # include <stddef.h>
20522 # endif
20523 # include <wchar.h>
20524 #endif
20525 #ifdef HAVE_STDLIB_H
20526 # include <stdlib.h>
20527 #endif
20528 #include <stdio.h>
20529
20530
20531
20532int
20533main ()
20534{
20535static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20536test_array [0] = 0
20537
20538 ;
20539 return 0;
20540}
20541_ACEOF
20542rm -f conftest.$ac_objext
20543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20544 (eval $ac_compile) 2>conftest.er1
20545 ac_status=$?
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } &&
6ebeb4c7 20551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; } &&
20557 { ac_try='test -s conftest.$ac_objext'
20558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559 (eval $ac_try) 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; }; then
20563 ac_lo=$ac_mid; break
20564else
20565 echo "$as_me: failed program was:" >&5
20566sed 's/^/| /' conftest.$ac_ext >&5
20567
20568ac_hi=`expr '(' $ac_mid ')' - 1`
20569 if test $ac_mid -le $ac_hi; then
20570 ac_lo= ac_hi=
20571 break
20572 fi
20573 ac_mid=`expr 2 '*' $ac_mid`
20574fi
20575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20576 done
20577else
20578 echo "$as_me: failed program was:" >&5
20579sed 's/^/| /' conftest.$ac_ext >&5
20580
20581ac_lo= ac_hi=
20582fi
20583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20584fi
20585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20586# Binary search between lo and hi bounds.
20587while test "x$ac_lo" != "x$ac_hi"; do
20588 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20589 cat >conftest.$ac_ext <<_ACEOF
20590/* confdefs.h. */
20591_ACEOF
20592cat confdefs.h >>conftest.$ac_ext
20593cat >>conftest.$ac_ext <<_ACEOF
20594/* end confdefs.h. */
20595
83d8eb47
MW
20596 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20597 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20598 # error "fake wchar_t"
20599 #endif
20600 #ifdef HAVE_WCHAR_H
20601 # ifdef __CYGWIN__
20602 # include <stddef.h>
20603 # endif
20604 # include <wchar.h>
20605 #endif
20606 #ifdef HAVE_STDLIB_H
20607 # include <stdlib.h>
20608 #endif
20609 #include <stdio.h>
a848cd7e 20610
a848cd7e 20611
a848cd7e 20612
238ecede
MW
20613int
20614main ()
20615{
20616static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20617test_array [0] = 0
a848cd7e 20618
238ecede
MW
20619 ;
20620 return 0;
20621}
20622_ACEOF
20623rm -f conftest.$ac_objext
20624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20625 (eval $ac_compile) 2>conftest.er1
20626 ac_status=$?
20627 grep -v '^ *+' conftest.er1 >conftest.err
20628 rm -f conftest.er1
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } &&
6ebeb4c7 20632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634 (eval $ac_try) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; } &&
20638 { ac_try='test -s conftest.$ac_objext'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 ac_hi=$ac_mid
20645else
20646 echo "$as_me: failed program was:" >&5
20647sed 's/^/| /' conftest.$ac_ext >&5
20648
20649ac_lo=`expr '(' $ac_mid ')' + 1`
20650fi
20651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20652done
20653case $ac_lo in
20654?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20655'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20656See \`config.log' for more details." >&5
20657echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20658See \`config.log' for more details." >&2;}
20659 { (exit 1); exit 1; }; } ;;
20660esac
20661else
20662 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
20663 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20664echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 20665 { (exit 1); exit 1; }; }
a848cd7e
SC
20666else
20667 cat >conftest.$ac_ext <<_ACEOF
20668/* confdefs.h. */
20669_ACEOF
20670cat confdefs.h >>conftest.$ac_ext
20671cat >>conftest.$ac_ext <<_ACEOF
20672/* end confdefs.h. */
20673
83d8eb47
MW
20674 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20675 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20676 # error "fake wchar_t"
20677 #endif
20678 #ifdef HAVE_WCHAR_H
20679 # ifdef __CYGWIN__
20680 # include <stddef.h>
20681 # endif
20682 # include <wchar.h>
20683 #endif
20684 #ifdef HAVE_STDLIB_H
20685 # include <stdlib.h>
20686 #endif
20687 #include <stdio.h>
20688
20689
20690
20691long longval () { return (long) (sizeof (wchar_t)); }
20692unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20693#include <stdio.h>
20694#include <stdlib.h>
20695int
20696main ()
20697{
a848cd7e 20698
238ecede
MW
20699 FILE *f = fopen ("conftest.val", "w");
20700 if (! f)
20701 exit (1);
20702 if (((long) (sizeof (wchar_t))) < 0)
20703 {
20704 long i = longval ();
20705 if (i != ((long) (sizeof (wchar_t))))
20706 exit (1);
20707 fprintf (f, "%ld\n", i);
20708 }
20709 else
20710 {
20711 unsigned long i = ulongval ();
20712 if (i != ((long) (sizeof (wchar_t))))
20713 exit (1);
20714 fprintf (f, "%lu\n", i);
20715 }
20716 exit (ferror (f) || fclose (f) != 0);
20717
20718 ;
20719 return 0;
20720}
a848cd7e
SC
20721_ACEOF
20722rm -f conftest$ac_exeext
20723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20724 (eval $ac_link) 2>&5
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20730 ac_status=$?
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; }; then
238ecede 20733 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20734else
20735 echo "$as_me: program exited with status $ac_status" >&5
20736echo "$as_me: failed program was:" >&5
20737sed 's/^/| /' conftest.$ac_ext >&5
20738
20739( exit $ac_status )
238ecede
MW
20740{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20741See \`config.log' for more details." >&5
20742echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20743See \`config.log' for more details." >&2;}
20744 { (exit 1); exit 1; }; }
a848cd7e 20745fi
ac1cb8d3 20746rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20747fi
a848cd7e 20748fi
238ecede
MW
20749rm -f conftest.val
20750else
20751 ac_cv_sizeof_wchar_t=0
20752fi
20753fi
20754echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20755echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20756cat >>confdefs.h <<_ACEOF
238ecede 20757#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20758_ACEOF
20759
20760
47a7e797
MW
20761if test "$ac_cv_sizeof_wchar_t" != "0"; then
20762 wxUSE_WCHAR_T=yes
20763else
20764 wxUSE_WCHAR_T=no
20765fi
238ecede 20766
ba3d13e1
VZ
20767echo "$as_me:$LINENO: checking for va_copy" >&5
20768echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20769if test "${wx_cv_func_va_copy+set}" = set; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20771else
20772
20773 cat >conftest.$ac_ext <<_ACEOF
20774
20775 #include <stdarg.h>
20776 void foo(char *f, ...)
20777 {
20778 va_list ap1, ap2;
20779 va_start(ap1, f);
20780 va_copy(ap2, ap1);
20781 va_end(ap2);
20782 va_end(ap1);
20783 }
5886b072
VZ
20784 int main()
20785 {
b902e639
VZ
20786 foo("hi", 17);
20787 return 0;
5886b072 20788 }
ba3d13e1
VZ
20789_ACEOF
20790rm -f conftest.$ac_objext conftest$ac_exeext
20791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20792 (eval $ac_link) 2>conftest.er1
20793 ac_status=$?
20794 grep -v '^ *+' conftest.er1 >conftest.err
20795 rm -f conftest.er1
20796 cat conftest.err >&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } &&
6ebeb4c7 20799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; } &&
20805 { ac_try='test -s conftest$ac_exeext'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 wx_cv_func_va_copy=yes
20812else
20813 echo "$as_me: failed program was:" >&5
20814sed 's/^/| /' conftest.$ac_ext >&5
20815
20816wx_cv_func_va_copy=no
20817
20818fi
20819rm -f conftest.err conftest.$ac_objext \
20820 conftest$ac_exeext conftest.$ac_ext
20821
20822
20823fi
20824echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20825echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20826
20827if test $wx_cv_func_va_copy = "yes"; then
20828 cat >>confdefs.h <<\_ACEOF
20829#define HAVE_VA_COPY 1
20830_ACEOF
20831
20832else
20833 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20834echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20835if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20836 echo $ECHO_N "(cached) $ECHO_C" >&6
20837else
20838
20839 if test "$cross_compiling" = yes; then
20840 wx_cv_type_va_list_lvalue=yes
20841
20842else
20843 cat >conftest.$ac_ext <<_ACEOF
20844
20845 #include <stdarg.h>
20846 int foo(char *f, ...)
20847 {
20848 va_list ap1, ap2;
20849 va_start(ap1, f);
20850 ap2 = ap1;
20851 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20852 return 1;
20853 va_end(ap2);
20854 va_end(ap1);
20855 return 0;
20856 }
20857 int main()
20858 {
20859 return foo("hi", 17);
20860 }
20861_ACEOF
20862rm -f conftest$ac_exeext
20863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20864 (eval $ac_link) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20870 ac_status=$?
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20873 wx_cv_type_va_list_lvalue=yes
20874else
20875 echo "$as_me: program exited with status $ac_status" >&5
20876echo "$as_me: failed program was:" >&5
20877sed 's/^/| /' conftest.$ac_ext >&5
20878
20879( exit $ac_status )
20880wx_cv_type_va_list_lvalue=no
20881fi
20882rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20883fi
20884
20885
20886fi
20887echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20888echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20889
20890 if test $wx_cv_type_va_list_lvalue != "yes"; then
20891 cat >>confdefs.h <<\_ACEOF
20892#define VA_LIST_IS_ARRAY 1
20893_ACEOF
20894
20895 fi
20896fi
20897
a848cd7e
SC
20898# Check whether --enable-largefile or --disable-largefile was given.
20899if test "${enable_largefile+set}" = set; then
20900 enableval="$enable_largefile"
20901
20902fi;
20903if test "$enable_largefile" != no; then
20904 wx_largefile=no
20905
20906 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20907echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20908if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20910else
20911
20912 cat >conftest.$ac_ext <<_ACEOF
20913/* confdefs.h. */
20914_ACEOF
20915cat confdefs.h >>conftest.$ac_ext
20916cat >>conftest.$ac_ext <<_ACEOF
20917/* end confdefs.h. */
20918#define _FILE_OFFSET_BITS 64
20919 #include <sys/types.h>
20920int
20921main ()
20922{
20923typedef struct {
20924 unsigned int field: sizeof(off_t) == 8;
20925} wxlf;
20926
20927 ;
20928 return 0;
20929}
20930_ACEOF
20931rm -f conftest.$ac_objext
20932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20933 (eval $ac_compile) 2>conftest.er1
a848cd7e 20934 ac_status=$?
ac1cb8d3
VS
20935 grep -v '^ *+' conftest.er1 >conftest.err
20936 rm -f conftest.er1
20937 cat conftest.err >&5
a848cd7e
SC
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } &&
6ebeb4c7 20940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); }; } &&
20946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_cv_sys_file_offset_bits=64
20953else
20954 echo "$as_me: failed program was:" >&5
20955sed 's/^/| /' conftest.$ac_ext >&5
20956
20957ac_cv_sys_file_offset_bits=no
20958fi
ac1cb8d3 20959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20960
20961
20962fi
20963echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20964echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20965
20966 if test "$ac_cv_sys_file_offset_bits" != no; then
20967 wx_largefile=yes
20968 cat >>confdefs.h <<_ACEOF
20969#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20970_ACEOF
20971
20972 fi
20973
20974 if test "x$wx_largefile" != "xyes"; then
20975
20976 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20977echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20978if test "${ac_cv_sys_large_files+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20980else
20981
20982 cat >conftest.$ac_ext <<_ACEOF
20983/* confdefs.h. */
20984_ACEOF
20985cat confdefs.h >>conftest.$ac_ext
20986cat >>conftest.$ac_ext <<_ACEOF
20987/* end confdefs.h. */
20988#define _LARGE_FILES 1
20989 #include <sys/types.h>
20990int
20991main ()
20992{
20993typedef struct {
20994 unsigned int field: sizeof(off_t) == 8;
20995} wxlf;
20996
20997 ;
20998 return 0;
20999}
21000_ACEOF
21001rm -f conftest.$ac_objext
21002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21003 (eval $ac_compile) 2>conftest.er1
a848cd7e 21004 ac_status=$?
ac1cb8d3
VS
21005 grep -v '^ *+' conftest.er1 >conftest.err
21006 rm -f conftest.er1
21007 cat conftest.err >&5
a848cd7e
SC
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } &&
6ebeb4c7 21010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21013 ac_status=$?
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; } &&
21016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21019 ac_status=$?
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_sys_large_files=1
21023else
21024 echo "$as_me: failed program was:" >&5
21025sed 's/^/| /' conftest.$ac_ext >&5
21026
21027ac_cv_sys_large_files=no
21028fi
ac1cb8d3 21029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21030
21031
21032fi
21033echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21034echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21035
21036 if test "$ac_cv_sys_large_files" != no; then
21037 wx_largefile=yes
21038 cat >>confdefs.h <<_ACEOF
21039#define _LARGE_FILES $ac_cv_sys_large_files
21040_ACEOF
21041
21042 fi
21043
21044 fi
21045
21046 echo "$as_me:$LINENO: checking if large file support is available" >&5
21047echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21048 if test "x$wx_largefile" = "xyes"; then
21049 cat >>confdefs.h <<\_ACEOF
21050#define HAVE_LARGEFILE_SUPPORT 1
21051_ACEOF
21052
21053 fi
21054 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21055echo "${ECHO_T}$wx_largefile" >&6
21056fi
21057
5b674b9d
DE
21058
21059if test "x$wx_largefile" = "xyes"; then
21060 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
21061 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21062
21063 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21064 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21065echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21066if test "${wx_cv_STDC_EXT_required+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21068else
21069
21070
21071
21072 ac_ext=cc
21073ac_cpp='$CXXCPP $CPPFLAGS'
21074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21077
21078 cat >conftest.$ac_ext <<_ACEOF
21079/* confdefs.h. */
21080_ACEOF
21081cat confdefs.h >>conftest.$ac_ext
21082cat >>conftest.$ac_ext <<_ACEOF
21083/* end confdefs.h. */
21084
21085int
21086main ()
21087{
21088
21089 #ifndef __STDC_EXT__
21090 choke me
21091 #endif
21092
21093 ;
21094 return 0;
21095}
21096_ACEOF
21097rm -f conftest.$ac_objext
21098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21099 (eval $ac_compile) 2>conftest.er1
21100 ac_status=$?
21101 grep -v '^ *+' conftest.er1 >conftest.err
21102 rm -f conftest.er1
21103 cat conftest.err >&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } &&
21106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21109 ac_status=$?
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; } &&
21112 { ac_try='test -s conftest.$ac_objext'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; }; then
21118 wx_cv_STDC_EXT_required=no
21119else
21120 echo "$as_me: failed program was:" >&5
21121sed 's/^/| /' conftest.$ac_ext >&5
21122
21123wx_cv_STDC_EXT_required=yes
21124
21125fi
21126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21127 ac_ext=c
21128ac_cpp='$CPP $CPPFLAGS'
21129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21131ac_compiler_gnu=$ac_cv_c_compiler_gnu
21132
21133
21134
21135fi
21136echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21137echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21138 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
21139 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
21140 fi
21141 fi
5b674b9d
DE
21142 else
21143 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
21144 fi
21145 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21146echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21147if test "${ac_cv_sys_largefile_source+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149else
21150 while :; do
21151 ac_cv_sys_largefile_source=no
21152 cat >conftest.$ac_ext <<_ACEOF
21153/* confdefs.h. */
21154_ACEOF
21155cat confdefs.h >>conftest.$ac_ext
21156cat >>conftest.$ac_ext <<_ACEOF
21157/* end confdefs.h. */
21158#include <stdio.h>
21159int
21160main ()
21161{
21162return !fseeko;
21163 ;
21164 return 0;
21165}
21166_ACEOF
21167rm -f conftest.$ac_objext
21168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21169 (eval $ac_compile) 2>conftest.er1
21170 ac_status=$?
21171 grep -v '^ *+' conftest.er1 >conftest.err
21172 rm -f conftest.er1
21173 cat conftest.err >&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } &&
6ebeb4c7 21176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; } &&
21182 { ac_try='test -s conftest.$ac_objext'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; }; then
21188 break
21189else
21190 echo "$as_me: failed program was:" >&5
21191sed 's/^/| /' conftest.$ac_ext >&5
21192
21193fi
21194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21195 cat >conftest.$ac_ext <<_ACEOF
21196/* confdefs.h. */
21197_ACEOF
21198cat confdefs.h >>conftest.$ac_ext
21199cat >>conftest.$ac_ext <<_ACEOF
21200/* end confdefs.h. */
21201#define _LARGEFILE_SOURCE 1
21202#include <stdio.h>
21203int
21204main ()
21205{
21206return !fseeko;
21207 ;
21208 return 0;
21209}
21210_ACEOF
21211rm -f conftest.$ac_objext
21212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21213 (eval $ac_compile) 2>conftest.er1
21214 ac_status=$?
21215 grep -v '^ *+' conftest.er1 >conftest.err
21216 rm -f conftest.er1
21217 cat conftest.err >&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } &&
6ebeb4c7 21220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222 (eval $ac_try) 2>&5
21223 ac_status=$?
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; } &&
21226 { ac_try='test -s conftest.$ac_objext'
21227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21228 (eval $ac_try) 2>&5
21229 ac_status=$?
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); }; }; then
21232 ac_cv_sys_largefile_source=1; break
21233else
21234 echo "$as_me: failed program was:" >&5
21235sed 's/^/| /' conftest.$ac_ext >&5
21236
21237fi
21238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21239 break
21240done
21241fi
21242echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21243echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21244if test "$ac_cv_sys_largefile_source" != no; then
21245
21246cat >>confdefs.h <<_ACEOF
21247#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21248_ACEOF
21249
21250fi
21251rm -f conftest*
21252
21253# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21254# in glibc 2.1.3, but that breaks too many other things.
21255# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21256echo "$as_me:$LINENO: checking for fseeko" >&5
21257echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21258if test "${ac_cv_func_fseeko+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21260else
21261 cat >conftest.$ac_ext <<_ACEOF
21262/* confdefs.h. */
21263_ACEOF
21264cat confdefs.h >>conftest.$ac_ext
21265cat >>conftest.$ac_ext <<_ACEOF
21266/* end confdefs.h. */
21267#include <stdio.h>
21268int
21269main ()
21270{
21271return fseeko && fseeko (stdin, 0, 0);
21272 ;
21273 return 0;
21274}
21275_ACEOF
21276rm -f conftest.$ac_objext conftest$ac_exeext
21277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21278 (eval $ac_link) 2>conftest.er1
21279 ac_status=$?
21280 grep -v '^ *+' conftest.er1 >conftest.err
21281 rm -f conftest.er1
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
6ebeb4c7 21285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21288 ac_status=$?
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; } &&
21291 { ac_try='test -s conftest$ac_exeext'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; }; then
21297 ac_cv_func_fseeko=yes
21298else
21299 echo "$as_me: failed program was:" >&5
21300sed 's/^/| /' conftest.$ac_ext >&5
21301
21302ac_cv_func_fseeko=no
21303fi
21304rm -f conftest.err conftest.$ac_objext \
21305 conftest$ac_exeext conftest.$ac_ext
21306fi
21307echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21308echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21309if test $ac_cv_func_fseeko = yes; then
21310
21311cat >>confdefs.h <<\_ACEOF
21312#define HAVE_FSEEKO 1
21313_ACEOF
21314
21315fi
21316
5b674b9d
DE
21317 if test "$ac_cv_sys_largefile_source" != no; then
21318 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
21319 fi
21320 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
21321fi
21322
21323echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21324echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21325if test "${ac_cv_c_bigendian+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21327else
21328 ac_cv_c_bigendian=unknown
21329# See if sys/param.h defines the BYTE_ORDER macro.
21330cat >conftest.$ac_ext <<_ACEOF
21331/* confdefs.h. */
21332_ACEOF
21333cat confdefs.h >>conftest.$ac_ext
21334cat >>conftest.$ac_ext <<_ACEOF
21335/* end confdefs.h. */
21336#include <sys/types.h>
21337#include <sys/param.h>
21338int
21339main ()
21340{
21341
21342#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21343 bogus endian macros
21344#endif
21345 ;
21346 return 0;
21347}
21348_ACEOF
21349rm -f conftest.$ac_objext
21350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21351 (eval $ac_compile) 2>conftest.er1
a848cd7e 21352 ac_status=$?
ac1cb8d3
VS
21353 grep -v '^ *+' conftest.er1 >conftest.err
21354 rm -f conftest.er1
21355 cat conftest.err >&5
a848cd7e
SC
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } &&
6ebeb4c7 21358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; } &&
21364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21367 ac_status=$?
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; }; then
21370 # It does; now see whether it defined to BIG_ENDIAN or not.
21371cat >conftest.$ac_ext <<_ACEOF
21372/* confdefs.h. */
21373_ACEOF
21374cat confdefs.h >>conftest.$ac_ext
21375cat >>conftest.$ac_ext <<_ACEOF
21376/* end confdefs.h. */
21377#include <sys/types.h>
21378#include <sys/param.h>
21379int
21380main ()
21381{
21382
21383#if BYTE_ORDER != BIG_ENDIAN
21384 not big endian
21385#endif
21386 ;
21387 return 0;
21388}
21389_ACEOF
21390rm -f conftest.$ac_objext
21391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21392 (eval $ac_compile) 2>conftest.er1
a848cd7e 21393 ac_status=$?
ac1cb8d3
VS
21394 grep -v '^ *+' conftest.er1 >conftest.err
21395 rm -f conftest.er1
21396 cat conftest.err >&5
a848cd7e
SC
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } &&
6ebeb4c7 21399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401 (eval $ac_try) 2>&5
21402 ac_status=$?
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; } &&
21405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21408 ac_status=$?
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; }; then
21411 ac_cv_c_bigendian=yes
21412else
21413 echo "$as_me: failed program was:" >&5
21414sed 's/^/| /' conftest.$ac_ext >&5
21415
21416ac_cv_c_bigendian=no
21417fi
ac1cb8d3 21418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21419else
21420 echo "$as_me: failed program was:" >&5
21421sed 's/^/| /' conftest.$ac_ext >&5
21422
21423fi
ac1cb8d3 21424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21425if test $ac_cv_c_bigendian = unknown; then
21426if test "$cross_compiling" = yes; then
21427 ac_cv_c_bigendian=unknown
21428else
21429 cat >conftest.$ac_ext <<_ACEOF
21430/* confdefs.h. */
21431_ACEOF
21432cat confdefs.h >>conftest.$ac_ext
21433cat >>conftest.$ac_ext <<_ACEOF
21434/* end confdefs.h. */
21435main () {
21436 /* Are we little or big endian? From Harbison&Steele. */
21437 union
21438 {
21439 long l;
21440 char c[sizeof (long)];
21441 } u;
21442 u.l = 1;
21443 exit (u.c[sizeof (long) - 1] == 1);
21444}
21445_ACEOF
21446rm -f conftest$ac_exeext
21447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21448 (eval $ac_link) 2>&5
21449 ac_status=$?
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453 (eval $ac_try) 2>&5
21454 ac_status=$?
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; }; then
21457 ac_cv_c_bigendian=no
21458else
21459 echo "$as_me: program exited with status $ac_status" >&5
21460echo "$as_me: failed program was:" >&5
21461sed 's/^/| /' conftest.$ac_ext >&5
21462
21463( exit $ac_status )
21464ac_cv_c_bigendian=yes
21465fi
ac1cb8d3 21466rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21467fi
21468fi
21469fi
21470echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21471echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21472if test $ac_cv_c_bigendian = unknown; then
21473 { 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
21474echo "$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;}
21475fi
21476if test $ac_cv_c_bigendian = yes; then
21477 cat >>confdefs.h <<\_ACEOF
21478#define WORDS_BIGENDIAN 1
21479_ACEOF
21480
21481fi
21482
21483
21484ac_ext=cc
21485ac_cpp='$CXXCPP $CPPFLAGS'
21486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21489echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21490echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21491if test -z "$CXXCPP"; then
21492 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21493 echo $ECHO_N "(cached) $ECHO_C" >&6
21494else
21495 # Double quotes because CXXCPP needs to be expanded
21496 for CXXCPP in "$CXX -E" "/lib/cpp"
21497 do
21498 ac_preproc_ok=false
21499for ac_cxx_preproc_warn_flag in '' yes
21500do
21501 # Use a header file that comes with gcc, so configuring glibc
21502 # with a fresh cross-compiler works.
21503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21504 # <limits.h> exists even on freestanding compilers.
21505 # On the NeXT, cc -E runs the code through the compiler's parser,
21506 # not just through cpp. "Syntax error" is here to catch this case.
21507 cat >conftest.$ac_ext <<_ACEOF
21508/* confdefs.h. */
21509_ACEOF
21510cat confdefs.h >>conftest.$ac_ext
21511cat >>conftest.$ac_ext <<_ACEOF
21512/* end confdefs.h. */
21513#ifdef __STDC__
21514# include <limits.h>
21515#else
21516# include <assert.h>
21517#endif
ac1cb8d3 21518 Syntax error
a848cd7e
SC
21519_ACEOF
21520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21522 ac_status=$?
21523 grep -v '^ *+' conftest.er1 >conftest.err
21524 rm -f conftest.er1
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } >/dev/null; then
21528 if test -s conftest.err; then
21529 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21530 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21531 else
21532 ac_cpp_err=
21533 fi
21534else
21535 ac_cpp_err=yes
21536fi
21537if test -z "$ac_cpp_err"; then
21538 :
21539else
21540 echo "$as_me: failed program was:" >&5
21541sed 's/^/| /' conftest.$ac_ext >&5
21542
21543 # Broken: fails on valid input.
21544continue
21545fi
21546rm -f conftest.err conftest.$ac_ext
21547
21548 # OK, works on sane cases. Now check whether non-existent headers
21549 # can be detected and how.
21550 cat >conftest.$ac_ext <<_ACEOF
21551/* confdefs.h. */
21552_ACEOF
21553cat confdefs.h >>conftest.$ac_ext
21554cat >>conftest.$ac_ext <<_ACEOF
21555/* end confdefs.h. */
21556#include <ac_nonexistent.h>
21557_ACEOF
21558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21560 ac_status=$?
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } >/dev/null; then
21566 if test -s conftest.err; then
21567 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21568 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21569 else
21570 ac_cpp_err=
21571 fi
21572else
21573 ac_cpp_err=yes
21574fi
21575if test -z "$ac_cpp_err"; then
21576 # Broken: success on invalid input.
21577continue
21578else
21579 echo "$as_me: failed program was:" >&5
21580sed 's/^/| /' conftest.$ac_ext >&5
21581
21582 # Passes both tests.
21583ac_preproc_ok=:
21584break
21585fi
21586rm -f conftest.err conftest.$ac_ext
21587
21588done
21589# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21590rm -f conftest.err conftest.$ac_ext
21591if $ac_preproc_ok; then
21592 break
21593fi
21594
21595 done
21596 ac_cv_prog_CXXCPP=$CXXCPP
21597
21598fi
21599 CXXCPP=$ac_cv_prog_CXXCPP
21600else
21601 ac_cv_prog_CXXCPP=$CXXCPP
21602fi
21603echo "$as_me:$LINENO: result: $CXXCPP" >&5
21604echo "${ECHO_T}$CXXCPP" >&6
21605ac_preproc_ok=false
21606for ac_cxx_preproc_warn_flag in '' yes
21607do
21608 # Use a header file that comes with gcc, so configuring glibc
21609 # with a fresh cross-compiler works.
21610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21611 # <limits.h> exists even on freestanding compilers.
21612 # On the NeXT, cc -E runs the code through the compiler's parser,
21613 # not just through cpp. "Syntax error" is here to catch this case.
21614 cat >conftest.$ac_ext <<_ACEOF
21615/* confdefs.h. */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h. */
21620#ifdef __STDC__
21621# include <limits.h>
21622#else
21623# include <assert.h>
21624#endif
ac1cb8d3 21625 Syntax error
a848cd7e
SC
21626_ACEOF
21627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21629 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } >/dev/null; then
21635 if test -s conftest.err; then
21636 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21637 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21638 else
21639 ac_cpp_err=
21640 fi
21641else
21642 ac_cpp_err=yes
21643fi
21644if test -z "$ac_cpp_err"; then
21645 :
21646else
21647 echo "$as_me: failed program was:" >&5
21648sed 's/^/| /' conftest.$ac_ext >&5
21649
21650 # Broken: fails on valid input.
21651continue
21652fi
21653rm -f conftest.err conftest.$ac_ext
21654
21655 # OK, works on sane cases. Now check whether non-existent headers
21656 # can be detected and how.
21657 cat >conftest.$ac_ext <<_ACEOF
21658/* confdefs.h. */
21659_ACEOF
21660cat confdefs.h >>conftest.$ac_ext
21661cat >>conftest.$ac_ext <<_ACEOF
21662/* end confdefs.h. */
21663#include <ac_nonexistent.h>
21664_ACEOF
21665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21667 ac_status=$?
21668 grep -v '^ *+' conftest.er1 >conftest.err
21669 rm -f conftest.er1
21670 cat conftest.err >&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } >/dev/null; then
21673 if test -s conftest.err; then
21674 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21675 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21676 else
21677 ac_cpp_err=
21678 fi
21679else
21680 ac_cpp_err=yes
21681fi
21682if test -z "$ac_cpp_err"; then
21683 # Broken: success on invalid input.
21684continue
21685else
21686 echo "$as_me: failed program was:" >&5
21687sed 's/^/| /' conftest.$ac_ext >&5
21688
21689 # Passes both tests.
21690ac_preproc_ok=:
21691break
21692fi
21693rm -f conftest.err conftest.$ac_ext
21694
21695done
21696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21697rm -f conftest.err conftest.$ac_ext
21698if $ac_preproc_ok; then
21699 :
21700else
21701 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21702See \`config.log' for more details." >&5
21703echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21704See \`config.log' for more details." >&2;}
21705 { (exit 1); exit 1; }; }
21706fi
21707
21708ac_ext=cc
21709ac_cpp='$CXXCPP $CPPFLAGS'
21710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21713
21714
21715
21716
21717
21718 ac_ext=cc
21719ac_cpp='$CXXCPP $CPPFLAGS'
21720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21723
21724
21725
21726for ac_header in iostream
21727do
21728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21729if eval "test \"\${$as_ac_Header+set}\" = set"; then
21730 echo "$as_me:$LINENO: checking for $ac_header" >&5
21731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21732if eval "test \"\${$as_ac_Header+set}\" = set"; then
21733 echo $ECHO_N "(cached) $ECHO_C" >&6
21734fi
21735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21737else
21738 # Is the header compilable?
21739echo "$as_me:$LINENO: checking $ac_header usability" >&5
21740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21741cat >conftest.$ac_ext <<_ACEOF
21742/* confdefs.h. */
21743_ACEOF
21744cat confdefs.h >>conftest.$ac_ext
21745cat >>conftest.$ac_ext <<_ACEOF
21746/* end confdefs.h. */
21747$ac_includes_default
21748#include <$ac_header>
21749_ACEOF
21750rm -f conftest.$ac_objext
21751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21752 (eval $ac_compile) 2>conftest.er1
a848cd7e 21753 ac_status=$?
ac1cb8d3
VS
21754 grep -v '^ *+' conftest.er1 >conftest.err
21755 rm -f conftest.er1
21756 cat conftest.err >&5
a848cd7e
SC
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); } &&
6ebeb4c7 21759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } &&
21765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 ac_header_compiler=yes
21772else
21773 echo "$as_me: failed program was:" >&5
21774sed 's/^/| /' conftest.$ac_ext >&5
21775
21776ac_header_compiler=no
21777fi
ac1cb8d3 21778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21779echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21780echo "${ECHO_T}$ac_header_compiler" >&6
21781
21782# Is the header present?
21783echo "$as_me:$LINENO: checking $ac_header presence" >&5
21784echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21785cat >conftest.$ac_ext <<_ACEOF
21786/* confdefs.h. */
21787_ACEOF
21788cat confdefs.h >>conftest.$ac_ext
21789cat >>conftest.$ac_ext <<_ACEOF
21790/* end confdefs.h. */
21791#include <$ac_header>
21792_ACEOF
21793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21795 ac_status=$?
21796 grep -v '^ *+' conftest.er1 >conftest.err
21797 rm -f conftest.er1
21798 cat conftest.err >&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } >/dev/null; then
21801 if test -s conftest.err; then
21802 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21803 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21804 else
21805 ac_cpp_err=
21806 fi
21807else
21808 ac_cpp_err=yes
21809fi
21810if test -z "$ac_cpp_err"; then
21811 ac_header_preproc=yes
21812else
21813 echo "$as_me: failed program was:" >&5
21814sed 's/^/| /' conftest.$ac_ext >&5
21815
21816 ac_header_preproc=no
21817fi
21818rm -f conftest.err conftest.$ac_ext
21819echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21820echo "${ECHO_T}$ac_header_preproc" >&6
21821
21822# So? What about this header?
ac1cb8d3
VS
21823case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21824 yes:no: )
a848cd7e
SC
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21826echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21828echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21829 ac_header_preproc=yes
a848cd7e 21830 ;;
ac1cb8d3 21831 no:yes:* )
a848cd7e
SC
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21833echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21835echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21837echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21839echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21841echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21843echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21844 (
21845 cat <<\_ASBOX
ac1cb8d3
VS
21846## ----------------------------------------- ##
21847## Report this to wx-dev@lists.wxwidgets.org ##
21848## ----------------------------------------- ##
a848cd7e
SC
21849_ASBOX
21850 ) |
21851 sed "s/^/$as_me: WARNING: /" >&2
21852 ;;
21853esac
21854echo "$as_me:$LINENO: checking for $ac_header" >&5
21855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21856if eval "test \"\${$as_ac_Header+set}\" = set"; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858else
ac1cb8d3 21859 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21860fi
21861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21862echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21863
21864fi
21865if test `eval echo '${'$as_ac_Header'}'` = yes; then
21866 cat >>confdefs.h <<_ACEOF
21867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21868_ACEOF
21869
21870fi
21871
21872done
21873
21874
21875 if test "$ac_cv_header_iostream" = "yes" ; then
21876 :
21877 else
21878 cat >>confdefs.h <<\_ACEOF
21879#define wxUSE_IOSTREAMH 1
21880_ACEOF
21881
21882 fi
21883
21884 ac_ext=c
21885ac_cpp='$CPP $CPPFLAGS'
21886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21888ac_compiler_gnu=$ac_cv_c_compiler_gnu
21889
21890
21891
21892
21893 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21894echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21895if test "${wx_cv_cpp_bool+set}" = set; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21897else
21898
21899
21900
21901 ac_ext=cc
21902ac_cpp='$CXXCPP $CPPFLAGS'
21903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21906
21907
21908 cat >conftest.$ac_ext <<_ACEOF
21909/* confdefs.h. */
21910_ACEOF
21911cat confdefs.h >>conftest.$ac_ext
21912cat >>conftest.$ac_ext <<_ACEOF
21913/* end confdefs.h. */
21914
21915
21916int
21917main ()
21918{
21919
21920 bool b = true;
21921
21922 return 0;
21923
21924 ;
21925 return 0;
21926}
21927_ACEOF
21928rm -f conftest.$ac_objext
21929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21930 (eval $ac_compile) 2>conftest.er1
a848cd7e 21931 ac_status=$?
ac1cb8d3
VS
21932 grep -v '^ *+' conftest.er1 >conftest.err
21933 rm -f conftest.er1
21934 cat conftest.err >&5
a848cd7e
SC
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); } &&
6ebeb4c7 21937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939 (eval $ac_try) 2>&5
21940 ac_status=$?
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; } &&
21943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945 (eval $ac_try) 2>&5
21946 ac_status=$?
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; }; then
21949
21950 wx_cv_cpp_bool=yes
21951
21952else
21953 echo "$as_me: failed program was:" >&5
21954sed 's/^/| /' conftest.$ac_ext >&5
21955
21956
21957 wx_cv_cpp_bool=no
21958
21959
21960fi
ac1cb8d3 21961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21962
21963 ac_ext=c
21964ac_cpp='$CPP $CPPFLAGS'
21965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21967ac_compiler_gnu=$ac_cv_c_compiler_gnu
21968
21969
21970fi
21971echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
21972echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21973
21974 if test "$wx_cv_cpp_bool" = "yes"; then
21975 cat >>confdefs.h <<\_ACEOF
21976#define HAVE_BOOL 1
21977_ACEOF
21978
21979 fi
21980
21981
21982
21983 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
21984echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
21985if test "${wx_cv_explicit+set}" = set; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21987else
21988
21989
21990
21991 ac_ext=cc
21992ac_cpp='$CXXCPP $CPPFLAGS'
21993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21996
21997
21998 cat >conftest.$ac_ext <<_ACEOF
21999/* confdefs.h. */
22000_ACEOF
22001cat confdefs.h >>conftest.$ac_ext
22002cat >>conftest.$ac_ext <<_ACEOF
22003/* end confdefs.h. */
22004
22005 class Foo { public: explicit Foo(int) {} };
22006
22007int
22008main ()
22009{
22010
22011 return 0;
22012
22013 ;
22014 return 0;
22015}
22016_ACEOF
22017rm -f conftest.$ac_objext
22018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22019 (eval $ac_compile) 2>conftest.er1
a848cd7e 22020 ac_status=$?
ac1cb8d3
VS
22021 grep -v '^ *+' conftest.er1 >conftest.err
22022 rm -f conftest.er1
22023 cat conftest.err >&5
a848cd7e
SC
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); } &&
6ebeb4c7 22026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028 (eval $ac_try) 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; } &&
22032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034 (eval $ac_try) 2>&5
22035 ac_status=$?
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; }; then
22038
22039 cat >conftest.$ac_ext <<_ACEOF
22040/* confdefs.h. */
22041_ACEOF
22042cat confdefs.h >>conftest.$ac_ext
22043cat >>conftest.$ac_ext <<_ACEOF
22044/* end confdefs.h. */
22045
22046 class Foo { public: explicit Foo(int) {} };
22047 static void TakeFoo(const Foo& foo) { }
22048
22049int
22050main ()
22051{
22052
22053 TakeFoo(17);
22054 return 0;
22055
22056 ;
22057 return 0;
22058}
22059_ACEOF
22060rm -f conftest.$ac_objext
22061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22062 (eval $ac_compile) 2>conftest.er1
a848cd7e 22063 ac_status=$?
ac1cb8d3
VS
22064 grep -v '^ *+' conftest.er1 >conftest.err
22065 rm -f conftest.er1
22066 cat conftest.err >&5
a848cd7e
SC
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
6ebeb4c7 22069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071 (eval $ac_try) 2>&5
22072 ac_status=$?
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; } &&
22075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077 (eval $ac_try) 2>&5
22078 ac_status=$?
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; }; then
22081 wx_cv_explicit=no
22082else
22083 echo "$as_me: failed program was:" >&5
22084sed 's/^/| /' conftest.$ac_ext >&5
22085
22086wx_cv_explicit=yes
22087
22088fi
ac1cb8d3 22089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22090
22091else
22092 echo "$as_me: failed program was:" >&5
22093sed 's/^/| /' conftest.$ac_ext >&5
22094
22095wx_cv_explicit=no
22096
22097fi
ac1cb8d3 22098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22099
22100 ac_ext=c
22101ac_cpp='$CPP $CPPFLAGS'
22102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22104ac_compiler_gnu=$ac_cv_c_compiler_gnu
22105
22106
22107fi
22108echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22109echo "${ECHO_T}$wx_cv_explicit" >&6
22110
22111 if test "$wx_cv_explicit" = "yes"; then
22112 cat >>confdefs.h <<\_ACEOF
22113#define HAVE_EXPLICIT 1
22114_ACEOF
22115
22116 fi
22117
22118
22119echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22120echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22121if test "${ac_cv_cxx_const_cast+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22123else
22124
22125
22126 ac_ext=cc
22127ac_cpp='$CXXCPP $CPPFLAGS'
22128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22131
22132 cat >conftest.$ac_ext <<_ACEOF
22133/* confdefs.h. */
22134_ACEOF
22135cat confdefs.h >>conftest.$ac_ext
22136cat >>conftest.$ac_ext <<_ACEOF
22137/* end confdefs.h. */
22138
22139int
22140main ()
22141{
22142int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22143 ;
22144 return 0;
22145}
22146_ACEOF
22147rm -f conftest.$ac_objext
22148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22149 (eval $ac_compile) 2>conftest.er1
a848cd7e 22150 ac_status=$?
ac1cb8d3
VS
22151 grep -v '^ *+' conftest.er1 >conftest.err
22152 rm -f conftest.er1
22153 cat conftest.err >&5
a848cd7e
SC
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); } &&
6ebeb4c7 22156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158 (eval $ac_try) 2>&5
22159 ac_status=$?
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; } &&
22162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
22165 ac_status=$?
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; }; then
22168 ac_cv_cxx_const_cast=yes
22169else
22170 echo "$as_me: failed program was:" >&5
22171sed 's/^/| /' conftest.$ac_ext >&5
22172
22173ac_cv_cxx_const_cast=no
22174fi
ac1cb8d3 22175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22176 ac_ext=c
22177ac_cpp='$CPP $CPPFLAGS'
22178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22180ac_compiler_gnu=$ac_cv_c_compiler_gnu
22181
22182
22183fi
22184echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22185echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22186if test "$ac_cv_cxx_const_cast" = yes; then
22187
22188cat >>confdefs.h <<\_ACEOF
22189#define HAVE_CONST_CAST
22190_ACEOF
22191
22192fi
22193
7714864e
RL
22194echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22195echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22196if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22198else
22199
22200
22201 ac_ext=cc
22202ac_cpp='$CXXCPP $CPPFLAGS'
22203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22206
22207 cat >conftest.$ac_ext <<_ACEOF
22208/* confdefs.h. */
22209_ACEOF
22210cat confdefs.h >>conftest.$ac_ext
22211cat >>conftest.$ac_ext <<_ACEOF
22212/* end confdefs.h. */
22213#include <typeinfo>
22214class Base { public : Base () {} virtual void f () = 0;};
22215class Derived : public Base { public : Derived () {} virtual void f () {} };
22216class Unrelated { public : Unrelated () {} };
22217int g (Unrelated&) { return 0; }
22218int
22219main ()
22220{
22221
22222Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22223 ;
22224 return 0;
22225}
22226_ACEOF
22227rm -f conftest.$ac_objext
22228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22229 (eval $ac_compile) 2>conftest.er1
22230 ac_status=$?
22231 grep -v '^ *+' conftest.er1 >conftest.err
22232 rm -f conftest.er1
22233 cat conftest.err >&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); } &&
6ebeb4c7 22236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22238 (eval $ac_try) 2>&5
22239 ac_status=$?
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); }; } &&
22242 { ac_try='test -s conftest.$ac_objext'
22243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22244 (eval $ac_try) 2>&5
22245 ac_status=$?
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; }; then
22248 ac_cv_cxx_reinterpret_cast=yes
22249else
22250 echo "$as_me: failed program was:" >&5
22251sed 's/^/| /' conftest.$ac_ext >&5
22252
22253ac_cv_cxx_reinterpret_cast=no
22254fi
22255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22256 ac_ext=c
22257ac_cpp='$CPP $CPPFLAGS'
22258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22260ac_compiler_gnu=$ac_cv_c_compiler_gnu
22261
22262
22263fi
22264echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22265echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22266if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22267
22268cat >>confdefs.h <<\_ACEOF
22269#define HAVE_REINTERPRET_CAST
22270_ACEOF
22271
22272fi
22273
a848cd7e
SC
22274echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22275echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22276if test "${ac_cv_cxx_static_cast+set}" = set; then
22277 echo $ECHO_N "(cached) $ECHO_C" >&6
22278else
22279
22280
22281 ac_ext=cc
22282ac_cpp='$CXXCPP $CPPFLAGS'
22283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22286
22287 cat >conftest.$ac_ext <<_ACEOF
22288/* confdefs.h. */
22289_ACEOF
22290cat confdefs.h >>conftest.$ac_ext
22291cat >>conftest.$ac_ext <<_ACEOF
22292/* end confdefs.h. */
22293#include <typeinfo>
22294class Base { public : Base () {} virtual void f () = 0; };
22295class Derived : public Base { public : Derived () {} virtual void f () {} };
22296int g (Derived&) { return 0; }
22297int
22298main ()
22299{
22300
22301Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22302 ;
22303 return 0;
22304}
22305_ACEOF
22306rm -f conftest.$ac_objext
22307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22308 (eval $ac_compile) 2>conftest.er1
a848cd7e 22309 ac_status=$?
ac1cb8d3
VS
22310 grep -v '^ *+' conftest.er1 >conftest.err
22311 rm -f conftest.er1
22312 cat conftest.err >&5
a848cd7e
SC
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); } &&
6ebeb4c7 22315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317 (eval $ac_try) 2>&5
22318 ac_status=$?
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); }; } &&
22321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; }; then
22327 ac_cv_cxx_static_cast=yes
22328else
22329 echo "$as_me: failed program was:" >&5
22330sed 's/^/| /' conftest.$ac_ext >&5
22331
22332ac_cv_cxx_static_cast=no
22333fi
ac1cb8d3 22334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22335 ac_ext=c
22336ac_cpp='$CPP $CPPFLAGS'
22337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22339ac_compiler_gnu=$ac_cv_c_compiler_gnu
22340
22341
22342fi
22343echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22344echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22345if test "$ac_cv_cxx_static_cast" = yes; then
22346
22347cat >>confdefs.h <<\_ACEOF
22348#define HAVE_STATIC_CAST
22349_ACEOF
22350
22351fi
22352
22353
3c28b7cb
MW
22354if test "x$SUNCXX" = xyes; then
22355 CXXFLAGS="$CXXFLAGS -features=tmplife"
22356fi
22357
9122d155
VZ
22358if test "x$SUNCC" = xyes; then
22359 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
22360fi
22361
0ad5d837
VZ
22362if test "x$SGICC" = "xyes"; then
22363 CFLAGS="$CFLAGS -woff 3970"
22364fi
22365if test "x$SGICXX" = "xyes"; then
22366 CXXFLAGS="$CXXFLAGS -woff 3970"
22367fi
22368
2eef8513
VZ
22369if test "x$HPCC" = "xyes"; then
22370 CFLAGS="$CFLAGS +W 2011,2450"
22371fi
22372if test "x$HPCXX" = "xyes"; then
22373 CXXFLAGS="$CXXFLAGS +W 2340"
22374fi
22375
22376if test "x$COMPAQCXX" = "xyes"; then
22377 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22378fi
22379
f56c22b4 22380if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22381 ac_ext=cc
22382ac_cpp='$CXXCPP $CPPFLAGS'
22383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22386
22387
f56c22b4
MW
22388 if test "$wxUSE_UNICODE" = "yes"; then
22389 std_string="std::wstring"
22390 char_type="wchar_t"
22391 else
22392 std_string="std::string"
22393 char_type="char"
22394 fi
22395
22396 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22397echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22398 cat >conftest.$ac_ext <<_ACEOF
22399/* confdefs.h. */
22400_ACEOF
22401cat confdefs.h >>conftest.$ac_ext
22402cat >>conftest.$ac_ext <<_ACEOF
22403/* end confdefs.h. */
22404#include <string>
a848cd7e
SC
22405int
22406main ()
22407{
f56c22b4 22408$std_string foo;
a848cd7e
SC
22409 ;
22410 return 0;
22411}
22412_ACEOF
22413rm -f conftest.$ac_objext
22414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22415 (eval $ac_compile) 2>conftest.er1
a848cd7e 22416 ac_status=$?
ac1cb8d3
VS
22417 grep -v '^ *+' conftest.er1 >conftest.err
22418 rm -f conftest.er1
22419 cat conftest.err >&5
a848cd7e
SC
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } &&
6ebeb4c7 22422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424 (eval $ac_try) 2>&5
22425 ac_status=$?
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; } &&
22428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430 (eval $ac_try) 2>&5
22431 ac_status=$?
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }; then
22434 echo "$as_me:$LINENO: result: yes" >&5
22435echo "${ECHO_T}yes" >&6
0a08f02a
MB
22436 cat >>confdefs.h <<\_ACEOF
22437#define HAVE_STD_WSTRING 1
22438_ACEOF
22439
a848cd7e
SC
22440else
22441 echo "$as_me: failed program was:" >&5
22442sed 's/^/| /' conftest.$ac_ext >&5
22443
22444echo "$as_me:$LINENO: result: no" >&5
22445echo "${ECHO_T}no" >&6
f56c22b4
MW
22446 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22447echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22448 cat >conftest.$ac_ext <<_ACEOF
22449/* confdefs.h. */
22450_ACEOF
22451cat confdefs.h >>conftest.$ac_ext
22452cat >>conftest.$ac_ext <<_ACEOF
22453/* end confdefs.h. */
22454
22455 #ifdef HAVE_WCHAR_H
22456 # ifdef __CYGWIN__
22457 # include <stddef.h>
22458 # endif
22459 # include <wchar.h>
22460 #endif
22461 #ifdef HAVE_STDLIB_H
22462 # include <stdlib.h>
22463 #endif
22464 #include <stdio.h>
22465 #include <string>
22466
22467int
22468main ()
22469{
f56c22b4
MW
22470std::basic_string<$char_type> foo;
22471 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22472 ;
22473 return 0;
22474}
22475_ACEOF
22476rm -f conftest.$ac_objext
22477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22478 (eval $ac_compile) 2>conftest.er1
22479 ac_status=$?
22480 grep -v '^ *+' conftest.er1 >conftest.err
22481 rm -f conftest.er1
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } &&
6ebeb4c7 22485 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487 (eval $ac_try) 2>&5
22488 ac_status=$?
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; } &&
22491 { ac_try='test -s conftest.$ac_objext'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 echo "$as_me:$LINENO: result: yes" >&5
22498echo "${ECHO_T}yes" >&6
22499else
22500 echo "$as_me: failed program was:" >&5
22501sed 's/^/| /' conftest.$ac_ext >&5
22502
22503echo "$as_me:$LINENO: result: no" >&5
22504echo "${ECHO_T}no" >&6
f56c22b4 22505 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22506 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22507echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22508 { (exit 1); exit 1; }; }
22509 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22510 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22511echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22512 { (exit 1); exit 1; }; }
f56c22b4
MW
22513 else
22514 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22515echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22516 wxUSE_STD_STRING=no
22517 fi
22518
0a08f02a 22519
a848cd7e 22520fi
ac1cb8d3 22521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22522
0a08f02a
MB
22523fi
22524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22525
22526 ac_ext=c
22527ac_cpp='$CPP $CPPFLAGS'
22528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22530ac_compiler_gnu=$ac_cv_c_compiler_gnu
22531
22532fi
22533
22534if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22535 ac_ext=cc
22536ac_cpp='$CXXCPP $CPPFLAGS'
22537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22540
22541
22542 echo "$as_me:$LINENO: checking for std::istream" >&5
22543echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22544if test "${ac_cv_type_std__istream+set}" = set; then
22545 echo $ECHO_N "(cached) $ECHO_C" >&6
22546else
22547 cat >conftest.$ac_ext <<_ACEOF
22548/* confdefs.h. */
22549_ACEOF
22550cat confdefs.h >>conftest.$ac_ext
22551cat >>conftest.$ac_ext <<_ACEOF
22552/* end confdefs.h. */
22553#include <iostream>
22554
22555int
22556main ()
22557{
22558if ((std::istream *) 0)
22559 return 0;
22560if (sizeof (std::istream))
22561 return 0;
22562 ;
22563 return 0;
22564}
22565_ACEOF
22566rm -f conftest.$ac_objext
22567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22568 (eval $ac_compile) 2>conftest.er1
22569 ac_status=$?
22570 grep -v '^ *+' conftest.er1 >conftest.err
22571 rm -f conftest.er1
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } &&
6ebeb4c7 22575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577 (eval $ac_try) 2>&5
22578 ac_status=$?
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); }; } &&
22581 { ac_try='test -s conftest.$ac_objext'
22582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22583 (eval $ac_try) 2>&5
22584 ac_status=$?
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); }; }; then
22587 ac_cv_type_std__istream=yes
22588else
22589 echo "$as_me: failed program was:" >&5
22590sed 's/^/| /' conftest.$ac_ext >&5
22591
22592ac_cv_type_std__istream=no
22593fi
22594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22595fi
22596echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22597echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22598if test $ac_cv_type_std__istream = yes; then
22599
22600cat >>confdefs.h <<_ACEOF
22601#define HAVE_STD__ISTREAM 1
22602_ACEOF
22603
22604
22605else
22606 wxUSE_STD_IOSTREAM=no
22607fi
22608echo "$as_me:$LINENO: checking for std::ostream" >&5
22609echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22610if test "${ac_cv_type_std__ostream+set}" = set; then
22611 echo $ECHO_N "(cached) $ECHO_C" >&6
22612else
22613 cat >conftest.$ac_ext <<_ACEOF
22614/* confdefs.h. */
22615_ACEOF
22616cat confdefs.h >>conftest.$ac_ext
22617cat >>conftest.$ac_ext <<_ACEOF
22618/* end confdefs.h. */
22619#include <iostream>
22620
22621int
22622main ()
22623{
22624if ((std::ostream *) 0)
22625 return 0;
22626if (sizeof (std::ostream))
22627 return 0;
22628 ;
22629 return 0;
22630}
22631_ACEOF
22632rm -f conftest.$ac_objext
22633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22634 (eval $ac_compile) 2>conftest.er1
22635 ac_status=$?
22636 grep -v '^ *+' conftest.er1 >conftest.err
22637 rm -f conftest.er1
22638 cat conftest.err >&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); } &&
6ebeb4c7 22641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22643 (eval $ac_try) 2>&5
22644 ac_status=$?
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); }; } &&
22647 { ac_try='test -s conftest.$ac_objext'
22648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22649 (eval $ac_try) 2>&5
22650 ac_status=$?
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); }; }; then
22653 ac_cv_type_std__ostream=yes
22654else
22655 echo "$as_me: failed program was:" >&5
22656sed 's/^/| /' conftest.$ac_ext >&5
22657
22658ac_cv_type_std__ostream=no
22659fi
22660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22661fi
22662echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22663echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22664if test $ac_cv_type_std__ostream = yes; then
22665
22666cat >>confdefs.h <<_ACEOF
22667#define HAVE_STD__OSTREAM 1
22668_ACEOF
22669
22670
22671else
22672 wxUSE_STD_IOSTREAM=no
22673fi
22674
22675
22676 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22677 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22678 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22679echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22680 { (exit 1); exit 1; }; }
22681 else
22682 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22683echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22684 fi
f56c22b4
MW
22685 fi
22686
22687 ac_ext=c
22688ac_cpp='$CPP $CPPFLAGS'
22689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22691ac_compiler_gnu=$ac_cv_c_compiler_gnu
22692
22693fi
22694
22695if test "$wxUSE_STL" = "yes"; then
22696 ac_ext=cc
22697ac_cpp='$CXXCPP $CPPFLAGS'
22698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22701
22702
22703 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22704echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22705 cat >conftest.$ac_ext <<_ACEOF
22706/* confdefs.h. */
22707_ACEOF
22708cat confdefs.h >>conftest.$ac_ext
22709cat >>conftest.$ac_ext <<_ACEOF
22710/* end confdefs.h. */
22711#include <string>
0a08f02a
MB
22712 #include <functional>
22713 #include <algorithm>
22714 #include <vector>
22715 #include <list>
a848cd7e
SC
22716int
22717main ()
22718{
0a08f02a
MB
22719std::vector<int> moo;
22720 std::list<int> foo;
22721 std::vector<int>::iterator it =
22722 std::find_if(moo.begin(), moo.end(),
22723 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
22724 ;
22725 return 0;
22726}
22727_ACEOF
22728rm -f conftest.$ac_objext
22729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22730 (eval $ac_compile) 2>conftest.er1
a848cd7e 22731 ac_status=$?
ac1cb8d3
VS
22732 grep -v '^ *+' conftest.er1 >conftest.err
22733 rm -f conftest.er1
22734 cat conftest.err >&5
a848cd7e
SC
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } &&
6ebeb4c7 22737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; } &&
22743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22746 ac_status=$?
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; }; then
22749 echo "$as_me:$LINENO: result: yes" >&5
22750echo "${ECHO_T}yes" >&6
a848cd7e
SC
22751else
22752 echo "$as_me: failed program was:" >&5
22753sed 's/^/| /' conftest.$ac_ext >&5
22754
22755echo "$as_me:$LINENO: result: no" >&5
22756echo "${ECHO_T}no" >&6
0a08f02a
MB
22757 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22758echo "$as_me: error: Basic STL functionality missing" >&2;}
22759 { (exit 1); exit 1; }; }
a848cd7e 22760fi
ac1cb8d3 22761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22762
22763 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22764echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22765 cat >conftest.$ac_ext <<_ACEOF
22766/* confdefs.h. */
22767_ACEOF
22768cat confdefs.h >>conftest.$ac_ext
22769cat >>conftest.$ac_ext <<_ACEOF
22770/* end confdefs.h. */
22771#include <string>
22772int
22773main ()
22774{
22775std::string foo, bar;
22776 foo.compare(bar);
22777 foo.compare(1, 1, bar);
22778 foo.compare(1, 1, bar, 1, 1);
22779 foo.compare("");
22780 foo.compare(1, 1, "");
22781 foo.compare(1, 1, "", 2);
22782 ;
22783 return 0;
22784}
22785_ACEOF
22786rm -f conftest.$ac_objext
22787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22788 (eval $ac_compile) 2>conftest.er1
a848cd7e 22789 ac_status=$?
ac1cb8d3
VS
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
a848cd7e
SC
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } &&
6ebeb4c7 22795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797 (eval $ac_try) 2>&5
22798 ac_status=$?
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); }; } &&
22801 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22803 (eval $ac_try) 2>&5
22804 ac_status=$?
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); }; }; then
22807 echo "$as_me:$LINENO: result: yes" >&5
22808echo "${ECHO_T}yes" >&6
22809 cat >>confdefs.h <<\_ACEOF
22810#define HAVE_STD_STRING_COMPARE 1
22811_ACEOF
22812
22813else
22814 echo "$as_me: failed program was:" >&5
22815sed 's/^/| /' conftest.$ac_ext >&5
22816
22817echo "$as_me:$LINENO: result: no" >&5
22818echo "${ECHO_T}no" >&6
22819fi
ac1cb8d3 22820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22821
22822 if test "${ac_cv_header_hash_map+set}" = set; then
22823 echo "$as_me:$LINENO: checking for hash_map" >&5
22824echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22825if test "${ac_cv_header_hash_map+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22827fi
22828echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22829echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22830else
22831 # Is the header compilable?
22832echo "$as_me:$LINENO: checking hash_map usability" >&5
22833echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22834cat >conftest.$ac_ext <<_ACEOF
22835/* confdefs.h. */
22836_ACEOF
22837cat confdefs.h >>conftest.$ac_ext
22838cat >>conftest.$ac_ext <<_ACEOF
22839/* end confdefs.h. */
22840$ac_includes_default
22841#include <hash_map>
22842_ACEOF
22843rm -f conftest.$ac_objext
22844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22845 (eval $ac_compile) 2>conftest.er1
bdcade0a 22846 ac_status=$?
ac1cb8d3
VS
22847 grep -v '^ *+' conftest.er1 >conftest.err
22848 rm -f conftest.er1
22849 cat conftest.err >&5
bdcade0a
MB
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } &&
6ebeb4c7 22852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854 (eval $ac_try) 2>&5
22855 ac_status=$?
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; } &&
22858 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860 (eval $ac_try) 2>&5
22861 ac_status=$?
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; }; then
22864 ac_header_compiler=yes
22865else
22866 echo "$as_me: failed program was:" >&5
22867sed 's/^/| /' conftest.$ac_ext >&5
22868
22869ac_header_compiler=no
22870fi
ac1cb8d3 22871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22872echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22873echo "${ECHO_T}$ac_header_compiler" >&6
22874
22875# Is the header present?
22876echo "$as_me:$LINENO: checking hash_map presence" >&5
22877echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
22878cat >conftest.$ac_ext <<_ACEOF
22879/* confdefs.h. */
22880_ACEOF
22881cat confdefs.h >>conftest.$ac_ext
22882cat >>conftest.$ac_ext <<_ACEOF
22883/* end confdefs.h. */
22884#include <hash_map>
22885_ACEOF
22886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22888 ac_status=$?
22889 grep -v '^ *+' conftest.er1 >conftest.err
22890 rm -f conftest.er1
22891 cat conftest.err >&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } >/dev/null; then
22894 if test -s conftest.err; then
22895 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22896 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22897 else
22898 ac_cpp_err=
22899 fi
22900else
22901 ac_cpp_err=yes
22902fi
22903if test -z "$ac_cpp_err"; then
22904 ac_header_preproc=yes
22905else
22906 echo "$as_me: failed program was:" >&5
22907sed 's/^/| /' conftest.$ac_ext >&5
22908
22909 ac_header_preproc=no
22910fi
22911rm -f conftest.err conftest.$ac_ext
22912echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22913echo "${ECHO_T}$ac_header_preproc" >&6
22914
22915# So? What about this header?
ac1cb8d3
VS
22916case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22917 yes:no: )
bdcade0a
MB
22918 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22919echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22920 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22921echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22922 ac_header_preproc=yes
bdcade0a 22923 ;;
ac1cb8d3 22924 no:yes:* )
bdcade0a
MB
22925 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22926echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22927 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22928echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22929 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22930echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22931 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22932echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22933 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22934echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22935 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22936echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22937 (
22938 cat <<\_ASBOX
ac1cb8d3
VS
22939## ----------------------------------------- ##
22940## Report this to wx-dev@lists.wxwidgets.org ##
22941## ----------------------------------------- ##
bdcade0a
MB
22942_ASBOX
22943 ) |
22944 sed "s/^/$as_me: WARNING: /" >&2
22945 ;;
22946esac
22947echo "$as_me:$LINENO: checking for hash_map" >&5
22948echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22949if test "${ac_cv_header_hash_map+set}" = set; then
22950 echo $ECHO_N "(cached) $ECHO_C" >&6
22951else
22952 ac_cv_header_hash_map=$ac_header_preproc
22953fi
22954echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22955echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22956
22957fi
22958if test $ac_cv_header_hash_map = yes; then
22959 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22960echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22961 cat >conftest.$ac_ext <<_ACEOF
22962/* confdefs.h. */
22963_ACEOF
22964cat confdefs.h >>conftest.$ac_ext
22965cat >>conftest.$ac_ext <<_ACEOF
22966/* end confdefs.h. */
22967#include <hash_map>
22968 #include <hash_set>
22969int
22970main ()
22971{
22972std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
22973 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
22974 ;
22975 return 0;
22976}
22977_ACEOF
22978rm -f conftest.$ac_objext
22979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22980 (eval $ac_compile) 2>conftest.er1
bdcade0a 22981 ac_status=$?
ac1cb8d3
VS
22982 grep -v '^ *+' conftest.er1 >conftest.err
22983 rm -f conftest.er1
22984 cat conftest.err >&5
bdcade0a
MB
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } &&
6ebeb4c7 22987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22990 ac_status=$?
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; } &&
22993 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995 (eval $ac_try) 2>&5
22996 ac_status=$?
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; }; then
22999 echo "$as_me:$LINENO: result: yes" >&5
23000echo "${ECHO_T}yes" >&6
23001 cat >>confdefs.h <<\_ACEOF
23002#define HAVE_HASH_MAP 1
23003_ACEOF
23004
23005 cat >>confdefs.h <<\_ACEOF
23006#define HAVE_STD_HASH_MAP 1
23007_ACEOF
23008
23009else
23010 echo "$as_me: failed program was:" >&5
23011sed 's/^/| /' conftest.$ac_ext >&5
23012
23013echo "$as_me:$LINENO: result: no" >&5
23014echo "${ECHO_T}no" >&6
23015fi
ac1cb8d3 23016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23017
23018fi
23019
23020
23021
23022 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23023 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23024echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23025if test "${ac_cv_header_ext_hash_map+set}" = set; then
23026 echo $ECHO_N "(cached) $ECHO_C" >&6
23027fi
23028echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23029echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23030else
23031 # Is the header compilable?
23032echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23033echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23034cat >conftest.$ac_ext <<_ACEOF
23035/* confdefs.h. */
23036_ACEOF
23037cat confdefs.h >>conftest.$ac_ext
23038cat >>conftest.$ac_ext <<_ACEOF
23039/* end confdefs.h. */
23040$ac_includes_default
23041#include <ext/hash_map>
23042_ACEOF
23043rm -f conftest.$ac_objext
23044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23045 (eval $ac_compile) 2>conftest.er1
bdcade0a 23046 ac_status=$?
ac1cb8d3
VS
23047 grep -v '^ *+' conftest.er1 >conftest.err
23048 rm -f conftest.er1
23049 cat conftest.err >&5
bdcade0a
MB
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } &&
6ebeb4c7 23052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } &&
23058 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_header_compiler=yes
23065else
23066 echo "$as_me: failed program was:" >&5
23067sed 's/^/| /' conftest.$ac_ext >&5
23068
23069ac_header_compiler=no
23070fi
ac1cb8d3 23071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23072echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23073echo "${ECHO_T}$ac_header_compiler" >&6
23074
23075# Is the header present?
23076echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23077echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23078cat >conftest.$ac_ext <<_ACEOF
23079/* confdefs.h. */
23080_ACEOF
23081cat confdefs.h >>conftest.$ac_ext
23082cat >>conftest.$ac_ext <<_ACEOF
23083/* end confdefs.h. */
23084#include <ext/hash_map>
23085_ACEOF
23086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23088 ac_status=$?
23089 grep -v '^ *+' conftest.er1 >conftest.err
23090 rm -f conftest.er1
23091 cat conftest.err >&5
23092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); } >/dev/null; then
23094 if test -s conftest.err; then
23095 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23096 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23097 else
23098 ac_cpp_err=
23099 fi
23100else
23101 ac_cpp_err=yes
23102fi
23103if test -z "$ac_cpp_err"; then
23104 ac_header_preproc=yes
23105else
23106 echo "$as_me: failed program was:" >&5
23107sed 's/^/| /' conftest.$ac_ext >&5
23108
23109 ac_header_preproc=no
23110fi
23111rm -f conftest.err conftest.$ac_ext
23112echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23113echo "${ECHO_T}$ac_header_preproc" >&6
23114
23115# So? What about this header?
ac1cb8d3
VS
23116case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23117 yes:no: )
bdcade0a
MB
23118 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23119echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23120 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23121echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23122 ac_header_preproc=yes
bdcade0a 23123 ;;
ac1cb8d3 23124 no:yes:* )
bdcade0a
MB
23125 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23126echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23127 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23128echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23129 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23130echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23131 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23132echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23133 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23134echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23135 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23136echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23137 (
23138 cat <<\_ASBOX
ac1cb8d3
VS
23139## ----------------------------------------- ##
23140## Report this to wx-dev@lists.wxwidgets.org ##
23141## ----------------------------------------- ##
bdcade0a
MB
23142_ASBOX
23143 ) |
23144 sed "s/^/$as_me: WARNING: /" >&2
23145 ;;
23146esac
23147echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23148echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23149if test "${ac_cv_header_ext_hash_map+set}" = set; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23151else
23152 ac_cv_header_ext_hash_map=$ac_header_preproc
23153fi
23154echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23155echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23156
23157fi
23158if test $ac_cv_header_ext_hash_map = yes; then
23159 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23160echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23161 cat >conftest.$ac_ext <<_ACEOF
23162/* confdefs.h. */
23163_ACEOF
23164cat confdefs.h >>conftest.$ac_ext
23165cat >>conftest.$ac_ext <<_ACEOF
23166/* end confdefs.h. */
23167#include <ext/hash_map>
23168 #include <ext/hash_set>
23169int
23170main ()
23171{
23172__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23173 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23174 ;
23175 return 0;
23176}
23177_ACEOF
23178rm -f conftest.$ac_objext
23179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23180 (eval $ac_compile) 2>conftest.er1
bdcade0a 23181 ac_status=$?
ac1cb8d3
VS
23182 grep -v '^ *+' conftest.er1 >conftest.err
23183 rm -f conftest.er1
23184 cat conftest.err >&5
bdcade0a
MB
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); } &&
6ebeb4c7 23187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
23193 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195 (eval $ac_try) 2>&5
23196 ac_status=$?
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; }; then
23199 echo "$as_me:$LINENO: result: yes" >&5
23200echo "${ECHO_T}yes" >&6
23201 cat >>confdefs.h <<\_ACEOF
23202#define HAVE_EXT_HASH_MAP 1
23203_ACEOF
23204
23205 cat >>confdefs.h <<\_ACEOF
23206#define HAVE_GNU_CXX_HASH_MAP 1
23207_ACEOF
23208
23209else
23210 echo "$as_me: failed program was:" >&5
23211sed 's/^/| /' conftest.$ac_ext >&5
23212
23213echo "$as_me:$LINENO: result: no" >&5
23214echo "${ECHO_T}no" >&6
23215fi
ac1cb8d3 23216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23217
23218fi
23219
23220
a848cd7e
SC
23221
23222 ac_ext=c
23223ac_cpp='$CPP $CPPFLAGS'
23224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23226ac_compiler_gnu=$ac_cv_c_compiler_gnu
23227
23228fi
23229
23230
23231SEARCH_INCLUDE="\
23232 /usr/local/include \
23233 \
23234 /usr/Motif-2.1/include \
23235 /usr/Motif-1.2/include \
23236 /usr/include/Motif1.2 \
a848cd7e
SC
23237 \
23238 /usr/dt/include \
23239 /usr/openwin/include \
23240 \
23241 /usr/include/Xm \
23242 \
23243 /usr/X11R6/include \
23244 /usr/X11R6.4/include \
23245 /usr/X11R5/include \
23246 /usr/X11R4/include \
23247 \
23248 /usr/include/X11R6 \
23249 /usr/include/X11R5 \
23250 /usr/include/X11R4 \
23251 \
23252 /usr/local/X11R6/include \
23253 /usr/local/X11R5/include \
23254 /usr/local/X11R4/include \
23255 \
23256 /usr/local/include/X11R6 \
23257 /usr/local/include/X11R5 \
23258 /usr/local/include/X11R4 \
23259 \
23260 /usr/X11/include \
23261 /usr/include/X11 \
23262 /usr/local/X11/include \
23263 /usr/local/include/X11 \
23264 \
a848cd7e 23265 /usr/XFree86/include/X11 \
e051b34e
MW
23266 /usr/pkg/include \
23267 \
a848cd7e
SC
23268 /usr/openwin/share/include"
23269
6f9cf1e6 23270echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23271echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23272
23273case "${host}" in
23274 *-*-irix6* )
23275 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23276 echo $ECHO_N "(cached) $ECHO_C" >&6
23277else
23278
c687b303
VZ
23279 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23280 for e in a so sl dylib dll.a; do
23281 libc="$d/libc.$e"
23282 if test -f $libc; then
23283 save_LIBS="$LIBS"
23284 LIBS="$libc"
23285 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23286int main() { return 0; }
23287_ACEOF
23288rm -f conftest.$ac_objext conftest$ac_exeext
23289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23290 (eval $ac_link) 2>conftest.er1
23291 ac_status=$?
23292 grep -v '^ *+' conftest.er1 >conftest.err
23293 rm -f conftest.er1
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } &&
23297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299 (eval $ac_try) 2>&5
23300 ac_status=$?
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; } &&
23303 { ac_try='test -s conftest$ac_exeext'
23304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305 (eval $ac_try) 2>&5
23306 ac_status=$?
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); }; }; then
23309 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23310else
23311 echo "$as_me: failed program was:" >&5
23312sed 's/^/| /' conftest.$ac_ext >&5
23313
23314fi
23315rm -f conftest.err conftest.$ac_objext \
23316 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23317 LIBS="$save_LIBS"
23318 if test "x$wx_cv_std_libpath" != "x"; then
23319 break 2
23320 fi
23321 fi
23322 done
23323 done
23324 if test "x$wx_cv_std_libpath" = "x"; then
23325 wx_cv_std_libpath="lib"
0ad5d837 23326 fi
0ad5d837
VZ
23327
23328
23329fi
6f9cf1e6
MW
23330
23331 ;;
23332
23333 *-*-solaris2* )
23334 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23335 wx_cv_std_libpath="lib/64"
23336 else
23337 wx_cv_std_libpath="lib"
23338 fi
23339 ;;
23340
23341 *-*-linux* )
23342 if test "$ac_cv_sizeof_void_p" = 8 -a \
23343 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23344 wx_cv_std_libpath="lib64"
23345 else
23346 wx_cv_std_libpath="lib"
23347 fi
c687b303
VZ
23348 ;;
23349
23350 *)
23351 wx_cv_std_libpath="lib";
23352 ;;
23353esac
0ad5d837 23354
6f9cf1e6
MW
23355echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23356echo "${ECHO_T}$wx_cv_std_libpath" >&6
23357
23358SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23359
3eca31dc
MW
23360if test "$build" != "$host" -a "$GCC" = yes; then
23361 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23362 cross_root=`dirname $cross_root`
23363 cross_root=`dirname $cross_root`
23364
23365 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23366 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23367
23368 if test -z "$PKG_CONFIG_PATH"; then
23369 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23370 export PKG_CONFIG_PATH
23371 fi
23372
23373 if test -z "$x_includes" -o "$x_includes" = NONE; then
23374
23375ac_find_includes=
23376for ac_dir in $SEARCH_INCLUDE /usr/include;
23377 do
23378 if test -f "$ac_dir/X11/Intrinsic.h"; then
23379 ac_find_includes=$ac_dir
23380 break
23381 fi
23382 done
23383
23384 x_includes=$ac_find_includes
23385 fi
23386 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23387
0ad5d837
VZ
23388 ac_find_libraries=
23389 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23390 do
23391 for ac_extension in a so sl dylib dll.a; do
23392 if test -f "$ac_dir/libXt.$ac_extension"; then
23393 ac_find_libraries=$ac_dir
23394 break 2
23395 fi
23396 done
23397 done
23398
23399 x_libraries=$ac_find_libraries
23400 fi
23401 fi
23402fi
23403
a848cd7e
SC
23404
23405cat >confcache <<\_ACEOF
23406# This file is a shell script that caches the results of configure
23407# tests run on this system so they can be shared between configure
23408# scripts and configure runs, see configure's option --config-cache.
23409# It is not useful on other systems. If it contains results you don't
23410# want to keep, you may remove or edit it.
23411#
23412# config.status only pays attention to the cache file if you give it
23413# the --recheck option to rerun configure.
23414#
23415# `ac_cv_env_foo' variables (set or unset) will be overridden when
23416# loading this file, other *unset* `ac_cv_foo' will be assigned the
23417# following values.
23418
23419_ACEOF
23420
23421# The following way of writing the cache mishandles newlines in values,
23422# but we know of no workaround that is simple, portable, and efficient.
23423# So, don't put newlines in cache variables' values.
23424# Ultrix sh set writes to stderr and can't be redirected directly,
23425# and sets the high bit in the cache file unless we assign to the vars.
23426{
23427 (set) 2>&1 |
23428 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23429 *ac_space=\ *)
23430 # `set' does not quote correctly, so add quotes (double-quote
23431 # substitution turns \\\\ into \\, and sed turns \\ into \).
23432 sed -n \
ac1cb8d3
VS
23433 "s/'/'\\\\''/g;
23434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23435 ;;
23436 *)
23437 # `set' quotes correctly as required by POSIX, so do not add quotes.
23438 sed -n \
ac1cb8d3 23439 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23440 ;;
23441 esac;
23442} |
23443 sed '
23444 t clear
23445 : clear
23446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23447 t end
23448 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23449 : end' >>confcache
23450if diff $cache_file confcache >/dev/null 2>&1; then :; else
23451 if test -w $cache_file; then
23452 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23453 cat confcache >$cache_file
23454 else
23455 echo "not updating unwritable cache $cache_file"
23456 fi
23457fi
23458rm -f confcache
23459
23460if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23461 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23462echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23463if test "${wx_cv_lib_glibc21+set}" = set; then
23464 echo $ECHO_N "(cached) $ECHO_C" >&6
23465else
23466
23467 cat >conftest.$ac_ext <<_ACEOF
23468/* confdefs.h. */
23469_ACEOF
23470cat confdefs.h >>conftest.$ac_ext
23471cat >>conftest.$ac_ext <<_ACEOF
23472/* end confdefs.h. */
23473#include <features.h>
23474int
23475main ()
23476{
23477
23478 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23479 not glibc 2.1
a848cd7e
SC
23480 #endif
23481
23482 ;
23483 return 0;
23484}
23485_ACEOF
23486rm -f conftest.$ac_objext
23487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23488 (eval $ac_compile) 2>conftest.er1
a848cd7e 23489 ac_status=$?
ac1cb8d3
VS
23490 grep -v '^ *+' conftest.er1 >conftest.err
23491 rm -f conftest.er1
23492 cat conftest.err >&5
a848cd7e
SC
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); } &&
6ebeb4c7 23495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23497 (eval $ac_try) 2>&5
23498 ac_status=$?
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); }; } &&
23501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503 (eval $ac_try) 2>&5
23504 ac_status=$?
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); }; }; then
23507
23508 wx_cv_lib_glibc21=yes
23509
23510else
23511 echo "$as_me: failed program was:" >&5
23512sed 's/^/| /' conftest.$ac_ext >&5
23513
23514
23515 wx_cv_lib_glibc21=no
23516
23517
23518fi
ac1cb8d3 23519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23520
23521fi
23522echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23523echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23524 if test "$wx_cv_lib_glibc21" = "yes"; then
23525 cat >>confdefs.h <<\_ACEOF
23526#define wxHAVE_GLIBC2 1
23527_ACEOF
23528
23529 fi
23530fi
23531
23532if test "x$wx_cv_lib_glibc21" = "xyes"; then
23533 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23534 cat >>confdefs.h <<\_ACEOF
23535#define _GNU_SOURCE 1
23536_ACEOF
23537
23538 fi
23539fi
23540
23541
23542
23543if test "$wxUSE_REGEX" != "no"; then
23544 cat >>confdefs.h <<\_ACEOF
23545#define wxUSE_REGEX 1
23546_ACEOF
23547
23548
23549 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23550 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23551echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23552 wxUSE_REGEX=builtin
23553 fi
23554
23555 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23556 if test "${ac_cv_header_regex_h+set}" = set; then
23557 echo "$as_me:$LINENO: checking for regex.h" >&5
23558echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23559if test "${ac_cv_header_regex_h+set}" = set; then
23560 echo $ECHO_N "(cached) $ECHO_C" >&6
23561fi
23562echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23563echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23564else
23565 # Is the header compilable?
23566echo "$as_me:$LINENO: checking regex.h usability" >&5
23567echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23568cat >conftest.$ac_ext <<_ACEOF
23569/* confdefs.h. */
23570_ACEOF
23571cat confdefs.h >>conftest.$ac_ext
23572cat >>conftest.$ac_ext <<_ACEOF
23573/* end confdefs.h. */
23574$ac_includes_default
23575#include <regex.h>
23576_ACEOF
23577rm -f conftest.$ac_objext
23578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23579 (eval $ac_compile) 2>conftest.er1
a848cd7e 23580 ac_status=$?
ac1cb8d3
VS
23581 grep -v '^ *+' conftest.er1 >conftest.err
23582 rm -f conftest.er1
23583 cat conftest.err >&5
a848cd7e
SC
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } &&
6ebeb4c7 23586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588 (eval $ac_try) 2>&5
23589 ac_status=$?
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); }; } &&
23592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594 (eval $ac_try) 2>&5
23595 ac_status=$?
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); }; }; then
23598 ac_header_compiler=yes
23599else
23600 echo "$as_me: failed program was:" >&5
23601sed 's/^/| /' conftest.$ac_ext >&5
23602
23603ac_header_compiler=no
23604fi
ac1cb8d3 23605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23606echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23607echo "${ECHO_T}$ac_header_compiler" >&6
23608
23609# Is the header present?
23610echo "$as_me:$LINENO: checking regex.h presence" >&5
23611echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23612cat >conftest.$ac_ext <<_ACEOF
23613/* confdefs.h. */
23614_ACEOF
23615cat confdefs.h >>conftest.$ac_ext
23616cat >>conftest.$ac_ext <<_ACEOF
23617/* end confdefs.h. */
23618#include <regex.h>
23619_ACEOF
23620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23622 ac_status=$?
23623 grep -v '^ *+' conftest.er1 >conftest.err
23624 rm -f conftest.er1
23625 cat conftest.err >&5
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); } >/dev/null; then
23628 if test -s conftest.err; then
23629 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23631 else
23632 ac_cpp_err=
23633 fi
23634else
23635 ac_cpp_err=yes
23636fi
23637if test -z "$ac_cpp_err"; then
23638 ac_header_preproc=yes
23639else
23640 echo "$as_me: failed program was:" >&5
23641sed 's/^/| /' conftest.$ac_ext >&5
23642
23643 ac_header_preproc=no
23644fi
23645rm -f conftest.err conftest.$ac_ext
23646echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23647echo "${ECHO_T}$ac_header_preproc" >&6
23648
23649# So? What about this header?
ac1cb8d3
VS
23650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23651 yes:no: )
a848cd7e
SC
23652 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23653echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23654 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23655echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23656 ac_header_preproc=yes
a848cd7e 23657 ;;
ac1cb8d3 23658 no:yes:* )
a848cd7e
SC
23659 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23660echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23661 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23662echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23663 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23664echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23665 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23666echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23667 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23668echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23669 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23670echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23671 (
23672 cat <<\_ASBOX
ac1cb8d3
VS
23673## ----------------------------------------- ##
23674## Report this to wx-dev@lists.wxwidgets.org ##
23675## ----------------------------------------- ##
a848cd7e
SC
23676_ASBOX
23677 ) |
23678 sed "s/^/$as_me: WARNING: /" >&2
23679 ;;
23680esac
23681echo "$as_me:$LINENO: checking for regex.h" >&5
23682echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23683if test "${ac_cv_header_regex_h+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23685else
23686 ac_cv_header_regex_h=$ac_header_preproc
23687fi
23688echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23689echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23690
23691fi
23692if test $ac_cv_header_regex_h = yes; then
23693
23694for ac_func in regcomp
23695do
23696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23697echo "$as_me:$LINENO: checking for $ac_func" >&5
23698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23699if eval "test \"\${$as_ac_var+set}\" = set"; then
23700 echo $ECHO_N "(cached) $ECHO_C" >&6
23701else
23702 cat >conftest.$ac_ext <<_ACEOF
23703/* confdefs.h. */
23704_ACEOF
23705cat confdefs.h >>conftest.$ac_ext
23706cat >>conftest.$ac_ext <<_ACEOF
23707/* end confdefs.h. */
ac1cb8d3
VS
23708/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23710#define $ac_func innocuous_$ac_func
23711
a848cd7e
SC
23712/* System header to define __stub macros and hopefully few prototypes,
23713 which can conflict with char $ac_func (); below.
23714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23715 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23716
a848cd7e
SC
23717#ifdef __STDC__
23718# include <limits.h>
23719#else
23720# include <assert.h>
23721#endif
ac1cb8d3
VS
23722
23723#undef $ac_func
23724
a848cd7e
SC
23725/* Override any gcc2 internal prototype to avoid an error. */
23726#ifdef __cplusplus
23727extern "C"
23728{
23729#endif
23730/* We use char because int might match the return type of a gcc2
23731 builtin and then its argument prototype would still apply. */
23732char $ac_func ();
23733/* The GNU C library defines this for functions which it implements
23734 to always fail with ENOSYS. Some functions are actually named
23735 something starting with __ and the normal name is an alias. */
23736#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23737choke me
23738#else
23739char (*f) () = $ac_func;
23740#endif
23741#ifdef __cplusplus
23742}
23743#endif
23744
23745int
23746main ()
23747{
23748return f != $ac_func;
23749 ;
23750 return 0;
23751}
23752_ACEOF
23753rm -f conftest.$ac_objext conftest$ac_exeext
23754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23755 (eval $ac_link) 2>conftest.er1
a848cd7e 23756 ac_status=$?
ac1cb8d3
VS
23757 grep -v '^ *+' conftest.er1 >conftest.err
23758 rm -f conftest.er1
23759 cat conftest.err >&5
a848cd7e
SC
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } &&
6ebeb4c7 23762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23764 (eval $ac_try) 2>&5
23765 ac_status=$?
23766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); }; } &&
23768 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23770 (eval $ac_try) 2>&5
23771 ac_status=$?
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); }; }; then
23774 eval "$as_ac_var=yes"
23775else
23776 echo "$as_me: failed program was:" >&5
23777sed 's/^/| /' conftest.$ac_ext >&5
23778
23779eval "$as_ac_var=no"
23780fi
ac1cb8d3
VS
23781rm -f conftest.err conftest.$ac_objext \
23782 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23783fi
23784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23785echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23786if test `eval echo '${'$as_ac_var'}'` = yes; then
23787 cat >>confdefs.h <<_ACEOF
23788#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23789_ACEOF
23790
23791fi
23792done
23793
23794fi
23795
23796
23797
23798 if test "x$ac_cv_func_regcomp" != "xyes"; then
23799 if test "$wxUSE_REGEX" = "sys" ; then
23800 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23801echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23802 { (exit 1); exit 1; }; }
23803 else
23804 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23805echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23806 wxUSE_REGEX=builtin
23807 fi
23808 else
23809 wxUSE_REGEX=sys
23810 cat >>confdefs.h <<\_ACEOF
23811#define WX_NO_REGEX_ADVANCED 1
23812_ACEOF
23813
23814 fi
23815 fi
23816fi
23817
23818
23819ZLIB_LINK=
23820if test "$wxUSE_ZLIB" != "no" ; then
23821 cat >>confdefs.h <<\_ACEOF
23822#define wxUSE_ZLIB 1
23823_ACEOF
23824
23825
23826 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23827 if test "$USE_DARWIN" = 1; then
23828 system_zlib_h_ok="yes"
23829 else
23830 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23831echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23832if test "${ac_cv_header_zlib_h+set}" = set; then
23833 echo $ECHO_N "(cached) $ECHO_C" >&6
23834else
23835 if test "$cross_compiling" = yes; then
23836 unset ac_cv_header_zlib_h
23837
23838else
23839 cat >conftest.$ac_ext <<_ACEOF
23840/* confdefs.h. */
23841_ACEOF
23842cat confdefs.h >>conftest.$ac_ext
23843cat >>conftest.$ac_ext <<_ACEOF
23844/* end confdefs.h. */
23845
23846 #include <zlib.h>
23847 #include <stdio.h>
23848
23849 int main()
23850 {
23851 FILE *f=fopen("conftestval", "w");
23852 if (!f) exit(1);
23853 fprintf(f, "%s",
23854 ZLIB_VERSION[0] == '1' &&
23855 (ZLIB_VERSION[2] > '1' ||
23856 (ZLIB_VERSION[2] == '1' &&
23857 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23858 exit(0);
23859 }
23860
23861_ACEOF
23862rm -f conftest$ac_exeext
23863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23864 (eval $ac_link) 2>&5
23865 ac_status=$?
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23869 (eval $ac_try) 2>&5
23870 ac_status=$?
23871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872 (exit $ac_status); }; }; then
23873 ac_cv_header_zlib_h=`cat conftestval`
23874else
23875 echo "$as_me: program exited with status $ac_status" >&5
23876echo "$as_me: failed program was:" >&5
23877sed 's/^/| /' conftest.$ac_ext >&5
23878
23879( exit $ac_status )
23880ac_cv_header_zlib_h=no
23881fi
ac1cb8d3 23882rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23883fi
23884
23885fi
23886echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23887echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23888 if test "${ac_cv_header_zlib_h+set}" = set; then
23889 echo "$as_me:$LINENO: checking for zlib.h" >&5
23890echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23891if test "${ac_cv_header_zlib_h+set}" = set; then
23892 echo $ECHO_N "(cached) $ECHO_C" >&6
23893fi
23894echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23895echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23896else
23897 # Is the header compilable?
23898echo "$as_me:$LINENO: checking zlib.h usability" >&5
23899echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23900cat >conftest.$ac_ext <<_ACEOF
23901/* confdefs.h. */
23902_ACEOF
23903cat confdefs.h >>conftest.$ac_ext
23904cat >>conftest.$ac_ext <<_ACEOF
23905/* end confdefs.h. */
23906$ac_includes_default
23907#include <zlib.h>
23908_ACEOF
23909rm -f conftest.$ac_objext
23910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23911 (eval $ac_compile) 2>conftest.er1
a848cd7e 23912 ac_status=$?
ac1cb8d3
VS
23913 grep -v '^ *+' conftest.er1 >conftest.err
23914 rm -f conftest.er1
23915 cat conftest.err >&5
a848cd7e
SC
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); } &&
6ebeb4c7 23918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23920 (eval $ac_try) 2>&5
23921 ac_status=$?
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); }; } &&
23924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23926 (eval $ac_try) 2>&5
23927 ac_status=$?
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); }; }; then
23930 ac_header_compiler=yes
23931else
23932 echo "$as_me: failed program was:" >&5
23933sed 's/^/| /' conftest.$ac_ext >&5
23934
23935ac_header_compiler=no
23936fi
ac1cb8d3 23937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23939echo "${ECHO_T}$ac_header_compiler" >&6
23940
23941# Is the header present?
23942echo "$as_me:$LINENO: checking zlib.h presence" >&5
23943echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
23944cat >conftest.$ac_ext <<_ACEOF
23945/* confdefs.h. */
23946_ACEOF
23947cat confdefs.h >>conftest.$ac_ext
23948cat >>conftest.$ac_ext <<_ACEOF
23949/* end confdefs.h. */
23950#include <zlib.h>
23951_ACEOF
23952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23954 ac_status=$?
23955 grep -v '^ *+' conftest.er1 >conftest.err
23956 rm -f conftest.er1
23957 cat conftest.err >&5
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); } >/dev/null; then
23960 if test -s conftest.err; then
23961 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23963 else
23964 ac_cpp_err=
23965 fi
23966else
23967 ac_cpp_err=yes
23968fi
23969if test -z "$ac_cpp_err"; then
23970 ac_header_preproc=yes
23971else
23972 echo "$as_me: failed program was:" >&5
23973sed 's/^/| /' conftest.$ac_ext >&5
23974
23975 ac_header_preproc=no
23976fi
23977rm -f conftest.err conftest.$ac_ext
23978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23979echo "${ECHO_T}$ac_header_preproc" >&6
23980
23981# So? What about this header?
ac1cb8d3
VS
23982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23983 yes:no: )
a848cd7e
SC
23984 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23985echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23986 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23987echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23988 ac_header_preproc=yes
a848cd7e 23989 ;;
ac1cb8d3 23990 no:yes:* )
a848cd7e
SC
23991 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23992echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23993 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23994echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23995 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23996echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23997 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23998echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23999 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24000echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24001 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24002echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24003 (
24004 cat <<\_ASBOX
ac1cb8d3
VS
24005## ----------------------------------------- ##
24006## Report this to wx-dev@lists.wxwidgets.org ##
24007## ----------------------------------------- ##
a848cd7e
SC
24008_ASBOX
24009 ) |
24010 sed "s/^/$as_me: WARNING: /" >&2
24011 ;;
24012esac
24013echo "$as_me:$LINENO: checking for zlib.h" >&5
24014echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24015if test "${ac_cv_header_zlib_h+set}" = set; then
24016 echo $ECHO_N "(cached) $ECHO_C" >&6
24017else
24018 ac_cv_header_zlib_h=$ac_header_preproc
24019fi
24020echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24021echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24022
24023fi
24024
24025
24026
24027 system_zlib_h_ok=$ac_cv_header_zlib_h
24028 fi
24029
24030 if test "$system_zlib_h_ok" = "yes"; then
24031 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24032echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24033if test "${ac_cv_lib_z_deflate+set}" = set; then
24034 echo $ECHO_N "(cached) $ECHO_C" >&6
24035else
24036 ac_check_lib_save_LIBS=$LIBS
24037LIBS="-lz $LIBS"
24038cat >conftest.$ac_ext <<_ACEOF
24039/* confdefs.h. */
24040_ACEOF
24041cat confdefs.h >>conftest.$ac_ext
24042cat >>conftest.$ac_ext <<_ACEOF
24043/* end confdefs.h. */
24044
24045/* Override any gcc2 internal prototype to avoid an error. */
24046#ifdef __cplusplus
24047extern "C"
24048#endif
24049/* We use char because int might match the return type of a gcc2
24050 builtin and then its argument prototype would still apply. */
24051char deflate ();
24052int
24053main ()
24054{
24055deflate ();
24056 ;
24057 return 0;
24058}
24059_ACEOF
24060rm -f conftest.$ac_objext conftest$ac_exeext
24061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24062 (eval $ac_link) 2>conftest.er1
a848cd7e 24063 ac_status=$?
ac1cb8d3
VS
24064 grep -v '^ *+' conftest.er1 >conftest.err
24065 rm -f conftest.er1
24066 cat conftest.err >&5
a848cd7e
SC
24067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068 (exit $ac_status); } &&
6ebeb4c7 24069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071 (eval $ac_try) 2>&5
24072 ac_status=$?
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); }; } &&
24075 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077 (eval $ac_try) 2>&5
24078 ac_status=$?
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); }; }; then
24081 ac_cv_lib_z_deflate=yes
24082else
24083 echo "$as_me: failed program was:" >&5
24084sed 's/^/| /' conftest.$ac_ext >&5
24085
24086ac_cv_lib_z_deflate=no
24087fi
ac1cb8d3
VS
24088rm -f conftest.err conftest.$ac_objext \
24089 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24090LIBS=$ac_check_lib_save_LIBS
24091fi
24092echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24093echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24094if test $ac_cv_lib_z_deflate = yes; then
24095 ZLIB_LINK=" -lz"
24096fi
24097
24098 fi
24099
24100 if test "x$ZLIB_LINK" = "x" ; then
24101 if test "$wxUSE_ZLIB" = "sys" ; then
24102 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24103echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24104 { (exit 1); exit 1; }; }
24105 else
24106 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24107echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24108 wxUSE_ZLIB=builtin
24109 fi
24110 else
24111 wxUSE_ZLIB=sys
24112 fi
24113 fi
24114fi
24115
24116
24117PNG_LINK=
24118if test "$wxUSE_LIBPNG" != "no" ; then
24119 cat >>confdefs.h <<\_ACEOF
24120#define wxUSE_LIBPNG 1
24121_ACEOF
24122
24123
24124 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24125 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24126echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24127 wxUSE_LIBPNG=sys
24128 fi
24129
24130 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24131 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24132echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24133 wxUSE_LIBPNG=builtin
24134 fi
24135
24136 if test "$wxUSE_MGL" != 1 ; then
24137 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24138 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24139echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24140if test "${ac_cv_header_png_h+set}" = set; then
24141 echo $ECHO_N "(cached) $ECHO_C" >&6
24142else
24143 if test "$cross_compiling" = yes; then
24144 unset ac_cv_header_png_h
24145
24146else
24147 cat >conftest.$ac_ext <<_ACEOF
24148/* confdefs.h. */
24149_ACEOF
24150cat confdefs.h >>conftest.$ac_ext
24151cat >>conftest.$ac_ext <<_ACEOF
24152/* end confdefs.h. */
24153
24154 #include <png.h>
24155 #include <stdio.h>
24156
24157 int main()
24158 {
24159 FILE *f=fopen("conftestval", "w");
24160 if (!f) exit(1);
24161 fprintf(f, "%s",
24162 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24163 exit(0);
24164 }
24165
24166_ACEOF
24167rm -f conftest$ac_exeext
24168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24169 (eval $ac_link) 2>&5
24170 ac_status=$?
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24174 (eval $ac_try) 2>&5
24175 ac_status=$?
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); }; }; then
24178 ac_cv_header_png_h=`cat conftestval`
24179else
24180 echo "$as_me: program exited with status $ac_status" >&5
24181echo "$as_me: failed program was:" >&5
24182sed 's/^/| /' conftest.$ac_ext >&5
24183
24184( exit $ac_status )
24185ac_cv_header_png_h=no
24186fi
ac1cb8d3 24187rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24188fi
24189
24190fi
24191echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24192echo "${ECHO_T}$ac_cv_header_png_h" >&6
24193 if test "${ac_cv_header_png_h+set}" = set; then
24194 echo "$as_me:$LINENO: checking for png.h" >&5
24195echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24196if test "${ac_cv_header_png_h+set}" = set; then
24197 echo $ECHO_N "(cached) $ECHO_C" >&6
24198fi
24199echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24200echo "${ECHO_T}$ac_cv_header_png_h" >&6
24201else
24202 # Is the header compilable?
24203echo "$as_me:$LINENO: checking png.h usability" >&5
24204echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24205cat >conftest.$ac_ext <<_ACEOF
24206/* confdefs.h. */
24207_ACEOF
24208cat confdefs.h >>conftest.$ac_ext
24209cat >>conftest.$ac_ext <<_ACEOF
24210/* end confdefs.h. */
24211$ac_includes_default
24212#include <png.h>
24213_ACEOF
24214rm -f conftest.$ac_objext
24215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24216 (eval $ac_compile) 2>conftest.er1
a848cd7e 24217 ac_status=$?
ac1cb8d3
VS
24218 grep -v '^ *+' conftest.er1 >conftest.err
24219 rm -f conftest.er1
24220 cat conftest.err >&5
a848cd7e
SC
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); } &&
6ebeb4c7 24223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225 (eval $ac_try) 2>&5
24226 ac_status=$?
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }; } &&
24229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24231 (eval $ac_try) 2>&5
24232 ac_status=$?
24233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234 (exit $ac_status); }; }; then
24235 ac_header_compiler=yes
24236else
24237 echo "$as_me: failed program was:" >&5
24238sed 's/^/| /' conftest.$ac_ext >&5
24239
24240ac_header_compiler=no
24241fi
ac1cb8d3 24242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24243echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24244echo "${ECHO_T}$ac_header_compiler" >&6
24245
24246# Is the header present?
24247echo "$as_me:$LINENO: checking png.h presence" >&5
24248echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24249cat >conftest.$ac_ext <<_ACEOF
24250/* confdefs.h. */
24251_ACEOF
24252cat confdefs.h >>conftest.$ac_ext
24253cat >>conftest.$ac_ext <<_ACEOF
24254/* end confdefs.h. */
24255#include <png.h>
24256_ACEOF
24257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24259 ac_status=$?
24260 grep -v '^ *+' conftest.er1 >conftest.err
24261 rm -f conftest.er1
24262 cat conftest.err >&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } >/dev/null; then
24265 if test -s conftest.err; then
24266 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24268 else
24269 ac_cpp_err=
24270 fi
24271else
24272 ac_cpp_err=yes
24273fi
24274if test -z "$ac_cpp_err"; then
24275 ac_header_preproc=yes
24276else
24277 echo "$as_me: failed program was:" >&5
24278sed 's/^/| /' conftest.$ac_ext >&5
24279
24280 ac_header_preproc=no
24281fi
24282rm -f conftest.err conftest.$ac_ext
24283echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24284echo "${ECHO_T}$ac_header_preproc" >&6
24285
24286# So? What about this header?
ac1cb8d3
VS
24287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24288 yes:no: )
a848cd7e
SC
24289 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24290echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24291 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24292echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24293 ac_header_preproc=yes
a848cd7e 24294 ;;
ac1cb8d3 24295 no:yes:* )
a848cd7e
SC
24296 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24297echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24298 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24299echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24300 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24301echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24302 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24303echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24304 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24305echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24306 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24307echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24308 (
24309 cat <<\_ASBOX
ac1cb8d3
VS
24310## ----------------------------------------- ##
24311## Report this to wx-dev@lists.wxwidgets.org ##
24312## ----------------------------------------- ##
a848cd7e
SC
24313_ASBOX
24314 ) |
24315 sed "s/^/$as_me: WARNING: /" >&2
24316 ;;
24317esac
24318echo "$as_me:$LINENO: checking for png.h" >&5
24319echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24320if test "${ac_cv_header_png_h+set}" = set; then
24321 echo $ECHO_N "(cached) $ECHO_C" >&6
24322else
24323 ac_cv_header_png_h=$ac_header_preproc
24324fi
24325echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24326echo "${ECHO_T}$ac_cv_header_png_h" >&6
24327
24328fi
24329
24330
24331
24332 if test "$ac_cv_header_png_h" = "yes"; then
24333 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24334echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24335if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24336 echo $ECHO_N "(cached) $ECHO_C" >&6
24337else
24338 ac_check_lib_save_LIBS=$LIBS
24339LIBS="-lpng -lz -lm $LIBS"
24340cat >conftest.$ac_ext <<_ACEOF
24341/* confdefs.h. */
24342_ACEOF
24343cat confdefs.h >>conftest.$ac_ext
24344cat >>conftest.$ac_ext <<_ACEOF
24345/* end confdefs.h. */
24346
24347/* Override any gcc2 internal prototype to avoid an error. */
24348#ifdef __cplusplus
24349extern "C"
24350#endif
24351/* We use char because int might match the return type of a gcc2
24352 builtin and then its argument prototype would still apply. */
24353char png_check_sig ();
24354int
24355main ()
24356{
24357png_check_sig ();
24358 ;
24359 return 0;
24360}
24361_ACEOF
24362rm -f conftest.$ac_objext conftest$ac_exeext
24363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24364 (eval $ac_link) 2>conftest.er1
a848cd7e 24365 ac_status=$?
ac1cb8d3
VS
24366 grep -v '^ *+' conftest.er1 >conftest.err
24367 rm -f conftest.er1
24368 cat conftest.err >&5
a848cd7e
SC
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); } &&
6ebeb4c7 24371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); }; } &&
24377 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379 (eval $ac_try) 2>&5
24380 ac_status=$?
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; }; then
24383 ac_cv_lib_png_png_check_sig=yes
24384else
24385 echo "$as_me: failed program was:" >&5
24386sed 's/^/| /' conftest.$ac_ext >&5
24387
24388ac_cv_lib_png_png_check_sig=no
24389fi
ac1cb8d3
VS
24390rm -f conftest.err conftest.$ac_objext \
24391 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24392LIBS=$ac_check_lib_save_LIBS
24393fi
24394echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24395echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24396if test $ac_cv_lib_png_png_check_sig = yes; then
24397 PNG_LINK=" -lpng -lz"
24398fi
24399
24400 fi
24401
24402 if test "x$PNG_LINK" = "x" ; then
24403 if test "$wxUSE_LIBPNG" = "sys" ; then
24404 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24405echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24406 { (exit 1); exit 1; }; }
24407 else
24408 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24409echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24410 wxUSE_LIBPNG=builtin
24411 fi
24412 else
24413 wxUSE_LIBPNG=sys
24414 fi
24415 fi
24416 fi
24417
24418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24419fi
24420
24421
24422JPEG_LINK=
24423if test "$wxUSE_LIBJPEG" != "no" ; then
24424 cat >>confdefs.h <<\_ACEOF
24425#define wxUSE_LIBJPEG 1
24426_ACEOF
24427
24428
24429 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24430 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24431echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24432 wxUSE_LIBJPEG=sys
24433 fi
24434
24435 if test "$wxUSE_MGL" != 1 ; then
24436 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24437 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24438echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24439 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24440 echo $ECHO_N "(cached) $ECHO_C" >&6
24441else
24442 cat >conftest.$ac_ext <<_ACEOF
24443/* confdefs.h. */
24444_ACEOF
24445cat confdefs.h >>conftest.$ac_ext
24446cat >>conftest.$ac_ext <<_ACEOF
24447/* end confdefs.h. */
24448
24449 #undef HAVE_STDLIB_H
24450 #include <stdio.h>
24451 #include <jpeglib.h>
24452
24453int
24454main ()
24455{
24456
24457
24458 ;
24459 return 0;
24460}
24461_ACEOF
24462rm -f conftest.$ac_objext
24463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24464 (eval $ac_compile) 2>conftest.er1
a848cd7e 24465 ac_status=$?
ac1cb8d3
VS
24466 grep -v '^ *+' conftest.er1 >conftest.err
24467 rm -f conftest.er1
24468 cat conftest.err >&5
a848cd7e
SC
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } &&
6ebeb4c7 24471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24474 ac_status=$?
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; } &&
24477 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24480 ac_status=$?
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; }; then
24483 ac_cv_header_jpeglib_h=yes
24484else
24485 echo "$as_me: failed program was:" >&5
24486sed 's/^/| /' conftest.$ac_ext >&5
24487
24488ac_cv_header_jpeglib_h=no
24489
24490fi
ac1cb8d3 24491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24492
24493fi
24494
24495 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24496echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24497
24498 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24499 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24500echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24501if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24502 echo $ECHO_N "(cached) $ECHO_C" >&6
24503else
24504 ac_check_lib_save_LIBS=$LIBS
24505LIBS="-ljpeg $LIBS"
24506cat >conftest.$ac_ext <<_ACEOF
24507/* confdefs.h. */
24508_ACEOF
24509cat confdefs.h >>conftest.$ac_ext
24510cat >>conftest.$ac_ext <<_ACEOF
24511/* end confdefs.h. */
24512
24513/* Override any gcc2 internal prototype to avoid an error. */
24514#ifdef __cplusplus
24515extern "C"
24516#endif
24517/* We use char because int might match the return type of a gcc2
24518 builtin and then its argument prototype would still apply. */
24519char jpeg_read_header ();
24520int
24521main ()
24522{
24523jpeg_read_header ();
24524 ;
24525 return 0;
24526}
24527_ACEOF
24528rm -f conftest.$ac_objext conftest$ac_exeext
24529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24530 (eval $ac_link) 2>conftest.er1
a848cd7e 24531 ac_status=$?
ac1cb8d3
VS
24532 grep -v '^ *+' conftest.er1 >conftest.err
24533 rm -f conftest.er1
24534 cat conftest.err >&5
a848cd7e
SC
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); } &&
6ebeb4c7 24537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539 (eval $ac_try) 2>&5
24540 ac_status=$?
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); }; } &&
24543 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24545 (eval $ac_try) 2>&5
24546 ac_status=$?
24547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); }; }; then
24549 ac_cv_lib_jpeg_jpeg_read_header=yes
24550else
24551 echo "$as_me: failed program was:" >&5
24552sed 's/^/| /' conftest.$ac_ext >&5
24553
24554ac_cv_lib_jpeg_jpeg_read_header=no
24555fi
ac1cb8d3
VS
24556rm -f conftest.err conftest.$ac_objext \
24557 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24558LIBS=$ac_check_lib_save_LIBS
24559fi
24560echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24561echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24562if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24563 JPEG_LINK=" -ljpeg"
24564fi
24565
24566 fi
24567
24568 if test "x$JPEG_LINK" = "x" ; then
24569 if test "$wxUSE_LIBJPEG" = "sys" ; then
24570 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24571echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24572 { (exit 1); exit 1; }; }
24573 else
24574 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24575echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24576 wxUSE_LIBJPEG=builtin
24577 fi
24578 else
24579 wxUSE_LIBJPEG=sys
24580 fi
24581 fi
24582 fi
24583fi
24584
24585
24586TIFF_LINK=
24587TIFF_PREREQ_LINKS=-lm
24588if test "$wxUSE_LIBTIFF" != "no" ; then
24589 cat >>confdefs.h <<\_ACEOF
24590#define wxUSE_LIBTIFF 1
24591_ACEOF
24592
24593
24594 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24595 if test "$wxUSE_LIBJPEG" = "sys"; then
24596 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24597 fi
24598 if test "$wxUSE_ZLIB" = "sys"; then
24599 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24600 fi
24601 if test "${ac_cv_header_tiffio_h+set}" = set; then
24602 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24603echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24604if test "${ac_cv_header_tiffio_h+set}" = set; then
24605 echo $ECHO_N "(cached) $ECHO_C" >&6
24606fi
24607echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24608echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24609else
24610 # Is the header compilable?
24611echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24612echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24613cat >conftest.$ac_ext <<_ACEOF
24614/* confdefs.h. */
24615_ACEOF
24616cat confdefs.h >>conftest.$ac_ext
24617cat >>conftest.$ac_ext <<_ACEOF
24618/* end confdefs.h. */
24619$ac_includes_default
24620#include <tiffio.h>
24621_ACEOF
24622rm -f conftest.$ac_objext
24623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24624 (eval $ac_compile) 2>conftest.er1
a848cd7e 24625 ac_status=$?
ac1cb8d3
VS
24626 grep -v '^ *+' conftest.er1 >conftest.err
24627 rm -f conftest.er1
24628 cat conftest.err >&5
a848cd7e
SC
24629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); } &&
6ebeb4c7 24631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24633 (eval $ac_try) 2>&5
24634 ac_status=$?
24635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); }; } &&
24637 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639 (eval $ac_try) 2>&5
24640 ac_status=$?
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); }; }; then
24643 ac_header_compiler=yes
24644else
24645 echo "$as_me: failed program was:" >&5
24646sed 's/^/| /' conftest.$ac_ext >&5
24647
24648ac_header_compiler=no
24649fi
ac1cb8d3 24650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24651echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24652echo "${ECHO_T}$ac_header_compiler" >&6
24653
24654# Is the header present?
24655echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24656echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24657cat >conftest.$ac_ext <<_ACEOF
24658/* confdefs.h. */
24659_ACEOF
24660cat confdefs.h >>conftest.$ac_ext
24661cat >>conftest.$ac_ext <<_ACEOF
24662/* end confdefs.h. */
24663#include <tiffio.h>
24664_ACEOF
24665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24667 ac_status=$?
24668 grep -v '^ *+' conftest.er1 >conftest.err
24669 rm -f conftest.er1
24670 cat conftest.err >&5
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); } >/dev/null; then
24673 if test -s conftest.err; then
24674 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24676 else
24677 ac_cpp_err=
24678 fi
24679else
24680 ac_cpp_err=yes
24681fi
24682if test -z "$ac_cpp_err"; then
24683 ac_header_preproc=yes
24684else
24685 echo "$as_me: failed program was:" >&5
24686sed 's/^/| /' conftest.$ac_ext >&5
24687
24688 ac_header_preproc=no
24689fi
24690rm -f conftest.err conftest.$ac_ext
24691echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24692echo "${ECHO_T}$ac_header_preproc" >&6
24693
24694# So? What about this header?
ac1cb8d3
VS
24695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24696 yes:no: )
a848cd7e
SC
24697 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24698echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24699 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24700echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24701 ac_header_preproc=yes
a848cd7e 24702 ;;
ac1cb8d3 24703 no:yes:* )
a848cd7e
SC
24704 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24705echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24706 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24707echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24708 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24709echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24710 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24711echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24712 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24713echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24714 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24715echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24716 (
24717 cat <<\_ASBOX
ac1cb8d3
VS
24718## ----------------------------------------- ##
24719## Report this to wx-dev@lists.wxwidgets.org ##
24720## ----------------------------------------- ##
a848cd7e
SC
24721_ASBOX
24722 ) |
24723 sed "s/^/$as_me: WARNING: /" >&2
24724 ;;
24725esac
24726echo "$as_me:$LINENO: checking for tiffio.h" >&5
24727echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24728if test "${ac_cv_header_tiffio_h+set}" = set; then
24729 echo $ECHO_N "(cached) $ECHO_C" >&6
24730else
24731 ac_cv_header_tiffio_h=$ac_header_preproc
24732fi
24733echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24734echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24735
24736fi
24737if test $ac_cv_header_tiffio_h = yes; then
24738
24739 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24740echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24741if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24742 echo $ECHO_N "(cached) $ECHO_C" >&6
24743else
24744 ac_check_lib_save_LIBS=$LIBS
24745LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24746cat >conftest.$ac_ext <<_ACEOF
24747/* confdefs.h. */
24748_ACEOF
24749cat confdefs.h >>conftest.$ac_ext
24750cat >>conftest.$ac_ext <<_ACEOF
24751/* end confdefs.h. */
24752
24753/* Override any gcc2 internal prototype to avoid an error. */
24754#ifdef __cplusplus
24755extern "C"
24756#endif
24757/* We use char because int might match the return type of a gcc2
24758 builtin and then its argument prototype would still apply. */
24759char TIFFError ();
24760int
24761main ()
24762{
24763TIFFError ();
24764 ;
24765 return 0;
24766}
24767_ACEOF
24768rm -f conftest.$ac_objext conftest$ac_exeext
24769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24770 (eval $ac_link) 2>conftest.er1
a848cd7e 24771 ac_status=$?
ac1cb8d3
VS
24772 grep -v '^ *+' conftest.er1 >conftest.err
24773 rm -f conftest.er1
24774 cat conftest.err >&5
a848cd7e
SC
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); } &&
6ebeb4c7 24777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24779 (eval $ac_try) 2>&5
24780 ac_status=$?
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); }; } &&
24783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24785 (eval $ac_try) 2>&5
24786 ac_status=$?
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); }; }; then
24789 ac_cv_lib_tiff_TIFFError=yes
24790else
24791 echo "$as_me: failed program was:" >&5
24792sed 's/^/| /' conftest.$ac_ext >&5
24793
24794ac_cv_lib_tiff_TIFFError=no
24795fi
ac1cb8d3
VS
24796rm -f conftest.err conftest.$ac_objext \
24797 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24798LIBS=$ac_check_lib_save_LIBS
24799fi
24800echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24801echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24802if test $ac_cv_lib_tiff_TIFFError = yes; then
24803 TIFF_LINK=" -ltiff"
24804fi
24805
24806
24807
24808fi
24809
24810
24811
24812 if test "x$TIFF_LINK" = "x" ; then
24813 if test "$wxUSE_LIBTIFF" = "sys" ; then
24814 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24815echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24816 { (exit 1); exit 1; }; }
24817 else
24818 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24819echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24820 wxUSE_LIBTIFF=builtin
24821 fi
24822 else
24823 wxUSE_LIBTIFF=sys
24824 fi
24825 fi
24826fi
24827
24828
47a7e797
MW
24829if test "$wxUSE_WCHAR_T" != "yes"; then
24830 if test "$wxUSE_EXPAT" != "no"; then
24831 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24832echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24833 wxUSE_EXPAT=no
24834 fi
24835 if test "$wxUSE_XML" != "no"; then
24836 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24837echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24838 wxUSE_XML=no
24839 fi
24840fi
24841
a848cd7e
SC
24842if test "$wxUSE_EXPAT" != "no"; then
24843 wxUSE_XML=yes
24844 cat >>confdefs.h <<\_ACEOF
24845#define wxUSE_EXPAT 1
24846_ACEOF
24847
24848 cat >>confdefs.h <<\_ACEOF
24849#define wxUSE_XML 1
24850_ACEOF
24851
24852
24853 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24854 if test "${ac_cv_header_expat_h+set}" = set; then
24855 echo "$as_me:$LINENO: checking for expat.h" >&5
24856echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24857if test "${ac_cv_header_expat_h+set}" = set; then
24858 echo $ECHO_N "(cached) $ECHO_C" >&6
24859fi
24860echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24861echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24862else
24863 # Is the header compilable?
24864echo "$as_me:$LINENO: checking expat.h usability" >&5
24865echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24866cat >conftest.$ac_ext <<_ACEOF
24867/* confdefs.h. */
24868_ACEOF
24869cat confdefs.h >>conftest.$ac_ext
24870cat >>conftest.$ac_ext <<_ACEOF
24871/* end confdefs.h. */
24872$ac_includes_default
24873#include <expat.h>
24874_ACEOF
24875rm -f conftest.$ac_objext
24876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24877 (eval $ac_compile) 2>conftest.er1
a848cd7e 24878 ac_status=$?
ac1cb8d3
VS
24879 grep -v '^ *+' conftest.er1 >conftest.err
24880 rm -f conftest.er1
24881 cat conftest.err >&5
a848cd7e
SC
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
6ebeb4c7 24884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; } &&
24890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892 (eval $ac_try) 2>&5
24893 ac_status=$?
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); }; }; then
24896 ac_header_compiler=yes
24897else
24898 echo "$as_me: failed program was:" >&5
24899sed 's/^/| /' conftest.$ac_ext >&5
24900
24901ac_header_compiler=no
24902fi
ac1cb8d3 24903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24904echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24905echo "${ECHO_T}$ac_header_compiler" >&6
24906
24907# Is the header present?
24908echo "$as_me:$LINENO: checking expat.h presence" >&5
24909echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
24910cat >conftest.$ac_ext <<_ACEOF
24911/* confdefs.h. */
24912_ACEOF
24913cat confdefs.h >>conftest.$ac_ext
24914cat >>conftest.$ac_ext <<_ACEOF
24915/* end confdefs.h. */
24916#include <expat.h>
24917_ACEOF
24918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24920 ac_status=$?
24921 grep -v '^ *+' conftest.er1 >conftest.err
24922 rm -f conftest.er1
24923 cat conftest.err >&5
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } >/dev/null; then
24926 if test -s conftest.err; then
24927 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24929 else
24930 ac_cpp_err=
24931 fi
24932else
24933 ac_cpp_err=yes
24934fi
24935if test -z "$ac_cpp_err"; then
24936 ac_header_preproc=yes
24937else
24938 echo "$as_me: failed program was:" >&5
24939sed 's/^/| /' conftest.$ac_ext >&5
24940
24941 ac_header_preproc=no
24942fi
24943rm -f conftest.err conftest.$ac_ext
24944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24945echo "${ECHO_T}$ac_header_preproc" >&6
24946
24947# So? What about this header?
ac1cb8d3
VS
24948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24949 yes:no: )
a848cd7e
SC
24950 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
24951echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24952 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
24953echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
24954 ac_header_preproc=yes
a848cd7e 24955 ;;
ac1cb8d3 24956 no:yes:* )
a848cd7e
SC
24957 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
24958echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24959 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
24960echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
24961 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
24962echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
24963 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
24964echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24965 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
24966echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24967 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
24968echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24969 (
24970 cat <<\_ASBOX
ac1cb8d3
VS
24971## ----------------------------------------- ##
24972## Report this to wx-dev@lists.wxwidgets.org ##
24973## ----------------------------------------- ##
a848cd7e
SC
24974_ASBOX
24975 ) |
24976 sed "s/^/$as_me: WARNING: /" >&2
24977 ;;
24978esac
24979echo "$as_me:$LINENO: checking for expat.h" >&5
24980echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24981if test "${ac_cv_header_expat_h+set}" = set; then
24982 echo $ECHO_N "(cached) $ECHO_C" >&6
24983else
24984 ac_cv_header_expat_h=$ac_header_preproc
24985fi
24986echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24987echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24988
24989fi
24990if test $ac_cv_header_expat_h = yes; then
24991 found_expat_h=1
24992fi
24993
24994
24995 if test "x$found_expat_h" = "x1"; then
24996 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
24997echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
24998if test "${wx_cv_expat_is_not_broken+set}" = set; then
24999 echo $ECHO_N "(cached) $ECHO_C" >&6
25000else
25001
25002
25003
25004 ac_ext=cc
25005ac_cpp='$CXXCPP $CPPFLAGS'
25006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25009
25010 cat >conftest.$ac_ext <<_ACEOF
25011/* confdefs.h. */
25012_ACEOF
25013cat confdefs.h >>conftest.$ac_ext
25014cat >>conftest.$ac_ext <<_ACEOF
25015/* end confdefs.h. */
25016#include <expat.h>
25017int
25018main ()
25019{
25020
25021 ;
25022 return 0;
25023}
25024_ACEOF
25025rm -f conftest.$ac_objext
25026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25027 (eval $ac_compile) 2>conftest.er1
a848cd7e 25028 ac_status=$?
ac1cb8d3
VS
25029 grep -v '^ *+' conftest.er1 >conftest.err
25030 rm -f conftest.er1
25031 cat conftest.err >&5
a848cd7e
SC
25032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); } &&
6ebeb4c7 25034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25036 (eval $ac_try) 2>&5
25037 ac_status=$?
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); }; } &&
25040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25042 (eval $ac_try) 2>&5
25043 ac_status=$?
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); }; }; then
25046 wx_cv_expat_is_not_broken=yes
25047else
25048 echo "$as_me: failed program was:" >&5
25049sed 's/^/| /' conftest.$ac_ext >&5
25050
25051wx_cv_expat_is_not_broken=no
25052
25053fi
ac1cb8d3 25054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25055 ac_ext=c
25056ac_cpp='$CPP $CPPFLAGS'
25057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25059ac_compiler_gnu=$ac_cv_c_compiler_gnu
25060
25061
25062
25063fi
25064echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25065echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25066 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25067 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25068echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25069if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25070 echo $ECHO_N "(cached) $ECHO_C" >&6
25071else
25072 ac_check_lib_save_LIBS=$LIBS
25073LIBS="-lexpat $LIBS"
25074cat >conftest.$ac_ext <<_ACEOF
25075/* confdefs.h. */
25076_ACEOF
25077cat confdefs.h >>conftest.$ac_ext
25078cat >>conftest.$ac_ext <<_ACEOF
25079/* end confdefs.h. */
25080
25081/* Override any gcc2 internal prototype to avoid an error. */
25082#ifdef __cplusplus
25083extern "C"
25084#endif
25085/* We use char because int might match the return type of a gcc2
25086 builtin and then its argument prototype would still apply. */
25087char XML_ParserCreate ();
25088int
25089main ()
25090{
25091XML_ParserCreate ();
25092 ;
25093 return 0;
25094}
25095_ACEOF
25096rm -f conftest.$ac_objext conftest$ac_exeext
25097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25098 (eval $ac_link) 2>conftest.er1
a848cd7e 25099 ac_status=$?
ac1cb8d3
VS
25100 grep -v '^ *+' conftest.er1 >conftest.err
25101 rm -f conftest.er1
25102 cat conftest.err >&5
a848cd7e
SC
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); } &&
6ebeb4c7 25105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107 (eval $ac_try) 2>&5
25108 ac_status=$?
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); }; } &&
25111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113 (eval $ac_try) 2>&5
25114 ac_status=$?
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); }; }; then
25117 ac_cv_lib_expat_XML_ParserCreate=yes
25118else
25119 echo "$as_me: failed program was:" >&5
25120sed 's/^/| /' conftest.$ac_ext >&5
25121
25122ac_cv_lib_expat_XML_ParserCreate=no
25123fi
ac1cb8d3
VS
25124rm -f conftest.err conftest.$ac_objext \
25125 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25126LIBS=$ac_check_lib_save_LIBS
25127fi
25128echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25129echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25130if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25131 EXPAT_LINK=" -lexpat"
25132fi
25133
25134 fi
25135 fi
25136 if test "x$EXPAT_LINK" = "x" ; then
25137 if test "$wxUSE_EXPAT" = "sys" ; then
25138 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25139echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25140 { (exit 1); exit 1; }; }
25141 else
25142 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25143echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25144 wxUSE_EXPAT=builtin
25145 fi
25146 else
25147 wxUSE_EXPAT=sys
25148 fi
25149 fi
25150 if test "$wxUSE_EXPAT" = "builtin" ; then
25151
25152
25153subdirs="$subdirs src/expat"
25154
25155 fi
25156fi
25157
25158
25159
25160if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25161 if test "${ac_cv_header_mspack_h+set}" = set; then
25162 echo "$as_me:$LINENO: checking for mspack.h" >&5
25163echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25164if test "${ac_cv_header_mspack_h+set}" = set; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
25166fi
25167echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25168echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25169else
25170 # Is the header compilable?
25171echo "$as_me:$LINENO: checking mspack.h usability" >&5
25172echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25173cat >conftest.$ac_ext <<_ACEOF
25174/* confdefs.h. */
25175_ACEOF
25176cat confdefs.h >>conftest.$ac_ext
25177cat >>conftest.$ac_ext <<_ACEOF
25178/* end confdefs.h. */
25179$ac_includes_default
25180#include <mspack.h>
25181_ACEOF
25182rm -f conftest.$ac_objext
25183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25184 (eval $ac_compile) 2>conftest.er1
a848cd7e 25185 ac_status=$?
ac1cb8d3
VS
25186 grep -v '^ *+' conftest.er1 >conftest.err
25187 rm -f conftest.er1
25188 cat conftest.err >&5
a848cd7e
SC
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } &&
6ebeb4c7 25191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; } &&
25197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199 (eval $ac_try) 2>&5
25200 ac_status=$?
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; }; then
25203 ac_header_compiler=yes
25204else
25205 echo "$as_me: failed program was:" >&5
25206sed 's/^/| /' conftest.$ac_ext >&5
25207
25208ac_header_compiler=no
25209fi
ac1cb8d3 25210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25211echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25212echo "${ECHO_T}$ac_header_compiler" >&6
25213
25214# Is the header present?
25215echo "$as_me:$LINENO: checking mspack.h presence" >&5
25216echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25217cat >conftest.$ac_ext <<_ACEOF
25218/* confdefs.h. */
25219_ACEOF
25220cat confdefs.h >>conftest.$ac_ext
25221cat >>conftest.$ac_ext <<_ACEOF
25222/* end confdefs.h. */
25223#include <mspack.h>
25224_ACEOF
25225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25227 ac_status=$?
25228 grep -v '^ *+' conftest.er1 >conftest.err
25229 rm -f conftest.er1
25230 cat conftest.err >&5
25231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232 (exit $ac_status); } >/dev/null; then
25233 if test -s conftest.err; then
25234 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25236 else
25237 ac_cpp_err=
25238 fi
25239else
25240 ac_cpp_err=yes
25241fi
25242if test -z "$ac_cpp_err"; then
25243 ac_header_preproc=yes
25244else
25245 echo "$as_me: failed program was:" >&5
25246sed 's/^/| /' conftest.$ac_ext >&5
25247
25248 ac_header_preproc=no
25249fi
25250rm -f conftest.err conftest.$ac_ext
25251echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25252echo "${ECHO_T}$ac_header_preproc" >&6
25253
25254# So? What about this header?
ac1cb8d3
VS
25255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25256 yes:no: )
a848cd7e
SC
25257 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25258echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25259 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25260echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25261 ac_header_preproc=yes
a848cd7e 25262 ;;
ac1cb8d3 25263 no:yes:* )
a848cd7e
SC
25264 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25265echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25266 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25267echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25268 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25269echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25270 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25271echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25272 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25273echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25274 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25275echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25276 (
25277 cat <<\_ASBOX
ac1cb8d3
VS
25278## ----------------------------------------- ##
25279## Report this to wx-dev@lists.wxwidgets.org ##
25280## ----------------------------------------- ##
a848cd7e
SC
25281_ASBOX
25282 ) |
25283 sed "s/^/$as_me: WARNING: /" >&2
25284 ;;
25285esac
25286echo "$as_me:$LINENO: checking for mspack.h" >&5
25287echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25288if test "${ac_cv_header_mspack_h+set}" = set; then
25289 echo $ECHO_N "(cached) $ECHO_C" >&6
25290else
25291 ac_cv_header_mspack_h=$ac_header_preproc
25292fi
25293echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25294echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25295
25296fi
25297if test $ac_cv_header_mspack_h = yes; then
25298 found_mspack_h=1
25299fi
25300
25301
25302 if test "x$found_mspack_h" = "x1"; then
25303 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25304echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25305if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25306 echo $ECHO_N "(cached) $ECHO_C" >&6
25307else
25308 ac_check_lib_save_LIBS=$LIBS
25309LIBS="-lmspack $LIBS"
25310cat >conftest.$ac_ext <<_ACEOF
25311/* confdefs.h. */
25312_ACEOF
25313cat confdefs.h >>conftest.$ac_ext
25314cat >>conftest.$ac_ext <<_ACEOF
25315/* end confdefs.h. */
25316
25317/* Override any gcc2 internal prototype to avoid an error. */
25318#ifdef __cplusplus
25319extern "C"
25320#endif
25321/* We use char because int might match the return type of a gcc2
25322 builtin and then its argument prototype would still apply. */
25323char mspack_create_chm_decompressor ();
25324int
25325main ()
25326{
25327mspack_create_chm_decompressor ();
25328 ;
25329 return 0;
25330}
25331_ACEOF
25332rm -f conftest.$ac_objext conftest$ac_exeext
25333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25334 (eval $ac_link) 2>conftest.er1
a848cd7e 25335 ac_status=$?
ac1cb8d3
VS
25336 grep -v '^ *+' conftest.er1 >conftest.err
25337 rm -f conftest.er1
25338 cat conftest.err >&5
a848cd7e
SC
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); } &&
6ebeb4c7 25341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343 (eval $ac_try) 2>&5
25344 ac_status=$?
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; } &&
25347 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25349 (eval $ac_try) 2>&5
25350 ac_status=$?
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); }; }; then
25353 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25354else
25355 echo "$as_me: failed program was:" >&5
25356sed 's/^/| /' conftest.$ac_ext >&5
25357
25358ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25359fi
ac1cb8d3
VS
25360rm -f conftest.err conftest.$ac_objext \
25361 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25362LIBS=$ac_check_lib_save_LIBS
25363fi
25364echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25365echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25366if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25367 MSPACK_LINK=" -lmspack"
25368fi
25369
25370 fi
25371 if test "x$MSPACK_LINK" = "x" ; then
25372 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25373 fi
25374fi
25375
25376if test "$wxUSE_LIBMSPACK" != "no"; then
25377 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25378#define wxUSE_LIBMSPACK 1
25379_ACEOF
25380
a848cd7e
SC
25381fi
25382
25383
25384
25385AFMINSTALL=
25386WIN32INSTALL=
25387
25388TOOLKIT=
25389TOOLKIT_INCLUDE=
25390WIDGET_SET=
25391
25392if test "$USE_WIN32" = 1 ; then
25393
25394for ac_header in w32api.h
25395do
25396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25397if eval "test \"\${$as_ac_Header+set}\" = set"; then
25398 echo "$as_me:$LINENO: checking for $ac_header" >&5
25399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25400if eval "test \"\${$as_ac_Header+set}\" = set"; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25402fi
25403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25405else
25406 # Is the header compilable?
25407echo "$as_me:$LINENO: checking $ac_header usability" >&5
25408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25409cat >conftest.$ac_ext <<_ACEOF
25410/* confdefs.h. */
25411_ACEOF
25412cat confdefs.h >>conftest.$ac_ext
25413cat >>conftest.$ac_ext <<_ACEOF
25414/* end confdefs.h. */
25415$ac_includes_default
25416#include <$ac_header>
25417_ACEOF
25418rm -f conftest.$ac_objext
25419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25420 (eval $ac_compile) 2>conftest.er1
a848cd7e 25421 ac_status=$?
ac1cb8d3
VS
25422 grep -v '^ *+' conftest.er1 >conftest.err
25423 rm -f conftest.er1
25424 cat conftest.err >&5
a848cd7e
SC
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); } &&
6ebeb4c7 25427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25429 (eval $ac_try) 2>&5
25430 ac_status=$?
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); }; } &&
25433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25435 (eval $ac_try) 2>&5
25436 ac_status=$?
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); }; }; then
25439 ac_header_compiler=yes
25440else
25441 echo "$as_me: failed program was:" >&5
25442sed 's/^/| /' conftest.$ac_ext >&5
25443
25444ac_header_compiler=no
25445fi
ac1cb8d3 25446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25447echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25448echo "${ECHO_T}$ac_header_compiler" >&6
25449
25450# Is the header present?
25451echo "$as_me:$LINENO: checking $ac_header presence" >&5
25452echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25453cat >conftest.$ac_ext <<_ACEOF
25454/* confdefs.h. */
25455_ACEOF
25456cat confdefs.h >>conftest.$ac_ext
25457cat >>conftest.$ac_ext <<_ACEOF
25458/* end confdefs.h. */
25459#include <$ac_header>
25460_ACEOF
25461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25463 ac_status=$?
25464 grep -v '^ *+' conftest.er1 >conftest.err
25465 rm -f conftest.er1
25466 cat conftest.err >&5
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); } >/dev/null; then
25469 if test -s conftest.err; then
25470 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25472 else
25473 ac_cpp_err=
25474 fi
25475else
25476 ac_cpp_err=yes
25477fi
25478if test -z "$ac_cpp_err"; then
25479 ac_header_preproc=yes
25480else
25481 echo "$as_me: failed program was:" >&5
25482sed 's/^/| /' conftest.$ac_ext >&5
25483
25484 ac_header_preproc=no
25485fi
25486rm -f conftest.err conftest.$ac_ext
25487echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25488echo "${ECHO_T}$ac_header_preproc" >&6
25489
25490# So? What about this header?
ac1cb8d3
VS
25491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25492 yes:no: )
a848cd7e
SC
25493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25494echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25496echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25497 ac_header_preproc=yes
a848cd7e 25498 ;;
ac1cb8d3 25499 no:yes:* )
a848cd7e
SC
25500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25501echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25503echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25505echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25507echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25509echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25511echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25512 (
25513 cat <<\_ASBOX
ac1cb8d3
VS
25514## ----------------------------------------- ##
25515## Report this to wx-dev@lists.wxwidgets.org ##
25516## ----------------------------------------- ##
a848cd7e
SC
25517_ASBOX
25518 ) |
25519 sed "s/^/$as_me: WARNING: /" >&2
25520 ;;
25521esac
25522echo "$as_me:$LINENO: checking for $ac_header" >&5
25523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25524if eval "test \"\${$as_ac_Header+set}\" = set"; then
25525 echo $ECHO_N "(cached) $ECHO_C" >&6
25526else
ac1cb8d3 25527 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25528fi
25529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25531
25532fi
25533if test `eval echo '${'$as_ac_Header'}'` = yes; then
25534 cat >>confdefs.h <<_ACEOF
25535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25536_ACEOF
25537
25538fi
25539
25540done
25541
25542 if test "${ac_cv_header_windows_h+set}" = set; then
25543 echo "$as_me:$LINENO: checking for windows.h" >&5
25544echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25545if test "${ac_cv_header_windows_h+set}" = set; then
25546 echo $ECHO_N "(cached) $ECHO_C" >&6
25547fi
25548echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25549echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25550else
25551 # Is the header compilable?
25552echo "$as_me:$LINENO: checking windows.h usability" >&5
25553echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25554cat >conftest.$ac_ext <<_ACEOF
25555/* confdefs.h. */
25556_ACEOF
25557cat confdefs.h >>conftest.$ac_ext
25558cat >>conftest.$ac_ext <<_ACEOF
25559/* end confdefs.h. */
25560$ac_includes_default
25561#include <windows.h>
25562_ACEOF
25563rm -f conftest.$ac_objext
25564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25565 (eval $ac_compile) 2>conftest.er1
a848cd7e 25566 ac_status=$?
ac1cb8d3
VS
25567 grep -v '^ *+' conftest.er1 >conftest.err
25568 rm -f conftest.er1
25569 cat conftest.err >&5
a848cd7e
SC
25570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571 (exit $ac_status); } &&
6ebeb4c7 25572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25574 (eval $ac_try) 2>&5
25575 ac_status=$?
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); }; } &&
25578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25580 (eval $ac_try) 2>&5
25581 ac_status=$?
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); }; }; then
25584 ac_header_compiler=yes
25585else
25586 echo "$as_me: failed program was:" >&5
25587sed 's/^/| /' conftest.$ac_ext >&5
25588
25589ac_header_compiler=no
25590fi
ac1cb8d3 25591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25593echo "${ECHO_T}$ac_header_compiler" >&6
25594
25595# Is the header present?
25596echo "$as_me:$LINENO: checking windows.h presence" >&5
25597echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25598cat >conftest.$ac_ext <<_ACEOF
25599/* confdefs.h. */
25600_ACEOF
25601cat confdefs.h >>conftest.$ac_ext
25602cat >>conftest.$ac_ext <<_ACEOF
25603/* end confdefs.h. */
25604#include <windows.h>
25605_ACEOF
25606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25608 ac_status=$?
25609 grep -v '^ *+' conftest.er1 >conftest.err
25610 rm -f conftest.er1
25611 cat conftest.err >&5
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); } >/dev/null; then
25614 if test -s conftest.err; then
25615 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25617 else
25618 ac_cpp_err=
25619 fi
25620else
25621 ac_cpp_err=yes
25622fi
25623if test -z "$ac_cpp_err"; then
25624 ac_header_preproc=yes
25625else
25626 echo "$as_me: failed program was:" >&5
25627sed 's/^/| /' conftest.$ac_ext >&5
25628
25629 ac_header_preproc=no
25630fi
25631rm -f conftest.err conftest.$ac_ext
25632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25633echo "${ECHO_T}$ac_header_preproc" >&6
25634
25635# So? What about this header?
ac1cb8d3
VS
25636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25637 yes:no: )
a848cd7e
SC
25638 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25639echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25640 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25641echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25642 ac_header_preproc=yes
a848cd7e 25643 ;;
ac1cb8d3 25644 no:yes:* )
a848cd7e
SC
25645 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25646echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25647 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25648echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25649 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25650echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25651 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25652echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25653 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25654echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25655 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25656echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25657 (
25658 cat <<\_ASBOX
ac1cb8d3
VS
25659## ----------------------------------------- ##
25660## Report this to wx-dev@lists.wxwidgets.org ##
25661## ----------------------------------------- ##
a848cd7e
SC
25662_ASBOX
25663 ) |
25664 sed "s/^/$as_me: WARNING: /" >&2
25665 ;;
25666esac
25667echo "$as_me:$LINENO: checking for windows.h" >&5
25668echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25669if test "${ac_cv_header_windows_h+set}" = set; then
25670 echo $ECHO_N "(cached) $ECHO_C" >&6
25671else
25672 ac_cv_header_windows_h=$ac_header_preproc
25673fi
25674echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25675echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25676
25677fi
25678if test $ac_cv_header_windows_h = yes; then
25679 :
25680else
25681
25682 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25683echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25684 { (exit 1); exit 1; }; }
25685
25686fi
25687
25688
25689
25690 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25691
25692 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25693 LIBS="$LIBS -loleacc"
25694 fi
25695
25696 case "${host}" in
25697 *-*-cygwin* )
25698 LIBS="$LIBS -lkernel32 -luser32"
25699 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
25700 esac
25701
25702 if test "$wxUSE_ODBC" = "sys" ; then
25703 wxUSE_ODBC = "yes"
25704 fi
25705 if test "$wxUSE_ODBC" = "yes" ; then
25706 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25707 cat >>confdefs.h <<\_ACEOF
25708#define wxUSE_ODBC 1
25709_ACEOF
25710
25711 fi
25712
25713 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25714 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25715
25716 WIN32INSTALL=win32install
25717fi
25718
25719if test "$wxUSE_GUI" = "yes"; then
25720 USE_GUI=1
25721
25722 GUI_TK_LIBRARY=
25723
25724 WXGTK12=
25725 WXGTK127=
25726 WXGTK20=
25727 WXGPE=
25728
207bc66c
RN
25729 if test "$wxUSE_COCOA" = 1 ; then
25730 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25731 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25732echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25733 wxUSE_PRINTING_ARCHITECTURE=no
25734 fi
25735 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25736 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25737echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25738 wxUSE_DRAG_AND_DROP=no
25739 fi
25740 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25741 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25742echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25743 wxUSE_DRAGIMAGE=no
25744 fi
25745 fi
25746
a848cd7e
SC
25747 if test "$wxUSE_MSW" = 1 ; then
25748 TOOLKIT=MSW
25749 GUIDIST=MSW_DIST
25750
ceec2216 25751 case "${host}" in
a848cd7e
SC
25752 *-*-mingw32* )
25753 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25754 esac
25755 fi
25756
25757 if test "$wxUSE_GTK" = 1; then
25758 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25759echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25760
25761 gtk_version_cached=1
25762 if test "${wx_cv_lib_gtk+set}" = set; then
25763 echo $ECHO_N "(cached) $ECHO_C" >&6
25764else
25765
25766 gtk_version_cached=0
25767 echo "$as_me:$LINENO: result: " >&5
25768echo "${ECHO_T}" >&6
25769
25770 GTK_MODULES=
25771 if test "$wxUSE_THREADS" = "yes"; then
25772 GTK_MODULES=gthread
25773 fi
25774
f597b41c 25775 wx_cv_lib_gtk=
5001df0d
MW
25776 if test "x$wxGTK_VERSION" != "x1"
25777 then
25778 case "${host}" in
25779 *-*-solaris2* )
25780 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25781 enable_gtktest=no
25782 fi
25783 esac
25784
a848cd7e
SC
25785 # Check whether --enable-gtktest or --disable-gtktest was given.
25786if test "${enable_gtktest+set}" = set; then
25787 enableval="$enable_gtktest"
25788
25789else
25790 enable_gtktest=yes
25791fi;
25792
25793 pkg_config_args=gtk+-2.0
25794 for module in . $GTK_MODULES
25795 do
25796 case "$module" in
25797 gthread)
25798 pkg_config_args="$pkg_config_args gthread-2.0"
25799 ;;
25800 esac
25801 done
25802
25803 no_gtk=""
25804
25805 # Extract the first word of "pkg-config", so it can be a program name with args.
25806set dummy pkg-config; ac_word=$2
25807echo "$as_me:$LINENO: checking for $ac_word" >&5
25808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25809if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25810 echo $ECHO_N "(cached) $ECHO_C" >&6
25811else
25812 case $PKG_CONFIG in
25813 [\\/]* | ?:[\\/]*)
25814 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25815 ;;
25816 *)
25817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25818for as_dir in $PATH
25819do
25820 IFS=$as_save_IFS
25821 test -z "$as_dir" && as_dir=.
25822 for ac_exec_ext in '' $ac_executable_extensions; do
25823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25824 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25826 break 2
25827 fi
25828done
25829done
25830
25831 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25832 ;;
25833esac
25834fi
25835PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25836
25837if test -n "$PKG_CONFIG"; then
25838 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25839echo "${ECHO_T}$PKG_CONFIG" >&6
25840else
25841 echo "$as_me:$LINENO: result: no" >&5
25842echo "${ECHO_T}no" >&6
25843fi
25844
25845
25846 if test x$PKG_CONFIG != xno ; then
25847 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25848 :
25849 else
c2218763 25850 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25851 no_gtk=yes
25852 PKG_CONFIG=no
25853 fi
25854 else
25855 no_gtk=yes
25856 fi
25857
25858 min_gtk_version=2.0.0
25859 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25860echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25861
25862 if test x$PKG_CONFIG != xno ; then
25863 ## don't try to run the test against uninstalled libtool libs
25864 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25865 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25866 enable_gtktest=no
25867 fi
25868
25869 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25870 :
25871 else
25872 no_gtk=yes
25873 fi
25874 fi
25875
25876 if test x"$no_gtk" = x ; then
25877 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25878 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25879 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25880 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25881 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25882 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25883 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25884 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25885 if test "x$enable_gtktest" = "xyes" ; then
25886 ac_save_CFLAGS="$CFLAGS"
25887 ac_save_LIBS="$LIBS"
25888 CFLAGS="$CFLAGS $GTK_CFLAGS"
25889 LIBS="$GTK_LIBS $LIBS"
25890 rm -f conf.gtktest
25891 if test "$cross_compiling" = yes; then
25892 echo $ac_n "cross compiling; assumed OK... $ac_c"
25893else
25894 cat >conftest.$ac_ext <<_ACEOF
25895/* confdefs.h. */
25896_ACEOF
25897cat confdefs.h >>conftest.$ac_ext
25898cat >>conftest.$ac_ext <<_ACEOF
25899/* end confdefs.h. */
25900
25901#include <gtk/gtk.h>
25902#include <stdio.h>
25903#include <stdlib.h>
25904
25905int
25906main ()
25907{
25908 int major, minor, micro;
25909 char *tmp_version;
25910
25911 system ("touch conf.gtktest");
25912
25913 /* HP/UX 9 (%@#!) writes to sscanf strings */
25914 tmp_version = g_strdup("$min_gtk_version");
25915 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25916 printf("%s, bad version string\n", "$min_gtk_version");
25917 exit(1);
25918 }
25919
25920 if ((gtk_major_version != $gtk_config_major_version) ||
25921 (gtk_minor_version != $gtk_config_minor_version) ||
25922 (gtk_micro_version != $gtk_config_micro_version))
25923 {
25924 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25925 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25926 gtk_major_version, gtk_minor_version, gtk_micro_version);
25927 printf ("*** was found! If pkg-config was correct, then it is best\n");
25928 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25929 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25930 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25931 printf("*** required on your system.\n");
25932 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
25933 printf("*** to point to the correct configuration files\n");
25934 }
25935 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25936 (gtk_minor_version != GTK_MINOR_VERSION) ||
25937 (gtk_micro_version != GTK_MICRO_VERSION))
25938 {
25939 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25940 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25941 printf("*** library (version %d.%d.%d)\n",
25942 gtk_major_version, gtk_minor_version, gtk_micro_version);
25943 }
25944 else
25945 {
25946 if ((gtk_major_version > major) ||
25947 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25948 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25949 {
25950 return 0;
25951 }
25952 else
25953 {
25954 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25955 gtk_major_version, gtk_minor_version, gtk_micro_version);
25956 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25957 major, minor, micro);
25958 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25959 printf("***\n");
25960 printf("*** If you have already installed a sufficiently new version, this error\n");
25961 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
25962 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25963 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
25964 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
25965 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25966 printf("*** so that the correct libraries are found at run-time))\n");
25967 }
25968 }
25969 return 1;
25970}
25971
25972_ACEOF
25973rm -f conftest$ac_exeext
25974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25975 (eval $ac_link) 2>&5
25976 ac_status=$?
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25980 (eval $ac_try) 2>&5
25981 ac_status=$?
25982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983 (exit $ac_status); }; }; then
25984 :
25985else
25986 echo "$as_me: program exited with status $ac_status" >&5
25987echo "$as_me: failed program was:" >&5
25988sed 's/^/| /' conftest.$ac_ext >&5
25989
25990( exit $ac_status )
25991no_gtk=yes
25992fi
ac1cb8d3 25993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25994fi
25995 CFLAGS="$ac_save_CFLAGS"
25996 LIBS="$ac_save_LIBS"
25997 fi
25998 fi
25999 if test "x$no_gtk" = x ; then
26000 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26001echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26002 wx_cv_lib_gtk=2.0
26003 else
26004 echo "$as_me:$LINENO: result: no" >&5
26005echo "${ECHO_T}no" >&6
26006 if test "$PKG_CONFIG" = "no" ; then
26007 echo "*** A new enough version of pkg-config was not found."
26008 echo "*** See http://pkgconfig.sourceforge.net"
26009 else
26010 if test -f conf.gtktest ; then
26011 :
26012 else
26013 echo "*** Could not run GTK+ test program, checking why..."
26014 ac_save_CFLAGS="$CFLAGS"
26015 ac_save_LIBS="$LIBS"
26016 CFLAGS="$CFLAGS $GTK_CFLAGS"
26017 LIBS="$LIBS $GTK_LIBS"
26018 cat >conftest.$ac_ext <<_ACEOF
26019/* confdefs.h. */
26020_ACEOF
26021cat confdefs.h >>conftest.$ac_ext
26022cat >>conftest.$ac_ext <<_ACEOF
26023/* end confdefs.h. */
26024
26025#include <gtk/gtk.h>
26026#include <stdio.h>
26027
26028int
26029main ()
26030{
26031 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26032 ;
26033 return 0;
26034}
26035_ACEOF
26036rm -f conftest.$ac_objext conftest$ac_exeext
26037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26038 (eval $ac_link) 2>conftest.er1
a848cd7e 26039 ac_status=$?
ac1cb8d3
VS
26040 grep -v '^ *+' conftest.er1 >conftest.err
26041 rm -f conftest.er1
26042 cat conftest.err >&5
a848cd7e
SC
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); } &&
6ebeb4c7 26045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047 (eval $ac_try) 2>&5
26048 ac_status=$?
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); }; } &&
26051 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26053 (eval $ac_try) 2>&5
26054 ac_status=$?
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); }; }; then
26057 echo "*** The test program compiled, but did not run. This usually means"
26058 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26059 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26060 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26061 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26062 echo "*** is required on your system"
26063 echo "***"
26064 echo "*** If you have an old version installed, it is best to remove it, although"
26065 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26066else
26067 echo "$as_me: failed program was:" >&5
26068sed 's/^/| /' conftest.$ac_ext >&5
26069
26070 echo "*** The test program failed to compile or link. See the file config.log for the"
26071 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26072fi
ac1cb8d3
VS
26073rm -f conftest.err conftest.$ac_objext \
26074 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26075 CFLAGS="$ac_save_CFLAGS"
26076 LIBS="$ac_save_LIBS"
26077 fi
26078 fi
26079 GTK_CFLAGS=""
26080 GTK_LIBS=""
26081 :
26082 fi
26083
26084
26085 rm -f conf.gtktest
26086
5001df0d
MW
26087
26088 case "${host}" in
26089 *-*-solaris2* )
26090 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26091 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26092 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26093 fi
26094 if test "$wxUSE_SHARED" != "yes"; then
26095 GTK_LIBS="$GTK_LIBS -lX11"
26096 fi
26097 esac
f597b41c
MW
26098 fi
26099
f34ca037
MW
26100 if test -z "$wx_cv_lib_gtk"; then
26101 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26102
26103# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26104if test "${with_gtk_prefix+set}" = set; then
26105 withval="$with_gtk_prefix"
26106 gtk_config_prefix="$withval"
26107else
26108 gtk_config_prefix=""
26109fi;
26110
26111# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26112if test "${with_gtk_exec_prefix+set}" = set; then
26113 withval="$with_gtk_exec_prefix"
26114 gtk_config_exec_prefix="$withval"
26115else
26116 gtk_config_exec_prefix=""
26117fi;
26118# Check whether --enable-gtktest or --disable-gtktest was given.
26119if test "${enable_gtktest+set}" = set; then
26120 enableval="$enable_gtktest"
26121
26122else
26123 enable_gtktest=yes
26124fi;
26125
26126 for module in . $GTK_MODULES
26127 do
26128 case "$module" in
26129 gthread)
26130 gtk_config_args="$gtk_config_args gthread"
26131 ;;
26132 esac
26133 done
26134
26135 if test x$gtk_config_exec_prefix != x ; then
26136 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26137 if test x${GTK_CONFIG+set} != xset ; then
26138 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26139 fi
26140 fi
26141 if test x$gtk_config_prefix != x ; then
26142 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26143 if test x${GTK_CONFIG+set} != xset ; then
26144 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26145 fi
26146 fi
26147
26148 # Extract the first word of "gtk-config", so it can be a program name with args.
26149set dummy gtk-config; ac_word=$2
26150echo "$as_me:$LINENO: checking for $ac_word" >&5
26151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26152if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26153 echo $ECHO_N "(cached) $ECHO_C" >&6
26154else
26155 case $GTK_CONFIG in
26156 [\\/]* | ?:[\\/]*)
26157 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26158 ;;
26159 *)
26160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26161for as_dir in $PATH
26162do
26163 IFS=$as_save_IFS
26164 test -z "$as_dir" && as_dir=.
26165 for ac_exec_ext in '' $ac_executable_extensions; do
26166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26167 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26169 break 2
26170 fi
26171done
26172done
26173
26174 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26175 ;;
26176esac
26177fi
26178GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26179
26180if test -n "$GTK_CONFIG"; then
26181 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26182echo "${ECHO_T}$GTK_CONFIG" >&6
26183else
26184 echo "$as_me:$LINENO: result: no" >&5
26185echo "${ECHO_T}no" >&6
26186fi
26187
26188 min_gtk_version=1.2.7
26189 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26190echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26191 no_gtk=""
26192 if test "$GTK_CONFIG" = "no" ; then
26193 no_gtk=yes
26194 else
26195 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26196 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26197 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26198 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26199 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26200 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26201 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26202 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26203 if test "x$enable_gtktest" = "xyes" ; then
26204 ac_save_CFLAGS="$CFLAGS"
26205 ac_save_LIBS="$LIBS"
26206 CFLAGS="$CFLAGS $GTK_CFLAGS"
26207 LIBS="$GTK_LIBS $LIBS"
26208 rm -f conf.gtktest
26209 if test "$cross_compiling" = yes; then
26210 echo $ac_n "cross compiling; assumed OK... $ac_c"
26211else
26212 cat >conftest.$ac_ext <<_ACEOF
26213/* confdefs.h. */
26214_ACEOF
26215cat confdefs.h >>conftest.$ac_ext
26216cat >>conftest.$ac_ext <<_ACEOF
26217/* end confdefs.h. */
26218
26219#include <gtk/gtk.h>
26220#include <stdio.h>
26221#include <stdlib.h>
26222
26223int
26224main ()
26225{
26226 int major, minor, micro;
26227 char *tmp_version;
26228
26229 system ("touch conf.gtktest");
26230
26231 /* HP/UX 9 (%@#!) writes to sscanf strings */
26232 tmp_version = g_strdup("$min_gtk_version");
26233 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26234 printf("%s, bad version string\n", "$min_gtk_version");
26235 exit(1);
26236 }
26237
26238 if ((gtk_major_version != $gtk_config_major_version) ||
26239 (gtk_minor_version != $gtk_config_minor_version) ||
26240 (gtk_micro_version != $gtk_config_micro_version))
26241 {
26242 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26243 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26244 gtk_major_version, gtk_minor_version, gtk_micro_version);
26245 printf ("*** was found! If gtk-config was correct, then it is best\n");
26246 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26247 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26248 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26249 printf("*** required on your system.\n");
26250 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26251 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26252 printf("*** before re-running configure\n");
26253 }
26254#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26255 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26256 (gtk_minor_version != GTK_MINOR_VERSION) ||
26257 (gtk_micro_version != GTK_MICRO_VERSION))
26258 {
26259 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26260 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26261 printf("*** library (version %d.%d.%d)\n",
26262 gtk_major_version, gtk_minor_version, gtk_micro_version);
26263 }
26264#endif /* defined (GTK_MAJOR_VERSION) ... */
26265 else
26266 {
26267 if ((gtk_major_version > major) ||
26268 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26269 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26270 {
26271 return 0;
26272 }
26273 else
26274 {
26275 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26276 gtk_major_version, gtk_minor_version, gtk_micro_version);
26277 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26278 major, minor, micro);
26279 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26280 printf("***\n");
26281 printf("*** If you have already installed a sufficiently new version, this error\n");
26282 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26283 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26284 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26285 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26286 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26287 printf("*** so that the correct libraries are found at run-time))\n");
26288 }
26289 }
26290 return 1;
26291}
26292
26293_ACEOF
26294rm -f conftest$ac_exeext
26295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26296 (eval $ac_link) 2>&5
26297 ac_status=$?
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26301 (eval $ac_try) 2>&5
26302 ac_status=$?
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); }; }; then
26305 :
26306else
26307 echo "$as_me: program exited with status $ac_status" >&5
26308echo "$as_me: failed program was:" >&5
26309sed 's/^/| /' conftest.$ac_ext >&5
26310
26311( exit $ac_status )
26312no_gtk=yes
26313fi
ac1cb8d3 26314rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26315fi
26316 CFLAGS="$ac_save_CFLAGS"
26317 LIBS="$ac_save_LIBS"
26318 fi
26319 fi
26320 if test "x$no_gtk" = x ; then
26321 echo "$as_me:$LINENO: result: yes" >&5
26322echo "${ECHO_T}yes" >&6
26323 wx_cv_lib_gtk=1.2.7
26324 else
26325 echo "$as_me:$LINENO: result: no" >&5
26326echo "${ECHO_T}no" >&6
26327 if test "$GTK_CONFIG" = "no" ; then
26328 echo "*** The gtk-config script installed by GTK could not be found"
26329 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26330 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26331 echo "*** full path to gtk-config."
26332 else
26333 if test -f conf.gtktest ; then
26334 :
26335 else
26336 echo "*** Could not run GTK test program, checking why..."
26337 CFLAGS="$CFLAGS $GTK_CFLAGS"
26338 LIBS="$LIBS $GTK_LIBS"
26339 cat >conftest.$ac_ext <<_ACEOF
26340/* confdefs.h. */
26341_ACEOF
26342cat confdefs.h >>conftest.$ac_ext
26343cat >>conftest.$ac_ext <<_ACEOF
26344/* end confdefs.h. */
26345
26346#include <gtk/gtk.h>
26347#include <stdio.h>
26348
26349int
26350main ()
26351{
26352 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26353 ;
26354 return 0;
26355}
26356_ACEOF
26357rm -f conftest.$ac_objext conftest$ac_exeext
26358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26359 (eval $ac_link) 2>conftest.er1
a848cd7e 26360 ac_status=$?
ac1cb8d3
VS
26361 grep -v '^ *+' conftest.er1 >conftest.err
26362 rm -f conftest.er1
26363 cat conftest.err >&5
a848cd7e
SC
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); } &&
6ebeb4c7 26366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26368 (eval $ac_try) 2>&5
26369 ac_status=$?
26370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371 (exit $ac_status); }; } &&
26372 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374 (eval $ac_try) 2>&5
26375 ac_status=$?
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); }; }; then
26378 echo "*** The test program compiled, but did not run. This usually means"
26379 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26380 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26381 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26382 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26383 echo "*** is required on your system"
26384 echo "***"
26385 echo "*** If you have an old version installed, it is best to remove it, although"
26386 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26387 echo "***"
26388 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26389 echo "*** came with the system with the command"
26390 echo "***"
26391 echo "*** rpm --erase --nodeps gtk gtk-devel"
26392else
26393 echo "$as_me: failed program was:" >&5
26394sed 's/^/| /' conftest.$ac_ext >&5
26395
26396 echo "*** The test program failed to compile or link. See the file config.log for the"
26397 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26398 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26399 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26400fi
ac1cb8d3
VS
26401rm -f conftest.err conftest.$ac_objext \
26402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26403 CFLAGS="$ac_save_CFLAGS"
26404 LIBS="$ac_save_LIBS"
26405 fi
26406 fi
26407 GTK_CFLAGS=""
26408 GTK_LIBS=""
26409 :
26410 fi
26411
26412
26413 rm -f conf.gtktest
26414
26415
f34ca037 26416 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26417
26418# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26419if test "${with_gtk_prefix+set}" = set; then
26420 withval="$with_gtk_prefix"
26421 gtk_config_prefix="$withval"
26422else
26423 gtk_config_prefix=""
26424fi;
26425
26426# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26427if test "${with_gtk_exec_prefix+set}" = set; then
26428 withval="$with_gtk_exec_prefix"
26429 gtk_config_exec_prefix="$withval"
26430else
26431 gtk_config_exec_prefix=""
26432fi;
26433# Check whether --enable-gtktest or --disable-gtktest was given.
26434if test "${enable_gtktest+set}" = set; then
26435 enableval="$enable_gtktest"
26436
26437else
26438 enable_gtktest=yes
26439fi;
26440
26441 for module in . $GTK_MODULES
26442 do
26443 case "$module" in
26444 gthread)
26445 gtk_config_args="$gtk_config_args gthread"
26446 ;;
26447 esac
26448 done
26449
26450 if test x$gtk_config_exec_prefix != x ; then
26451 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26452 if test x${GTK_CONFIG+set} != xset ; then
26453 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26454 fi
26455 fi
26456 if test x$gtk_config_prefix != x ; then
26457 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26458 if test x${GTK_CONFIG+set} != xset ; then
26459 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26460 fi
26461 fi
26462
26463 # Extract the first word of "gtk-config", so it can be a program name with args.
26464set dummy gtk-config; ac_word=$2
26465echo "$as_me:$LINENO: checking for $ac_word" >&5
26466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26467if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26468 echo $ECHO_N "(cached) $ECHO_C" >&6
26469else
26470 case $GTK_CONFIG in
26471 [\\/]* | ?:[\\/]*)
26472 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26473 ;;
26474 *)
26475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26476for as_dir in $PATH
26477do
26478 IFS=$as_save_IFS
26479 test -z "$as_dir" && as_dir=.
26480 for ac_exec_ext in '' $ac_executable_extensions; do
26481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26482 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26484 break 2
26485 fi
26486done
26487done
26488
26489 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26490 ;;
26491esac
26492fi
26493GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26494
26495if test -n "$GTK_CONFIG"; then
26496 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26497echo "${ECHO_T}$GTK_CONFIG" >&6
26498else
26499 echo "$as_me:$LINENO: result: no" >&5
26500echo "${ECHO_T}no" >&6
26501fi
26502
26503 min_gtk_version=1.2.3
26504 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26505echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26506 no_gtk=""
26507 if test "$GTK_CONFIG" = "no" ; then
26508 no_gtk=yes
26509 else
26510 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26511 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26512 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26513 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26514 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26515 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26516 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26517 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26518 if test "x$enable_gtktest" = "xyes" ; then
26519 ac_save_CFLAGS="$CFLAGS"
26520 ac_save_LIBS="$LIBS"
26521 CFLAGS="$CFLAGS $GTK_CFLAGS"
26522 LIBS="$GTK_LIBS $LIBS"
26523 rm -f conf.gtktest
26524 if test "$cross_compiling" = yes; then
26525 echo $ac_n "cross compiling; assumed OK... $ac_c"
26526else
26527 cat >conftest.$ac_ext <<_ACEOF
26528/* confdefs.h. */
26529_ACEOF
26530cat confdefs.h >>conftest.$ac_ext
26531cat >>conftest.$ac_ext <<_ACEOF
26532/* end confdefs.h. */
26533
26534#include <gtk/gtk.h>
26535#include <stdio.h>
26536#include <stdlib.h>
26537
26538int
26539main ()
26540{
26541 int major, minor, micro;
26542 char *tmp_version;
26543
26544 system ("touch conf.gtktest");
26545
26546 /* HP/UX 9 (%@#!) writes to sscanf strings */
26547 tmp_version = g_strdup("$min_gtk_version");
26548 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26549 printf("%s, bad version string\n", "$min_gtk_version");
26550 exit(1);
26551 }
26552
26553 if ((gtk_major_version != $gtk_config_major_version) ||
26554 (gtk_minor_version != $gtk_config_minor_version) ||
26555 (gtk_micro_version != $gtk_config_micro_version))
26556 {
26557 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26558 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26559 gtk_major_version, gtk_minor_version, gtk_micro_version);
26560 printf ("*** was found! If gtk-config was correct, then it is best\n");
26561 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26562 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26563 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26564 printf("*** required on your system.\n");
26565 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26566 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26567 printf("*** before re-running configure\n");
26568 }
26569#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26570 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26571 (gtk_minor_version != GTK_MINOR_VERSION) ||
26572 (gtk_micro_version != GTK_MICRO_VERSION))
26573 {
26574 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26575 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26576 printf("*** library (version %d.%d.%d)\n",
26577 gtk_major_version, gtk_minor_version, gtk_micro_version);
26578 }
26579#endif /* defined (GTK_MAJOR_VERSION) ... */
26580 else
26581 {
26582 if ((gtk_major_version > major) ||
26583 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26584 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26585 {
26586 return 0;
26587 }
26588 else
26589 {
26590 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26591 gtk_major_version, gtk_minor_version, gtk_micro_version);
26592 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26593 major, minor, micro);
26594 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26595 printf("***\n");
26596 printf("*** If you have already installed a sufficiently new version, this error\n");
26597 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26598 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26599 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26600 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26601 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26602 printf("*** so that the correct libraries are found at run-time))\n");
26603 }
26604 }
26605 return 1;
26606}
26607
26608_ACEOF
26609rm -f conftest$ac_exeext
26610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26611 (eval $ac_link) 2>&5
26612 ac_status=$?
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26617 ac_status=$?
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; }; then
26620 :
26621else
26622 echo "$as_me: program exited with status $ac_status" >&5
26623echo "$as_me: failed program was:" >&5
26624sed 's/^/| /' conftest.$ac_ext >&5
26625
26626( exit $ac_status )
26627no_gtk=yes
26628fi
ac1cb8d3 26629rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26630fi
26631 CFLAGS="$ac_save_CFLAGS"
26632 LIBS="$ac_save_LIBS"
26633 fi
26634 fi
26635 if test "x$no_gtk" = x ; then
26636 echo "$as_me:$LINENO: result: yes" >&5
26637echo "${ECHO_T}yes" >&6
26638 wx_cv_lib_gtk=1.2.3
26639 else
26640 echo "$as_me:$LINENO: result: no" >&5
26641echo "${ECHO_T}no" >&6
26642 if test "$GTK_CONFIG" = "no" ; then
26643 echo "*** The gtk-config script installed by GTK could not be found"
26644 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26645 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26646 echo "*** full path to gtk-config."
26647 else
26648 if test -f conf.gtktest ; then
26649 :
26650 else
26651 echo "*** Could not run GTK test program, checking why..."
26652 CFLAGS="$CFLAGS $GTK_CFLAGS"
26653 LIBS="$LIBS $GTK_LIBS"
26654 cat >conftest.$ac_ext <<_ACEOF
26655/* confdefs.h. */
26656_ACEOF
26657cat confdefs.h >>conftest.$ac_ext
26658cat >>conftest.$ac_ext <<_ACEOF
26659/* end confdefs.h. */
26660
26661#include <gtk/gtk.h>
26662#include <stdio.h>
26663
26664int
26665main ()
26666{
26667 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26668 ;
26669 return 0;
26670}
26671_ACEOF
26672rm -f conftest.$ac_objext conftest$ac_exeext
26673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26674 (eval $ac_link) 2>conftest.er1
a848cd7e 26675 ac_status=$?
ac1cb8d3
VS
26676 grep -v '^ *+' conftest.er1 >conftest.err
26677 rm -f conftest.er1
26678 cat conftest.err >&5
a848cd7e
SC
26679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680 (exit $ac_status); } &&
6ebeb4c7 26681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683 (eval $ac_try) 2>&5
26684 ac_status=$?
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); }; } &&
26687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26689 (eval $ac_try) 2>&5
26690 ac_status=$?
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); }; }; then
26693 echo "*** The test program compiled, but did not run. This usually means"
26694 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26695 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26696 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26697 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26698 echo "*** is required on your system"
26699 echo "***"
26700 echo "*** If you have an old version installed, it is best to remove it, although"
26701 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26702 echo "***"
26703 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26704 echo "*** came with the system with the command"
26705 echo "***"
26706 echo "*** rpm --erase --nodeps gtk gtk-devel"
26707else
26708 echo "$as_me: failed program was:" >&5
26709sed 's/^/| /' conftest.$ac_ext >&5
26710
26711 echo "*** The test program failed to compile or link. See the file config.log for the"
26712 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26713 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26714 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26715fi
ac1cb8d3
VS
26716rm -f conftest.err conftest.$ac_objext \
26717 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26718 CFLAGS="$ac_save_CFLAGS"
26719 LIBS="$ac_save_LIBS"
26720 fi
26721 fi
26722 GTK_CFLAGS=""
26723 GTK_LIBS=""
26724 :
26725 fi
26726
26727
26728 rm -f conf.gtktest
26729
f34ca037 26730 fi
a848cd7e
SC
26731 fi
26732 fi
26733
26734 if test -z "$wx_cv_lib_gtk"; then
26735 wx_cv_lib_gtk=none
26736 else
26737 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 26738 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
26739 fi
26740
26741
26742fi
26743
26744
26745 if test "$gtk_version_cached" = 1; then
26746 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26747echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26748 fi
26749
26750 case "$wx_cv_lib_gtk" in
26751 2.0) WXGTK20=1
26752 TOOLKIT_VERSION=2
26753 ;;
26754 1.2.7) WXGTK127=1
26755 WXGTK12=1
26756 ;;
26757 1.2.3) WXGTK12=1
26758 ;;
26759 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26760The development files for GTK+ were not found. For GTK+ 2, please
26761ensure that pkg-config is in the path and that gtk+-2.0.pc is
26762installed. For GTK+ 1.2 please check that gtk-config is in the path,
26763and that the version is 1.2.3 or above. Also check that the
26764libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26765--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26766 " >&5
26767echo "$as_me: error:
f597b41c
MW
26768The development files for GTK+ were not found. For GTK+ 2, please
26769ensure that pkg-config is in the path and that gtk+-2.0.pc is
26770installed. For GTK+ 1.2 please check that gtk-config is in the path,
26771and that the version is 1.2.3 or above. Also check that the
26772libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26773--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26774 " >&2;}
26775 { (exit 1); exit 1; }; }
26776 ;;
26777 esac
26778
26779 if test "$WXGTK20" = 1; then
304205f1
VS
26780 save_CFLAGS="$CFLAGS"
26781 save_LIBS="$LIBS"
9d271838 26782 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 26783 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26784
d12aef51
VZ
26785 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26786echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26787 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26788/* confdefs.h. */
26789_ACEOF
26790cat confdefs.h >>conftest.$ac_ext
26791cat >>conftest.$ac_ext <<_ACEOF
26792/* end confdefs.h. */
304205f1 26793
d12aef51 26794 #include <gtk/gtk.h>
304205f1 26795
d12aef51
VZ
26796int
26797main ()
26798{
304205f1 26799
d12aef51 26800 void *f = gtk_icon_size_lookup;
abc736fd
MW
26801
26802 ;
26803 return 0;
26804}
26805_ACEOF
26806rm -f conftest.$ac_objext
26807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26808 (eval $ac_compile) 2>conftest.er1
26809 ac_status=$?
26810 grep -v '^ *+' conftest.er1 >conftest.err
26811 rm -f conftest.er1
26812 cat conftest.err >&5
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); } &&
6ebeb4c7 26815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
26816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817 (eval $ac_try) 2>&5
26818 ac_status=$?
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; } &&
26821 { ac_try='test -s conftest.$ac_objext'
26822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26823 (eval $ac_try) 2>&5
26824 ac_status=$?
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); }; }; then
26827
26828 echo "$as_me:$LINENO: result: no" >&5
26829echo "${ECHO_T}no" >&6
26830
26831else
26832 echo "$as_me: failed program was:" >&5
26833sed 's/^/| /' conftest.$ac_ext >&5
26834
26835
26836 cat >>confdefs.h <<\_ACEOF
26837#define NEED_GTK_ICON_SIZE_LOOKUP 1
26838_ACEOF
26839
26840 echo "$as_me:$LINENO: result: yes" >&5
26841echo "${ECHO_T}yes" >&6
26842
26843fi
26844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26845
9755e73b
VS
26846 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26847echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26848 cat >conftest.$ac_ext <<_ACEOF
26849/* confdefs.h. */
26850_ACEOF
26851cat confdefs.h >>conftest.$ac_ext
26852cat >>conftest.$ac_ext <<_ACEOF
26853/* end confdefs.h. */
26854
26855 #include <gtk/gtk.h>
26856
26857int
26858main ()
26859{
26860
26861 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26862 Not GTK+ 2.4
9755e73b
VS
26863 #endif
26864
26865 ;
26866 return 0;
26867}
26868_ACEOF
26869rm -f conftest.$ac_objext
26870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26871 (eval $ac_compile) 2>conftest.er1
26872 ac_status=$?
26873 grep -v '^ *+' conftest.er1 >conftest.err
26874 rm -f conftest.er1
26875 cat conftest.err >&5
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); } &&
6ebeb4c7 26878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
26879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26880 (eval $ac_try) 2>&5
26881 ac_status=$?
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); }; } &&
26884 { ac_try='test -s conftest.$ac_objext'
26885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26886 (eval $ac_try) 2>&5
26887 ac_status=$?
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); }; }; then
26890
26891 cat >>confdefs.h <<\_ACEOF
26892#define __WXGTK24__ 1
26893_ACEOF
26894
26895 echo "$as_me:$LINENO: result: yes" >&5
26896echo "${ECHO_T}yes" >&6
26897
26898else
26899 echo "$as_me: failed program was:" >&5
26900sed 's/^/| /' conftest.$ac_ext >&5
26901
26902
26903 echo "$as_me:$LINENO: result: no" >&5
26904echo "${ECHO_T}no" >&6
26905
26906fi
26907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26908
304205f1
VS
26909 CFLAGS="$save_CFLAGS"
26910 LIBS="$save_LIBS"
a848cd7e
SC
26911 else
26912 if test "$wxUSE_UNICODE" = "yes"; then
26913 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26914echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26915 wxUSE_UNICODE=no
26916 fi
26917 fi
26918
26919 if test "$USE_DARWIN" != 1; then
26920
26921for ac_func in poll
26922do
26923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26924echo "$as_me:$LINENO: checking for $ac_func" >&5
26925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26926if eval "test \"\${$as_ac_var+set}\" = set"; then
26927 echo $ECHO_N "(cached) $ECHO_C" >&6
26928else
26929 cat >conftest.$ac_ext <<_ACEOF
26930/* confdefs.h. */
26931_ACEOF
26932cat confdefs.h >>conftest.$ac_ext
26933cat >>conftest.$ac_ext <<_ACEOF
26934/* end confdefs.h. */
ac1cb8d3
VS
26935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26937#define $ac_func innocuous_$ac_func
26938
a848cd7e
SC
26939/* System header to define __stub macros and hopefully few prototypes,
26940 which can conflict with char $ac_func (); below.
26941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26942 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26943
a848cd7e
SC
26944#ifdef __STDC__
26945# include <limits.h>
26946#else
26947# include <assert.h>
26948#endif
ac1cb8d3
VS
26949
26950#undef $ac_func
26951
a848cd7e
SC
26952/* Override any gcc2 internal prototype to avoid an error. */
26953#ifdef __cplusplus
26954extern "C"
26955{
26956#endif
26957/* We use char because int might match the return type of a gcc2
26958 builtin and then its argument prototype would still apply. */
26959char $ac_func ();
26960/* The GNU C library defines this for functions which it implements
26961 to always fail with ENOSYS. Some functions are actually named
26962 something starting with __ and the normal name is an alias. */
26963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26964choke me
26965#else
26966char (*f) () = $ac_func;
26967#endif
26968#ifdef __cplusplus
26969}
26970#endif
26971
26972int
26973main ()
26974{
26975return f != $ac_func;
26976 ;
26977 return 0;
26978}
26979_ACEOF
26980rm -f conftest.$ac_objext conftest$ac_exeext
26981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26982 (eval $ac_link) 2>conftest.er1
a848cd7e 26983 ac_status=$?
ac1cb8d3
VS
26984 grep -v '^ *+' conftest.er1 >conftest.err
26985 rm -f conftest.er1
26986 cat conftest.err >&5
a848cd7e
SC
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); } &&
6ebeb4c7 26989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26991 (eval $ac_try) 2>&5
26992 ac_status=$?
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); }; } &&
26995 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26997 (eval $ac_try) 2>&5
26998 ac_status=$?
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; }; then
27001 eval "$as_ac_var=yes"
27002else
27003 echo "$as_me: failed program was:" >&5
27004sed 's/^/| /' conftest.$ac_ext >&5
27005
27006eval "$as_ac_var=no"
27007fi
ac1cb8d3
VS
27008rm -f conftest.err conftest.$ac_objext \
27009 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27010fi
27011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27012echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27013if test `eval echo '${'$as_ac_var'}'` = yes; then
27014 cat >>confdefs.h <<_ACEOF
27015#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27016_ACEOF
27017
27018fi
27019done
27020
27021 fi
27022
27023 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27024 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27025
27026 AFMINSTALL=afminstall
27027 TOOLKIT=GTK
27028 GUIDIST=GTK_DIST
27029
27030 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27031echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27032if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27033 echo $ECHO_N "(cached) $ECHO_C" >&6
27034else
27035 ac_check_lib_save_LIBS=$LIBS
27036LIBS="-lgdk $LIBS"
27037cat >conftest.$ac_ext <<_ACEOF
27038/* confdefs.h. */
27039_ACEOF
27040cat confdefs.h >>conftest.$ac_ext
27041cat >>conftest.$ac_ext <<_ACEOF
27042/* end confdefs.h. */
27043
27044/* Override any gcc2 internal prototype to avoid an error. */
27045#ifdef __cplusplus
27046extern "C"
27047#endif
27048/* We use char because int might match the return type of a gcc2
27049 builtin and then its argument prototype would still apply. */
27050char gdk_im_open ();
27051int
27052main ()
27053{
27054gdk_im_open ();
27055 ;
27056 return 0;
27057}
27058_ACEOF
27059rm -f conftest.$ac_objext conftest$ac_exeext
27060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27061 (eval $ac_link) 2>conftest.er1
a848cd7e 27062 ac_status=$?
ac1cb8d3
VS
27063 grep -v '^ *+' conftest.er1 >conftest.err
27064 rm -f conftest.er1
27065 cat conftest.err >&5
a848cd7e
SC
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } &&
6ebeb4c7 27068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070 (eval $ac_try) 2>&5
27071 ac_status=$?
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); }; } &&
27074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27076 (eval $ac_try) 2>&5
27077 ac_status=$?
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); }; }; then
27080 ac_cv_lib_gdk_gdk_im_open=yes
27081else
27082 echo "$as_me: failed program was:" >&5
27083sed 's/^/| /' conftest.$ac_ext >&5
27084
27085ac_cv_lib_gdk_gdk_im_open=no
27086fi
ac1cb8d3
VS
27087rm -f conftest.err conftest.$ac_objext \
27088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27089LIBS=$ac_check_lib_save_LIBS
27090fi
27091echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27092echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27093if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27094 cat >>confdefs.h <<\_ACEOF
27095#define HAVE_XIM 1
27096_ACEOF
27097
27098fi
27099
27100
27101
27102 if test "$wxUSE_GPE" = "yes"; then
27103 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27104echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27105
0ad5d837
VZ
27106 ac_find_libraries=
27107 for ac_dir in $SEARCH_LIB;
a848cd7e 27108 do
3eca31dc 27109 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27110 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27111 ac_find_libraries=$ac_dir
27112 break 2
27113 fi
27114 done
27115 done
27116
27117 if test "$ac_find_libraries" != "" ; then
27118
0ad5d837 27119 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27120 ac_path_to_link=""
27121 else
0ad5d837
VZ
27122 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27123 result=$?
27124 if test $result = 0; then
27125 ac_path_to_link=""
27126 else
27127 ac_path_to_link=" -L$ac_find_libraries"
27128 fi
a848cd7e
SC
27129 fi
27130
27131 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27132 WXGPE=1
0ad5d837
VZ
27133 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27134echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27135 else
27136 echo "$as_me:$LINENO: result: not found" >&5
27137echo "${ECHO_T}not found" >&6
27138 fi
27139
27140 fi
27141 fi
27142
27143 if test "$wxUSE_MGL" = 1; then
27144 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27145echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27146 if test "x$MGL_ROOT" = x ; then
27147 echo "$as_me:$LINENO: result: not found" >&5
27148echo "${ECHO_T}not found" >&6
27149 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27150echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27151 { (exit 1); exit 1; }; }
27152 else
27153 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27154echo "${ECHO_T}$MGL_ROOT" >&6
27155 fi
27156
27157 echo "$as_me:$LINENO: checking for libmgl location" >&5
27158echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27159 case "${host}" in
27160 *-*-linux* )
27161 if test "x$wxUSE_SHARED" = xyes ; then
27162 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27163 else
27164 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27165 fi
27166 ;;
27167 *-pc-msdosdjgpp )
27168 mgl_os_candidates="dos32/dj2"
27169 ;;
27170 *)
27171 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27172echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27173 { (exit 1); exit 1; }; }
27174 esac
27175
27176 mgl_lib_type=""
27177 mgl_os=""
27178
27179 for mgl_os_i in $mgl_os_candidates ; do
27180 if test "x$mgl_os" = x ; then
27181 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27182 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27183 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27184 mgl_lib_type=debug
27185 mgl_os=$mgl_os_i
27186 fi
27187 fi
27188 if test "x$mgl_lib_type" = x ; then
27189 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27190 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27191 mgl_lib_type=release
27192 mgl_os=$mgl_os_i
27193 fi
27194 fi
27195 fi
27196 done
27197
27198 if test "x$mgl_os" = x ; then
27199 echo "$as_me:$LINENO: result: not found" >&5
27200echo "${ECHO_T}not found" >&6
27201 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27202echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27203 { (exit 1); exit 1; }; }
27204 fi
27205 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27206echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27207
27208 wxUSE_UNIVERSAL="yes"
27209
27210 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27211 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27212
27213 AFMINSTALL=afminstall
27214 TOOLKIT=MGL
27215 GUIDIST=MGL_DIST
27216 fi
27217
27218 if test "$wxUSE_MICROWIN" = 1; then
27219 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27220echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27221 if test "x$MICROWINDOWS" = x ; then
27222 echo "$as_me:$LINENO: result: not found" >&5
27223echo "${ECHO_T}not found" >&6
27224 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27225echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27226 { (exit 1); exit 1; }; }
27227 else
27228 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27229echo "${ECHO_T}$MICROWINDOWS" >&6
27230 fi
27231
27232 if test -f $MICROWINDOWS/lib/libmwin.a; then
27233 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27234echo "${ECHO_T}MicroWindows' libraries found." >&6
27235 else
27236 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27237echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27238 { (exit 1); exit 1; }; }
27239 fi
27240
27241 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27242 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27243
27244 wxUSE_UNIVERSAL="yes"
27245
27246 AFMINSTALL=afminstall
27247 TOOLKIT=MICROWIN
27248 GUIDIST=MICROWIN_DIST
27249
27250 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27251 fi
27252
74b84332 27253 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
27254
27255if test "x$ac_path_x_has_been_run" != xyes; then
27256 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27257echo $ECHO_N "checking for X... $ECHO_C" >&6
27258
6ebeb4c7 27259ac_path_x_has_been_run=yes
a848cd7e
SC
27260
27261# Check whether --with-x or --without-x was given.
27262if test "${with_x+set}" = set; then
27263 withval="$with_x"
27264
27265fi;
27266# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27267if test "x$with_x" = xno; then
27268 # The user explicitly disabled X.
27269 have_x=disabled
27270else
27271 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27272 # Both variables are already set.
27273 have_x=yes
27274 else
27275 if test "${ac_cv_have_x+set}" = set; then
27276 echo $ECHO_N "(cached) $ECHO_C" >&6
27277else
27278 # One or both of the vars are not set, and there is no cached value.
27279ac_x_includes=no ac_x_libraries=no
27280rm -fr conftest.dir
27281if mkdir conftest.dir; then
27282 cd conftest.dir
27283 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27284 cat >Imakefile <<'_ACEOF'
27285acfindx:
27286 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27287_ACEOF
27288 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27289 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27290 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27291 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27292 for ac_extension in a so sl; do
27293 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27294 test -f $ac_im_libdir/libX11.$ac_extension; then
27295 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27296 fi
27297 done
27298 # Screen out bogus values from the imake configuration. They are
27299 # bogus both because they are the default anyway, and because
27300 # using them would break gcc on systems where it needs fixed includes.
27301 case $ac_im_incroot in
27302 /usr/include) ;;
27303 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27304 esac
27305 case $ac_im_usrlibdir in
27306 /usr/lib | /lib) ;;
27307 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27308 esac
27309 fi
27310 cd ..
27311 rm -fr conftest.dir
27312fi
27313
27314# Standard set of common directories for X headers.
27315# Check X11 before X11Rn because it is often a symlink to the current release.
27316ac_x_header_dirs='
27317/usr/X11/include
27318/usr/X11R6/include
27319/usr/X11R5/include
27320/usr/X11R4/include
27321
27322/usr/include/X11
27323/usr/include/X11R6
27324/usr/include/X11R5
27325/usr/include/X11R4
27326
27327/usr/local/X11/include
27328/usr/local/X11R6/include
27329/usr/local/X11R5/include
27330/usr/local/X11R4/include
27331
27332/usr/local/include/X11
27333/usr/local/include/X11R6
27334/usr/local/include/X11R5
27335/usr/local/include/X11R4
27336
27337/usr/X386/include
27338/usr/x386/include
27339/usr/XFree86/include/X11
27340
27341/usr/include
27342/usr/local/include
27343/usr/unsupported/include
27344/usr/athena/include
27345/usr/local/x11r5/include
27346/usr/lpp/Xamples/include
27347
27348/usr/openwin/include
27349/usr/openwin/share/include'
27350
27351if test "$ac_x_includes" = no; then
6ebeb4c7 27352 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
27353 # First, try using that file with no special directory specified.
27354 cat >conftest.$ac_ext <<_ACEOF
27355/* confdefs.h. */
27356_ACEOF
27357cat confdefs.h >>conftest.$ac_ext
27358cat >>conftest.$ac_ext <<_ACEOF
27359/* end confdefs.h. */
27360#include <X11/Intrinsic.h>
27361_ACEOF
27362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27364 ac_status=$?
27365 grep -v '^ *+' conftest.er1 >conftest.err
27366 rm -f conftest.er1
27367 cat conftest.err >&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); } >/dev/null; then
27370 if test -s conftest.err; then
27371 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27373 else
27374 ac_cpp_err=
27375 fi
27376else
27377 ac_cpp_err=yes
27378fi
27379if test -z "$ac_cpp_err"; then
27380 # We can compile using X headers with no special include directory.
27381ac_x_includes=
27382else
27383 echo "$as_me: failed program was:" >&5
27384sed 's/^/| /' conftest.$ac_ext >&5
27385
27386 for ac_dir in $ac_x_header_dirs; do
27387 if test -r "$ac_dir/X11/Intrinsic.h"; then
27388 ac_x_includes=$ac_dir
27389 break
27390 fi
27391done
27392fi
27393rm -f conftest.err conftest.$ac_ext
27394fi # $ac_x_includes = no
27395
27396if test "$ac_x_libraries" = no; then
27397 # Check for the libraries.
27398 # See if we find them without any special options.
27399 # Don't add to $LIBS permanently.
27400 ac_save_LIBS=$LIBS
27401 LIBS="-lXt $LIBS"
27402 cat >conftest.$ac_ext <<_ACEOF
27403/* confdefs.h. */
27404_ACEOF
27405cat confdefs.h >>conftest.$ac_ext
27406cat >>conftest.$ac_ext <<_ACEOF
27407/* end confdefs.h. */
27408#include <X11/Intrinsic.h>
27409int
27410main ()
27411{
27412XtMalloc (0)
27413 ;
27414 return 0;
27415}
27416_ACEOF
27417rm -f conftest.$ac_objext conftest$ac_exeext
27418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27419 (eval $ac_link) 2>conftest.er1
a848cd7e 27420 ac_status=$?
ac1cb8d3
VS
27421 grep -v '^ *+' conftest.er1 >conftest.err
27422 rm -f conftest.er1
27423 cat conftest.err >&5
a848cd7e
SC
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); } &&
6ebeb4c7 27426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27428 (eval $ac_try) 2>&5
27429 ac_status=$?
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); }; } &&
27432 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27434 (eval $ac_try) 2>&5
27435 ac_status=$?
27436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437 (exit $ac_status); }; }; then
27438 LIBS=$ac_save_LIBS
27439# We can link X programs with no special library path.
27440ac_x_libraries=
27441else
27442 echo "$as_me: failed program was:" >&5
27443sed 's/^/| /' conftest.$ac_ext >&5
27444
27445LIBS=$ac_save_LIBS
27446for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27447do
27448 # Don't even attempt the hair of trying to link an X program!
27449 for ac_extension in a so sl; do
27450 if test -r $ac_dir/libXt.$ac_extension; then
27451 ac_x_libraries=$ac_dir
27452 break 2
27453 fi
27454 done
27455done
27456fi
ac1cb8d3
VS
27457rm -f conftest.err conftest.$ac_objext \
27458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27459fi # $ac_x_libraries = no
27460
27461if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27462 # Didn't find X anywhere. Cache the known absence of X.
27463 ac_cv_have_x="have_x=no"
27464else
27465 # Record where we found X for the cache.
27466 ac_cv_have_x="have_x=yes \
ac1cb8d3 27467 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27468fi
27469fi
27470
27471 fi
27472 eval "$ac_cv_have_x"
27473fi # $with_x != no
27474
27475if test "$have_x" != yes; then
27476 echo "$as_me:$LINENO: result: $have_x" >&5
27477echo "${ECHO_T}$have_x" >&6
27478 no_x=yes
27479else
27480 # If each of the values was on the command line, it overrides each guess.
27481 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27482 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27483 # Update the cache value to reflect the command line values.
27484 ac_cv_have_x="have_x=yes \
27485 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
27486 # It might be that x_includes is empty (headers are found in the
27487 # standard search path. Then output the corresponding message
27488 ac_out_x_includes=$x_includes
27489 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
27490 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
27491echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
27492fi
27493
6ebeb4c7 27494fi
a848cd7e
SC
27495if test "$no_x" = yes; then
27496 # Not all programs may use this symbol, but it does not hurt to define it.
27497
27498cat >>confdefs.h <<\_ACEOF
27499#define X_DISPLAY_MISSING 1
27500_ACEOF
27501
27502 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27503else
27504 if test -n "$x_includes"; then
27505 X_CFLAGS="$X_CFLAGS -I$x_includes"
27506 fi
27507
27508 # It would also be nice to do this for all -L options, not just this one.
27509 if test -n "$x_libraries"; then
27510 X_LIBS="$X_LIBS -L$x_libraries"
27511 # For Solaris; some versions of Sun CC require a space after -R and
27512 # others require no space. Words are not sufficient . . . .
27513 case `(uname -sr) 2>/dev/null` in
27514 "SunOS 5"*)
27515 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27516echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27517 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27518 cat >conftest.$ac_ext <<_ACEOF
27519/* confdefs.h. */
27520_ACEOF
27521cat confdefs.h >>conftest.$ac_ext
27522cat >>conftest.$ac_ext <<_ACEOF
27523/* end confdefs.h. */
27524
27525int
27526main ()
27527{
27528
27529 ;
27530 return 0;
27531}
27532_ACEOF
27533rm -f conftest.$ac_objext conftest$ac_exeext
27534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27535 (eval $ac_link) 2>conftest.er1
a848cd7e 27536 ac_status=$?
ac1cb8d3
VS
27537 grep -v '^ *+' conftest.er1 >conftest.err
27538 rm -f conftest.er1
27539 cat conftest.err >&5
a848cd7e
SC
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } &&
6ebeb4c7 27542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544 (eval $ac_try) 2>&5
27545 ac_status=$?
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); }; } &&
27548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550 (eval $ac_try) 2>&5
27551 ac_status=$?
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; }; then
27554 ac_R_nospace=yes
27555else
27556 echo "$as_me: failed program was:" >&5
27557sed 's/^/| /' conftest.$ac_ext >&5
27558
27559ac_R_nospace=no
27560fi
ac1cb8d3
VS
27561rm -f conftest.err conftest.$ac_objext \
27562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27563 if test $ac_R_nospace = yes; then
27564 echo "$as_me:$LINENO: result: no" >&5
27565echo "${ECHO_T}no" >&6
27566 X_LIBS="$X_LIBS -R$x_libraries"
27567 else
27568 LIBS="$ac_xsave_LIBS -R $x_libraries"
27569 cat >conftest.$ac_ext <<_ACEOF
27570/* confdefs.h. */
27571_ACEOF
27572cat confdefs.h >>conftest.$ac_ext
27573cat >>conftest.$ac_ext <<_ACEOF
27574/* end confdefs.h. */
27575
27576int
27577main ()
27578{
27579
27580 ;
27581 return 0;
27582}
27583_ACEOF
27584rm -f conftest.$ac_objext conftest$ac_exeext
27585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27586 (eval $ac_link) 2>conftest.er1
a848cd7e 27587 ac_status=$?
ac1cb8d3
VS
27588 grep -v '^ *+' conftest.er1 >conftest.err
27589 rm -f conftest.er1
27590 cat conftest.err >&5
a848cd7e
SC
27591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592 (exit $ac_status); } &&
6ebeb4c7 27593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27595 (eval $ac_try) 2>&5
27596 ac_status=$?
27597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598 (exit $ac_status); }; } &&
27599 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27601 (eval $ac_try) 2>&5
27602 ac_status=$?
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); }; }; then
27605 ac_R_space=yes
27606else
27607 echo "$as_me: failed program was:" >&5
27608sed 's/^/| /' conftest.$ac_ext >&5
27609
27610ac_R_space=no
27611fi
ac1cb8d3
VS
27612rm -f conftest.err conftest.$ac_objext \
27613 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27614 if test $ac_R_space = yes; then
27615 echo "$as_me:$LINENO: result: yes" >&5
27616echo "${ECHO_T}yes" >&6
27617 X_LIBS="$X_LIBS -R $x_libraries"
27618 else
27619 echo "$as_me:$LINENO: result: neither works" >&5
27620echo "${ECHO_T}neither works" >&6
27621 fi
27622 fi
27623 LIBS=$ac_xsave_LIBS
27624 esac
27625 fi
27626
27627 # Check for system-dependent libraries X programs must link with.
27628 # Do this before checking for the system-independent R6 libraries
27629 # (-lICE), since we may need -lsocket or whatever for X linking.
27630
27631 if test "$ISC" = yes; then
27632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27633 else
27634 # Martyn Johnson says this is needed for Ultrix, if the X
27635 # libraries were built with DECnet support. And Karl Berry says
27636 # the Alpha needs dnet_stub (dnet does not exist).
27637 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27638 cat >conftest.$ac_ext <<_ACEOF
27639/* confdefs.h. */
27640_ACEOF
27641cat confdefs.h >>conftest.$ac_ext
27642cat >>conftest.$ac_ext <<_ACEOF
27643/* end confdefs.h. */
27644
27645/* Override any gcc2 internal prototype to avoid an error. */
27646#ifdef __cplusplus
27647extern "C"
27648#endif
27649/* We use char because int might match the return type of a gcc2
27650 builtin and then its argument prototype would still apply. */
27651char XOpenDisplay ();
27652int
27653main ()
27654{
27655XOpenDisplay ();
27656 ;
27657 return 0;
27658}
27659_ACEOF
27660rm -f conftest.$ac_objext conftest$ac_exeext
27661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27662 (eval $ac_link) 2>conftest.er1
a848cd7e 27663 ac_status=$?
ac1cb8d3
VS
27664 grep -v '^ *+' conftest.er1 >conftest.err
27665 rm -f conftest.er1
27666 cat conftest.err >&5
a848cd7e
SC
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } &&
6ebeb4c7 27669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27671 (eval $ac_try) 2>&5
27672 ac_status=$?
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); }; } &&
27675 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677 (eval $ac_try) 2>&5
27678 ac_status=$?
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; }; then
27681 :
27682else
27683 echo "$as_me: failed program was:" >&5
27684sed 's/^/| /' conftest.$ac_ext >&5
27685
27686echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27687echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27688if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27689 echo $ECHO_N "(cached) $ECHO_C" >&6
27690else
27691 ac_check_lib_save_LIBS=$LIBS
27692LIBS="-ldnet $LIBS"
27693cat >conftest.$ac_ext <<_ACEOF
27694/* confdefs.h. */
27695_ACEOF
27696cat confdefs.h >>conftest.$ac_ext
27697cat >>conftest.$ac_ext <<_ACEOF
27698/* end confdefs.h. */
27699
27700/* Override any gcc2 internal prototype to avoid an error. */
27701#ifdef __cplusplus
27702extern "C"
27703#endif
27704/* We use char because int might match the return type of a gcc2
27705 builtin and then its argument prototype would still apply. */
27706char dnet_ntoa ();
27707int
27708main ()
27709{
27710dnet_ntoa ();
27711 ;
27712 return 0;
27713}
27714_ACEOF
27715rm -f conftest.$ac_objext conftest$ac_exeext
27716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27717 (eval $ac_link) 2>conftest.er1
a848cd7e 27718 ac_status=$?
ac1cb8d3
VS
27719 grep -v '^ *+' conftest.er1 >conftest.err
27720 rm -f conftest.er1
27721 cat conftest.err >&5
a848cd7e
SC
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); } &&
6ebeb4c7 27724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726 (eval $ac_try) 2>&5
27727 ac_status=$?
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; } &&
27730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27732 (eval $ac_try) 2>&5
27733 ac_status=$?
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); }; }; then
27736 ac_cv_lib_dnet_dnet_ntoa=yes
27737else
27738 echo "$as_me: failed program was:" >&5
27739sed 's/^/| /' conftest.$ac_ext >&5
27740
27741ac_cv_lib_dnet_dnet_ntoa=no
27742fi
ac1cb8d3
VS
27743rm -f conftest.err conftest.$ac_objext \
27744 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27745LIBS=$ac_check_lib_save_LIBS
27746fi
27747echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27748echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27749if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27750 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27751fi
27752
27753 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27754 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27755echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27756if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27757 echo $ECHO_N "(cached) $ECHO_C" >&6
27758else
27759 ac_check_lib_save_LIBS=$LIBS
27760LIBS="-ldnet_stub $LIBS"
27761cat >conftest.$ac_ext <<_ACEOF
27762/* confdefs.h. */
27763_ACEOF
27764cat confdefs.h >>conftest.$ac_ext
27765cat >>conftest.$ac_ext <<_ACEOF
27766/* end confdefs.h. */
27767
27768/* Override any gcc2 internal prototype to avoid an error. */
27769#ifdef __cplusplus
27770extern "C"
27771#endif
27772/* We use char because int might match the return type of a gcc2
27773 builtin and then its argument prototype would still apply. */
27774char dnet_ntoa ();
27775int
27776main ()
27777{
27778dnet_ntoa ();
27779 ;
27780 return 0;
27781}
27782_ACEOF
27783rm -f conftest.$ac_objext conftest$ac_exeext
27784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27785 (eval $ac_link) 2>conftest.er1
a848cd7e 27786 ac_status=$?
ac1cb8d3
VS
27787 grep -v '^ *+' conftest.er1 >conftest.err
27788 rm -f conftest.er1
27789 cat conftest.err >&5
a848cd7e
SC
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); } &&
6ebeb4c7 27792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27794 (eval $ac_try) 2>&5
27795 ac_status=$?
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); }; } &&
27798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27800 (eval $ac_try) 2>&5
27801 ac_status=$?
27802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); }; }; then
27804 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27805else
27806 echo "$as_me: failed program was:" >&5
27807sed 's/^/| /' conftest.$ac_ext >&5
27808
27809ac_cv_lib_dnet_stub_dnet_ntoa=no
27810fi
ac1cb8d3
VS
27811rm -f conftest.err conftest.$ac_objext \
27812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27813LIBS=$ac_check_lib_save_LIBS
27814fi
27815echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27816echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27817if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27818 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27819fi
27820
27821 fi
27822fi
ac1cb8d3
VS
27823rm -f conftest.err conftest.$ac_objext \
27824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27825 LIBS="$ac_xsave_LIBS"
27826
27827 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27828 # to get the SysV transport functions.
27829 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27830 # needs -lnsl.
27831 # The nsl library prevents programs from opening the X display
27832 # on Irix 5.2, according to T.E. Dickey.
27833 # The functions gethostbyname, getservbyname, and inet_addr are
27834 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27835 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27836echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27837if test "${ac_cv_func_gethostbyname+set}" = set; then
27838 echo $ECHO_N "(cached) $ECHO_C" >&6
27839else
27840 cat >conftest.$ac_ext <<_ACEOF
27841/* confdefs.h. */
27842_ACEOF
27843cat confdefs.h >>conftest.$ac_ext
27844cat >>conftest.$ac_ext <<_ACEOF
27845/* end confdefs.h. */
ac1cb8d3
VS
27846/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27848#define gethostbyname innocuous_gethostbyname
27849
a848cd7e
SC
27850/* System header to define __stub macros and hopefully few prototypes,
27851 which can conflict with char gethostbyname (); below.
27852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27853 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27854
a848cd7e
SC
27855#ifdef __STDC__
27856# include <limits.h>
27857#else
27858# include <assert.h>
27859#endif
ac1cb8d3
VS
27860
27861#undef gethostbyname
27862
a848cd7e
SC
27863/* Override any gcc2 internal prototype to avoid an error. */
27864#ifdef __cplusplus
27865extern "C"
27866{
27867#endif
27868/* We use char because int might match the return type of a gcc2
27869 builtin and then its argument prototype would still apply. */
27870char gethostbyname ();
27871/* The GNU C library defines this for functions which it implements
27872 to always fail with ENOSYS. Some functions are actually named
27873 something starting with __ and the normal name is an alias. */
27874#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27875choke me
27876#else
27877char (*f) () = gethostbyname;
27878#endif
27879#ifdef __cplusplus
27880}
27881#endif
27882
27883int
27884main ()
27885{
27886return f != gethostbyname;
27887 ;
27888 return 0;
27889}
27890_ACEOF
27891rm -f conftest.$ac_objext conftest$ac_exeext
27892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27893 (eval $ac_link) 2>conftest.er1
a848cd7e 27894 ac_status=$?
ac1cb8d3
VS
27895 grep -v '^ *+' conftest.er1 >conftest.err
27896 rm -f conftest.er1
27897 cat conftest.err >&5
a848cd7e
SC
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } &&
6ebeb4c7 27900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27902 (eval $ac_try) 2>&5
27903 ac_status=$?
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); }; } &&
27906 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908 (eval $ac_try) 2>&5
27909 ac_status=$?
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); }; }; then
27912 ac_cv_func_gethostbyname=yes
27913else
27914 echo "$as_me: failed program was:" >&5
27915sed 's/^/| /' conftest.$ac_ext >&5
27916
27917ac_cv_func_gethostbyname=no
27918fi
ac1cb8d3
VS
27919rm -f conftest.err conftest.$ac_objext \
27920 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27921fi
27922echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27923echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27924
27925 if test $ac_cv_func_gethostbyname = no; then
27926 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27927echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27928if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27929 echo $ECHO_N "(cached) $ECHO_C" >&6
27930else
27931 ac_check_lib_save_LIBS=$LIBS
27932LIBS="-lnsl $LIBS"
27933cat >conftest.$ac_ext <<_ACEOF
27934/* confdefs.h. */
27935_ACEOF
27936cat confdefs.h >>conftest.$ac_ext
27937cat >>conftest.$ac_ext <<_ACEOF
27938/* end confdefs.h. */
27939
27940/* Override any gcc2 internal prototype to avoid an error. */
27941#ifdef __cplusplus
27942extern "C"
27943#endif
27944/* We use char because int might match the return type of a gcc2
27945 builtin and then its argument prototype would still apply. */
27946char gethostbyname ();
27947int
27948main ()
27949{
27950gethostbyname ();
27951 ;
27952 return 0;
27953}
27954_ACEOF
27955rm -f conftest.$ac_objext conftest$ac_exeext
27956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
27957 (eval $ac_link) 2>conftest.er1
27958 ac_status=$?
27959 grep -v '^ *+' conftest.er1 >conftest.err
27960 rm -f conftest.er1
27961 cat conftest.err >&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); } &&
6ebeb4c7 27964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966 (eval $ac_try) 2>&5
27967 ac_status=$?
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; } &&
27970 { ac_try='test -s conftest$ac_exeext'
27971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27972 (eval $ac_try) 2>&5
27973 ac_status=$?
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); }; }; then
27976 ac_cv_lib_nsl_gethostbyname=yes
27977else
27978 echo "$as_me: failed program was:" >&5
27979sed 's/^/| /' conftest.$ac_ext >&5
27980
27981ac_cv_lib_nsl_gethostbyname=no
27982fi
27983rm -f conftest.err conftest.$ac_objext \
27984 conftest$ac_exeext conftest.$ac_ext
27985LIBS=$ac_check_lib_save_LIBS
27986fi
27987echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27988echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27989if test $ac_cv_lib_nsl_gethostbyname = yes; then
27990 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27991fi
27992
27993 if test $ac_cv_lib_nsl_gethostbyname = no; then
27994 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27995echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
27996if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27997 echo $ECHO_N "(cached) $ECHO_C" >&6
27998else
27999 ac_check_lib_save_LIBS=$LIBS
28000LIBS="-lbsd $LIBS"
28001cat >conftest.$ac_ext <<_ACEOF
28002/* confdefs.h. */
28003_ACEOF
28004cat confdefs.h >>conftest.$ac_ext
28005cat >>conftest.$ac_ext <<_ACEOF
28006/* end confdefs.h. */
28007
28008/* Override any gcc2 internal prototype to avoid an error. */
28009#ifdef __cplusplus
28010extern "C"
28011#endif
28012/* We use char because int might match the return type of a gcc2
28013 builtin and then its argument prototype would still apply. */
28014char gethostbyname ();
28015int
28016main ()
28017{
28018gethostbyname ();
28019 ;
28020 return 0;
28021}
28022_ACEOF
28023rm -f conftest.$ac_objext conftest$ac_exeext
28024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28025 (eval $ac_link) 2>conftest.er1
a848cd7e 28026 ac_status=$?
ac1cb8d3
VS
28027 grep -v '^ *+' conftest.er1 >conftest.err
28028 rm -f conftest.er1
28029 cat conftest.err >&5
a848cd7e
SC
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); } &&
6ebeb4c7 28032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28034 (eval $ac_try) 2>&5
28035 ac_status=$?
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28037 (exit $ac_status); }; } &&
28038 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28040 (eval $ac_try) 2>&5
28041 ac_status=$?
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; }; then
28044 ac_cv_lib_bsd_gethostbyname=yes
28045else
28046 echo "$as_me: failed program was:" >&5
28047sed 's/^/| /' conftest.$ac_ext >&5
28048
28049ac_cv_lib_bsd_gethostbyname=no
28050fi
ac1cb8d3
VS
28051rm -f conftest.err conftest.$ac_objext \
28052 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28053LIBS=$ac_check_lib_save_LIBS
28054fi
28055echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28056echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28057if test $ac_cv_lib_bsd_gethostbyname = yes; then
28058 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28059fi
28060
28061 fi
28062 fi
28063
28064 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28065 # socket/setsockopt and other routines are undefined under SCO ODT
28066 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28067 # on later versions), says Simon Leinen: it contains gethostby*
28068 # variants that don't use the name server (or something). -lsocket
28069 # must be given before -lnsl if both are needed. We assume that
28070 # if connect needs -lnsl, so does gethostbyname.
28071 echo "$as_me:$LINENO: checking for connect" >&5
28072echo $ECHO_N "checking for connect... $ECHO_C" >&6
28073if test "${ac_cv_func_connect+set}" = set; then
28074 echo $ECHO_N "(cached) $ECHO_C" >&6
28075else
28076 cat >conftest.$ac_ext <<_ACEOF
28077/* confdefs.h. */
28078_ACEOF
28079cat confdefs.h >>conftest.$ac_ext
28080cat >>conftest.$ac_ext <<_ACEOF
28081/* end confdefs.h. */
ac1cb8d3
VS
28082/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28084#define connect innocuous_connect
28085
a848cd7e
SC
28086/* System header to define __stub macros and hopefully few prototypes,
28087 which can conflict with char connect (); below.
28088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28089 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28090
a848cd7e
SC
28091#ifdef __STDC__
28092# include <limits.h>
28093#else
28094# include <assert.h>
28095#endif
ac1cb8d3
VS
28096
28097#undef connect
28098
a848cd7e
SC
28099/* Override any gcc2 internal prototype to avoid an error. */
28100#ifdef __cplusplus
28101extern "C"
28102{
28103#endif
28104/* We use char because int might match the return type of a gcc2
28105 builtin and then its argument prototype would still apply. */
28106char connect ();
28107/* The GNU C library defines this for functions which it implements
28108 to always fail with ENOSYS. Some functions are actually named
28109 something starting with __ and the normal name is an alias. */
28110#if defined (__stub_connect) || defined (__stub___connect)
28111choke me
28112#else
28113char (*f) () = connect;
28114#endif
28115#ifdef __cplusplus
28116}
28117#endif
28118
28119int
28120main ()
28121{
28122return f != connect;
28123 ;
28124 return 0;
28125}
28126_ACEOF
28127rm -f conftest.$ac_objext conftest$ac_exeext
28128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28129 (eval $ac_link) 2>conftest.er1
a848cd7e 28130 ac_status=$?
ac1cb8d3
VS
28131 grep -v '^ *+' conftest.er1 >conftest.err
28132 rm -f conftest.er1
28133 cat conftest.err >&5
a848cd7e
SC
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); } &&
6ebeb4c7 28136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28138 (eval $ac_try) 2>&5
28139 ac_status=$?
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); }; } &&
28142 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28144 (eval $ac_try) 2>&5
28145 ac_status=$?
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }; }; then
28148 ac_cv_func_connect=yes
28149else
28150 echo "$as_me: failed program was:" >&5
28151sed 's/^/| /' conftest.$ac_ext >&5
28152
28153ac_cv_func_connect=no
28154fi
ac1cb8d3
VS
28155rm -f conftest.err conftest.$ac_objext \
28156 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28157fi
28158echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28159echo "${ECHO_T}$ac_cv_func_connect" >&6
28160
28161 if test $ac_cv_func_connect = no; then
28162 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28163echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28164if test "${ac_cv_lib_socket_connect+set}" = set; then
28165 echo $ECHO_N "(cached) $ECHO_C" >&6
28166else
28167 ac_check_lib_save_LIBS=$LIBS
28168LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28169cat >conftest.$ac_ext <<_ACEOF
28170/* confdefs.h. */
28171_ACEOF
28172cat confdefs.h >>conftest.$ac_ext
28173cat >>conftest.$ac_ext <<_ACEOF
28174/* end confdefs.h. */
28175
28176/* Override any gcc2 internal prototype to avoid an error. */
28177#ifdef __cplusplus
28178extern "C"
28179#endif
28180/* We use char because int might match the return type of a gcc2
28181 builtin and then its argument prototype would still apply. */
28182char connect ();
28183int
28184main ()
28185{
28186connect ();
28187 ;
28188 return 0;
28189}
28190_ACEOF
28191rm -f conftest.$ac_objext conftest$ac_exeext
28192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28193 (eval $ac_link) 2>conftest.er1
a848cd7e 28194 ac_status=$?
ac1cb8d3
VS
28195 grep -v '^ *+' conftest.er1 >conftest.err
28196 rm -f conftest.er1
28197 cat conftest.err >&5
a848cd7e
SC
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); } &&
6ebeb4c7 28200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28202 (eval $ac_try) 2>&5
28203 ac_status=$?
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; } &&
28206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208 (eval $ac_try) 2>&5
28209 ac_status=$?
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); }; }; then
28212 ac_cv_lib_socket_connect=yes
28213else
28214 echo "$as_me: failed program was:" >&5
28215sed 's/^/| /' conftest.$ac_ext >&5
28216
28217ac_cv_lib_socket_connect=no
28218fi
ac1cb8d3
VS
28219rm -f conftest.err conftest.$ac_objext \
28220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28221LIBS=$ac_check_lib_save_LIBS
28222fi
28223echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28224echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28225if test $ac_cv_lib_socket_connect = yes; then
28226 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28227fi
28228
28229 fi
28230
28231 # Guillermo Gomez says -lposix is necessary on A/UX.
28232 echo "$as_me:$LINENO: checking for remove" >&5
28233echo $ECHO_N "checking for remove... $ECHO_C" >&6
28234if test "${ac_cv_func_remove+set}" = set; then
28235 echo $ECHO_N "(cached) $ECHO_C" >&6
28236else
28237 cat >conftest.$ac_ext <<_ACEOF
28238/* confdefs.h. */
28239_ACEOF
28240cat confdefs.h >>conftest.$ac_ext
28241cat >>conftest.$ac_ext <<_ACEOF
28242/* end confdefs.h. */
ac1cb8d3
VS
28243/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28245#define remove innocuous_remove
28246
a848cd7e
SC
28247/* System header to define __stub macros and hopefully few prototypes,
28248 which can conflict with char remove (); below.
28249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28250 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28251
a848cd7e
SC
28252#ifdef __STDC__
28253# include <limits.h>
28254#else
28255# include <assert.h>
28256#endif
ac1cb8d3
VS
28257
28258#undef remove
28259
a848cd7e
SC
28260/* Override any gcc2 internal prototype to avoid an error. */
28261#ifdef __cplusplus
28262extern "C"
28263{
28264#endif
28265/* We use char because int might match the return type of a gcc2
28266 builtin and then its argument prototype would still apply. */
28267char remove ();
28268/* The GNU C library defines this for functions which it implements
28269 to always fail with ENOSYS. Some functions are actually named
28270 something starting with __ and the normal name is an alias. */
28271#if defined (__stub_remove) || defined (__stub___remove)
28272choke me
28273#else
28274char (*f) () = remove;
28275#endif
28276#ifdef __cplusplus
28277}
28278#endif
28279
28280int
28281main ()
28282{
28283return f != remove;
28284 ;
28285 return 0;
28286}
28287_ACEOF
28288rm -f conftest.$ac_objext conftest$ac_exeext
28289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28290 (eval $ac_link) 2>conftest.er1
a848cd7e 28291 ac_status=$?
ac1cb8d3
VS
28292 grep -v '^ *+' conftest.er1 >conftest.err
28293 rm -f conftest.er1
28294 cat conftest.err >&5
a848cd7e
SC
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); } &&
6ebeb4c7 28297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28299 (eval $ac_try) 2>&5
28300 ac_status=$?
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; } &&
28303 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305 (eval $ac_try) 2>&5
28306 ac_status=$?
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; }; then
28309 ac_cv_func_remove=yes
28310else
28311 echo "$as_me: failed program was:" >&5
28312sed 's/^/| /' conftest.$ac_ext >&5
28313
28314ac_cv_func_remove=no
28315fi
ac1cb8d3
VS
28316rm -f conftest.err conftest.$ac_objext \
28317 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28318fi
28319echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28320echo "${ECHO_T}$ac_cv_func_remove" >&6
28321
28322 if test $ac_cv_func_remove = no; then
28323 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28324echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28325if test "${ac_cv_lib_posix_remove+set}" = set; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28327else
28328 ac_check_lib_save_LIBS=$LIBS
28329LIBS="-lposix $LIBS"
28330cat >conftest.$ac_ext <<_ACEOF
28331/* confdefs.h. */
28332_ACEOF
28333cat confdefs.h >>conftest.$ac_ext
28334cat >>conftest.$ac_ext <<_ACEOF
28335/* end confdefs.h. */
28336
28337/* Override any gcc2 internal prototype to avoid an error. */
28338#ifdef __cplusplus
28339extern "C"
28340#endif
28341/* We use char because int might match the return type of a gcc2
28342 builtin and then its argument prototype would still apply. */
28343char remove ();
28344int
28345main ()
28346{
28347remove ();
28348 ;
28349 return 0;
28350}
28351_ACEOF
28352rm -f conftest.$ac_objext conftest$ac_exeext
28353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28354 (eval $ac_link) 2>conftest.er1
a848cd7e 28355 ac_status=$?
ac1cb8d3
VS
28356 grep -v '^ *+' conftest.er1 >conftest.err
28357 rm -f conftest.er1
28358 cat conftest.err >&5
a848cd7e
SC
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } &&
6ebeb4c7 28361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28363 (eval $ac_try) 2>&5
28364 ac_status=$?
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); }; } &&
28367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28369 (eval $ac_try) 2>&5
28370 ac_status=$?
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); }; }; then
28373 ac_cv_lib_posix_remove=yes
28374else
28375 echo "$as_me: failed program was:" >&5
28376sed 's/^/| /' conftest.$ac_ext >&5
28377
28378ac_cv_lib_posix_remove=no
28379fi
ac1cb8d3
VS
28380rm -f conftest.err conftest.$ac_objext \
28381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28382LIBS=$ac_check_lib_save_LIBS
28383fi
28384echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28385echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28386if test $ac_cv_lib_posix_remove = yes; then
28387 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28388fi
28389
28390 fi
28391
28392 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28393 echo "$as_me:$LINENO: checking for shmat" >&5
28394echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28395if test "${ac_cv_func_shmat+set}" = set; then
28396 echo $ECHO_N "(cached) $ECHO_C" >&6
28397else
28398 cat >conftest.$ac_ext <<_ACEOF
28399/* confdefs.h. */
28400_ACEOF
28401cat confdefs.h >>conftest.$ac_ext
28402cat >>conftest.$ac_ext <<_ACEOF
28403/* end confdefs.h. */
ac1cb8d3
VS
28404/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28406#define shmat innocuous_shmat
28407
a848cd7e
SC
28408/* System header to define __stub macros and hopefully few prototypes,
28409 which can conflict with char shmat (); below.
28410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28411 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28412
a848cd7e
SC
28413#ifdef __STDC__
28414# include <limits.h>
28415#else
28416# include <assert.h>
28417#endif
ac1cb8d3
VS
28418
28419#undef shmat
28420
a848cd7e
SC
28421/* Override any gcc2 internal prototype to avoid an error. */
28422#ifdef __cplusplus
28423extern "C"
28424{
28425#endif
28426/* We use char because int might match the return type of a gcc2
28427 builtin and then its argument prototype would still apply. */
28428char shmat ();
28429/* The GNU C library defines this for functions which it implements
28430 to always fail with ENOSYS. Some functions are actually named
28431 something starting with __ and the normal name is an alias. */
28432#if defined (__stub_shmat) || defined (__stub___shmat)
28433choke me
28434#else
28435char (*f) () = shmat;
28436#endif
28437#ifdef __cplusplus
28438}
28439#endif
28440
28441int
28442main ()
28443{
28444return f != shmat;
28445 ;
28446 return 0;
28447}
28448_ACEOF
28449rm -f conftest.$ac_objext conftest$ac_exeext
28450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28451 (eval $ac_link) 2>conftest.er1
a848cd7e 28452 ac_status=$?
ac1cb8d3
VS
28453 grep -v '^ *+' conftest.er1 >conftest.err
28454 rm -f conftest.er1
28455 cat conftest.err >&5
a848cd7e
SC
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); } &&
6ebeb4c7 28458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28460 (eval $ac_try) 2>&5
28461 ac_status=$?
28462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463 (exit $ac_status); }; } &&
28464 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28466 (eval $ac_try) 2>&5
28467 ac_status=$?
28468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469 (exit $ac_status); }; }; then
28470 ac_cv_func_shmat=yes
28471else
28472 echo "$as_me: failed program was:" >&5
28473sed 's/^/| /' conftest.$ac_ext >&5
28474
28475ac_cv_func_shmat=no
28476fi
ac1cb8d3
VS
28477rm -f conftest.err conftest.$ac_objext \
28478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28479fi
28480echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28481echo "${ECHO_T}$ac_cv_func_shmat" >&6
28482
28483 if test $ac_cv_func_shmat = no; then
28484 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28485echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28486if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28487 echo $ECHO_N "(cached) $ECHO_C" >&6
28488else
28489 ac_check_lib_save_LIBS=$LIBS
28490LIBS="-lipc $LIBS"
28491cat >conftest.$ac_ext <<_ACEOF
28492/* confdefs.h. */
28493_ACEOF
28494cat confdefs.h >>conftest.$ac_ext
28495cat >>conftest.$ac_ext <<_ACEOF
28496/* end confdefs.h. */
28497
28498/* Override any gcc2 internal prototype to avoid an error. */
28499#ifdef __cplusplus
28500extern "C"
28501#endif
28502/* We use char because int might match the return type of a gcc2
28503 builtin and then its argument prototype would still apply. */
28504char shmat ();
28505int
28506main ()
28507{
28508shmat ();
28509 ;
28510 return 0;
28511}
28512_ACEOF
28513rm -f conftest.$ac_objext conftest$ac_exeext
28514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28515 (eval $ac_link) 2>conftest.er1
a848cd7e 28516 ac_status=$?
ac1cb8d3
VS
28517 grep -v '^ *+' conftest.er1 >conftest.err
28518 rm -f conftest.er1
28519 cat conftest.err >&5
a848cd7e
SC
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } &&
6ebeb4c7 28522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28525 ac_status=$?
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; } &&
28528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530 (eval $ac_try) 2>&5
28531 ac_status=$?
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; }; then
28534 ac_cv_lib_ipc_shmat=yes
28535else
28536 echo "$as_me: failed program was:" >&5
28537sed 's/^/| /' conftest.$ac_ext >&5
28538
28539ac_cv_lib_ipc_shmat=no
28540fi
ac1cb8d3
VS
28541rm -f conftest.err conftest.$ac_objext \
28542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28543LIBS=$ac_check_lib_save_LIBS
28544fi
28545echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28546echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28547if test $ac_cv_lib_ipc_shmat = yes; then
28548 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28549fi
28550
28551 fi
28552 fi
28553
28554 # Check for libraries that X11R6 Xt/Xaw programs need.
28555 ac_save_LDFLAGS=$LDFLAGS
28556 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28557 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28558 # check for ICE first), but we must link in the order -lSM -lICE or
28559 # we get undefined symbols. So assume we have SM if we have ICE.
28560 # These have to be linked with before -lX11, unlike the other
28561 # libraries we check for below, so use a different variable.
28562 # John Interrante, Karl Berry
28563 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28564echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28565if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28566 echo $ECHO_N "(cached) $ECHO_C" >&6
28567else
28568 ac_check_lib_save_LIBS=$LIBS
28569LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28570cat >conftest.$ac_ext <<_ACEOF
28571/* confdefs.h. */
28572_ACEOF
28573cat confdefs.h >>conftest.$ac_ext
28574cat >>conftest.$ac_ext <<_ACEOF
28575/* end confdefs.h. */
28576
28577/* Override any gcc2 internal prototype to avoid an error. */
28578#ifdef __cplusplus
28579extern "C"
28580#endif
28581/* We use char because int might match the return type of a gcc2
28582 builtin and then its argument prototype would still apply. */
28583char IceConnectionNumber ();
28584int
28585main ()
28586{
28587IceConnectionNumber ();
28588 ;
28589 return 0;
28590}
28591_ACEOF
28592rm -f conftest.$ac_objext conftest$ac_exeext
28593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28594 (eval $ac_link) 2>conftest.er1
a848cd7e 28595 ac_status=$?
ac1cb8d3
VS
28596 grep -v '^ *+' conftest.er1 >conftest.err
28597 rm -f conftest.er1
28598 cat conftest.err >&5
a848cd7e
SC
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); } &&
6ebeb4c7 28601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603 (eval $ac_try) 2>&5
28604 ac_status=$?
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); }; } &&
28607 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609 (eval $ac_try) 2>&5
28610 ac_status=$?
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); }; }; then
28613 ac_cv_lib_ICE_IceConnectionNumber=yes
28614else
28615 echo "$as_me: failed program was:" >&5
28616sed 's/^/| /' conftest.$ac_ext >&5
28617
28618ac_cv_lib_ICE_IceConnectionNumber=no
28619fi
ac1cb8d3
VS
28620rm -f conftest.err conftest.$ac_objext \
28621 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28622LIBS=$ac_check_lib_save_LIBS
28623fi
28624echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28625echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28626if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28627 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28628fi
28629
28630 LDFLAGS=$ac_save_LDFLAGS
28631
28632fi
28633
28634
28635 if test "$no_x" = "yes"; then
89d90d6d
VZ
28636 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28637echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28638 { (exit 1); exit 1; }; }
a848cd7e
SC
28639 fi
28640
74b84332
VS
28641 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28642 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28643 AFMINSTALL=afminstall
28644 COMPILED_X_PROGRAM=0
28645
74b84332
VS
28646 fi
28647
28648 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28649 if test "$wxUSE_NANOX" = "yes"; then
28650 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28651echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28652 if test "x$MICROWIN" = x ; then
28653 echo "$as_me:$LINENO: result: not found" >&5
28654echo "${ECHO_T}not found" >&6
28655 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28656echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28657 { (exit 1); exit 1; }; }
28658 else
28659 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28660echo "${ECHO_T}$MICROWIN" >&6
28661 cat >>confdefs.h <<\_ACEOF
28662#define wxUSE_NANOX 1
28663_ACEOF
28664
28665 fi
28666 fi
28667
28668 if test "$wxUSE_UNICODE" = "yes"; then
28669
28670 succeeded=no
28671
28672 if test -z "$PKG_CONFIG"; then
28673 # Extract the first word of "pkg-config", so it can be a program name with args.
28674set dummy pkg-config; ac_word=$2
28675echo "$as_me:$LINENO: checking for $ac_word" >&5
28676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28677if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28678 echo $ECHO_N "(cached) $ECHO_C" >&6
28679else
28680 case $PKG_CONFIG in
28681 [\\/]* | ?:[\\/]*)
28682 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28683 ;;
28684 *)
28685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28686for as_dir in $PATH
28687do
28688 IFS=$as_save_IFS
28689 test -z "$as_dir" && as_dir=.
28690 for ac_exec_ext in '' $ac_executable_extensions; do
28691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28692 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28694 break 2
28695 fi
28696done
28697done
28698
28699 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28700 ;;
28701esac
28702fi
28703PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28704
28705if test -n "$PKG_CONFIG"; then
28706 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28707echo "${ECHO_T}$PKG_CONFIG" >&6
28708else
28709 echo "$as_me:$LINENO: result: no" >&5
28710echo "${ECHO_T}no" >&6
28711fi
28712
28713 fi
28714
28715 if test "$PKG_CONFIG" = "no" ; then
28716 echo "*** The pkg-config script could not be found. Make sure it is"
28717 echo "*** in your path, or set the PKG_CONFIG environment variable"
28718 echo "*** to the full path to pkg-config."
28719 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28720 else
28721 PKG_CONFIG_MIN_VERSION=0.9.0
28722 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28723 echo "$as_me:$LINENO: checking for pangox" >&5
28724echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28725
28726 if $PKG_CONFIG --exists "pangox" ; then
28727 echo "$as_me:$LINENO: result: yes" >&5
28728echo "${ECHO_T}yes" >&6
28729 succeeded=yes
28730
28731 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28732echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28733 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28734 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28735echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28736
28737 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28738echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28739 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28740 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28741echo "${ECHO_T}$PANGOX_LIBS" >&6
28742 else
28743 PANGOX_CFLAGS=""
28744 PANGOX_LIBS=""
28745 ## If we have a custom action on failure, don't print errors, but
28746 ## do set a variable so people can do so.
28747 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28748
28749 fi
28750
28751
28752
28753 else
28754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28756 fi
28757 fi
28758
28759 if test $succeeded = yes; then
28760
28761 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28762 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28763
28764 else
28765
28766 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28767echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28768 { (exit 1); exit 1; }; }
28769
28770
28771 fi
28772
28773
28774 succeeded=no
28775
28776 if test -z "$PKG_CONFIG"; then
28777 # Extract the first word of "pkg-config", so it can be a program name with args.
28778set dummy pkg-config; ac_word=$2
28779echo "$as_me:$LINENO: checking for $ac_word" >&5
28780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28781if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28782 echo $ECHO_N "(cached) $ECHO_C" >&6
28783else
28784 case $PKG_CONFIG in
28785 [\\/]* | ?:[\\/]*)
28786 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28787 ;;
28788 *)
28789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28790for as_dir in $PATH
28791do
28792 IFS=$as_save_IFS
28793 test -z "$as_dir" && as_dir=.
28794 for ac_exec_ext in '' $ac_executable_extensions; do
28795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28796 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28798 break 2
28799 fi
28800done
28801done
28802
28803 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28804 ;;
28805esac
28806fi
28807PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28808
28809if test -n "$PKG_CONFIG"; then
28810 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28811echo "${ECHO_T}$PKG_CONFIG" >&6
28812else
28813 echo "$as_me:$LINENO: result: no" >&5
28814echo "${ECHO_T}no" >&6
28815fi
28816
28817 fi
28818
28819 if test "$PKG_CONFIG" = "no" ; then
28820 echo "*** The pkg-config script could not be found. Make sure it is"
28821 echo "*** in your path, or set the PKG_CONFIG environment variable"
28822 echo "*** to the full path to pkg-config."
28823 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28824 else
28825 PKG_CONFIG_MIN_VERSION=0.9.0
28826 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28827 echo "$as_me:$LINENO: checking for pangoft2" >&5
28828echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28829
28830 if $PKG_CONFIG --exists "pangoft2" ; then
28831 echo "$as_me:$LINENO: result: yes" >&5
28832echo "${ECHO_T}yes" >&6
28833 succeeded=yes
28834
28835 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28836echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28837 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28838 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28839echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28840
28841 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28842echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28843 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28844 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28845echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28846 else
28847 PANGOFT2_CFLAGS=""
28848 PANGOFT2_LIBS=""
28849 ## If we have a custom action on failure, don't print errors, but
28850 ## do set a variable so people can do so.
28851 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28852
28853 fi
28854
28855
28856
28857 else
28858 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28859 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28860 fi
28861 fi
28862
28863 if test $succeeded = yes; then
28864
28865 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28866 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28867
28868 else
28869
28870 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28871echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28872 wxUSE_PRINTING_ARCHITECTURE="no"
28873
28874
28875 fi
28876
28877
28878 succeeded=no
28879
28880 if test -z "$PKG_CONFIG"; then
28881 # Extract the first word of "pkg-config", so it can be a program name with args.
28882set dummy pkg-config; ac_word=$2
28883echo "$as_me:$LINENO: checking for $ac_word" >&5
28884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28885if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28886 echo $ECHO_N "(cached) $ECHO_C" >&6
28887else
28888 case $PKG_CONFIG in
28889 [\\/]* | ?:[\\/]*)
28890 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28891 ;;
28892 *)
28893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28894for as_dir in $PATH
28895do
28896 IFS=$as_save_IFS
28897 test -z "$as_dir" && as_dir=.
28898 for ac_exec_ext in '' $ac_executable_extensions; do
28899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28900 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28902 break 2
28903 fi
28904done
28905done
28906
28907 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28908 ;;
28909esac
28910fi
28911PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28912
28913if test -n "$PKG_CONFIG"; then
28914 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28915echo "${ECHO_T}$PKG_CONFIG" >&6
28916else
28917 echo "$as_me:$LINENO: result: no" >&5
28918echo "${ECHO_T}no" >&6
28919fi
28920
28921 fi
28922
28923 if test "$PKG_CONFIG" = "no" ; then
28924 echo "*** The pkg-config script could not be found. Make sure it is"
28925 echo "*** in your path, or set the PKG_CONFIG environment variable"
28926 echo "*** to the full path to pkg-config."
28927 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28928 else
28929 PKG_CONFIG_MIN_VERSION=0.9.0
28930 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28931 echo "$as_me:$LINENO: checking for pangoxft" >&5
28932echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28933
28934 if $PKG_CONFIG --exists "pangoxft" ; then
28935 echo "$as_me:$LINENO: result: yes" >&5
28936echo "${ECHO_T}yes" >&6
28937 succeeded=yes
28938
28939 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28940echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28941 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28942 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28943echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
28944
28945 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
28946echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
28947 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
28948 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
28949echo "${ECHO_T}$PANGOXFT_LIBS" >&6
28950 else
28951 PANGOXFT_CFLAGS=""
28952 PANGOXFT_LIBS=""
28953 ## If we have a custom action on failure, don't print errors, but
28954 ## do set a variable so people can do so.
28955 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
28956
28957 fi
28958
28959
28960
28961 else
28962 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28963 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28964 fi
28965 fi
28966
28967 if test $succeeded = yes; then
28968
4ae1af05
MB
28969 cat >>confdefs.h <<\_ACEOF
28970#define HAVE_PANGO_XFT 1
28971_ACEOF
28972
a848cd7e
SC
28973 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
28974 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
28975
28976 else
28977
28978 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
28979echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
28980
28981
28982 fi
28983
304205f1
VS
28984 save_CFLAGS="$CFLAGS"
28985 save_LIBS="$LIBS"
28986 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
28987 LIBS="$LIBS $PANGOX_LIBS"
28988
28989for ac_func in pango_font_family_is_monospace
28990do
28991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28992echo "$as_me:$LINENO: checking for $ac_func" >&5
28993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28994if eval "test \"\${$as_ac_var+set}\" = set"; then
28995 echo $ECHO_N "(cached) $ECHO_C" >&6
28996else
28997 cat >conftest.$ac_ext <<_ACEOF
28998/* confdefs.h. */
28999_ACEOF
29000cat confdefs.h >>conftest.$ac_ext
29001cat >>conftest.$ac_ext <<_ACEOF
29002/* end confdefs.h. */
29003/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29005#define $ac_func innocuous_$ac_func
29006
29007/* System header to define __stub macros and hopefully few prototypes,
29008 which can conflict with char $ac_func (); below.
29009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29010 <limits.h> exists even on freestanding compilers. */
29011
29012#ifdef __STDC__
29013# include <limits.h>
29014#else
29015# include <assert.h>
29016#endif
29017
29018#undef $ac_func
29019
29020/* Override any gcc2 internal prototype to avoid an error. */
29021#ifdef __cplusplus
29022extern "C"
29023{
29024#endif
29025/* We use char because int might match the return type of a gcc2
29026 builtin and then its argument prototype would still apply. */
29027char $ac_func ();
29028/* The GNU C library defines this for functions which it implements
29029 to always fail with ENOSYS. Some functions are actually named
29030 something starting with __ and the normal name is an alias. */
29031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29032choke me
29033#else
29034char (*f) () = $ac_func;
29035#endif
29036#ifdef __cplusplus
29037}
29038#endif
29039
29040int
29041main ()
29042{
29043return f != $ac_func;
29044 ;
29045 return 0;
29046}
29047_ACEOF
29048rm -f conftest.$ac_objext conftest$ac_exeext
29049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29050 (eval $ac_link) 2>conftest.er1
29051 ac_status=$?
29052 grep -v '^ *+' conftest.er1 >conftest.err
29053 rm -f conftest.er1
29054 cat conftest.err >&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); } &&
6ebeb4c7 29057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
29058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29059 (eval $ac_try) 2>&5
29060 ac_status=$?
29061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); }; } &&
29063 { ac_try='test -s conftest$ac_exeext'
29064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29065 (eval $ac_try) 2>&5
29066 ac_status=$?
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); }; }; then
29069 eval "$as_ac_var=yes"
29070else
29071 echo "$as_me: failed program was:" >&5
29072sed 's/^/| /' conftest.$ac_ext >&5
29073
29074eval "$as_ac_var=no"
29075fi
29076rm -f conftest.err conftest.$ac_objext \
29077 conftest$ac_exeext conftest.$ac_ext
29078fi
29079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29080echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29081if test `eval echo '${'$as_ac_var'}'` = yes; then
29082 cat >>confdefs.h <<_ACEOF
29083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29084_ACEOF
29085
29086fi
29087done
29088
29089 CFLAGS="$save_CFLAGS"
29090 LIBS="$save_LIBS"
a848cd7e
SC
29091 fi
29092
29093 wxUSE_UNIVERSAL="yes"
29094
29095 if test "$wxUSE_NANOX" = "yes"; then
29096 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29097 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"
29098 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29099 else
29100 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29101 fi
29102
a848cd7e
SC
29103 TOOLKIT=X11
29104 GUIDIST=X11_DIST
29105 fi
29106
29107 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29108 if test "$wxUSE_UNICODE" = "yes"; then
29109 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29110echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29111 { (exit 1); exit 1; }; }
29112 fi
29113
74b84332
VS
29114 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29115echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29116
74b84332
VS
29117ac_find_includes=
29118for ac_dir in $SEARCH_INCLUDE /usr/include;
29119 do
29120 if test -f "$ac_dir/Xm/Xm.h"; then
29121 ac_find_includes=$ac_dir
29122 break
29123 fi
29124 done
a848cd7e 29125
74b84332
VS
29126 if test "$ac_find_includes" != "" ; then
29127 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29128echo "${ECHO_T}found in $ac_find_includes" >&6
29129
29130 if test "x$ac_find_includes" = "x/usr/include"; then
29131 ac_path_to_include=""
29132 else
29133 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29134 result=$?
29135 if test $result = 0; then
29136 ac_path_to_include=""
29137 else
29138 ac_path_to_include=" -I$ac_find_includes"
29139 fi
a848cd7e
SC
29140 fi
29141
74b84332
VS
29142 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29143 else
e051b34e
MW
29144 save_CFLAGS=$CFLAGS
29145 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29146
74b84332 29147 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29148/* confdefs.h. */
29149_ACEOF
29150cat confdefs.h >>conftest.$ac_ext
29151cat >>conftest.$ac_ext <<_ACEOF
29152/* end confdefs.h. */
29153
74b84332
VS
29154 #include <Xm/Xm.h>
29155
a848cd7e
SC
29156int
29157main ()
29158{
29159
74b84332
VS
29160 int version;
29161 version = xmUseVersion;
29162
a848cd7e
SC
29163 ;
29164 return 0;
29165}
29166_ACEOF
74b84332
VS
29167rm -f conftest.$ac_objext
29168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29169 (eval $ac_compile) 2>conftest.er1
a848cd7e 29170 ac_status=$?
ac1cb8d3
VS
29171 grep -v '^ *+' conftest.er1 >conftest.err
29172 rm -f conftest.er1
29173 cat conftest.err >&5
a848cd7e
SC
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } &&
6ebeb4c7 29176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29178 (eval $ac_try) 2>&5
29179 ac_status=$?
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); }; } &&
74b84332 29182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29184 (eval $ac_try) 2>&5
29185 ac_status=$?
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); }; }; then
74b84332
VS
29188
29189 echo "$as_me:$LINENO: result: found in default search path" >&5
29190echo "${ECHO_T}found in default search path" >&6
29191 COMPILED_X_PROGRAM=1
29192
a848cd7e
SC
29193else
29194 echo "$as_me: failed program was:" >&5
29195sed 's/^/| /' conftest.$ac_ext >&5
29196
a848cd7e 29197
74b84332
VS
29198 echo "$as_me:$LINENO: result: no" >&5
29199echo "${ECHO_T}no" >&6
e051b34e
MW
29200 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29201echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29202 { (exit 1); exit 1; }; }
a848cd7e 29203
a848cd7e 29204
a848cd7e 29205fi
74b84332 29206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29207
29208 CFLAGS=$save_CFLAGS
74b84332
VS
29209 fi
29210
0ad5d837
VZ
29211
29212 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29213echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29214
0ad5d837
VZ
29215 ac_find_libraries=
29216 for ac_dir in $SEARCH_LIB;
74b84332 29217 do
3eca31dc 29218 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29219 if test -f "$ac_dir/libXm.$ac_extension"; then
29220 ac_find_libraries=$ac_dir
29221 break 2
a848cd7e 29222 fi
74b84332
VS
29223 done
29224 done
a848cd7e 29225
0ad5d837
VZ
29226
29227 if test "x$ac_find_libraries" != "x" ; then
29228 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29229echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29230
74b84332 29231
0ad5d837 29232 if test "$ac_find_libraries" = "default location"; then
74b84332 29233 ac_path_to_link=""
a848cd7e 29234 else
0ad5d837
VZ
29235 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29236 result=$?
29237 if test $result = 0; then
29238 ac_path_to_link=""
29239 else
29240 ac_path_to_link=" -L$ac_find_libraries"
29241 fi
74b84332
VS
29242 fi
29243
0ad5d837
VZ
29244 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29245 else
29246 save_CFLAGS=$CFLAGS
29247 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
6f9cf1e6
MW
29248 save_LIBS="$LIBS"
29249 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29250
0ad5d837 29251 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29252/* confdefs.h. */
29253_ACEOF
29254cat confdefs.h >>conftest.$ac_ext
29255cat >>conftest.$ac_ext <<_ACEOF
29256/* end confdefs.h. */
29257
0ad5d837 29258 #include <Xm/Xm.h>
74b84332 29259
a848cd7e
SC
29260int
29261main ()
29262{
74b84332 29263
0ad5d837
VZ
29264 int version;
29265 version = xmUseVersion;
74b84332 29266
a848cd7e
SC
29267 ;
29268 return 0;
29269}
29270_ACEOF
0ad5d837
VZ
29271rm -f conftest.$ac_objext conftest$ac_exeext
29272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29273 (eval $ac_link) 2>conftest.er1
a848cd7e 29274 ac_status=$?
ac1cb8d3
VS
29275 grep -v '^ *+' conftest.er1 >conftest.err
29276 rm -f conftest.er1
29277 cat conftest.err >&5
a848cd7e
SC
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); } &&
6ebeb4c7 29280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282 (eval $ac_try) 2>&5
29283 ac_status=$?
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; } &&
0ad5d837 29286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29288 (eval $ac_try) 2>&5
29289 ac_status=$?
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); }; }; then
74b84332 29292
0ad5d837 29293 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29294echo "${ECHO_T}found in default search path" >&6
0ad5d837 29295 COMPILED_X_PROGRAM=1
74b84332 29296
a848cd7e
SC
29297else
29298 echo "$as_me: failed program was:" >&5
29299sed 's/^/| /' conftest.$ac_ext >&5
29300
74b84332 29301
6f9cf1e6 29302 echo "$as_me:$LINENO: result: no" >&5
74b84332 29303echo "${ECHO_T}no" >&6
6f9cf1e6 29304 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29305echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29306 { (exit 1); exit 1; }; }
29307
29308
29309fi
0ad5d837
VZ
29310rm -f conftest.err conftest.$ac_objext \
29311 conftest$ac_exeext conftest.$ac_ext
74b84332 29312
0ad5d837 29313 CFLAGS=$save_CFLAGS
6f9cf1e6 29314 LIBS="$save_LIBS"
74b84332
VS
29315 fi
29316
29317 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29318echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29319 libp_link=""
29320 libsm_ice_link=""
29321 libs_found=0
29322 for libp in "" " -lXp"; do
29323 if test "$libs_found" = "0"; then
29324 for libsm_ice in "" " -lSM -lICE"; do
29325 if test "$libs_found" = "0"; then
29326 save_LIBS="$LIBS"
29327 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29328 save_CFLAGS=$CFLAGS
29329 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29330
29331 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29332/* confdefs.h. */
29333_ACEOF
29334cat confdefs.h >>conftest.$ac_ext
29335cat >>conftest.$ac_ext <<_ACEOF
29336/* end confdefs.h. */
29337
74b84332
VS
29338 #include <Xm/Xm.h>
29339 #include <Xm/List.h>
29340
a848cd7e
SC
29341int
29342main ()
29343{
74b84332
VS
29344
29345 XmString string = NULL;
29346 Widget w = NULL;
29347 int position = 0;
29348 XmListAddItem(w, string, position);
29349
a848cd7e
SC
29350 ;
29351 return 0;
29352}
29353_ACEOF
29354rm -f conftest.$ac_objext conftest$ac_exeext
29355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29356 (eval $ac_link) 2>conftest.er1
a848cd7e 29357 ac_status=$?
ac1cb8d3
VS
29358 grep -v '^ *+' conftest.er1 >conftest.err
29359 rm -f conftest.er1
29360 cat conftest.err >&5
a848cd7e
SC
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); } &&
6ebeb4c7 29363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29365 (eval $ac_try) 2>&5
29366 ac_status=$?
29367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368 (exit $ac_status); }; } &&
29369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29371 (eval $ac_try) 2>&5
29372 ac_status=$?
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); }; }; then
29375
29376 libp_link="$libp"
29377 libsm_ice_link="$libsm_ice"
29378 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29379echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29380 libs_found=1
29381
29382else
29383 echo "$as_me: failed program was:" >&5
29384sed 's/^/| /' conftest.$ac_ext >&5
29385
29386
29387
29388fi
ac1cb8d3
VS
29389rm -f conftest.err conftest.$ac_objext \
29390 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29391
29392 LIBS="$save_LIBS"
29393 CFLAGS=$save_CFLAGS
29394 fi
29395 done
29396 fi
29397 done
29398
29399 if test "$libs_found" = "0"; then
29400 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29401echo "${ECHO_T}can't find the right libraries" >&6
29402 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29403echo "$as_me: error: can't link a simple motif program" >&2;}
29404 { (exit 1); exit 1; }; }
29405 fi
29406
62fa8b3a
MW
29407 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29408echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29409if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29410 echo $ECHO_N "(cached) $ECHO_C" >&6
29411else
29412 ac_check_lib_save_LIBS=$LIBS
29413LIBS="-lSgm $LIBS"
29414cat >conftest.$ac_ext <<_ACEOF
29415/* confdefs.h. */
29416_ACEOF
29417cat confdefs.h >>conftest.$ac_ext
29418cat >>conftest.$ac_ext <<_ACEOF
29419/* end confdefs.h. */
29420
29421/* Override any gcc2 internal prototype to avoid an error. */
29422#ifdef __cplusplus
29423extern "C"
29424#endif
29425/* We use char because int might match the return type of a gcc2
29426 builtin and then its argument prototype would still apply. */
29427char SgCreateList ();
29428int
29429main ()
29430{
29431SgCreateList ();
29432 ;
29433 return 0;
29434}
29435_ACEOF
29436rm -f conftest.$ac_objext conftest$ac_exeext
29437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29438 (eval $ac_link) 2>conftest.er1
29439 ac_status=$?
29440 grep -v '^ *+' conftest.er1 >conftest.err
29441 rm -f conftest.er1
29442 cat conftest.err >&5
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); } &&
29445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29447 (eval $ac_try) 2>&5
29448 ac_status=$?
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); }; } &&
29451 { ac_try='test -s conftest$ac_exeext'
29452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29453 (eval $ac_try) 2>&5
29454 ac_status=$?
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); }; }; then
29457 ac_cv_lib_Sgm_SgCreateList=yes
29458else
29459 echo "$as_me: failed program was:" >&5
29460sed 's/^/| /' conftest.$ac_ext >&5
29461
29462ac_cv_lib_Sgm_SgCreateList=no
29463fi
29464rm -f conftest.err conftest.$ac_objext \
29465 conftest$ac_exeext conftest.$ac_ext
29466LIBS=$ac_check_lib_save_LIBS
29467fi
29468echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29469echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29470if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29471 libsgm_link=" -lSgm"
29472fi
29473
29474
a848cd7e
SC
29475 save_CFLAGS=$CFLAGS
29476 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 29477
a848cd7e
SC
29478 echo "$as_me:$LINENO: checking for Motif 2" >&5
29479echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29480if test "${wx_cv_lib_motif2+set}" = set; then
29481 echo $ECHO_N "(cached) $ECHO_C" >&6
29482else
29483 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29484/* confdefs.h. */
29485_ACEOF
29486cat confdefs.h >>conftest.$ac_ext
29487cat >>conftest.$ac_ext <<_ACEOF
29488/* end confdefs.h. */
29489
0ad5d837 29490 #include <Xm/Xm.h>
a848cd7e
SC
29491
29492int
29493main ()
29494{
29495
0ad5d837
VZ
29496 #if XmVersion < 2000
29497 Not Motif 2
29498 #endif
a848cd7e
SC
29499
29500 ;
29501 return 0;
29502}
29503_ACEOF
29504rm -f conftest.$ac_objext
29505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29506 (eval $ac_compile) 2>conftest.er1
a848cd7e 29507 ac_status=$?
ac1cb8d3
VS
29508 grep -v '^ *+' conftest.er1 >conftest.err
29509 rm -f conftest.er1
29510 cat conftest.err >&5
a848cd7e
SC
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); } &&
6ebeb4c7 29513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515 (eval $ac_try) 2>&5
29516 ac_status=$?
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); }; } &&
29519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29521 (eval $ac_try) 2>&5
29522 ac_status=$?
29523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524 (exit $ac_status); }; }; then
0ad5d837 29525 wx_cv_lib_motif2="yes"
a848cd7e
SC
29526else
29527 echo "$as_me: failed program was:" >&5
29528sed 's/^/| /' conftest.$ac_ext >&5
29529
0ad5d837
VZ
29530wx_cv_lib_motif2="no"
29531fi
29532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29533fi
29534echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29535echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29536 if test "$wx_cv_lib_motif2" = "yes"; then
29537 cat >>confdefs.h <<\_ACEOF
29538#define __WXMOTIF20__ 1
29539_ACEOF
a848cd7e 29540
0ad5d837
VZ
29541 else
29542 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29543#define __WXMOTIF20__ 0
29544_ACEOF
29545
0ad5d837 29546 fi
2113bc77
MW
29547
29548 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29549echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29550if test "${wx_cv_lib_lesstif+set}" = set; then
29551 echo $ECHO_N "(cached) $ECHO_C" >&6
29552else
29553 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29554/* confdefs.h. */
29555_ACEOF
29556cat confdefs.h >>conftest.$ac_ext
29557cat >>conftest.$ac_ext <<_ACEOF
29558/* end confdefs.h. */
29559
0ad5d837 29560 #include <Xm/Xm.h>
2113bc77
MW
29561
29562int
29563main ()
29564{
29565
0ad5d837
VZ
29566 #if !defined(LesstifVersion) || LesstifVersion <= 0
29567 Not Lesstif
29568 #endif
2113bc77
MW
29569
29570 ;
29571 return 0;
29572}
29573_ACEOF
29574rm -f conftest.$ac_objext
29575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29576 (eval $ac_compile) 2>conftest.er1
29577 ac_status=$?
29578 grep -v '^ *+' conftest.er1 >conftest.err
29579 rm -f conftest.er1
29580 cat conftest.err >&5
29581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582 (exit $ac_status); } &&
6ebeb4c7 29583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
29584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29585 (eval $ac_try) 2>&5
29586 ac_status=$?
29587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29588 (exit $ac_status); }; } &&
29589 { ac_try='test -s conftest.$ac_objext'
29590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29591 (eval $ac_try) 2>&5
29592 ac_status=$?
29593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594 (exit $ac_status); }; }; then
0ad5d837 29595 wx_cv_lib_lesstif="yes"
2113bc77
MW
29596else
29597 echo "$as_me: failed program was:" >&5
29598sed 's/^/| /' conftest.$ac_ext >&5
29599
0ad5d837
VZ
29600wx_cv_lib_lesstif="no"
29601fi
29602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29603
0ad5d837
VZ
29604fi
29605echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29606echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29607 if test "$wx_cv_lib_lesstif" = "yes"; then
29608 cat >>confdefs.h <<\_ACEOF
29609#define __WXLESSTIF__ 1
29610_ACEOF
29611
29612 else
29613 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29614#define __WXLESSTIF__ 0
29615_ACEOF
29616
0ad5d837 29617 fi
2113bc77 29618
a848cd7e
SC
29619 CFLAGS=$save_CFLAGS
29620
62fa8b3a 29621 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29622 TOOLKIT=MOTIF
29623 GUIDIST=MOTIF_DIST
29624 fi
29625
74b84332 29626 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29627 if test "$wxUSE_LIBXPM" = "sys"; then
29628 echo "$as_me:$LINENO: checking for Xpm library" >&5
29629echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29630
0ad5d837
VZ
29631 ac_find_libraries=
29632 for ac_dir in $SEARCH_LIB;
a848cd7e 29633 do
3eca31dc 29634 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29635 if test -f "$ac_dir/libXpm.$ac_extension"; then
29636 ac_find_libraries=$ac_dir
29637 break 2
29638 fi
29639 done
29640 done
29641
29642 if test "$ac_find_libraries" != "" ; then
29643
0ad5d837 29644 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29645 ac_path_to_link=""
29646 else
0ad5d837
VZ
29647 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29648 result=$?
29649 if test $result = 0; then
29650 ac_path_to_link=""
29651 else
29652 ac_path_to_link=" -L$ac_find_libraries"
29653 fi
a848cd7e
SC
29654 fi
29655
29656 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29657 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29658echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29659
29660 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29661echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29662if test "${wx_cv_x11_xpm_h+set}" = set; then
29663 echo $ECHO_N "(cached) $ECHO_C" >&6
29664else
29665
29666 save_CFLAGS=$CFLAGS
29667 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29668
29669 cat >conftest.$ac_ext <<_ACEOF
29670/* confdefs.h. */
29671_ACEOF
29672cat confdefs.h >>conftest.$ac_ext
29673cat >>conftest.$ac_ext <<_ACEOF
29674/* end confdefs.h. */
29675
29676 #include <X11/xpm.h>
29677
29678int
29679main ()
29680{
29681
29682 int version;
29683 version = XpmLibraryVersion();
29684
29685 ;
29686 return 0;
29687}
29688_ACEOF
29689rm -f conftest.$ac_objext
29690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29691 (eval $ac_compile) 2>conftest.er1
a848cd7e 29692 ac_status=$?
ac1cb8d3
VS
29693 grep -v '^ *+' conftest.er1 >conftest.err
29694 rm -f conftest.er1
29695 cat conftest.err >&5
a848cd7e
SC
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); } &&
6ebeb4c7 29698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700 (eval $ac_try) 2>&5
29701 ac_status=$?
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; } &&
29704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29706 (eval $ac_try) 2>&5
29707 ac_status=$?
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); }; }; then
29710 wx_cv_x11_xpm_h=yes
29711else
29712 echo "$as_me: failed program was:" >&5
29713sed 's/^/| /' conftest.$ac_ext >&5
29714
29715wx_cv_x11_xpm_h=no
29716
29717fi
ac1cb8d3 29718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29719
29720 CFLAGS=$save_CFLAGS
29721
29722
29723fi
29724echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29725echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29726
29727 if test $wx_cv_x11_xpm_h = "yes"; then
29728 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29729 cat >>confdefs.h <<\_ACEOF
29730#define wxHAVE_LIB_XPM 1
29731_ACEOF
29732
29733 else
29734 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29735echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29736 fi
29737 fi
29738
29739 fi
29740
29741 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29742echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29743if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29744 echo $ECHO_N "(cached) $ECHO_C" >&6
29745else
29746 ac_check_lib_save_LIBS=$LIBS
29747LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29748cat >conftest.$ac_ext <<_ACEOF
29749/* confdefs.h. */
29750_ACEOF
29751cat confdefs.h >>conftest.$ac_ext
29752cat >>conftest.$ac_ext <<_ACEOF
29753/* end confdefs.h. */
29754
29755/* Override any gcc2 internal prototype to avoid an error. */
29756#ifdef __cplusplus
29757extern "C"
29758#endif
29759/* We use char because int might match the return type of a gcc2
29760 builtin and then its argument prototype would still apply. */
29761char XShapeQueryExtension ();
29762int
29763main ()
29764{
29765XShapeQueryExtension ();
29766 ;
29767 return 0;
29768}
29769_ACEOF
29770rm -f conftest.$ac_objext conftest$ac_exeext
29771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29772 (eval $ac_link) 2>conftest.er1
a848cd7e 29773 ac_status=$?
ac1cb8d3
VS
29774 grep -v '^ *+' conftest.er1 >conftest.err
29775 rm -f conftest.er1
29776 cat conftest.err >&5
a848cd7e
SC
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); } &&
6ebeb4c7 29779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781 (eval $ac_try) 2>&5
29782 ac_status=$?
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); }; } &&
29785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29787 (eval $ac_try) 2>&5
29788 ac_status=$?
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; }; then
29791 ac_cv_lib_Xext_XShapeQueryExtension=yes
29792else
29793 echo "$as_me: failed program was:" >&5
29794sed 's/^/| /' conftest.$ac_ext >&5
29795
29796ac_cv_lib_Xext_XShapeQueryExtension=no
29797fi
ac1cb8d3
VS
29798rm -f conftest.err conftest.$ac_objext \
29799 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29800LIBS=$ac_check_lib_save_LIBS
29801fi
29802echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29803echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29804if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29805
29806 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29807 wxHAVE_XEXT_LIB=1
29808
29809fi
29810
29811
29812 if test "$wxHAVE_XEXT_LIB" = 1; then
29813 save_CFLAGS="$CFLAGS"
29814 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29815
29816 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29817echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29818 cat >conftest.$ac_ext <<_ACEOF
29819/* confdefs.h. */
29820_ACEOF
29821cat confdefs.h >>conftest.$ac_ext
29822cat >>conftest.$ac_ext <<_ACEOF
29823/* end confdefs.h. */
29824
29825 #include <X11/Xlib.h>
29826 #include <X11/extensions/shape.h>
29827
29828int
29829main ()
29830{
29831
29832 int dummy1, dummy2;
29833 XShapeQueryExtension((Display*)NULL,
29834 (int*)NULL, (int*)NULL);
29835
29836 ;
29837 return 0;
29838}
29839_ACEOF
29840rm -f conftest.$ac_objext
29841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29842 (eval $ac_compile) 2>conftest.er1
a848cd7e 29843 ac_status=$?
ac1cb8d3
VS
29844 grep -v '^ *+' conftest.er1 >conftest.err
29845 rm -f conftest.er1
29846 cat conftest.err >&5
a848cd7e
SC
29847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); } &&
6ebeb4c7 29849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29851 (eval $ac_try) 2>&5
29852 ac_status=$?
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); }; } &&
29855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
29861
29862 cat >>confdefs.h <<\_ACEOF
29863#define HAVE_XSHAPE 1
29864_ACEOF
29865
29866 echo "$as_me:$LINENO: result: found" >&5
29867echo "${ECHO_T}found" >&6
29868
29869else
29870 echo "$as_me: failed program was:" >&5
29871sed 's/^/| /' conftest.$ac_ext >&5
29872
29873
29874 echo "$as_me:$LINENO: result: not found" >&5
29875echo "${ECHO_T}not found" >&6
29876
29877fi
ac1cb8d3 29878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29879 CFLAGS="$save_CFLAGS"
29880
29881 fi
29882 fi
29883
29884 if test "$wxUSE_MAC" = 1; then
29885 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29886echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29887 if test "$GCC" = yes; then
29888 echo "$as_me:$LINENO: result: gcc" >&5
29889echo "${ECHO_T}gcc" >&6
29890 CPPFLAGS_PASCAL="-fpascal-strings"
29891 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29892 echo "$as_me:$LINENO: result: xlc" >&5
29893echo "${ECHO_T}xlc" >&6
29894 CPPFLAGS_PASCAL="-qmacpstr"
29895 else
29896 echo "$as_me:$LINENO: result: none" >&5
29897echo "${ECHO_T}none" >&6
29898 fi
29899
1e9e8aba
DE
29900 if test "x$wxUSE_UNIX" = "xyes"; then
29901 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29902 else
29903 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29904 fi
a848cd7e 29905
a848cd7e
SC
29906 TOOLKIT=MAC
29907 GUIDIST=MACX_DIST
dd21ced8 29908 WXBASEPORT="_carbon"
a848cd7e
SC
29909 fi
29910
29911 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
29912 TOOLKIT=COCOA
29913 GUIDIST=COCOA_DIST
29914 fi
29915
29916 if test "$wxUSE_PM" = 1; then
29917 TOOLKIT=PM
de59c161
RD
29918 GUIDIST=PM_DIST
29919 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
29920echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
29921if test "${wx_cv_spbcdata+set}" = set; then
29922 echo $ECHO_N "(cached) $ECHO_C" >&6
29923else
29924
29925 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
29926/* confdefs.h. */
29927_ACEOF
29928cat confdefs.h >>conftest.$ac_ext
29929cat >>conftest.$ac_ext <<_ACEOF
29930/* end confdefs.h. */
29931
29932 #define INCL_PM
29933 #include <os2.h>
29934
29935int
29936main ()
29937{
29938
29939 SPBCDATA test;
29940
29941 ;
29942 return 0;
29943}
29944_ACEOF
29945rm -f conftest.$ac_objext
29946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29947 (eval $ac_compile) 2>conftest.er1
de59c161 29948 ac_status=$?
ac1cb8d3
VS
29949 grep -v '^ *+' conftest.er1 >conftest.err
29950 rm -f conftest.er1
29951 cat conftest.err >&5
de59c161
RD
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); } &&
6ebeb4c7 29954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29956 (eval $ac_try) 2>&5
29957 ac_status=$?
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); }; } &&
29960 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
29961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29962 (eval $ac_try) 2>&5
29963 ac_status=$?
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); }; }; then
29966 wx_cv_spbcdata=yes
29967else
29968 echo "$as_me: failed program was:" >&5
29969sed 's/^/| /' conftest.$ac_ext >&5
29970
29971wx_cv_spbcdata=no
29972
29973fi
ac1cb8d3 29974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
29975
29976
29977fi
29978echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
29979echo "${ECHO_T}$wx_cv_spbcdata" >&6
29980
29981 if test $wx_cv_spbcdata = "yes"; then
29982 cat >>confdefs.h <<\_ACEOF
29983#define HAVE_SPBCDATA 1
29984_ACEOF
29985
29986 fi
a848cd7e
SC
29987 fi
29988
29989 if test "$TOOLKIT" = "PM" ; then
29990 TOOLKIT_DIR="os2"
29991 else
29992 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
29993 fi
29994
a848cd7e 29995 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
29996 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
29997 WIDGET_SET=univ
a848cd7e
SC
29998 fi
29999
30000 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30001 DISTDIR="wx\$(TOOLKIT)"
30002else
30003 USE_GUI=0
30004
30005 TOOLKIT_DIR="base"
30006
30007 if test "$USE_WIN32" = 1 ; then
a848cd7e 30008 TOOLKIT="MSW"
a848cd7e
SC
30009 fi
30010
a848cd7e
SC
30011 GUIDIST="BASE_DIST"
30012 DISTDIR="wxBase"
30013fi
30014
30015
d12aef51
VZ
30016if test "$wxUSE_GUI" = "yes"; then
30017 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30018
30019for ac_header in X11/Xlib.h
30020do
30021as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30022if eval "test \"\${$as_ac_Header+set}\" = set"; then
30023 echo "$as_me:$LINENO: checking for $ac_header" >&5
30024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30025if eval "test \"\${$as_ac_Header+set}\" = set"; then
30026 echo $ECHO_N "(cached) $ECHO_C" >&6
30027fi
30028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30030else
30031 # Is the header compilable?
30032echo "$as_me:$LINENO: checking $ac_header usability" >&5
30033echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30034cat >conftest.$ac_ext <<_ACEOF
30035/* confdefs.h. */
30036_ACEOF
30037cat confdefs.h >>conftest.$ac_ext
30038cat >>conftest.$ac_ext <<_ACEOF
30039/* end confdefs.h. */
30040$ac_includes_default
30041#include <$ac_header>
30042_ACEOF
30043rm -f conftest.$ac_objext
30044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30045 (eval $ac_compile) 2>conftest.er1
30046 ac_status=$?
30047 grep -v '^ *+' conftest.er1 >conftest.err
30048 rm -f conftest.er1
30049 cat conftest.err >&5
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); } &&
30052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30054 (eval $ac_try) 2>&5
30055 ac_status=$?
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); }; } &&
30058 { ac_try='test -s conftest.$ac_objext'
30059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060 (eval $ac_try) 2>&5
30061 ac_status=$?
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); }; }; then
30064 ac_header_compiler=yes
30065else
30066 echo "$as_me: failed program was:" >&5
30067sed 's/^/| /' conftest.$ac_ext >&5
30068
30069ac_header_compiler=no
30070fi
30071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30072echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30073echo "${ECHO_T}$ac_header_compiler" >&6
30074
30075# Is the header present?
30076echo "$as_me:$LINENO: checking $ac_header presence" >&5
30077echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30078cat >conftest.$ac_ext <<_ACEOF
30079/* confdefs.h. */
30080_ACEOF
30081cat confdefs.h >>conftest.$ac_ext
30082cat >>conftest.$ac_ext <<_ACEOF
30083/* end confdefs.h. */
30084#include <$ac_header>
30085_ACEOF
30086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30088 ac_status=$?
30089 grep -v '^ *+' conftest.er1 >conftest.err
30090 rm -f conftest.er1
30091 cat conftest.err >&5
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); } >/dev/null; then
30094 if test -s conftest.err; then
30095 ac_cpp_err=$ac_c_preproc_warn_flag
30096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30097 else
30098 ac_cpp_err=
30099 fi
30100else
30101 ac_cpp_err=yes
30102fi
30103if test -z "$ac_cpp_err"; then
30104 ac_header_preproc=yes
30105else
30106 echo "$as_me: failed program was:" >&5
30107sed 's/^/| /' conftest.$ac_ext >&5
30108
30109 ac_header_preproc=no
30110fi
30111rm -f conftest.err conftest.$ac_ext
30112echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30113echo "${ECHO_T}$ac_header_preproc" >&6
30114
30115# So? What about this header?
30116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30117 yes:no: )
30118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30119echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30121echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30122 ac_header_preproc=yes
30123 ;;
30124 no:yes:* )
30125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30126echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30128echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30130echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30132echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30134echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30136echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30137 (
30138 cat <<\_ASBOX
30139## ----------------------------------------- ##
30140## Report this to wx-dev@lists.wxwidgets.org ##
30141## ----------------------------------------- ##
30142_ASBOX
30143 ) |
30144 sed "s/^/$as_me: WARNING: /" >&2
30145 ;;
30146esac
30147echo "$as_me:$LINENO: checking for $ac_header" >&5
30148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30149if eval "test \"\${$as_ac_Header+set}\" = set"; then
30150 echo $ECHO_N "(cached) $ECHO_C" >&6
30151else
30152 eval "$as_ac_Header=\$ac_header_preproc"
30153fi
30154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30155echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30156
30157fi
30158if test `eval echo '${'$as_ac_Header'}'` = yes; then
30159 cat >>confdefs.h <<_ACEOF
30160#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30161_ACEOF
30162
30163fi
30164
30165done
30166
30167
30168for ac_header in X11/XKBlib.h
30169do
30170as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30171echo "$as_me:$LINENO: checking for $ac_header" >&5
30172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30173if eval "test \"\${$as_ac_Header+set}\" = set"; then
30174 echo $ECHO_N "(cached) $ECHO_C" >&6
30175else
30176 cat >conftest.$ac_ext <<_ACEOF
30177/* confdefs.h. */
30178_ACEOF
30179cat confdefs.h >>conftest.$ac_ext
30180cat >>conftest.$ac_ext <<_ACEOF
30181/* end confdefs.h. */
30182
30183 #if HAVE_X11_XLIB_H
30184 #include <X11/Xlib.h>
30185 #endif
30186
30187
30188#include <$ac_header>
30189_ACEOF
30190rm -f conftest.$ac_objext
30191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30192 (eval $ac_compile) 2>conftest.er1
30193 ac_status=$?
30194 grep -v '^ *+' conftest.er1 >conftest.err
30195 rm -f conftest.er1
30196 cat conftest.err >&5
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); } &&
30199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201 (eval $ac_try) 2>&5
30202 ac_status=$?
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; } &&
30205 { ac_try='test -s conftest.$ac_objext'
30206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207 (eval $ac_try) 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30211 eval "$as_ac_Header=yes"
30212else
30213 echo "$as_me: failed program was:" >&5
30214sed 's/^/| /' conftest.$ac_ext >&5
30215
30216eval "$as_ac_Header=no"
30217fi
30218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30219fi
30220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30222if test `eval echo '${'$as_ac_Header'}'` = yes; then
30223 cat >>confdefs.h <<_ACEOF
30224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30225_ACEOF
30226
30227fi
30228
30229done
30230
30231 fi
30232fi
30233
a848cd7e
SC
30234
30235
30236IODBC_C_SRC=""
30237
30238
30239if test "$TOOLKIT" != "MSW" ; then
30240
30241 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30242
30243 if test "${ac_cv_header_sql_h+set}" = set; then
30244 echo "$as_me:$LINENO: checking for sql.h" >&5
30245echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30246if test "${ac_cv_header_sql_h+set}" = set; then
30247 echo $ECHO_N "(cached) $ECHO_C" >&6
30248fi
30249echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30250echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30251else
30252 # Is the header compilable?
30253echo "$as_me:$LINENO: checking sql.h usability" >&5
30254echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30255cat >conftest.$ac_ext <<_ACEOF
30256/* confdefs.h. */
30257_ACEOF
30258cat confdefs.h >>conftest.$ac_ext
30259cat >>conftest.$ac_ext <<_ACEOF
30260/* end confdefs.h. */
30261$ac_includes_default
30262#include <sql.h>
30263_ACEOF
30264rm -f conftest.$ac_objext
30265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30266 (eval $ac_compile) 2>conftest.er1
a848cd7e 30267 ac_status=$?
ac1cb8d3
VS
30268 grep -v '^ *+' conftest.er1 >conftest.err
30269 rm -f conftest.er1
30270 cat conftest.err >&5
a848cd7e
SC
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); } &&
6ebeb4c7 30273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30276 ac_status=$?
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; } &&
30279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30281 (eval $ac_try) 2>&5
30282 ac_status=$?
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; }; then
30285 ac_header_compiler=yes
30286else
30287 echo "$as_me: failed program was:" >&5
30288sed 's/^/| /' conftest.$ac_ext >&5
30289
30290ac_header_compiler=no
30291fi
ac1cb8d3 30292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30293echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30294echo "${ECHO_T}$ac_header_compiler" >&6
30295
30296# Is the header present?
30297echo "$as_me:$LINENO: checking sql.h presence" >&5
30298echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30299cat >conftest.$ac_ext <<_ACEOF
30300/* confdefs.h. */
30301_ACEOF
30302cat confdefs.h >>conftest.$ac_ext
30303cat >>conftest.$ac_ext <<_ACEOF
30304/* end confdefs.h. */
30305#include <sql.h>
30306_ACEOF
30307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30309 ac_status=$?
30310 grep -v '^ *+' conftest.er1 >conftest.err
30311 rm -f conftest.er1
30312 cat conftest.err >&5
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); } >/dev/null; then
30315 if test -s conftest.err; then
30316 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30318 else
30319 ac_cpp_err=
30320 fi
30321else
30322 ac_cpp_err=yes
30323fi
30324if test -z "$ac_cpp_err"; then
30325 ac_header_preproc=yes
30326else
30327 echo "$as_me: failed program was:" >&5
30328sed 's/^/| /' conftest.$ac_ext >&5
30329
30330 ac_header_preproc=no
30331fi
30332rm -f conftest.err conftest.$ac_ext
30333echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30334echo "${ECHO_T}$ac_header_preproc" >&6
30335
30336# So? What about this header?
ac1cb8d3
VS
30337case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30338 yes:no: )
a848cd7e
SC
30339 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30340echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30341 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30342echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30343 ac_header_preproc=yes
a848cd7e 30344 ;;
ac1cb8d3 30345 no:yes:* )
a848cd7e
SC
30346 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30347echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30348 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30349echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30350 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30351echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30352 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30353echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30354 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30355echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30356 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30357echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30358 (
30359 cat <<\_ASBOX
ac1cb8d3
VS
30360## ----------------------------------------- ##
30361## Report this to wx-dev@lists.wxwidgets.org ##
30362## ----------------------------------------- ##
a848cd7e
SC
30363_ASBOX
30364 ) |
30365 sed "s/^/$as_me: WARNING: /" >&2
30366 ;;
30367esac
30368echo "$as_me:$LINENO: checking for sql.h" >&5
30369echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30370if test "${ac_cv_header_sql_h+set}" = set; then
30371 echo $ECHO_N "(cached) $ECHO_C" >&6
30372else
30373 ac_cv_header_sql_h=$ac_header_preproc
30374fi
30375echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30376echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30377
30378fi
30379if test $ac_cv_header_sql_h = yes; then
30380 found_sql_h=1
30381fi
30382
30383
30384 if test "x$found_sql_h" = "x1" ; then
30385 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30386echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30387if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30388 echo $ECHO_N "(cached) $ECHO_C" >&6
30389else
30390 ac_check_lib_save_LIBS=$LIBS
30391LIBS="-liodbc $LIBS"
30392cat >conftest.$ac_ext <<_ACEOF
30393/* confdefs.h. */
30394_ACEOF
30395cat confdefs.h >>conftest.$ac_ext
30396cat >>conftest.$ac_ext <<_ACEOF
30397/* end confdefs.h. */
30398
30399/* Override any gcc2 internal prototype to avoid an error. */
30400#ifdef __cplusplus
30401extern "C"
30402#endif
30403/* We use char because int might match the return type of a gcc2
30404 builtin and then its argument prototype would still apply. */
30405char SQLAllocEnv ();
30406int
30407main ()
30408{
30409SQLAllocEnv ();
30410 ;
30411 return 0;
30412}
30413_ACEOF
30414rm -f conftest.$ac_objext conftest$ac_exeext
30415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30416 (eval $ac_link) 2>conftest.er1
a848cd7e 30417 ac_status=$?
ac1cb8d3
VS
30418 grep -v '^ *+' conftest.er1 >conftest.err
30419 rm -f conftest.er1
30420 cat conftest.err >&5
a848cd7e
SC
30421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422 (exit $ac_status); } &&
6ebeb4c7 30423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30425 (eval $ac_try) 2>&5
30426 ac_status=$?
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; } &&
30429 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431 (eval $ac_try) 2>&5
30432 ac_status=$?
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; }; then
30435 ac_cv_lib_iodbc_SQLAllocEnv=yes
30436else
30437 echo "$as_me: failed program was:" >&5
30438sed 's/^/| /' conftest.$ac_ext >&5
30439
30440ac_cv_lib_iodbc_SQLAllocEnv=no
30441fi
ac1cb8d3
VS
30442rm -f conftest.err conftest.$ac_objext \
30443 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30444LIBS=$ac_check_lib_save_LIBS
30445fi
30446echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30447echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30448if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30449 ODBC_LINK=" -liodbc"
30450else
30451
30452 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30453echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30454if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30455 echo $ECHO_N "(cached) $ECHO_C" >&6
30456else
30457 ac_check_lib_save_LIBS=$LIBS
30458LIBS="-lunixodbc $LIBS"
30459cat >conftest.$ac_ext <<_ACEOF
30460/* confdefs.h. */
30461_ACEOF
30462cat confdefs.h >>conftest.$ac_ext
30463cat >>conftest.$ac_ext <<_ACEOF
30464/* end confdefs.h. */
30465
30466/* Override any gcc2 internal prototype to avoid an error. */
30467#ifdef __cplusplus
30468extern "C"
30469#endif
30470/* We use char because int might match the return type of a gcc2
30471 builtin and then its argument prototype would still apply. */
30472char SQLAllocEnv ();
30473int
30474main ()
30475{
30476SQLAllocEnv ();
30477 ;
30478 return 0;
30479}
30480_ACEOF
30481rm -f conftest.$ac_objext conftest$ac_exeext
30482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30483 (eval $ac_link) 2>conftest.er1
a848cd7e 30484 ac_status=$?
ac1cb8d3
VS
30485 grep -v '^ *+' conftest.er1 >conftest.err
30486 rm -f conftest.er1
30487 cat conftest.err >&5
a848cd7e
SC
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); } &&
6ebeb4c7 30490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30492 (eval $ac_try) 2>&5
30493 ac_status=$?
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); }; } &&
30496 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30498 (eval $ac_try) 2>&5
30499 ac_status=$?
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); }; }; then
30502 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30503else
30504 echo "$as_me: failed program was:" >&5
30505sed 's/^/| /' conftest.$ac_ext >&5
30506
30507ac_cv_lib_unixodbc_SQLAllocEnv=no
30508fi
ac1cb8d3
VS
30509rm -f conftest.err conftest.$ac_objext \
30510 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30511LIBS=$ac_check_lib_save_LIBS
30512fi
30513echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30514echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30515if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30516 ODBC_LINK=" -lunixodbc"
30517else
30518
30519 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30520echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30521if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30522 echo $ECHO_N "(cached) $ECHO_C" >&6
30523else
30524 ac_check_lib_save_LIBS=$LIBS
30525LIBS="-lodbc $LIBS"
30526cat >conftest.$ac_ext <<_ACEOF
30527/* confdefs.h. */
30528_ACEOF
30529cat confdefs.h >>conftest.$ac_ext
30530cat >>conftest.$ac_ext <<_ACEOF
30531/* end confdefs.h. */
30532
30533/* Override any gcc2 internal prototype to avoid an error. */
30534#ifdef __cplusplus
30535extern "C"
30536#endif
30537/* We use char because int might match the return type of a gcc2
30538 builtin and then its argument prototype would still apply. */
30539char SQLAllocEnv ();
30540int
30541main ()
30542{
30543SQLAllocEnv ();
30544 ;
30545 return 0;
30546}
30547_ACEOF
30548rm -f conftest.$ac_objext conftest$ac_exeext
30549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30550 (eval $ac_link) 2>conftest.er1
a848cd7e 30551 ac_status=$?
ac1cb8d3
VS
30552 grep -v '^ *+' conftest.er1 >conftest.err
30553 rm -f conftest.er1
30554 cat conftest.err >&5
a848cd7e
SC
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); } &&
6ebeb4c7 30557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30559 (eval $ac_try) 2>&5
30560 ac_status=$?
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); }; } &&
30563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30565 (eval $ac_try) 2>&5
30566 ac_status=$?
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); }; }; then
30569 ac_cv_lib_odbc_SQLAllocEnv=yes
30570else
30571 echo "$as_me: failed program was:" >&5
30572sed 's/^/| /' conftest.$ac_ext >&5
30573
30574ac_cv_lib_odbc_SQLAllocEnv=no
30575fi
ac1cb8d3
VS
30576rm -f conftest.err conftest.$ac_objext \
30577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30578LIBS=$ac_check_lib_save_LIBS
30579fi
30580echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30581echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30582if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30583 ODBC_LINK=" -lodbc"
30584fi
30585
30586
30587fi
30588
30589
30590fi
30591
30592 fi
30593 if test "x$ODBC_LINK" = "x" ; then
30594 if test "$wxUSE_ODBC" = "sys" ; then
30595 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30596echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30597 { (exit 1); exit 1; }; }
30598 else
30599 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30600echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30601 wxUSE_ODBC=builtin
30602 fi
30603 else
30604 wxUSE_ODBC=sys
30605 fi
30606 fi
a848cd7e 30607
2da0c077
RD
30608 if test "$wxUSE_ODBC" = "builtin" ; then
30609 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30610#define wxUSE_BUILTIN_IODBC 1
30611_ACEOF
30612
a848cd7e
SC
30613 fi
30614fi
30615
2da0c077
RD
30616if test "$wxUSE_ODBC" != "no" ; then
30617 cat >>confdefs.h <<\_ACEOF
30618#define wxUSE_ODBC 1
30619_ACEOF
30620
30621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30622
30623 WXODBCFLAG="-D_IODBC_"
30624fi
a848cd7e 30625
01cb68df 30626
a848cd7e 30627if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30628 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30629 echo "$as_me:$LINENO: checking for Xinerama" >&5
30630echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30631
0ad5d837
VZ
30632 ac_find_libraries=
30633 for ac_dir in $SEARCH_LIB;
30634 do
30635 for ac_extension in a so sl dylib dll.a; do
30636 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30637 ac_find_libraries=$ac_dir
30638 break 2
30639 fi
30640 done
30641 done
30642
a848cd7e
SC
30643 if test "$ac_find_libraries" != "" ; then
30644
0ad5d837 30645 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30646 ac_path_to_link=""
30647 else
0ad5d837
VZ
30648 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30649 result=$?
30650 if test $result = 0; then
30651 ac_path_to_link=""
30652 else
30653 ac_path_to_link=" -L$ac_find_libraries"
30654 fi
a848cd7e
SC
30655 fi
30656
30657 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30658 LDFLAGS="$LDFLAGS $ac_path_to_link"
30659 fi
30660 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30661 echo "$as_me:$LINENO: result: yes" >&5
30662echo "${ECHO_T}yes" >&6
30663
30664 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30665echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30666
0ad5d837
VZ
30667 ac_find_libraries=
30668 for ac_dir in $SEARCH_LIB;
a848cd7e 30669 do
3eca31dc 30670 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30671 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30672 ac_find_libraries=$ac_dir
30673 break 2
30674 fi
30675 done
30676 done
30677
30678 if test "$ac_find_libraries" != "" ; then
30679 echo "$as_me:$LINENO: result: yes" >&5
30680echo "${ECHO_T}yes" >&6
30681
30682for ac_header in X11/extensions/xf86vmode.h
30683do
30684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30685echo "$as_me:$LINENO: checking for $ac_header" >&5
30686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30687if eval "test \"\${$as_ac_Header+set}\" = set"; then
30688 echo $ECHO_N "(cached) $ECHO_C" >&6
30689else
30690 cat >conftest.$ac_ext <<_ACEOF
30691/* confdefs.h. */
30692_ACEOF
30693cat confdefs.h >>conftest.$ac_ext
30694cat >>conftest.$ac_ext <<_ACEOF
30695/* end confdefs.h. */
30696
30697 #if HAVE_X11_XLIB_H
30698 #include <X11/Xlib.h>
30699 #endif
30700
30701
30702#include <$ac_header>
30703_ACEOF
30704rm -f conftest.$ac_objext
30705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30706 (eval $ac_compile) 2>conftest.er1
a848cd7e 30707 ac_status=$?
ac1cb8d3
VS
30708 grep -v '^ *+' conftest.er1 >conftest.err
30709 rm -f conftest.er1
30710 cat conftest.err >&5
a848cd7e
SC
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); } &&
6ebeb4c7 30713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30715 (eval $ac_try) 2>&5
30716 ac_status=$?
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); }; } &&
30719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30721 (eval $ac_try) 2>&5
30722 ac_status=$?
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); }; }; then
30725 eval "$as_ac_Header=yes"
30726else
30727 echo "$as_me: failed program was:" >&5
30728sed 's/^/| /' conftest.$ac_ext >&5
30729
30730eval "$as_ac_Header=no"
30731fi
ac1cb8d3 30732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30733fi
30734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30736if test `eval echo '${'$as_ac_Header'}'` = yes; then
30737 cat >>confdefs.h <<_ACEOF
30738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30739_ACEOF
30740
30741 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30742
30743fi
30744
30745done
30746
30747 else
30748 echo "$as_me:$LINENO: result: no" >&5
30749echo "${ECHO_T}no" >&6
30750 fi
30751
30752 else
30753 echo "$as_me:$LINENO: result: no" >&5
30754echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30755 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30756echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30757 wxUSE_DISPLAY="no"
30758 fi
01cb68df
RG
30759 elif test "$wxUSE_MSW" = 1; then
30760
30761
30762for ac_header in multimon.h ddraw.h
30763do
30764as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30765echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30767if eval "test \"\${$as_ac_Header+set}\" = set"; then
30768 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30769else
5294a27e 30770 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30771/* confdefs.h. */
30772_ACEOF
30773cat confdefs.h >>conftest.$ac_ext
30774cat >>conftest.$ac_ext <<_ACEOF
30775/* end confdefs.h. */
5294a27e
VZ
30776#include <windows.h>
30777
01cb68df
RG
30778#include <$ac_header>
30779_ACEOF
30780rm -f conftest.$ac_objext
30781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30782 (eval $ac_compile) 2>conftest.er1
01cb68df 30783 ac_status=$?
ac1cb8d3
VS
30784 grep -v '^ *+' conftest.er1 >conftest.err
30785 rm -f conftest.er1
30786 cat conftest.err >&5
01cb68df
RG
30787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788 (exit $ac_status); } &&
6ebeb4c7 30789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30791 (eval $ac_try) 2>&5
30792 ac_status=$?
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); }; } &&
30795 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30797 (eval $ac_try) 2>&5
30798 ac_status=$?
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); }; }; then
5294a27e 30801 eval "$as_ac_Header=yes"
01cb68df
RG
30802else
30803 echo "$as_me: failed program was:" >&5
30804sed 's/^/| /' conftest.$ac_ext >&5
30805
5294a27e 30806eval "$as_ac_Header=no"
01cb68df 30807fi
ac1cb8d3 30808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30809fi
30810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30812if test `eval echo '${'$as_ac_Header'}'` = yes; then
30813 cat >>confdefs.h <<_ACEOF
30814#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30815_ACEOF
30816
30817else
30818
5294a27e
VZ
30819 wxUSE_DISPLAY="no"
30820 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30821echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30822
30823fi
30824
30825done
30826
a848cd7e
SC
30827 fi
30828fi
30829
30830
30831USE_OPENGL=0
30832if test "$wxUSE_OPENGL" = "yes"; then
30833 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30834 OPENGL_LIBS="-framework OpenGL -framework AGL"
30835 elif test "$wxUSE_MSW" = 1; then
30836 OPENGL_LIBS="-lopengl32 -lglu32"
30837 else
30838
30839
30840ac_find_includes=
30841for ac_dir in $SEARCH_INCLUDE /usr/include;
30842 do
30843 if test -f "$ac_dir/GL/gl.h"; then
30844 ac_find_includes=$ac_dir
30845 break
30846 fi
30847 done
30848
30849 if test "$ac_find_includes" != "" ; then
30850 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30851echo "${ECHO_T}found in $ac_find_includes" >&6
30852
30853 if test "x$ac_find_includes" = "x/usr/include"; then
30854 ac_path_to_include=""
30855 else
30856 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30857 result=$?
30858 if test $result = 0; then
30859 ac_path_to_include=""
30860 else
30861 ac_path_to_include=" -I$ac_find_includes"
30862 fi
30863 fi
30864
30865 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30866 fi
30867
30868 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30869 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30870echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30871if test "${ac_cv_header_GL_gl_h+set}" = set; then
30872 echo $ECHO_N "(cached) $ECHO_C" >&6
30873fi
30874echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30875echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30876else
30877 # Is the header compilable?
30878echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30879echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30880cat >conftest.$ac_ext <<_ACEOF
30881/* confdefs.h. */
30882_ACEOF
30883cat confdefs.h >>conftest.$ac_ext
30884cat >>conftest.$ac_ext <<_ACEOF
30885/* end confdefs.h. */
30886$ac_includes_default
30887#include <GL/gl.h>
30888_ACEOF
30889rm -f conftest.$ac_objext
30890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30891 (eval $ac_compile) 2>conftest.er1
a848cd7e 30892 ac_status=$?
ac1cb8d3
VS
30893 grep -v '^ *+' conftest.er1 >conftest.err
30894 rm -f conftest.er1
30895 cat conftest.err >&5
a848cd7e
SC
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); } &&
6ebeb4c7 30898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30900 (eval $ac_try) 2>&5
30901 ac_status=$?
30902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903 (exit $ac_status); }; } &&
30904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30906 (eval $ac_try) 2>&5
30907 ac_status=$?
30908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909 (exit $ac_status); }; }; then
30910 ac_header_compiler=yes
30911else
30912 echo "$as_me: failed program was:" >&5
30913sed 's/^/| /' conftest.$ac_ext >&5
30914
30915ac_header_compiler=no
30916fi
ac1cb8d3 30917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30918echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30919echo "${ECHO_T}$ac_header_compiler" >&6
30920
30921# Is the header present?
30922echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
30923echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
30924cat >conftest.$ac_ext <<_ACEOF
30925/* confdefs.h. */
30926_ACEOF
30927cat confdefs.h >>conftest.$ac_ext
30928cat >>conftest.$ac_ext <<_ACEOF
30929/* end confdefs.h. */
30930#include <GL/gl.h>
30931_ACEOF
30932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30934 ac_status=$?
30935 grep -v '^ *+' conftest.er1 >conftest.err
30936 rm -f conftest.er1
30937 cat conftest.err >&5
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); } >/dev/null; then
30940 if test -s conftest.err; then
30941 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30943 else
30944 ac_cpp_err=
30945 fi
30946else
30947 ac_cpp_err=yes
30948fi
30949if test -z "$ac_cpp_err"; then
30950 ac_header_preproc=yes
30951else
30952 echo "$as_me: failed program was:" >&5
30953sed 's/^/| /' conftest.$ac_ext >&5
30954
30955 ac_header_preproc=no
30956fi
30957rm -f conftest.err conftest.$ac_ext
30958echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30959echo "${ECHO_T}$ac_header_preproc" >&6
30960
30961# So? What about this header?
ac1cb8d3
VS
30962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30963 yes:no: )
a848cd7e
SC
30964 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30965echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30966 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
30967echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
30968 ac_header_preproc=yes
a848cd7e 30969 ;;
ac1cb8d3 30970 no:yes:* )
a848cd7e
SC
30971 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
30972echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30973 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
30974echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
30975 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
30976echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
30977 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
30978echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30979 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
30980echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30981 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
30982echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30983 (
30984 cat <<\_ASBOX
ac1cb8d3
VS
30985## ----------------------------------------- ##
30986## Report this to wx-dev@lists.wxwidgets.org ##
30987## ----------------------------------------- ##
a848cd7e
SC
30988_ASBOX
30989 ) |
30990 sed "s/^/$as_me: WARNING: /" >&2
30991 ;;
30992esac
30993echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30994echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30995if test "${ac_cv_header_GL_gl_h+set}" = set; then
30996 echo $ECHO_N "(cached) $ECHO_C" >&6
30997else
30998 ac_cv_header_GL_gl_h=$ac_header_preproc
30999fi
31000echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31001echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31002
31003fi
31004if test $ac_cv_header_GL_gl_h = yes; then
31005
31006 found_gl=0
31007
31008 echo "$as_me:$LINENO: checking for -lGL" >&5
31009echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31010
0ad5d837
VZ
31011 ac_find_libraries=
31012 for ac_dir in $SEARCH_LIB;
a848cd7e 31013 do
3eca31dc 31014 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31015 if test -f "$ac_dir/libGL.$ac_extension"; then
31016 ac_find_libraries=$ac_dir
31017 break 2
31018 fi
31019 done
31020 done
31021
31022 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31023 echo "$as_me:$LINENO: result: yes" >&5
31024echo "${ECHO_T}yes" >&6
31025
a848cd7e 31026
0ad5d837 31027 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31028 ac_path_to_link=""
31029 else
0ad5d837
VZ
31030 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31031 result=$?
31032 if test $result = 0; then
31033 ac_path_to_link=""
31034 else
31035 ac_path_to_link=" -L$ac_find_libraries"
31036 fi
a848cd7e
SC
31037 fi
31038
31039 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31040 LDFLAGS_GL="$ac_path_to_link"
31041 fi
31042
69120ee4
VZ
31043 echo "$as_me:$LINENO: checking for -lGLU" >&5
31044echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31045
0ad5d837
VZ
31046 ac_find_libraries=
31047 for ac_dir in $SEARCH_LIB;
31048 do
31049 for ac_extension in a so sl dylib dll.a; do
31050 if test -f "$ac_dir/libGLU.$ac_extension"; then
31051 ac_find_libraries=$ac_dir
31052 break 2
31053 fi
31054 done
31055 done
31056
a848cd7e
SC
31057 if test "$ac_find_libraries" != "" ; then
31058
0ad5d837 31059 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31060 ac_path_to_link=""
31061 else
0ad5d837
VZ
31062 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31063 result=$?
31064 if test $result = 0; then
31065 ac_path_to_link=""
31066 else
31067 ac_path_to_link=" -L$ac_find_libraries"
31068 fi
a848cd7e
SC
31069 fi
31070
31071 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31072 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31073 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31074 fi
31075
31076 found_gl=1
31077 OPENGL_LIBS="-lGL -lGLU"
31078 echo "$as_me:$LINENO: result: yes" >&5
31079echo "${ECHO_T}yes" >&6
69120ee4
VZ
31080 else
31081 echo "$as_me:$LINENO: result: no" >&5
31082echo "${ECHO_T}no" >&6
a848cd7e 31083 fi
69120ee4
VZ
31084 else
31085 echo "$as_me:$LINENO: result: no" >&5
31086echo "${ECHO_T}no" >&6
a848cd7e
SC
31087 fi
31088
31089 if test "$found_gl" != 1; then
a848cd7e
SC
31090 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31091echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31092
0ad5d837
VZ
31093 ac_find_libraries=
31094 for ac_dir in $SEARCH_LIB;
a848cd7e 31095 do
3eca31dc 31096 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31097 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31098 ac_find_libraries=$ac_dir
31099 break 2
31100 fi
31101 done
31102 done
31103
31104 if test "$ac_find_libraries" != "" ; then
31105
0ad5d837 31106 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31107 ac_path_to_link=""
31108 else
0ad5d837
VZ
31109 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31110 result=$?
31111 if test $result = 0; then
31112 ac_path_to_link=""
31113 else
31114 ac_path_to_link=" -L$ac_find_libraries"
31115 fi
a848cd7e
SC
31116 fi
31117
31118 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31119 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31120 echo "$as_me:$LINENO: result: yes" >&5
31121echo "${ECHO_T}yes" >&6
31122 else
31123 echo "$as_me:$LINENO: result: no" >&5
31124echo "${ECHO_T}no" >&6
31125 fi
31126 fi
31127
31128fi
31129
31130
31131
31132 if test "x$OPENGL_LIBS" = "x"; then
31133 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31134echo "$as_me: error: OpenGL libraries not available" >&2;}
31135 { (exit 1); exit 1; }; }
31136 fi
31137 fi
31138
31139 if test "$wxUSE_OPENGL" = "yes"; then
31140 USE_OPENGL=1
31141 cat >>confdefs.h <<\_ACEOF
31142#define wxUSE_OPENGL 1
31143_ACEOF
31144
31145 cat >>confdefs.h <<\_ACEOF
31146#define wxUSE_GLCANVAS 1
31147_ACEOF
31148
31149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31150 fi
31151fi
31152
a848cd7e
SC
31153
31154if test -n "$TOOLKIT" ; then
31155 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31156fi
31157
a848cd7e
SC
31158
31159
31160if test "$wxUSE_SHARED" = "yes"; then
31161 case "${host}" in
31162 *-pc-msdosdjgpp )
31163 wxUSE_SHARED=no
31164 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31165echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31166 ;;
31167 esac
31168fi
31169
a848cd7e 31170if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31171
31172
31173 found_versioning=no
31174
31175
31176 if test $found_versioning = no ; then
31177 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31178echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31179if test "${wx_cv_version_script+set}" = set; then
31180 echo $ECHO_N "(cached) $ECHO_C" >&6
31181else
31182
31183 echo "VER_1 { *; };" >conftest.sym
31184 echo "int main() { return 0; }" >conftest.cpp
31185
31186 if { ac_try='
31187 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31188 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31190 (eval $ac_try) 2>&5
31191 ac_status=$?
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); }; } ; then
31194 if test -s conftest.stderr ; then
31195 wx_cv_version_script=no
31196 else
31197 wx_cv_version_script=yes
31198 fi
31199 else
31200 wx_cv_version_script=no
31201 fi
e5d4b470
MW
31202
31203 if test $wx_cv_version_script = yes
31204 then
31205 echo "struct B { virtual ~B() { } }; \
31206 struct D : public B { }; \
31207 void F() { D d; }" > conftest.cpp
31208
31209 if { ac_try='
31210 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31211 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31213 (eval $ac_try) 2>&5
31214 ac_status=$?
31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); }; } &&
31217 { ac_try='
31218 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31219 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31221 (eval $ac_try) 2>&5
31222 ac_status=$?
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); }; }
31225 then
31226 if { ac_try='
31227 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31228 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31230 (eval $ac_try) 2>&5
31231 ac_status=$?
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); }; }
31234 then
31235 wx_cv_version_script=yes
31236 else
31237 wx_cv_version_script=no
31238 fi
31239 fi
31240 fi
31241
a848cd7e 31242 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31243 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31244
31245fi
31246echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31247echo "${ECHO_T}$wx_cv_version_script" >&6
31248 if test $wx_cv_version_script = yes ; then
31249 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31250 fi
31251 fi
31252
31253
31254 case "${host}" in
31255 *-*-linux* | *-*-gnu* )
31256 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31257 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31258 ;;
a848cd7e
SC
31259
31260 *-*-solaris2* )
31261 if test "$GCC" = yes ; then
31262 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
31263
31264 saveLdflags="$LDFLAGS"
31265 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31266 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31267echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31268 cat >conftest.$ac_ext <<_ACEOF
31269/* confdefs.h. */
31270_ACEOF
31271cat confdefs.h >>conftest.$ac_ext
31272cat >>conftest.$ac_ext <<_ACEOF
31273/* end confdefs.h. */
31274
31275int
31276main ()
31277{
31278
31279 ;
31280 return 0;
31281}
31282_ACEOF
31283rm -f conftest.$ac_objext conftest$ac_exeext
31284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31285 (eval $ac_link) 2>conftest.er1
a848cd7e 31286 ac_status=$?
ac1cb8d3
VS
31287 grep -v '^ *+' conftest.er1 >conftest.err
31288 rm -f conftest.er1
31289 cat conftest.err >&5
a848cd7e
SC
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); } &&
6ebeb4c7 31292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31294 (eval $ac_try) 2>&5
31295 ac_status=$?
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); }; } &&
31298 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
31304
31305 echo "$as_me:$LINENO: result: yes" >&5
31306echo "${ECHO_T}yes" >&6
31307 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31308 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31309
31310else
31311 echo "$as_me: failed program was:" >&5
31312sed 's/^/| /' conftest.$ac_ext >&5
31313
31314
31315 echo "$as_me:$LINENO: result: no" >&5
31316echo "${ECHO_T}no" >&6
31317 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31318echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31319 LDFLAGS="$saveLdflags -Wl,-R,/"
31320 cat >conftest.$ac_ext <<_ACEOF
31321/* confdefs.h. */
31322_ACEOF
31323cat confdefs.h >>conftest.$ac_ext
31324cat >>conftest.$ac_ext <<_ACEOF
31325/* end confdefs.h. */
31326
31327int
31328main ()
31329{
31330
31331 ;
31332 return 0;
31333}
31334_ACEOF
31335rm -f conftest.$ac_objext conftest$ac_exeext
31336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31337 (eval $ac_link) 2>conftest.er1
a848cd7e 31338 ac_status=$?
ac1cb8d3
VS
31339 grep -v '^ *+' conftest.er1 >conftest.err
31340 rm -f conftest.er1
31341 cat conftest.err >&5
a848cd7e
SC
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); } &&
6ebeb4c7 31344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346 (eval $ac_try) 2>&5
31347 ac_status=$?
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; } &&
31350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31352 (eval $ac_try) 2>&5
31353 ac_status=$?
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); }; }; then
31356
ffa0583f 31357 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31358echo "${ECHO_T}yes" >&6
ffa0583f
RL
31359 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31360 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31361
a848cd7e
SC
31362else
31363 echo "$as_me: failed program was:" >&5
31364sed 's/^/| /' conftest.$ac_ext >&5
31365
31366
31367 echo "$as_me:$LINENO: result: no" >&5
31368echo "${ECHO_T}no" >&6
31369
31370fi
ac1cb8d3
VS
31371rm -f conftest.err conftest.$ac_objext \
31372 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31373
31374fi
ac1cb8d3
VS
31375rm -f conftest.err conftest.$ac_objext \
31376 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31377 LDFLAGS="$saveLdflags"
31378 else
a848cd7e 31379 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31380 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31381 fi
31382 ;;
31383
cfda0ea8 31384 *-*-darwin* )
0caebc27
MW
31385 install_name_tool=`which install_name_tool`
31386 if test "$install_name_tool" -a -x "$install_name_tool"; then
31387 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31388 cat <<EOF >change-install-names
a848cd7e
SC
31389#!/bin/sh
31390libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31391inst_cmd="install_name_tool "
31392for i in \${libnames} ; do
31393 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31394done
31395\${inst_cmd} \${3}
31396EOF
0caebc27
MW
31397 chmod +x change-install-names
31398 fi
a848cd7e
SC
31399 ;;
31400
31401 *-*-cygwin* | *-*-mingw32* )
31402 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
31403 ;;
31404
81f90336
MW
31405 *-*-hpux* )
31406 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31407 WXCONFIG_RPATH="-Wl,+b,\$libdir"
31408 ;;
31409
a848cd7e 31410 esac
ceec2216 31411
ffa0583f
RL
31412 if test $wxUSE_RPATH = "no"; then
31413 SAMPLES_RPATH_FLAG=''
31414 SAMPLES_RPATH_POSTLINK=''
31415 WXCONFIG_RPATH=''
31416 fi
31417
31418 SHARED=1
31419
31420else
31421
ceec2216
RL
31422 config_linkage_component="-static"
31423 SHARED=0
ffa0583f 31424
ceec2216 31425fi
a848cd7e 31426
a848cd7e 31427
ceec2216
RL
31428UNICODE=0
31429lib_unicode_suffix=
31430WX_CHARTYPE="ansi"
31431if test "$wxUSE_UNICODE" = "yes"; then
31432 lib_unicode_suffix=u
31433 WX_CHARTYPE="unicode"
31434 UNICODE=1
a848cd7e
SC
31435fi
31436
ceec2216
RL
31437lib_debug_suffix=
31438WX_DEBUGTYPE="release"
31439DEBUG_FLAG=0
31440if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31441 lib_debug_suffix=d
31442 WX_DEBUGTYPE="debug"
31443 DEBUG_FLAG=1
31444fi
a848cd7e 31445
ceec2216
RL
31446WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31447WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31448
ceec2216
RL
31449DEBUG_INFO=0
31450if test "$wxUSE_DEBUG_INFO" = "yes"; then
31451 DEBUG_INFO=1
31452fi
a848cd7e 31453
ceec2216 31454WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31455
ceec2216 31456TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31457
ceec2216 31458TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31459
ceec2216
RL
31460if test "$cross_compiling" = "yes"; then
31461 HOST_SUFFIX="-$host_alias"
31462 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31463 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31464fi
31465
dd21ced8 31466WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31467if test "${TOOLKIT_DIR}" = "os2"; then
31468 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31469else
31470 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31471fi
ceec2216
RL
31472
31473
31474
1d1af5ea
DE
31475if test "$wxUSE_COCOA" = 1; then
31476
31477
31478 ac_ext=c
31479ac_cpp='$CPP $CPPFLAGS'
31480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31482ac_compiler_gnu=$ac_cv_c_compiler_gnu
31483
31484ac_ext=m
31485
31486 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31487echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31488 cat >conftest.$ac_ext <<_ACEOF
31489/* confdefs.h. */
31490_ACEOF
31491cat confdefs.h >>conftest.$ac_ext
31492cat >>conftest.$ac_ext <<_ACEOF
31493/* end confdefs.h. */
31494#include <AppKit/NSEvent.h>
31495#include <CoreFoundation/CoreFoundation.h>
31496
31497int
31498main ()
31499{
31500
31501 ;
31502 return 0;
31503}
31504_ACEOF
31505rm -f conftest.$ac_objext
31506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31507 (eval $ac_compile) 2>conftest.er1
31508 ac_status=$?
31509 grep -v '^ *+' conftest.er1 >conftest.err
31510 rm -f conftest.er1
31511 cat conftest.err >&5
31512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513 (exit $ac_status); } &&
6ebeb4c7 31514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31516 (eval $ac_try) 2>&5
31517 ac_status=$?
31518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); }; } &&
31520 { ac_try='test -s conftest.$ac_objext'
31521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31522 (eval $ac_try) 2>&5
31523 ac_status=$?
31524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31525 (exit $ac_status); }; }; then
31526 echo "$as_me:$LINENO: result: no" >&5
31527echo "${ECHO_T}no" >&6
31528else
31529 echo "$as_me: failed program was:" >&5
31530sed 's/^/| /' conftest.$ac_ext >&5
31531
31532echo "$as_me:$LINENO: result: yes" >&5
31533echo "${ECHO_T}yes" >&6
31534 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31535echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31536 cat >conftest.$ac_ext <<_ACEOF
31537/* confdefs.h. */
31538_ACEOF
31539cat confdefs.h >>conftest.$ac_ext
31540cat >>conftest.$ac_ext <<_ACEOF
31541/* end confdefs.h. */
31542#define __Point__ 1
31543#include <AppKit/NSEvent.h>
31544#include <CoreFoundation/CoreFoundation.h>
31545
31546int
31547main ()
31548{
31549
31550 ;
31551 return 0;
31552}
31553_ACEOF
31554rm -f conftest.$ac_objext
31555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31556 (eval $ac_compile) 2>conftest.er1
31557 ac_status=$?
31558 grep -v '^ *+' conftest.er1 >conftest.err
31559 rm -f conftest.er1
31560 cat conftest.err >&5
31561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562 (exit $ac_status); } &&
6ebeb4c7 31563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31565 (eval $ac_try) 2>&5
31566 ac_status=$?
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); }; } &&
31569 { ac_try='test -s conftest.$ac_objext'
31570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31571 (eval $ac_try) 2>&5
31572 ac_status=$?
31573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31574 (exit $ac_status); }; }; then
31575 echo "$as_me:$LINENO: result: yes" >&5
31576echo "${ECHO_T}yes" >&6
31577 cat >>confdefs.h <<\_ACEOF
31578#define __Point__ 1
31579_ACEOF
31580
31581
31582else
31583 echo "$as_me: failed program was:" >&5
31584sed 's/^/| /' conftest.$ac_ext >&5
31585
31586{ { echo "$as_me:$LINENO: error: no
31587See \`config.log' for more details." >&5
31588echo "$as_me: error: no
31589See \`config.log' for more details." >&2;}
31590 { (exit 1); exit 1; }; }
31591
31592fi
31593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31594
31595fi
31596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31597 ac_ext=c
31598ac_cpp='$CPP $CPPFLAGS'
31599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31601ac_compiler_gnu=$ac_cv_c_compiler_gnu
31602
31603fi
31604
a848cd7e 31605if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31606 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31607 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31608
a848cd7e 31609 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31610
31611 # Extract the first word of "Rez", so it can be a program name with args.
31612set dummy Rez; ac_word=$2
31613echo "$as_me:$LINENO: checking for $ac_word" >&5
31614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31615if test "${ac_cv_prog_RESCOMP+set}" = set; then
31616 echo $ECHO_N "(cached) $ECHO_C" >&6
31617else
31618 if test -n "$RESCOMP"; then
31619 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31620else
31621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31622for as_dir in $PATH
31623do
31624 IFS=$as_save_IFS
31625 test -z "$as_dir" && as_dir=.
31626 for ac_exec_ext in '' $ac_executable_extensions; do
31627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31628 ac_cv_prog_RESCOMP="Rez"
31629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31630 break 2
31631 fi
31632done
31633done
31634
31635 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31636fi
31637fi
31638RESCOMP=$ac_cv_prog_RESCOMP
31639if test -n "$RESCOMP"; then
31640 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31641echo "${ECHO_T}$RESCOMP" >&6
31642else
31643 echo "$as_me:$LINENO: result: no" >&5
31644echo "${ECHO_T}no" >&6
31645fi
31646
31647 # Extract the first word of "DeRez", so it can be a program name with args.
31648set dummy DeRez; ac_word=$2
31649echo "$as_me:$LINENO: checking for $ac_word" >&5
31650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31651if test "${ac_cv_prog_DEREZ+set}" = set; then
31652 echo $ECHO_N "(cached) $ECHO_C" >&6
31653else
31654 if test -n "$DEREZ"; then
31655 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31656else
31657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31658for as_dir in $PATH
31659do
31660 IFS=$as_save_IFS
31661 test -z "$as_dir" && as_dir=.
31662 for ac_exec_ext in '' $ac_executable_extensions; do
31663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31664 ac_cv_prog_DEREZ="DeRez"
31665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31666 break 2
31667 fi
31668done
31669done
31670
31671 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31672fi
31673fi
31674DEREZ=$ac_cv_prog_DEREZ
31675if test -n "$DEREZ"; then
31676 echo "$as_me:$LINENO: result: $DEREZ" >&5
31677echo "${ECHO_T}$DEREZ" >&6
31678else
31679 echo "$as_me:$LINENO: result: no" >&5
31680echo "${ECHO_T}no" >&6
31681fi
31682
31683 # Extract the first word of "SetFile", so it can be a program name with args.
31684set dummy SetFile; ac_word=$2
31685echo "$as_me:$LINENO: checking for $ac_word" >&5
31686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31687if test "${ac_cv_prog_SETFILE+set}" = set; then
31688 echo $ECHO_N "(cached) $ECHO_C" >&6
31689else
31690 if test -n "$SETFILE"; then
31691 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31692else
31693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31694for as_dir in $PATH
31695do
31696 IFS=$as_save_IFS
31697 test -z "$as_dir" && as_dir=.
31698 for ac_exec_ext in '' $ac_executable_extensions; do
31699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31700 ac_cv_prog_SETFILE="SetFile"
31701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31702 break 2
31703 fi
31704done
31705done
31706
31707 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31708fi
31709fi
31710SETFILE=$ac_cv_prog_SETFILE
31711if test -n "$SETFILE"; then
31712 echo "$as_me:$LINENO: result: $SETFILE" >&5
31713echo "${ECHO_T}$SETFILE" >&6
31714else
31715 echo "$as_me:$LINENO: result: no" >&5
31716echo "${ECHO_T}no" >&6
31717fi
31718
31719
31720 MACSETFILE="\$(SETFILE)"
31721
31722 if test "$wxUSE_MAC" = 1; then
1a79f136 31723 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31724
1a79f136 31725 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
31726 else
31727 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31728 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31729 fi
31730else
ffa0583f
RL
31731 MACSETFILE="@true"
31732 MACRESWXCONFIG="@true"
a848cd7e
SC
31733
31734 if test "$wxUSE_PM" = 1; then
31735 MACRESCOMP="emxbind -ep"
31736 else
ffa0583f 31737 MACRESCOMP="@true"
a848cd7e
SC
31738 fi
31739fi
31740
31741
31742
31743echo "$as_me:$LINENO: checking for mode_t" >&5
31744echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31745if test "${ac_cv_type_mode_t+set}" = set; then
31746 echo $ECHO_N "(cached) $ECHO_C" >&6
31747else
31748 cat >conftest.$ac_ext <<_ACEOF
31749/* confdefs.h. */
31750_ACEOF
31751cat confdefs.h >>conftest.$ac_ext
31752cat >>conftest.$ac_ext <<_ACEOF
31753/* end confdefs.h. */
31754$ac_includes_default
31755int
31756main ()
31757{
31758if ((mode_t *) 0)
31759 return 0;
31760if (sizeof (mode_t))
31761 return 0;
31762 ;
31763 return 0;
31764}
31765_ACEOF
31766rm -f conftest.$ac_objext
31767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31768 (eval $ac_compile) 2>conftest.er1
a848cd7e 31769 ac_status=$?
ac1cb8d3
VS
31770 grep -v '^ *+' conftest.er1 >conftest.err
31771 rm -f conftest.er1
31772 cat conftest.err >&5
a848cd7e
SC
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); } &&
6ebeb4c7 31775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31777 (eval $ac_try) 2>&5
31778 ac_status=$?
31779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780 (exit $ac_status); }; } &&
31781 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31783 (eval $ac_try) 2>&5
31784 ac_status=$?
31785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786 (exit $ac_status); }; }; then
31787 ac_cv_type_mode_t=yes
31788else
31789 echo "$as_me: failed program was:" >&5
31790sed 's/^/| /' conftest.$ac_ext >&5
31791
31792ac_cv_type_mode_t=no
31793fi
ac1cb8d3 31794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31795fi
31796echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31797echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31798if test $ac_cv_type_mode_t = yes; then
31799 :
31800else
31801
31802cat >>confdefs.h <<_ACEOF
31803#define mode_t int
31804_ACEOF
31805
31806fi
31807
31808echo "$as_me:$LINENO: checking for off_t" >&5
31809echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31810if test "${ac_cv_type_off_t+set}" = set; then
31811 echo $ECHO_N "(cached) $ECHO_C" >&6
31812else
31813 cat >conftest.$ac_ext <<_ACEOF
31814/* confdefs.h. */
31815_ACEOF
31816cat confdefs.h >>conftest.$ac_ext
31817cat >>conftest.$ac_ext <<_ACEOF
31818/* end confdefs.h. */
31819$ac_includes_default
31820int
31821main ()
31822{
31823if ((off_t *) 0)
31824 return 0;
31825if (sizeof (off_t))
31826 return 0;
31827 ;
31828 return 0;
31829}
31830_ACEOF
31831rm -f conftest.$ac_objext
31832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31833 (eval $ac_compile) 2>conftest.er1
a848cd7e 31834 ac_status=$?
ac1cb8d3
VS
31835 grep -v '^ *+' conftest.er1 >conftest.err
31836 rm -f conftest.er1
31837 cat conftest.err >&5
a848cd7e
SC
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); } &&
6ebeb4c7 31840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31842 (eval $ac_try) 2>&5
31843 ac_status=$?
31844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 (exit $ac_status); }; } &&
31846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31848 (eval $ac_try) 2>&5
31849 ac_status=$?
31850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 (exit $ac_status); }; }; then
31852 ac_cv_type_off_t=yes
31853else
31854 echo "$as_me: failed program was:" >&5
31855sed 's/^/| /' conftest.$ac_ext >&5
31856
31857ac_cv_type_off_t=no
31858fi
ac1cb8d3 31859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31860fi
31861echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31862echo "${ECHO_T}$ac_cv_type_off_t" >&6
31863if test $ac_cv_type_off_t = yes; then
31864 :
31865else
31866
31867cat >>confdefs.h <<_ACEOF
31868#define off_t long
31869_ACEOF
31870
31871fi
31872
31873echo "$as_me:$LINENO: checking for pid_t" >&5
31874echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31875if test "${ac_cv_type_pid_t+set}" = set; then
31876 echo $ECHO_N "(cached) $ECHO_C" >&6
31877else
31878 cat >conftest.$ac_ext <<_ACEOF
31879/* confdefs.h. */
31880_ACEOF
31881cat confdefs.h >>conftest.$ac_ext
31882cat >>conftest.$ac_ext <<_ACEOF
31883/* end confdefs.h. */
31884$ac_includes_default
31885int
31886main ()
31887{
31888if ((pid_t *) 0)
31889 return 0;
31890if (sizeof (pid_t))
31891 return 0;
31892 ;
31893 return 0;
31894}
31895_ACEOF
31896rm -f conftest.$ac_objext
31897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31898 (eval $ac_compile) 2>conftest.er1
a848cd7e 31899 ac_status=$?
ac1cb8d3
VS
31900 grep -v '^ *+' conftest.er1 >conftest.err
31901 rm -f conftest.er1
31902 cat conftest.err >&5
a848cd7e
SC
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); } &&
6ebeb4c7 31905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31907 (eval $ac_try) 2>&5
31908 ac_status=$?
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); }; } &&
31911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31913 (eval $ac_try) 2>&5
31914 ac_status=$?
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); }; }; then
31917 ac_cv_type_pid_t=yes
31918else
31919 echo "$as_me: failed program was:" >&5
31920sed 's/^/| /' conftest.$ac_ext >&5
31921
31922ac_cv_type_pid_t=no
31923fi
ac1cb8d3 31924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31925fi
31926echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31927echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31928if test $ac_cv_type_pid_t = yes; then
31929 :
31930else
31931
31932cat >>confdefs.h <<_ACEOF
31933#define pid_t int
31934_ACEOF
31935
31936fi
31937
31938echo "$as_me:$LINENO: checking for size_t" >&5
31939echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31940if test "${ac_cv_type_size_t+set}" = set; then
31941 echo $ECHO_N "(cached) $ECHO_C" >&6
31942else
31943 cat >conftest.$ac_ext <<_ACEOF
31944/* confdefs.h. */
31945_ACEOF
31946cat confdefs.h >>conftest.$ac_ext
31947cat >>conftest.$ac_ext <<_ACEOF
31948/* end confdefs.h. */
31949$ac_includes_default
31950int
31951main ()
31952{
31953if ((size_t *) 0)
31954 return 0;
31955if (sizeof (size_t))
31956 return 0;
31957 ;
31958 return 0;
31959}
31960_ACEOF
31961rm -f conftest.$ac_objext
31962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31963 (eval $ac_compile) 2>conftest.er1
a848cd7e 31964 ac_status=$?
ac1cb8d3
VS
31965 grep -v '^ *+' conftest.er1 >conftest.err
31966 rm -f conftest.er1
31967 cat conftest.err >&5
a848cd7e
SC
31968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969 (exit $ac_status); } &&
6ebeb4c7 31970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31972 (eval $ac_try) 2>&5
31973 ac_status=$?
31974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975 (exit $ac_status); }; } &&
31976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31978 (eval $ac_try) 2>&5
31979 ac_status=$?
31980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981 (exit $ac_status); }; }; then
31982 ac_cv_type_size_t=yes
31983else
31984 echo "$as_me: failed program was:" >&5
31985sed 's/^/| /' conftest.$ac_ext >&5
31986
31987ac_cv_type_size_t=no
31988fi
ac1cb8d3 31989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31990fi
31991echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31992echo "${ECHO_T}$ac_cv_type_size_t" >&6
31993if test $ac_cv_type_size_t = yes; then
31994 :
31995else
31996
31997cat >>confdefs.h <<_ACEOF
31998#define size_t unsigned
31999_ACEOF
32000
32001fi
32002
32003echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32004echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32005if test "${ac_cv_type_uid_t+set}" = set; then
32006 echo $ECHO_N "(cached) $ECHO_C" >&6
32007else
32008 cat >conftest.$ac_ext <<_ACEOF
32009/* confdefs.h. */
32010_ACEOF
32011cat confdefs.h >>conftest.$ac_ext
32012cat >>conftest.$ac_ext <<_ACEOF
32013/* end confdefs.h. */
32014#include <sys/types.h>
32015
32016_ACEOF
32017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32018 $EGREP "uid_t" >/dev/null 2>&1; then
32019 ac_cv_type_uid_t=yes
32020else
32021 ac_cv_type_uid_t=no
32022fi
32023rm -f conftest*
32024
32025fi
32026echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32027echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32028if test $ac_cv_type_uid_t = no; then
32029
32030cat >>confdefs.h <<\_ACEOF
32031#define uid_t int
32032_ACEOF
32033
32034
32035cat >>confdefs.h <<\_ACEOF
32036#define gid_t int
32037_ACEOF
32038
32039fi
32040
32041
d51253e8
RL
32042echo "$as_me:$LINENO: checking for ssize_t" >&5
32043echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32044if test "${ac_cv_type_ssize_t+set}" = set; then
32045 echo $ECHO_N "(cached) $ECHO_C" >&6
32046else
32047 cat >conftest.$ac_ext <<_ACEOF
32048/* confdefs.h. */
32049_ACEOF
32050cat confdefs.h >>conftest.$ac_ext
32051cat >>conftest.$ac_ext <<_ACEOF
32052/* end confdefs.h. */
32053$ac_includes_default
32054int
32055main ()
32056{
32057if ((ssize_t *) 0)
32058 return 0;
32059if (sizeof (ssize_t))
32060 return 0;
32061 ;
32062 return 0;
32063}
32064_ACEOF
32065rm -f conftest.$ac_objext
32066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32067 (eval $ac_compile) 2>conftest.er1
32068 ac_status=$?
32069 grep -v '^ *+' conftest.er1 >conftest.err
32070 rm -f conftest.er1
32071 cat conftest.err >&5
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); } &&
6ebeb4c7 32074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
32075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32076 (eval $ac_try) 2>&5
32077 ac_status=$?
32078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); }; } &&
32080 { ac_try='test -s conftest.$ac_objext'
32081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32082 (eval $ac_try) 2>&5
32083 ac_status=$?
32084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085 (exit $ac_status); }; }; then
32086 ac_cv_type_ssize_t=yes
32087else
32088 echo "$as_me: failed program was:" >&5
32089sed 's/^/| /' conftest.$ac_ext >&5
32090
32091ac_cv_type_ssize_t=no
32092fi
32093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32094fi
32095echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32096echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32097if test $ac_cv_type_ssize_t = yes; then
32098
32099cat >>confdefs.h <<_ACEOF
32100#define HAVE_SSIZE_T 1
32101_ACEOF
32102
32103
32104fi
32105
32106
a848cd7e
SC
32107
32108
32109ac_ext=cc
32110ac_cpp='$CXXCPP $CPPFLAGS'
32111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32114
32115echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32116echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32117if test "${wx_cv_size_t_is_uint+set}" = set; then
32118 echo $ECHO_N "(cached) $ECHO_C" >&6
32119else
32120
32121 cat >conftest.$ac_ext <<_ACEOF
32122/* confdefs.h. */
32123_ACEOF
32124cat confdefs.h >>conftest.$ac_ext
32125cat >>conftest.$ac_ext <<_ACEOF
32126/* end confdefs.h. */
32127#include <stddef.h>
32128int
32129main ()
32130{
32131
32132 return 0; }
32133
32134 struct Foo { void foo(size_t); void foo(unsigned int); };
32135
32136 int bar() {
32137
32138 ;
32139 return 0;
32140}
32141_ACEOF
32142rm -f conftest.$ac_objext
32143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32144 (eval $ac_compile) 2>conftest.er1
a848cd7e 32145 ac_status=$?
ac1cb8d3
VS
32146 grep -v '^ *+' conftest.er1 >conftest.err
32147 rm -f conftest.er1
32148 cat conftest.err >&5
a848cd7e
SC
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); } &&
6ebeb4c7 32151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32153 (eval $ac_try) 2>&5
32154 ac_status=$?
32155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156 (exit $ac_status); }; } &&
32157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32159 (eval $ac_try) 2>&5
32160 ac_status=$?
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; }; then
32163 wx_cv_size_t_is_uint=no
32164else
32165 echo "$as_me: failed program was:" >&5
32166sed 's/^/| /' conftest.$ac_ext >&5
32167
32168wx_cv_size_t_is_uint=yes
32169
32170fi
ac1cb8d3 32171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32172
32173
32174fi
32175echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32176echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32177
32178if test "$wx_cv_size_t_is_uint" = "yes"; then
32179 cat >>confdefs.h <<\_ACEOF
32180#define wxSIZE_T_IS_UINT 1
32181_ACEOF
32182
32183else
32184 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32185echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32186if test "${wx_cv_size_t_is_ulong+set}" = set; then
32187 echo $ECHO_N "(cached) $ECHO_C" >&6
32188else
32189 cat >conftest.$ac_ext <<_ACEOF
32190/* confdefs.h. */
32191_ACEOF
32192cat confdefs.h >>conftest.$ac_ext
32193cat >>conftest.$ac_ext <<_ACEOF
32194/* end confdefs.h. */
32195#include <stddef.h>
32196int
32197main ()
32198{
32199
32200 return 0; }
32201
32202 struct Foo { void foo(size_t); void foo(unsigned long); };
32203
32204 int bar() {
32205
32206 ;
32207 return 0;
32208}
32209_ACEOF
32210rm -f conftest.$ac_objext
32211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32212 (eval $ac_compile) 2>conftest.er1
a848cd7e 32213 ac_status=$?
ac1cb8d3
VS
32214 grep -v '^ *+' conftest.er1 >conftest.err
32215 rm -f conftest.er1
32216 cat conftest.err >&5
a848cd7e
SC
32217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218 (exit $ac_status); } &&
6ebeb4c7 32219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32221 (eval $ac_try) 2>&5
32222 ac_status=$?
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); }; } &&
32225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32227 (eval $ac_try) 2>&5
32228 ac_status=$?
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); }; }; then
32231 wx_cv_size_t_is_ulong=no
32232else
32233 echo "$as_me: failed program was:" >&5
32234sed 's/^/| /' conftest.$ac_ext >&5
32235
32236wx_cv_size_t_is_ulong=yes
32237
32238fi
ac1cb8d3 32239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32240
32241fi
32242echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32243echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32244
32245 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32246 cat >>confdefs.h <<\_ACEOF
32247#define wxSIZE_T_IS_ULONG 1
32248_ACEOF
32249
32250 fi
32251fi
32252
32253ac_ext=c
32254ac_cpp='$CPP $CPPFLAGS'
32255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32257ac_compiler_gnu=$ac_cv_c_compiler_gnu
32258
32259
32260
32261echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32262echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32263if test "${wx_cv_struct_pw_gecos+set}" = set; then
32264 echo $ECHO_N "(cached) $ECHO_C" >&6
32265else
32266
32267 cat >conftest.$ac_ext <<_ACEOF
32268/* confdefs.h. */
32269_ACEOF
32270cat confdefs.h >>conftest.$ac_ext
32271cat >>conftest.$ac_ext <<_ACEOF
32272/* end confdefs.h. */
32273#include <pwd.h>
32274int
32275main ()
32276{
32277
32278 char *p;
32279 struct passwd *pw;
32280 p = pw->pw_gecos;
32281
32282 ;
32283 return 0;
32284}
32285_ACEOF
32286rm -f conftest.$ac_objext
32287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32288 (eval $ac_compile) 2>conftest.er1
a848cd7e 32289 ac_status=$?
ac1cb8d3
VS
32290 grep -v '^ *+' conftest.er1 >conftest.err
32291 rm -f conftest.er1
32292 cat conftest.err >&5
a848cd7e
SC
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); } &&
6ebeb4c7 32295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32297 (eval $ac_try) 2>&5
32298 ac_status=$?
32299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); }; } &&
32301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32303 (eval $ac_try) 2>&5
32304 ac_status=$?
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); }; }; then
32307
32308 wx_cv_struct_pw_gecos=yes
32309
32310else
32311 echo "$as_me: failed program was:" >&5
32312sed 's/^/| /' conftest.$ac_ext >&5
32313
32314
32315 wx_cv_struct_pw_gecos=no
32316
32317
32318fi
ac1cb8d3 32319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32320
32321
32322fi
32323echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32324echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32325
32326if test "$wx_cv_struct_pw_gecos" = "yes"; then
32327 cat >>confdefs.h <<\_ACEOF
32328#define HAVE_PW_GECOS 1
32329_ACEOF
32330
32331fi
32332
32333
47a7e797 32334if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32335 cat >>confdefs.h <<\_ACEOF
32336#define wxUSE_WCHAR_T 1
32337_ACEOF
32338
32339
32340 WCSLEN_FOUND=0
32341 WCHAR_LINK=
32342
32343for ac_func in wcslen
32344do
32345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32346echo "$as_me:$LINENO: checking for $ac_func" >&5
32347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32348if eval "test \"\${$as_ac_var+set}\" = set"; then
32349 echo $ECHO_N "(cached) $ECHO_C" >&6
32350else
32351 cat >conftest.$ac_ext <<_ACEOF
32352/* confdefs.h. */
32353_ACEOF
32354cat confdefs.h >>conftest.$ac_ext
32355cat >>conftest.$ac_ext <<_ACEOF
32356/* end confdefs.h. */
ac1cb8d3
VS
32357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32359#define $ac_func innocuous_$ac_func
32360
a848cd7e
SC
32361/* System header to define __stub macros and hopefully few prototypes,
32362 which can conflict with char $ac_func (); below.
32363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32364 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32365
a848cd7e
SC
32366#ifdef __STDC__
32367# include <limits.h>
32368#else
32369# include <assert.h>
32370#endif
ac1cb8d3
VS
32371
32372#undef $ac_func
32373
a848cd7e
SC
32374/* Override any gcc2 internal prototype to avoid an error. */
32375#ifdef __cplusplus
32376extern "C"
32377{
32378#endif
32379/* We use char because int might match the return type of a gcc2
32380 builtin and then its argument prototype would still apply. */
32381char $ac_func ();
32382/* The GNU C library defines this for functions which it implements
32383 to always fail with ENOSYS. Some functions are actually named
32384 something starting with __ and the normal name is an alias. */
32385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32386choke me
32387#else
32388char (*f) () = $ac_func;
32389#endif
32390#ifdef __cplusplus
32391}
32392#endif
32393
32394int
32395main ()
32396{
32397return f != $ac_func;
32398 ;
32399 return 0;
32400}
32401_ACEOF
32402rm -f conftest.$ac_objext conftest$ac_exeext
32403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32404 (eval $ac_link) 2>conftest.er1
a848cd7e 32405 ac_status=$?
ac1cb8d3
VS
32406 grep -v '^ *+' conftest.er1 >conftest.err
32407 rm -f conftest.er1
32408 cat conftest.err >&5
a848cd7e
SC
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); } &&
6ebeb4c7 32411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32413 (eval $ac_try) 2>&5
32414 ac_status=$?
32415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416 (exit $ac_status); }; } &&
32417 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419 (eval $ac_try) 2>&5
32420 ac_status=$?
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; }; then
32423 eval "$as_ac_var=yes"
32424else
32425 echo "$as_me: failed program was:" >&5
32426sed 's/^/| /' conftest.$ac_ext >&5
32427
32428eval "$as_ac_var=no"
32429fi
ac1cb8d3
VS
32430rm -f conftest.err conftest.$ac_objext \
32431 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32432fi
32433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32435if test `eval echo '${'$as_ac_var'}'` = yes; then
32436 cat >>confdefs.h <<_ACEOF
32437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32438_ACEOF
32439 WCSLEN_FOUND=1
32440fi
32441done
32442
32443
32444 if test "$WCSLEN_FOUND" = 0; then
32445 if test "$TOOLKIT" = "MSW"; then
32446 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32447echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32448if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32449 echo $ECHO_N "(cached) $ECHO_C" >&6
32450else
32451 ac_check_lib_save_LIBS=$LIBS
32452LIBS="-lmsvcrt $LIBS"
32453cat >conftest.$ac_ext <<_ACEOF
32454/* confdefs.h. */
32455_ACEOF
32456cat confdefs.h >>conftest.$ac_ext
32457cat >>conftest.$ac_ext <<_ACEOF
32458/* end confdefs.h. */
32459
32460/* Override any gcc2 internal prototype to avoid an error. */
32461#ifdef __cplusplus
32462extern "C"
32463#endif
32464/* We use char because int might match the return type of a gcc2
32465 builtin and then its argument prototype would still apply. */
32466char wcslen ();
32467int
32468main ()
32469{
32470wcslen ();
32471 ;
32472 return 0;
32473}
32474_ACEOF
32475rm -f conftest.$ac_objext conftest$ac_exeext
32476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32477 (eval $ac_link) 2>conftest.er1
a848cd7e 32478 ac_status=$?
ac1cb8d3
VS
32479 grep -v '^ *+' conftest.er1 >conftest.err
32480 rm -f conftest.er1
32481 cat conftest.err >&5
a848cd7e
SC
32482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483 (exit $ac_status); } &&
6ebeb4c7 32484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32486 (eval $ac_try) 2>&5
32487 ac_status=$?
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; } &&
32490 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32492 (eval $ac_try) 2>&5
32493 ac_status=$?
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); }; }; then
32496 ac_cv_lib_msvcrt_wcslen=yes
32497else
32498 echo "$as_me: failed program was:" >&5
32499sed 's/^/| /' conftest.$ac_ext >&5
32500
32501ac_cv_lib_msvcrt_wcslen=no
32502fi
ac1cb8d3
VS
32503rm -f conftest.err conftest.$ac_objext \
32504 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32505LIBS=$ac_check_lib_save_LIBS
32506fi
32507echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32508echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32509if test $ac_cv_lib_msvcrt_wcslen = yes; then
32510 WCHAR_OK=1
32511fi
32512
32513 else
32514 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32515echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32516if test "${ac_cv_lib_w_wcslen+set}" = set; then
32517 echo $ECHO_N "(cached) $ECHO_C" >&6
32518else
32519 ac_check_lib_save_LIBS=$LIBS
32520LIBS="-lw $LIBS"
32521cat >conftest.$ac_ext <<_ACEOF
32522/* confdefs.h. */
32523_ACEOF
32524cat confdefs.h >>conftest.$ac_ext
32525cat >>conftest.$ac_ext <<_ACEOF
32526/* end confdefs.h. */
32527
32528/* Override any gcc2 internal prototype to avoid an error. */
32529#ifdef __cplusplus
32530extern "C"
32531#endif
32532/* We use char because int might match the return type of a gcc2
32533 builtin and then its argument prototype would still apply. */
32534char wcslen ();
32535int
32536main ()
32537{
32538wcslen ();
32539 ;
32540 return 0;
32541}
32542_ACEOF
32543rm -f conftest.$ac_objext conftest$ac_exeext
32544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32545 (eval $ac_link) 2>conftest.er1
a848cd7e 32546 ac_status=$?
ac1cb8d3
VS
32547 grep -v '^ *+' conftest.er1 >conftest.err
32548 rm -f conftest.er1
32549 cat conftest.err >&5
a848cd7e
SC
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); } &&
6ebeb4c7 32552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32554 (eval $ac_try) 2>&5
32555 ac_status=$?
32556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557 (exit $ac_status); }; } &&
32558 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32560 (eval $ac_try) 2>&5
32561 ac_status=$?
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); }; }; then
32564 ac_cv_lib_w_wcslen=yes
32565else
32566 echo "$as_me: failed program was:" >&5
32567sed 's/^/| /' conftest.$ac_ext >&5
32568
32569ac_cv_lib_w_wcslen=no
32570fi
ac1cb8d3
VS
32571rm -f conftest.err conftest.$ac_objext \
32572 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32573LIBS=$ac_check_lib_save_LIBS
32574fi
32575echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32576echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32577if test $ac_cv_lib_w_wcslen = yes; then
32578
32579 WCHAR_LINK=" -lw"
32580 WCSLEN_FOUND=1
32581
32582fi
32583
32584 fi
32585 fi
32586
32587 if test "$WCSLEN_FOUND" = 1; then
32588 cat >>confdefs.h <<\_ACEOF
32589#define HAVE_WCSLEN 1
32590_ACEOF
32591
32592 fi
32593
efdf6afe 32594 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
32595 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32596 fi
32597
efdf6afe
VZ
32598 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32599echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32600if test "${ac_cv_type_mbstate_t+set}" = set; then
32601 echo $ECHO_N "(cached) $ECHO_C" >&6
32602else
32603 cat >conftest.$ac_ext <<_ACEOF
32604/* confdefs.h. */
32605_ACEOF
32606cat confdefs.h >>conftest.$ac_ext
32607cat >>conftest.$ac_ext <<_ACEOF
32608/* end confdefs.h. */
32609#include <wchar.h>
32610
32611int
32612main ()
32613{
32614if ((mbstate_t *) 0)
32615 return 0;
32616if (sizeof (mbstate_t))
32617 return 0;
32618 ;
32619 return 0;
32620}
32621_ACEOF
32622rm -f conftest.$ac_objext
32623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32624 (eval $ac_compile) 2>conftest.er1
32625 ac_status=$?
32626 grep -v '^ *+' conftest.er1 >conftest.err
32627 rm -f conftest.er1
32628 cat conftest.err >&5
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); } &&
32631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32633 (eval $ac_try) 2>&5
32634 ac_status=$?
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); }; } &&
32637 { ac_try='test -s conftest.$ac_objext'
32638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32639 (eval $ac_try) 2>&5
32640 ac_status=$?
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); }; }; then
32643 ac_cv_type_mbstate_t=yes
32644else
32645 echo "$as_me: failed program was:" >&5
32646sed 's/^/| /' conftest.$ac_ext >&5
32647
32648ac_cv_type_mbstate_t=no
32649fi
32650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32651fi
32652echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32653echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32654if test $ac_cv_type_mbstate_t = yes; then
32655
32656cat >>confdefs.h <<_ACEOF
32657#define HAVE_MBSTATE_T 1
32658_ACEOF
32659
a848cd7e
SC
32660
32661for ac_func in wcsrtombs
32662do
32663as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32664echo "$as_me:$LINENO: checking for $ac_func" >&5
32665echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32666if eval "test \"\${$as_ac_var+set}\" = set"; then
32667 echo $ECHO_N "(cached) $ECHO_C" >&6
32668else
32669 cat >conftest.$ac_ext <<_ACEOF
32670/* confdefs.h. */
32671_ACEOF
32672cat confdefs.h >>conftest.$ac_ext
32673cat >>conftest.$ac_ext <<_ACEOF
32674/* end confdefs.h. */
ac1cb8d3
VS
32675/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32677#define $ac_func innocuous_$ac_func
32678
a848cd7e
SC
32679/* System header to define __stub macros and hopefully few prototypes,
32680 which can conflict with char $ac_func (); below.
32681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32682 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32683
a848cd7e
SC
32684#ifdef __STDC__
32685# include <limits.h>
32686#else
32687# include <assert.h>
32688#endif
ac1cb8d3
VS
32689
32690#undef $ac_func
32691
a848cd7e
SC
32692/* Override any gcc2 internal prototype to avoid an error. */
32693#ifdef __cplusplus
32694extern "C"
32695{
32696#endif
32697/* We use char because int might match the return type of a gcc2
32698 builtin and then its argument prototype would still apply. */
32699char $ac_func ();
32700/* The GNU C library defines this for functions which it implements
32701 to always fail with ENOSYS. Some functions are actually named
32702 something starting with __ and the normal name is an alias. */
32703#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32704choke me
32705#else
32706char (*f) () = $ac_func;
32707#endif
32708#ifdef __cplusplus
32709}
32710#endif
32711
32712int
32713main ()
32714{
32715return f != $ac_func;
32716 ;
32717 return 0;
32718}
32719_ACEOF
32720rm -f conftest.$ac_objext conftest$ac_exeext
32721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32722 (eval $ac_link) 2>conftest.er1
a848cd7e 32723 ac_status=$?
ac1cb8d3
VS
32724 grep -v '^ *+' conftest.er1 >conftest.err
32725 rm -f conftest.er1
32726 cat conftest.err >&5
a848cd7e
SC
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); } &&
6ebeb4c7 32729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32731 (eval $ac_try) 2>&5
32732 ac_status=$?
32733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 (exit $ac_status); }; } &&
32735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32737 (eval $ac_try) 2>&5
32738 ac_status=$?
32739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 (exit $ac_status); }; }; then
32741 eval "$as_ac_var=yes"
32742else
32743 echo "$as_me: failed program was:" >&5
32744sed 's/^/| /' conftest.$ac_ext >&5
32745
32746eval "$as_ac_var=no"
32747fi
ac1cb8d3
VS
32748rm -f conftest.err conftest.$ac_objext \
32749 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32750fi
32751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32752echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32753if test `eval echo '${'$as_ac_var'}'` = yes; then
32754 cat >>confdefs.h <<_ACEOF
32755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32756_ACEOF
32757
32758fi
32759done
32760
efdf6afe
VZ
32761fi
32762
a848cd7e
SC
32763else
32764 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32765echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32766fi
32767
32768
32769
32770ac_ext=cc
32771ac_cpp='$CXXCPP $CPPFLAGS'
32772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32775
32776
32777
4a767dd5
VZ
32778
32779for ac_func in snprintf vsnprintf
a848cd7e
SC
32780do
32781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32782echo "$as_me:$LINENO: checking for $ac_func" >&5
32783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32784if eval "test \"\${$as_ac_var+set}\" = set"; then
32785 echo $ECHO_N "(cached) $ECHO_C" >&6
32786else
32787 cat >conftest.$ac_ext <<_ACEOF
32788/* confdefs.h. */
32789_ACEOF
32790cat confdefs.h >>conftest.$ac_ext
32791cat >>conftest.$ac_ext <<_ACEOF
32792/* end confdefs.h. */
ac1cb8d3
VS
32793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32795#define $ac_func innocuous_$ac_func
32796
a848cd7e
SC
32797/* System header to define __stub macros and hopefully few prototypes,
32798 which can conflict with char $ac_func (); below.
32799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32800 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32801
a848cd7e
SC
32802#ifdef __STDC__
32803# include <limits.h>
32804#else
32805# include <assert.h>
32806#endif
ac1cb8d3
VS
32807
32808#undef $ac_func
32809
a848cd7e
SC
32810/* Override any gcc2 internal prototype to avoid an error. */
32811#ifdef __cplusplus
32812extern "C"
32813{
32814#endif
32815/* We use char because int might match the return type of a gcc2
32816 builtin and then its argument prototype would still apply. */
32817char $ac_func ();
32818/* The GNU C library defines this for functions which it implements
32819 to always fail with ENOSYS. Some functions are actually named
32820 something starting with __ and the normal name is an alias. */
32821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32822choke me
32823#else
32824char (*f) () = $ac_func;
32825#endif
32826#ifdef __cplusplus
32827}
32828#endif
32829
32830int
32831main ()
32832{
32833return f != $ac_func;
32834 ;
32835 return 0;
32836}
32837_ACEOF
32838rm -f conftest.$ac_objext conftest$ac_exeext
32839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32840 (eval $ac_link) 2>conftest.er1
a848cd7e 32841 ac_status=$?
ac1cb8d3
VS
32842 grep -v '^ *+' conftest.er1 >conftest.err
32843 rm -f conftest.er1
32844 cat conftest.err >&5
a848cd7e
SC
32845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846 (exit $ac_status); } &&
6ebeb4c7 32847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32849 (eval $ac_try) 2>&5
32850 ac_status=$?
32851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852 (exit $ac_status); }; } &&
32853 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32855 (eval $ac_try) 2>&5
32856 ac_status=$?
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); }; }; then
32859 eval "$as_ac_var=yes"
32860else
32861 echo "$as_me: failed program was:" >&5
32862sed 's/^/| /' conftest.$ac_ext >&5
32863
32864eval "$as_ac_var=no"
32865fi
ac1cb8d3
VS
32866rm -f conftest.err conftest.$ac_objext \
32867 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32868fi
32869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32870echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32871if test `eval echo '${'$as_ac_var'}'` = yes; then
32872 cat >>confdefs.h <<_ACEOF
32873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32874_ACEOF
32875
32876fi
32877done
32878
32879
32880if test "$ac_cv_func_vsnprintf" = "yes"; then
32881 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32882echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32883if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32884 echo $ECHO_N "(cached) $ECHO_C" >&6
32885else
32886
efdf6afe 32887 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32888/* confdefs.h. */
32889_ACEOF
32890cat confdefs.h >>conftest.$ac_ext
32891cat >>conftest.$ac_ext <<_ACEOF
32892/* end confdefs.h. */
32893
32894 #include <stdio.h>
32895 #include <stdarg.h>
efdf6afe
VZ
32896 #ifdef __MSL__
32897 #if __MSL__ >= 0x6000
32898 namespace std {}
32899 using namespace std;
32900 #endif
32901 #endif
a848cd7e
SC
32902
32903int
32904main ()
32905{
32906
32907 char *buf;
32908 va_list ap;
62fa8b3a 32909 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
32910
32911 ;
32912 return 0;
32913}
32914_ACEOF
32915rm -f conftest.$ac_objext
32916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32917 (eval $ac_compile) 2>conftest.er1
32918 ac_status=$?
32919 grep -v '^ *+' conftest.er1 >conftest.err
32920 rm -f conftest.er1
32921 cat conftest.err >&5
32922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32923 (exit $ac_status); } &&
6ebeb4c7 32924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
32925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32926 (eval $ac_try) 2>&5
32927 ac_status=$?
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); }; } &&
32930 { ac_try='test -s conftest.$ac_objext'
32931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32932 (eval $ac_try) 2>&5
32933 ac_status=$?
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); }; }; then
32936 wx_cv_func_vsnprintf_decl=yes
32937else
32938 echo "$as_me: failed program was:" >&5
32939sed 's/^/| /' conftest.$ac_ext >&5
32940
a848cd7e
SC
32941wx_cv_func_vsnprintf_decl=no
32942
32943fi
ac1cb8d3 32944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32945
32946
32947fi
32948echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
32949echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
32950
32951 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
32952 cat >>confdefs.h <<\_ACEOF
32953#define HAVE_VSNPRINTF_DECL 1
32954_ACEOF
32955
62fa8b3a
MW
32956
32957 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
32958echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
32959if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
32960 echo $ECHO_N "(cached) $ECHO_C" >&6
32961else
32962
32963 cat >conftest.$ac_ext <<_ACEOF
32964/* confdefs.h. */
32965_ACEOF
32966cat confdefs.h >>conftest.$ac_ext
32967cat >>conftest.$ac_ext <<_ACEOF
32968/* end confdefs.h. */
32969
32970 #include <stdio.h>
32971 #include <stdarg.h>
32972 #ifdef __MSL__
32973 #if __MSL__ >= 0x6000
32974 namespace std {}
32975 using namespace std;
32976 #endif
32977 #endif
32978
32979int
32980main ()
32981{
32982
32983 char *buf;
32984 va_list ap;
32985 const char *fmt = "%s";
32986 vsnprintf(buf, 10u, fmt, ap);
32987
32988 ;
32989 return 0;
32990}
32991_ACEOF
32992rm -f conftest.$ac_objext
32993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32994 (eval $ac_compile) 2>conftest.er1
32995 ac_status=$?
32996 grep -v '^ *+' conftest.er1 >conftest.err
32997 rm -f conftest.er1
32998 cat conftest.err >&5
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); } &&
33001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33003 (eval $ac_try) 2>&5
33004 ac_status=$?
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); }; } &&
33007 { ac_try='test -s conftest.$ac_objext'
33008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33009 (eval $ac_try) 2>&5
33010 ac_status=$?
33011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012 (exit $ac_status); }; }; then
33013 wx_cv_func_broken_vsnprintf_decl=no
33014else
33015 echo "$as_me: failed program was:" >&5
33016sed 's/^/| /' conftest.$ac_ext >&5
33017
33018wx_cv_func_broken_vsnprintf_decl=yes
33019
33020fi
33021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33022
33023
33024fi
33025echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33026echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33027
33028 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33029 cat >>confdefs.h <<\_ACEOF
33030#define HAVE_BROKEN_VSNPRINTF_DECL 1
33031_ACEOF
33032
33033 fi
a848cd7e
SC
33034 fi
33035fi
33036
4a767dd5
VZ
33037if test "$ac_cv_func_snprintf" = "yes"; then
33038 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33039echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33040if test "${wx_cv_func_snprintf_decl+set}" = set; then
33041 echo $ECHO_N "(cached) $ECHO_C" >&6
33042else
33043
33044 cat >conftest.$ac_ext <<_ACEOF
33045/* confdefs.h. */
33046_ACEOF
33047cat confdefs.h >>conftest.$ac_ext
33048cat >>conftest.$ac_ext <<_ACEOF
33049/* end confdefs.h. */
33050
33051 #include <stdio.h>
33052 #include <stdarg.h>
33053 #ifdef __MSL__
33054 #if __MSL__ >= 0x6000
33055 namespace std {}
33056 using namespace std;
33057 #endif
33058 #endif
33059
33060int
33061main ()
33062{
33063
33064 char *buf;
62fa8b3a 33065 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33066
33067 ;
33068 return 0;
33069}
33070_ACEOF
33071rm -f conftest.$ac_objext
33072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33073 (eval $ac_compile) 2>conftest.er1
33074 ac_status=$?
33075 grep -v '^ *+' conftest.er1 >conftest.err
33076 rm -f conftest.er1
33077 cat conftest.err >&5
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); } &&
33080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33082 (eval $ac_try) 2>&5
33083 ac_status=$?
33084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 (exit $ac_status); }; } &&
33086 { ac_try='test -s conftest.$ac_objext'
33087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33088 (eval $ac_try) 2>&5
33089 ac_status=$?
33090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091 (exit $ac_status); }; }; then
33092 wx_cv_func_snprintf_decl=yes
33093else
33094 echo "$as_me: failed program was:" >&5
33095sed 's/^/| /' conftest.$ac_ext >&5
33096
33097wx_cv_func_snprintf_decl=no
33098
33099fi
33100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33101
33102
33103fi
33104echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33105echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33106
33107 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33108 cat >>confdefs.h <<\_ACEOF
33109#define HAVE_SNPRINTF_DECL 1
33110_ACEOF
33111
62fa8b3a
MW
33112
33113 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33114echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33115if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33116 echo $ECHO_N "(cached) $ECHO_C" >&6
33117else
33118
33119 cat >conftest.$ac_ext <<_ACEOF
33120/* confdefs.h. */
33121_ACEOF
33122cat confdefs.h >>conftest.$ac_ext
33123cat >>conftest.$ac_ext <<_ACEOF
33124/* end confdefs.h. */
33125
33126 #include <stdio.h>
33127 #include <stdarg.h>
33128 #ifdef __MSL__
33129 #if __MSL__ >= 0x6000
33130 namespace std {}
33131 using namespace std;
33132 #endif
33133 #endif
33134
33135int
33136main ()
33137{
33138
33139 char *buf;
33140 const char *fmt = "%s";
33141 snprintf(buf, 10u, fmt, "wx");
33142
33143 ;
33144 return 0;
33145}
33146_ACEOF
33147rm -f conftest.$ac_objext
33148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33149 (eval $ac_compile) 2>conftest.er1
33150 ac_status=$?
33151 grep -v '^ *+' conftest.er1 >conftest.err
33152 rm -f conftest.er1
33153 cat conftest.err >&5
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); } &&
33156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33158 (eval $ac_try) 2>&5
33159 ac_status=$?
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); }; } &&
33162 { ac_try='test -s conftest.$ac_objext'
33163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33164 (eval $ac_try) 2>&5
33165 ac_status=$?
33166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 (exit $ac_status); }; }; then
33168 wx_cv_func_broken_snprintf_decl=no
33169else
33170 echo "$as_me: failed program was:" >&5
33171sed 's/^/| /' conftest.$ac_ext >&5
33172
33173wx_cv_func_broken_snprintf_decl=yes
33174
33175fi
33176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33177
33178
33179fi
33180echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33181echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33182
33183 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33184 cat >>confdefs.h <<\_ACEOF
33185#define HAVE_BROKEN_SNPRINTF_DECL 1
33186_ACEOF
33187
33188 fi
4a767dd5
VZ
33189 fi
33190fi
33191
a848cd7e
SC
33192if test "$wxUSE_UNICODE" = yes; then
33193
33194
33195
fbe47c7b
VS
33196
33197
33198
33199for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33200do
33201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33202echo "$as_me:$LINENO: checking for $ac_func" >&5
33203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33204if eval "test \"\${$as_ac_var+set}\" = set"; then
33205 echo $ECHO_N "(cached) $ECHO_C" >&6
33206else
33207 cat >conftest.$ac_ext <<_ACEOF
33208/* confdefs.h. */
33209_ACEOF
33210cat confdefs.h >>conftest.$ac_ext
33211cat >>conftest.$ac_ext <<_ACEOF
33212/* end confdefs.h. */
ac1cb8d3
VS
33213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33215#define $ac_func innocuous_$ac_func
33216
a848cd7e
SC
33217/* System header to define __stub macros and hopefully few prototypes,
33218 which can conflict with char $ac_func (); below.
33219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33220 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33221
a848cd7e
SC
33222#ifdef __STDC__
33223# include <limits.h>
33224#else
33225# include <assert.h>
33226#endif
ac1cb8d3
VS
33227
33228#undef $ac_func
33229
a848cd7e
SC
33230/* Override any gcc2 internal prototype to avoid an error. */
33231#ifdef __cplusplus
33232extern "C"
33233{
33234#endif
33235/* We use char because int might match the return type of a gcc2
33236 builtin and then its argument prototype would still apply. */
33237char $ac_func ();
33238/* The GNU C library defines this for functions which it implements
33239 to always fail with ENOSYS. Some functions are actually named
33240 something starting with __ and the normal name is an alias. */
33241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33242choke me
33243#else
33244char (*f) () = $ac_func;
33245#endif
33246#ifdef __cplusplus
33247}
33248#endif
33249
33250int
33251main ()
33252{
33253return f != $ac_func;
33254 ;
33255 return 0;
33256}
33257_ACEOF
33258rm -f conftest.$ac_objext conftest$ac_exeext
33259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33260 (eval $ac_link) 2>conftest.er1
a848cd7e 33261 ac_status=$?
ac1cb8d3
VS
33262 grep -v '^ *+' conftest.er1 >conftest.err
33263 rm -f conftest.er1
33264 cat conftest.err >&5
a848cd7e
SC
33265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); } &&
6ebeb4c7 33267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33269 (eval $ac_try) 2>&5
33270 ac_status=$?
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); }; } &&
33273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33275 (eval $ac_try) 2>&5
33276 ac_status=$?
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); }; }; then
33279 eval "$as_ac_var=yes"
33280else
33281 echo "$as_me: failed program was:" >&5
33282sed 's/^/| /' conftest.$ac_ext >&5
33283
33284eval "$as_ac_var=no"
33285fi
ac1cb8d3
VS
33286rm -f conftest.err conftest.$ac_objext \
33287 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33288fi
33289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33290echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33291if test `eval echo '${'$as_ac_var'}'` = yes; then
33292 cat >>confdefs.h <<_ACEOF
33293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33294_ACEOF
33295
33296fi
33297done
33298
33299
33300 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33301echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33302 cat >conftest.$ac_ext <<_ACEOF
33303/* confdefs.h. */
33304_ACEOF
33305cat confdefs.h >>conftest.$ac_ext
33306cat >>conftest.$ac_ext <<_ACEOF
33307/* end confdefs.h. */
33308#include <wchar.h>
33309int
33310main ()
33311{
33312&_vsnwprintf;
33313 ;
33314 return 0;
33315}
33316_ACEOF
33317rm -f conftest.$ac_objext
33318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33319 (eval $ac_compile) 2>conftest.er1
a848cd7e 33320 ac_status=$?
ac1cb8d3
VS
33321 grep -v '^ *+' conftest.er1 >conftest.err
33322 rm -f conftest.er1
33323 cat conftest.err >&5
a848cd7e
SC
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); } &&
6ebeb4c7 33326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33328 (eval $ac_try) 2>&5
33329 ac_status=$?
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); }; } &&
33332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33334 (eval $ac_try) 2>&5
33335 ac_status=$?
33336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337 (exit $ac_status); }; }; then
33338 echo "$as_me:$LINENO: result: yes" >&5
33339echo "${ECHO_T}yes" >&6
33340 cat >>confdefs.h <<\_ACEOF
33341#define HAVE__VSNWPRINTF 1
33342_ACEOF
33343
33344else
33345 echo "$as_me: failed program was:" >&5
33346sed 's/^/| /' conftest.$ac_ext >&5
33347
33348echo "$as_me:$LINENO: result: no" >&5
33349echo "${ECHO_T}no" >&6
33350fi
ac1cb8d3 33351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33352fi
33353
33354ac_ext=c
33355ac_cpp='$CPP $CPPFLAGS'
33356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33358ac_compiler_gnu=$ac_cv_c_compiler_gnu
33359
33360
6ebeb4c7
VZ
33361if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33362
33363for ac_func in fnmatch
33364do
33365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33366echo "$as_me:$LINENO: checking for $ac_func" >&5
33367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33368if eval "test \"\${$as_ac_var+set}\" = set"; then
33369 echo $ECHO_N "(cached) $ECHO_C" >&6
33370else
33371 cat >conftest.$ac_ext <<_ACEOF
33372/* confdefs.h. */
33373_ACEOF
33374cat confdefs.h >>conftest.$ac_ext
33375cat >>conftest.$ac_ext <<_ACEOF
33376/* end confdefs.h. */
33377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33379#define $ac_func innocuous_$ac_func
33380
33381/* System header to define __stub macros and hopefully few prototypes,
33382 which can conflict with char $ac_func (); below.
33383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33384 <limits.h> exists even on freestanding compilers. */
33385
33386#ifdef __STDC__
33387# include <limits.h>
33388#else
33389# include <assert.h>
33390#endif
33391
33392#undef $ac_func
33393
33394/* Override any gcc2 internal prototype to avoid an error. */
33395#ifdef __cplusplus
33396extern "C"
33397{
33398#endif
33399/* We use char because int might match the return type of a gcc2
33400 builtin and then its argument prototype would still apply. */
33401char $ac_func ();
33402/* The GNU C library defines this for functions which it implements
33403 to always fail with ENOSYS. Some functions are actually named
33404 something starting with __ and the normal name is an alias. */
33405#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33406choke me
33407#else
33408char (*f) () = $ac_func;
33409#endif
33410#ifdef __cplusplus
33411}
33412#endif
33413
33414int
33415main ()
33416{
33417return f != $ac_func;
33418 ;
33419 return 0;
33420}
33421_ACEOF
33422rm -f conftest.$ac_objext conftest$ac_exeext
33423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33424 (eval $ac_link) 2>conftest.er1
33425 ac_status=$?
33426 grep -v '^ *+' conftest.er1 >conftest.err
33427 rm -f conftest.er1
33428 cat conftest.err >&5
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); } &&
33431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33433 (eval $ac_try) 2>&5
33434 ac_status=$?
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); }; } &&
33437 { ac_try='test -s conftest$ac_exeext'
33438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33439 (eval $ac_try) 2>&5
33440 ac_status=$?
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); }; }; then
33443 eval "$as_ac_var=yes"
33444else
33445 echo "$as_me: failed program was:" >&5
33446sed 's/^/| /' conftest.$ac_ext >&5
33447
33448eval "$as_ac_var=no"
33449fi
33450rm -f conftest.err conftest.$ac_objext \
33451 conftest$ac_exeext conftest.$ac_ext
33452fi
33453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33454echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33455if test `eval echo '${'$as_ac_var'}'` = yes; then
33456 cat >>confdefs.h <<_ACEOF
33457#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33458_ACEOF
33459
33460fi
33461done
33462
33463fi
33464
33465if test "$wxUSE_FILE" = "yes"; then
33466
33467for ac_func in fsync
33468do
33469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33470echo "$as_me:$LINENO: checking for $ac_func" >&5
33471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33472if eval "test \"\${$as_ac_var+set}\" = set"; then
33473 echo $ECHO_N "(cached) $ECHO_C" >&6
33474else
33475 cat >conftest.$ac_ext <<_ACEOF
33476/* confdefs.h. */
33477_ACEOF
33478cat confdefs.h >>conftest.$ac_ext
33479cat >>conftest.$ac_ext <<_ACEOF
33480/* end confdefs.h. */
33481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33483#define $ac_func innocuous_$ac_func
33484
33485/* System header to define __stub macros and hopefully few prototypes,
33486 which can conflict with char $ac_func (); below.
33487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33488 <limits.h> exists even on freestanding compilers. */
33489
33490#ifdef __STDC__
33491# include <limits.h>
33492#else
33493# include <assert.h>
33494#endif
33495
33496#undef $ac_func
33497
33498/* Override any gcc2 internal prototype to avoid an error. */
33499#ifdef __cplusplus
33500extern "C"
33501{
33502#endif
33503/* We use char because int might match the return type of a gcc2
33504 builtin and then its argument prototype would still apply. */
33505char $ac_func ();
33506/* The GNU C library defines this for functions which it implements
33507 to always fail with ENOSYS. Some functions are actually named
33508 something starting with __ and the normal name is an alias. */
33509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33510choke me
33511#else
33512char (*f) () = $ac_func;
33513#endif
33514#ifdef __cplusplus
33515}
33516#endif
33517
33518int
33519main ()
33520{
33521return f != $ac_func;
33522 ;
33523 return 0;
33524}
33525_ACEOF
33526rm -f conftest.$ac_objext conftest$ac_exeext
33527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33528 (eval $ac_link) 2>conftest.er1
33529 ac_status=$?
33530 grep -v '^ *+' conftest.er1 >conftest.err
33531 rm -f conftest.er1
33532 cat conftest.err >&5
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); } &&
33535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33537 (eval $ac_try) 2>&5
33538 ac_status=$?
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); }; } &&
33541 { ac_try='test -s conftest$ac_exeext'
33542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543 (eval $ac_try) 2>&5
33544 ac_status=$?
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); }; }; then
33547 eval "$as_ac_var=yes"
33548else
33549 echo "$as_me: failed program was:" >&5
33550sed 's/^/| /' conftest.$ac_ext >&5
33551
33552eval "$as_ac_var=no"
33553fi
33554rm -f conftest.err conftest.$ac_objext \
33555 conftest$ac_exeext conftest.$ac_ext
33556fi
33557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33559if test `eval echo '${'$as_ac_var'}'` = yes; then
33560 cat >>confdefs.h <<_ACEOF
33561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33562_ACEOF
33563
33564fi
33565done
33566
33567fi
a848cd7e
SC
33568
33569
33570if test "$TOOLKIT" != "MSW"; then
33571
33572
33573
33574
33575ac_ext=cc
33576ac_cpp='$CXXCPP $CPPFLAGS'
33577ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33578ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33579ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33580
33581
33582
33583
33584# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33585if test "${with_libiconv_prefix+set}" = set; then
33586 withval="$with_libiconv_prefix"
33587
33588 for dir in `echo "$withval" | tr : ' '`; do
33589 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33590 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33591 done
33592
33593fi;
33594
33595 echo "$as_me:$LINENO: checking for iconv" >&5
33596echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33597if test "${am_cv_func_iconv+set}" = set; then
33598 echo $ECHO_N "(cached) $ECHO_C" >&6
33599else
33600
33601 am_cv_func_iconv="no, consider installing GNU libiconv"
33602 am_cv_lib_iconv=no
33603 cat >conftest.$ac_ext <<_ACEOF
33604/* confdefs.h. */
33605_ACEOF
33606cat confdefs.h >>conftest.$ac_ext
33607cat >>conftest.$ac_ext <<_ACEOF
33608/* end confdefs.h. */
33609#include <stdlib.h>
33610#include <iconv.h>
33611int
33612main ()
33613{
33614iconv_t cd = iconv_open("","");
33615 iconv(cd,NULL,NULL,NULL,NULL);
33616 iconv_close(cd);
33617 ;
33618 return 0;
33619}
33620_ACEOF
33621rm -f conftest.$ac_objext conftest$ac_exeext
33622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33623 (eval $ac_link) 2>conftest.er1
a848cd7e 33624 ac_status=$?
ac1cb8d3
VS
33625 grep -v '^ *+' conftest.er1 >conftest.err
33626 rm -f conftest.er1
33627 cat conftest.err >&5
a848cd7e
SC
33628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629 (exit $ac_status); } &&
6ebeb4c7 33630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33632 (eval $ac_try) 2>&5
33633 ac_status=$?
33634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635 (exit $ac_status); }; } &&
33636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33638 (eval $ac_try) 2>&5
33639 ac_status=$?
33640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641 (exit $ac_status); }; }; then
33642 am_cv_func_iconv=yes
33643else
33644 echo "$as_me: failed program was:" >&5
33645sed 's/^/| /' conftest.$ac_ext >&5
33646
33647fi
ac1cb8d3
VS
33648rm -f conftest.err conftest.$ac_objext \
33649 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33650 if test "$am_cv_func_iconv" != yes; then
33651 am_save_LIBS="$LIBS"
33652 LIBS="$LIBS -liconv"
33653 cat >conftest.$ac_ext <<_ACEOF
33654/* confdefs.h. */
33655_ACEOF
33656cat confdefs.h >>conftest.$ac_ext
33657cat >>conftest.$ac_ext <<_ACEOF
33658/* end confdefs.h. */
33659#include <stdlib.h>
33660#include <iconv.h>
33661int
33662main ()
33663{
33664iconv_t cd = iconv_open("","");
33665 iconv(cd,NULL,NULL,NULL,NULL);
33666 iconv_close(cd);
33667 ;
33668 return 0;
33669}
33670_ACEOF
33671rm -f conftest.$ac_objext conftest$ac_exeext
33672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33673 (eval $ac_link) 2>conftest.er1
a848cd7e 33674 ac_status=$?
ac1cb8d3
VS
33675 grep -v '^ *+' conftest.er1 >conftest.err
33676 rm -f conftest.er1
33677 cat conftest.err >&5
a848cd7e
SC
33678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679 (exit $ac_status); } &&
6ebeb4c7 33680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33682 (eval $ac_try) 2>&5
33683 ac_status=$?
33684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685 (exit $ac_status); }; } &&
33686 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33688 (eval $ac_try) 2>&5
33689 ac_status=$?
33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); }; }; then
33692 am_cv_lib_iconv=yes
33693 am_cv_func_iconv=yes
33694else
33695 echo "$as_me: failed program was:" >&5
33696sed 's/^/| /' conftest.$ac_ext >&5
33697
33698fi
ac1cb8d3
VS
33699rm -f conftest.err conftest.$ac_objext \
33700 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33701 LIBS="$am_save_LIBS"
33702 fi
33703
33704fi
33705echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33706echo "${ECHO_T}$am_cv_func_iconv" >&6
33707 if test "$am_cv_func_iconv" = yes; then
33708
33709cat >>confdefs.h <<\_ACEOF
33710#define HAVE_ICONV 1
33711_ACEOF
33712
33713 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33714echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33715if test "${wx_cv_func_iconv_const+set}" = set; then
33716 echo $ECHO_N "(cached) $ECHO_C" >&6
33717else
33718 cat >conftest.$ac_ext <<_ACEOF
33719/* confdefs.h. */
33720_ACEOF
33721cat confdefs.h >>conftest.$ac_ext
33722cat >>conftest.$ac_ext <<_ACEOF
33723/* end confdefs.h. */
33724
33725#include <stdlib.h>
33726#include <iconv.h>
33727extern
33728#ifdef __cplusplus
33729"C"
33730#endif
33731#if defined(__STDC__) || defined(__cplusplus)
33732size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33733#else
33734size_t iconv();
33735#endif
33736
33737int
33738main ()
33739{
33740
33741 ;
33742 return 0;
33743}
33744_ACEOF
33745rm -f conftest.$ac_objext
33746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33747 (eval $ac_compile) 2>conftest.er1
a848cd7e 33748 ac_status=$?
ac1cb8d3
VS
33749 grep -v '^ *+' conftest.er1 >conftest.err
33750 rm -f conftest.er1
33751 cat conftest.err >&5
a848cd7e
SC
33752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33753 (exit $ac_status); } &&
6ebeb4c7 33754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33756 (eval $ac_try) 2>&5
33757 ac_status=$?
33758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33759 (exit $ac_status); }; } &&
33760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33762 (eval $ac_try) 2>&5
33763 ac_status=$?
33764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765 (exit $ac_status); }; }; then
33766 wx_cv_func_iconv_const="no"
33767else
33768 echo "$as_me: failed program was:" >&5
33769sed 's/^/| /' conftest.$ac_ext >&5
33770
33771wx_cv_func_iconv_const="yes"
33772
33773fi
ac1cb8d3 33774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33775
33776fi
33777echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33778echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33779
33780 iconv_const=
33781 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33782 iconv_const="const"
33783 fi
33784
33785
33786cat >>confdefs.h <<_ACEOF
33787#define ICONV_CONST $iconv_const
33788_ACEOF
33789
33790 fi
33791 LIBICONV=
33792 if test "$am_cv_lib_iconv" = yes; then
33793 LIBICONV="-liconv"
33794 fi
33795
33796
33797LIBS="$LIBICONV $LIBS"
33798ac_ext=c
33799ac_cpp='$CPP $CPPFLAGS'
33800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33802ac_compiler_gnu=$ac_cv_c_compiler_gnu
33803
33804
33805if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33806
33807for ac_func in sigaction
33808do
33809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33810echo "$as_me:$LINENO: checking for $ac_func" >&5
33811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33812if eval "test \"\${$as_ac_var+set}\" = set"; then
33813 echo $ECHO_N "(cached) $ECHO_C" >&6
33814else
33815 cat >conftest.$ac_ext <<_ACEOF
33816/* confdefs.h. */
33817_ACEOF
33818cat confdefs.h >>conftest.$ac_ext
33819cat >>conftest.$ac_ext <<_ACEOF
33820/* end confdefs.h. */
ac1cb8d3
VS
33821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33823#define $ac_func innocuous_$ac_func
33824
a848cd7e
SC
33825/* System header to define __stub macros and hopefully few prototypes,
33826 which can conflict with char $ac_func (); below.
33827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33828 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33829
a848cd7e
SC
33830#ifdef __STDC__
33831# include <limits.h>
33832#else
33833# include <assert.h>
33834#endif
ac1cb8d3
VS
33835
33836#undef $ac_func
33837
a848cd7e
SC
33838/* Override any gcc2 internal prototype to avoid an error. */
33839#ifdef __cplusplus
33840extern "C"
33841{
33842#endif
33843/* We use char because int might match the return type of a gcc2
33844 builtin and then its argument prototype would still apply. */
33845char $ac_func ();
33846/* The GNU C library defines this for functions which it implements
33847 to always fail with ENOSYS. Some functions are actually named
33848 something starting with __ and the normal name is an alias. */
33849#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33850choke me
33851#else
33852char (*f) () = $ac_func;
33853#endif
33854#ifdef __cplusplus
33855}
33856#endif
33857
33858int
33859main ()
33860{
33861return f != $ac_func;
33862 ;
33863 return 0;
33864}
33865_ACEOF
33866rm -f conftest.$ac_objext conftest$ac_exeext
33867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33868 (eval $ac_link) 2>conftest.er1
a848cd7e 33869 ac_status=$?
ac1cb8d3
VS
33870 grep -v '^ *+' conftest.er1 >conftest.err
33871 rm -f conftest.er1
33872 cat conftest.err >&5
a848cd7e
SC
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); } &&
6ebeb4c7 33875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33877 (eval $ac_try) 2>&5
33878 ac_status=$?
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); }; } &&
33881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33883 (eval $ac_try) 2>&5
33884 ac_status=$?
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); }; }; then
33887 eval "$as_ac_var=yes"
33888else
33889 echo "$as_me: failed program was:" >&5
33890sed 's/^/| /' conftest.$ac_ext >&5
33891
33892eval "$as_ac_var=no"
33893fi
ac1cb8d3
VS
33894rm -f conftest.err conftest.$ac_objext \
33895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33896fi
33897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33898echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33899if test `eval echo '${'$as_ac_var'}'` = yes; then
33900 cat >>confdefs.h <<_ACEOF
33901#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33902_ACEOF
33903
33904fi
33905done
33906
33907
33908 if test "$ac_cv_func_sigaction" = "no"; then
33909 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
33910echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
33911 wxUSE_ON_FATAL_EXCEPTION=no
33912 fi
33913
33914 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
33915
33916
33917 ac_ext=cc
33918ac_cpp='$CXXCPP $CPPFLAGS'
33919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33922
33923
33924 echo "$as_me:$LINENO: checking for sa_handler type" >&5
33925echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
33926if test "${wx_cv_type_sa_handler+set}" = set; then
33927 echo $ECHO_N "(cached) $ECHO_C" >&6
33928else
33929
33930 cat >conftest.$ac_ext <<_ACEOF
33931/* confdefs.h. */
33932_ACEOF
33933cat confdefs.h >>conftest.$ac_ext
33934cat >>conftest.$ac_ext <<_ACEOF
33935/* end confdefs.h. */
33936#include <signal.h>
33937int
33938main ()
33939{
33940
33941 extern void testSigHandler(int);
33942
33943 struct sigaction sa;
33944 sa.sa_handler = testSigHandler;
33945
33946 ;
33947 return 0;
33948}
33949_ACEOF
33950rm -f conftest.$ac_objext
33951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33952 (eval $ac_compile) 2>conftest.er1
a848cd7e 33953 ac_status=$?
ac1cb8d3
VS
33954 grep -v '^ *+' conftest.er1 >conftest.err
33955 rm -f conftest.er1
33956 cat conftest.err >&5
a848cd7e
SC
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); } &&
6ebeb4c7 33959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33961 (eval $ac_try) 2>&5
33962 ac_status=$?
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; } &&
33965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33967 (eval $ac_try) 2>&5
33968 ac_status=$?
33969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970 (exit $ac_status); }; }; then
33971
33972 wx_cv_type_sa_handler=int
33973
33974else
33975 echo "$as_me: failed program was:" >&5
33976sed 's/^/| /' conftest.$ac_ext >&5
33977
33978
33979 wx_cv_type_sa_handler=void
33980
33981fi
ac1cb8d3 33982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33983
33984fi
33985echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
33986echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
33987
33988 ac_ext=c
33989ac_cpp='$CPP $CPPFLAGS'
33990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33992ac_compiler_gnu=$ac_cv_c_compiler_gnu
33993
33994
33995 cat >>confdefs.h <<_ACEOF
33996#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
33997_ACEOF
33998
33999 fi
34000fi
34001
eaff0f0d
VZ
34002if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34003
34004
34005 ac_ext=cc
34006ac_cpp='$CXXCPP $CPPFLAGS'
34007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34010
34011
34012 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34013echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34014if test "${wx_cv_func_backtrace+set}" = set; then
34015 echo $ECHO_N "(cached) $ECHO_C" >&6
34016else
34017
34018 cat >conftest.$ac_ext <<_ACEOF
34019/* confdefs.h. */
34020_ACEOF
34021cat confdefs.h >>conftest.$ac_ext
34022cat >>conftest.$ac_ext <<_ACEOF
34023/* end confdefs.h. */
34024#include <execinfo.h>
34025int
34026main ()
34027{
34028
34029 void *trace[1];
34030 char **messages;
34031
34032 backtrace(trace, 1);
34033 messages = backtrace_symbols(trace, 1);
34034
34035 ;
34036 return 0;
34037}
34038_ACEOF
34039rm -f conftest.$ac_objext
34040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34041 (eval $ac_compile) 2>conftest.er1
34042 ac_status=$?
34043 grep -v '^ *+' conftest.er1 >conftest.err
34044 rm -f conftest.er1
34045 cat conftest.err >&5
34046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047 (exit $ac_status); } &&
6ebeb4c7 34048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34050 (eval $ac_try) 2>&5
34051 ac_status=$?
34052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053 (exit $ac_status); }; } &&
34054 { ac_try='test -s conftest.$ac_objext'
34055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34056 (eval $ac_try) 2>&5
34057 ac_status=$?
34058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34059 (exit $ac_status); }; }; then
34060 wx_cv_func_backtrace=yes
34061else
34062 echo "$as_me: failed program was:" >&5
34063sed 's/^/| /' conftest.$ac_ext >&5
34064
34065wx_cv_func_backtrace=no
34066
34067fi
34068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34069
34070
34071fi
34072echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34073echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34074
34075
34076 if test "$wx_cv_func_backtrace" = "no"; then
34077 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34078echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34079 wxUSE_STACKWALKER=no
34080 else
34081 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34082echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34083if test "${wx_cv_func_cxa_demangle+set}" = set; then
34084 echo $ECHO_N "(cached) $ECHO_C" >&6
34085else
34086
34087 cat >conftest.$ac_ext <<_ACEOF
34088/* confdefs.h. */
34089_ACEOF
34090cat confdefs.h >>conftest.$ac_ext
34091cat >>conftest.$ac_ext <<_ACEOF
34092/* end confdefs.h. */
34093#include <cxxabi.h>
34094int
34095main ()
34096{
34097
34098 int rc;
34099 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34100
34101 ;
34102 return 0;
34103}
34104_ACEOF
dfe0c803
JS
34105rm -f conftest.$ac_objext conftest$ac_exeext
34106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34107 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34108 ac_status=$?
34109 grep -v '^ *+' conftest.er1 >conftest.err
34110 rm -f conftest.er1
34111 cat conftest.err >&5
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); } &&
6ebeb4c7 34114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34116 (eval $ac_try) 2>&5
34117 ac_status=$?
34118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119 (exit $ac_status); }; } &&
dfe0c803 34120 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34122 (eval $ac_try) 2>&5
34123 ac_status=$?
34124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34125 (exit $ac_status); }; }; then
34126 wx_cv_func_cxa_demangle=yes
34127else
34128 echo "$as_me: failed program was:" >&5
34129sed 's/^/| /' conftest.$ac_ext >&5
34130
34131wx_cv_func_cxa_demangle=no
34132
34133fi
dfe0c803
JS
34134rm -f conftest.err conftest.$ac_objext \
34135 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34136
34137
34138fi
34139echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34140echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34141
34142 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34143 cat >>confdefs.h <<\_ACEOF
34144#define HAVE_CXA_DEMANGLE 1
34145_ACEOF
34146
34147 fi
34148 fi
34149
34150 ac_ext=c
34151ac_cpp='$CPP $CPPFLAGS'
34152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34154ac_compiler_gnu=$ac_cv_c_compiler_gnu
34155
34156fi
34157
898beab1
DE
34158if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34159 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34160echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34161 wxUSE_STACKWALKER=no
34162fi
34163
34164
a848cd7e
SC
34165
34166
34167for ac_func in mkstemp mktemp
34168do
34169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34170echo "$as_me:$LINENO: checking for $ac_func" >&5
34171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34172if eval "test \"\${$as_ac_var+set}\" = set"; then
34173 echo $ECHO_N "(cached) $ECHO_C" >&6
34174else
34175 cat >conftest.$ac_ext <<_ACEOF
34176/* confdefs.h. */
34177_ACEOF
34178cat confdefs.h >>conftest.$ac_ext
34179cat >>conftest.$ac_ext <<_ACEOF
34180/* end confdefs.h. */
ac1cb8d3
VS
34181/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34183#define $ac_func innocuous_$ac_func
34184
a848cd7e
SC
34185/* System header to define __stub macros and hopefully few prototypes,
34186 which can conflict with char $ac_func (); below.
34187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34188 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34189
a848cd7e
SC
34190#ifdef __STDC__
34191# include <limits.h>
34192#else
34193# include <assert.h>
34194#endif
ac1cb8d3
VS
34195
34196#undef $ac_func
34197
a848cd7e
SC
34198/* Override any gcc2 internal prototype to avoid an error. */
34199#ifdef __cplusplus
34200extern "C"
34201{
34202#endif
34203/* We use char because int might match the return type of a gcc2
34204 builtin and then its argument prototype would still apply. */
34205char $ac_func ();
34206/* The GNU C library defines this for functions which it implements
34207 to always fail with ENOSYS. Some functions are actually named
34208 something starting with __ and the normal name is an alias. */
34209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34210choke me
34211#else
34212char (*f) () = $ac_func;
34213#endif
34214#ifdef __cplusplus
34215}
34216#endif
34217
34218int
34219main ()
34220{
34221return f != $ac_func;
34222 ;
34223 return 0;
34224}
34225_ACEOF
34226rm -f conftest.$ac_objext conftest$ac_exeext
34227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34228 (eval $ac_link) 2>conftest.er1
a848cd7e 34229 ac_status=$?
ac1cb8d3
VS
34230 grep -v '^ *+' conftest.er1 >conftest.err
34231 rm -f conftest.er1
34232 cat conftest.err >&5
a848cd7e
SC
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 (exit $ac_status); } &&
6ebeb4c7 34235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34237 (eval $ac_try) 2>&5
34238 ac_status=$?
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); }; } &&
34241 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34243 (eval $ac_try) 2>&5
34244 ac_status=$?
34245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246 (exit $ac_status); }; }; then
34247 eval "$as_ac_var=yes"
34248else
34249 echo "$as_me: failed program was:" >&5
34250sed 's/^/| /' conftest.$ac_ext >&5
34251
34252eval "$as_ac_var=no"
34253fi
ac1cb8d3
VS
34254rm -f conftest.err conftest.$ac_objext \
34255 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34256fi
34257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34258echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34259if test `eval echo '${'$as_ac_var'}'` = yes; then
34260 cat >>confdefs.h <<_ACEOF
34261#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34262_ACEOF
34263 break
34264fi
34265done
34266
34267
34268echo "$as_me:$LINENO: checking for statfs" >&5
34269echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34270if test "${wx_cv_func_statfs+set}" = set; then
34271 echo $ECHO_N "(cached) $ECHO_C" >&6
34272else
34273 cat >conftest.$ac_ext <<_ACEOF
34274/* confdefs.h. */
34275_ACEOF
34276cat confdefs.h >>conftest.$ac_ext
34277cat >>conftest.$ac_ext <<_ACEOF
34278/* end confdefs.h. */
34279
34280 #if defined(__BSD__)
84ae7ca4
VZ
34281 #include <sys/param.h>
34282 #include <sys/mount.h>
a848cd7e 34283 #else
84ae7ca4 34284 #include <sys/vfs.h>
a848cd7e
SC
34285 #endif
34286
34287int
34288main ()
34289{
34290
34291 long l;
34292 struct statfs fs;
34293 statfs("/", &fs);
34294 l = fs.f_bsize;
34295 l += fs.f_blocks;
34296 l += fs.f_bavail;
34297
34298 ;
34299 return 0;
34300}
34301_ACEOF
34302rm -f conftest.$ac_objext
34303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34304 (eval $ac_compile) 2>conftest.er1
a848cd7e 34305 ac_status=$?
ac1cb8d3
VS
34306 grep -v '^ *+' conftest.er1 >conftest.err
34307 rm -f conftest.er1
34308 cat conftest.err >&5
a848cd7e
SC
34309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310 (exit $ac_status); } &&
6ebeb4c7 34311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34313 (eval $ac_try) 2>&5
34314 ac_status=$?
34315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316 (exit $ac_status); }; } &&
34317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34319 (eval $ac_try) 2>&5
34320 ac_status=$?
34321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34322 (exit $ac_status); }; }; then
84ae7ca4 34323 wx_cv_func_statfs=yes
a848cd7e
SC
34324else
34325 echo "$as_me: failed program was:" >&5
34326sed 's/^/| /' conftest.$ac_ext >&5
34327
84ae7ca4 34328wx_cv_func_statfs=no
a848cd7e
SC
34329
34330fi
ac1cb8d3 34331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34332
34333fi
34334echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34335echo "${ECHO_T}$wx_cv_func_statfs" >&6
34336
34337if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34338
34339
34340 ac_ext=cc
34341ac_cpp='$CXXCPP $CPPFLAGS'
34342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34345
34346 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34347echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34348if test "${wx_cv_func_statfs_decl+set}" = set; then
34349 echo $ECHO_N "(cached) $ECHO_C" >&6
34350else
0683aca6
VZ
34351 cat >conftest.$ac_ext <<_ACEOF
34352/* confdefs.h. */
34353_ACEOF
34354cat confdefs.h >>conftest.$ac_ext
34355cat >>conftest.$ac_ext <<_ACEOF
34356/* end confdefs.h. */
84ae7ca4 34357
0683aca6
VZ
34358 #if defined(__BSD__)
34359 #include <sys/param.h>
34360 #include <sys/mount.h>
34361 #else
34362 #include <sys/vfs.h>
34363 #endif
34364
34365int
34366main ()
34367{
34368
34369 struct statfs fs;
34370 statfs("", &fs);
34371
34372 ;
34373 return 0;
34374}
34375_ACEOF
34376rm -f conftest.$ac_objext
34377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34378 (eval $ac_compile) 2>conftest.er1
34379 ac_status=$?
34380 grep -v '^ *+' conftest.er1 >conftest.err
34381 rm -f conftest.er1
34382 cat conftest.err >&5
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); } &&
34385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34387 (eval $ac_try) 2>&5
34388 ac_status=$?
34389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390 (exit $ac_status); }; } &&
34391 { ac_try='test -s conftest.$ac_objext'
34392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34393 (eval $ac_try) 2>&5
34394 ac_status=$?
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); }; }; then
34397 wx_cv_func_statfs_decl=yes
34398else
34399 echo "$as_me: failed program was:" >&5
34400sed 's/^/| /' conftest.$ac_ext >&5
34401
34402wx_cv_func_statfs_decl=no
34403
34404fi
34405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34406
34407fi
34408echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34409echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34410 ac_ext=c
34411ac_cpp='$CPP $CPPFLAGS'
34412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34414ac_compiler_gnu=$ac_cv_c_compiler_gnu
34415
34416
34417 if test "$wx_cv_func_statfs_decl" = "yes"; then
34418 cat >>confdefs.h <<\_ACEOF
34419#define HAVE_STATFS_DECL 1
34420_ACEOF
34421
34422 fi
34423
a848cd7e
SC
34424 wx_cv_type_statvfs_t="struct statfs"
34425 cat >>confdefs.h <<\_ACEOF
34426#define HAVE_STATFS 1
34427_ACEOF
34428
34429else
34430 echo "$as_me:$LINENO: checking for statvfs" >&5
34431echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34432if test "${wx_cv_func_statvfs+set}" = set; then
34433 echo $ECHO_N "(cached) $ECHO_C" >&6
34434else
34435 cat >conftest.$ac_ext <<_ACEOF
34436/* confdefs.h. */
34437_ACEOF
34438cat confdefs.h >>conftest.$ac_ext
34439cat >>conftest.$ac_ext <<_ACEOF
34440/* end confdefs.h. */
34441
34442 #include <stddef.h>
34443 #include <sys/statvfs.h>
34444
34445int
34446main ()
34447{
34448
34449 statvfs("/", NULL);
34450
34451 ;
34452 return 0;
34453}
34454_ACEOF
34455rm -f conftest.$ac_objext
34456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34457 (eval $ac_compile) 2>conftest.er1
a848cd7e 34458 ac_status=$?
ac1cb8d3
VS
34459 grep -v '^ *+' conftest.er1 >conftest.err
34460 rm -f conftest.er1
34461 cat conftest.err >&5
a848cd7e
SC
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); } &&
6ebeb4c7 34464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34466 (eval $ac_try) 2>&5
34467 ac_status=$?
34468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469 (exit $ac_status); }; } &&
34470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34472 (eval $ac_try) 2>&5
34473 ac_status=$?
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); }; }; then
34476 wx_cv_func_statvfs=yes
34477else
34478 echo "$as_me: failed program was:" >&5
34479sed 's/^/| /' conftest.$ac_ext >&5
34480
34481wx_cv_func_statvfs=no
34482
34483fi
ac1cb8d3 34484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34485
34486fi
34487echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34488echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34489
34490 if test "$wx_cv_func_statvfs" = "yes"; then
34491
34492
34493 ac_ext=cc
34494ac_cpp='$CXXCPP $CPPFLAGS'
34495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34498
34499
34500 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34501echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34502if test "${wx_cv_type_statvfs_t+set}" = set; then
34503 echo $ECHO_N "(cached) $ECHO_C" >&6
34504else
34505 cat >conftest.$ac_ext <<_ACEOF
34506/* confdefs.h. */
34507_ACEOF
34508cat confdefs.h >>conftest.$ac_ext
34509cat >>conftest.$ac_ext <<_ACEOF
34510/* end confdefs.h. */
34511
34512 #include <sys/statvfs.h>
34513
34514int
34515main ()
34516{
34517
34518 long l;
34519 statvfs_t fs;
34520 statvfs("/", &fs);
34521 l = fs.f_bsize;
34522 l += fs.f_blocks;
34523 l += fs.f_bavail;
34524
34525 ;
34526 return 0;
34527}
34528_ACEOF
34529rm -f conftest.$ac_objext
34530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34531 (eval $ac_compile) 2>conftest.er1
a848cd7e 34532 ac_status=$?
ac1cb8d3
VS
34533 grep -v '^ *+' conftest.er1 >conftest.err
34534 rm -f conftest.er1
34535 cat conftest.err >&5
a848cd7e
SC
34536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537 (exit $ac_status); } &&
6ebeb4c7 34538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34540 (eval $ac_try) 2>&5
34541 ac_status=$?
34542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543 (exit $ac_status); }; } &&
34544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34546 (eval $ac_try) 2>&5
34547 ac_status=$?
34548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34549 (exit $ac_status); }; }; then
34550 wx_cv_type_statvfs_t=statvfs_t
34551else
34552 echo "$as_me: failed program was:" >&5
34553sed 's/^/| /' conftest.$ac_ext >&5
34554
34555
34556 cat >conftest.$ac_ext <<_ACEOF
34557/* confdefs.h. */
34558_ACEOF
34559cat confdefs.h >>conftest.$ac_ext
34560cat >>conftest.$ac_ext <<_ACEOF
34561/* end confdefs.h. */
34562
34563 #include <sys/statvfs.h>
34564
34565int
34566main ()
34567{
34568
34569 long l;
34570 struct statvfs fs;
34571 statvfs("/", &fs);
34572 l = fs.f_bsize;
34573 l += fs.f_blocks;
34574 l += fs.f_bavail;
34575
34576 ;
34577 return 0;
34578}
34579_ACEOF
34580rm -f conftest.$ac_objext
34581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34582 (eval $ac_compile) 2>conftest.er1
a848cd7e 34583 ac_status=$?
ac1cb8d3
VS
34584 grep -v '^ *+' conftest.er1 >conftest.err
34585 rm -f conftest.er1
34586 cat conftest.err >&5
a848cd7e
SC
34587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588 (exit $ac_status); } &&
6ebeb4c7 34589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34591 (eval $ac_try) 2>&5
34592 ac_status=$?
34593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34594 (exit $ac_status); }; } &&
34595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34597 (eval $ac_try) 2>&5
34598 ac_status=$?
34599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34600 (exit $ac_status); }; }; then
34601 wx_cv_type_statvfs_t="struct statvfs"
34602else
34603 echo "$as_me: failed program was:" >&5
34604sed 's/^/| /' conftest.$ac_ext >&5
34605
34606wx_cv_type_statvfs_t="unknown"
34607
34608fi
ac1cb8d3 34609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34610
34611
34612fi
ac1cb8d3 34613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34614
34615fi
34616echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34617echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34618
34619 ac_ext=c
34620ac_cpp='$CPP $CPPFLAGS'
34621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34623ac_compiler_gnu=$ac_cv_c_compiler_gnu
34624
34625
34626 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34627 cat >>confdefs.h <<\_ACEOF
34628#define HAVE_STATVFS 1
34629_ACEOF
34630
34631 fi
34632 else
34633 wx_cv_type_statvfs_t="unknown"
34634 fi
34635fi
34636
34637if test "$wx_cv_type_statvfs_t" != "unknown"; then
34638 cat >>confdefs.h <<_ACEOF
34639#define WX_STATFS_T $wx_cv_type_statvfs_t
34640_ACEOF
34641
34642else
34643 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34644echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34645fi
34646
34647if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34648
34649
34650for ac_func in fcntl flock
34651do
34652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34653echo "$as_me:$LINENO: checking for $ac_func" >&5
34654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34655if eval "test \"\${$as_ac_var+set}\" = set"; then
34656 echo $ECHO_N "(cached) $ECHO_C" >&6
34657else
34658 cat >conftest.$ac_ext <<_ACEOF
34659/* confdefs.h. */
34660_ACEOF
34661cat confdefs.h >>conftest.$ac_ext
34662cat >>conftest.$ac_ext <<_ACEOF
34663/* end confdefs.h. */
ac1cb8d3
VS
34664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34666#define $ac_func innocuous_$ac_func
34667
a848cd7e
SC
34668/* System header to define __stub macros and hopefully few prototypes,
34669 which can conflict with char $ac_func (); below.
34670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34671 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34672
a848cd7e
SC
34673#ifdef __STDC__
34674# include <limits.h>
34675#else
34676# include <assert.h>
34677#endif
ac1cb8d3
VS
34678
34679#undef $ac_func
34680
a848cd7e
SC
34681/* Override any gcc2 internal prototype to avoid an error. */
34682#ifdef __cplusplus
34683extern "C"
34684{
34685#endif
34686/* We use char because int might match the return type of a gcc2
34687 builtin and then its argument prototype would still apply. */
34688char $ac_func ();
34689/* The GNU C library defines this for functions which it implements
34690 to always fail with ENOSYS. Some functions are actually named
34691 something starting with __ and the normal name is an alias. */
34692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34693choke me
34694#else
34695char (*f) () = $ac_func;
34696#endif
34697#ifdef __cplusplus
34698}
34699#endif
34700
34701int
34702main ()
34703{
34704return f != $ac_func;
34705 ;
34706 return 0;
34707}
34708_ACEOF
34709rm -f conftest.$ac_objext conftest$ac_exeext
34710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34711 (eval $ac_link) 2>conftest.er1
a848cd7e 34712 ac_status=$?
ac1cb8d3
VS
34713 grep -v '^ *+' conftest.er1 >conftest.err
34714 rm -f conftest.er1
34715 cat conftest.err >&5
a848cd7e
SC
34716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717 (exit $ac_status); } &&
6ebeb4c7 34718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34720 (eval $ac_try) 2>&5
34721 ac_status=$?
34722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723 (exit $ac_status); }; } &&
34724 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34726 (eval $ac_try) 2>&5
34727 ac_status=$?
34728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729 (exit $ac_status); }; }; then
34730 eval "$as_ac_var=yes"
34731else
34732 echo "$as_me: failed program was:" >&5
34733sed 's/^/| /' conftest.$ac_ext >&5
34734
34735eval "$as_ac_var=no"
34736fi
ac1cb8d3
VS
34737rm -f conftest.err conftest.$ac_objext \
34738 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34739fi
34740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34741echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34742if test `eval echo '${'$as_ac_var'}'` = yes; then
34743 cat >>confdefs.h <<_ACEOF
34744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34745_ACEOF
34746 break
34747fi
34748done
34749
34750
34751 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34752 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34753echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34754 wxUSE_SNGLINST_CHECKER=no
34755 fi
34756fi
34757
34758
34759for ac_func in timegm
34760do
34761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34762echo "$as_me:$LINENO: checking for $ac_func" >&5
34763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34764if eval "test \"\${$as_ac_var+set}\" = set"; then
34765 echo $ECHO_N "(cached) $ECHO_C" >&6
34766else
34767 cat >conftest.$ac_ext <<_ACEOF
34768/* confdefs.h. */
34769_ACEOF
34770cat confdefs.h >>conftest.$ac_ext
34771cat >>conftest.$ac_ext <<_ACEOF
34772/* end confdefs.h. */
ac1cb8d3
VS
34773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34775#define $ac_func innocuous_$ac_func
34776
a848cd7e
SC
34777/* System header to define __stub macros and hopefully few prototypes,
34778 which can conflict with char $ac_func (); below.
34779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34780 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34781
a848cd7e
SC
34782#ifdef __STDC__
34783# include <limits.h>
34784#else
34785# include <assert.h>
34786#endif
ac1cb8d3
VS
34787
34788#undef $ac_func
34789
a848cd7e
SC
34790/* Override any gcc2 internal prototype to avoid an error. */
34791#ifdef __cplusplus
34792extern "C"
34793{
34794#endif
34795/* We use char because int might match the return type of a gcc2
34796 builtin and then its argument prototype would still apply. */
34797char $ac_func ();
34798/* The GNU C library defines this for functions which it implements
34799 to always fail with ENOSYS. Some functions are actually named
34800 something starting with __ and the normal name is an alias. */
34801#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34802choke me
34803#else
34804char (*f) () = $ac_func;
34805#endif
34806#ifdef __cplusplus
34807}
34808#endif
34809
34810int
34811main ()
34812{
34813return f != $ac_func;
34814 ;
34815 return 0;
34816}
34817_ACEOF
34818rm -f conftest.$ac_objext conftest$ac_exeext
34819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34820 (eval $ac_link) 2>conftest.er1
a848cd7e 34821 ac_status=$?
ac1cb8d3
VS
34822 grep -v '^ *+' conftest.er1 >conftest.err
34823 rm -f conftest.er1
34824 cat conftest.err >&5
a848cd7e
SC
34825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826 (exit $ac_status); } &&
6ebeb4c7 34827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829 (eval $ac_try) 2>&5
34830 ac_status=$?
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); }; } &&
34833 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34835 (eval $ac_try) 2>&5
34836 ac_status=$?
34837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 (exit $ac_status); }; }; then
34839 eval "$as_ac_var=yes"
34840else
34841 echo "$as_me: failed program was:" >&5
34842sed 's/^/| /' conftest.$ac_ext >&5
34843
34844eval "$as_ac_var=no"
34845fi
ac1cb8d3
VS
34846rm -f conftest.err conftest.$ac_objext \
34847 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34848fi
34849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34850echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34851if test `eval echo '${'$as_ac_var'}'` = yes; then
34852 cat >>confdefs.h <<_ACEOF
34853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34854_ACEOF
34855
34856fi
34857done
34858
34859
34860
34861
34862for ac_func in putenv setenv
34863do
34864as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34865echo "$as_me:$LINENO: checking for $ac_func" >&5
34866echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34867if eval "test \"\${$as_ac_var+set}\" = set"; then
34868 echo $ECHO_N "(cached) $ECHO_C" >&6
34869else
34870 cat >conftest.$ac_ext <<_ACEOF
34871/* confdefs.h. */
34872_ACEOF
34873cat confdefs.h >>conftest.$ac_ext
34874cat >>conftest.$ac_ext <<_ACEOF
34875/* end confdefs.h. */
ac1cb8d3
VS
34876/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34878#define $ac_func innocuous_$ac_func
34879
a848cd7e
SC
34880/* System header to define __stub macros and hopefully few prototypes,
34881 which can conflict with char $ac_func (); below.
34882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34883 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34884
a848cd7e
SC
34885#ifdef __STDC__
34886# include <limits.h>
34887#else
34888# include <assert.h>
34889#endif
ac1cb8d3
VS
34890
34891#undef $ac_func
34892
a848cd7e
SC
34893/* Override any gcc2 internal prototype to avoid an error. */
34894#ifdef __cplusplus
34895extern "C"
34896{
34897#endif
34898/* We use char because int might match the return type of a gcc2
34899 builtin and then its argument prototype would still apply. */
34900char $ac_func ();
34901/* The GNU C library defines this for functions which it implements
34902 to always fail with ENOSYS. Some functions are actually named
34903 something starting with __ and the normal name is an alias. */
34904#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34905choke me
34906#else
34907char (*f) () = $ac_func;
34908#endif
34909#ifdef __cplusplus
34910}
34911#endif
34912
34913int
34914main ()
34915{
34916return f != $ac_func;
34917 ;
34918 return 0;
34919}
34920_ACEOF
34921rm -f conftest.$ac_objext conftest$ac_exeext
34922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34923 (eval $ac_link) 2>conftest.er1
a848cd7e 34924 ac_status=$?
ac1cb8d3
VS
34925 grep -v '^ *+' conftest.er1 >conftest.err
34926 rm -f conftest.er1
34927 cat conftest.err >&5
a848cd7e
SC
34928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929 (exit $ac_status); } &&
6ebeb4c7 34930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34932 (eval $ac_try) 2>&5
34933 ac_status=$?
34934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34935 (exit $ac_status); }; } &&
34936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34938 (eval $ac_try) 2>&5
34939 ac_status=$?
34940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941 (exit $ac_status); }; }; then
34942 eval "$as_ac_var=yes"
34943else
34944 echo "$as_me: failed program was:" >&5
34945sed 's/^/| /' conftest.$ac_ext >&5
34946
34947eval "$as_ac_var=no"
34948fi
ac1cb8d3
VS
34949rm -f conftest.err conftest.$ac_objext \
34950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34951fi
34952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34953echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34954if test `eval echo '${'$as_ac_var'}'` = yes; then
34955 cat >>confdefs.h <<_ACEOF
34956#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34957_ACEOF
34958 break
34959fi
34960done
34961
34962
34963HAVE_SOME_SLEEP_FUNC=0
34964if test "$USE_BEOS" = 1; then
34965 cat >>confdefs.h <<\_ACEOF
34966#define HAVE_SLEEP 1
34967_ACEOF
34968
34969 HAVE_SOME_SLEEP_FUNC=1
34970fi
34971
34972if test "$USE_DARWIN" = 1; then
34973 cat >>confdefs.h <<\_ACEOF
34974#define HAVE_USLEEP 1
34975_ACEOF
34976
34977 HAVE_SOME_SLEEP_FUNC=1
34978fi
34979
34980if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
34981 POSIX4_LINK=
34982
34983for ac_func in nanosleep
34984do
34985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34986echo "$as_me:$LINENO: checking for $ac_func" >&5
34987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34988if eval "test \"\${$as_ac_var+set}\" = set"; then
34989 echo $ECHO_N "(cached) $ECHO_C" >&6
34990else
34991 cat >conftest.$ac_ext <<_ACEOF
34992/* confdefs.h. */
34993_ACEOF
34994cat confdefs.h >>conftest.$ac_ext
34995cat >>conftest.$ac_ext <<_ACEOF
34996/* end confdefs.h. */
ac1cb8d3
VS
34997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34999#define $ac_func innocuous_$ac_func
35000
a848cd7e
SC
35001/* System header to define __stub macros and hopefully few prototypes,
35002 which can conflict with char $ac_func (); below.
35003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35004 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35005
a848cd7e
SC
35006#ifdef __STDC__
35007# include <limits.h>
35008#else
35009# include <assert.h>
35010#endif
ac1cb8d3
VS
35011
35012#undef $ac_func
35013
a848cd7e
SC
35014/* Override any gcc2 internal prototype to avoid an error. */
35015#ifdef __cplusplus
35016extern "C"
35017{
35018#endif
35019/* We use char because int might match the return type of a gcc2
35020 builtin and then its argument prototype would still apply. */
35021char $ac_func ();
35022/* The GNU C library defines this for functions which it implements
35023 to always fail with ENOSYS. Some functions are actually named
35024 something starting with __ and the normal name is an alias. */
35025#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35026choke me
35027#else
35028char (*f) () = $ac_func;
35029#endif
35030#ifdef __cplusplus
35031}
35032#endif
35033
35034int
35035main ()
35036{
35037return f != $ac_func;
35038 ;
35039 return 0;
35040}
35041_ACEOF
35042rm -f conftest.$ac_objext conftest$ac_exeext
35043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35044 (eval $ac_link) 2>conftest.er1
a848cd7e 35045 ac_status=$?
ac1cb8d3
VS
35046 grep -v '^ *+' conftest.er1 >conftest.err
35047 rm -f conftest.er1
35048 cat conftest.err >&5
a848cd7e
SC
35049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050 (exit $ac_status); } &&
6ebeb4c7 35051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35053 (eval $ac_try) 2>&5
35054 ac_status=$?
35055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056 (exit $ac_status); }; } &&
35057 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35059 (eval $ac_try) 2>&5
35060 ac_status=$?
35061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35062 (exit $ac_status); }; }; then
35063 eval "$as_ac_var=yes"
35064else
35065 echo "$as_me: failed program was:" >&5
35066sed 's/^/| /' conftest.$ac_ext >&5
35067
35068eval "$as_ac_var=no"
35069fi
ac1cb8d3
VS
35070rm -f conftest.err conftest.$ac_objext \
35071 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35072fi
35073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35074echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35075if test `eval echo '${'$as_ac_var'}'` = yes; then
35076 cat >>confdefs.h <<_ACEOF
35077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35078_ACEOF
35079 cat >>confdefs.h <<\_ACEOF
35080#define HAVE_NANOSLEEP 1
35081_ACEOF
35082
35083else
35084
35085 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35086echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35087if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35088 echo $ECHO_N "(cached) $ECHO_C" >&6
35089else
35090 ac_check_lib_save_LIBS=$LIBS
35091LIBS="-lposix4 $LIBS"
35092cat >conftest.$ac_ext <<_ACEOF
35093/* confdefs.h. */
35094_ACEOF
35095cat confdefs.h >>conftest.$ac_ext
35096cat >>conftest.$ac_ext <<_ACEOF
35097/* end confdefs.h. */
35098
35099/* Override any gcc2 internal prototype to avoid an error. */
35100#ifdef __cplusplus
35101extern "C"
35102#endif
35103/* We use char because int might match the return type of a gcc2
35104 builtin and then its argument prototype would still apply. */
35105char nanosleep ();
35106int
35107main ()
35108{
35109nanosleep ();
35110 ;
35111 return 0;
35112}
35113_ACEOF
35114rm -f conftest.$ac_objext conftest$ac_exeext
35115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35116 (eval $ac_link) 2>conftest.er1
a848cd7e 35117 ac_status=$?
ac1cb8d3
VS
35118 grep -v '^ *+' conftest.er1 >conftest.err
35119 rm -f conftest.er1
35120 cat conftest.err >&5
a848cd7e
SC
35121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122 (exit $ac_status); } &&
6ebeb4c7 35123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35125 (eval $ac_try) 2>&5
35126 ac_status=$?
35127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35128 (exit $ac_status); }; } &&
35129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35131 (eval $ac_try) 2>&5
35132 ac_status=$?
35133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35134 (exit $ac_status); }; }; then
35135 ac_cv_lib_posix4_nanosleep=yes
35136else
35137 echo "$as_me: failed program was:" >&5
35138sed 's/^/| /' conftest.$ac_ext >&5
35139
35140ac_cv_lib_posix4_nanosleep=no
35141fi
ac1cb8d3
VS
35142rm -f conftest.err conftest.$ac_objext \
35143 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35144LIBS=$ac_check_lib_save_LIBS
35145fi
35146echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35147echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35148if test $ac_cv_lib_posix4_nanosleep = yes; then
35149
35150 cat >>confdefs.h <<\_ACEOF
35151#define HAVE_NANOSLEEP 1
35152_ACEOF
35153
35154 POSIX4_LINK=" -lposix4"
35155
35156else
35157
35158
35159for ac_func in usleep
35160do
35161as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35162echo "$as_me:$LINENO: checking for $ac_func" >&5
35163echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35164if eval "test \"\${$as_ac_var+set}\" = set"; then
35165 echo $ECHO_N "(cached) $ECHO_C" >&6
35166else
35167 cat >conftest.$ac_ext <<_ACEOF
35168/* confdefs.h. */
35169_ACEOF
35170cat confdefs.h >>conftest.$ac_ext
35171cat >>conftest.$ac_ext <<_ACEOF
35172/* end confdefs.h. */
ac1cb8d3
VS
35173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35175#define $ac_func innocuous_$ac_func
35176
a848cd7e
SC
35177/* System header to define __stub macros and hopefully few prototypes,
35178 which can conflict with char $ac_func (); below.
35179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35180 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35181
a848cd7e
SC
35182#ifdef __STDC__
35183# include <limits.h>
35184#else
35185# include <assert.h>
35186#endif
ac1cb8d3
VS
35187
35188#undef $ac_func
35189
a848cd7e
SC
35190/* Override any gcc2 internal prototype to avoid an error. */
35191#ifdef __cplusplus
35192extern "C"
35193{
35194#endif
35195/* We use char because int might match the return type of a gcc2
35196 builtin and then its argument prototype would still apply. */
35197char $ac_func ();
35198/* The GNU C library defines this for functions which it implements
35199 to always fail with ENOSYS. Some functions are actually named
35200 something starting with __ and the normal name is an alias. */
35201#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35202choke me
35203#else
35204char (*f) () = $ac_func;
35205#endif
35206#ifdef __cplusplus
35207}
35208#endif
35209
35210int
35211main ()
35212{
35213return f != $ac_func;
35214 ;
35215 return 0;
35216}
35217_ACEOF
35218rm -f conftest.$ac_objext conftest$ac_exeext
35219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35220 (eval $ac_link) 2>conftest.er1
a848cd7e 35221 ac_status=$?
ac1cb8d3
VS
35222 grep -v '^ *+' conftest.er1 >conftest.err
35223 rm -f conftest.er1
35224 cat conftest.err >&5
a848cd7e
SC
35225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35226 (exit $ac_status); } &&
6ebeb4c7 35227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35229 (eval $ac_try) 2>&5
35230 ac_status=$?
35231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35232 (exit $ac_status); }; } &&
35233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35235 (eval $ac_try) 2>&5
35236 ac_status=$?
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); }; }; then
35239 eval "$as_ac_var=yes"
35240else
35241 echo "$as_me: failed program was:" >&5
35242sed 's/^/| /' conftest.$ac_ext >&5
35243
35244eval "$as_ac_var=no"
35245fi
ac1cb8d3
VS
35246rm -f conftest.err conftest.$ac_objext \
35247 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35248fi
35249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35250echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35251if test `eval echo '${'$as_ac_var'}'` = yes; then
35252 cat >>confdefs.h <<_ACEOF
35253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35254_ACEOF
35255 cat >>confdefs.h <<\_ACEOF
35256#define HAVE_USLEEP 1
35257_ACEOF
35258
35259else
35260 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35261echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35262
35263fi
35264done
35265
35266
35267
35268fi
35269
35270
35271
35272fi
35273done
35274
35275fi
35276
35277
35278
35279for ac_func in uname gethostname
35280do
35281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35282echo "$as_me:$LINENO: checking for $ac_func" >&5
35283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35284if eval "test \"\${$as_ac_var+set}\" = set"; then
35285 echo $ECHO_N "(cached) $ECHO_C" >&6
35286else
35287 cat >conftest.$ac_ext <<_ACEOF
35288/* confdefs.h. */
35289_ACEOF
35290cat confdefs.h >>conftest.$ac_ext
35291cat >>conftest.$ac_ext <<_ACEOF
35292/* end confdefs.h. */
ac1cb8d3
VS
35293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35295#define $ac_func innocuous_$ac_func
35296
a848cd7e
SC
35297/* System header to define __stub macros and hopefully few prototypes,
35298 which can conflict with char $ac_func (); below.
35299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35300 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35301
a848cd7e
SC
35302#ifdef __STDC__
35303# include <limits.h>
35304#else
35305# include <assert.h>
35306#endif
ac1cb8d3
VS
35307
35308#undef $ac_func
35309
a848cd7e
SC
35310/* Override any gcc2 internal prototype to avoid an error. */
35311#ifdef __cplusplus
35312extern "C"
35313{
35314#endif
35315/* We use char because int might match the return type of a gcc2
35316 builtin and then its argument prototype would still apply. */
35317char $ac_func ();
35318/* The GNU C library defines this for functions which it implements
35319 to always fail with ENOSYS. Some functions are actually named
35320 something starting with __ and the normal name is an alias. */
35321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35322choke me
35323#else
35324char (*f) () = $ac_func;
35325#endif
35326#ifdef __cplusplus
35327}
35328#endif
35329
35330int
35331main ()
35332{
35333return f != $ac_func;
35334 ;
35335 return 0;
35336}
35337_ACEOF
35338rm -f conftest.$ac_objext conftest$ac_exeext
35339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35340 (eval $ac_link) 2>conftest.er1
a848cd7e 35341 ac_status=$?
ac1cb8d3
VS
35342 grep -v '^ *+' conftest.er1 >conftest.err
35343 rm -f conftest.er1
35344 cat conftest.err >&5
a848cd7e
SC
35345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35346 (exit $ac_status); } &&
6ebeb4c7 35347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35349 (eval $ac_try) 2>&5
35350 ac_status=$?
35351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352 (exit $ac_status); }; } &&
35353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35359 eval "$as_ac_var=yes"
35360else
35361 echo "$as_me: failed program was:" >&5
35362sed 's/^/| /' conftest.$ac_ext >&5
35363
35364eval "$as_ac_var=no"
35365fi
ac1cb8d3
VS
35366rm -f conftest.err conftest.$ac_objext \
35367 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35368fi
35369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35370echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35371if test `eval echo '${'$as_ac_var'}'` = yes; then
35372 cat >>confdefs.h <<_ACEOF
35373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35374_ACEOF
35375 break
35376fi
35377done
35378
35379
35380
35381
35382ac_ext=cc
35383ac_cpp='$CXXCPP $CPPFLAGS'
35384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35387
35388
35389
35390for ac_func in strtok_r
35391do
35392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35393echo "$as_me:$LINENO: checking for $ac_func" >&5
35394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35395if eval "test \"\${$as_ac_var+set}\" = set"; then
35396 echo $ECHO_N "(cached) $ECHO_C" >&6
35397else
35398 cat >conftest.$ac_ext <<_ACEOF
35399/* confdefs.h. */
35400_ACEOF
35401cat confdefs.h >>conftest.$ac_ext
35402cat >>conftest.$ac_ext <<_ACEOF
35403/* end confdefs.h. */
ac1cb8d3
VS
35404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35406#define $ac_func innocuous_$ac_func
35407
a848cd7e
SC
35408/* System header to define __stub macros and hopefully few prototypes,
35409 which can conflict with char $ac_func (); below.
35410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35411 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35412
a848cd7e
SC
35413#ifdef __STDC__
35414# include <limits.h>
35415#else
35416# include <assert.h>
35417#endif
ac1cb8d3
VS
35418
35419#undef $ac_func
35420
a848cd7e
SC
35421/* Override any gcc2 internal prototype to avoid an error. */
35422#ifdef __cplusplus
35423extern "C"
35424{
35425#endif
35426/* We use char because int might match the return type of a gcc2
35427 builtin and then its argument prototype would still apply. */
35428char $ac_func ();
35429/* The GNU C library defines this for functions which it implements
35430 to always fail with ENOSYS. Some functions are actually named
35431 something starting with __ and the normal name is an alias. */
35432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35433choke me
35434#else
35435char (*f) () = $ac_func;
35436#endif
35437#ifdef __cplusplus
35438}
35439#endif
35440
35441int
35442main ()
35443{
35444return f != $ac_func;
35445 ;
35446 return 0;
35447}
35448_ACEOF
35449rm -f conftest.$ac_objext conftest$ac_exeext
35450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35451 (eval $ac_link) 2>conftest.er1
a848cd7e 35452 ac_status=$?
ac1cb8d3
VS
35453 grep -v '^ *+' conftest.er1 >conftest.err
35454 rm -f conftest.er1
35455 cat conftest.err >&5
a848cd7e
SC
35456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457 (exit $ac_status); } &&
6ebeb4c7 35458 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35460 (eval $ac_try) 2>&5
35461 ac_status=$?
35462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35463 (exit $ac_status); }; } &&
35464 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35466 (eval $ac_try) 2>&5
35467 ac_status=$?
35468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469 (exit $ac_status); }; }; then
35470 eval "$as_ac_var=yes"
35471else
35472 echo "$as_me: failed program was:" >&5
35473sed 's/^/| /' conftest.$ac_ext >&5
35474
35475eval "$as_ac_var=no"
35476fi
ac1cb8d3
VS
35477rm -f conftest.err conftest.$ac_objext \
35478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35479fi
35480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35481echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35482if test `eval echo '${'$as_ac_var'}'` = yes; then
35483 cat >>confdefs.h <<_ACEOF
35484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35485_ACEOF
35486
35487fi
35488done
35489
35490
35491ac_ext=c
35492ac_cpp='$CPP $CPPFLAGS'
35493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35495ac_compiler_gnu=$ac_cv_c_compiler_gnu
35496
35497
35498INET_LINK=
35499
35500for ac_func in inet_addr
35501do
35502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35503echo "$as_me:$LINENO: checking for $ac_func" >&5
35504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35505if eval "test \"\${$as_ac_var+set}\" = set"; then
35506 echo $ECHO_N "(cached) $ECHO_C" >&6
35507else
35508 cat >conftest.$ac_ext <<_ACEOF
35509/* confdefs.h. */
35510_ACEOF
35511cat confdefs.h >>conftest.$ac_ext
35512cat >>conftest.$ac_ext <<_ACEOF
35513/* end confdefs.h. */
ac1cb8d3
VS
35514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35516#define $ac_func innocuous_$ac_func
35517
a848cd7e
SC
35518/* System header to define __stub macros and hopefully few prototypes,
35519 which can conflict with char $ac_func (); below.
35520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35521 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35522
a848cd7e
SC
35523#ifdef __STDC__
35524# include <limits.h>
35525#else
35526# include <assert.h>
35527#endif
ac1cb8d3
VS
35528
35529#undef $ac_func
35530
a848cd7e
SC
35531/* Override any gcc2 internal prototype to avoid an error. */
35532#ifdef __cplusplus
35533extern "C"
35534{
35535#endif
35536/* We use char because int might match the return type of a gcc2
35537 builtin and then its argument prototype would still apply. */
35538char $ac_func ();
35539/* The GNU C library defines this for functions which it implements
35540 to always fail with ENOSYS. Some functions are actually named
35541 something starting with __ and the normal name is an alias. */
35542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35543choke me
35544#else
35545char (*f) () = $ac_func;
35546#endif
35547#ifdef __cplusplus
35548}
35549#endif
35550
35551int
35552main ()
35553{
35554return f != $ac_func;
35555 ;
35556 return 0;
35557}
35558_ACEOF
35559rm -f conftest.$ac_objext conftest$ac_exeext
35560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35561 (eval $ac_link) 2>conftest.er1
a848cd7e 35562 ac_status=$?
ac1cb8d3
VS
35563 grep -v '^ *+' conftest.er1 >conftest.err
35564 rm -f conftest.er1
35565 cat conftest.err >&5
a848cd7e
SC
35566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567 (exit $ac_status); } &&
6ebeb4c7 35568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35570 (eval $ac_try) 2>&5
35571 ac_status=$?
35572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35573 (exit $ac_status); }; } &&
35574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35576 (eval $ac_try) 2>&5
35577 ac_status=$?
35578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579 (exit $ac_status); }; }; then
35580 eval "$as_ac_var=yes"
35581else
35582 echo "$as_me: failed program was:" >&5
35583sed 's/^/| /' conftest.$ac_ext >&5
35584
35585eval "$as_ac_var=no"
35586fi
ac1cb8d3
VS
35587rm -f conftest.err conftest.$ac_objext \
35588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35589fi
35590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35592if test `eval echo '${'$as_ac_var'}'` = yes; then
35593 cat >>confdefs.h <<_ACEOF
35594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35595_ACEOF
35596 cat >>confdefs.h <<\_ACEOF
35597#define HAVE_INET_ADDR 1
35598_ACEOF
35599
35600else
35601
35602 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35603echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35604if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35605 echo $ECHO_N "(cached) $ECHO_C" >&6
35606else
35607 ac_check_lib_save_LIBS=$LIBS
35608LIBS="-lnsl $LIBS"
35609cat >conftest.$ac_ext <<_ACEOF
35610/* confdefs.h. */
35611_ACEOF
35612cat confdefs.h >>conftest.$ac_ext
35613cat >>conftest.$ac_ext <<_ACEOF
35614/* end confdefs.h. */
35615
35616/* Override any gcc2 internal prototype to avoid an error. */
35617#ifdef __cplusplus
35618extern "C"
35619#endif
35620/* We use char because int might match the return type of a gcc2
35621 builtin and then its argument prototype would still apply. */
35622char inet_addr ();
35623int
35624main ()
35625{
35626inet_addr ();
35627 ;
35628 return 0;
35629}
35630_ACEOF
35631rm -f conftest.$ac_objext conftest$ac_exeext
35632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35633 (eval $ac_link) 2>conftest.er1
a848cd7e 35634 ac_status=$?
ac1cb8d3
VS
35635 grep -v '^ *+' conftest.er1 >conftest.err
35636 rm -f conftest.er1
35637 cat conftest.err >&5
a848cd7e
SC
35638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639 (exit $ac_status); } &&
6ebeb4c7 35640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35642 (eval $ac_try) 2>&5
35643 ac_status=$?
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); }; } &&
35646 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35648 (eval $ac_try) 2>&5
35649 ac_status=$?
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); }; }; then
35652 ac_cv_lib_nsl_inet_addr=yes
35653else
35654 echo "$as_me: failed program was:" >&5
35655sed 's/^/| /' conftest.$ac_ext >&5
35656
35657ac_cv_lib_nsl_inet_addr=no
35658fi
ac1cb8d3
VS
35659rm -f conftest.err conftest.$ac_objext \
35660 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35661LIBS=$ac_check_lib_save_LIBS
35662fi
35663echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35664echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35665if test $ac_cv_lib_nsl_inet_addr = yes; then
35666 INET_LINK="nsl"
35667else
35668
35669 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35670echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35671if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35672 echo $ECHO_N "(cached) $ECHO_C" >&6
35673else
35674 ac_check_lib_save_LIBS=$LIBS
35675LIBS="-lresolv $LIBS"
35676cat >conftest.$ac_ext <<_ACEOF
35677/* confdefs.h. */
35678_ACEOF
35679cat confdefs.h >>conftest.$ac_ext
35680cat >>conftest.$ac_ext <<_ACEOF
35681/* end confdefs.h. */
35682
35683/* Override any gcc2 internal prototype to avoid an error. */
35684#ifdef __cplusplus
35685extern "C"
35686#endif
35687/* We use char because int might match the return type of a gcc2
35688 builtin and then its argument prototype would still apply. */
35689char inet_addr ();
35690int
35691main ()
35692{
35693inet_addr ();
35694 ;
35695 return 0;
35696}
35697_ACEOF
35698rm -f conftest.$ac_objext conftest$ac_exeext
35699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35700 (eval $ac_link) 2>conftest.er1
a848cd7e 35701 ac_status=$?
ac1cb8d3
VS
35702 grep -v '^ *+' conftest.er1 >conftest.err
35703 rm -f conftest.er1
35704 cat conftest.err >&5
a848cd7e
SC
35705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706 (exit $ac_status); } &&
6ebeb4c7 35707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709 (eval $ac_try) 2>&5
35710 ac_status=$?
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); }; } &&
35713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35715 (eval $ac_try) 2>&5
35716 ac_status=$?
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); }; }; then
35719 ac_cv_lib_resolv_inet_addr=yes
35720else
35721 echo "$as_me: failed program was:" >&5
35722sed 's/^/| /' conftest.$ac_ext >&5
35723
35724ac_cv_lib_resolv_inet_addr=no
35725fi
ac1cb8d3
VS
35726rm -f conftest.err conftest.$ac_objext \
35727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35728LIBS=$ac_check_lib_save_LIBS
35729fi
35730echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35731echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35732if test $ac_cv_lib_resolv_inet_addr = yes; then
35733 INET_LINK="resolv"
35734else
35735
35736 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35737echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35738if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35739 echo $ECHO_N "(cached) $ECHO_C" >&6
35740else
35741 ac_check_lib_save_LIBS=$LIBS
35742LIBS="-lsocket $LIBS"
35743cat >conftest.$ac_ext <<_ACEOF
35744/* confdefs.h. */
35745_ACEOF
35746cat confdefs.h >>conftest.$ac_ext
35747cat >>conftest.$ac_ext <<_ACEOF
35748/* end confdefs.h. */
35749
35750/* Override any gcc2 internal prototype to avoid an error. */
35751#ifdef __cplusplus
35752extern "C"
35753#endif
35754/* We use char because int might match the return type of a gcc2
35755 builtin and then its argument prototype would still apply. */
35756char inet_addr ();
35757int
35758main ()
35759{
35760inet_addr ();
35761 ;
35762 return 0;
35763}
35764_ACEOF
35765rm -f conftest.$ac_objext conftest$ac_exeext
35766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35767 (eval $ac_link) 2>conftest.er1
a848cd7e 35768 ac_status=$?
ac1cb8d3
VS
35769 grep -v '^ *+' conftest.er1 >conftest.err
35770 rm -f conftest.er1
35771 cat conftest.err >&5
a848cd7e
SC
35772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773 (exit $ac_status); } &&
6ebeb4c7 35774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35776 (eval $ac_try) 2>&5
35777 ac_status=$?
35778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779 (exit $ac_status); }; } &&
35780 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35782 (eval $ac_try) 2>&5
35783 ac_status=$?
35784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35785 (exit $ac_status); }; }; then
35786 ac_cv_lib_socket_inet_addr=yes
35787else
35788 echo "$as_me: failed program was:" >&5
35789sed 's/^/| /' conftest.$ac_ext >&5
35790
35791ac_cv_lib_socket_inet_addr=no
35792fi
ac1cb8d3
VS
35793rm -f conftest.err conftest.$ac_objext \
35794 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35795LIBS=$ac_check_lib_save_LIBS
35796fi
35797echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35798echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35799if test $ac_cv_lib_socket_inet_addr = yes; then
35800 INET_LINK="socket"
35801
35802fi
35803
35804
35805
35806fi
35807
35808
35809
35810fi
35811
35812
35813
35814fi
35815done
35816
35817
35818
35819for ac_func in inet_aton
35820do
35821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35822echo "$as_me:$LINENO: checking for $ac_func" >&5
35823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35824if eval "test \"\${$as_ac_var+set}\" = set"; then
35825 echo $ECHO_N "(cached) $ECHO_C" >&6
35826else
35827 cat >conftest.$ac_ext <<_ACEOF
35828/* confdefs.h. */
35829_ACEOF
35830cat confdefs.h >>conftest.$ac_ext
35831cat >>conftest.$ac_ext <<_ACEOF
35832/* end confdefs.h. */
ac1cb8d3
VS
35833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35835#define $ac_func innocuous_$ac_func
35836
a848cd7e
SC
35837/* System header to define __stub macros and hopefully few prototypes,
35838 which can conflict with char $ac_func (); below.
35839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35840 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35841
a848cd7e
SC
35842#ifdef __STDC__
35843# include <limits.h>
35844#else
35845# include <assert.h>
35846#endif
ac1cb8d3
VS
35847
35848#undef $ac_func
35849
a848cd7e
SC
35850/* Override any gcc2 internal prototype to avoid an error. */
35851#ifdef __cplusplus
35852extern "C"
35853{
35854#endif
35855/* We use char because int might match the return type of a gcc2
35856 builtin and then its argument prototype would still apply. */
35857char $ac_func ();
35858/* The GNU C library defines this for functions which it implements
35859 to always fail with ENOSYS. Some functions are actually named
35860 something starting with __ and the normal name is an alias. */
35861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35862choke me
35863#else
35864char (*f) () = $ac_func;
35865#endif
35866#ifdef __cplusplus
35867}
35868#endif
35869
35870int
35871main ()
35872{
35873return f != $ac_func;
35874 ;
35875 return 0;
35876}
35877_ACEOF
35878rm -f conftest.$ac_objext conftest$ac_exeext
35879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35880 (eval $ac_link) 2>conftest.er1
a848cd7e 35881 ac_status=$?
ac1cb8d3
VS
35882 grep -v '^ *+' conftest.er1 >conftest.err
35883 rm -f conftest.er1
35884 cat conftest.err >&5
a848cd7e
SC
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); } &&
6ebeb4c7 35887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35889 (eval $ac_try) 2>&5
35890 ac_status=$?
35891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892 (exit $ac_status); }; } &&
35893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35895 (eval $ac_try) 2>&5
35896 ac_status=$?
35897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); }; }; then
35899 eval "$as_ac_var=yes"
35900else
35901 echo "$as_me: failed program was:" >&5
35902sed 's/^/| /' conftest.$ac_ext >&5
35903
35904eval "$as_ac_var=no"
35905fi
ac1cb8d3
VS
35906rm -f conftest.err conftest.$ac_objext \
35907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35908fi
35909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35911if test `eval echo '${'$as_ac_var'}'` = yes; then
35912 cat >>confdefs.h <<_ACEOF
35913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35914_ACEOF
35915 cat >>confdefs.h <<\_ACEOF
35916#define HAVE_INET_ATON 1
35917_ACEOF
35918
35919else
35920
35921 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
35922echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
35923echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
35924if eval "test \"\${$as_ac_Lib+set}\" = set"; then
35925 echo $ECHO_N "(cached) $ECHO_C" >&6
35926else
35927 ac_check_lib_save_LIBS=$LIBS
35928LIBS="-l$INET_LINK $LIBS"
35929cat >conftest.$ac_ext <<_ACEOF
35930/* confdefs.h. */
35931_ACEOF
35932cat confdefs.h >>conftest.$ac_ext
35933cat >>conftest.$ac_ext <<_ACEOF
35934/* end confdefs.h. */
35935
35936/* Override any gcc2 internal prototype to avoid an error. */
35937#ifdef __cplusplus
35938extern "C"
35939#endif
35940/* We use char because int might match the return type of a gcc2
35941 builtin and then its argument prototype would still apply. */
35942char inet_aton ();
35943int
35944main ()
35945{
35946inet_aton ();
35947 ;
35948 return 0;
35949}
35950_ACEOF
35951rm -f conftest.$ac_objext conftest$ac_exeext
35952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35953 (eval $ac_link) 2>conftest.er1
a848cd7e 35954 ac_status=$?
ac1cb8d3
VS
35955 grep -v '^ *+' conftest.er1 >conftest.err
35956 rm -f conftest.er1
35957 cat conftest.err >&5
a848cd7e
SC
35958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959 (exit $ac_status); } &&
6ebeb4c7 35960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35962 (eval $ac_try) 2>&5
35963 ac_status=$?
35964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35965 (exit $ac_status); }; } &&
35966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35968 (eval $ac_try) 2>&5
35969 ac_status=$?
35970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971 (exit $ac_status); }; }; then
35972 eval "$as_ac_Lib=yes"
35973else
35974 echo "$as_me: failed program was:" >&5
35975sed 's/^/| /' conftest.$ac_ext >&5
35976
35977eval "$as_ac_Lib=no"
35978fi
ac1cb8d3
VS
35979rm -f conftest.err conftest.$ac_objext \
35980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35981LIBS=$ac_check_lib_save_LIBS
35982fi
35983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
35984echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
35985if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35986 cat >>confdefs.h <<\_ACEOF
35987#define HAVE_INET_ATON 1
35988_ACEOF
35989
35990fi
35991
35992
35993fi
35994done
35995
35996
35997if test "x$INET_LINK" != "x"; then
35998 cat >>confdefs.h <<\_ACEOF
35999#define HAVE_INET_ADDR 1
36000_ACEOF
36001
36002 INET_LINK=" -l$INET_LINK"
36003fi
36004
36005fi
36006
36007
36008
36009EXTRALIBS_ESD=
36010echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36011echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36012if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36013 echo $ECHO_N "(cached) $ECHO_C" >&6
36014else
36015 ac_check_lib_save_LIBS=$LIBS
36016LIBS="-lesd $LIBS"
36017cat >conftest.$ac_ext <<_ACEOF
36018/* confdefs.h. */
36019_ACEOF
36020cat confdefs.h >>conftest.$ac_ext
36021cat >>conftest.$ac_ext <<_ACEOF
36022/* end confdefs.h. */
36023
36024/* Override any gcc2 internal prototype to avoid an error. */
36025#ifdef __cplusplus
36026extern "C"
36027#endif
36028/* We use char because int might match the return type of a gcc2
36029 builtin and then its argument prototype would still apply. */
36030char esd_close ();
36031int
36032main ()
36033{
36034esd_close ();
36035 ;
36036 return 0;
36037}
36038_ACEOF
36039rm -f conftest.$ac_objext conftest$ac_exeext
36040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36041 (eval $ac_link) 2>conftest.er1
a848cd7e 36042 ac_status=$?
ac1cb8d3
VS
36043 grep -v '^ *+' conftest.er1 >conftest.err
36044 rm -f conftest.er1
36045 cat conftest.err >&5
a848cd7e
SC
36046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047 (exit $ac_status); } &&
6ebeb4c7 36048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36050 (eval $ac_try) 2>&5
36051 ac_status=$?
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); }; } &&
36054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36056 (eval $ac_try) 2>&5
36057 ac_status=$?
36058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36059 (exit $ac_status); }; }; then
36060 ac_cv_lib_esd_esd_close=yes
36061else
36062 echo "$as_me: failed program was:" >&5
36063sed 's/^/| /' conftest.$ac_ext >&5
36064
36065ac_cv_lib_esd_esd_close=no
36066fi
ac1cb8d3
VS
36067rm -f conftest.err conftest.$ac_objext \
36068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36069LIBS=$ac_check_lib_save_LIBS
36070fi
36071echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36072echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36073if test $ac_cv_lib_esd_esd_close = yes; then
36074
36075
36076for ac_header in esd.h
36077do
36078as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36079if eval "test \"\${$as_ac_Header+set}\" = set"; then
36080 echo "$as_me:$LINENO: checking for $ac_header" >&5
36081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36082if eval "test \"\${$as_ac_Header+set}\" = set"; then
36083 echo $ECHO_N "(cached) $ECHO_C" >&6
36084fi
36085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36087else
36088 # Is the header compilable?
36089echo "$as_me:$LINENO: checking $ac_header usability" >&5
36090echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36091cat >conftest.$ac_ext <<_ACEOF
36092/* confdefs.h. */
36093_ACEOF
36094cat confdefs.h >>conftest.$ac_ext
36095cat >>conftest.$ac_ext <<_ACEOF
36096/* end confdefs.h. */
36097$ac_includes_default
36098#include <$ac_header>
36099_ACEOF
36100rm -f conftest.$ac_objext
36101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36102 (eval $ac_compile) 2>conftest.er1
a848cd7e 36103 ac_status=$?
ac1cb8d3
VS
36104 grep -v '^ *+' conftest.er1 >conftest.err
36105 rm -f conftest.er1
36106 cat conftest.err >&5
a848cd7e
SC
36107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36108 (exit $ac_status); } &&
6ebeb4c7 36109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36111 (eval $ac_try) 2>&5
36112 ac_status=$?
36113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36114 (exit $ac_status); }; } &&
36115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36117 (eval $ac_try) 2>&5
36118 ac_status=$?
36119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36120 (exit $ac_status); }; }; then
36121 ac_header_compiler=yes
36122else
36123 echo "$as_me: failed program was:" >&5
36124sed 's/^/| /' conftest.$ac_ext >&5
36125
36126ac_header_compiler=no
36127fi
ac1cb8d3 36128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36130echo "${ECHO_T}$ac_header_compiler" >&6
36131
36132# Is the header present?
36133echo "$as_me:$LINENO: checking $ac_header presence" >&5
36134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36135cat >conftest.$ac_ext <<_ACEOF
36136/* confdefs.h. */
36137_ACEOF
36138cat confdefs.h >>conftest.$ac_ext
36139cat >>conftest.$ac_ext <<_ACEOF
36140/* end confdefs.h. */
36141#include <$ac_header>
36142_ACEOF
36143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36145 ac_status=$?
36146 grep -v '^ *+' conftest.er1 >conftest.err
36147 rm -f conftest.er1
36148 cat conftest.err >&5
36149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150 (exit $ac_status); } >/dev/null; then
36151 if test -s conftest.err; then
36152 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36154 else
36155 ac_cpp_err=
36156 fi
36157else
36158 ac_cpp_err=yes
36159fi
36160if test -z "$ac_cpp_err"; then
36161 ac_header_preproc=yes
36162else
36163 echo "$as_me: failed program was:" >&5
36164sed 's/^/| /' conftest.$ac_ext >&5
36165
36166 ac_header_preproc=no
36167fi
36168rm -f conftest.err conftest.$ac_ext
36169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36170echo "${ECHO_T}$ac_header_preproc" >&6
36171
36172# So? What about this header?
ac1cb8d3
VS
36173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36174 yes:no: )
a848cd7e
SC
36175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36179 ac_header_preproc=yes
a848cd7e 36180 ;;
ac1cb8d3 36181 no:yes:* )
a848cd7e
SC
36182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36194 (
36195 cat <<\_ASBOX
ac1cb8d3
VS
36196## ----------------------------------------- ##
36197## Report this to wx-dev@lists.wxwidgets.org ##
36198## ----------------------------------------- ##
a848cd7e
SC
36199_ASBOX
36200 ) |
36201 sed "s/^/$as_me: WARNING: /" >&2
36202 ;;
36203esac
36204echo "$as_me:$LINENO: checking for $ac_header" >&5
36205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36206if eval "test \"\${$as_ac_Header+set}\" = set"; then
36207 echo $ECHO_N "(cached) $ECHO_C" >&6
36208else
ac1cb8d3 36209 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36210fi
36211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36213
36214fi
36215if test `eval echo '${'$as_ac_Header'}'` = yes; then
36216 cat >>confdefs.h <<_ACEOF
36217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36218_ACEOF
36219
36220 EXTRALIBS_ESD="-lesd"
36221
36222fi
36223
36224done
36225
36226
36227fi
36228
36229
36230
36231echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36232echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36233cat >conftest.$ac_ext <<_ACEOF
36234/* confdefs.h. */
36235_ACEOF
36236cat confdefs.h >>conftest.$ac_ext
36237cat >>conftest.$ac_ext <<_ACEOF
36238/* end confdefs.h. */
36239#ifdef __linux__
36240 #include <linux/cdrom.h>
36241 #else
36242 /* For Solaris */
36243 #include <sys/cdio.h>
36244 #endif
36245
36246int
36247main ()
36248{
36249struct cdrom_tocentry entry, old_entry;
36250 ;
36251 return 0;
36252}
36253_ACEOF
36254rm -f conftest.$ac_objext
36255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36256 (eval $ac_compile) 2>conftest.er1
a848cd7e 36257 ac_status=$?
ac1cb8d3
VS
36258 grep -v '^ *+' conftest.er1 >conftest.err
36259 rm -f conftest.er1
36260 cat conftest.err >&5
a848cd7e
SC
36261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36262 (exit $ac_status); } &&
6ebeb4c7 36263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36265 (eval $ac_try) 2>&5
36266 ac_status=$?
36267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36268 (exit $ac_status); }; } &&
36269 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36271 (eval $ac_try) 2>&5
36272 ac_status=$?
36273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36274 (exit $ac_status); }; }; then
36275 echo "$as_me:$LINENO: result: yes" >&5
36276echo "${ECHO_T}yes" >&6
36277 cat >>confdefs.h <<\_ACEOF
36278#define HAVE_KNOWN_CDROM_INTERFACE 1
36279_ACEOF
36280
36281else
36282 echo "$as_me: failed program was:" >&5
36283sed 's/^/| /' conftest.$ac_ext >&5
36284
36285echo "$as_me:$LINENO: result: no" >&5
36286echo "${ECHO_T}no" >&6
36287fi
ac1cb8d3 36288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36289
36290
36291cat >confcache <<\_ACEOF
36292# This file is a shell script that caches the results of configure
36293# tests run on this system so they can be shared between configure
36294# scripts and configure runs, see configure's option --config-cache.
36295# It is not useful on other systems. If it contains results you don't
36296# want to keep, you may remove or edit it.
36297#
36298# config.status only pays attention to the cache file if you give it
36299# the --recheck option to rerun configure.
36300#
36301# `ac_cv_env_foo' variables (set or unset) will be overridden when
36302# loading this file, other *unset* `ac_cv_foo' will be assigned the
36303# following values.
36304
36305_ACEOF
36306
36307# The following way of writing the cache mishandles newlines in values,
36308# but we know of no workaround that is simple, portable, and efficient.
36309# So, don't put newlines in cache variables' values.
36310# Ultrix sh set writes to stderr and can't be redirected directly,
36311# and sets the high bit in the cache file unless we assign to the vars.
36312{
36313 (set) 2>&1 |
36314 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36315 *ac_space=\ *)
36316 # `set' does not quote correctly, so add quotes (double-quote
36317 # substitution turns \\\\ into \\, and sed turns \\ into \).
36318 sed -n \
ac1cb8d3
VS
36319 "s/'/'\\\\''/g;
36320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36321 ;;
36322 *)
36323 # `set' quotes correctly as required by POSIX, so do not add quotes.
36324 sed -n \
ac1cb8d3 36325 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36326 ;;
36327 esac;
36328} |
36329 sed '
36330 t clear
36331 : clear
36332 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36333 t end
36334 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36335 : end' >>confcache
36336if diff $cache_file confcache >/dev/null 2>&1; then :; else
36337 if test -w $cache_file; then
36338 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36339 cat confcache >$cache_file
36340 else
36341 echo "not updating unwritable cache $cache_file"
36342 fi
36343fi
36344rm -f confcache
36345
36346
36347CPP_MT_FLAG=
36348if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36349
36350
36351 THREADS_LINK=
36352 THREADS_CFLAGS=
36353
36354 if test "$wxUSE_THREADS" = "yes" ; then
36355 if test "$USE_BEOS" = 1; then
36356 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36357echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36358 wxUSE_THREADS="no"
36359 fi
36360 fi
36361
36362 if test "$wxUSE_THREADS" = "yes" ; then
36363
36364
36365 THREAD_OPTS="-pthread"
36366 case "${host}" in
36367 *-*-solaris2* | *-*-sunos4* )
36368 if test "x$GCC" = "xyes"; then
36369 THREAD_OPTS="-pthreads $THREAD_OPTS"
36370 else
36371 THREAD_OPTS="-mt $THREAD_OPTS"
36372 fi
36373 ;;
36374 *-*-freebsd*)
36375 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36376 ;;
36377 *-*-darwin* | *-*-cygwin* )
36378 THREAD_OPTS=""
36379 ;;
36380 *-*-aix*)
36381 THREAD_OPTS="pthreads"
36382 ;;
36383 *-hp-hpux* )
00421666
MW
36384 if test "x$GCC" = "xyes"; then
36385 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36386 THREAD_OPTS=""
36387 else
efdf6afe 36388 THREAD_OPTS=""
a848cd7e
SC
36389 fi
36390 ;;
36391
36392 *-*-irix* )
36393 if test "x$GCC" = "xyes"; then
36394 THREAD_OPTS=""
36395 fi
36396 ;;
36397
36398 *-*-*UnixWare*)
36399 if test "x$GCC" != "xyes"; then
36400 THREAD_OPTS="-Ethread"
36401 fi
36402 ;;
36403 esac
36404
36405 THREAD_OPTS="$THREAD_OPTS pthread none"
36406
36407 THREADS_OK=no
36408 for flag in $THREAD_OPTS; do
36409 case $flag in
36410 none)
36411 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36412echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36413 ;;
36414
36415 -*)
36416 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36417echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36418 THREADS_CFLAGS="$flag"
36419 ;;
36420
36421 *)
36422 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36423echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36424 THREADS_LINK="-l$flag"
36425 ;;
36426 esac
36427
36428 save_LIBS="$LIBS"
36429 save_CFLAGS="$CFLAGS"
36430 LIBS="$THREADS_LINK $LIBS"
36431 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36432
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. */
36439#include <pthread.h>
36440int
36441main ()
36442{
36443pthread_create(0,0,0,0);
36444 ;
36445 return 0;
36446}
36447_ACEOF
36448rm -f conftest.$ac_objext conftest$ac_exeext
36449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36450 (eval $ac_link) 2>conftest.er1
a848cd7e 36451 ac_status=$?
ac1cb8d3
VS
36452 grep -v '^ *+' conftest.er1 >conftest.err
36453 rm -f conftest.er1
36454 cat conftest.err >&5
a848cd7e
SC
36455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456 (exit $ac_status); } &&
6ebeb4c7 36457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36459 (eval $ac_try) 2>&5
36460 ac_status=$?
36461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462 (exit $ac_status); }; } &&
36463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36465 (eval $ac_try) 2>&5
36466 ac_status=$?
36467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468 (exit $ac_status); }; }; then
36469 THREADS_OK=yes
36470else
36471 echo "$as_me: failed program was:" >&5
36472sed 's/^/| /' conftest.$ac_ext >&5
36473
36474fi
ac1cb8d3
VS
36475rm -f conftest.err conftest.$ac_objext \
36476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36477
36478 LIBS="$save_LIBS"
36479 CFLAGS="$save_CFLAGS"
36480
36481 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36482echo "${ECHO_T}$THREADS_OK" >&6
36483 if test "x$THREADS_OK" = "xyes"; then
36484 break;
36485 fi
36486
36487 THREADS_LINK=""
36488 THREADS_CFLAGS=""
36489 done
36490
36491 if test "x$THREADS_OK" != "xyes"; then
36492 wxUSE_THREADS=no
36493 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36494echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36495 else
36496 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36497 LIBS="$THREADS_LINK $LIBS"
36498
36499 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36500echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36501 flag=no
36502 case "${host}" in
36503 *-aix*)
36504 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36505 flag="-D_THREAD_SAFE"
36506 ;;
36507 *-freebsd*)
36508 flag="-D_THREAD_SAFE"
36509 ;;
36510 *-hp-hpux* )
36511 flag="-D_REENTRANT"
36512 if test "x$GCC" != "xyes"; then
36513 flag="$flag -D_RWSTD_MULTI_THREAD"
36514 fi
36515 ;;
36516 *solaris* | alpha*-osf*)
36517 flag="-D_REENTRANT"
36518 ;;
36519 esac
36520 echo "$as_me:$LINENO: result: ${flag}" >&5
36521echo "${ECHO_T}${flag}" >&6
36522 if test "x$flag" != xno; then
36523 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
36524 fi
36525
36526 if test "x$THREADS_CFLAGS" != "x"; then
36527 CFLAGS="$CFLAGS $THREADS_CFLAGS"
36528 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
36529 fi
36530 fi
36531 fi
36532
36533 if test "$wxUSE_THREADS" = "yes" ; then
36534
36535for ac_func in thr_setconcurrency
36536do
36537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36538echo "$as_me:$LINENO: checking for $ac_func" >&5
36539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36540if eval "test \"\${$as_ac_var+set}\" = set"; then
36541 echo $ECHO_N "(cached) $ECHO_C" >&6
36542else
36543 cat >conftest.$ac_ext <<_ACEOF
36544/* confdefs.h. */
36545_ACEOF
36546cat confdefs.h >>conftest.$ac_ext
36547cat >>conftest.$ac_ext <<_ACEOF
36548/* end confdefs.h. */
ac1cb8d3
VS
36549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36551#define $ac_func innocuous_$ac_func
36552
a848cd7e
SC
36553/* System header to define __stub macros and hopefully few prototypes,
36554 which can conflict with char $ac_func (); below.
36555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36556 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36557
a848cd7e
SC
36558#ifdef __STDC__
36559# include <limits.h>
36560#else
36561# include <assert.h>
36562#endif
ac1cb8d3
VS
36563
36564#undef $ac_func
36565
a848cd7e
SC
36566/* Override any gcc2 internal prototype to avoid an error. */
36567#ifdef __cplusplus
36568extern "C"
36569{
36570#endif
36571/* We use char because int might match the return type of a gcc2
36572 builtin and then its argument prototype would still apply. */
36573char $ac_func ();
36574/* The GNU C library defines this for functions which it implements
36575 to always fail with ENOSYS. Some functions are actually named
36576 something starting with __ and the normal name is an alias. */
36577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36578choke me
36579#else
36580char (*f) () = $ac_func;
36581#endif
36582#ifdef __cplusplus
36583}
36584#endif
36585
36586int
36587main ()
36588{
36589return f != $ac_func;
36590 ;
36591 return 0;
36592}
36593_ACEOF
36594rm -f conftest.$ac_objext conftest$ac_exeext
36595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36596 (eval $ac_link) 2>conftest.er1
a848cd7e 36597 ac_status=$?
ac1cb8d3
VS
36598 grep -v '^ *+' conftest.er1 >conftest.err
36599 rm -f conftest.er1
36600 cat conftest.err >&5
a848cd7e
SC
36601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36602 (exit $ac_status); } &&
6ebeb4c7 36603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36605 (eval $ac_try) 2>&5
36606 ac_status=$?
36607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608 (exit $ac_status); }; } &&
36609 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36611 (eval $ac_try) 2>&5
36612 ac_status=$?
36613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36614 (exit $ac_status); }; }; then
36615 eval "$as_ac_var=yes"
36616else
36617 echo "$as_me: failed program was:" >&5
36618sed 's/^/| /' conftest.$ac_ext >&5
36619
36620eval "$as_ac_var=no"
36621fi
ac1cb8d3
VS
36622rm -f conftest.err conftest.$ac_objext \
36623 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36624fi
36625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36626echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36627if test `eval echo '${'$as_ac_var'}'` = yes; then
36628 cat >>confdefs.h <<_ACEOF
36629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36630_ACEOF
36631
36632fi
36633done
36634
36635
6ebeb4c7
VZ
36636 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36637echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36638if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36639 echo $ECHO_N "(cached) $ECHO_C" >&6
36640else
36641
36642 cat >conftest.$ac_ext <<_ACEOF
36643/* confdefs.h. */
36644_ACEOF
36645cat confdefs.h >>conftest.$ac_ext
36646cat >>conftest.$ac_ext <<_ACEOF
36647/* end confdefs.h. */
36648#include <pthread.h>
36649 void ThreadCleanupFunc(void *p);
36650
36651int
36652main ()
36653{
36654
36655 void *p;
36656 pthread_cleanup_push(ThreadCleanupFunc, p);
36657 pthread_cleanup_pop(0);
36658
36659 ;
36660 return 0;
36661}
36662_ACEOF
36663rm -f conftest.$ac_objext
36664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36665 (eval $ac_compile) 2>conftest.er1
36666 ac_status=$?
36667 grep -v '^ *+' conftest.er1 >conftest.err
36668 rm -f conftest.er1
36669 cat conftest.err >&5
36670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36671 (exit $ac_status); } &&
36672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36674 (eval $ac_try) 2>&5
36675 ac_status=$?
36676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36677 (exit $ac_status); }; } &&
36678 { ac_try='test -s conftest.$ac_objext'
36679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36680 (eval $ac_try) 2>&5
36681 ac_status=$?
36682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36683 (exit $ac_status); }; }; then
36684
36685 wx_cv_func_pthread_cleanup=yes
36686
36687else
36688 echo "$as_me: failed program was:" >&5
36689sed 's/^/| /' conftest.$ac_ext >&5
36690
36691
36692 wx_cv_func_pthread_cleanup=no
36693
36694
36695fi
36696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36697
36698fi
36699echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36700echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36701 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36702 cat >>confdefs.h <<\_ACEOF
36703#define wxHAVE_PTHREAD_CLEANUP 1
36704_ACEOF
36705
36706 fi
36707
a848cd7e
SC
36708
36709for ac_header in sched.h
36710do
36711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36712if eval "test \"\${$as_ac_Header+set}\" = set"; then
36713 echo "$as_me:$LINENO: checking for $ac_header" >&5
36714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36715if eval "test \"\${$as_ac_Header+set}\" = set"; then
36716 echo $ECHO_N "(cached) $ECHO_C" >&6
36717fi
36718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36720else
36721 # Is the header compilable?
36722echo "$as_me:$LINENO: checking $ac_header usability" >&5
36723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36724cat >conftest.$ac_ext <<_ACEOF
36725/* confdefs.h. */
36726_ACEOF
36727cat confdefs.h >>conftest.$ac_ext
36728cat >>conftest.$ac_ext <<_ACEOF
36729/* end confdefs.h. */
36730$ac_includes_default
36731#include <$ac_header>
36732_ACEOF
36733rm -f conftest.$ac_objext
36734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36735 (eval $ac_compile) 2>conftest.er1
a848cd7e 36736 ac_status=$?
ac1cb8d3
VS
36737 grep -v '^ *+' conftest.er1 >conftest.err
36738 rm -f conftest.er1
36739 cat conftest.err >&5
a848cd7e
SC
36740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741 (exit $ac_status); } &&
6ebeb4c7 36742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36744 (eval $ac_try) 2>&5
36745 ac_status=$?
36746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36747 (exit $ac_status); }; } &&
36748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36750 (eval $ac_try) 2>&5
36751 ac_status=$?
36752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36753 (exit $ac_status); }; }; then
36754 ac_header_compiler=yes
36755else
36756 echo "$as_me: failed program was:" >&5
36757sed 's/^/| /' conftest.$ac_ext >&5
36758
36759ac_header_compiler=no
36760fi
ac1cb8d3 36761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36762echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36763echo "${ECHO_T}$ac_header_compiler" >&6
36764
36765# Is the header present?
36766echo "$as_me:$LINENO: checking $ac_header presence" >&5
36767echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36768cat >conftest.$ac_ext <<_ACEOF
36769/* confdefs.h. */
36770_ACEOF
36771cat confdefs.h >>conftest.$ac_ext
36772cat >>conftest.$ac_ext <<_ACEOF
36773/* end confdefs.h. */
36774#include <$ac_header>
36775_ACEOF
36776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36778 ac_status=$?
36779 grep -v '^ *+' conftest.er1 >conftest.err
36780 rm -f conftest.er1
36781 cat conftest.err >&5
36782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783 (exit $ac_status); } >/dev/null; then
36784 if test -s conftest.err; then
36785 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36787 else
36788 ac_cpp_err=
36789 fi
36790else
36791 ac_cpp_err=yes
36792fi
36793if test -z "$ac_cpp_err"; then
36794 ac_header_preproc=yes
36795else
36796 echo "$as_me: failed program was:" >&5
36797sed 's/^/| /' conftest.$ac_ext >&5
36798
36799 ac_header_preproc=no
36800fi
36801rm -f conftest.err conftest.$ac_ext
36802echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36803echo "${ECHO_T}$ac_header_preproc" >&6
36804
36805# So? What about this header?
ac1cb8d3
VS
36806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36807 yes:no: )
a848cd7e
SC
36808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36809echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36811echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36812 ac_header_preproc=yes
a848cd7e 36813 ;;
ac1cb8d3 36814 no:yes:* )
a848cd7e
SC
36815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36816echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36818echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36820echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36822echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36824echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36826echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36827 (
36828 cat <<\_ASBOX
ac1cb8d3
VS
36829## ----------------------------------------- ##
36830## Report this to wx-dev@lists.wxwidgets.org ##
36831## ----------------------------------------- ##
a848cd7e
SC
36832_ASBOX
36833 ) |
36834 sed "s/^/$as_me: WARNING: /" >&2
36835 ;;
36836esac
36837echo "$as_me:$LINENO: checking for $ac_header" >&5
36838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36839if eval "test \"\${$as_ac_Header+set}\" = set"; then
36840 echo $ECHO_N "(cached) $ECHO_C" >&6
36841else
ac1cb8d3 36842 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36843fi
36844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36845echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36846
36847fi
36848if test `eval echo '${'$as_ac_Header'}'` = yes; then
36849 cat >>confdefs.h <<_ACEOF
36850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36851_ACEOF
36852
36853fi
36854
36855done
36856
36857 if test "$ac_cv_header_sched_h" = "yes"; then
36858 echo "$as_me:$LINENO: checking for sched_yield" >&5
36859echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36860if test "${ac_cv_func_sched_yield+set}" = set; then
36861 echo $ECHO_N "(cached) $ECHO_C" >&6
36862else
36863 cat >conftest.$ac_ext <<_ACEOF
36864/* confdefs.h. */
36865_ACEOF
36866cat confdefs.h >>conftest.$ac_ext
36867cat >>conftest.$ac_ext <<_ACEOF
36868/* end confdefs.h. */
ac1cb8d3
VS
36869/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36871#define sched_yield innocuous_sched_yield
36872
a848cd7e
SC
36873/* System header to define __stub macros and hopefully few prototypes,
36874 which can conflict with char sched_yield (); below.
36875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36876 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36877
a848cd7e
SC
36878#ifdef __STDC__
36879# include <limits.h>
36880#else
36881# include <assert.h>
36882#endif
ac1cb8d3
VS
36883
36884#undef sched_yield
36885
a848cd7e
SC
36886/* Override any gcc2 internal prototype to avoid an error. */
36887#ifdef __cplusplus
36888extern "C"
36889{
36890#endif
36891/* We use char because int might match the return type of a gcc2
36892 builtin and then its argument prototype would still apply. */
36893char sched_yield ();
36894/* The GNU C library defines this for functions which it implements
36895 to always fail with ENOSYS. Some functions are actually named
36896 something starting with __ and the normal name is an alias. */
36897#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36898choke me
36899#else
36900char (*f) () = sched_yield;
36901#endif
36902#ifdef __cplusplus
36903}
36904#endif
36905
36906int
36907main ()
36908{
36909return f != sched_yield;
36910 ;
36911 return 0;
36912}
36913_ACEOF
36914rm -f conftest.$ac_objext conftest$ac_exeext
36915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36916 (eval $ac_link) 2>conftest.er1
a848cd7e 36917 ac_status=$?
ac1cb8d3
VS
36918 grep -v '^ *+' conftest.er1 >conftest.err
36919 rm -f conftest.er1
36920 cat conftest.err >&5
a848cd7e
SC
36921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36922 (exit $ac_status); } &&
6ebeb4c7 36923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36925 (eval $ac_try) 2>&5
36926 ac_status=$?
36927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36928 (exit $ac_status); }; } &&
36929 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36931 (eval $ac_try) 2>&5
36932 ac_status=$?
36933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934 (exit $ac_status); }; }; then
36935 ac_cv_func_sched_yield=yes
36936else
36937 echo "$as_me: failed program was:" >&5
36938sed 's/^/| /' conftest.$ac_ext >&5
36939
36940ac_cv_func_sched_yield=no
36941fi
ac1cb8d3
VS
36942rm -f conftest.err conftest.$ac_objext \
36943 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36944fi
36945echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
36946echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
36947if test $ac_cv_func_sched_yield = yes; then
36948 cat >>confdefs.h <<\_ACEOF
36949#define HAVE_SCHED_YIELD 1
36950_ACEOF
36951
36952else
36953
36954 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
36955echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
36956if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
36957 echo $ECHO_N "(cached) $ECHO_C" >&6
36958else
36959 ac_check_lib_save_LIBS=$LIBS
36960LIBS="-lposix4 $LIBS"
36961cat >conftest.$ac_ext <<_ACEOF
36962/* confdefs.h. */
36963_ACEOF
36964cat confdefs.h >>conftest.$ac_ext
36965cat >>conftest.$ac_ext <<_ACEOF
36966/* end confdefs.h. */
36967
36968/* Override any gcc2 internal prototype to avoid an error. */
36969#ifdef __cplusplus
36970extern "C"
36971#endif
36972/* We use char because int might match the return type of a gcc2
36973 builtin and then its argument prototype would still apply. */
36974char sched_yield ();
36975int
36976main ()
36977{
36978sched_yield ();
36979 ;
36980 return 0;
36981}
36982_ACEOF
36983rm -f conftest.$ac_objext conftest$ac_exeext
36984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36985 (eval $ac_link) 2>conftest.er1
a848cd7e 36986 ac_status=$?
ac1cb8d3
VS
36987 grep -v '^ *+' conftest.er1 >conftest.err
36988 rm -f conftest.er1
36989 cat conftest.err >&5
a848cd7e
SC
36990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36991 (exit $ac_status); } &&
6ebeb4c7 36992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36994 (eval $ac_try) 2>&5
36995 ac_status=$?
36996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36997 (exit $ac_status); }; } &&
36998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37000 (eval $ac_try) 2>&5
37001 ac_status=$?
37002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37003 (exit $ac_status); }; }; then
37004 ac_cv_lib_posix4_sched_yield=yes
37005else
37006 echo "$as_me: failed program was:" >&5
37007sed 's/^/| /' conftest.$ac_ext >&5
37008
37009ac_cv_lib_posix4_sched_yield=no
37010fi
ac1cb8d3
VS
37011rm -f conftest.err conftest.$ac_objext \
37012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37013LIBS=$ac_check_lib_save_LIBS
37014fi
37015echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37016echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37017if test $ac_cv_lib_posix4_sched_yield = yes; then
37018 cat >>confdefs.h <<\_ACEOF
37019#define HAVE_SCHED_YIELD 1
37020_ACEOF
37021 POSIX4_LINK=" -lposix4"
37022else
37023 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37024echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37025
37026fi
37027
37028
37029
37030fi
37031
37032 fi
37033
37034 HAVE_PRIOR_FUNCS=0
37035 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37036echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37037if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37038 echo $ECHO_N "(cached) $ECHO_C" >&6
37039else
37040 cat >conftest.$ac_ext <<_ACEOF
37041/* confdefs.h. */
37042_ACEOF
37043cat confdefs.h >>conftest.$ac_ext
37044cat >>conftest.$ac_ext <<_ACEOF
37045/* end confdefs.h. */
ac1cb8d3
VS
37046/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37048#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37049
a848cd7e
SC
37050/* System header to define __stub macros and hopefully few prototypes,
37051 which can conflict with char pthread_attr_getschedpolicy (); below.
37052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37053 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37054
a848cd7e
SC
37055#ifdef __STDC__
37056# include <limits.h>
37057#else
37058# include <assert.h>
37059#endif
ac1cb8d3
VS
37060
37061#undef pthread_attr_getschedpolicy
37062
a848cd7e
SC
37063/* Override any gcc2 internal prototype to avoid an error. */
37064#ifdef __cplusplus
37065extern "C"
37066{
37067#endif
37068/* We use char because int might match the return type of a gcc2
37069 builtin and then its argument prototype would still apply. */
37070char pthread_attr_getschedpolicy ();
37071/* The GNU C library defines this for functions which it implements
37072 to always fail with ENOSYS. Some functions are actually named
37073 something starting with __ and the normal name is an alias. */
37074#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37075choke me
37076#else
37077char (*f) () = pthread_attr_getschedpolicy;
37078#endif
37079#ifdef __cplusplus
37080}
37081#endif
37082
37083int
37084main ()
37085{
37086return f != pthread_attr_getschedpolicy;
37087 ;
37088 return 0;
37089}
37090_ACEOF
37091rm -f conftest.$ac_objext conftest$ac_exeext
37092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37093 (eval $ac_link) 2>conftest.er1
a848cd7e 37094 ac_status=$?
ac1cb8d3
VS
37095 grep -v '^ *+' conftest.er1 >conftest.err
37096 rm -f conftest.er1
37097 cat conftest.err >&5
a848cd7e
SC
37098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099 (exit $ac_status); } &&
6ebeb4c7 37100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37102 (eval $ac_try) 2>&5
37103 ac_status=$?
37104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 (exit $ac_status); }; } &&
37106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37108 (eval $ac_try) 2>&5
37109 ac_status=$?
37110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111 (exit $ac_status); }; }; then
37112 ac_cv_func_pthread_attr_getschedpolicy=yes
37113else
37114 echo "$as_me: failed program was:" >&5
37115sed 's/^/| /' conftest.$ac_ext >&5
37116
37117ac_cv_func_pthread_attr_getschedpolicy=no
37118fi
ac1cb8d3
VS
37119rm -f conftest.err conftest.$ac_objext \
37120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37121fi
37122echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37123echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37124if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37125 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37126echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37127if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37128 echo $ECHO_N "(cached) $ECHO_C" >&6
37129else
37130 cat >conftest.$ac_ext <<_ACEOF
37131/* confdefs.h. */
37132_ACEOF
37133cat confdefs.h >>conftest.$ac_ext
37134cat >>conftest.$ac_ext <<_ACEOF
37135/* end confdefs.h. */
ac1cb8d3
VS
37136/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37138#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37139
a848cd7e
SC
37140/* System header to define __stub macros and hopefully few prototypes,
37141 which can conflict with char pthread_attr_setschedparam (); below.
37142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37143 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37144
a848cd7e
SC
37145#ifdef __STDC__
37146# include <limits.h>
37147#else
37148# include <assert.h>
37149#endif
ac1cb8d3
VS
37150
37151#undef pthread_attr_setschedparam
37152
a848cd7e
SC
37153/* Override any gcc2 internal prototype to avoid an error. */
37154#ifdef __cplusplus
37155extern "C"
37156{
37157#endif
37158/* We use char because int might match the return type of a gcc2
37159 builtin and then its argument prototype would still apply. */
37160char pthread_attr_setschedparam ();
37161/* The GNU C library defines this for functions which it implements
37162 to always fail with ENOSYS. Some functions are actually named
37163 something starting with __ and the normal name is an alias. */
37164#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37165choke me
37166#else
37167char (*f) () = pthread_attr_setschedparam;
37168#endif
37169#ifdef __cplusplus
37170}
37171#endif
37172
37173int
37174main ()
37175{
37176return f != pthread_attr_setschedparam;
37177 ;
37178 return 0;
37179}
37180_ACEOF
37181rm -f conftest.$ac_objext conftest$ac_exeext
37182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37183 (eval $ac_link) 2>conftest.er1
a848cd7e 37184 ac_status=$?
ac1cb8d3
VS
37185 grep -v '^ *+' conftest.er1 >conftest.err
37186 rm -f conftest.er1
37187 cat conftest.err >&5
a848cd7e
SC
37188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37189 (exit $ac_status); } &&
6ebeb4c7 37190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37192 (eval $ac_try) 2>&5
37193 ac_status=$?
37194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37195 (exit $ac_status); }; } &&
37196 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37198 (eval $ac_try) 2>&5
37199 ac_status=$?
37200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37201 (exit $ac_status); }; }; then
37202 ac_cv_func_pthread_attr_setschedparam=yes
37203else
37204 echo "$as_me: failed program was:" >&5
37205sed 's/^/| /' conftest.$ac_ext >&5
37206
37207ac_cv_func_pthread_attr_setschedparam=no
37208fi
ac1cb8d3
VS
37209rm -f conftest.err conftest.$ac_objext \
37210 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37211fi
37212echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37213echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37214if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37215 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37216echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37217if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37218 echo $ECHO_N "(cached) $ECHO_C" >&6
37219else
37220 cat >conftest.$ac_ext <<_ACEOF
37221/* confdefs.h. */
37222_ACEOF
37223cat confdefs.h >>conftest.$ac_ext
37224cat >>conftest.$ac_ext <<_ACEOF
37225/* end confdefs.h. */
ac1cb8d3
VS
37226/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37228#define sched_get_priority_max innocuous_sched_get_priority_max
37229
a848cd7e
SC
37230/* System header to define __stub macros and hopefully few prototypes,
37231 which can conflict with char sched_get_priority_max (); below.
37232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37233 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37234
a848cd7e
SC
37235#ifdef __STDC__
37236# include <limits.h>
37237#else
37238# include <assert.h>
37239#endif
ac1cb8d3
VS
37240
37241#undef sched_get_priority_max
37242
a848cd7e
SC
37243/* Override any gcc2 internal prototype to avoid an error. */
37244#ifdef __cplusplus
37245extern "C"
37246{
37247#endif
37248/* We use char because int might match the return type of a gcc2
37249 builtin and then its argument prototype would still apply. */
37250char sched_get_priority_max ();
37251/* The GNU C library defines this for functions which it implements
37252 to always fail with ENOSYS. Some functions are actually named
37253 something starting with __ and the normal name is an alias. */
37254#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37255choke me
37256#else
37257char (*f) () = sched_get_priority_max;
37258#endif
37259#ifdef __cplusplus
37260}
37261#endif
37262
37263int
37264main ()
37265{
37266return f != sched_get_priority_max;
37267 ;
37268 return 0;
37269}
37270_ACEOF
37271rm -f conftest.$ac_objext conftest$ac_exeext
37272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37273 (eval $ac_link) 2>conftest.er1
a848cd7e 37274 ac_status=$?
ac1cb8d3
VS
37275 grep -v '^ *+' conftest.er1 >conftest.err
37276 rm -f conftest.er1
37277 cat conftest.err >&5
a848cd7e
SC
37278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37279 (exit $ac_status); } &&
6ebeb4c7 37280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37282 (eval $ac_try) 2>&5
37283 ac_status=$?
37284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37285 (exit $ac_status); }; } &&
37286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37288 (eval $ac_try) 2>&5
37289 ac_status=$?
37290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291 (exit $ac_status); }; }; then
37292 ac_cv_func_sched_get_priority_max=yes
37293else
37294 echo "$as_me: failed program was:" >&5
37295sed 's/^/| /' conftest.$ac_ext >&5
37296
37297ac_cv_func_sched_get_priority_max=no
37298fi
ac1cb8d3
VS
37299rm -f conftest.err conftest.$ac_objext \
37300 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37301fi
37302echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37303echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37304if test $ac_cv_func_sched_get_priority_max = yes; then
37305 HAVE_PRIOR_FUNCS=1
37306else
37307 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37308echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37309if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37310 echo $ECHO_N "(cached) $ECHO_C" >&6
37311else
37312 ac_check_lib_save_LIBS=$LIBS
37313LIBS="-lposix4 $LIBS"
37314cat >conftest.$ac_ext <<_ACEOF
37315/* confdefs.h. */
37316_ACEOF
37317cat confdefs.h >>conftest.$ac_ext
37318cat >>conftest.$ac_ext <<_ACEOF
37319/* end confdefs.h. */
37320
37321/* Override any gcc2 internal prototype to avoid an error. */
37322#ifdef __cplusplus
37323extern "C"
37324#endif
37325/* We use char because int might match the return type of a gcc2
37326 builtin and then its argument prototype would still apply. */
37327char sched_get_priority_max ();
37328int
37329main ()
37330{
37331sched_get_priority_max ();
37332 ;
37333 return 0;
37334}
37335_ACEOF
37336rm -f conftest.$ac_objext conftest$ac_exeext
37337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37338 (eval $ac_link) 2>conftest.er1
a848cd7e 37339 ac_status=$?
ac1cb8d3
VS
37340 grep -v '^ *+' conftest.er1 >conftest.err
37341 rm -f conftest.er1
37342 cat conftest.err >&5
a848cd7e
SC
37343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37344 (exit $ac_status); } &&
6ebeb4c7 37345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37347 (eval $ac_try) 2>&5
37348 ac_status=$?
37349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37350 (exit $ac_status); }; } &&
37351 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37353 (eval $ac_try) 2>&5
37354 ac_status=$?
37355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37356 (exit $ac_status); }; }; then
37357 ac_cv_lib_posix4_sched_get_priority_max=yes
37358else
37359 echo "$as_me: failed program was:" >&5
37360sed 's/^/| /' conftest.$ac_ext >&5
37361
37362ac_cv_lib_posix4_sched_get_priority_max=no
37363fi
ac1cb8d3
VS
37364rm -f conftest.err conftest.$ac_objext \
37365 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37366LIBS=$ac_check_lib_save_LIBS
37367fi
37368echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37369echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37370if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37371
37372 HAVE_PRIOR_FUNCS=1
37373 POSIX4_LINK=" -lposix4"
37374
37375fi
37376
37377
37378fi
37379
37380
37381fi
37382
37383
37384fi
37385
37386
37387 if test "$HAVE_PRIOR_FUNCS" = 1; then
37388 cat >>confdefs.h <<\_ACEOF
37389#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37390_ACEOF
37391
37392 else
37393 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37394echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37395 fi
37396
37397 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37398echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37399if test "${ac_cv_func_pthread_cancel+set}" = set; then
37400 echo $ECHO_N "(cached) $ECHO_C" >&6
37401else
37402 cat >conftest.$ac_ext <<_ACEOF
37403/* confdefs.h. */
37404_ACEOF
37405cat confdefs.h >>conftest.$ac_ext
37406cat >>conftest.$ac_ext <<_ACEOF
37407/* end confdefs.h. */
ac1cb8d3
VS
37408/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37410#define pthread_cancel innocuous_pthread_cancel
37411
a848cd7e
SC
37412/* System header to define __stub macros and hopefully few prototypes,
37413 which can conflict with char pthread_cancel (); below.
37414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37415 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37416
a848cd7e
SC
37417#ifdef __STDC__
37418# include <limits.h>
37419#else
37420# include <assert.h>
37421#endif
ac1cb8d3
VS
37422
37423#undef pthread_cancel
37424
a848cd7e
SC
37425/* Override any gcc2 internal prototype to avoid an error. */
37426#ifdef __cplusplus
37427extern "C"
37428{
37429#endif
37430/* We use char because int might match the return type of a gcc2
37431 builtin and then its argument prototype would still apply. */
37432char pthread_cancel ();
37433/* The GNU C library defines this for functions which it implements
37434 to always fail with ENOSYS. Some functions are actually named
37435 something starting with __ and the normal name is an alias. */
37436#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37437choke me
37438#else
37439char (*f) () = pthread_cancel;
37440#endif
37441#ifdef __cplusplus
37442}
37443#endif
37444
37445int
37446main ()
37447{
37448return f != pthread_cancel;
37449 ;
37450 return 0;
37451}
37452_ACEOF
37453rm -f conftest.$ac_objext conftest$ac_exeext
37454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37455 (eval $ac_link) 2>conftest.er1
a848cd7e 37456 ac_status=$?
ac1cb8d3
VS
37457 grep -v '^ *+' conftest.er1 >conftest.err
37458 rm -f conftest.er1
37459 cat conftest.err >&5
a848cd7e
SC
37460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37461 (exit $ac_status); } &&
6ebeb4c7 37462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37464 (eval $ac_try) 2>&5
37465 ac_status=$?
37466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37467 (exit $ac_status); }; } &&
37468 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
37474 ac_cv_func_pthread_cancel=yes
37475else
37476 echo "$as_me: failed program was:" >&5
37477sed 's/^/| /' conftest.$ac_ext >&5
37478
37479ac_cv_func_pthread_cancel=no
37480fi
ac1cb8d3
VS
37481rm -f conftest.err conftest.$ac_objext \
37482 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37483fi
37484echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37485echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37486if test $ac_cv_func_pthread_cancel = yes; then
37487 cat >>confdefs.h <<\_ACEOF
37488#define HAVE_PTHREAD_CANCEL 1
37489_ACEOF
37490
37491else
37492 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37493echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37494fi
37495
37496
abc736fd
MW
37497 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37498echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
37499if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
37500 echo $ECHO_N "(cached) $ECHO_C" >&6
37501else
37502 cat >conftest.$ac_ext <<_ACEOF
37503/* confdefs.h. */
37504_ACEOF
37505cat confdefs.h >>conftest.$ac_ext
37506cat >>conftest.$ac_ext <<_ACEOF
37507/* end confdefs.h. */
37508/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
37509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37510#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
37511
37512/* System header to define __stub macros and hopefully few prototypes,
37513 which can conflict with char pthread_attr_setstacksize (); below.
37514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37515 <limits.h> exists even on freestanding compilers. */
37516
37517#ifdef __STDC__
37518# include <limits.h>
37519#else
37520# include <assert.h>
37521#endif
37522
37523#undef pthread_attr_setstacksize
37524
37525/* Override any gcc2 internal prototype to avoid an error. */
37526#ifdef __cplusplus
37527extern "C"
37528{
37529#endif
37530/* We use char because int might match the return type of a gcc2
37531 builtin and then its argument prototype would still apply. */
37532char pthread_attr_setstacksize ();
37533/* The GNU C library defines this for functions which it implements
37534 to always fail with ENOSYS. Some functions are actually named
37535 something starting with __ and the normal name is an alias. */
37536#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37537choke me
37538#else
37539char (*f) () = pthread_attr_setstacksize;
37540#endif
37541#ifdef __cplusplus
37542}
37543#endif
37544
37545int
37546main ()
37547{
37548return f != pthread_attr_setstacksize;
37549 ;
37550 return 0;
37551}
37552_ACEOF
37553rm -f conftest.$ac_objext conftest$ac_exeext
37554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37555 (eval $ac_link) 2>conftest.er1
37556 ac_status=$?
37557 grep -v '^ *+' conftest.er1 >conftest.err
37558 rm -f conftest.er1
37559 cat conftest.err >&5
37560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561 (exit $ac_status); } &&
6ebeb4c7 37562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
37563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37564 (eval $ac_try) 2>&5
37565 ac_status=$?
37566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567 (exit $ac_status); }; } &&
37568 { ac_try='test -s conftest$ac_exeext'
37569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37570 (eval $ac_try) 2>&5
37571 ac_status=$?
37572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37573 (exit $ac_status); }; }; then
37574 ac_cv_func_pthread_attr_setstacksize=yes
37575else
37576 echo "$as_me: failed program was:" >&5
37577sed 's/^/| /' conftest.$ac_ext >&5
37578
37579ac_cv_func_pthread_attr_setstacksize=no
37580fi
37581rm -f conftest.err conftest.$ac_objext \
37582 conftest$ac_exeext conftest.$ac_ext
37583fi
37584echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37585echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37586if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37587 cat >>confdefs.h <<\_ACEOF
37588#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37589_ACEOF
37590
37591fi
37592
a848cd7e
SC
37593
37594
37595 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37596echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37597if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37598 echo $ECHO_N "(cached) $ECHO_C" >&6
37599else
37600
37601 cat >conftest.$ac_ext <<_ACEOF
37602/* confdefs.h. */
37603_ACEOF
37604cat confdefs.h >>conftest.$ac_ext
37605cat >>conftest.$ac_ext <<_ACEOF
37606/* end confdefs.h. */
37607#include <pthread.h>
37608int
37609main ()
37610{
37611
37612 pthread_mutexattr_t attr;
37613 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37614
37615 ;
37616 return 0;
37617}
37618_ACEOF
37619rm -f conftest.$ac_objext
37620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37621 (eval $ac_compile) 2>conftest.er1
a848cd7e 37622 ac_status=$?
ac1cb8d3
VS
37623 grep -v '^ *+' conftest.er1 >conftest.err
37624 rm -f conftest.er1
37625 cat conftest.err >&5
a848cd7e
SC
37626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627 (exit $ac_status); } &&
6ebeb4c7 37628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37630 (eval $ac_try) 2>&5
37631 ac_status=$?
37632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37633 (exit $ac_status); }; } &&
37634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37636 (eval $ac_try) 2>&5
37637 ac_status=$?
37638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37639 (exit $ac_status); }; }; then
123dca7d 37640 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
37641else
37642 echo "$as_me: failed program was:" >&5
37643sed 's/^/| /' conftest.$ac_ext >&5
37644
123dca7d 37645wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
37646
37647fi
ac1cb8d3 37648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37649
37650fi
37651echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37652echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37653
37654 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37655 cat >>confdefs.h <<\_ACEOF
37656#define HAVE_PTHREAD_MUTEXATTR_T 1
37657_ACEOF
37658
123dca7d
VZ
37659
37660 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37661echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37662if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37663 echo $ECHO_N "(cached) $ECHO_C" >&6
37664else
37665
37666 cat >conftest.$ac_ext <<_ACEOF
37667/* confdefs.h. */
37668_ACEOF
37669cat confdefs.h >>conftest.$ac_ext
37670cat >>conftest.$ac_ext <<_ACEOF
37671/* end confdefs.h. */
37672#include <pthread.h>
37673int
37674main ()
37675{
37676
37677 pthread_mutexattr_t attr;
37678 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37679
37680 ;
37681 return 0;
37682}
37683_ACEOF
37684rm -f conftest.$ac_objext
37685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37686 (eval $ac_compile) 2>conftest.er1
37687 ac_status=$?
37688 grep -v '^ *+' conftest.er1 >conftest.err
37689 rm -f conftest.er1
37690 cat conftest.err >&5
37691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37692 (exit $ac_status); } &&
37693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37695 (eval $ac_try) 2>&5
37696 ac_status=$?
37697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698 (exit $ac_status); }; } &&
37699 { ac_try='test -s conftest.$ac_objext'
37700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37701 (eval $ac_try) 2>&5
37702 ac_status=$?
37703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37704 (exit $ac_status); }; }; then
37705 wx_cv_func_pthread_mutexattr_settype_decl=yes
37706else
37707 echo "$as_me: failed program was:" >&5
37708sed 's/^/| /' conftest.$ac_ext >&5
37709
37710wx_cv_func_pthread_mutexattr_settype_decl=no
37711
37712fi
37713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37714
37715fi
37716echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
37717echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
37718 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
37719 cat >>confdefs.h <<\_ACEOF
37720#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
37721_ACEOF
37722
37723 fi
a848cd7e
SC
37724 else
37725 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37726echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37727if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37728 echo $ECHO_N "(cached) $ECHO_C" >&6
37729else
37730
37731 cat >conftest.$ac_ext <<_ACEOF
37732/* confdefs.h. */
37733_ACEOF
37734cat confdefs.h >>conftest.$ac_ext
37735cat >>conftest.$ac_ext <<_ACEOF
37736/* end confdefs.h. */
37737#include <pthread.h>
37738int
37739main ()
37740{
37741
37742 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37743
37744 ;
37745 return 0;
37746}
37747_ACEOF
37748rm -f conftest.$ac_objext
37749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37750 (eval $ac_compile) 2>conftest.er1
a848cd7e 37751 ac_status=$?
ac1cb8d3
VS
37752 grep -v '^ *+' conftest.er1 >conftest.err
37753 rm -f conftest.er1
37754 cat conftest.err >&5
a848cd7e
SC
37755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756 (exit $ac_status); } &&
6ebeb4c7 37757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37759 (eval $ac_try) 2>&5
37760 ac_status=$?
37761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); }; } &&
37763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37765 (eval $ac_try) 2>&5
37766 ac_status=$?
37767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37768 (exit $ac_status); }; }; then
37769
37770 wx_cv_type_pthread_rec_mutex_init=yes
37771
37772else
37773 echo "$as_me: failed program was:" >&5
37774sed 's/^/| /' conftest.$ac_ext >&5
37775
37776
37777 wx_cv_type_pthread_rec_mutex_init=no
37778
37779
37780fi
ac1cb8d3 37781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37782
37783fi
37784echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37785echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37786 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37787 cat >>confdefs.h <<\_ACEOF
37788#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37789_ACEOF
37790
37791 else
37792 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37793echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37794 fi
37795 fi
37796 fi
37797
37798else
37799 if test "$wxUSE_THREADS" = "yes" ; then
37800 case "${host}" in
37801 *-*-mingw32* )
37802 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37803echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37804if test "${wx_cv_cflags_mthread+set}" = set; then
37805 echo $ECHO_N "(cached) $ECHO_C" >&6
37806else
37807
37808 CFLAGS_OLD="$CFLAGS"
37809 CFLAGS="$CFLAGS -mthreads"
37810 cat >conftest.$ac_ext <<_ACEOF
37811/* confdefs.h. */
37812_ACEOF
37813cat confdefs.h >>conftest.$ac_ext
37814cat >>conftest.$ac_ext <<_ACEOF
37815/* end confdefs.h. */
37816
37817int
37818main ()
37819{
37820
37821 ;
37822 return 0;
37823}
37824_ACEOF
37825rm -f conftest.$ac_objext
37826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37827 (eval $ac_compile) 2>conftest.er1
a848cd7e 37828 ac_status=$?
ac1cb8d3
VS
37829 grep -v '^ *+' conftest.er1 >conftest.err
37830 rm -f conftest.er1
37831 cat conftest.err >&5
a848cd7e
SC
37832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37833 (exit $ac_status); } &&
6ebeb4c7 37834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37836 (eval $ac_try) 2>&5
37837 ac_status=$?
37838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37839 (exit $ac_status); }; } &&
37840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37842 (eval $ac_try) 2>&5
37843 ac_status=$?
37844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37845 (exit $ac_status); }; }; then
37846 wx_cv_cflags_mthread=yes
37847else
37848 echo "$as_me: failed program was:" >&5
37849sed 's/^/| /' conftest.$ac_ext >&5
37850
37851wx_cv_cflags_mthread=no
37852
37853fi
ac1cb8d3 37854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37855
37856
37857fi
37858echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37859echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37860
37861 if test "$wx_cv_cflags_mthread" = "yes"; then
37862 CXXFLAGS="$CXXFLAGS -mthreads"
37863 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
37864 LDFLAGS="$LDFLAGS -mthreads"
37865 else
37866 CFLAGS="$CFLAGS_OLD"
37867 fi
37868 ;;
37869 *-pc-os2*emx )
37870 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
37871 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
37872 LDFLAGS="$LDFLAGS -Zmt"
37873 ;;
37874 esac
37875 fi
37876fi
37877
37878if test "$wxUSE_THREADS" = "yes"; then
37879 cat >>confdefs.h <<\_ACEOF
37880#define wxUSE_THREADS 1
37881_ACEOF
37882
37883
37884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37885else
37886 if test "$ac_cv_func_strtok_r" = "yes"; then
37887 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37888echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37889 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
37890 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
37891 echo "$as_me:$LINENO: result: yes" >&5
37892echo "${ECHO_T}yes" >&6
37893 else
37894 echo "$as_me:$LINENO: result: no" >&5
37895echo "${ECHO_T}no" >&6
37896 fi
37897 fi
37898fi
37899
37900if test "$WXGTK20" = 1 ; then
37901 cat >>confdefs.h <<_ACEOF
37902#define __WXGTK20__ $WXGTK20
37903_ACEOF
37904
37905 WXGTK12=1
37906fi
37907
37908if test "$WXGTK12" = 1 ; then
37909 cat >>confdefs.h <<_ACEOF
37910#define __WXGTK12__ $WXGTK12
37911_ACEOF
37912
37913fi
37914
37915if test "$WXGTK127" = 1 ; then
37916 cat >>confdefs.h <<_ACEOF
37917#define __WXGTK127__ $WXGTK127
37918_ACEOF
37919
37920fi
37921
37922if test "$WXGPE" = 1 ; then
37923 cat >>confdefs.h <<_ACEOF
37924#define __WXGPE__ $WXGPE
37925_ACEOF
37926
37927fi
37928
37929WXDEBUG=
37930
37931if test "$wxUSE_DEBUG_INFO" = "yes" ; then
37932 WXDEBUG="-g"
37933 wxUSE_OPTIMISE=no
37934fi
37935
37936if test "$wxUSE_DEBUG_GDB" = "yes" ; then
37937 wxUSE_DEBUG_INFO=yes
18228ab4
MW
37938 if test "$GCC" = yes; then
37939 WXDEBUG="-ggdb"
37940 fi
a848cd7e
SC
37941fi
37942
37943if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
37944 cat >>confdefs.h <<\_ACEOF
37945#define WXDEBUG 1
37946_ACEOF
37947
37948 WXDEBUG_DEFINE="-D__WXDEBUG__"
37949else
37950 if test "$wxUSE_GTK" = 1 ; then
37951 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
37952 fi
37953fi
37954
37955if test "$wxUSE_MEM_TRACING" = "yes" ; then
37956 cat >>confdefs.h <<\_ACEOF
37957#define wxUSE_MEMORY_TRACING 1
37958_ACEOF
37959
37960 cat >>confdefs.h <<\_ACEOF
37961#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
37962_ACEOF
37963
37964 cat >>confdefs.h <<\_ACEOF
37965#define wxUSE_DEBUG_NEW_ALWAYS 1
37966_ACEOF
37967
37968 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
37969fi
37970
37971if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 37972 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
37973fi
37974
37975PROFILE=
37976if test "$wxUSE_PROFILE" = "yes" ; then
37977 PROFILE=" -pg"
37978fi
37979
37980CODE_GEN_FLAGS=
37981CODE_GEN_FLAGS_CXX=
37982if test "$GCC" = "yes" ; then
37983 if test "$wxUSE_NO_RTTI" = "yes" ; then
37984 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
37985 fi
37986 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37987 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
37988 fi
37989 if test "$wxUSE_PERMISSIVE" = "yes" ; then
37990 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
37991 fi
37992
37993 case "${host}" in
37994 powerpc*-*-aix* )
37995 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
37996 ;;
37997 *-hppa* )
37998 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
37999 ;;
38000 esac
38001fi
38002
38003OPTIMISE=
38004if test "$wxUSE_OPTIMISE" = "no" ; then
38005 if test "$GCC" = yes ; then
38006 OPTIMISE="-O0"
38007 fi
38008else
38009 if test "$GCC" = yes ; then
38010 OPTIMISE="-O2"
38011
38012 case "${host}" in
38013 i586-*-*|i686-*-* )
38014 OPTIMISE="${OPTIMISE} "
38015 ;;
38016 esac
38017 else
38018 OPTIMISE="-O"
38019 fi
38020fi
38021
38022
38023if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
38024 cat >>confdefs.h <<\_ACEOF
38025#define WXWIN_COMPATIBILITY_2_2 1
38026_ACEOF
38027
38028
38029 WXWIN_COMPATIBILITY_2_4="yes"
38030fi
38031
38032if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
38033 cat >>confdefs.h <<\_ACEOF
38034#define WXWIN_COMPATIBILITY_2_4 1
38035_ACEOF
38036
38037fi
38038
38039
38040if test "$wxUSE_GUI" = "yes"; then
881bfcd6 38041 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38042#define wxUSE_GUI 1
38043_ACEOF
38044
38045
370fd4c2 38046 fi
a848cd7e
SC
38047
38048
38049if test "$wxUSE_UNIX" = "yes"; then
38050 cat >>confdefs.h <<\_ACEOF
38051#define wxUSE_UNIX 1
38052_ACEOF
38053
38054fi
38055
38056
38057if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38058
38059 HAVE_DL_FUNCS=0
38060 HAVE_SHL_FUNCS=0
38061 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38062 if test "$USE_DARWIN" = 1; then
38063 HAVE_DL_FUNCS=1
47a7e797
MW
38064 elif test "$USE_DOS" = 1; then
38065 HAVE_DL_FUNCS=0
a848cd7e
SC
38066 else
38067
38068for ac_func in dlopen
38069do
38070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38071echo "$as_me:$LINENO: checking for $ac_func" >&5
38072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38073if eval "test \"\${$as_ac_var+set}\" = set"; then
38074 echo $ECHO_N "(cached) $ECHO_C" >&6
38075else
38076 cat >conftest.$ac_ext <<_ACEOF
38077/* confdefs.h. */
38078_ACEOF
38079cat confdefs.h >>conftest.$ac_ext
38080cat >>conftest.$ac_ext <<_ACEOF
38081/* end confdefs.h. */
ac1cb8d3
VS
38082/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38084#define $ac_func innocuous_$ac_func
38085
a848cd7e
SC
38086/* System header to define __stub macros and hopefully few prototypes,
38087 which can conflict with char $ac_func (); below.
38088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38089 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38090
a848cd7e
SC
38091#ifdef __STDC__
38092# include <limits.h>
38093#else
38094# include <assert.h>
38095#endif
ac1cb8d3
VS
38096
38097#undef $ac_func
38098
a848cd7e
SC
38099/* Override any gcc2 internal prototype to avoid an error. */
38100#ifdef __cplusplus
38101extern "C"
38102{
38103#endif
38104/* We use char because int might match the return type of a gcc2
38105 builtin and then its argument prototype would still apply. */
38106char $ac_func ();
38107/* The GNU C library defines this for functions which it implements
38108 to always fail with ENOSYS. Some functions are actually named
38109 something starting with __ and the normal name is an alias. */
38110#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38111choke me
38112#else
38113char (*f) () = $ac_func;
38114#endif
38115#ifdef __cplusplus
38116}
38117#endif
38118
38119int
38120main ()
38121{
38122return f != $ac_func;
38123 ;
38124 return 0;
38125}
38126_ACEOF
38127rm -f conftest.$ac_objext conftest$ac_exeext
38128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38129 (eval $ac_link) 2>conftest.er1
a848cd7e 38130 ac_status=$?
ac1cb8d3
VS
38131 grep -v '^ *+' conftest.er1 >conftest.err
38132 rm -f conftest.er1
38133 cat conftest.err >&5
a848cd7e
SC
38134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135 (exit $ac_status); } &&
6ebeb4c7 38136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38138 (eval $ac_try) 2>&5
38139 ac_status=$?
38140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141 (exit $ac_status); }; } &&
38142 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38144 (eval $ac_try) 2>&5
38145 ac_status=$?
38146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147 (exit $ac_status); }; }; then
38148 eval "$as_ac_var=yes"
38149else
38150 echo "$as_me: failed program was:" >&5
38151sed 's/^/| /' conftest.$ac_ext >&5
38152
38153eval "$as_ac_var=no"
38154fi
ac1cb8d3
VS
38155rm -f conftest.err conftest.$ac_objext \
38156 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38157fi
38158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38159echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38160if test `eval echo '${'$as_ac_var'}'` = yes; then
38161 cat >>confdefs.h <<_ACEOF
38162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38163_ACEOF
38164
38165 cat >>confdefs.h <<\_ACEOF
38166#define HAVE_DLOPEN 1
38167_ACEOF
38168
38169 HAVE_DL_FUNCS=1
38170
38171else
38172
38173 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
38174echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
38175if test "${ac_cv_lib_dl_dlopen+set}" = set; then
38176 echo $ECHO_N "(cached) $ECHO_C" >&6
38177else
38178 ac_check_lib_save_LIBS=$LIBS
38179LIBS="-ldl $LIBS"
38180cat >conftest.$ac_ext <<_ACEOF
38181/* confdefs.h. */
38182_ACEOF
38183cat confdefs.h >>conftest.$ac_ext
38184cat >>conftest.$ac_ext <<_ACEOF
38185/* end confdefs.h. */
38186
38187/* Override any gcc2 internal prototype to avoid an error. */
38188#ifdef __cplusplus
38189extern "C"
38190#endif
38191/* We use char because int might match the return type of a gcc2
38192 builtin and then its argument prototype would still apply. */
38193char dlopen ();
38194int
38195main ()
38196{
38197dlopen ();
38198 ;
38199 return 0;
38200}
38201_ACEOF
38202rm -f conftest.$ac_objext conftest$ac_exeext
38203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38204 (eval $ac_link) 2>conftest.er1
a848cd7e 38205 ac_status=$?
ac1cb8d3
VS
38206 grep -v '^ *+' conftest.er1 >conftest.err
38207 rm -f conftest.er1
38208 cat conftest.err >&5
a848cd7e
SC
38209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38210 (exit $ac_status); } &&
6ebeb4c7 38211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38213 (eval $ac_try) 2>&5
38214 ac_status=$?
38215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38216 (exit $ac_status); }; } &&
38217 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38219 (eval $ac_try) 2>&5
38220 ac_status=$?
38221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38222 (exit $ac_status); }; }; then
38223 ac_cv_lib_dl_dlopen=yes
38224else
38225 echo "$as_me: failed program was:" >&5
38226sed 's/^/| /' conftest.$ac_ext >&5
38227
38228ac_cv_lib_dl_dlopen=no
38229fi
ac1cb8d3
VS
38230rm -f conftest.err conftest.$ac_objext \
38231 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38232LIBS=$ac_check_lib_save_LIBS
38233fi
38234echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38235echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
38236if test $ac_cv_lib_dl_dlopen = yes; then
38237
38238 cat >>confdefs.h <<\_ACEOF
38239#define HAVE_DLOPEN 1
38240_ACEOF
38241
38242 HAVE_DL_FUNCS=1
38243 DL_LINK=" -ldl$DL_LINK"
38244
38245else
38246
38247
38248for ac_func in shl_load
38249do
38250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38251echo "$as_me:$LINENO: checking for $ac_func" >&5
38252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38253if eval "test \"\${$as_ac_var+set}\" = set"; then
38254 echo $ECHO_N "(cached) $ECHO_C" >&6
38255else
38256 cat >conftest.$ac_ext <<_ACEOF
38257/* confdefs.h. */
38258_ACEOF
38259cat confdefs.h >>conftest.$ac_ext
38260cat >>conftest.$ac_ext <<_ACEOF
38261/* end confdefs.h. */
ac1cb8d3
VS
38262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38264#define $ac_func innocuous_$ac_func
38265
a848cd7e
SC
38266/* System header to define __stub macros and hopefully few prototypes,
38267 which can conflict with char $ac_func (); below.
38268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38269 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38270
a848cd7e
SC
38271#ifdef __STDC__
38272# include <limits.h>
38273#else
38274# include <assert.h>
38275#endif
ac1cb8d3
VS
38276
38277#undef $ac_func
38278
a848cd7e
SC
38279/* Override any gcc2 internal prototype to avoid an error. */
38280#ifdef __cplusplus
38281extern "C"
38282{
38283#endif
38284/* We use char because int might match the return type of a gcc2
38285 builtin and then its argument prototype would still apply. */
38286char $ac_func ();
38287/* The GNU C library defines this for functions which it implements
38288 to always fail with ENOSYS. Some functions are actually named
38289 something starting with __ and the normal name is an alias. */
38290#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38291choke me
38292#else
38293char (*f) () = $ac_func;
38294#endif
38295#ifdef __cplusplus
38296}
38297#endif
38298
38299int
38300main ()
38301{
38302return f != $ac_func;
38303 ;
38304 return 0;
38305}
38306_ACEOF
38307rm -f conftest.$ac_objext conftest$ac_exeext
38308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38309 (eval $ac_link) 2>conftest.er1
a848cd7e 38310 ac_status=$?
ac1cb8d3
VS
38311 grep -v '^ *+' conftest.er1 >conftest.err
38312 rm -f conftest.er1
38313 cat conftest.err >&5
a848cd7e
SC
38314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38315 (exit $ac_status); } &&
6ebeb4c7 38316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38318 (eval $ac_try) 2>&5
38319 ac_status=$?
38320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38321 (exit $ac_status); }; } &&
38322 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38324 (eval $ac_try) 2>&5
38325 ac_status=$?
38326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38327 (exit $ac_status); }; }; then
38328 eval "$as_ac_var=yes"
38329else
38330 echo "$as_me: failed program was:" >&5
38331sed 's/^/| /' conftest.$ac_ext >&5
38332
38333eval "$as_ac_var=no"
38334fi
ac1cb8d3
VS
38335rm -f conftest.err conftest.$ac_objext \
38336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38337fi
38338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38339echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38340if test `eval echo '${'$as_ac_var'}'` = yes; then
38341 cat >>confdefs.h <<_ACEOF
38342#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38343_ACEOF
38344
38345 cat >>confdefs.h <<\_ACEOF
38346#define HAVE_SHL_LOAD 1
38347_ACEOF
38348
38349 HAVE_SHL_FUNCS=1
38350
38351else
38352
38353 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
38354echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
38355if test "${ac_cv_lib_shl_load_dld+set}" = set; then
38356 echo $ECHO_N "(cached) $ECHO_C" >&6
38357else
38358 ac_check_lib_save_LIBS=$LIBS
38359LIBS="-lshl_load $LIBS"
38360cat >conftest.$ac_ext <<_ACEOF
38361/* confdefs.h. */
38362_ACEOF
38363cat confdefs.h >>conftest.$ac_ext
38364cat >>conftest.$ac_ext <<_ACEOF
38365/* end confdefs.h. */
38366
38367/* Override any gcc2 internal prototype to avoid an error. */
38368#ifdef __cplusplus
38369extern "C"
38370#endif
38371/* We use char because int might match the return type of a gcc2
38372 builtin and then its argument prototype would still apply. */
38373char dld ();
38374int
38375main ()
38376{
38377dld ();
38378 ;
38379 return 0;
38380}
38381_ACEOF
38382rm -f conftest.$ac_objext conftest$ac_exeext
38383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38384 (eval $ac_link) 2>conftest.er1
a848cd7e 38385 ac_status=$?
ac1cb8d3
VS
38386 grep -v '^ *+' conftest.er1 >conftest.err
38387 rm -f conftest.er1
38388 cat conftest.err >&5
a848cd7e
SC
38389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38390 (exit $ac_status); } &&
6ebeb4c7 38391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38393 (eval $ac_try) 2>&5
38394 ac_status=$?
38395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38396 (exit $ac_status); }; } &&
38397 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38399 (eval $ac_try) 2>&5
38400 ac_status=$?
38401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38402 (exit $ac_status); }; }; then
38403 ac_cv_lib_shl_load_dld=yes
38404else
38405 echo "$as_me: failed program was:" >&5
38406sed 's/^/| /' conftest.$ac_ext >&5
38407
38408ac_cv_lib_shl_load_dld=no
38409fi
ac1cb8d3
VS
38410rm -f conftest.err conftest.$ac_objext \
38411 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38412LIBS=$ac_check_lib_save_LIBS
38413fi
38414echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
38415echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
38416if test $ac_cv_lib_shl_load_dld = yes; then
38417
38418 HAVE_SHL_FUNCS=1
38419 DL_LINK=" -ldld$DL_LINK"
38420
38421fi
38422
38423
38424fi
38425done
38426
38427
38428fi
38429
38430
38431fi
38432done
38433
38434
38435 if test "$HAVE_DL_FUNCS" = 1; then
38436
38437for ac_func in dlerror
38438do
38439as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38440echo "$as_me:$LINENO: checking for $ac_func" >&5
38441echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38442if eval "test \"\${$as_ac_var+set}\" = set"; then
38443 echo $ECHO_N "(cached) $ECHO_C" >&6
38444else
38445 cat >conftest.$ac_ext <<_ACEOF
38446/* confdefs.h. */
38447_ACEOF
38448cat confdefs.h >>conftest.$ac_ext
38449cat >>conftest.$ac_ext <<_ACEOF
38450/* end confdefs.h. */
ac1cb8d3
VS
38451/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38453#define $ac_func innocuous_$ac_func
38454
a848cd7e
SC
38455/* System header to define __stub macros and hopefully few prototypes,
38456 which can conflict with char $ac_func (); below.
38457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38458 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38459
a848cd7e
SC
38460#ifdef __STDC__
38461# include <limits.h>
38462#else
38463# include <assert.h>
38464#endif
ac1cb8d3
VS
38465
38466#undef $ac_func
38467
a848cd7e
SC
38468/* Override any gcc2 internal prototype to avoid an error. */
38469#ifdef __cplusplus
38470extern "C"
38471{
38472#endif
38473/* We use char because int might match the return type of a gcc2
38474 builtin and then its argument prototype would still apply. */
38475char $ac_func ();
38476/* The GNU C library defines this for functions which it implements
38477 to always fail with ENOSYS. Some functions are actually named
38478 something starting with __ and the normal name is an alias. */
38479#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38480choke me
38481#else
38482char (*f) () = $ac_func;
38483#endif
38484#ifdef __cplusplus
38485}
38486#endif
38487
38488int
38489main ()
38490{
38491return f != $ac_func;
38492 ;
38493 return 0;
38494}
38495_ACEOF
38496rm -f conftest.$ac_objext conftest$ac_exeext
38497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38498 (eval $ac_link) 2>conftest.er1
a848cd7e 38499 ac_status=$?
ac1cb8d3
VS
38500 grep -v '^ *+' conftest.er1 >conftest.err
38501 rm -f conftest.er1
38502 cat conftest.err >&5
a848cd7e
SC
38503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38504 (exit $ac_status); } &&
6ebeb4c7 38505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38507 (eval $ac_try) 2>&5
38508 ac_status=$?
38509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38510 (exit $ac_status); }; } &&
38511 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38513 (eval $ac_try) 2>&5
38514 ac_status=$?
38515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38516 (exit $ac_status); }; }; then
38517 eval "$as_ac_var=yes"
38518else
38519 echo "$as_me: failed program was:" >&5
38520sed 's/^/| /' conftest.$ac_ext >&5
38521
38522eval "$as_ac_var=no"
38523fi
ac1cb8d3
VS
38524rm -f conftest.err conftest.$ac_objext \
38525 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38526fi
38527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38528echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38529if test `eval echo '${'$as_ac_var'}'` = yes; then
38530 cat >>confdefs.h <<_ACEOF
38531#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38532_ACEOF
38533 cat >>confdefs.h <<\_ACEOF
38534#define HAVE_DLERROR 1
38535_ACEOF
38536
38537else
38538
38539 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
38540echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
38541if test "${ac_cv_lib_dl_dlerror+set}" = set; then
38542 echo $ECHO_N "(cached) $ECHO_C" >&6
38543else
38544 ac_check_lib_save_LIBS=$LIBS
38545LIBS="-ldl $LIBS"
38546cat >conftest.$ac_ext <<_ACEOF
38547/* confdefs.h. */
38548_ACEOF
38549cat confdefs.h >>conftest.$ac_ext
38550cat >>conftest.$ac_ext <<_ACEOF
38551/* end confdefs.h. */
38552
38553/* Override any gcc2 internal prototype to avoid an error. */
38554#ifdef __cplusplus
38555extern "C"
38556#endif
38557/* We use char because int might match the return type of a gcc2
38558 builtin and then its argument prototype would still apply. */
38559char dlerror ();
38560int
38561main ()
38562{
38563dlerror ();
38564 ;
38565 return 0;
38566}
38567_ACEOF
38568rm -f conftest.$ac_objext conftest$ac_exeext
38569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38570 (eval $ac_link) 2>conftest.er1
a848cd7e 38571 ac_status=$?
ac1cb8d3
VS
38572 grep -v '^ *+' conftest.er1 >conftest.err
38573 rm -f conftest.er1
38574 cat conftest.err >&5
a848cd7e
SC
38575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38576 (exit $ac_status); } &&
6ebeb4c7 38577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38579 (eval $ac_try) 2>&5
38580 ac_status=$?
38581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38582 (exit $ac_status); }; } &&
38583 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38585 (eval $ac_try) 2>&5
38586 ac_status=$?
38587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38588 (exit $ac_status); }; }; then
38589 ac_cv_lib_dl_dlerror=yes
38590else
38591 echo "$as_me: failed program was:" >&5
38592sed 's/^/| /' conftest.$ac_ext >&5
38593
38594ac_cv_lib_dl_dlerror=no
38595fi
ac1cb8d3
VS
38596rm -f conftest.err conftest.$ac_objext \
38597 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38598LIBS=$ac_check_lib_save_LIBS
38599fi
38600echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
38601echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
38602if test $ac_cv_lib_dl_dlerror = yes; then
38603 cat >>confdefs.h <<\_ACEOF
38604#define HAVE_DLERROR 1
38605_ACEOF
38606
38607fi
38608
38609
38610
38611fi
38612done
38613
38614 fi
38615 fi
38616
38617 if test "$HAVE_DL_FUNCS" = 0; then
38618 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 38619 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
38620 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
38621echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
38622 wxUSE_DYNAMIC_LOADER=no
38623 wxUSE_DYNLIB_CLASS=no
38624 else
38625 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
38626echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
38627 fi
38628 fi
38629 fi
38630 fi
38631fi
38632
38633if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38634 cat >>confdefs.h <<\_ACEOF
38635#define wxUSE_DYNAMIC_LOADER 1
38636_ACEOF
38637
38638fi
38639if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38640 cat >>confdefs.h <<\_ACEOF
38641#define wxUSE_DYNLIB_CLASS 1
38642_ACEOF
38643
38644fi
38645
38646
38647
38648if test "$wxUSE_PLUGINS" = "yes" ; then
38649 if test "$wxUSE_SHARED" = "no" ; then
38650 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38651echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38652 wxUSE_PLUGINS=no
38653 fi
38654 if test "$wxUSE_MONOLITHIC" = "yes" ; then
38655 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38656echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38657 wxUSE_PLUGINS=no
38658 fi
38659 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38660 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38661echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38662 wxUSE_PLUGINS=no
38663 fi
38664 if test "$wxUSE_PLUGINS" = "yes" ; then
38665 cat >>confdefs.h <<\_ACEOF
38666#define wxUSE_PLUGINS 1
38667_ACEOF
38668
38669 fi
38670fi
38671
38672
38673if test "$wxUSE_STL" = "yes"; then
38674 cat >>confdefs.h <<\_ACEOF
38675#define wxUSE_STL 1
38676_ACEOF
38677
38678fi
38679
38680if test "$wxUSE_APPLE_IEEE" = "yes"; then
38681 cat >>confdefs.h <<\_ACEOF
38682#define wxUSE_APPLE_IEEE 1
38683_ACEOF
38684
38685fi
38686
38687if test "$wxUSE_TIMER" = "yes"; then
38688 cat >>confdefs.h <<\_ACEOF
38689#define wxUSE_TIMER 1
38690_ACEOF
38691
38692fi
38693
9c112555 38694if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
38695 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38696echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38697if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 38698 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38699else
d12aef51
VZ
38700
38701 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38702/* confdefs.h. */
38703_ACEOF
38704cat confdefs.h >>conftest.$ac_ext
38705cat >>conftest.$ac_ext <<_ACEOF
38706/* end confdefs.h. */
d12aef51
VZ
38707
38708 #include <sys/soundcard.h>
38709
38710int
38711main ()
38712{
38713
38714 ioctl(0, SNDCTL_DSP_SYNC, 0);
38715
38716 ;
38717 return 0;
38718}
a848cd7e 38719_ACEOF
d12aef51
VZ
38720rm -f conftest.$ac_objext conftest$ac_exeext
38721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38722 (eval $ac_link) 2>conftest.er1
a848cd7e 38723 ac_status=$?
ac1cb8d3
VS
38724 grep -v '^ *+' conftest.er1 >conftest.err
38725 rm -f conftest.er1
38726 cat conftest.err >&5
a848cd7e
SC
38727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38728 (exit $ac_status); } &&
6ebeb4c7 38729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38731 (eval $ac_try) 2>&5
38732 ac_status=$?
38733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734 (exit $ac_status); }; } &&
d12aef51 38735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38737 (eval $ac_try) 2>&5
38738 ac_status=$?
38739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38740 (exit $ac_status); }; }; then
d12aef51 38741 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38742else
38743 echo "$as_me: failed program was:" >&5
38744sed 's/^/| /' conftest.$ac_ext >&5
38745
a848cd7e 38746
d12aef51
VZ
38747 saveLibs="$LIBS"
38748 LIBS="$saveLibs -lossaudio"
38749 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38750/* confdefs.h. */
38751_ACEOF
38752cat confdefs.h >>conftest.$ac_ext
38753cat >>conftest.$ac_ext <<_ACEOF
38754/* end confdefs.h. */
d12aef51
VZ
38755
38756 #include <sys/soundcard.h>
38757
38758int
38759main ()
38760{
38761
38762 ioctl(0, SNDCTL_DSP_SYNC, 0);
38763
38764 ;
38765 return 0;
38766}
a848cd7e 38767_ACEOF
d12aef51
VZ
38768rm -f conftest.$ac_objext conftest$ac_exeext
38769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38770 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
38771 ac_status=$?
38772 grep -v '^ *+' conftest.er1 >conftest.err
38773 rm -f conftest.er1
38774 cat conftest.err >&5
38775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51
VZ
38776 (exit $ac_status); } &&
38777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38779 (eval $ac_try) 2>&5
38780 ac_status=$?
38781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782 (exit $ac_status); }; } &&
38783 { ac_try='test -s conftest$ac_exeext'
38784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38785 (eval $ac_try) 2>&5
38786 ac_status=$?
38787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38788 (exit $ac_status); }; }; then
38789 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38790else
38791 echo "$as_me: failed program was:" >&5
38792sed 's/^/| /' conftest.$ac_ext >&5
38793
a848cd7e 38794
d12aef51
VZ
38795 LIBS="$saveLibs"
38796 ac_cv_header_sys_soundcard=no
38797
38798
a848cd7e 38799fi
d12aef51
VZ
38800rm -f conftest.err conftest.$ac_objext \
38801 conftest$ac_exeext conftest.$ac_ext
38802
a848cd7e
SC
38803
38804fi
d12aef51
VZ
38805rm -f conftest.err conftest.$ac_objext \
38806 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38807
38808fi
d12aef51
VZ
38809echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38810echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 38811
d12aef51
VZ
38812 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38813 cat >>confdefs.h <<\_ACEOF
38814#define HAVE_SYS_SOUNDCARD_H 1
38815_ACEOF
a848cd7e 38816
d12aef51
VZ
38817 else
38818 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38819 fi
9c112555
MW
38820fi
38821WITH_PLUGIN_SDL=0
38822if test "$wxUSE_SOUND" = "yes"; then
38823 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
38824 if test "$wxUSE_LIBSDL" != "no"; then
38825
38826# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38827if test "${with_sdl_prefix+set}" = set; then
38828 withval="$with_sdl_prefix"
38829 sdl_prefix="$withval"
38830else
38831 sdl_prefix=""
38832fi;
38833
38834# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38835if test "${with_sdl_exec_prefix+set}" = set; then
38836 withval="$with_sdl_exec_prefix"
38837 sdl_exec_prefix="$withval"
38838else
38839 sdl_exec_prefix=""
38840fi;
38841# Check whether --enable-sdltest or --disable-sdltest was given.
38842if test "${enable_sdltest+set}" = set; then
38843 enableval="$enable_sdltest"
38844
38845else
38846 enable_sdltest=yes
38847fi;
38848
38849 if test x$sdl_exec_prefix != x ; then
38850 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38851 if test x${SDL_CONFIG+set} != xset ; then
38852 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38853 fi
38854 fi
38855 if test x$sdl_prefix != x ; then
38856 sdl_args="$sdl_args --prefix=$sdl_prefix"
38857 if test x${SDL_CONFIG+set} != xset ; then
38858 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38859 fi
38860 fi
38861
38862
38863 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38864 # Extract the first word of "sdl-config", so it can be a program name with args.
38865set dummy sdl-config; ac_word=$2
38866echo "$as_me:$LINENO: checking for $ac_word" >&5
38867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38868if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38869 echo $ECHO_N "(cached) $ECHO_C" >&6
38870else
38871 case $SDL_CONFIG in
38872 [\\/]* | ?:[\\/]*)
38873 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38874 ;;
38875 *)
38876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38877for as_dir in $PATH
38878do
38879 IFS=$as_save_IFS
38880 test -z "$as_dir" && as_dir=.
38881 for ac_exec_ext in '' $ac_executable_extensions; do
38882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38883 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38885 break 2
38886 fi
38887done
38888done
38889
38890 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
38891 ;;
38892esac
38893fi
38894SDL_CONFIG=$ac_cv_path_SDL_CONFIG
38895
38896if test -n "$SDL_CONFIG"; then
38897 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
38898echo "${ECHO_T}$SDL_CONFIG" >&6
38899else
38900 echo "$as_me:$LINENO: result: no" >&5
38901echo "${ECHO_T}no" >&6
38902fi
38903
38904 min_sdl_version=1.2.0
38905 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
38906echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
38907 no_sdl=""
38908 if test "$SDL_CONFIG" = "no" ; then
38909 no_sdl=yes
38910 else
38911 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
38912 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
38913
38914 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
38915 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38916 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
38917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38918 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
38919 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38920 if test "x$enable_sdltest" = "xyes" ; then
38921 ac_save_CFLAGS="$CFLAGS"
94acd38e 38922 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
38923 ac_save_LIBS="$LIBS"
38924 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38925 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38926 LIBS="$LIBS $SDL_LIBS"
38927 rm -f conf.sdltest
38928 if test "$cross_compiling" = yes; then
38929 echo $ac_n "cross compiling; assumed OK... $ac_c"
38930else
38931 cat >conftest.$ac_ext <<_ACEOF
38932/* confdefs.h. */
38933_ACEOF
38934cat confdefs.h >>conftest.$ac_ext
38935cat >>conftest.$ac_ext <<_ACEOF
38936/* end confdefs.h. */
38937
38938#include <stdio.h>
38939#include <stdlib.h>
38940#include <string.h>
38941#include "SDL.h"
38942
38943char*
38944my_strdup (char *str)
38945{
38946 char *new_str;
38947
38948 if (str)
38949 {
38950 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
38951 strcpy (new_str, str);
38952 }
38953 else
38954 new_str = NULL;
38955
38956 return new_str;
38957}
38958
38959int main (int argc, char *argv[])
38960{
38961 int major, minor, micro;
38962 char *tmp_version;
38963
38964 /* This hangs on some systems (?)
38965 system ("touch conf.sdltest");
38966 */
38967 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
38968
38969 /* HP/UX 9 (%@#!) writes to sscanf strings */
38970 tmp_version = my_strdup("$min_sdl_version");
38971 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
38972 printf("%s, bad version string\n", "$min_sdl_version");
38973 exit(1);
38974 }
38975
38976 if (($sdl_major_version > major) ||
38977 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
38978 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
38979 {
38980 return 0;
38981 }
38982 else
38983 {
38984 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
38985 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
38986 printf("*** best to upgrade to the required version.\n");
38987 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
38988 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
38989 printf("*** config.cache before re-running configure\n");
38990 return 1;
38991 }
38992}
38993
38994
38995_ACEOF
38996rm -f conftest$ac_exeext
38997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38998 (eval $ac_link) 2>&5
38999 ac_status=$?
39000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39003 (eval $ac_try) 2>&5
39004 ac_status=$?
39005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39006 (exit $ac_status); }; }; then
39007 :
39008else
39009 echo "$as_me: program exited with status $ac_status" >&5
39010echo "$as_me: failed program was:" >&5
39011sed 's/^/| /' conftest.$ac_ext >&5
39012
39013( exit $ac_status )
39014no_sdl=yes
39015fi
ac1cb8d3 39016rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39017fi
39018 CFLAGS="$ac_save_CFLAGS"
94acd38e 39019 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39020 LIBS="$ac_save_LIBS"
39021 fi
39022 fi
39023 if test "x$no_sdl" = x ; then
39024 echo "$as_me:$LINENO: result: yes" >&5
39025echo "${ECHO_T}yes" >&6
39026
39027 EXTRALIBS_SDL="$SDL_LIBS"
39028 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
39029 cat >>confdefs.h <<\_ACEOF
39030#define wxUSE_LIBSDL 1
39031_ACEOF
39032
39033
39034 else
39035 echo "$as_me:$LINENO: result: no" >&5
39036echo "${ECHO_T}no" >&6
39037 if test "$SDL_CONFIG" = "no" ; then
39038 echo "*** The sdl-config script installed by SDL could not be found"
39039 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
39040 echo "*** your path, or set the SDL_CONFIG environment variable to the"
39041 echo "*** full path to sdl-config."
39042 else
39043 if test -f conf.sdltest ; then
39044 :
39045 else
39046 echo "*** Could not run SDL test program, checking why..."
39047 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 39048 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
39049 LIBS="$LIBS $SDL_LIBS"
39050 cat >conftest.$ac_ext <<_ACEOF
39051/* confdefs.h. */
39052_ACEOF
39053cat confdefs.h >>conftest.$ac_ext
39054cat >>conftest.$ac_ext <<_ACEOF
39055/* end confdefs.h. */
39056
39057#include <stdio.h>
39058#include "SDL.h"
39059
39060int main(int argc, char *argv[])
39061{ return 0; }
39062#undef main
39063#define main K_and_R_C_main
39064
39065int
39066main ()
39067{
39068 return 0;
39069 ;
39070 return 0;
39071}
39072_ACEOF
39073rm -f conftest.$ac_objext conftest$ac_exeext
39074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39075 (eval $ac_link) 2>conftest.er1
a848cd7e 39076 ac_status=$?
ac1cb8d3
VS
39077 grep -v '^ *+' conftest.er1 >conftest.err
39078 rm -f conftest.er1
39079 cat conftest.err >&5
a848cd7e
SC
39080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081 (exit $ac_status); } &&
6ebeb4c7 39082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39084 (eval $ac_try) 2>&5
39085 ac_status=$?
39086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39087 (exit $ac_status); }; } &&
39088 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39090 (eval $ac_try) 2>&5
39091 ac_status=$?
39092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093 (exit $ac_status); }; }; then
39094 echo "*** The test program compiled, but did not run. This usually means"
39095 echo "*** that the run-time linker is not finding SDL or finding the wrong"
39096 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
39097 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
39098 echo "*** to the installed location Also, make sure you have run ldconfig if that"
39099 echo "*** is required on your system"
39100 echo "***"
39101 echo "*** If you have an old version installed, it is best to remove it, although"
39102 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
39103else
39104 echo "$as_me: failed program was:" >&5
39105sed 's/^/| /' conftest.$ac_ext >&5
39106
39107 echo "*** The test program failed to compile or link. See the file config.log for the"
39108 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
39109 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
39110 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
39111fi
ac1cb8d3
VS
39112rm -f conftest.err conftest.$ac_objext \
39113 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39114 CFLAGS="$ac_save_CFLAGS"
94acd38e 39115 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39116 LIBS="$ac_save_LIBS"
39117 fi
39118 fi
39119 SDL_CFLAGS=""
39120 SDL_LIBS=""
39121 wxUSE_LIBSDL="no"
39122 fi
39123
39124
39125 rm -f conf.sdltest
39126
39127 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
39128 WITH_PLUGIN_SDL=1
39129 fi
39130 fi
39131 fi
39132
39133 cat >>confdefs.h <<\_ACEOF
39134#define wxUSE_SOUND 1
39135_ACEOF
39136
39137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
39138fi
39139
d1c38808
VZ
39140if test "$WXGTK20" = 1; then
39141 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39142 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
39143
39144
39145 succeeded=no
39146
39147 if test -z "$PKG_CONFIG"; then
39148 # Extract the first word of "pkg-config", so it can be a program name with args.
39149set dummy pkg-config; ac_word=$2
39150echo "$as_me:$LINENO: checking for $ac_word" >&5
39151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39152if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39153 echo $ECHO_N "(cached) $ECHO_C" >&6
39154else
39155 case $PKG_CONFIG in
39156 [\\/]* | ?:[\\/]*)
39157 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39158 ;;
39159 *)
39160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39161for as_dir in $PATH
39162do
39163 IFS=$as_save_IFS
39164 test -z "$as_dir" && as_dir=.
39165 for ac_exec_ext in '' $ac_executable_extensions; do
39166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39167 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39169 break 2
39170 fi
39171done
39172done
39173
39174 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39175 ;;
39176esac
39177fi
39178PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39179
39180if test -n "$PKG_CONFIG"; then
39181 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39182echo "${ECHO_T}$PKG_CONFIG" >&6
39183else
39184 echo "$as_me:$LINENO: result: no" >&5
39185echo "${ECHO_T}no" >&6
39186fi
39187
39188 fi
39189
39190 if test "$PKG_CONFIG" = "no" ; then
39191 echo "*** The pkg-config script could not be found. Make sure it is"
39192 echo "*** in your path, or set the PKG_CONFIG environment variable"
39193 echo "*** to the full path to pkg-config."
39194 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39195 else
39196 PKG_CONFIG_MIN_VERSION=0.9.0
39197 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
39198 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
39199echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 39200
ffa762ff 39201 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
39202 echo "$as_me:$LINENO: result: yes" >&5
39203echo "${ECHO_T}yes" >&6
39204 succeeded=yes
39205
39206 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
39207echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 39208 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39209 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
39210echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
39211
39212 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
39213echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 39214 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39215 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
39216echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
39217 else
39218 LIBGNOMEPRINTUI_CFLAGS=""
39219 LIBGNOMEPRINTUI_LIBS=""
39220 ## If we have a custom action on failure, don't print errors, but
39221 ## do set a variable so people can do so.
ffa762ff 39222 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39223
39224 fi
39225
39226
39227
39228 else
39229 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39230 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39231 fi
39232 fi
39233
39234 if test $succeeded = yes; then
39235
d1c38808
VZ
39236 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
39237 cat >>confdefs.h <<\_ACEOF
39238#define wxUSE_LIBGNOMEPRINT 1
39239_ACEOF
39240
39241
39242 else
39243
39244 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
39245echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
39246 wxUSE_LIBGNOMEPRINT="no"
39247
39248
39249 fi
39250
39251 fi
39252 fi
39253fi
39254
39255
a848cd7e
SC
39256if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
39257 cat >>confdefs.h <<\_ACEOF
39258#define wxUSE_CMDLINE_PARSER 1
39259_ACEOF
39260
39261fi
39262
39263if test "$wxUSE_STOPWATCH" = "yes"; then
39264 cat >>confdefs.h <<\_ACEOF
39265#define wxUSE_STOPWATCH 1
39266_ACEOF
39267
39268fi
39269
39270if test "$wxUSE_DATETIME" = "yes"; then
39271 cat >>confdefs.h <<\_ACEOF
39272#define wxUSE_DATETIME 1
39273_ACEOF
39274
39275fi
39276
39277if test "$wxUSE_FILE" = "yes"; then
39278 cat >>confdefs.h <<\_ACEOF
39279#define wxUSE_FILE 1
39280_ACEOF
39281
39282fi
39283
39284if test "$wxUSE_FFILE" = "yes"; then
39285 cat >>confdefs.h <<\_ACEOF
39286#define wxUSE_FFILE 1
39287_ACEOF
39288
39289fi
39290
39291if test "$wxUSE_FILESYSTEM" = "yes"; then
39292 cat >>confdefs.h <<\_ACEOF
39293#define wxUSE_FILESYSTEM 1
39294_ACEOF
39295
39296fi
39297
39298if test "$wxUSE_FS_ZIP" = "yes"; then
39299 cat >>confdefs.h <<\_ACEOF
39300#define wxUSE_FS_ZIP 1
39301_ACEOF
39302
39303fi
39304
9e8e867f 39305if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 39306 cat >>confdefs.h <<\_ACEOF
9e8e867f 39307#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
39308_ACEOF
39309
39310fi
39311
39312if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 39313 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
39314 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
39315echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
39316 elif test "$wxUSE_ZLIB" = "no"; then
39317 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
39318echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
39319 else
39320 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39321#define wxUSE_ZIPSTREAM 1
39322_ACEOF
39323
81f90336 39324 fi
a848cd7e
SC
39325fi
39326
a848cd7e 39327if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
39328 if test "$USE_UNIX" != 1; then
39329 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
39330echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
39331 wxUSE_ON_FATAL_EXCEPTION=no
39332 else
39333 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39334#define wxUSE_ON_FATAL_EXCEPTION 1
39335_ACEOF
39336
18228ab4 39337 fi
a848cd7e
SC
39338fi
39339
eaff0f0d
VZ
39340if test "$wxUSE_STACKWALKER" = "yes"; then
39341 cat >>confdefs.h <<\_ACEOF
39342#define wxUSE_STACKWALKER 1
39343_ACEOF
39344
39345fi
39346
36b6448c 39347if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
39348 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
39349 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
39350echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
39351 wxUSE_DEBUGREPORT=no
39352 else
39353 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
39354#define wxUSE_DEBUGREPORT 1
39355_ACEOF
39356
21dfc162
MW
39357 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39358 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
39359 fi
dfe0c803 39360 fi
36b6448c
VZ
39361fi
39362
a848cd7e
SC
39363if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39364 cat >>confdefs.h <<\_ACEOF
39365#define wxUSE_SNGLINST_CHECKER 1
39366_ACEOF
39367
39368fi
39369
39370if test "$wxUSE_BUSYINFO" = "yes"; then
39371 cat >>confdefs.h <<\_ACEOF
39372#define wxUSE_BUSYINFO 1
39373_ACEOF
39374
39375fi
39376
39377if test "$wxUSE_STD_IOSTREAM" = "yes"; then
39378 cat >>confdefs.h <<\_ACEOF
39379#define wxUSE_STD_IOSTREAM 1
39380_ACEOF
39381
39382fi
39383
59746b65
MW
39384if test "$wxUSE_STD_STRING" = "yes"; then
39385 cat >>confdefs.h <<\_ACEOF
39386#define wxUSE_STD_STRING 1
39387_ACEOF
39388
39389fi
39390
07158944
VZ
39391if test "$wxUSE_STDPATHS" = "yes"; then
39392 cat >>confdefs.h <<\_ACEOF
39393#define wxUSE_STDPATHS 1
39394_ACEOF
39395
39396fi
39397
a848cd7e
SC
39398if test "$wxUSE_TEXTBUFFER" = "yes"; then
39399 cat >>confdefs.h <<\_ACEOF
39400#define wxUSE_TEXTBUFFER 1
39401_ACEOF
39402
39403fi
39404
39405if test "$wxUSE_TEXTFILE" = "yes"; then
39406 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
39407 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
39408echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
39409 else
39410 cat >>confdefs.h <<\_ACEOF
39411#define wxUSE_TEXTFILE 1
39412_ACEOF
39413
39414 fi
39415fi
39416
39417if test "$wxUSE_CONFIG" = "yes" ; then
39418 if test "$wxUSE_TEXTFILE" != "yes"; then
39419 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
39420echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
39421 else
39422 cat >>confdefs.h <<\_ACEOF
39423#define wxUSE_CONFIG 1
89be85c2
VS
39424_ACEOF
39425
39426 cat >>confdefs.h <<\_ACEOF
39427#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
39428_ACEOF
39429
39430 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
39431 fi
39432fi
39433
39434if test "$wxUSE_INTL" = "yes" ; then
39435 if test "$wxUSE_FILE" != "yes"; then
39436 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
39437echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
39438 else
39439 cat >>confdefs.h <<\_ACEOF
39440#define wxUSE_INTL 1
39441_ACEOF
39442
39443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
39444 GUIDIST="$GUIDIST INTL_DIST"
39445 fi
39446fi
39447
39448if test "$wxUSE_LOG" = "yes"; then
39449 cat >>confdefs.h <<\_ACEOF
39450#define wxUSE_LOG 1
39451_ACEOF
39452
39453
39454 if test "$wxUSE_LOGGUI" = "yes"; then
39455 cat >>confdefs.h <<\_ACEOF
39456#define wxUSE_LOGGUI 1
39457_ACEOF
39458
39459 fi
39460
39461 if test "$wxUSE_LOGWINDOW" = "yes"; then
39462 cat >>confdefs.h <<\_ACEOF
39463#define wxUSE_LOGWINDOW 1
39464_ACEOF
39465
39466 fi
39467
39468 if test "$wxUSE_LOGDIALOG" = "yes"; then
39469 cat >>confdefs.h <<\_ACEOF
39470#define wxUSE_LOG_DIALOG 1
39471_ACEOF
39472
39473 fi
0b78747f
MW
39474
39475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
39476fi
39477
39478if test "$wxUSE_LONGLONG" = "yes"; then
39479 cat >>confdefs.h <<\_ACEOF
39480#define wxUSE_LONGLONG 1
39481_ACEOF
39482
39483fi
39484
39485if test "$wxUSE_GEOMETRY" = "yes"; then
39486 cat >>confdefs.h <<\_ACEOF
39487#define wxUSE_GEOMETRY 1
39488_ACEOF
39489
39490fi
39491
a848cd7e
SC
39492if test "$wxUSE_STREAMS" = "yes" ; then
39493 cat >>confdefs.h <<\_ACEOF
39494#define wxUSE_STREAMS 1
39495_ACEOF
39496
39497fi
39498
39499
39500if test "$wxUSE_DATETIME" = "yes"; then
39501
39502for ac_func in strptime
39503do
39504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39505echo "$as_me:$LINENO: checking for $ac_func" >&5
39506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39507if eval "test \"\${$as_ac_var+set}\" = set"; then
39508 echo $ECHO_N "(cached) $ECHO_C" >&6
39509else
39510 cat >conftest.$ac_ext <<_ACEOF
39511/* confdefs.h. */
39512_ACEOF
39513cat confdefs.h >>conftest.$ac_ext
39514cat >>conftest.$ac_ext <<_ACEOF
39515/* end confdefs.h. */
ac1cb8d3
VS
39516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39518#define $ac_func innocuous_$ac_func
39519
a848cd7e
SC
39520/* System header to define __stub macros and hopefully few prototypes,
39521 which can conflict with char $ac_func (); below.
39522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39523 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39524
a848cd7e
SC
39525#ifdef __STDC__
39526# include <limits.h>
39527#else
39528# include <assert.h>
39529#endif
ac1cb8d3
VS
39530
39531#undef $ac_func
39532
a848cd7e
SC
39533/* Override any gcc2 internal prototype to avoid an error. */
39534#ifdef __cplusplus
39535extern "C"
39536{
39537#endif
39538/* We use char because int might match the return type of a gcc2
39539 builtin and then its argument prototype would still apply. */
39540char $ac_func ();
39541/* The GNU C library defines this for functions which it implements
39542 to always fail with ENOSYS. Some functions are actually named
39543 something starting with __ and the normal name is an alias. */
39544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39545choke me
39546#else
39547char (*f) () = $ac_func;
39548#endif
39549#ifdef __cplusplus
39550}
39551#endif
39552
39553int
39554main ()
39555{
39556return f != $ac_func;
39557 ;
39558 return 0;
39559}
39560_ACEOF
39561rm -f conftest.$ac_objext conftest$ac_exeext
39562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39563 (eval $ac_link) 2>conftest.er1
a848cd7e 39564 ac_status=$?
ac1cb8d3
VS
39565 grep -v '^ *+' conftest.er1 >conftest.err
39566 rm -f conftest.er1
39567 cat conftest.err >&5
a848cd7e
SC
39568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39569 (exit $ac_status); } &&
6ebeb4c7 39570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39572 (eval $ac_try) 2>&5
39573 ac_status=$?
39574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39575 (exit $ac_status); }; } &&
39576 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39578 (eval $ac_try) 2>&5
39579 ac_status=$?
39580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39581 (exit $ac_status); }; }; then
39582 eval "$as_ac_var=yes"
39583else
39584 echo "$as_me: failed program was:" >&5
39585sed 's/^/| /' conftest.$ac_ext >&5
39586
39587eval "$as_ac_var=no"
39588fi
ac1cb8d3
VS
39589rm -f conftest.err conftest.$ac_objext \
39590 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39591fi
39592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39593echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39594if test `eval echo '${'$as_ac_var'}'` = yes; then
39595 cat >>confdefs.h <<_ACEOF
39596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39597_ACEOF
39598
39599fi
39600done
39601
f536f005
VZ
39602 if test "$ac_cv_func_strptime" = "yes"; then
39603 echo "$as_me:$LINENO: checking for strptime declaration" >&5
39604echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
39605if test "${wx_cv_func_strptime_decl+set}" = set; then
39606 echo $ECHO_N "(cached) $ECHO_C" >&6
39607else
39608
39609
39610
39611 ac_ext=cc
39612ac_cpp='$CXXCPP $CPPFLAGS'
39613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39616
39617 cat >conftest.$ac_ext <<_ACEOF
39618/* confdefs.h. */
39619_ACEOF
39620cat confdefs.h >>conftest.$ac_ext
39621cat >>conftest.$ac_ext <<_ACEOF
39622/* end confdefs.h. */
39623
39624 #include <time.h>
39625
39626int
39627main ()
39628{
39629
39630 struct tm t;
39631 strptime("foo", "bar", &t);
39632
39633 ;
39634 return 0;
39635}
39636_ACEOF
39637rm -f conftest.$ac_objext
39638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39639 (eval $ac_compile) 2>conftest.er1
39640 ac_status=$?
39641 grep -v '^ *+' conftest.er1 >conftest.err
39642 rm -f conftest.er1
39643 cat conftest.err >&5
39644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39645 (exit $ac_status); } &&
39646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39648 (eval $ac_try) 2>&5
39649 ac_status=$?
39650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39651 (exit $ac_status); }; } &&
39652 { ac_try='test -s conftest.$ac_objext'
39653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39654 (eval $ac_try) 2>&5
39655 ac_status=$?
39656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39657 (exit $ac_status); }; }; then
39658 wx_cv_func_strptime_decl=yes
39659else
39660 echo "$as_me: failed program was:" >&5
39661sed 's/^/| /' conftest.$ac_ext >&5
39662
39663wx_cv_func_strptime_decl=no
39664
39665fi
39666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39667 ac_ext=c
39668ac_cpp='$CPP $CPPFLAGS'
39669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39671ac_compiler_gnu=$ac_cv_c_compiler_gnu
39672
39673
39674
39675fi
39676echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
39677echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
39678 fi
39679 if test "$wx_cv_func_strptime_decl" = "yes"; then
39680 cat >>confdefs.h <<\_ACEOF
39681#define HAVE_STRPTIME_DECL 1
39682_ACEOF
39683
39684 fi
a848cd7e
SC
39685
39686 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
39687echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
39688if test "${wx_cv_var_timezone+set}" = set; then
39689 echo $ECHO_N "(cached) $ECHO_C" >&6
39690else
39691
39692 cat >conftest.$ac_ext <<_ACEOF
39693/* confdefs.h. */
39694_ACEOF
39695cat confdefs.h >>conftest.$ac_ext
39696cat >>conftest.$ac_ext <<_ACEOF
39697/* end confdefs.h. */
39698
39699 #include <time.h>
39700
39701int
39702main ()
39703{
39704
39705 int tz;
39706 tz = timezone;
39707
39708 ;
39709 return 0;
39710}
39711_ACEOF
39712rm -f conftest.$ac_objext
39713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39714 (eval $ac_compile) 2>conftest.er1
a848cd7e 39715 ac_status=$?
ac1cb8d3
VS
39716 grep -v '^ *+' conftest.er1 >conftest.err
39717 rm -f conftest.er1
39718 cat conftest.err >&5
a848cd7e
SC
39719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39720 (exit $ac_status); } &&
6ebeb4c7 39721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39723 (eval $ac_try) 2>&5
39724 ac_status=$?
39725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39726 (exit $ac_status); }; } &&
39727 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39729 (eval $ac_try) 2>&5
39730 ac_status=$?
39731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39732 (exit $ac_status); }; }; then
39733
39734 wx_cv_var_timezone=timezone
39735
39736else
39737 echo "$as_me: failed program was:" >&5
39738sed 's/^/| /' conftest.$ac_ext >&5
39739
39740
39741 cat >conftest.$ac_ext <<_ACEOF
39742/* confdefs.h. */
39743_ACEOF
39744cat confdefs.h >>conftest.$ac_ext
39745cat >>conftest.$ac_ext <<_ACEOF
39746/* end confdefs.h. */
39747
39748 #include <time.h>
39749
39750int
39751main ()
39752{
39753
39754 int tz;
39755 tz = _timezone;
39756
39757 ;
39758 return 0;
39759}
39760_ACEOF
39761rm -f conftest.$ac_objext
39762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39763 (eval $ac_compile) 2>conftest.er1
a848cd7e 39764 ac_status=$?
ac1cb8d3
VS
39765 grep -v '^ *+' conftest.er1 >conftest.err
39766 rm -f conftest.er1
39767 cat conftest.err >&5
a848cd7e
SC
39768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769 (exit $ac_status); } &&
6ebeb4c7 39770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39772 (eval $ac_try) 2>&5
39773 ac_status=$?
39774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39775 (exit $ac_status); }; } &&
39776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39778 (eval $ac_try) 2>&5
39779 ac_status=$?
39780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39781 (exit $ac_status); }; }; then
39782
39783 wx_cv_var_timezone=_timezone
39784
39785else
39786 echo "$as_me: failed program was:" >&5
39787sed 's/^/| /' conftest.$ac_ext >&5
39788
39789
39790 cat >conftest.$ac_ext <<_ACEOF
39791/* confdefs.h. */
39792_ACEOF
39793cat confdefs.h >>conftest.$ac_ext
39794cat >>conftest.$ac_ext <<_ACEOF
39795/* end confdefs.h. */
39796
39797 #include <time.h>
39798
39799int
39800main ()
39801{
39802
39803 int tz;
39804 tz = __timezone;
39805
39806 ;
39807 return 0;
39808}
39809_ACEOF
39810rm -f conftest.$ac_objext
39811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39812 (eval $ac_compile) 2>conftest.er1
a848cd7e 39813 ac_status=$?
ac1cb8d3
VS
39814 grep -v '^ *+' conftest.er1 >conftest.err
39815 rm -f conftest.er1
39816 cat conftest.err >&5
a848cd7e
SC
39817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818 (exit $ac_status); } &&
6ebeb4c7 39819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39821 (eval $ac_try) 2>&5
39822 ac_status=$?
39823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824 (exit $ac_status); }; } &&
39825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39827 (eval $ac_try) 2>&5
39828 ac_status=$?
39829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39830 (exit $ac_status); }; }; then
39831
39832 wx_cv_var_timezone=__timezone
39833
39834else
39835 echo "$as_me: failed program was:" >&5
39836sed 's/^/| /' conftest.$ac_ext >&5
39837
39838
39839 if test "$USE_DOS" = 0 ; then
39840 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39841echo "$as_me: WARNING: no timezone variable" >&2;}
39842 fi
39843
39844
39845fi
ac1cb8d3 39846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39847
39848
39849fi
ac1cb8d3 39850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39851
39852
39853fi
ac1cb8d3 39854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39855
39856
39857fi
39858echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39859echo "${ECHO_T}$wx_cv_var_timezone" >&6
39860
39861 if test "x$wx_cv_var_timezone" != x ; then
39862 cat >>confdefs.h <<_ACEOF
39863#define WX_TIMEZONE $wx_cv_var_timezone
39864_ACEOF
39865
39866 fi
39867
39868
39869for ac_func in localtime
39870do
39871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39872echo "$as_me:$LINENO: checking for $ac_func" >&5
39873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39874if eval "test \"\${$as_ac_var+set}\" = set"; then
39875 echo $ECHO_N "(cached) $ECHO_C" >&6
39876else
39877 cat >conftest.$ac_ext <<_ACEOF
39878/* confdefs.h. */
39879_ACEOF
39880cat confdefs.h >>conftest.$ac_ext
39881cat >>conftest.$ac_ext <<_ACEOF
39882/* end confdefs.h. */
ac1cb8d3
VS
39883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39885#define $ac_func innocuous_$ac_func
39886
a848cd7e
SC
39887/* System header to define __stub macros and hopefully few prototypes,
39888 which can conflict with char $ac_func (); below.
39889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39890 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39891
a848cd7e
SC
39892#ifdef __STDC__
39893# include <limits.h>
39894#else
39895# include <assert.h>
39896#endif
ac1cb8d3
VS
39897
39898#undef $ac_func
39899
a848cd7e
SC
39900/* Override any gcc2 internal prototype to avoid an error. */
39901#ifdef __cplusplus
39902extern "C"
39903{
39904#endif
39905/* We use char because int might match the return type of a gcc2
39906 builtin and then its argument prototype would still apply. */
39907char $ac_func ();
39908/* The GNU C library defines this for functions which it implements
39909 to always fail with ENOSYS. Some functions are actually named
39910 something starting with __ and the normal name is an alias. */
39911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39912choke me
39913#else
39914char (*f) () = $ac_func;
39915#endif
39916#ifdef __cplusplus
39917}
39918#endif
39919
39920int
39921main ()
39922{
39923return f != $ac_func;
39924 ;
39925 return 0;
39926}
39927_ACEOF
39928rm -f conftest.$ac_objext conftest$ac_exeext
39929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39930 (eval $ac_link) 2>conftest.er1
a848cd7e 39931 ac_status=$?
ac1cb8d3
VS
39932 grep -v '^ *+' conftest.er1 >conftest.err
39933 rm -f conftest.er1
39934 cat conftest.err >&5
a848cd7e
SC
39935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39936 (exit $ac_status); } &&
6ebeb4c7 39937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39939 (eval $ac_try) 2>&5
39940 ac_status=$?
39941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39942 (exit $ac_status); }; } &&
39943 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39945 (eval $ac_try) 2>&5
39946 ac_status=$?
39947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948 (exit $ac_status); }; }; then
39949 eval "$as_ac_var=yes"
39950else
39951 echo "$as_me: failed program was:" >&5
39952sed 's/^/| /' conftest.$ac_ext >&5
39953
39954eval "$as_ac_var=no"
39955fi
ac1cb8d3
VS
39956rm -f conftest.err conftest.$ac_objext \
39957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39958fi
39959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39960echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39961if test `eval echo '${'$as_ac_var'}'` = yes; then
39962 cat >>confdefs.h <<_ACEOF
39963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39964_ACEOF
39965
39966fi
39967done
39968
39969
39970 if test "$ac_cv_func_localtime" = "yes"; then
39971 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
39972echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
39973if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
39974 echo $ECHO_N "(cached) $ECHO_C" >&6
39975else
39976
39977 cat >conftest.$ac_ext <<_ACEOF
39978/* confdefs.h. */
39979_ACEOF
39980cat confdefs.h >>conftest.$ac_ext
39981cat >>conftest.$ac_ext <<_ACEOF
39982/* end confdefs.h. */
39983
39984 #include <time.h>
39985
39986int
39987main ()
39988{
39989
39990 struct tm tm;
39991 tm.tm_gmtoff++;
39992
39993 ;
39994 return 0;
39995}
39996_ACEOF
39997rm -f conftest.$ac_objext
39998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39999 (eval $ac_compile) 2>conftest.er1
a848cd7e 40000 ac_status=$?
ac1cb8d3
VS
40001 grep -v '^ *+' conftest.er1 >conftest.err
40002 rm -f conftest.er1
40003 cat conftest.err >&5
a848cd7e
SC
40004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40005 (exit $ac_status); } &&
6ebeb4c7 40006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40008 (eval $ac_try) 2>&5
40009 ac_status=$?
40010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40011 (exit $ac_status); }; } &&
40012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40014 (eval $ac_try) 2>&5
40015 ac_status=$?
40016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017 (exit $ac_status); }; }; then
40018
40019 wx_cv_struct_tm_has_gmtoff=yes
40020
40021else
40022 echo "$as_me: failed program was:" >&5
40023sed 's/^/| /' conftest.$ac_ext >&5
40024
40025wx_cv_struct_tm_has_gmtoff=no
40026
40027fi
ac1cb8d3 40028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40029
40030fi
40031echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
40032echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
40033 fi
40034
40035 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
40036 cat >>confdefs.h <<\_ACEOF
40037#define WX_GMTOFF_IN_TM 1
40038_ACEOF
40039
40040 fi
40041
40042
40043
40044for ac_func in gettimeofday ftime
40045do
40046as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40047echo "$as_me:$LINENO: checking for $ac_func" >&5
40048echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40049if eval "test \"\${$as_ac_var+set}\" = set"; then
40050 echo $ECHO_N "(cached) $ECHO_C" >&6
40051else
40052 cat >conftest.$ac_ext <<_ACEOF
40053/* confdefs.h. */
40054_ACEOF
40055cat confdefs.h >>conftest.$ac_ext
40056cat >>conftest.$ac_ext <<_ACEOF
40057/* end confdefs.h. */
ac1cb8d3
VS
40058/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40060#define $ac_func innocuous_$ac_func
40061
a848cd7e
SC
40062/* System header to define __stub macros and hopefully few prototypes,
40063 which can conflict with char $ac_func (); below.
40064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40065 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40066
a848cd7e
SC
40067#ifdef __STDC__
40068# include <limits.h>
40069#else
40070# include <assert.h>
40071#endif
ac1cb8d3
VS
40072
40073#undef $ac_func
40074
a848cd7e
SC
40075/* Override any gcc2 internal prototype to avoid an error. */
40076#ifdef __cplusplus
40077extern "C"
40078{
40079#endif
40080/* We use char because int might match the return type of a gcc2
40081 builtin and then its argument prototype would still apply. */
40082char $ac_func ();
40083/* The GNU C library defines this for functions which it implements
40084 to always fail with ENOSYS. Some functions are actually named
40085 something starting with __ and the normal name is an alias. */
40086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40087choke me
40088#else
40089char (*f) () = $ac_func;
40090#endif
40091#ifdef __cplusplus
40092}
40093#endif
40094
40095int
40096main ()
40097{
40098return f != $ac_func;
40099 ;
40100 return 0;
40101}
40102_ACEOF
40103rm -f conftest.$ac_objext conftest$ac_exeext
40104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40105 (eval $ac_link) 2>conftest.er1
a848cd7e 40106 ac_status=$?
ac1cb8d3
VS
40107 grep -v '^ *+' conftest.er1 >conftest.err
40108 rm -f conftest.er1
40109 cat conftest.err >&5
a848cd7e
SC
40110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40111 (exit $ac_status); } &&
6ebeb4c7 40112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40114 (eval $ac_try) 2>&5
40115 ac_status=$?
40116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40117 (exit $ac_status); }; } &&
40118 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40120 (eval $ac_try) 2>&5
40121 ac_status=$?
40122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40123 (exit $ac_status); }; }; then
40124 eval "$as_ac_var=yes"
40125else
40126 echo "$as_me: failed program was:" >&5
40127sed 's/^/| /' conftest.$ac_ext >&5
40128
40129eval "$as_ac_var=no"
40130fi
ac1cb8d3
VS
40131rm -f conftest.err conftest.$ac_objext \
40132 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40133fi
40134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40136if test `eval echo '${'$as_ac_var'}'` = yes; then
40137 cat >>confdefs.h <<_ACEOF
40138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40139_ACEOF
40140 break
40141fi
40142done
40143
40144
40145 if test "$ac_cv_func_gettimeofday" = "yes"; then
40146 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
40147echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
40148if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
40149 echo $ECHO_N "(cached) $ECHO_C" >&6
40150else
40151
40152
40153
40154 ac_ext=cc
40155ac_cpp='$CXXCPP $CPPFLAGS'
40156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40159
40160
40161 cat >conftest.$ac_ext <<_ACEOF
40162/* confdefs.h. */
40163_ACEOF
40164cat confdefs.h >>conftest.$ac_ext
40165cat >>conftest.$ac_ext <<_ACEOF
40166/* end confdefs.h. */
40167
40168 #include <sys/time.h>
40169 #include <unistd.h>
40170
40171int
40172main ()
40173{
40174
40175 struct timeval tv;
40176 gettimeofday(&tv, NULL);
40177
40178 ;
40179 return 0;
40180}
40181_ACEOF
40182rm -f conftest.$ac_objext
40183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40184 (eval $ac_compile) 2>conftest.er1
a848cd7e 40185 ac_status=$?
ac1cb8d3
VS
40186 grep -v '^ *+' conftest.er1 >conftest.err
40187 rm -f conftest.er1
40188 cat conftest.err >&5
a848cd7e
SC
40189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40190 (exit $ac_status); } &&
6ebeb4c7 40191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40193 (eval $ac_try) 2>&5
40194 ac_status=$?
40195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40196 (exit $ac_status); }; } &&
40197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40199 (eval $ac_try) 2>&5
40200 ac_status=$?
40201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202 (exit $ac_status); }; }; then
40203 wx_cv_func_gettimeofday_has_2_args=yes
40204else
40205 echo "$as_me: failed program was:" >&5
40206sed 's/^/| /' conftest.$ac_ext >&5
40207
40208cat >conftest.$ac_ext <<_ACEOF
40209/* confdefs.h. */
40210_ACEOF
40211cat confdefs.h >>conftest.$ac_ext
40212cat >>conftest.$ac_ext <<_ACEOF
40213/* end confdefs.h. */
40214
40215 #include <sys/time.h>
40216 #include <unistd.h>
40217
40218int
40219main ()
40220{
40221
40222 struct timeval tv;
40223 gettimeofday(&tv);
40224
40225 ;
40226 return 0;
40227}
40228_ACEOF
40229rm -f conftest.$ac_objext
40230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40231 (eval $ac_compile) 2>conftest.er1
a848cd7e 40232 ac_status=$?
ac1cb8d3
VS
40233 grep -v '^ *+' conftest.er1 >conftest.err
40234 rm -f conftest.er1
40235 cat conftest.err >&5
a848cd7e
SC
40236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40237 (exit $ac_status); } &&
6ebeb4c7 40238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40240 (eval $ac_try) 2>&5
40241 ac_status=$?
40242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40243 (exit $ac_status); }; } &&
40244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40246 (eval $ac_try) 2>&5
40247 ac_status=$?
40248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40249 (exit $ac_status); }; }; then
40250 wx_cv_func_gettimeofday_has_2_args=no
40251else
40252 echo "$as_me: failed program was:" >&5
40253sed 's/^/| /' conftest.$ac_ext >&5
40254
40255
40256 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
40257echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
40258 wx_cv_func_gettimeofday_has_2_args=unknown
40259
40260
40261fi
ac1cb8d3 40262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40263
40264fi
ac1cb8d3 40265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40266 ac_ext=c
40267ac_cpp='$CPP $CPPFLAGS'
40268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40270ac_compiler_gnu=$ac_cv_c_compiler_gnu
40271
40272
40273fi
40274echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
40275echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
40276
40277 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
40278 cat >>confdefs.h <<\_ACEOF
40279#define WX_GETTIMEOFDAY_NO_TZ 1
40280_ACEOF
40281
40282 fi
40283 fi
40284
40285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
40286fi
40287
40288
40289if test "$wxUSE_SOCKETS" = "yes"; then
40290 if test "$wxUSE_MGL" = "1"; then
40291 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
40292echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
40293 wxUSE_SOCKETS="no"
40294 fi
40295fi
40296
40297if test "$wxUSE_SOCKETS" = "yes"; then
40298 if test "$TOOLKIT" != "MSW"; then
40299 echo "$as_me:$LINENO: checking for socket" >&5
40300echo $ECHO_N "checking for socket... $ECHO_C" >&6
40301if test "${ac_cv_func_socket+set}" = set; then
40302 echo $ECHO_N "(cached) $ECHO_C" >&6
40303else
40304 cat >conftest.$ac_ext <<_ACEOF
40305/* confdefs.h. */
40306_ACEOF
40307cat confdefs.h >>conftest.$ac_ext
40308cat >>conftest.$ac_ext <<_ACEOF
40309/* end confdefs.h. */
ac1cb8d3
VS
40310/* Define socket to an innocuous variant, in case <limits.h> declares socket.
40311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40312#define socket innocuous_socket
40313
a848cd7e
SC
40314/* System header to define __stub macros and hopefully few prototypes,
40315 which can conflict with char socket (); below.
40316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40317 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40318
a848cd7e
SC
40319#ifdef __STDC__
40320# include <limits.h>
40321#else
40322# include <assert.h>
40323#endif
ac1cb8d3
VS
40324
40325#undef socket
40326
a848cd7e
SC
40327/* Override any gcc2 internal prototype to avoid an error. */
40328#ifdef __cplusplus
40329extern "C"
40330{
40331#endif
40332/* We use char because int might match the return type of a gcc2
40333 builtin and then its argument prototype would still apply. */
40334char socket ();
40335/* The GNU C library defines this for functions which it implements
40336 to always fail with ENOSYS. Some functions are actually named
40337 something starting with __ and the normal name is an alias. */
40338#if defined (__stub_socket) || defined (__stub___socket)
40339choke me
40340#else
40341char (*f) () = socket;
40342#endif
40343#ifdef __cplusplus
40344}
40345#endif
40346
40347int
40348main ()
40349{
40350return f != socket;
40351 ;
40352 return 0;
40353}
40354_ACEOF
40355rm -f conftest.$ac_objext conftest$ac_exeext
40356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40357 (eval $ac_link) 2>conftest.er1
a848cd7e 40358 ac_status=$?
ac1cb8d3
VS
40359 grep -v '^ *+' conftest.er1 >conftest.err
40360 rm -f conftest.er1
40361 cat conftest.err >&5
a848cd7e
SC
40362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40363 (exit $ac_status); } &&
6ebeb4c7 40364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40366 (eval $ac_try) 2>&5
40367 ac_status=$?
40368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40369 (exit $ac_status); }; } &&
40370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40372 (eval $ac_try) 2>&5
40373 ac_status=$?
40374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40375 (exit $ac_status); }; }; then
40376 ac_cv_func_socket=yes
40377else
40378 echo "$as_me: failed program was:" >&5
40379sed 's/^/| /' conftest.$ac_ext >&5
40380
40381ac_cv_func_socket=no
40382fi
ac1cb8d3
VS
40383rm -f conftest.err conftest.$ac_objext \
40384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40385fi
40386echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
40387echo "${ECHO_T}$ac_cv_func_socket" >&6
40388if test $ac_cv_func_socket = yes; then
40389 :
40390else
40391
40392 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
40393echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
40394if test "${ac_cv_lib_socket_socket+set}" = set; then
40395 echo $ECHO_N "(cached) $ECHO_C" >&6
40396else
40397 ac_check_lib_save_LIBS=$LIBS
40398LIBS="-lsocket $LIBS"
40399cat >conftest.$ac_ext <<_ACEOF
40400/* confdefs.h. */
40401_ACEOF
40402cat confdefs.h >>conftest.$ac_ext
40403cat >>conftest.$ac_ext <<_ACEOF
40404/* end confdefs.h. */
40405
40406/* Override any gcc2 internal prototype to avoid an error. */
40407#ifdef __cplusplus
40408extern "C"
40409#endif
40410/* We use char because int might match the return type of a gcc2
40411 builtin and then its argument prototype would still apply. */
40412char socket ();
40413int
40414main ()
40415{
40416socket ();
40417 ;
40418 return 0;
40419}
40420_ACEOF
40421rm -f conftest.$ac_objext conftest$ac_exeext
40422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40423 (eval $ac_link) 2>conftest.er1
a848cd7e 40424 ac_status=$?
ac1cb8d3
VS
40425 grep -v '^ *+' conftest.er1 >conftest.err
40426 rm -f conftest.er1
40427 cat conftest.err >&5
a848cd7e
SC
40428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40429 (exit $ac_status); } &&
6ebeb4c7 40430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40432 (eval $ac_try) 2>&5
40433 ac_status=$?
40434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40435 (exit $ac_status); }; } &&
40436 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40438 (eval $ac_try) 2>&5
40439 ac_status=$?
40440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40441 (exit $ac_status); }; }; then
40442 ac_cv_lib_socket_socket=yes
40443else
40444 echo "$as_me: failed program was:" >&5
40445sed 's/^/| /' conftest.$ac_ext >&5
40446
40447ac_cv_lib_socket_socket=no
40448fi
ac1cb8d3
VS
40449rm -f conftest.err conftest.$ac_objext \
40450 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40451LIBS=$ac_check_lib_save_LIBS
40452fi
40453echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
40454echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
40455if test $ac_cv_lib_socket_socket = yes; then
40456 if test "$INET_LINK" != " -lsocket"; then
40457 INET_LINK="$INET_LINK -lsocket"
40458 fi
40459else
40460
40461 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
40462echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
40463 wxUSE_SOCKETS=no
40464
40465
40466fi
40467
40468
40469
40470fi
40471
40472 fi
40473fi
40474
40475if test "$wxUSE_SOCKETS" = "yes" ; then
40476 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
40477 ac_ext=cc
40478ac_cpp='$CXXCPP $CPPFLAGS'
40479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40482
40483 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
40484echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
40485if test "${wx_cv_type_getsockname3+set}" = set; then
40486 echo $ECHO_N "(cached) $ECHO_C" >&6
40487else
40488
40489 cat >conftest.$ac_ext <<_ACEOF
40490/* confdefs.h. */
40491_ACEOF
40492cat confdefs.h >>conftest.$ac_ext
40493cat >>conftest.$ac_ext <<_ACEOF
40494/* end confdefs.h. */
40495
40496 #include <sys/types.h>
40497 #include <sys/socket.h>
40498
40499int
40500main ()
40501{
40502
40503 socklen_t len;
40504 getsockname(0, 0, &len);
40505
40506 ;
40507 return 0;
40508}
40509_ACEOF
40510rm -f conftest.$ac_objext
40511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40512 (eval $ac_compile) 2>conftest.er1
a848cd7e 40513 ac_status=$?
ac1cb8d3
VS
40514 grep -v '^ *+' conftest.er1 >conftest.err
40515 rm -f conftest.er1
40516 cat conftest.err >&5
a848cd7e
SC
40517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40518 (exit $ac_status); } &&
6ebeb4c7 40519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40521 (eval $ac_try) 2>&5
40522 ac_status=$?
40523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524 (exit $ac_status); }; } &&
40525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40527 (eval $ac_try) 2>&5
40528 ac_status=$?
40529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40530 (exit $ac_status); }; }; then
40531 wx_cv_type_getsockname3=socklen_t
40532else
40533 echo "$as_me: failed program was:" >&5
40534sed 's/^/| /' conftest.$ac_ext >&5
40535
40536
6459a506 40537 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 40538 if test "$GCC" = yes ; then
6459a506 40539 CXXFLAGS="$CXXFLAGS -Werror"
a848cd7e
SC
40540 fi
40541
40542 cat >conftest.$ac_ext <<_ACEOF
40543/* confdefs.h. */
40544_ACEOF
40545cat confdefs.h >>conftest.$ac_ext
40546cat >>conftest.$ac_ext <<_ACEOF
40547/* end confdefs.h. */
40548
40549 #include <sys/types.h>
40550 #include <sys/socket.h>
40551
40552int
40553main ()
40554{
40555
40556 size_t len;
40557 getsockname(0, 0, &len);
40558
40559 ;
40560 return 0;
40561}
40562_ACEOF
40563rm -f conftest.$ac_objext
40564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40565 (eval $ac_compile) 2>conftest.er1
a848cd7e 40566 ac_status=$?
ac1cb8d3
VS
40567 grep -v '^ *+' conftest.er1 >conftest.err
40568 rm -f conftest.er1
40569 cat conftest.err >&5
a848cd7e
SC
40570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40571 (exit $ac_status); } &&
6ebeb4c7 40572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40574 (eval $ac_try) 2>&5
40575 ac_status=$?
40576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40577 (exit $ac_status); }; } &&
40578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40580 (eval $ac_try) 2>&5
40581 ac_status=$?
40582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40583 (exit $ac_status); }; }; then
40584 wx_cv_type_getsockname3=size_t
40585else
40586 echo "$as_me: failed program was:" >&5
40587sed 's/^/| /' conftest.$ac_ext >&5
40588
40589cat >conftest.$ac_ext <<_ACEOF
40590/* confdefs.h. */
40591_ACEOF
40592cat confdefs.h >>conftest.$ac_ext
40593cat >>conftest.$ac_ext <<_ACEOF
40594/* end confdefs.h. */
40595
40596 #include <sys/types.h>
40597 #include <sys/socket.h>
40598
40599int
40600main ()
40601{
40602
40603 int len;
40604 getsockname(0, 0, &len);
40605
40606 ;
40607 return 0;
40608}
40609_ACEOF
40610rm -f conftest.$ac_objext
40611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40612 (eval $ac_compile) 2>conftest.er1
a848cd7e 40613 ac_status=$?
ac1cb8d3
VS
40614 grep -v '^ *+' conftest.er1 >conftest.err
40615 rm -f conftest.er1
40616 cat conftest.err >&5
a848cd7e
SC
40617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618 (exit $ac_status); } &&
6ebeb4c7 40619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40621 (eval $ac_try) 2>&5
40622 ac_status=$?
40623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40624 (exit $ac_status); }; } &&
40625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40627 (eval $ac_try) 2>&5
40628 ac_status=$?
40629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40630 (exit $ac_status); }; }; then
40631 wx_cv_type_getsockname3=int
40632else
40633 echo "$as_me: failed program was:" >&5
40634sed 's/^/| /' conftest.$ac_ext >&5
40635
40636wx_cv_type_getsockname3=unknown
40637
40638fi
ac1cb8d3 40639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40640
40641fi
ac1cb8d3 40642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40643
6459a506 40644 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40645
40646
40647fi
ac1cb8d3 40648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40649
40650fi
40651echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
40652echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
40653
40654 if test "$wx_cv_type_getsockname3" = "unknown"; then
40655 wxUSE_SOCKETS=no
40656 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40657echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40658 else
40659 cat >>confdefs.h <<_ACEOF
9e03e02d 40660#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
40661_ACEOF
40662
40663 fi
40664 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
40665echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
40666if test "${wx_cv_type_getsockopt5+set}" = set; then
40667 echo $ECHO_N "(cached) $ECHO_C" >&6
40668else
40669
40670 cat >conftest.$ac_ext <<_ACEOF
40671/* confdefs.h. */
40672_ACEOF
40673cat confdefs.h >>conftest.$ac_ext
40674cat >>conftest.$ac_ext <<_ACEOF
40675/* end confdefs.h. */
40676
40677 #include <sys/types.h>
40678 #include <sys/socket.h>
40679
40680int
40681main ()
40682{
40683
40684 socklen_t len;
40685 getsockopt(0, 0, 0, 0, &len);
40686
40687 ;
40688 return 0;
40689}
40690_ACEOF
40691rm -f conftest.$ac_objext
40692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40693 (eval $ac_compile) 2>conftest.er1
40694 ac_status=$?
40695 grep -v '^ *+' conftest.er1 >conftest.err
40696 rm -f conftest.er1
40697 cat conftest.err >&5
40698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40699 (exit $ac_status); } &&
6ebeb4c7 40700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40702 (eval $ac_try) 2>&5
40703 ac_status=$?
40704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40705 (exit $ac_status); }; } &&
40706 { ac_try='test -s conftest.$ac_objext'
40707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40708 (eval $ac_try) 2>&5
40709 ac_status=$?
40710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40711 (exit $ac_status); }; }; then
40712 wx_cv_type_getsockopt5=socklen_t
40713else
40714 echo "$as_me: failed program was:" >&5
40715sed 's/^/| /' conftest.$ac_ext >&5
40716
40717
6459a506 40718 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 40719 if test "$GCC" = yes ; then
6459a506 40720 CXXFLAGS="$CXXFLAGS -Werror"
5b674b9d
DE
40721 fi
40722
40723 cat >conftest.$ac_ext <<_ACEOF
40724/* confdefs.h. */
40725_ACEOF
40726cat confdefs.h >>conftest.$ac_ext
40727cat >>conftest.$ac_ext <<_ACEOF
40728/* end confdefs.h. */
40729
40730 #include <sys/types.h>
40731 #include <sys/socket.h>
40732
40733int
40734main ()
40735{
40736
40737 size_t len;
40738 getsockopt(0, 0, 0, 0, &len);
40739
40740 ;
40741 return 0;
40742}
40743_ACEOF
40744rm -f conftest.$ac_objext
40745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40746 (eval $ac_compile) 2>conftest.er1
40747 ac_status=$?
40748 grep -v '^ *+' conftest.er1 >conftest.err
40749 rm -f conftest.er1
40750 cat conftest.err >&5
40751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40752 (exit $ac_status); } &&
6ebeb4c7 40753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40755 (eval $ac_try) 2>&5
40756 ac_status=$?
40757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40758 (exit $ac_status); }; } &&
40759 { ac_try='test -s conftest.$ac_objext'
40760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40761 (eval $ac_try) 2>&5
40762 ac_status=$?
40763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40764 (exit $ac_status); }; }; then
40765 wx_cv_type_getsockopt5=size_t
40766else
40767 echo "$as_me: failed program was:" >&5
40768sed 's/^/| /' conftest.$ac_ext >&5
40769
40770cat >conftest.$ac_ext <<_ACEOF
40771/* confdefs.h. */
40772_ACEOF
40773cat confdefs.h >>conftest.$ac_ext
40774cat >>conftest.$ac_ext <<_ACEOF
40775/* end confdefs.h. */
40776
40777 #include <sys/types.h>
40778 #include <sys/socket.h>
40779
40780int
40781main ()
40782{
40783
40784 int len;
40785 getsockopt(0, 0, 0, 0, &len);
40786
40787 ;
40788 return 0;
40789}
40790_ACEOF
40791rm -f conftest.$ac_objext
40792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40793 (eval $ac_compile) 2>conftest.er1
40794 ac_status=$?
40795 grep -v '^ *+' conftest.er1 >conftest.err
40796 rm -f conftest.er1
40797 cat conftest.err >&5
40798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799 (exit $ac_status); } &&
6ebeb4c7 40800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40802 (eval $ac_try) 2>&5
40803 ac_status=$?
40804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805 (exit $ac_status); }; } &&
40806 { ac_try='test -s conftest.$ac_objext'
40807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40808 (eval $ac_try) 2>&5
40809 ac_status=$?
40810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40811 (exit $ac_status); }; }; then
40812 wx_cv_type_getsockopt5=int
40813else
40814 echo "$as_me: failed program was:" >&5
40815sed 's/^/| /' conftest.$ac_ext >&5
40816
40817wx_cv_type_getsockopt5=unknown
40818
40819fi
40820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40821
40822fi
40823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40824
6459a506 40825 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
40826
40827
40828fi
40829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40830
40831fi
40832echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40833echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40834
40835 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40836 wxUSE_SOCKETS=no
40837 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40838echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40839 else
40840 cat >>confdefs.h <<_ACEOF
40841#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
40842_ACEOF
40843
40844 fi
4d4ff94c
VZ
40845 ac_ext=c
40846ac_cpp='$CPP $CPPFLAGS'
40847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40849ac_compiler_gnu=$ac_cv_c_compiler_gnu
40850
a848cd7e
SC
40851 fi
40852fi
40853
40854if test "$wxUSE_SOCKETS" = "yes" ; then
40855 cat >>confdefs.h <<\_ACEOF
40856#define wxUSE_SOCKETS 1
40857_ACEOF
40858
40859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40860fi
40861
40862if test "$wxUSE_PROTOCOL" = "yes"; then
40863 if test "$wxUSE_SOCKETS" != "yes"; then
40864 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40865echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40866 wxUSE_PROTOCOL=no
40867 fi
40868fi
40869
40870if test "$wxUSE_PROTOCOL" = "yes"; then
40871 cat >>confdefs.h <<\_ACEOF
40872#define wxUSE_PROTOCOL 1
40873_ACEOF
40874
40875
40876 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40877 cat >>confdefs.h <<\_ACEOF
40878#define wxUSE_PROTOCOL_HTTP 1
40879_ACEOF
40880
40881 fi
40882 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
40883 cat >>confdefs.h <<\_ACEOF
40884#define wxUSE_PROTOCOL_FTP 1
40885_ACEOF
40886
40887 fi
40888 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
40889 cat >>confdefs.h <<\_ACEOF
40890#define wxUSE_PROTOCOL_FILE 1
40891_ACEOF
40892
40893 fi
40894else
40895 if test "$wxUSE_FS_INET" = "yes"; then
40896 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
40897echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
40898 wxUSE_FS_INET="no"
40899 fi
40900fi
40901
40902if test "$wxUSE_URL" = "yes"; then
40903 if test "$wxUSE_PROTOCOL" != "yes"; then
40904 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
40905echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
40906 wxUSE_URL=no
40907 fi
40908 if test "$wxUSE_URL" = "yes"; then
40909 cat >>confdefs.h <<\_ACEOF
40910#define wxUSE_URL 1
40911_ACEOF
40912
40913 fi
40914fi
40915
40916if test "$wxUSE_FS_INET" = "yes"; then
40917 cat >>confdefs.h <<\_ACEOF
40918#define wxUSE_FS_INET 1
40919_ACEOF
40920
40921fi
40922
40923
ee45c548
MW
40924if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
40925 wxUSE_JOYSTICK=no
40926
40927 if test "$TOOLKIT" = "MSW"; then
40928 wxUSE_JOYSTICK=yes
40929
40930 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
40931 if test "$USE_DARWIN" = 1; then
40932 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
40933echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
40934 ac_ext=cc
40935ac_cpp='$CXXCPP $CPPFLAGS'
40936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40939
40940 cat >conftest.$ac_ext <<_ACEOF
40941/* confdefs.h. */
40942_ACEOF
40943cat confdefs.h >>conftest.$ac_ext
40944cat >>conftest.$ac_ext <<_ACEOF
40945/* end confdefs.h. */
40946 #include <IOKit/hid/IOHIDLib.h>
40947int
40948main ()
40949{
40950 IOHIDQueueInterface *qi = NULL;
40951 IOHIDCallbackFunction cb = NULL;
40952 qi->setEventCallout(NULL, cb, NULL, NULL);
40953 ;
40954 return 0;
40955}
40956_ACEOF
40957rm -f conftest.$ac_objext
40958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40959 (eval $ac_compile) 2>conftest.er1
40960 ac_status=$?
40961 grep -v '^ *+' conftest.er1 >conftest.err
40962 rm -f conftest.er1
40963 cat conftest.err >&5
40964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965 (exit $ac_status); } &&
6ebeb4c7 40966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
40967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40968 (eval $ac_try) 2>&5
40969 ac_status=$?
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); }; } &&
40972 { ac_try='test -s conftest.$ac_objext'
40973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40974 (eval $ac_try) 2>&5
40975 ac_status=$?
40976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977 (exit $ac_status); }; }; then
40978 wxUSE_JOYSTICK=yes
a848cd7e 40979
ee45c548
MW
40980else
40981 echo "$as_me: failed program was:" >&5
40982sed 's/^/| /' conftest.$ac_ext >&5
40983
40984fi
40985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40986 ac_ext=c
40987ac_cpp='$CPP $CPPFLAGS'
40988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40990ac_compiler_gnu=$ac_cv_c_compiler_gnu
40991
40992 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
40993echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
40994 fi
40995
40996 else
a848cd7e
SC
40997
40998for ac_header in linux/joystick.h
40999do
41000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41001if eval "test \"\${$as_ac_Header+set}\" = set"; then
41002 echo "$as_me:$LINENO: checking for $ac_header" >&5
41003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41004if eval "test \"\${$as_ac_Header+set}\" = set"; then
41005 echo $ECHO_N "(cached) $ECHO_C" >&6
41006fi
41007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41009else
41010 # Is the header compilable?
41011echo "$as_me:$LINENO: checking $ac_header usability" >&5
41012echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41013cat >conftest.$ac_ext <<_ACEOF
41014/* confdefs.h. */
41015_ACEOF
41016cat confdefs.h >>conftest.$ac_ext
41017cat >>conftest.$ac_ext <<_ACEOF
41018/* end confdefs.h. */
41019$ac_includes_default
41020#include <$ac_header>
41021_ACEOF
41022rm -f conftest.$ac_objext
41023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41024 (eval $ac_compile) 2>conftest.er1
a848cd7e 41025 ac_status=$?
ac1cb8d3
VS
41026 grep -v '^ *+' conftest.er1 >conftest.err
41027 rm -f conftest.er1
41028 cat conftest.err >&5
a848cd7e
SC
41029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030 (exit $ac_status); } &&
6ebeb4c7 41031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41033 (eval $ac_try) 2>&5
41034 ac_status=$?
41035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036 (exit $ac_status); }; } &&
41037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41039 (eval $ac_try) 2>&5
41040 ac_status=$?
41041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41042 (exit $ac_status); }; }; then
41043 ac_header_compiler=yes
41044else
41045 echo "$as_me: failed program was:" >&5
41046sed 's/^/| /' conftest.$ac_ext >&5
41047
41048ac_header_compiler=no
41049fi
ac1cb8d3 41050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41051echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41052echo "${ECHO_T}$ac_header_compiler" >&6
41053
41054# Is the header present?
41055echo "$as_me:$LINENO: checking $ac_header presence" >&5
41056echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41057cat >conftest.$ac_ext <<_ACEOF
41058/* confdefs.h. */
41059_ACEOF
41060cat confdefs.h >>conftest.$ac_ext
41061cat >>conftest.$ac_ext <<_ACEOF
41062/* end confdefs.h. */
41063#include <$ac_header>
41064_ACEOF
41065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41067 ac_status=$?
41068 grep -v '^ *+' conftest.er1 >conftest.err
41069 rm -f conftest.er1
41070 cat conftest.err >&5
41071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072 (exit $ac_status); } >/dev/null; then
41073 if test -s conftest.err; then
41074 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41076 else
41077 ac_cpp_err=
41078 fi
41079else
41080 ac_cpp_err=yes
41081fi
41082if test -z "$ac_cpp_err"; then
41083 ac_header_preproc=yes
41084else
41085 echo "$as_me: failed program was:" >&5
41086sed 's/^/| /' conftest.$ac_ext >&5
41087
41088 ac_header_preproc=no
41089fi
41090rm -f conftest.err conftest.$ac_ext
41091echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41092echo "${ECHO_T}$ac_header_preproc" >&6
41093
41094# So? What about this header?
ac1cb8d3
VS
41095case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41096 yes:no: )
a848cd7e
SC
41097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41098echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41100echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41101 ac_header_preproc=yes
a848cd7e 41102 ;;
ac1cb8d3 41103 no:yes:* )
a848cd7e
SC
41104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41105echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41107echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41109echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41111echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41113echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41115echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41116 (
41117 cat <<\_ASBOX
ac1cb8d3
VS
41118## ----------------------------------------- ##
41119## Report this to wx-dev@lists.wxwidgets.org ##
41120## ----------------------------------------- ##
a848cd7e
SC
41121_ASBOX
41122 ) |
41123 sed "s/^/$as_me: WARNING: /" >&2
41124 ;;
41125esac
41126echo "$as_me:$LINENO: checking for $ac_header" >&5
41127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41128if eval "test \"\${$as_ac_Header+set}\" = set"; then
41129 echo $ECHO_N "(cached) $ECHO_C" >&6
41130else
ac1cb8d3 41131 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41132fi
41133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41135
41136fi
41137if test `eval echo '${'$as_ac_Header'}'` = yes; then
41138 cat >>confdefs.h <<_ACEOF
41139#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41140_ACEOF
ee45c548 41141 wxUSE_JOYSTICK=yes
a848cd7e
SC
41142fi
41143
41144done
41145
ee45c548 41146 fi
4cb1d3da 41147
ee45c548
MW
41148 if test "$wxUSE_JOYSTICK" = "yes"; then
41149 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41150#define wxUSE_JOYSTICK 1
41151_ACEOF
41152
ee45c548
MW
41153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
41154 else
41155 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
41156echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
41157 fi
41158fi
41159
41160
41161
41162if test "$wxUSE_FONTMAP" = "yes" ; then
41163 cat >>confdefs.h <<\_ACEOF
41164#define wxUSE_FONTMAP 1
41165_ACEOF
41166
41167fi
41168
41169if test "$wxUSE_UNICODE" = "yes" ; then
41170 cat >>confdefs.h <<\_ACEOF
41171#define wxUSE_UNICODE 1
41172_ACEOF
41173
41174
41175 if test "$USE_WIN32" != 1; then
41176 wxUSE_UNICODE_MSLU=no
41177 fi
41178
41179 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
41180 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
41181echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
41182if test "${ac_cv_lib_unicows_main+set}" = set; then
41183 echo $ECHO_N "(cached) $ECHO_C" >&6
41184else
41185 ac_check_lib_save_LIBS=$LIBS
41186LIBS="-lunicows $LIBS"
41187cat >conftest.$ac_ext <<_ACEOF
41188/* confdefs.h. */
41189_ACEOF
41190cat confdefs.h >>conftest.$ac_ext
41191cat >>conftest.$ac_ext <<_ACEOF
41192/* end confdefs.h. */
41193
41194
41195int
41196main ()
41197{
41198main ();
41199 ;
41200 return 0;
41201}
41202_ACEOF
41203rm -f conftest.$ac_objext conftest$ac_exeext
41204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41205 (eval $ac_link) 2>conftest.er1
a848cd7e 41206 ac_status=$?
ac1cb8d3
VS
41207 grep -v '^ *+' conftest.er1 >conftest.err
41208 rm -f conftest.er1
41209 cat conftest.err >&5
a848cd7e
SC
41210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41211 (exit $ac_status); } &&
6ebeb4c7 41212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41214 (eval $ac_try) 2>&5
41215 ac_status=$?
41216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41217 (exit $ac_status); }; } &&
41218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41220 (eval $ac_try) 2>&5
41221 ac_status=$?
41222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41223 (exit $ac_status); }; }; then
41224 ac_cv_lib_unicows_main=yes
41225else
41226 echo "$as_me: failed program was:" >&5
41227sed 's/^/| /' conftest.$ac_ext >&5
41228
41229ac_cv_lib_unicows_main=no
41230fi
ac1cb8d3
VS
41231rm -f conftest.err conftest.$ac_objext \
41232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41233LIBS=$ac_check_lib_save_LIBS
41234fi
41235echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
41236echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
41237if test $ac_cv_lib_unicows_main = yes; then
41238
41239 cat >>confdefs.h <<\_ACEOF
41240#define wxUSE_UNICODE_MSLU 1
41241_ACEOF
41242
41243
41244else
41245
41246 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41247 Applications will only run on Windows NT/2000/XP!" >&5
41248echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41249 Applications will only run on Windows NT/2000/XP!" >&2;}
41250 wxUSE_UNICODE_MSLU=no
41251
41252fi
41253
41254 fi
41255fi
41256
41257if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
41258 cat >>confdefs.h <<\_ACEOF
41259#define wxUSE_EXPERIMENTAL_PRINTF 1
41260_ACEOF
41261
41262fi
41263
41264
41265if test "$wxUSE_POSTSCRIPT" = "yes" ; then
41266 cat >>confdefs.h <<\_ACEOF
41267#define wxUSE_POSTSCRIPT 1
41268_ACEOF
41269
41270fi
41271
41272cat >>confdefs.h <<\_ACEOF
41273#define wxUSE_AFM_FOR_POSTSCRIPT 1
41274_ACEOF
41275
41276
41277cat >>confdefs.h <<\_ACEOF
41278#define wxUSE_NORMALIZED_PS_FONTS 1
41279_ACEOF
41280
41281
41282
41283if test "$wxUSE_CONSTRAINTS" = "yes"; then
41284 cat >>confdefs.h <<\_ACEOF
41285#define wxUSE_CONSTRAINTS 1
41286_ACEOF
41287
41288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
41289fi
41290
8a7b1113
VZ
41291if test "$wxUSE_MDI" = "yes"; then
41292 cat >>confdefs.h <<\_ACEOF
41293#define wxUSE_MDI 1
41294_ACEOF
41295
41296
41297 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41298 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41299#define wxUSE_MDI_ARCHITECTURE 1
41300_ACEOF
41301
8a7b1113
VZ
41302 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
41303 fi
a848cd7e
SC
41304fi
41305
41306if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
41307 cat >>confdefs.h <<\_ACEOF
41308#define wxUSE_DOC_VIEW_ARCHITECTURE 1
41309_ACEOF
41310
41311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
41312 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41313 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
41314 fi
41315fi
41316
41317if test "$wxUSE_HELP" = "yes"; then
41318 cat >>confdefs.h <<\_ACEOF
41319#define wxUSE_HELP 1
41320_ACEOF
41321
41322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
41323
41324 if test "$wxUSE_MSW" = 1; then
41325 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
41326 cat >>confdefs.h <<\_ACEOF
41327#define wxUSE_MS_HTML_HELP 1
41328_ACEOF
41329
41330 fi
41331 fi
41332
41333 if test "$wxUSE_WXHTML_HELP" = "yes"; then
41334 if test "$wxUSE_HTML" = "yes"; then
41335 cat >>confdefs.h <<\_ACEOF
41336#define wxUSE_WXHTML_HELP 1
41337_ACEOF
41338
41339 else
41340 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
41341echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
41342 wxUSE_WXHTML_HELP=no
41343 fi
41344 fi
41345fi
41346
41347if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41348 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41349 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
41350echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
41351 else
41352 cat >>confdefs.h <<\_ACEOF
41353#define wxUSE_PRINTING_ARCHITECTURE 1
41354_ACEOF
41355
41356 fi
41357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
41358fi
41359
41360if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
41361 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
41362echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
41363 { (exit 1); exit 1; }; }
41364fi
41365
41366
efdf6afe
VZ
41367if test "$wxUSE_METAFILE" = "yes"; then
41368 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
41369 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
41370echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
41371 wxUSE_METAFILE=no
41372 fi
41373fi
41374
41375
a848cd7e
SC
41376if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
41377 -o "$wxUSE_CLIPBOARD" = "yes" \
41378 -o "$wxUSE_OLE" = "yes" \
41379 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
41380
41381for ac_header in ole2.h
41382do
41383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41384if eval "test \"\${$as_ac_Header+set}\" = set"; then
41385 echo "$as_me:$LINENO: checking for $ac_header" >&5
41386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41387if eval "test \"\${$as_ac_Header+set}\" = set"; then
41388 echo $ECHO_N "(cached) $ECHO_C" >&6
41389fi
41390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41391echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41392else
41393 # Is the header compilable?
41394echo "$as_me:$LINENO: checking $ac_header usability" >&5
41395echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41396cat >conftest.$ac_ext <<_ACEOF
41397/* confdefs.h. */
41398_ACEOF
41399cat confdefs.h >>conftest.$ac_ext
41400cat >>conftest.$ac_ext <<_ACEOF
41401/* end confdefs.h. */
41402$ac_includes_default
41403#include <$ac_header>
41404_ACEOF
41405rm -f conftest.$ac_objext
41406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41407 (eval $ac_compile) 2>conftest.er1
a848cd7e 41408 ac_status=$?
ac1cb8d3
VS
41409 grep -v '^ *+' conftest.er1 >conftest.err
41410 rm -f conftest.er1
41411 cat conftest.err >&5
a848cd7e
SC
41412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41413 (exit $ac_status); } &&
6ebeb4c7 41414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41416 (eval $ac_try) 2>&5
41417 ac_status=$?
41418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41419 (exit $ac_status); }; } &&
41420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41422 (eval $ac_try) 2>&5
41423 ac_status=$?
41424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41425 (exit $ac_status); }; }; then
41426 ac_header_compiler=yes
41427else
41428 echo "$as_me: failed program was:" >&5
41429sed 's/^/| /' conftest.$ac_ext >&5
41430
41431ac_header_compiler=no
41432fi
ac1cb8d3 41433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41434echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41435echo "${ECHO_T}$ac_header_compiler" >&6
41436
41437# Is the header present?
41438echo "$as_me:$LINENO: checking $ac_header presence" >&5
41439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41440cat >conftest.$ac_ext <<_ACEOF
41441/* confdefs.h. */
41442_ACEOF
41443cat confdefs.h >>conftest.$ac_ext
41444cat >>conftest.$ac_ext <<_ACEOF
41445/* end confdefs.h. */
41446#include <$ac_header>
41447_ACEOF
41448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41450 ac_status=$?
41451 grep -v '^ *+' conftest.er1 >conftest.err
41452 rm -f conftest.er1
41453 cat conftest.err >&5
41454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41455 (exit $ac_status); } >/dev/null; then
41456 if test -s conftest.err; then
41457 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41459 else
41460 ac_cpp_err=
41461 fi
41462else
41463 ac_cpp_err=yes
41464fi
41465if test -z "$ac_cpp_err"; then
41466 ac_header_preproc=yes
41467else
41468 echo "$as_me: failed program was:" >&5
41469sed 's/^/| /' conftest.$ac_ext >&5
41470
41471 ac_header_preproc=no
41472fi
41473rm -f conftest.err conftest.$ac_ext
41474echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41475echo "${ECHO_T}$ac_header_preproc" >&6
41476
41477# So? What about this header?
ac1cb8d3
VS
41478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41479 yes:no: )
a848cd7e
SC
41480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41481echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41483echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41484 ac_header_preproc=yes
a848cd7e 41485 ;;
ac1cb8d3 41486 no:yes:* )
a848cd7e
SC
41487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41488echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41490echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41492echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41494echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41496echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41498echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41499 (
41500 cat <<\_ASBOX
ac1cb8d3
VS
41501## ----------------------------------------- ##
41502## Report this to wx-dev@lists.wxwidgets.org ##
41503## ----------------------------------------- ##
a848cd7e
SC
41504_ASBOX
41505 ) |
41506 sed "s/^/$as_me: WARNING: /" >&2
41507 ;;
41508esac
41509echo "$as_me:$LINENO: checking for $ac_header" >&5
41510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41511if eval "test \"\${$as_ac_Header+set}\" = set"; then
41512 echo $ECHO_N "(cached) $ECHO_C" >&6
41513else
ac1cb8d3 41514 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41515fi
41516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41518
41519fi
41520if test `eval echo '${'$as_ac_Header'}'` = yes; then
41521 cat >>confdefs.h <<_ACEOF
41522#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41523_ACEOF
41524
41525fi
41526
41527done
41528
41529
41530 if test "$ac_cv_header_ole2_h" = "yes" ; then
41531 if test "$GCC" = yes ; then
41532
41533
41534 ac_ext=cc
41535ac_cpp='$CXXCPP $CPPFLAGS'
41536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41539
41540
41541 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
41542echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
41543 cat >conftest.$ac_ext <<_ACEOF
41544/* confdefs.h. */
41545_ACEOF
41546cat confdefs.h >>conftest.$ac_ext
41547cat >>conftest.$ac_ext <<_ACEOF
41548/* end confdefs.h. */
41549#include <windows.h>
41550 #include <ole2.h>
41551int
41552main ()
41553{
41554
41555 ;
41556 return 0;
41557}
41558_ACEOF
41559rm -f conftest.$ac_objext
41560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41561 (eval $ac_compile) 2>conftest.er1
a848cd7e 41562 ac_status=$?
ac1cb8d3
VS
41563 grep -v '^ *+' conftest.er1 >conftest.err
41564 rm -f conftest.er1
41565 cat conftest.err >&5
a848cd7e
SC
41566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41567 (exit $ac_status); } &&
6ebeb4c7 41568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41570 (eval $ac_try) 2>&5
41571 ac_status=$?
41572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41573 (exit $ac_status); }; } &&
41574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41576 (eval $ac_try) 2>&5
41577 ac_status=$?
41578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579 (exit $ac_status); }; }; then
41580 echo "$as_me:$LINENO: result: no" >&5
41581echo "${ECHO_T}no" >&6
41582else
41583 echo "$as_me: failed program was:" >&5
41584sed 's/^/| /' conftest.$ac_ext >&5
41585
41586echo "$as_me:$LINENO: result: yes" >&5
41587echo "${ECHO_T}yes" >&6
41588 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
41589fi
ac1cb8d3 41590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41591 ac_ext=c
41592ac_cpp='$CPP $CPPFLAGS'
41593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41595ac_compiler_gnu=$ac_cv_c_compiler_gnu
41596
a848cd7e
SC
41597 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
41598 if test "$wxUSE_OLE" = "yes" ; then
41599 cat >>confdefs.h <<\_ACEOF
41600#define wxUSE_OLE 1
41601_ACEOF
41602
0b78747f 41603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
41604 fi
41605 fi
41606
41607 if test "$wxUSE_DATAOBJ" = "yes" ; then
41608 cat >>confdefs.h <<\_ACEOF
41609#define wxUSE_DATAOBJ 1
41610_ACEOF
41611
41612 fi
41613 else
41614 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
41615echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
41616
41617 wxUSE_CLIPBOARD=no
41618 wxUSE_DRAG_AND_DROP=no
41619 wxUSE_DATAOBJ=no
41620 wxUSE_OLE=no
41621 fi
41622
41623 if test "$wxUSE_METAFILE" = "yes"; then
41624 cat >>confdefs.h <<\_ACEOF
41625#define wxUSE_METAFILE 1
41626_ACEOF
41627
41628
41629 cat >>confdefs.h <<\_ACEOF
41630#define wxUSE_ENH_METAFILE 1
41631_ACEOF
41632
41633 fi
41634fi
41635
41636if test "$wxUSE_IPC" = "yes"; then
0b78747f 41637 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
41638 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
41639echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 41640 wxUSE_IPC=no
a848cd7e
SC
41641 fi
41642
0b78747f
MW
41643 if test "$wxUSE_IPC" = "yes"; then
41644 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41645#define wxUSE_IPC 1
41646_ACEOF
41647
0b78747f
MW
41648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
41649 fi
a848cd7e
SC
41650fi
41651
eb730a0c 41652if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
41653 if test "$wxUSE_MGL" = 1; then
41654 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
41655echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
41656 wxUSE_DATAOBJ=no
41657 else
41658 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
41659#define wxUSE_DATAOBJ 1
41660_ACEOF
41661
2113bc77 41662 fi
eb730a0c
JS
41663else
41664 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
41665echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
41666 wxUSE_CLIPBOARD=no
41667 wxUSE_DRAG_AND_DROP=no
41668fi
41669
a848cd7e
SC
41670if test "$wxUSE_CLIPBOARD" = "yes"; then
41671 if test "$wxUSE_MGL" = 1; then
41672 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
41673echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
41674 wxUSE_CLIPBOARD=no
41675 fi
41676
41677 if test "$wxUSE_CLIPBOARD" = "yes"; then
41678 cat >>confdefs.h <<\_ACEOF
41679#define wxUSE_CLIPBOARD 1
41680_ACEOF
41681
a848cd7e
SC
41682 fi
41683fi
41684
41685if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
41686 if test "$wxUSE_GTK" = 1; then
41687 if test "$WXGTK12" != 1; then
41688 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
41689echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
41690 wxUSE_DRAG_AND_DROP=no
41691 fi
41692 fi
41693
41694 if test "$wxUSE_MOTIF" = 1; then
41695 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
41696echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
41697 wxUSE_DRAG_AND_DROP=no
41698 fi
41699
41700 if test "$wxUSE_X11" = 1; then
41701 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
41702echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
41703 wxUSE_DRAG_AND_DROP=no
41704 fi
41705
41706 if test "$wxUSE_MGL" = 1; then
41707 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
41708echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
41709 wxUSE_DRAG_AND_DROP=no
41710 fi
41711
41712 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
41713 cat >>confdefs.h <<\_ACEOF
41714#define wxUSE_DRAG_AND_DROP 1
41715_ACEOF
41716
41717 fi
41718
41719fi
41720
41721if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41723fi
41724
41725if test "$wxUSE_SPLINES" = "yes" ; then
41726 cat >>confdefs.h <<\_ACEOF
41727#define wxUSE_SPLINES 1
41728_ACEOF
41729
41730fi
41731
fbe2ca43
SN
41732if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41733 cat >>confdefs.h <<\_ACEOF
41734#define wxUSE_MOUSEWHEEL 1
41735_ACEOF
41736
41737fi
41738
a848cd7e
SC
41739
41740USES_CONTROLS=0
41741if test "$wxUSE_CONTROLS" = "yes"; then
41742 USES_CONTROLS=1
41743fi
41744
41745if test "$wxUSE_ACCEL" = "yes"; then
41746 cat >>confdefs.h <<\_ACEOF
41747#define wxUSE_ACCEL 1
41748_ACEOF
41749
41750 USES_CONTROLS=1
41751fi
41752
41753if test "$wxUSE_BUTTON" = "yes"; then
41754 cat >>confdefs.h <<\_ACEOF
41755#define wxUSE_BUTTON 1
41756_ACEOF
41757
41758 USES_CONTROLS=1
41759fi
41760
41761if test "$wxUSE_BMPBUTTON" = "yes"; then
41762 cat >>confdefs.h <<\_ACEOF
41763#define wxUSE_BMPBUTTON 1
41764_ACEOF
41765
41766 USES_CONTROLS=1
41767fi
41768
41769if test "$wxUSE_CALCTRL" = "yes"; then
41770 cat >>confdefs.h <<\_ACEOF
41771#define wxUSE_CALENDARCTRL 1
41772_ACEOF
41773
41774 USES_CONTROLS=1
41775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41776fi
41777
41778if test "$wxUSE_CARET" = "yes"; then
41779 cat >>confdefs.h <<\_ACEOF
41780#define wxUSE_CARET 1
41781_ACEOF
41782
41783 USES_CONTROLS=1
41784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41785fi
41786
41787if test "$wxUSE_COMBOBOX" = "yes"; then
41788 cat >>confdefs.h <<\_ACEOF
41789#define wxUSE_COMBOBOX 1
41790_ACEOF
41791
41792 USES_CONTROLS=1
41793fi
41794
41795if test "$wxUSE_CHOICE" = "yes"; then
41796 cat >>confdefs.h <<\_ACEOF
41797#define wxUSE_CHOICE 1
41798_ACEOF
41799
41800 USES_CONTROLS=1
41801fi
41802
92bbdbcd
WS
41803if test "$wxUSE_CHOICEBOOK" = "yes"; then
41804 cat >>confdefs.h <<\_ACEOF
41805#define wxUSE_CHOICEBOOK 1
41806_ACEOF
41807
41808 USES_CONTROLS=1
41809fi
41810
a848cd7e
SC
41811if test "$wxUSE_CHECKBOX" = "yes"; then
41812 cat >>confdefs.h <<\_ACEOF
41813#define wxUSE_CHECKBOX 1
41814_ACEOF
41815
41816 USES_CONTROLS=1
41817fi
41818
41819if test "$wxUSE_CHECKLST" = "yes"; then
41820 cat >>confdefs.h <<\_ACEOF
41821#define wxUSE_CHECKLISTBOX 1
41822_ACEOF
41823
41824 USES_CONTROLS=1
41825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41826fi
41827
da98e9be
VZ
41828if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41829 cat >>confdefs.h <<\_ACEOF
41830#define wxUSE_DATEPICKCTRL 1
41831_ACEOF
41832
41833 USES_CONTROLS=1
41834fi
41835
a848cd7e
SC
41836if test "$wxUSE_DISPLAY" = "yes"; then
41837 cat >>confdefs.h <<\_ACEOF
41838#define wxUSE_DISPLAY 1
41839_ACEOF
41840
0b78747f 41841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
41842fi
41843
41844if test "$wxUSE_GAUGE" = "yes"; then
41845 cat >>confdefs.h <<\_ACEOF
41846#define wxUSE_GAUGE 1
41847_ACEOF
41848
41849 USES_CONTROLS=1
41850fi
41851
41852if test "$wxUSE_GRID" = "yes"; then
41853 cat >>confdefs.h <<\_ACEOF
41854#define wxUSE_GRID 1
41855_ACEOF
41856
41857 USES_CONTROLS=1
41858 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41859fi
41860
41861if test "$wxUSE_IMAGLIST" = "yes"; then
41862 cat >>confdefs.h <<\_ACEOF
41863#define wxUSE_IMAGLIST 1
41864_ACEOF
41865
41866fi
41867
41868if test "$wxUSE_LISTBOOK" = "yes"; then
41869 cat >>confdefs.h <<\_ACEOF
41870#define wxUSE_LISTBOOK 1
41871_ACEOF
41872
41873 USES_CONTROLS=1
41874fi
41875
41876if test "$wxUSE_LISTBOX" = "yes"; then
41877 cat >>confdefs.h <<\_ACEOF
41878#define wxUSE_LISTBOX 1
41879_ACEOF
41880
41881 USES_CONTROLS=1
0b78747f 41882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
41883fi
41884
41885if test "$wxUSE_LISTCTRL" = "yes"; then
41886 if test "$wxUSE_IMAGLIST" = "yes"; then
41887 cat >>confdefs.h <<\_ACEOF
41888#define wxUSE_LISTCTRL 1
41889_ACEOF
41890
41891 USES_CONTROLS=1
41892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
41893 else
41894 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
41895echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
41896 fi
41897fi
41898
41899if test "$wxUSE_NOTEBOOK" = "yes"; then
41900 cat >>confdefs.h <<\_ACEOF
41901#define wxUSE_NOTEBOOK 1
41902_ACEOF
41903
41904 USES_CONTROLS=1
41905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
41906fi
41907
41908
41909if test "$wxUSE_RADIOBOX" = "yes"; then
41910 cat >>confdefs.h <<\_ACEOF
41911#define wxUSE_RADIOBOX 1
41912_ACEOF
41913
41914 USES_CONTROLS=1
41915fi
41916
41917if test "$wxUSE_RADIOBTN" = "yes"; then
41918 cat >>confdefs.h <<\_ACEOF
41919#define wxUSE_RADIOBTN 1
41920_ACEOF
41921
41922 USES_CONTROLS=1
41923fi
41924
41925if test "$wxUSE_SASH" = "yes"; then
41926 cat >>confdefs.h <<\_ACEOF
41927#define wxUSE_SASH 1
41928_ACEOF
41929
41930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
41931fi
41932
41933if test "$wxUSE_SCROLLBAR" = "yes"; then
41934 cat >>confdefs.h <<\_ACEOF
41935#define wxUSE_SCROLLBAR 1
41936_ACEOF
41937
41938 USES_CONTROLS=1
41939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
41940fi
41941
41942if test "$wxUSE_SLIDER" = "yes"; then
41943 cat >>confdefs.h <<\_ACEOF
41944#define wxUSE_SLIDER 1
41945_ACEOF
41946
41947 USES_CONTROLS=1
41948fi
41949
41950if test "$wxUSE_SPINBTN" = "yes"; then
41951 cat >>confdefs.h <<\_ACEOF
41952#define wxUSE_SPINBTN 1
41953_ACEOF
41954
41955 USES_CONTROLS=1
41956fi
41957
41958if test "$wxUSE_SPINCTRL" = "yes"; then
41959 cat >>confdefs.h <<\_ACEOF
41960#define wxUSE_SPINCTRL 1
41961_ACEOF
41962
41963 USES_CONTROLS=1
41964fi
41965
41966if test "$wxUSE_SPLITTER" = "yes"; then
41967 cat >>confdefs.h <<\_ACEOF
41968#define wxUSE_SPLITTER 1
41969_ACEOF
41970
41971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
41972fi
41973
41974if test "$wxUSE_STATBMP" = "yes"; then
41975 cat >>confdefs.h <<\_ACEOF
41976#define wxUSE_STATBMP 1
41977_ACEOF
41978
41979 USES_CONTROLS=1
41980fi
41981
41982if test "$wxUSE_STATBOX" = "yes"; then
41983 cat >>confdefs.h <<\_ACEOF
41984#define wxUSE_STATBOX 1
41985_ACEOF
41986
41987 USES_CONTROLS=1
41988fi
41989
41990if test "$wxUSE_STATTEXT" = "yes"; then
41991 cat >>confdefs.h <<\_ACEOF
41992#define wxUSE_STATTEXT 1
41993_ACEOF
41994
41995 USES_CONTROLS=1
41996fi
41997
41998if test "$wxUSE_STATLINE" = "yes"; then
41999 cat >>confdefs.h <<\_ACEOF
42000#define wxUSE_STATLINE 1
42001_ACEOF
42002
42003 USES_CONTROLS=1
42004fi
42005
42006if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
42007 cat >>confdefs.h <<\_ACEOF
42008#define wxUSE_NATIVE_STATUSBAR 1
42009_ACEOF
42010
a848cd7e
SC
42011 cat >>confdefs.h <<\_ACEOF
42012#define wxUSE_STATUSBAR 1
42013_ACEOF
42014
42015 USES_CONTROLS=1
42016
42017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
42018fi
42019
42020if test "$wxUSE_TABDIALOG" = "yes"; then
42021 cat >>confdefs.h <<\_ACEOF
42022#define wxUSE_TAB_DIALOG 1
42023_ACEOF
42024
a848cd7e
SC
42025fi
42026
42027if test "$wxUSE_TEXTCTRL" = "yes"; then
42028 cat >>confdefs.h <<\_ACEOF
42029#define wxUSE_TEXTCTRL 1
42030_ACEOF
42031
42032 USES_CONTROLS=1
42033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
42034fi
42035
42036if test "$wxUSE_TOGGLEBTN" = "yes"; then
42037 if test "$wxUSE_COCOA" = 1 ; then
42038 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
42039echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
42040 wxUSE_TOGGLEBTN=no
42041 fi
42042 if test "$wxUSE_UNIVERSAL" = "yes"; then
42043 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
42044echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
42045 wxUSE_TOGGLEBTN=no
42046 fi
42047
42048 if test "$wxUSE_TOGGLEBTN" = "yes"; then
42049 cat >>confdefs.h <<\_ACEOF
42050#define wxUSE_TOGGLEBTN 1
42051_ACEOF
42052
42053 USES_CONTROLS=1
42054 fi
42055fi
42056
42057if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
42058 cat >>confdefs.h <<\_ACEOF
42059#define wxUSE_TOOLBAR_SIMPLE 1
42060_ACEOF
42061
42062 wxUSE_TOOLBAR="yes"
42063 USES_CONTROLS=1
42064fi
42065
42066if test "$wxUSE_TOOLBAR" = "yes"; then
42067 cat >>confdefs.h <<\_ACEOF
42068#define wxUSE_TOOLBAR 1
42069_ACEOF
42070
42071 USES_CONTROLS=1
42072
42073 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
42074 wxUSE_TOOLBAR_NATIVE="yes"
42075 fi
42076
42077 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
42078 cat >>confdefs.h <<\_ACEOF
42079#define wxUSE_TOOLBAR_NATIVE 1
42080_ACEOF
42081
42082 USES_CONTROLS=1
42083 fi
42084
42085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
42086fi
42087
42088if test "$wxUSE_TOOLTIPS" = "yes"; then
42089 if test "$wxUSE_MOTIF" = 1; then
42090 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
42091echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
42092 else
42093 if test "$wxUSE_UNIVERSAL" = "yes"; then
42094 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
42095echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
42096 else
42097 cat >>confdefs.h <<\_ACEOF
42098#define wxUSE_TOOLTIPS 1
42099_ACEOF
42100
42101 fi
42102 fi
42103fi
42104
42105if test "$wxUSE_TREECTRL" = "yes"; then
42106 if test "$wxUSE_IMAGLIST" = "yes"; then
42107 cat >>confdefs.h <<\_ACEOF
42108#define wxUSE_TREECTRL 1
42109_ACEOF
42110
42111 USES_CONTROLS=1
42112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
42113 else
42114 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
42115echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
42116 fi
42117fi
42118
42119if test "$wxUSE_POPUPWIN" = "yes"; then
42120 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42121 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
42122echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
42123 else
42124 if test "$wxUSE_PM" = 1; then
42125 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
42126echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
42127 else
42128 cat >>confdefs.h <<\_ACEOF
42129#define wxUSE_POPUPWIN 1
42130_ACEOF
42131
0b78747f 42132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
42133
42134 USES_CONTROLS=1
42135 fi
42136 fi
42137fi
42138
0dcd06dd 42139if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
42140 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42141 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
42142echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
42143 else
42144 cat >>confdefs.h <<\_ACEOF
42145#define wxUSE_DIALUP_MANAGER 1
42146_ACEOF
42147
42148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
42149 fi
42150fi
42151
a848cd7e
SC
42152if test "$wxUSE_TIPWINDOW" = "yes"; then
42153 if test "$wxUSE_PM" = 1; then
42154 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
42155echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
42156 else
42157 cat >>confdefs.h <<\_ACEOF
42158#define wxUSE_TIPWINDOW 1
42159_ACEOF
42160
42161 fi
42162fi
42163
42164if test "$USES_CONTROLS" = 1; then
42165 cat >>confdefs.h <<\_ACEOF
42166#define wxUSE_CONTROLS 1
42167_ACEOF
42168
42169fi
42170
42171
42172if test "$wxUSE_ACCESSIBILITY" = "yes"; then
42173 cat >>confdefs.h <<\_ACEOF
42174#define wxUSE_ACCESSIBILITY 1
42175_ACEOF
42176
42177 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
42178fi
42179
38b4a946
VZ
42180if test "$wxUSE_DC_CACHEING" = "yes"; then
42181 cat >>confdefs.h <<\_ACEOF
42182#define wxUSE_DC_CACHEING 1
42183_ACEOF
42184
42185fi
42186
a848cd7e
SC
42187if test "$wxUSE_DRAGIMAGE" = "yes"; then
42188 cat >>confdefs.h <<\_ACEOF
42189#define wxUSE_DRAGIMAGE 1
42190_ACEOF
42191
42192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
42193fi
42194
42195if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
42196 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42197 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
42198echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
42199 else
42200 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42201#define wxUSE_EXCEPTIONS 1
42202_ACEOF
42203
07bea8f0
VS
42204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
42205 fi
a848cd7e
SC
42206fi
42207
42208USE_HTML=0
42209if test "$wxUSE_HTML" = "yes"; then
42210 cat >>confdefs.h <<\_ACEOF
42211#define wxUSE_HTML 1
42212_ACEOF
42213
42214 USE_HTML=1
42215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
42216 if test "$wxUSE_MAC" = 1; then
42217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
42218 fi
a848cd7e 42219fi
646b6ec1 42220if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 42221 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
42222 old_CPPFLAGS="$CPPFLAGS"
42223 CPPFLAGS="$CPPFLAGS -x objective-c++"
42224 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
42225echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
42226if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
42227 echo $ECHO_N "(cached) $ECHO_C" >&6
42228else
42229 cat >conftest.$ac_ext <<_ACEOF
42230/* confdefs.h. */
42231_ACEOF
42232cat confdefs.h >>conftest.$ac_ext
42233cat >>conftest.$ac_ext <<_ACEOF
42234/* end confdefs.h. */
42235#include <Carbon/Carbon.h>
42236
42237#include <WebKit/HIWebView.h>
42238_ACEOF
42239rm -f conftest.$ac_objext
42240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42241 (eval $ac_compile) 2>conftest.er1
42242 ac_status=$?
42243 grep -v '^ *+' conftest.er1 >conftest.err
42244 rm -f conftest.er1
42245 cat conftest.err >&5
42246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42247 (exit $ac_status); } &&
6ebeb4c7 42248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
42249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42250 (eval $ac_try) 2>&5
42251 ac_status=$?
42252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42253 (exit $ac_status); }; } &&
42254 { ac_try='test -s conftest.$ac_objext'
42255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42256 (eval $ac_try) 2>&5
42257 ac_status=$?
42258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42259 (exit $ac_status); }; }; then
42260 ac_cv_header_WebKit_HIWebView_h=yes
42261else
42262 echo "$as_me: failed program was:" >&5
42263sed 's/^/| /' conftest.$ac_ext >&5
42264
42265ac_cv_header_WebKit_HIWebView_h=no
42266fi
42267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42268fi
42269echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
42270echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
42271if test $ac_cv_header_WebKit_HIWebView_h = yes; then
42272
42273 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
42274#define wxUSE_WEBKIT 1
42275_ACEOF
42276
07bea8f0
VS
42277 WEBKIT_LINK="-framework WebKit"
42278
42279else
42280
42281 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
42282echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
42283 wxUSE_WEBKIT=no
42284
646b6ec1
VS
42285fi
42286
07bea8f0
VS
42287
42288 CPPFLAGS="$old_CPPFLAGS"
42289 elif test "$wxUSE_COCOA" = 1; then
42290 cat >>confdefs.h <<\_ACEOF
42291#define wxUSE_WEBKIT 1
42292_ACEOF
42293
42294 else
42295 wxUSE_WEBKIT=no
42296 fi
42297fi
42298
9a8f0513
VS
42299USE_XRC=0
42300if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
42301 if test "$wxUSE_XML" != "yes"; then
42302 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
42303echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
42304 wxUSE_XRC=no
42305 else
42306 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
42307#define wxUSE_XRC 1
42308_ACEOF
42309
d2ebf0b7
VS
42310 USE_XRC=1
42311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
42312 fi
9a8f0513 42313fi
07bea8f0 42314
a848cd7e
SC
42315if test "$wxUSE_MENUS" = "yes"; then
42316 cat >>confdefs.h <<\_ACEOF
42317#define wxUSE_MENUS 1
42318_ACEOF
42319
42320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
42321fi
42322
42323if test "$wxUSE_METAFILE" = "yes"; then
42324 cat >>confdefs.h <<\_ACEOF
42325#define wxUSE_METAFILE 1
42326_ACEOF
42327
42328fi
42329
42330if test "$wxUSE_MIMETYPE" = "yes"; then
42331 cat >>confdefs.h <<\_ACEOF
42332#define wxUSE_MIMETYPE 1
42333_ACEOF
42334
42335fi
42336
42337if test "$wxUSE_MINIFRAME" = "yes"; then
42338 cat >>confdefs.h <<\_ACEOF
42339#define wxUSE_MINIFRAME 1
42340_ACEOF
42341
42342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
42343fi
42344
42345if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
42346 cat >>confdefs.h <<\_ACEOF
42347#define wxUSE_SYSTEM_OPTIONS 1
42348_ACEOF
42349
42350 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 42351 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
42352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
42353 fi
42354fi
42355
42356
42357if test "$wxUSE_VALIDATORS" = "yes"; then
42358 cat >>confdefs.h <<\_ACEOF
42359#define wxUSE_VALIDATORS 1
42360_ACEOF
42361
42362 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
42363fi
42364
42365if test "$wxUSE_PALETTE" = "yes" ; then
42366 cat >>confdefs.h <<\_ACEOF
42367#define wxUSE_PALETTE 1
42368_ACEOF
42369
42370fi
42371
42372if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
42373 LIBS=" -lunicows $LIBS"
42374fi
42375
42376
42377if test "$wxUSE_IMAGE" = "yes" ; then
42378 cat >>confdefs.h <<\_ACEOF
42379#define wxUSE_IMAGE 1
42380_ACEOF
42381
42382
42383 if test "$wxUSE_GIF" = "yes" ; then
42384 cat >>confdefs.h <<\_ACEOF
42385#define wxUSE_GIF 1
42386_ACEOF
42387
42388 fi
42389
42390 if test "$wxUSE_PCX" = "yes" ; then
42391 cat >>confdefs.h <<\_ACEOF
42392#define wxUSE_PCX 1
42393_ACEOF
42394
42395 fi
42396
42397 if test "$wxUSE_IFF" = "yes" ; then
42398 cat >>confdefs.h <<\_ACEOF
42399#define wxUSE_IFF 1
42400_ACEOF
42401
42402 fi
42403
42404 if test "$wxUSE_PNM" = "yes" ; then
42405 cat >>confdefs.h <<\_ACEOF
42406#define wxUSE_PNM 1
42407_ACEOF
42408
42409 fi
42410
42411 if test "$wxUSE_XPM" = "yes" ; then
42412 cat >>confdefs.h <<\_ACEOF
42413#define wxUSE_XPM 1
42414_ACEOF
42415
42416 fi
42417
42418 if test "$wxUSE_ICO_CUR" = "yes" ; then
42419 cat >>confdefs.h <<\_ACEOF
42420#define wxUSE_ICO_CUR 1
42421_ACEOF
42422
42423 fi
42424fi
42425
42426
42427if test "$wxUSE_CHOICEDLG" = "yes"; then
42428 cat >>confdefs.h <<\_ACEOF
42429#define wxUSE_CHOICEDLG 1
42430_ACEOF
42431
42432fi
42433
42434if test "$wxUSE_COLOURDLG" = "yes"; then
42435 cat >>confdefs.h <<\_ACEOF
42436#define wxUSE_COLOURDLG 1
42437_ACEOF
42438
42439fi
42440
42441if test "$wxUSE_FILEDLG" = "yes"; then
42442 cat >>confdefs.h <<\_ACEOF
42443#define wxUSE_FILEDLG 1
42444_ACEOF
42445
42446fi
42447
42448if test "$wxUSE_FINDREPLDLG" = "yes"; then
42449 cat >>confdefs.h <<\_ACEOF
42450#define wxUSE_FINDREPLDLG 1
42451_ACEOF
42452
42453fi
42454
42455if test "$wxUSE_FONTDLG" = "yes"; then
42456 cat >>confdefs.h <<\_ACEOF
42457#define wxUSE_FONTDLG 1
42458_ACEOF
42459
42460fi
42461
42462if test "$wxUSE_DIRDLG" = "yes"; then
42463 if test "$wxUSE_TREECTRL" != "yes"; then
42464 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
42465echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
42466 else
42467 cat >>confdefs.h <<\_ACEOF
42468#define wxUSE_DIRDLG 1
42469_ACEOF
42470
42471 fi
42472fi
42473
42474if test "$wxUSE_MSGDLG" = "yes"; then
42475 cat >>confdefs.h <<\_ACEOF
42476#define wxUSE_MSGDLG 1
42477_ACEOF
42478
42479fi
42480
42481if test "$wxUSE_NUMBERDLG" = "yes"; then
42482 cat >>confdefs.h <<\_ACEOF
42483#define wxUSE_NUMBERDLG 1
42484_ACEOF
42485
42486fi
42487
42488if test "$wxUSE_PROGRESSDLG" = "yes"; then
42489 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42490 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
42491echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
42492 else
42493 cat >>confdefs.h <<\_ACEOF
42494#define wxUSE_PROGRESSDLG 1
42495_ACEOF
42496
42497 fi
42498fi
42499
42500if test "$wxUSE_SPLASH" = "yes"; then
42501 cat >>confdefs.h <<\_ACEOF
42502#define wxUSE_SPLASH 1
42503_ACEOF
42504
2057db16 42505 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
42506fi
42507
42508if test "$wxUSE_STARTUP_TIPS" = "yes"; then
42509 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42510 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
42511echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
42512 else
42513 cat >>confdefs.h <<\_ACEOF
42514#define wxUSE_STARTUP_TIPS 1
42515_ACEOF
42516
42517 fi
42518fi
42519
42520if test "$wxUSE_TEXTDLG" = "yes"; then
42521 cat >>confdefs.h <<\_ACEOF
42522#define wxUSE_TEXTDLG 1
42523_ACEOF
42524
42525fi
42526
42527if test "$wxUSE_WIZARDDLG" = "yes"; then
42528 cat >>confdefs.h <<\_ACEOF
42529#define wxUSE_WIZARDDLG 1
42530_ACEOF
42531
42532 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
42533fi
42534
42535
ce756cb0 42536if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
42537 if test "$wxUSE_GTK" = 1; then
42538 wxUSE_GSTREAMER="yes"
42539
ce756cb0 42540
dae87f93 42541 succeeded=no
ce756cb0 42542
dae87f93
RN
42543 if test -z "$PKG_CONFIG"; then
42544 # Extract the first word of "pkg-config", so it can be a program name with args.
42545set dummy pkg-config; ac_word=$2
42546echo "$as_me:$LINENO: checking for $ac_word" >&5
42547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42548if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42549 echo $ECHO_N "(cached) $ECHO_C" >&6
42550else
42551 case $PKG_CONFIG in
42552 [\\/]* | ?:[\\/]*)
42553 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42554 ;;
42555 *)
42556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42557for as_dir in $PATH
42558do
42559 IFS=$as_save_IFS
42560 test -z "$as_dir" && as_dir=.
42561 for ac_exec_ext in '' $ac_executable_extensions; do
42562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42563 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42565 break 2
42566 fi
42567done
42568done
42569
42570 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
42571 ;;
42572esac
42573fi
42574PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42575
42576if test -n "$PKG_CONFIG"; then
42577 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42578echo "${ECHO_T}$PKG_CONFIG" >&6
42579else
42580 echo "$as_me:$LINENO: result: no" >&5
42581echo "${ECHO_T}no" >&6
42582fi
42583
42584 fi
42585
42586 if test "$PKG_CONFIG" = "no" ; then
42587 echo "*** The pkg-config script could not be found. Make sure it is"
42588 echo "*** in your path, or set the PKG_CONFIG environment variable"
42589 echo "*** to the full path to pkg-config."
42590 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
42591 else
42592 PKG_CONFIG_MIN_VERSION=0.9.0
42593 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
42594 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
42595echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
42596
42597 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
42598 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42599echo "${ECHO_T}yes" >&6
dae87f93 42600 succeeded=yes
ce756cb0 42601
dae87f93
RN
42602 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
42603echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
42604 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
42605 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
42606echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
42607
42608 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
42609echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
42610 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
42611 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
42612echo "${ECHO_T}$GSTREAMER_LIBS" >&6
42613 else
42614 GSTREAMER_CFLAGS=""
42615 GSTREAMER_LIBS=""
42616 ## If we have a custom action on failure, don't print errors, but
42617 ## do set a variable so people can do so.
42618 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 42619
dae87f93
RN
42620 fi
42621
42622
42623
42624 else
42625 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
42626 echo "*** See http://www.freedesktop.org/software/pkgconfig"
42627 fi
42628 fi
42629
42630 if test $succeeded = yes; then
42631
42632 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
42633 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 42634
ce756cb0 42635 else
dae87f93
RN
42636
42637 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
42638echo "$as_me: WARNING: GStreamer installation not found" >&2;}
42639 wxUSE_GSTREAMER="no"
42640
42641 fi
42642
42643
42644
42645
42646
42647 if test "x$GST_INSPECT" == "x"; then
42648 # Extract the first word of "gst-inspect", so it can be a program name with args.
42649set dummy gst-inspect; ac_word=$2
42650echo "$as_me:$LINENO: checking for $ac_word" >&5
42651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42652if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
42653 echo $ECHO_N "(cached) $ECHO_C" >&6
42654else
42655 if test -n "$GST_INSPECT"; then
42656 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
42657else
42658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42659for as_dir in $PATH
42660do
42661 IFS=$as_save_IFS
42662 test -z "$as_dir" && as_dir=.
42663 for ac_exec_ext in '' $ac_executable_extensions; do
42664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42665 ac_cv_prog_GST_INSPECT="gst-inspect"
42666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42667 break 2
ce756cb0 42668 fi
dae87f93
RN
42669done
42670done
42671
42672fi
42673fi
42674GST_INSPECT=$ac_cv_prog_GST_INSPECT
42675if test -n "$GST_INSPECT"; then
42676 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
42677echo "${ECHO_T}$GST_INSPECT" >&6
42678else
42679 echo "$as_me:$LINENO: result: no" >&5
42680echo "${ECHO_T}no" >&6
42681fi
42682
42683 fi
42684
42685 if test "x$GST_INSPECT" != "x"; then
42686 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
42687echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
42688 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
42689 echo "$as_me:$LINENO: result: found." >&5
42690echo "${ECHO_T}found." >&6
ce756cb0 42691
ce756cb0 42692 else
dae87f93
RN
42693 echo "$as_me:$LINENO: result: not found." >&5
42694echo "${ECHO_T}not found." >&6
42695
42696 wxUSE_GSTREAMER="no"
42697 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
42698echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
42699
42700 fi
42701 fi
42702
42703
42704 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
42705echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
42706if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
42707 echo $ECHO_N "(cached) $ECHO_C" >&6
42708else
42709 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
42710/* confdefs.h. */
42711_ACEOF
42712cat confdefs.h >>conftest.$ac_ext
42713cat >>conftest.$ac_ext <<_ACEOF
42714/* end confdefs.h. */
dae87f93 42715#include <gst/gst.h>
ce756cb0 42716
dae87f93 42717#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
42718_ACEOF
42719rm -f conftest.$ac_objext
42720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42721 (eval $ac_compile) 2>conftest.er1
42722 ac_status=$?
42723 grep -v '^ *+' conftest.er1 >conftest.err
42724 rm -f conftest.er1
42725 cat conftest.err >&5
42726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42727 (exit $ac_status); } &&
6ebeb4c7 42728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
42729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42730 (eval $ac_try) 2>&5
42731 ac_status=$?
42732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42733 (exit $ac_status); }; } &&
42734 { ac_try='test -s conftest.$ac_objext'
42735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42736 (eval $ac_try) 2>&5
42737 ac_status=$?
42738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42739 (exit $ac_status); }; }; then
dae87f93 42740 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
42741else
42742 echo "$as_me: failed program was:" >&5
42743sed 's/^/| /' conftest.$ac_ext >&5
42744
dae87f93 42745ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
42746fi
42747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
42748fi
42749echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42750echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42751if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42752 :
42753else
ce756cb0 42754
dae87f93
RN
42755 wxUSE_GSTREAMER="no"
42756 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42757echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 42758
dae87f93 42759fi
ce756cb0 42760
dae87f93
RN
42761
42762
42763 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
42764echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42765
0ad5d837
VZ
42766 ac_find_libraries=
42767 for ac_dir in $SEARCH_LIB;
ce756cb0 42768 do
3eca31dc 42769 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
42770 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42771 ac_find_libraries=$ac_dir
42772 break 2
42773 fi
42774 done
42775 done
42776
ce756cb0 42777
dae87f93
RN
42778 if test "$ac_find_libraries" = "" ; then
42779 echo "$as_me:$LINENO: result: no" >&5
42780echo "${ECHO_T}no" >&6
42781 wxUSE_GSTREAMER="no"
42782 else
42783 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42784echo "${ECHO_T}yes" >&6
dae87f93 42785 fi
ce756cb0 42786
dae87f93
RN
42787 if test "$wxUSE_GSTREAMER" = "yes"; then
42788 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
42789#define wxUSE_GSTREAMER 1
42790_ACEOF
42791
dae87f93
RN
42792 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42793echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
42794 fi
42795 fi
42796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42797 cat >>confdefs.h <<\_ACEOF
42798#define wxUSE_MEDIACTRL 1
42799_ACEOF
42800
42801fi
42802
42803
a848cd7e
SC
42804if test "$cross_compiling" = "yes"; then
42805 OSINFO="\"$host\""
42806else
42807 OSINFO=`uname -s -r -m`
42808 OSINFO="\"$OSINFO\""
42809fi
42810
42811cat >>confdefs.h <<_ACEOF
42812#define WXWIN_OS_DESCRIPTION $OSINFO
42813_ACEOF
42814
42815
42816
42817if test "x$prefix" != "xNONE"; then
42818 wxPREFIX=$prefix
42819else
42820 wxPREFIX=$ac_default_prefix
42821fi
42822
42823cat >>confdefs.h <<_ACEOF
42824#define wxINSTALL_PREFIX "$wxPREFIX"
42825_ACEOF
42826
42827
a848cd7e
SC
42828
42829
42830CORE_BASE_LIBS="net base"
42831CORE_GUI_LIBS="adv core"
42832
42833if test "$wxUSE_XML" = "yes" ; then
42834 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42835fi
42836if test "$wxUSE_ODBC" != "no" ; then
42837 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42838 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42839fi
42840if test "$wxUSE_HTML" = "yes" ; then
42841 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42842fi
61639efb
VZ
42843if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42844 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42845fi
9a8f0513
VS
42846if test "$wxUSE_XRC" = "yes" ; then
42847 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42848fi
a848cd7e
SC
42849
42850if test "$wxUSE_GUI" != "yes"; then
42851 CORE_GUI_LIBS=""
42852fi
42853
42854
42855
42856
42857
42858
42859
42860
42861if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 42862 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
42863 if test "$USE_DARWIN" = 1; then
42864 LDFLAGS="$LDFLAGS -framework QuickTime"
42865 else
42866 LDFLAGS="$LDFLAGS -lQuickTimeLib"
42867 fi
07bea8f0 42868 fi
5dcf30a0 42869 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
42870 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
42871 else
42872 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 42873 fi
a848cd7e
SC
42874fi
42875if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 42876 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
42877 if test "$wxUSE_MEDIACTRL" = "yes"; then
42878 LDFLAGS="$LDFLAGS -framework QuickTime"
42879 fi
a848cd7e 42880fi
19b27e78
MW
42881if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
42882 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
42883fi
a848cd7e
SC
42884
42885
42886LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
42887
42888have_cos=0
42889have_floor=0
42890
42891for ac_func in cos
42892do
42893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42894echo "$as_me:$LINENO: checking for $ac_func" >&5
42895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42896if eval "test \"\${$as_ac_var+set}\" = set"; then
42897 echo $ECHO_N "(cached) $ECHO_C" >&6
42898else
42899 cat >conftest.$ac_ext <<_ACEOF
42900/* confdefs.h. */
42901_ACEOF
42902cat confdefs.h >>conftest.$ac_ext
42903cat >>conftest.$ac_ext <<_ACEOF
42904/* end confdefs.h. */
ac1cb8d3
VS
42905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42907#define $ac_func innocuous_$ac_func
42908
a848cd7e
SC
42909/* System header to define __stub macros and hopefully few prototypes,
42910 which can conflict with char $ac_func (); below.
42911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42912 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42913
a848cd7e
SC
42914#ifdef __STDC__
42915# include <limits.h>
42916#else
42917# include <assert.h>
42918#endif
ac1cb8d3
VS
42919
42920#undef $ac_func
42921
a848cd7e
SC
42922/* Override any gcc2 internal prototype to avoid an error. */
42923#ifdef __cplusplus
42924extern "C"
42925{
42926#endif
42927/* We use char because int might match the return type of a gcc2
42928 builtin and then its argument prototype would still apply. */
42929char $ac_func ();
42930/* The GNU C library defines this for functions which it implements
42931 to always fail with ENOSYS. Some functions are actually named
42932 something starting with __ and the normal name is an alias. */
42933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42934choke me
42935#else
42936char (*f) () = $ac_func;
42937#endif
42938#ifdef __cplusplus
42939}
42940#endif
42941
42942int
42943main ()
42944{
42945return f != $ac_func;
42946 ;
42947 return 0;
42948}
42949_ACEOF
42950rm -f conftest.$ac_objext conftest$ac_exeext
42951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42952 (eval $ac_link) 2>conftest.er1
a848cd7e 42953 ac_status=$?
ac1cb8d3
VS
42954 grep -v '^ *+' conftest.er1 >conftest.err
42955 rm -f conftest.er1
42956 cat conftest.err >&5
a848cd7e
SC
42957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42958 (exit $ac_status); } &&
6ebeb4c7 42959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42961 (eval $ac_try) 2>&5
42962 ac_status=$?
42963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42964 (exit $ac_status); }; } &&
42965 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42967 (eval $ac_try) 2>&5
42968 ac_status=$?
42969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42970 (exit $ac_status); }; }; then
42971 eval "$as_ac_var=yes"
42972else
42973 echo "$as_me: failed program was:" >&5
42974sed 's/^/| /' conftest.$ac_ext >&5
42975
42976eval "$as_ac_var=no"
42977fi
ac1cb8d3
VS
42978rm -f conftest.err conftest.$ac_objext \
42979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42980fi
42981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42982echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42983if test `eval echo '${'$as_ac_var'}'` = yes; then
42984 cat >>confdefs.h <<_ACEOF
42985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42986_ACEOF
42987 have_cos=1
42988fi
42989done
42990
42991
42992for ac_func in floor
42993do
42994as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42995echo "$as_me:$LINENO: checking for $ac_func" >&5
42996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42997if eval "test \"\${$as_ac_var+set}\" = set"; then
42998 echo $ECHO_N "(cached) $ECHO_C" >&6
42999else
43000 cat >conftest.$ac_ext <<_ACEOF
43001/* confdefs.h. */
43002_ACEOF
43003cat confdefs.h >>conftest.$ac_ext
43004cat >>conftest.$ac_ext <<_ACEOF
43005/* end confdefs.h. */
ac1cb8d3
VS
43006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43008#define $ac_func innocuous_$ac_func
43009
a848cd7e
SC
43010/* System header to define __stub macros and hopefully few prototypes,
43011 which can conflict with char $ac_func (); below.
43012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43013 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43014
a848cd7e
SC
43015#ifdef __STDC__
43016# include <limits.h>
43017#else
43018# include <assert.h>
43019#endif
ac1cb8d3
VS
43020
43021#undef $ac_func
43022
a848cd7e
SC
43023/* Override any gcc2 internal prototype to avoid an error. */
43024#ifdef __cplusplus
43025extern "C"
43026{
43027#endif
43028/* We use char because int might match the return type of a gcc2
43029 builtin and then its argument prototype would still apply. */
43030char $ac_func ();
43031/* The GNU C library defines this for functions which it implements
43032 to always fail with ENOSYS. Some functions are actually named
43033 something starting with __ and the normal name is an alias. */
43034#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43035choke me
43036#else
43037char (*f) () = $ac_func;
43038#endif
43039#ifdef __cplusplus
43040}
43041#endif
43042
43043int
43044main ()
43045{
43046return f != $ac_func;
43047 ;
43048 return 0;
43049}
43050_ACEOF
43051rm -f conftest.$ac_objext conftest$ac_exeext
43052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43053 (eval $ac_link) 2>conftest.er1
a848cd7e 43054 ac_status=$?
ac1cb8d3
VS
43055 grep -v '^ *+' conftest.er1 >conftest.err
43056 rm -f conftest.er1
43057 cat conftest.err >&5
a848cd7e
SC
43058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43059 (exit $ac_status); } &&
6ebeb4c7 43060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43062 (eval $ac_try) 2>&5
43063 ac_status=$?
43064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43065 (exit $ac_status); }; } &&
43066 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43068 (eval $ac_try) 2>&5
43069 ac_status=$?
43070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43071 (exit $ac_status); }; }; then
43072 eval "$as_ac_var=yes"
43073else
43074 echo "$as_me: failed program was:" >&5
43075sed 's/^/| /' conftest.$ac_ext >&5
43076
43077eval "$as_ac_var=no"
43078fi
ac1cb8d3
VS
43079rm -f conftest.err conftest.$ac_objext \
43080 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43081fi
43082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43084if test `eval echo '${'$as_ac_var'}'` = yes; then
43085 cat >>confdefs.h <<_ACEOF
43086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43087_ACEOF
43088 have_floor=1
43089fi
43090done
43091
43092echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
43093echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
43094if test "$have_cos" = 1 -a "$have_floor" = 1; then
43095 echo "$as_me:$LINENO: result: yes" >&5
43096echo "${ECHO_T}yes" >&6
43097else
43098 echo "$as_me:$LINENO: result: no" >&5
43099echo "${ECHO_T}no" >&6
43100 LIBS="$LIBS -lm"
43101 # use different functions to avoid configure caching
43102 have_sin=0
43103 have_ceil=0
43104
43105for ac_func in sin
43106do
43107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43108echo "$as_me:$LINENO: checking for $ac_func" >&5
43109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43110if eval "test \"\${$as_ac_var+set}\" = set"; then
43111 echo $ECHO_N "(cached) $ECHO_C" >&6
43112else
43113 cat >conftest.$ac_ext <<_ACEOF
43114/* confdefs.h. */
43115_ACEOF
43116cat confdefs.h >>conftest.$ac_ext
43117cat >>conftest.$ac_ext <<_ACEOF
43118/* end confdefs.h. */
ac1cb8d3
VS
43119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43121#define $ac_func innocuous_$ac_func
43122
a848cd7e
SC
43123/* System header to define __stub macros and hopefully few prototypes,
43124 which can conflict with char $ac_func (); below.
43125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43126 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43127
a848cd7e
SC
43128#ifdef __STDC__
43129# include <limits.h>
43130#else
43131# include <assert.h>
43132#endif
ac1cb8d3
VS
43133
43134#undef $ac_func
43135
a848cd7e
SC
43136/* Override any gcc2 internal prototype to avoid an error. */
43137#ifdef __cplusplus
43138extern "C"
43139{
43140#endif
43141/* We use char because int might match the return type of a gcc2
43142 builtin and then its argument prototype would still apply. */
43143char $ac_func ();
43144/* The GNU C library defines this for functions which it implements
43145 to always fail with ENOSYS. Some functions are actually named
43146 something starting with __ and the normal name is an alias. */
43147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43148choke me
43149#else
43150char (*f) () = $ac_func;
43151#endif
43152#ifdef __cplusplus
43153}
43154#endif
43155
43156int
43157main ()
43158{
43159return f != $ac_func;
43160 ;
43161 return 0;
43162}
43163_ACEOF
43164rm -f conftest.$ac_objext conftest$ac_exeext
43165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43166 (eval $ac_link) 2>conftest.er1
a848cd7e 43167 ac_status=$?
ac1cb8d3
VS
43168 grep -v '^ *+' conftest.er1 >conftest.err
43169 rm -f conftest.er1
43170 cat conftest.err >&5
a848cd7e
SC
43171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43172 (exit $ac_status); } &&
6ebeb4c7 43173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43175 (eval $ac_try) 2>&5
43176 ac_status=$?
43177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43178 (exit $ac_status); }; } &&
43179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43181 (eval $ac_try) 2>&5
43182 ac_status=$?
43183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43184 (exit $ac_status); }; }; then
43185 eval "$as_ac_var=yes"
43186else
43187 echo "$as_me: failed program was:" >&5
43188sed 's/^/| /' conftest.$ac_ext >&5
43189
43190eval "$as_ac_var=no"
43191fi
ac1cb8d3
VS
43192rm -f conftest.err conftest.$ac_objext \
43193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43194fi
43195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43196echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43197if test `eval echo '${'$as_ac_var'}'` = yes; then
43198 cat >>confdefs.h <<_ACEOF
43199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43200_ACEOF
43201 have_sin=1
43202fi
43203done
43204
43205
43206for ac_func in ceil
43207do
43208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43209echo "$as_me:$LINENO: checking for $ac_func" >&5
43210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43211if eval "test \"\${$as_ac_var+set}\" = set"; then
43212 echo $ECHO_N "(cached) $ECHO_C" >&6
43213else
43214 cat >conftest.$ac_ext <<_ACEOF
43215/* confdefs.h. */
43216_ACEOF
43217cat confdefs.h >>conftest.$ac_ext
43218cat >>conftest.$ac_ext <<_ACEOF
43219/* end confdefs.h. */
ac1cb8d3
VS
43220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43222#define $ac_func innocuous_$ac_func
43223
a848cd7e
SC
43224/* System header to define __stub macros and hopefully few prototypes,
43225 which can conflict with char $ac_func (); below.
43226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43227 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43228
a848cd7e
SC
43229#ifdef __STDC__
43230# include <limits.h>
43231#else
43232# include <assert.h>
43233#endif
ac1cb8d3
VS
43234
43235#undef $ac_func
43236
a848cd7e
SC
43237/* Override any gcc2 internal prototype to avoid an error. */
43238#ifdef __cplusplus
43239extern "C"
43240{
43241#endif
43242/* We use char because int might match the return type of a gcc2
43243 builtin and then its argument prototype would still apply. */
43244char $ac_func ();
43245/* The GNU C library defines this for functions which it implements
43246 to always fail with ENOSYS. Some functions are actually named
43247 something starting with __ and the normal name is an alias. */
43248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43249choke me
43250#else
43251char (*f) () = $ac_func;
43252#endif
43253#ifdef __cplusplus
43254}
43255#endif
43256
43257int
43258main ()
43259{
43260return f != $ac_func;
43261 ;
43262 return 0;
43263}
43264_ACEOF
43265rm -f conftest.$ac_objext conftest$ac_exeext
43266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43267 (eval $ac_link) 2>conftest.er1
a848cd7e 43268 ac_status=$?
ac1cb8d3
VS
43269 grep -v '^ *+' conftest.er1 >conftest.err
43270 rm -f conftest.er1
43271 cat conftest.err >&5
a848cd7e
SC
43272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43273 (exit $ac_status); } &&
6ebeb4c7 43274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43276 (eval $ac_try) 2>&5
43277 ac_status=$?
43278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43279 (exit $ac_status); }; } &&
43280 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43282 (eval $ac_try) 2>&5
43283 ac_status=$?
43284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43285 (exit $ac_status); }; }; then
43286 eval "$as_ac_var=yes"
43287else
43288 echo "$as_me: failed program was:" >&5
43289sed 's/^/| /' conftest.$ac_ext >&5
43290
43291eval "$as_ac_var=no"
43292fi
ac1cb8d3
VS
43293rm -f conftest.err conftest.$ac_objext \
43294 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43295fi
43296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43298if test `eval echo '${'$as_ac_var'}'` = yes; then
43299 cat >>confdefs.h <<_ACEOF
43300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43301_ACEOF
43302 have_ceil=1
43303fi
43304done
43305
43306 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
43307echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
43308 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
43309 echo "$as_me:$LINENO: result: yes" >&5
43310echo "${ECHO_T}yes" >&6
43311 else
43312 echo "$as_me:$LINENO: result: no" >&5
43313echo "${ECHO_T}no" >&6
43314 # not sure we should warn the user, crash, etc.
43315 fi
43316fi
43317
43318if test "$wxUSE_GUI" = "yes"; then
43319
43320
8bce5cda
MW
43321 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
43322 dynamic erase event exec font image minimal mobile \
43323 mobile/wxedit mobile/styles propsize render \
43324 richedit rotate shaped vscroll widgets"
a848cd7e
SC
43325
43326 if test "$wxUSE_MONOLITHIC" != "yes"; then
43327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
43328 fi
0b78747f 43329 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
43330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
43331 if test "$wxUSE_UNIVERSAL" != "yes"; then
43332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
43333 fi
43334 fi
43335 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
43336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 43337 fi
a848cd7e
SC
43338else
43339 SAMPLES_SUBDIRS="console"
43340fi
43341
43342
ceec2216 43343INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
43344-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
43345
48f625bc 43346if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
43347 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
43348elif test "$GCC" = yes ; then
43349 CWARNINGS="-Wall -Wundef"
43350fi
43351
48f625bc 43352if test "x$INTELCXX" = "xyes" ; then
7f47faf4 43353 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
43354elif test "$GXX" = yes ; then
43355 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 43356fi
a848cd7e
SC
43357
43358EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
43359
0c3c69fc 43360CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 43361CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 43362CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 43363
95986553
DE
43364if test "x$MWCC" = "xyes"; then
43365
43366 CC="$CC -cwd source -I-"
43367 CXX="$CXX -cwd source -I-"
43368fi
43369
a848cd7e 43370
0c3c69fc 43371LIBS=`echo $LIBS`
a848cd7e
SC
43372EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
43373EXTRALIBS_XML="$EXPAT_LINK"
43374EXTRALIBS_HTML="$MSPACK_LINK"
43375EXTRALIBS_ODBC="$ODBC_LINK"
43376if test "$wxUSE_GUI" = "yes"; then
2e350179 43377 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
43378fi
43379if test "$wxUSE_OPENGL" = "yes"; then
43380 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
43381fi
43382
43383LDFLAGS="$LDFLAGS $PROFILE"
43384
43385if test "$wxUSE_GTK" = 1; then
43386 WXCONFIG_INCLUDE=
43387else
43388 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
43389fi
43390
43391WXCONFIG_EXTRALIBS="$LIBS"
43392
43393if test "$wxUSE_REGEX" = "builtin" ; then
74802184 43394 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
43395fi
43396if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 43397 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
43398fi
43399if test "$wxUSE_ODBC" = "builtin" ; then
74802184 43400 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
43401fi
43402if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 43403 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
43404fi
43405if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 43406 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
43407fi
43408if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 43409 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
43410fi
43411if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 43412 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
43413fi
43414
43415for i in $wxconfig_3rdparty ; do
74802184 43416 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
43417done
43418
43419
43420if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
43421 WXUNIV=1
43422else
43423 WXUNIV=0
43424fi
43425
43426
43427
43428
43429
43430
43431
43432
43433
43434if test $wxUSE_MONOLITHIC = "yes" ; then
43435 MONOLITHIC=1
43436else
43437 MONOLITHIC=0
43438fi
43439
43440if test $wxUSE_PLUGINS = "yes" ; then
43441 USE_PLUGINS=1
43442else
43443 USE_PLUGINS=0
43444fi
43445
43446if test $wxUSE_ODBC != "no" ; then
43447 USE_ODBC=1
43448else
43449 USE_ODBC=0
43450fi
43451
16358932
VZ
43452if test "$wxUSE_DEBUGREPORT" = "yes" ; then
43453 USE_QA=1
43454else
43455 USE_QA=0
43456fi
43457
a848cd7e
SC
43458if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
43459 OFFICIAL_BUILD=1
43460else
43461 OFFICIAL_BUILD=0
43462fi
43463
43464
43465
43466
43467
43468
43469
43470
43471
43472
43473
43474
43475
43476
43477
43478
43479
43480
43481
ceec2216 43482
d1c38808 43483
a848cd7e
SC
43484
43485
43486TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
43487
43488
43489
43490
43491
43492
43493
43494
4d4ff94c
VZ
43495case "$TOOLKIT" in
43496 GTK)
43497 TOOLKIT_USER="GTK+"
43498 if test "$WXGTK20" = 1; then
43499 TOOLKIT_USER="$TOOLKIT_USER 2"
43500 fi
9a8f0513 43501 ;;
4d4ff94c
VZ
43502
43503 *)
43504 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 43505 ;;
4d4ff94c 43506esac
a848cd7e 43507
fb00f58d
JS
43508if test "$wxUSE_WINE" = "yes"; then
43509 BAKEFILE_FORCE_PLATFORM=win32
43510fi
43511
9a8f0513 43512
1e9e8aba
DE
43513
43514
a848cd7e
SC
43515 if test "x$BAKEFILE_HOST" = "x"; then
43516 BAKEFILE_HOST="${host}"
43517 fi
43518
43519 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
43520
43521 if test -n "$ac_tool_prefix"; then
43522 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
43523set dummy ${ac_tool_prefix}ranlib; ac_word=$2
43524echo "$as_me:$LINENO: checking for $ac_word" >&5
43525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43526if test "${ac_cv_prog_RANLIB+set}" = set; then
43527 echo $ECHO_N "(cached) $ECHO_C" >&6
43528else
43529 if test -n "$RANLIB"; then
43530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
43531else
43532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43533for as_dir in $PATH
43534do
43535 IFS=$as_save_IFS
43536 test -z "$as_dir" && as_dir=.
43537 for ac_exec_ext in '' $ac_executable_extensions; do
43538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43539 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
43540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43541 break 2
43542 fi
43543done
43544done
43545
43546fi
43547fi
43548RANLIB=$ac_cv_prog_RANLIB
43549if test -n "$RANLIB"; then
43550 echo "$as_me:$LINENO: result: $RANLIB" >&5
43551echo "${ECHO_T}$RANLIB" >&6
43552else
43553 echo "$as_me:$LINENO: result: no" >&5
43554echo "${ECHO_T}no" >&6
43555fi
43556
43557fi
43558if test -z "$ac_cv_prog_RANLIB"; then
43559 ac_ct_RANLIB=$RANLIB
43560 # Extract the first word of "ranlib", so it can be a program name with args.
43561set dummy ranlib; ac_word=$2
43562echo "$as_me:$LINENO: checking for $ac_word" >&5
43563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43564if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
43565 echo $ECHO_N "(cached) $ECHO_C" >&6
43566else
43567 if test -n "$ac_ct_RANLIB"; then
43568 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
43569else
43570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43571for as_dir in $PATH
43572do
43573 IFS=$as_save_IFS
43574 test -z "$as_dir" && as_dir=.
43575 for ac_exec_ext in '' $ac_executable_extensions; do
43576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43577 ac_cv_prog_ac_ct_RANLIB="ranlib"
43578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43579 break 2
43580 fi
43581done
43582done
43583
43584 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
43585fi
43586fi
43587ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
43588if test -n "$ac_ct_RANLIB"; then
43589 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
43590echo "${ECHO_T}$ac_ct_RANLIB" >&6
43591else
43592 echo "$as_me:$LINENO: result: no" >&5
43593echo "${ECHO_T}no" >&6
43594fi
43595
43596 RANLIB=$ac_ct_RANLIB
43597else
43598 RANLIB="$ac_cv_prog_RANLIB"
43599fi
43600
43601 # Find a good install program. We prefer a C program (faster),
43602# so one script is as good as another. But avoid the broken or
43603# incompatible versions:
43604# SysV /etc/install, /usr/sbin/install
43605# SunOS /usr/etc/install
43606# IRIX /sbin/install
43607# AIX /bin/install
43608# AmigaOS /C/install, which installs bootblocks on floppy discs
43609# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
43610# AFS /usr/afsws/bin/install, which mishandles nonexistent args
43611# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 43612# OS/2's system install, which has a completely different semantic
a848cd7e
SC
43613# ./install, which can be erroneously created by make from ./install.sh.
43614echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
43615echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
43616if test -z "$INSTALL"; then
43617if test "${ac_cv_path_install+set}" = set; then
43618 echo $ECHO_N "(cached) $ECHO_C" >&6
43619else
43620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43621for as_dir in $PATH
43622do
43623 IFS=$as_save_IFS
43624 test -z "$as_dir" && as_dir=.
43625 # Account for people who put trailing slashes in PATH elements.
43626case $as_dir/ in
43627 ./ | .// | /cC/* | \
43628 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 43629 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
43630 /usr/ucb/* ) ;;
43631 *)
43632 # OSF1 and SCO ODT 3.0 have their own names for install.
43633 # Don't use installbsd from OSF since it installs stuff as root
43634 # by default.
43635 for ac_prog in ginstall scoinst install; do
43636 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
43637 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
43638 if test $ac_prog = install &&
43639 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43640 # AIX install. It has an incompatible calling convention.
43641 :
43642 elif test $ac_prog = install &&
43643 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43644 # program-specific install script used by HP pwplus--don't use.
43645 :
43646 else
43647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
43648 break 3
43649 fi
43650 fi
a848cd7e
SC
43651 done
43652 done
43653 ;;
43654esac
43655done
43656
43657
43658fi
43659 if test "${ac_cv_path_install+set}" = set; then
43660 INSTALL=$ac_cv_path_install
43661 else
43662 # As a last resort, use the slow shell script. We don't cache a
43663 # path for INSTALL within a source directory, because that will
43664 # break other packages using the cache if that directory is
43665 # removed, or if the path is relative.
43666 INSTALL=$ac_install_sh
43667 fi
43668fi
43669echo "$as_me:$LINENO: result: $INSTALL" >&5
43670echo "${ECHO_T}$INSTALL" >&6
43671
43672# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
43673# It thinks the first close brace ends the variable substitution.
43674test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
43675
43676test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
43677
43678test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
43679
43680 echo "$as_me:$LINENO: checking whether ln -s works" >&5
43681echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
43682LN_S=$as_ln_s
43683if test "$LN_S" = "ln -s"; then
43684 echo "$as_me:$LINENO: result: yes" >&5
43685echo "${ECHO_T}yes" >&6
43686else
43687 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
43688echo "${ECHO_T}no, using $LN_S" >&6
43689fi
43690
43691
43692 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43693echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43694set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43695if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43696 echo $ECHO_N "(cached) $ECHO_C" >&6
43697else
43698 cat >conftest.make <<\_ACEOF
43699all:
43700 @echo 'ac_maketemp="$(MAKE)"'
43701_ACEOF
43702# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43703eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43704if test -n "$ac_maketemp"; then
43705 eval ac_cv_prog_make_${ac_make}_set=yes
43706else
43707 eval ac_cv_prog_make_${ac_make}_set=no
43708fi
43709rm -f conftest.make
43710fi
43711if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43712 echo "$as_me:$LINENO: result: yes" >&5
43713echo "${ECHO_T}yes" >&6
43714 SET_MAKE=
43715else
43716 echo "$as_me:$LINENO: result: no" >&5
43717echo "${ECHO_T}no" >&6
43718 SET_MAKE="MAKE=${MAKE-make}"
43719fi
43720
43721
43722
43723 if test -n "$ac_tool_prefix"; then
43724 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43725set dummy ${ac_tool_prefix}ar; ac_word=$2
43726echo "$as_me:$LINENO: checking for $ac_word" >&5
43727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43728if test "${ac_cv_prog_AR+set}" = set; then
43729 echo $ECHO_N "(cached) $ECHO_C" >&6
43730else
43731 if test -n "$AR"; then
43732 ac_cv_prog_AR="$AR" # Let the user override the test.
43733else
43734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43735for as_dir in $PATH
43736do
43737 IFS=$as_save_IFS
43738 test -z "$as_dir" && as_dir=.
43739 for ac_exec_ext in '' $ac_executable_extensions; do
43740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43741 ac_cv_prog_AR="${ac_tool_prefix}ar"
43742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43743 break 2
43744 fi
43745done
43746done
43747
43748fi
43749fi
43750AR=$ac_cv_prog_AR
43751if test -n "$AR"; then
43752 echo "$as_me:$LINENO: result: $AR" >&5
43753echo "${ECHO_T}$AR" >&6
43754else
43755 echo "$as_me:$LINENO: result: no" >&5
43756echo "${ECHO_T}no" >&6
43757fi
43758
43759fi
43760if test -z "$ac_cv_prog_AR"; then
43761 ac_ct_AR=$AR
43762 # Extract the first word of "ar", so it can be a program name with args.
43763set dummy ar; ac_word=$2
43764echo "$as_me:$LINENO: checking for $ac_word" >&5
43765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43766if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43767 echo $ECHO_N "(cached) $ECHO_C" >&6
43768else
43769 if test -n "$ac_ct_AR"; then
43770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43771else
43772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43773for as_dir in $PATH
43774do
43775 IFS=$as_save_IFS
43776 test -z "$as_dir" && as_dir=.
43777 for ac_exec_ext in '' $ac_executable_extensions; do
43778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43779 ac_cv_prog_ac_ct_AR="ar"
43780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43781 break 2
43782 fi
43783done
43784done
43785
43786 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43787fi
43788fi
43789ac_ct_AR=$ac_cv_prog_ac_ct_AR
43790if test -n "$ac_ct_AR"; then
43791 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43792echo "${ECHO_T}$ac_ct_AR" >&6
43793else
43794 echo "$as_me:$LINENO: result: no" >&5
43795echo "${ECHO_T}no" >&6
43796fi
43797
43798 AR=$ac_ct_AR
43799else
43800 AR="$ac_cv_prog_AR"
43801fi
43802
43803 if test -n "$ac_tool_prefix"; then
43804 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43805set dummy ${ac_tool_prefix}strip; ac_word=$2
43806echo "$as_me:$LINENO: checking for $ac_word" >&5
43807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43808if test "${ac_cv_prog_STRIP+set}" = set; then
43809 echo $ECHO_N "(cached) $ECHO_C" >&6
43810else
43811 if test -n "$STRIP"; then
43812 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43813else
43814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43815for as_dir in $PATH
43816do
43817 IFS=$as_save_IFS
43818 test -z "$as_dir" && as_dir=.
43819 for ac_exec_ext in '' $ac_executable_extensions; do
43820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43821 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43823 break 2
43824 fi
43825done
43826done
43827
43828fi
43829fi
43830STRIP=$ac_cv_prog_STRIP
43831if test -n "$STRIP"; then
43832 echo "$as_me:$LINENO: result: $STRIP" >&5
43833echo "${ECHO_T}$STRIP" >&6
43834else
43835 echo "$as_me:$LINENO: result: no" >&5
43836echo "${ECHO_T}no" >&6
43837fi
43838
43839fi
43840if test -z "$ac_cv_prog_STRIP"; then
43841 ac_ct_STRIP=$STRIP
43842 # Extract the first word of "strip", so it can be a program name with args.
43843set dummy strip; ac_word=$2
43844echo "$as_me:$LINENO: checking for $ac_word" >&5
43845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43846if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43847 echo $ECHO_N "(cached) $ECHO_C" >&6
43848else
43849 if test -n "$ac_ct_STRIP"; then
43850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43851else
43852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43853for as_dir in $PATH
43854do
43855 IFS=$as_save_IFS
43856 test -z "$as_dir" && as_dir=.
43857 for ac_exec_ext in '' $ac_executable_extensions; do
43858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43859 ac_cv_prog_ac_ct_STRIP="strip"
43860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43861 break 2
43862 fi
43863done
43864done
43865
43866 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
43867fi
43868fi
43869ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43870if test -n "$ac_ct_STRIP"; then
43871 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43872echo "${ECHO_T}$ac_ct_STRIP" >&6
43873else
43874 echo "$as_me:$LINENO: result: no" >&5
43875echo "${ECHO_T}no" >&6
43876fi
43877
43878 STRIP=$ac_ct_STRIP
43879else
43880 STRIP="$ac_cv_prog_STRIP"
43881fi
43882
43883 if test -n "$ac_tool_prefix"; then
43884 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
43885set dummy ${ac_tool_prefix}nm; ac_word=$2
43886echo "$as_me:$LINENO: checking for $ac_word" >&5
43887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43888if test "${ac_cv_prog_NM+set}" = set; then
43889 echo $ECHO_N "(cached) $ECHO_C" >&6
43890else
43891 if test -n "$NM"; then
43892 ac_cv_prog_NM="$NM" # Let the user override the test.
43893else
43894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43895for as_dir in $PATH
43896do
43897 IFS=$as_save_IFS
43898 test -z "$as_dir" && as_dir=.
43899 for ac_exec_ext in '' $ac_executable_extensions; do
43900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43901 ac_cv_prog_NM="${ac_tool_prefix}nm"
43902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43903 break 2
43904 fi
43905done
43906done
43907
43908fi
43909fi
43910NM=$ac_cv_prog_NM
43911if test -n "$NM"; then
43912 echo "$as_me:$LINENO: result: $NM" >&5
43913echo "${ECHO_T}$NM" >&6
43914else
43915 echo "$as_me:$LINENO: result: no" >&5
43916echo "${ECHO_T}no" >&6
43917fi
43918
43919fi
43920if test -z "$ac_cv_prog_NM"; then
43921 ac_ct_NM=$NM
43922 # Extract the first word of "nm", so it can be a program name with args.
43923set dummy nm; ac_word=$2
43924echo "$as_me:$LINENO: checking for $ac_word" >&5
43925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43926if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
43927 echo $ECHO_N "(cached) $ECHO_C" >&6
43928else
43929 if test -n "$ac_ct_NM"; then
43930 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
43931else
43932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43933for as_dir in $PATH
43934do
43935 IFS=$as_save_IFS
43936 test -z "$as_dir" && as_dir=.
43937 for ac_exec_ext in '' $ac_executable_extensions; do
43938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43939 ac_cv_prog_ac_ct_NM="nm"
43940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43941 break 2
43942 fi
43943done
43944done
43945
43946 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
43947fi
43948fi
43949ac_ct_NM=$ac_cv_prog_ac_ct_NM
43950if test -n "$ac_ct_NM"; then
43951 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
43952echo "${ECHO_T}$ac_ct_NM" >&6
43953else
43954 echo "$as_me:$LINENO: result: no" >&5
43955echo "${ECHO_T}no" >&6
43956fi
43957
43958 NM=$ac_ct_NM
43959else
43960 NM="$ac_cv_prog_NM"
43961fi
43962
43963
43964 case ${BAKEFILE_HOST} in
43965 *-hp-hpux* )
1e9e8aba 43966 INSTALL_DIR="mkdir -p"
a848cd7e
SC
43967 ;;
43968 *) INSTALL_DIR="$INSTALL -d"
43969 ;;
43970 esac
43971
43972
43973 LDFLAGS_GUI=
43974 case ${BAKEFILE_HOST} in
43975 *-*-cygwin* | *-*-mingw32* )
43976 LDFLAGS_GUI="-mwindows"
43977 esac
43978
43979
43980 fi
43981
43982 echo "$as_me:$LINENO: checking if make is GNU make" >&5
43983echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
43984if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
43985 echo $ECHO_N "(cached) $ECHO_C" >&6
43986else
43987
43988 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
43989 egrep -s GNU > /dev/null); then
43990 bakefile_cv_prog_makeisgnu="yes"
43991 else
43992 bakefile_cv_prog_makeisgnu="no"
43993 fi
43994
43995fi
43996echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
43997echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
43998
43999 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
44000 IF_GNU_MAKE=""
44001 else
44002 IF_GNU_MAKE="#"
44003 fi
44004
44005
44006
44007 PLATFORM_UNIX=0
44008 PLATFORM_WIN32=0
44009 PLATFORM_MSDOS=0
44010 PLATFORM_MAC=0
1e9e8aba 44011 PLATFORM_MACOS=0
a848cd7e
SC
44012 PLATFORM_MACOSX=0
44013 PLATFORM_OS2=0
1e9e8aba 44014 PLATFORM_BEOS=0
a848cd7e
SC
44015
44016 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
44017 case "${BAKEFILE_HOST}" in
810b94f0 44018 *-*-mingw32* )
a848cd7e
SC
44019 PLATFORM_WIN32=1
44020 ;;
44021 *-pc-msdosdjgpp )
44022 PLATFORM_MSDOS=1
44023 ;;
44024 *-pc-os2_emx | *-pc-os2-emx )
44025 PLATFORM_OS2=1
44026 ;;
47bd5406 44027 *-*-darwin* )
a848cd7e
SC
44028 PLATFORM_MAC=1
44029 PLATFORM_MACOSX=1
44030 ;;
1e9e8aba
DE
44031 *-*-beos* )
44032 PLATFORM_BEOS=1
44033 ;;
44034 powerpc-apple-macos* )
44035 PLATFORM_MAC=1
44036 PLATFORM_MACOS=1
44037 ;;
a848cd7e
SC
44038 * )
44039 PLATFORM_UNIX=1
44040 ;;
44041 esac
44042 else
44043 case "$BAKEFILE_FORCE_PLATFORM" in
44044 win32 )
44045 PLATFORM_WIN32=1
44046 ;;
44047 msdos )
44048 PLATFORM_MSDOS=1
44049 ;;
44050 os2 )
44051 PLATFORM_OS2=1
44052 ;;
44053 darwin )
44054 PLATFORM_MAC=1
44055 PLATFORM_MACOSX=1
44056 ;;
44057 unix )
44058 PLATFORM_UNIX=1
44059 ;;
1e9e8aba
DE
44060 beos )
44061 PLATFORM_BEOS=1
44062 ;;
a848cd7e
SC
44063 * )
44064 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
44065echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
44066 { (exit 1); exit 1; }; }
44067 ;;
44068 esac
44069 fi
44070
44071
44072
44073
44074
44075
44076
44077
44078
1e9e8aba
DE
44079
44080
a848cd7e
SC
44081 # Check whether --enable-omf or --disable-omf was given.
44082if test "${enable_omf+set}" = set; then
44083 enableval="$enable_omf"
44084 bk_os2_use_omf="$enableval"
44085fi;
44086
44087 case "${BAKEFILE_HOST}" in
44088 *-*-darwin* )
47bd5406
VZ
44089 if test "x$GCC" = "xyes"; then
44090 CFLAGS="$CFLAGS -fno-common"
44091 CXXFLAGS="$CXXFLAGS -fno-common"
44092 fi
44093 if test "x$XLCC" = "xyes"; then
44094 CFLAGS="$CFLAGS -qnocommon"
44095 CXXFLAGS="$CXXFLAGS -qnocommon"
44096 fi
a848cd7e
SC
44097 ;;
44098
44099 *-pc-os2_emx | *-pc-os2-emx )
44100 if test "x$bk_os2_use_omf" = "xyes" ; then
44101 AR=emxomfar
44102 RANLIB=:
44103 LDFLAGS="-Zomf $LDFLAGS"
44104 CFLAGS="-Zomf $CFLAGS"
44105 CXXFLAGS="-Zomf $CXXFLAGS"
44106 OS2_LIBEXT="lib"
44107 else
44108 OS2_LIBEXT="a"
44109 fi
44110 ;;
1e9e8aba
DE
44111
44112 i*86-*-beos* )
44113 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
44114 ;;
a848cd7e
SC
44115 esac
44116
44117
44118 SO_SUFFIX="so"
44119 SO_SUFFIX_MODULE="so"
44120 EXEEXT=""
44121 LIBPREFIX="lib"
44122 LIBEXT=".a"
44123 DLLPREFIX="lib"
44124 DLLPREFIX_MODULE=""
44125 DLLIMP_SUFFIX=""
810b94f0 44126 dlldir="$libdir"
a848cd7e
SC
44127
44128 case "${BAKEFILE_HOST}" in
44129 *-hp-hpux* )
44130 SO_SUFFIX="sl"
44131 SO_SUFFIX_MODULE="sl"
44132 ;;
44133 *-*-aix* )
44134 SO_SUFFIX="a"
44135 SO_SUFFIX_MODULE="a"
44136 ;;
810b94f0
MW
44137 *-*-cygwin* )
44138 SO_SUFFIX="dll"
44139 SO_SUFFIX_MODULE="dll"
44140 DLLIMP_SUFFIX="dll.a"
44141 EXEEXT=".exe"
44142 DLLPREFIX="cyg"
44143 dlldir="$bindir"
44144 ;;
44145 *-*-mingw32* )
a848cd7e
SC
44146 SO_SUFFIX="dll"
44147 SO_SUFFIX_MODULE="dll"
44148 DLLIMP_SUFFIX="dll.a"
44149 EXEEXT=".exe"
44150 DLLPREFIX=""
810b94f0 44151 dlldir="$bindir"
a848cd7e
SC
44152 ;;
44153 *-pc-msdosdjgpp )
44154 EXEEXT=".exe"
44155 DLLPREFIX=""
810b94f0 44156 dlldir="$bindir"
a848cd7e
SC
44157 ;;
44158 *-pc-os2_emx | *-pc-os2-emx )
44159 SO_SUFFIX="dll"
44160 SO_SUFFIX_MODULE="dll"
44161 DLLIMP_SUFFIX=$OS2_LIBEXT
44162 EXEEXT=".exe"
44163 DLLPREFIX=""
44164 LIBPREFIX=""
44165 LIBEXT=".$OS2_LIBEXT"
810b94f0 44166 dlldir="$bindir"
a848cd7e 44167 ;;
47bd5406 44168 *-*-darwin* )
a848cd7e
SC
44169 SO_SUFFIX="dylib"
44170 SO_SUFFIX_MODULE="bundle"
44171 ;;
44172 esac
44173
44174 if test "x$DLLIMP_SUFFIX" = "x" ; then
44175 DLLIMP_SUFFIX="$SO_SUFFIX"
44176 fi
44177
44178
44179
44180
44181
44182
44183
44184
44185
44186
44187
810b94f0 44188
1e9e8aba
DE
44189 PIC_FLAG=""
44190 if test "x$GCC" = "xyes"; then
a848cd7e
SC
44191 PIC_FLAG="-fPIC"
44192 fi
44193
1e9e8aba
DE
44194 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
44195 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 44196 WINDOWS_IMPLIB=0
1e9e8aba 44197
a848cd7e
SC
44198 case "${BAKEFILE_HOST}" in
44199 *-hp-hpux* )
1e9e8aba 44200 if test "x$GCC" != "xyes"; then
a848cd7e
SC
44201 LDFLAGS="$LDFLAGS -L/usr/lib"
44202
44203 SHARED_LD_CC="${CC} -b -o"
44204 SHARED_LD_CXX="${CXX} -b -o"
44205 PIC_FLAG="+Z"
44206 fi
44207 ;;
44208
44209 *-*-linux* )
44210 if test "x$GCC" != "xyes"; then
44211 echo "$as_me:$LINENO: checking for Intel compiler" >&5
44212echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
44213if test "${bakefile_cv_prog_icc+set}" = set; then
44214 echo $ECHO_N "(cached) $ECHO_C" >&6
44215else
44216
44217 cat >conftest.$ac_ext <<_ACEOF
44218/* confdefs.h. */
44219_ACEOF
44220cat confdefs.h >>conftest.$ac_ext
44221cat >>conftest.$ac_ext <<_ACEOF
44222/* end confdefs.h. */
44223
44224int
44225main ()
44226{
44227
44228 #ifndef __INTEL_COMPILER
44229 #error Not icc
44230 #endif
44231
44232 ;
44233 return 0;
44234}
44235_ACEOF
44236rm -f conftest.$ac_objext
44237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44238 (eval $ac_compile) 2>conftest.er1
a848cd7e 44239 ac_status=$?
ac1cb8d3
VS
44240 grep -v '^ *+' conftest.er1 >conftest.err
44241 rm -f conftest.er1
44242 cat conftest.err >&5
a848cd7e
SC
44243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44244 (exit $ac_status); } &&
6ebeb4c7 44245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44247 (eval $ac_try) 2>&5
44248 ac_status=$?
44249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44250 (exit $ac_status); }; } &&
44251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44253 (eval $ac_try) 2>&5
44254 ac_status=$?
44255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44256 (exit $ac_status); }; }; then
44257 bakefile_cv_prog_icc=yes
44258else
44259 echo "$as_me: failed program was:" >&5
44260sed 's/^/| /' conftest.$ac_ext >&5
44261
44262bakefile_cv_prog_icc=no
44263
44264fi
ac1cb8d3 44265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44266
44267fi
44268echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
44269echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
44270 if test "$bakefile_cv_prog_icc" = "yes"; then
44271 PIC_FLAG="-KPIC"
44272 fi
44273 fi
44274 ;;
44275
44276 *-*-solaris2* )
44277 if test "x$GCC" != xyes ; then
44278 SHARED_LD_CC="${CC} -G -o"
44279 SHARED_LD_CXX="${CXX} -G -o"
44280 PIC_FLAG="-KPIC"
44281 fi
44282 ;;
44283
44284 *-*-darwin* )
44285
2eef8513
VZ
44286 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
44287 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
44288
a848cd7e
SC
44289 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
44290echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
a1aa0349 44291if test "${bakefile_cv_gcc31+set}" = set; then
a848cd7e
SC
44292 echo $ECHO_N "(cached) $ECHO_C" >&6
44293else
44294
44295 cat >conftest.$ac_ext <<_ACEOF
44296/* confdefs.h. */
44297_ACEOF
44298cat confdefs.h >>conftest.$ac_ext
44299cat >>conftest.$ac_ext <<_ACEOF
44300/* end confdefs.h. */
44301
44302int
44303main ()
44304{
44305
44306 #if (__GNUC__ < 3) || \
44307 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
44308 #error old gcc
44309 #endif
44310
44311 ;
44312 return 0;
44313}
44314_ACEOF
44315rm -f conftest.$ac_objext
44316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44317 (eval $ac_compile) 2>conftest.er1
a848cd7e 44318 ac_status=$?
ac1cb8d3
VS
44319 grep -v '^ *+' conftest.er1 >conftest.err
44320 rm -f conftest.er1
44321 cat conftest.err >&5
a848cd7e
SC
44322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44323 (exit $ac_status); } &&
6ebeb4c7 44324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44326 (eval $ac_try) 2>&5
44327 ac_status=$?
44328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44329 (exit $ac_status); }; } &&
44330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44332 (eval $ac_try) 2>&5
44333 ac_status=$?
44334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44335 (exit $ac_status); }; }; then
44336
a1aa0349 44337 bakefile_cv_gcc31=yes
a848cd7e
SC
44338
44339else
44340 echo "$as_me: failed program was:" >&5
44341sed 's/^/| /' conftest.$ac_ext >&5
44342
44343
a1aa0349 44344 bakefile_cv_gcc31=no
a848cd7e
SC
44345
44346
44347fi
ac1cb8d3 44348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44349
44350fi
a1aa0349
VZ
44351echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
44352echo "${ECHO_T}$bakefile_cv_gcc31" >&6
44353 if test "$bakefile_cv_gcc31" = "no"; then
473276a9
VS
44354
44355D='$'
44356cat <<EOF >shared-ld-sh
a848cd7e
SC
44357#!/bin/sh
44358#-----------------------------------------------------------------------------
44359#-- Name: distrib/mac/shared-ld-sh
44360#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
44361#-- Author: Gilles Depeyrot
44362#-- Copyright: (c) 2002 Gilles Depeyrot
44363#-- Licence: any use permitted
44364#-----------------------------------------------------------------------------
44365
44366verbose=0
44367args=""
44368objects=""
44369linking_flag="-dynamiclib"
810b94f0 44370ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 44371
473276a9
VS
44372while test ${D}# -gt 0; do
44373 case ${D}1 in
a848cd7e
SC
44374
44375 -v)
44376 verbose=1
44377 ;;
44378
44379 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
44380 # collect these options and values
473276a9 44381 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
44382 shift
44383 ;;
44384
810b94f0
MW
44385 -s|-Wl,*)
44386 # collect these load args
44387 ldargs="${D}{ldargs} ${D}1"
2113bc77 44388 ;;
810b94f0
MW
44389
44390 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 44391 # collect these options
473276a9 44392 args="${D}{args} ${D}1"
a848cd7e
SC
44393 ;;
44394
44395 -dynamiclib|-bundle)
473276a9 44396 linking_flag="${D}1"
a848cd7e
SC
44397 ;;
44398
44399 -*)
473276a9 44400 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
44401 exit 1
44402 ;;
44403
44404 *.o | *.a | *.dylib)
44405 # collect object files
473276a9 44406 objects="${D}{objects} ${D}1"
a848cd7e
SC
44407 ;;
44408
44409 *)
473276a9 44410 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
44411 exit 1
44412 ;;
44413
44414 esac
44415 shift
44416done
44417
810b94f0
MW
44418status=0
44419
a848cd7e
SC
44420#
44421# Link one module containing all the others
44422#
473276a9 44423if test ${D}{verbose} = 1; then
810b94f0 44424 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 44425fi
810b94f0 44426c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 44427status=${D}?
a848cd7e
SC
44428
44429#
810b94f0
MW
44430# Link the shared library from the single module created, but only if the
44431# previous command didn't fail:
a848cd7e 44432#
810b94f0
MW
44433if test ${D}{status} = 0; then
44434 if test ${D}{verbose} = 1; then
44435 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
44436 fi
44437 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
44438 status=${D}?
a848cd7e
SC
44439fi
44440
44441#
44442# Remove intermediate module
44443#
473276a9 44444rm -f master.${D}${D}.o
a848cd7e 44445
810b94f0 44446exit ${D}status
a848cd7e 44447EOF
473276a9 44448
a848cd7e
SC
44449 chmod +x shared-ld-sh
44450
44451 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 44452 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
44453 else
44454 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 44455 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
44456 fi
44457
47bd5406
VZ
44458 if test "x$GCC" == "xyes"; then
44459 PIC_FLAG="-dynamic -fPIC"
44460 fi
44461 if test "x$XLCC" = "xyes"; then
44462 PIC_FLAG="-dynamic -DPIC"
44463 fi
a848cd7e
SC
44464 ;;
44465
44466 *-*-aix* )
f6b50c59
VZ
44467 if test "x$GCC" = "xyes"; then
44468 PIC_FLAG=""
44469
44470 case "${BAKEFILE_HOST}" in
44471 *-*-aix5* )
44472 LD_EXPFULL="-Wl,-bexpfull"
44473 ;;
44474 esac
44475
7b94a67c
VZ
44476 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
44477 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
0ad5d837 44478 else
f6b50c59 44479 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
44480set dummy makeC++SharedLib; ac_word=$2
44481echo "$as_me:$LINENO: checking for $ac_word" >&5
44482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44483if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
44484 echo $ECHO_N "(cached) $ECHO_C" >&6
44485else
44486 if test -n "$AIX_CXX_LD"; then
44487 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
44488else
44489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44490for as_dir in $PATH
44491do
44492 IFS=$as_save_IFS
44493 test -z "$as_dir" && as_dir=.
44494 for ac_exec_ext in '' $ac_executable_extensions; do
44495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44496 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
44497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44498 break 2
44499 fi
44500done
44501done
44502
44503 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
44504fi
44505fi
44506AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
44507if test -n "$AIX_CXX_LD"; then
44508 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
44509echo "${ECHO_T}$AIX_CXX_LD" >&6
44510else
44511 echo "$as_me:$LINENO: result: no" >&5
44512echo "${ECHO_T}no" >&6
44513fi
44514
f6b50c59 44515 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
44516 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
44517 fi
44518 ;;
44519
44520 *-*-beos* )
1e9e8aba
DE
44521 SHARED_LD_CC="${LD} -nostart -o"
44522 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
44523 ;;
44524
44525 *-*-irix* )
44526 if test "x$GCC" != "xyes"; then
44527 PIC_FLAG="-KPIC"
44528 fi
44529 ;;
44530
44531 *-*-cygwin* | *-*-mingw32* )
44532 PIC_FLAG=""
1e9e8aba
DE
44533 SHARED_LD_CC="\$(CC) -shared -o"
44534 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 44535 WINDOWS_IMPLIB=1
a848cd7e
SC
44536 ;;
44537
44538 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
44539 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44540 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 44541 PIC_FLAG=""
473276a9
VS
44542
44543D='$'
44544cat <<EOF >dllar.sh
44545#!/bin/sh
44546#
44547# dllar - a tool to build both a .dll and an .a file
44548# from a set of object (.o) files for EMX/OS2.
44549#
44550# Written by Andrew Zabolotny, bit@freya.etu.ru
44551# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
44552#
44553# This script will accept a set of files on the command line.
44554# All the public symbols from the .o files will be exported into
44555# a .DEF file, then linker will be run (through gcc) against them to
44556# build a shared library consisting of all given .o files. All libraries
44557# (.a) will be first decompressed into component .o files then act as
44558# described above. You can optionally give a description (-d "description")
44559# which will be put into .DLL. To see the list of accepted options (as well
44560# as command-line format) simply run this program without options. The .DLL
44561# is built to be imported by name (there is no guarantee that new versions
44562# of the library you build will have same ordinals for same symbols).
44563#
44564# dllar is free software; you can redistribute it and/or modify
44565# it under the terms of the GNU General Public License as published by
44566# the Free Software Foundation; either version 2, or (at your option)
44567# any later version.
44568#
44569# dllar is distributed in the hope that it will be useful,
44570# but WITHOUT ANY WARRANTY; without even the implied warranty of
44571# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44572# GNU General Public License for more details.
44573#
44574# You should have received a copy of the GNU General Public License
44575# along with dllar; see the file COPYING. If not, write to the Free
44576# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
44577# 02111-1307, USA.
44578
44579# To successfuly run this program you will need:
44580# - Current drive should have LFN support (HPFS, ext2, network, etc)
44581# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
44582# - gcc
44583# (used to build the .dll)
44584# - emxexp
44585# (used to create .def file from .o files)
44586# - emximp
44587# (used to create .a file from .def file)
44588# - GNU text utilites (cat, sort, uniq)
44589# used to process emxexp output
44590# - GNU file utilities (mv, rm)
44591# - GNU sed
44592# - lxlite (optional, see flag below)
44593# (used for general .dll cleanup)
44594#
44595
44596flag_USE_LXLITE=1;
44597
44598#
44599# helper functions
44600# basnam, variant of basename, which does _not_ remove the path, _iff_
44601# second argument (suffix to remove) is given
44602basnam(){
44603 case ${D}# in
44604 1)
1e9e8aba 44605 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
44606 ;;
44607 2)
44608 echo ${D}1 | sed 's/'${D}2'${D}//'
44609 ;;
44610 *)
44611 echo "error in basnam ${D}*"
44612 exit 8
44613 ;;
44614 esac
44615}
44616
44617# Cleanup temporary files and output
44618CleanUp() {
44619 cd ${D}curDir
44620 for i in ${D}inputFiles ; do
44621 case ${D}i in
44622 *!)
44623 rm -rf \`basnam ${D}i !\`
44624 ;;
44625 *)
44626 ;;
44627 esac
44628 done
44629
44630 # Kill result in case of failure as there is just to many stupid make/nmake
44631 # things out there which doesn't do this.
1e9e8aba 44632 if [ ${D}# -eq 0 ]; then
473276a9
VS
44633 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
44634 fi
44635}
44636
44637# Print usage and exit script with rc=1.
44638PrintHelp() {
b1d22ded
DE
44639 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
44640 echo ' [-name-mangler-script script.sh]'
44641 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
44642 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
44643 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 44644 echo ' [*.o] [*.a]'
473276a9
VS
44645 echo '*> "output_file" should have no extension.'
44646 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
44647 echo ' The import library name is derived from this and is set to "name".a,'
44648 echo ' unless overridden by -import'
44649 echo '*> "importlib_name" should have no extension.'
44650 echo ' If it has the .o, or .a extension, it is automatically removed.'
44651 echo ' This name is used as the import library name and may be longer and'
44652 echo ' more descriptive than the DLL name which has to follow the old '
44653 echo ' 8.3 convention of FAT.'
b1d22ded
DE
44654 echo '*> "script.sh may be given to override the output_file name by a'
44655 echo ' different name. It is mainly useful if the regular make process'
44656 echo ' of some package does not take into account OS/2 restriction of'
44657 echo ' DLL name lengths. It takes the importlib name as input and is'
44658 echo ' supposed to procude a shorter name as output. The script should'
44659 echo ' expect to get importlib_name without extension and should produce'
44660 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
44661 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
44662 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
44663 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
44664 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
44665 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
44666 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
44667 echo ' If the last character of a symbol is "*", all symbols beginning'
44668 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 44669 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 44670 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 44671 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 44672 echo ' C runtime DLLs.'
b1d22ded 44673 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
44674 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
44675 echo ' unchanged to GCC at the end of command line.'
44676 echo '*> If you create a DLL from a library and you do not specify -o,'
44677 echo ' the basename for DLL and import library will be set to library name,'
44678 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
44679 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
44680 echo ' library will be renamed into gcc_s.a.'
44681 echo '--------'
44682 echo 'Example:'
44683 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
44684 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
44685 CleanUp
44686 exit 1
44687}
44688
44689# Execute a command.
44690# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
44691# @Uses Whatever CleanUp() uses.
44692doCommand() {
44693 echo "${D}*"
44694 eval ${D}*
44695 rcCmd=${D}?
44696
1e9e8aba 44697 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
44698 echo "command failed, exit code="${D}rcCmd
44699 CleanUp
44700 exit ${D}rcCmd
44701 fi
44702}
44703
44704# main routine
44705# setup globals
44706cmdLine=${D}*
44707outFile=""
44708outimpFile=""
44709inputFiles=""
b1d22ded 44710renameScript=""
473276a9
VS
44711description=""
44712CC=gcc.exe
44713CFLAGS="-s -Zcrtdll"
44714EXTRA_CFLAGS=""
44715EXPORT_BY_ORDINALS=0
44716exclude_symbols=""
44717library_flags=""
44718curDir=\`pwd\`
44719curDirS=curDir
44720case ${D}curDirS in
44721*/)
44722 ;;
44723*)
44724 curDirS=${D}{curDirS}"/"
44725 ;;
44726esac
44727# Parse commandline
44728libsToLink=0
b1d22ded 44729omfLinking=0
1e9e8aba 44730while [ ${D}1 ]; do
473276a9
VS
44731 case ${D}1 in
44732 -ord*)
44733 EXPORT_BY_ORDINALS=1;
44734 ;;
44735 -o*)
44736 shift
44737 outFile=${D}1
44738 ;;
44739 -i*)
44740 shift
44741 outimpFile=${D}1
44742 ;;
b1d22ded
DE
44743 -name-mangler-script)
44744 shift
44745 renameScript=${D}1
44746 ;;
473276a9
VS
44747 -d*)
44748 shift
44749 description=${D}1
44750 ;;
44751 -f*)
44752 shift
44753 CFLAGS=${D}1
44754 ;;
44755 -c*)
44756 shift
44757 CC=${D}1
44758 ;;
44759 -h*)
44760 PrintHelp
44761 ;;
44762 -ex*)
44763 shift
44764 exclude_symbols=${D}{exclude_symbols}${D}1" "
44765 ;;
44766 -libf*)
44767 shift
44768 library_flags=${D}{library_flags}${D}1" "
44769 ;;
44770 -nocrt*)
44771 CFLAGS="-s"
44772 ;;
44773 -nolxl*)
44774 flag_USE_LXLITE=0
44775 ;;
44776 -* | /*)
44777 case ${D}1 in
44778 -L* | -l*)
44779 libsToLink=1
44780 ;;
b1d22ded
DE
44781 -Zomf)
44782 omfLinking=1
44783 ;;
473276a9
VS
44784 *)
44785 ;;
44786 esac
44787 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44788 ;;
b1d22ded
DE
44789 *.dll)
44790 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44791 if [ ${D}omfLinking -eq 1 ]; then
44792 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44793 else
44794 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44795 fi
44796 ;;
473276a9
VS
44797 *)
44798 found=0;
1e9e8aba 44799 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
44800 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44801 else
44802 for file in ${D}1 ; do
1e9e8aba 44803 if [ -f ${D}file ]; then
473276a9
VS
44804 inputFiles="${D}{inputFiles} ${D}file"
44805 found=1
44806 fi
44807 done
1e9e8aba 44808 if [ ${D}found -eq 0 ]; then
473276a9
VS
44809 echo "ERROR: No file(s) found: "${D}1
44810 exit 8
44811 fi
44812 fi
44813 ;;
44814 esac
44815 shift
44816done # iterate cmdline words
44817
44818#
1e9e8aba 44819if [ -z "${D}inputFiles" ]; then
473276a9
VS
44820 echo "dllar: no input files"
44821 PrintHelp
44822fi
44823
44824# Now extract all .o files from .a files
44825newInputFiles=""
44826for file in ${D}inputFiles ; do
44827 case ${D}file in
44828 *.a | *.lib)
44829 case ${D}file in
44830 *.a)
44831 suffix=".a"
44832 AR="ar"
44833 ;;
44834 *.lib)
44835 suffix=".lib"
44836 AR="emxomfar"
44837 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44838 ;;
44839 *)
44840 ;;
44841 esac
44842 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44843 mkdir ${D}dirname
1e9e8aba 44844 if [ ${D}? -ne 0 ]; then
473276a9
VS
44845 echo "Failed to create subdirectory ./${D}dirname"
44846 CleanUp
44847 exit 8;
44848 fi
44849 # Append '!' to indicate archive
44850 newInputFiles="${D}newInputFiles ${D}{dirname}!"
44851 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44852 cd ${D}curDir
44853 found=0;
44854 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 44855 if [ -f ${D}subfile ]; then
473276a9 44856 found=1
1e9e8aba 44857 if [ -s ${D}subfile ]; then
473276a9
VS
44858 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44859 newInputFiles="${D}newInputFiles ${D}subfile"
44860 fi
44861 fi
44862 done
1e9e8aba
DE
44863 if [ ${D}found -eq 0 ]; then
44864 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
44865 fi
44866 ;;
44867 *)
44868 newInputFiles="${D}{newInputFiles} ${D}file"
44869 ;;
44870 esac
44871done
44872inputFiles="${D}newInputFiles"
44873
44874# Output filename(s).
44875do_backup=0;
1e9e8aba 44876if [ -z ${D}outFile ]; then
473276a9
VS
44877 do_backup=1;
44878 set outFile ${D}inputFiles; outFile=${D}2
44879fi
44880
44881# If it is an archive, remove the '!' and the '_%' suffixes
44882case ${D}outFile in
44883*_%!)
44884 outFile=\`basnam ${D}outFile _%!\`
44885 ;;
44886*)
44887 ;;
44888esac
44889case ${D}outFile in
44890*.dll)
44891 outFile=\`basnam ${D}outFile .dll\`
44892 ;;
44893*.DLL)
44894 outFile=\`basnam ${D}outFile .DLL\`
44895 ;;
44896*.o)
44897 outFile=\`basnam ${D}outFile .o\`
44898 ;;
44899*.obj)
44900 outFile=\`basnam ${D}outFile .obj\`
44901 ;;
44902*.a)
44903 outFile=\`basnam ${D}outFile .a\`
44904 ;;
44905*.lib)
44906 outFile=\`basnam ${D}outFile .lib\`
44907 ;;
44908*)
44909 ;;
44910esac
44911case ${D}outimpFile in
44912*.a)
44913 outimpFile=\`basnam ${D}outimpFile .a\`
44914 ;;
44915*.lib)
44916 outimpFile=\`basnam ${D}outimpFile .lib\`
44917 ;;
44918*)
44919 ;;
44920esac
1e9e8aba 44921if [ -z ${D}outimpFile ]; then
473276a9
VS
44922 outimpFile=${D}outFile
44923fi
44924defFile="${D}{outFile}.def"
44925arcFile="${D}{outimpFile}.a"
44926arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
44927
44928#create ${D}dllFile as something matching 8.3 restrictions,
44929if [ -z ${D}renameScript ] ; then
44930 dllFile="${D}outFile"
44931else
44932 dllFile=\`${D}renameScript ${D}outimpFile\`
44933fi
473276a9 44934
1e9e8aba
DE
44935if [ ${D}do_backup -ne 0 ] ; then
44936 if [ -f ${D}arcFile ] ; then
473276a9
VS
44937 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
44938 fi
1e9e8aba 44939 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
44940 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
44941 fi
44942fi
44943
44944# Extract public symbols from all the object files.
44945tmpdefFile=${D}{defFile}_%
44946rm -f ${D}tmpdefFile
44947for file in ${D}inputFiles ; do
44948 case ${D}file in
44949 *!)
44950 ;;
44951 *)
44952 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
44953 ;;
44954 esac
44955done
44956
44957# Create the def file.
44958rm -f ${D}defFile
44959echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
44960dllFile="${D}{dllFile}.dll"
44961if [ ! -z ${D}description ]; then
1e9e8aba 44962 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
44963fi
44964echo "EXPORTS" >> ${D}defFile
44965
44966doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
44967grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
44968
44969# Checks if the export is ok or not.
44970for word in ${D}exclude_symbols; do
44971 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
44972 mv ${D}{tmpdefFile}% ${D}tmpdefFile
44973done
44974
44975
1e9e8aba
DE
44976if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
44977 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
44978 sed '
44979 N
44980 : loop
1e9e8aba 44981 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
44982 t loop
44983 ' > ${D}{tmpdefFile}%
44984 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
44985else
44986 rm -f ${D}{tmpdefFile}%
44987fi
44988cat ${D}tmpdefFile >> ${D}defFile
44989rm -f ${D}tmpdefFile
44990
44991# Do linking, create implib, and apply lxlite.
44992gccCmdl="";
44993for file in ${D}inputFiles ; do
44994 case ${D}file in
44995 *!)
44996 ;;
44997 *)
44998 gccCmdl="${D}gccCmdl ${D}file"
44999 ;;
45000 esac
45001done
45002doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
45003touch "${D}{outFile}.dll"
45004
45005doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 45006if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 45007 add_flags="";
1e9e8aba 45008 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
45009 add_flags="-ynd"
45010 fi
45011 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
45012fi
45013doCommand "emxomf -s -l ${D}arcFile"
45014
45015# Successful exit.
45016CleanUp 1
45017exit 0
45018EOF
45019
45020 chmod +x dllar.sh
a848cd7e
SC
45021 ;;
45022
1e9e8aba 45023 powerpc-apple-macos* | \
0ad5d837 45024 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
45025 *-*-sunos4* | \
45026 *-*-osf* | \
45027 *-*-dgux5* | \
47a7e797
MW
45028 *-*-sysv5* | \
45029 *-pc-msdosdjgpp )
a848cd7e
SC
45030 ;;
45031
45032 *)
45033 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
45034echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
45035 { (exit 1); exit 1; }; }
45036 esac
45037
2057db16
VS
45038 if test "x$PIC_FLAG" != "x" ; then
45039 PIC_FLAG="$PIC_FLAG -DPIC"
45040 fi
45041
a848cd7e
SC
45042 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
45043 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
45044 fi
45045 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
45046 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
45047 fi
45048
45049
45050
45051
45052
45053
45054
45055
810b94f0 45056
a848cd7e
SC
45057 USE_SOVERSION=0
45058 USE_SOVERLINUX=0
45059 USE_SOVERSOLARIS=0
810b94f0 45060 USE_SOVERCYGWIN=0
a848cd7e
SC
45061 USE_SOSYMLINKS=0
45062 USE_MACVERSION=0
45063 SONAME_FLAG=
45064
45065 case "${BAKEFILE_HOST}" in
0ad5d837 45066 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
45067 SONAME_FLAG="-Wl,-soname,"
45068 USE_SOVERSION=1
45069 USE_SOVERLINUX=1
45070 USE_SOSYMLINKS=1
45071 ;;
45072
a848cd7e
SC
45073 *-*-solaris2* )
45074 SONAME_FLAG="-h "
45075 USE_SOVERSION=1
45076 USE_SOVERSOLARIS=1
45077 USE_SOSYMLINKS=1
45078 ;;
45079
45080 *-*-darwin* )
45081 USE_MACVERSION=1
45082 USE_SOVERSION=1
45083 USE_SOSYMLINKS=1
45084 ;;
810b94f0
MW
45085
45086 *-*-cygwin* )
45087 USE_SOVERSION=1
45088 USE_SOVERCYGWIN=1
45089 ;;
a848cd7e
SC
45090 esac
45091
45092
45093
45094
45095
45096
45097
45098
45099
810b94f0 45100
a848cd7e
SC
45101 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
45102echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 45103 DEPS_TRACKING=1
a848cd7e
SC
45104
45105 if test "x$GCC" = "xyes"; then
45106 DEPSMODE=gcc
a848cd7e 45107 case "${BAKEFILE_HOST}" in
47bd5406 45108 *-*-darwin* )
0ad5d837 45109 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
45110 ;;
45111 * )
0ad5d837 45112 DEPSFLAG="-MMD"
a848cd7e
SC
45113 ;;
45114 esac
45115 echo "$as_me:$LINENO: result: gcc" >&5
45116echo "${ECHO_T}gcc" >&6
b1d22ded 45117 elif test "x$MWCC" = "xyes"; then
81f90336 45118 DEPSMODE=mwcc
0ad5d837 45119 DEPSFLAG="-MM"
b1d22ded
DE
45120 echo "$as_me:$LINENO: result: mwcc" >&5
45121echo "${ECHO_T}mwcc" >&6
a9e5b1f0 45122 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
45123 DEPSMODE=unixcc
45124 DEPSFLAG="-xM1"
45125 echo "$as_me:$LINENO: result: Sun cc" >&5
45126echo "${ECHO_T}Sun cc" >&6
45127 elif test "x$SGICC" = "xyes"; then
45128 DEPSMODE=unixcc
45129 DEPSFLAG="-M"
45130 echo "$as_me:$LINENO: result: SGI cc" >&5
45131echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
45132 elif test "x$HPCC" = "xyes"; then
45133 DEPSMODE=unixcc
45134 DEPSFLAG="+make"
45135 echo "$as_me:$LINENO: result: HP cc" >&5
45136echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
45137 elif test "x$COMPAQCC" = "xyes"; then
45138 DEPSMODE=gcc
45139 DEPSFLAG="-MD"
45140 echo "$as_me:$LINENO: result: Compaq cc" >&5
45141echo "${ECHO_T}Compaq cc" >&6
a848cd7e 45142 else
3006edc0 45143 DEPS_TRACKING=0
a848cd7e
SC
45144 echo "$as_me:$LINENO: result: none" >&5
45145echo "${ECHO_T}none" >&6
45146 fi
45147
45148 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
45149
45150D='$'
45151cat <<EOF >bk-deps
a848cd7e
SC
45152#!/bin/sh
45153
45154# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45155# script. It is used to track C/C++ files dependencies in portable way.
45156#
45157# Permission is given to use this file in any way.
45158
473276a9 45159DEPSMODE=${DEPSMODE}
a848cd7e 45160DEPSDIR=.deps
0ad5d837 45161DEPSFLAG="${DEPSFLAG}"
a848cd7e 45162
473276a9 45163mkdir -p ${D}DEPSDIR
a848cd7e 45164
473276a9 45165if test ${D}DEPSMODE = gcc ; then
0ad5d837 45166 ${D}* ${D}{DEPSFLAG}
473276a9
VS
45167 status=${D}?
45168 if test ${D}{status} != 0 ; then
45169 exit ${D}{status}
a848cd7e
SC
45170 fi
45171 # move created file to the location we want it in:
473276a9
VS
45172 while test ${D}# -gt 0; do
45173 case "${D}1" in
a848cd7e
SC
45174 -o )
45175 shift
473276a9 45176 objfile=${D}1
a848cd7e
SC
45177 ;;
45178 -* )
45179 ;;
45180 * )
473276a9 45181 srcfile=${D}1
a848cd7e
SC
45182 ;;
45183 esac
45184 shift
45185 done
1e9e8aba
DE
45186 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
45187 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
45188 if test -f ${D}depfile ; then
45189 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45190 rm -f ${D}depfile
a848cd7e 45191 else
a1aa0349 45192 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 45193 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
45194 if test ! -f ${D}depfile ; then
45195 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
45196 depfile="${D}objfile.d"
45197 fi
473276a9
VS
45198 if test -f ${D}depfile ; then
45199 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45200 rm -f ${D}depfile
a848cd7e
SC
45201 fi
45202 fi
45203 exit 0
81f90336 45204elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 45205 ${D}* || exit ${D}?
81f90336
MW
45206 # Run mwcc again with -MM and redirect into the dep file we want
45207 # NOTE: We can't use shift here because we need ${D}* to be valid
45208 prevarg=
45209 for arg in ${D}* ; do
45210 if test "${D}prevarg" = "-o"; then
45211 objfile=${D}arg
45212 else
45213 case "${D}arg" in
45214 -* )
45215 ;;
45216 * )
45217 srcfile=${D}arg
45218 ;;
45219 esac
45220 fi
45221 prevarg="${D}arg"
45222 done
0ad5d837 45223 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 45224 exit 0
0ad5d837 45225elif test ${D}DEPSMODE = unixcc; then
f6b50c59 45226 ${D}* || exit ${D}?
a9e5b1f0
MW
45227 # Run compiler again with deps flag and redirect into the dep file.
45228 # It doesn't work if the '-o FILE' option is used, but without it the
45229 # dependency file will contain the wrong name for the object. So it is
45230 # removed from the command line, and the dep file is fixed with sed.
45231 cmd=""
45232 while test ${D}# -gt 0; do
45233 case "${D}1" in
45234 -o )
45235 shift
45236 objfile=${D}1
45237 ;;
45238 * )
45239 eval arg${D}#=\\${D}1
45240 cmd="${D}cmd \\${D}arg${D}#"
45241 ;;
45242 esac
45243 shift
45244 done
0ad5d837 45245 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 45246 exit 0
a848cd7e 45247else
473276a9
VS
45248 ${D}*
45249 exit ${D}?
a848cd7e
SC
45250fi
45251EOF
473276a9 45252
a848cd7e
SC
45253 chmod +x bk-deps
45254 fi
45255
45256
45257
45258
45259 RESCOMP=
45260 SETFILE=
45261
45262 case ${BAKEFILE_HOST} in
45263 *-*-cygwin* | *-*-mingw32* )
45264 if test "$build" != "$host" ; then
45265 RESCOMP=$host_alias-windres
45266 else
45267 # Extract the first word of "windres", so it can be a program name with args.
45268set dummy windres; ac_word=$2
45269echo "$as_me:$LINENO: checking for $ac_word" >&5
45270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45271if test "${ac_cv_prog_RESCOMP+set}" = set; then
45272 echo $ECHO_N "(cached) $ECHO_C" >&6
45273else
45274 if test -n "$RESCOMP"; then
45275 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45276else
45277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45278for as_dir in $PATH
45279do
45280 IFS=$as_save_IFS
45281 test -z "$as_dir" && as_dir=.
45282 for ac_exec_ext in '' $ac_executable_extensions; do
45283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45284 ac_cv_prog_RESCOMP="windres"
45285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45286 break 2
45287 fi
45288done
45289done
45290
45291 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
45292fi
45293fi
45294RESCOMP=$ac_cv_prog_RESCOMP
45295if test -n "$RESCOMP"; then
45296 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45297echo "${ECHO_T}$RESCOMP" >&6
45298else
45299 echo "$as_me:$LINENO: result: no" >&5
45300echo "${ECHO_T}no" >&6
45301fi
45302
45303 fi
45304 ;;
45305
1e9e8aba 45306 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
45307 # Extract the first word of "Rez", so it can be a program name with args.
45308set dummy Rez; ac_word=$2
45309echo "$as_me:$LINENO: checking for $ac_word" >&5
45310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45311if test "${ac_cv_prog_RESCOMP+set}" = set; then
45312 echo $ECHO_N "(cached) $ECHO_C" >&6
45313else
45314 if test -n "$RESCOMP"; then
45315 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45316else
45317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45318for as_dir in $PATH
45319do
45320 IFS=$as_save_IFS
45321 test -z "$as_dir" && as_dir=.
45322 for ac_exec_ext in '' $ac_executable_extensions; do
45323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45324 ac_cv_prog_RESCOMP="Rez"
45325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45326 break 2
45327 fi
45328done
45329done
45330
45331 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
45332fi
45333fi
45334RESCOMP=$ac_cv_prog_RESCOMP
45335if test -n "$RESCOMP"; then
45336 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45337echo "${ECHO_T}$RESCOMP" >&6
45338else
45339 echo "$as_me:$LINENO: result: no" >&5
45340echo "${ECHO_T}no" >&6
45341fi
45342
45343 # Extract the first word of "SetFile", so it can be a program name with args.
45344set dummy SetFile; ac_word=$2
45345echo "$as_me:$LINENO: checking for $ac_word" >&5
45346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45347if test "${ac_cv_prog_SETFILE+set}" = set; then
45348 echo $ECHO_N "(cached) $ECHO_C" >&6
45349else
45350 if test -n "$SETFILE"; then
45351 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
45352else
45353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45354for as_dir in $PATH
45355do
45356 IFS=$as_save_IFS
45357 test -z "$as_dir" && as_dir=.
45358 for ac_exec_ext in '' $ac_executable_extensions; do
45359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45360 ac_cv_prog_SETFILE="SetFile"
45361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45362 break 2
45363 fi
45364done
45365done
45366
45367 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
45368fi
45369fi
45370SETFILE=$ac_cv_prog_SETFILE
45371if test -n "$SETFILE"; then
45372 echo "$as_me:$LINENO: result: $SETFILE" >&5
45373echo "${ECHO_T}$SETFILE" >&6
45374else
45375 echo "$as_me:$LINENO: result: no" >&5
45376echo "${ECHO_T}no" >&6
45377fi
45378
45379 ;;
45380 esac
45381
45382
45383
45384
45385
c9469659 45386 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 45387
dcc1b6ad 45388
c9469659 45389BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 45390
646b6ec1 45391
74b84332 45392
a848cd7e
SC
45393 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
45394if test "${enable_precomp_headers+set}" = set; then
45395 enableval="$enable_precomp_headers"
45396 bk_use_pch="$enableval"
45397fi;
45398
45399 GCC_PCH=0
45400
45401 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
45402 if test "x$GCC" = "xyes"; then
45403 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
45404echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
45405 cat >conftest.$ac_ext <<_ACEOF
45406/* confdefs.h. */
45407_ACEOF
45408cat confdefs.h >>conftest.$ac_ext
45409cat >>conftest.$ac_ext <<_ACEOF
45410/* end confdefs.h. */
45411
45412int
45413main ()
45414{
45415
45416 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
45417 #error "no pch support"
45418 #endif
45419 #if (__GNUC__ < 3)
45420 #error "no pch support"
45421 #endif
45422 #if (__GNUC__ == 3) && \
45423 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
45424 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
45425 #error "no pch support"
45426 #endif
45427
45428 ;
45429 return 0;
45430}
45431_ACEOF
45432rm -f conftest.$ac_objext
45433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45434 (eval $ac_compile) 2>conftest.er1
a848cd7e 45435 ac_status=$?
ac1cb8d3
VS
45436 grep -v '^ *+' conftest.er1 >conftest.err
45437 rm -f conftest.er1
45438 cat conftest.err >&5
a848cd7e
SC
45439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45440 (exit $ac_status); } &&
6ebeb4c7 45441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45443 (eval $ac_try) 2>&5
45444 ac_status=$?
45445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45446 (exit $ac_status); }; } &&
45447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45449 (eval $ac_try) 2>&5
45450 ac_status=$?
45451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45452 (exit $ac_status); }; }; then
45453
45454 echo "$as_me:$LINENO: result: yes" >&5
45455echo "${ECHO_T}yes" >&6
a848cd7e
SC
45456 GCC_PCH=1
45457
45458else
45459 echo "$as_me: failed program was:" >&5
45460sed 's/^/| /' conftest.$ac_ext >&5
45461
45462
45463 echo "$as_me:$LINENO: result: no" >&5
45464echo "${ECHO_T}no" >&6
45465
45466fi
ac1cb8d3 45467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45468 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
45469
45470D='$'
45471cat <<EOF >bk-make-pch
a848cd7e
SC
45472#!/bin/sh
45473
45474# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45475# script. It is used to generated precompiled headers.
45476#
45477# Permission is given to use this file in any way.
45478
1e9e8aba
DE
45479outfile="${D}{1}"
45480header="${D}{2}"
a848cd7e
SC
45481shift
45482shift
45483
45484compiler=
45485headerfile=
1e9e8aba
DE
45486while test ${D}{#} -gt 0; do
45487 case "${D}{1}" in
a848cd7e 45488 -I* )
1e9e8aba
DE
45489 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
45490 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
45491 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
45492 fi
45493 ;;
45494 esac
1e9e8aba 45495 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
45496 shift
45497done
45498
1e9e8aba
DE
45499if test "x${D}{headerfile}" = "x" ; then
45500 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 45501else
1e9e8aba
DE
45502 if test -f ${D}{outfile} ; then
45503 rm -f ${D}{outfile}
a848cd7e 45504 else
1e9e8aba 45505 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 45506 fi
1e9e8aba 45507 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
45508 mkdir -p .deps
45509 # can do this because gcc is >= 3.4:
1e9e8aba
DE
45510 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
45511 exit ${D}{?}
a848cd7e
SC
45512fi
45513EOF
1e9e8aba 45514
a848cd7e
SC
45515 chmod +x bk-make-pch
45516 fi
45517 fi
45518 fi
45519
45520
45521
a848cd7e
SC
45522 COND_BUILD_DEBUG="#"
45523 if test "x$BUILD" = "xdebug" ; then
45524 COND_BUILD_DEBUG=""
45525 fi
45526
45527 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
45528 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
45529 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
45530 fi
45531
45532 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
45533 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
45534 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
45535 fi
45536
45537 COND_BUILD_DEBUG_UNICODE_0="#"
45538 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
45539 COND_BUILD_DEBUG_UNICODE_0=""
45540 fi
45541
45542 COND_BUILD_DEBUG_UNICODE_1="#"
45543 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
45544 COND_BUILD_DEBUG_UNICODE_1=""
45545 fi
45546
45547 COND_BUILD_RELEASE="#"
45548 if test "x$BUILD" = "xrelease" ; then
45549 COND_BUILD_RELEASE=""
45550 fi
45551
45552 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
45553 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
45554 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
45555 fi
45556
45557 COND_BUILD_RELEASE_UNICODE_0="#"
45558 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
45559 COND_BUILD_RELEASE_UNICODE_0=""
45560 fi
45561
45562 COND_BUILD_RELEASE_UNICODE_1="#"
45563 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
45564 COND_BUILD_RELEASE_UNICODE_1=""
45565 fi
45566
45567 COND_DEBUG_FLAG_1="#"
45568 if test "x$DEBUG_FLAG" = "x1" ; then
45569 COND_DEBUG_FLAG_1=""
45570 fi
45571
45572 COND_DEBUG_INFO_0="#"
45573 if test "x$DEBUG_INFO" = "x0" ; then
45574 COND_DEBUG_INFO_0=""
45575 fi
45576
45577 COND_DEBUG_INFO_1="#"
45578 if test "x$DEBUG_INFO" = "x1" ; then
45579 COND_DEBUG_INFO_1=""
45580 fi
45581
45582 COND_DEPS_TRACKING_0="#"
45583 if test "x$DEPS_TRACKING" = "x0" ; then
45584 COND_DEPS_TRACKING_0=""
45585 fi
45586
45587 COND_DEPS_TRACKING_1="#"
45588 if test "x$DEPS_TRACKING" = "x1" ; then
45589 COND_DEPS_TRACKING_1=""
45590 fi
45591
45592 COND_GCC_PCH_1="#"
45593 if test "x$GCC_PCH" = "x1" ; then
45594 COND_GCC_PCH_1=""
45595 fi
45596
45597 COND_MONOLITHIC_0="#"
45598 if test "x$MONOLITHIC" = "x0" ; then
45599 COND_MONOLITHIC_0=""
45600 fi
45601
45602 COND_MONOLITHIC_0_SHARED_0="#"
45603 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
45604 COND_MONOLITHIC_0_SHARED_0=""
45605 fi
45606
45607 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
45608 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
45609 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
45610 fi
45611
90970d69
DE
45612 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
45613 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45614 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
45615 fi
45616
a848cd7e
SC
45617 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
45618 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45619 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
45620 fi
45621
6671c68b
VZ
45622 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
45623 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45624 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
45625 fi
45626
a848cd7e
SC
45627 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
45628 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
45629 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
45630 fi
45631
ceec2216
RL
45632 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
45633 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45634 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
45635 fi
45636
a848cd7e
SC
45637 COND_MONOLITHIC_0_SHARED_1="#"
45638 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
45639 COND_MONOLITHIC_0_SHARED_1=""
45640 fi
45641
45642 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
45643 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
45644 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
45645 fi
45646
90970d69
DE
45647 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
45648 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45649 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
45650 fi
45651
a848cd7e
SC
45652 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
45653 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45654 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
45655 fi
45656
6671c68b
VZ
45657 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
45658 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45659 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
45660 fi
45661
a848cd7e
SC
45662 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
45663 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
45664 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
45665 fi
45666
ceec2216
RL
45667 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
45668 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45669 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
45670 fi
45671
a848cd7e
SC
45672 COND_MONOLITHIC_0_USE_ODBC_1="#"
45673 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
45674 COND_MONOLITHIC_0_USE_ODBC_1=""
45675 fi
45676
45677 COND_MONOLITHIC_1="#"
45678 if test "x$MONOLITHIC" = "x1" ; then
45679 COND_MONOLITHIC_1=""
45680 fi
45681
45682 COND_MONOLITHIC_1_SHARED_0="#"
45683 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
45684 COND_MONOLITHIC_1_SHARED_0=""
45685 fi
45686
45687 COND_MONOLITHIC_1_SHARED_1="#"
45688 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
45689 COND_MONOLITHIC_1_SHARED_1=""
45690 fi
45691
45692 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
45693 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
45694 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
45695 fi
45696
45697 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
45698 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
45699 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
45700 fi
45701
eb730a0c
JS
45702 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
45703 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45704 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
45705 fi
45706
a848cd7e
SC
45707 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
45708 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45709 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
45710 fi
45711
45712 COND_PLATFORM_MACOSX_1="#"
45713 if test "x$PLATFORM_MACOSX" = "x1" ; then
45714 COND_PLATFORM_MACOSX_1=""
45715 fi
45716
a30f955f
VS
45717 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
45718 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
45719 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
45720 fi
45721
a848cd7e
SC
45722 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
45723 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
45724 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
45725 fi
45726
45727 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
45728 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
45729 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
45730 fi
45731
45732 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
45733 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
45734 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
45735 fi
45736
fc480dc1
DE
45737 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45738 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45739 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45740 fi
45741
1e9e8aba
DE
45742 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45743 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45744 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45745 fi
45746
ebee3cd0
VS
45747 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45748 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45749 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45750 fi
45751
45752 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45753 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45754 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45755 fi
45756
a848cd7e
SC
45757 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45758 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45759 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45760 fi
45761
45762 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45763 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45764 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45765 fi
45766
b48a2016
DE
45767 COND_PLATFORM_MACOS_1="#"
45768 if test "x$PLATFORM_MACOS" = "x1" ; then
45769 COND_PLATFORM_MACOS_1=""
45770 fi
45771
083508af
MW
45772 COND_PLATFORM_MAC_1="#"
45773 if test "x$PLATFORM_MAC" = "x1" ; then
45774 COND_PLATFORM_MAC_1=""
45775 fi
45776
83d8eb47
MW
45777 COND_PLATFORM_MSDOS_1="#"
45778 if test "x$PLATFORM_MSDOS" = "x1" ; then
45779 COND_PLATFORM_MSDOS_1=""
45780 fi
45781
a848cd7e
SC
45782 COND_PLATFORM_OS2_1="#"
45783 if test "x$PLATFORM_OS2" = "x1" ; then
45784 COND_PLATFORM_OS2_1=""
45785 fi
45786
45787 COND_PLATFORM_UNIX_0="#"
45788 if test "x$PLATFORM_UNIX" = "x0" ; then
45789 COND_PLATFORM_UNIX_0=""
45790 fi
45791
45792 COND_PLATFORM_UNIX_1="#"
45793 if test "x$PLATFORM_UNIX" = "x1" ; then
45794 COND_PLATFORM_UNIX_1=""
45795 fi
45796
45797 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45798 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45799 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45800 fi
45801
45802 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45803 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45804 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45805 fi
45806
45807 COND_PLATFORM_WIN32_0="#"
45808 if test "x$PLATFORM_WIN32" = "x0" ; then
45809 COND_PLATFORM_WIN32_0=""
45810 fi
45811
45812 COND_PLATFORM_WIN32_1="#"
45813 if test "x$PLATFORM_WIN32" = "x1" ; then
45814 COND_PLATFORM_WIN32_1=""
45815 fi
45816
45817 COND_SHARED_0="#"
45818 if test "x$SHARED" = "x0" ; then
45819 COND_SHARED_0=""
45820 fi
45821
083508af
MW
45822 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45823 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45824 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45825 fi
45826
45827 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45828 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45829 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45830 fi
45831
45832 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45833 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45834 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45835 fi
45836
a848cd7e
SC
45837 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45838 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45839 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45840 fi
45841
45842 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45843 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45844 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45845 fi
45846
45847 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45848 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45849 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45850 fi
45851
45852 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45853 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45854 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45855 fi
45856
083508af
MW
45857 COND_SHARED_0_USE_XRC_1="#"
45858 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45859 COND_SHARED_0_USE_XRC_1=""
45860 fi
45861
a848cd7e
SC
45862 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
45863 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
45864 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
45865 fi
45866
45867 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
45868 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
45869 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
45870 fi
45871
45872 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
45873 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
45874 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
45875 fi
45876
45877 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
45878 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
45879 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
45880 fi
45881
45882 COND_SHARED_1="#"
45883 if test "x$SHARED" = "x1" ; then
45884 COND_SHARED_1=""
45885 fi
45886
45887 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
45888 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45889 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
45890 fi
45891
083508af
MW
45892 COND_SHARED_1_USE_XRC_1="#"
45893 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45894 COND_SHARED_1_USE_XRC_1=""
45895 fi
45896
a30f955f
VS
45897 COND_TOOLKIT_="#"
45898 if test "x$TOOLKIT" = "x" ; then
45899 COND_TOOLKIT_=""
45900 fi
45901
a848cd7e
SC
45902 COND_TOOLKIT_COCOA="#"
45903 if test "x$TOOLKIT" = "xCOCOA" ; then
45904 COND_TOOLKIT_COCOA=""
45905 fi
45906
a49baeab
DE
45907 COND_TOOLKIT_COCOA_USE_GUI_1="#"
45908 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
45909 COND_TOOLKIT_COCOA_USE_GUI_1=""
45910 fi
45911
a848cd7e
SC
45912 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
45913 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45914 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
45915 fi
45916
45917 COND_TOOLKIT_GTK="#"
45918 if test "x$TOOLKIT" = "xGTK" ; then
45919 COND_TOOLKIT_GTK=""
45920 fi
45921
45922 COND_TOOLKIT_GTK_USE_GUI_1="#"
45923 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
45924 COND_TOOLKIT_GTK_USE_GUI_1=""
45925 fi
45926
45927 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
45928 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45929 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
45930 fi
45931
45932 COND_TOOLKIT_MAC="#"
45933 if test "x$TOOLKIT" = "xMAC" ; then
45934 COND_TOOLKIT_MAC=""
45935 fi
45936
45937 COND_TOOLKIT_MAC_USE_GUI_1="#"
45938 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45939 COND_TOOLKIT_MAC_USE_GUI_1=""
45940 fi
45941
45942 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45943 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45944 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45945 fi
45946
45947 COND_TOOLKIT_MGL="#"
45948 if test "x$TOOLKIT" = "xMGL" ; then
45949 COND_TOOLKIT_MGL=""
45950 fi
45951
45952 COND_TOOLKIT_MGL_USE_GUI_1="#"
45953 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
45954 COND_TOOLKIT_MGL_USE_GUI_1=""
45955 fi
45956
45957 COND_TOOLKIT_MOTIF="#"
45958 if test "x$TOOLKIT" = "xMOTIF" ; then
45959 COND_TOOLKIT_MOTIF=""
45960 fi
45961
45962 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
45963 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
45964 COND_TOOLKIT_MOTIF_USE_GUI_1=""
45965 fi
45966
45967 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
45968 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45969 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
45970 fi
45971
45972 COND_TOOLKIT_MSW="#"
45973 if test "x$TOOLKIT" = "xMSW" ; then
45974 COND_TOOLKIT_MSW=""
45975 fi
45976
45977 COND_TOOLKIT_MSW_USE_GUI_1="#"
45978 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
45979 COND_TOOLKIT_MSW_USE_GUI_1=""
45980 fi
45981
45982 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
45983 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45984 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
45985 fi
45986
0ee4059d
DE
45987 COND_TOOLKIT_MSW_WXUNIV_0="#"
45988 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45989 COND_TOOLKIT_MSW_WXUNIV_0=""
45990 fi
45991
a848cd7e
SC
45992 COND_TOOLKIT_PM="#"
45993 if test "x$TOOLKIT" = "xPM" ; then
45994 COND_TOOLKIT_PM=""
45995 fi
45996
45997 COND_TOOLKIT_PM_USE_GUI_1="#"
45998 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
45999 COND_TOOLKIT_PM_USE_GUI_1=""
46000 fi
46001
46002 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
46003 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46004 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
46005 fi
46006
3fd9c298
DE
46007 COND_TOOLKIT_WINCE="#"
46008 if test "x$TOOLKIT" = "xWINCE" ; then
46009 COND_TOOLKIT_WINCE=""
46010 fi
46011
46012 COND_TOOLKIT_WINCE_USE_GUI_1="#"
46013 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
46014 COND_TOOLKIT_WINCE_USE_GUI_1=""
46015 fi
46016
46017 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
46018 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46019 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
46020 fi
46021
0ee4059d
DE
46022 COND_TOOLKIT_WINCE_WXUNIV_0="#"
46023 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
46024 COND_TOOLKIT_WINCE_WXUNIV_0=""
46025 fi
46026
a848cd7e
SC
46027 COND_TOOLKIT_X11="#"
46028 if test "x$TOOLKIT" = "xX11" ; then
46029 COND_TOOLKIT_X11=""
46030 fi
46031
46032 COND_TOOLKIT_X11_USE_GUI_1="#"
46033 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
46034 COND_TOOLKIT_X11_USE_GUI_1=""
46035 fi
46036
46037 COND_UNICODE_1="#"
46038 if test "x$UNICODE" = "x1" ; then
46039 COND_UNICODE_1=""
46040 fi
46041
46042 COND_USE_EXCEPTIONS_0="#"
46043 if test "x$USE_EXCEPTIONS" = "x0" ; then
46044 COND_USE_EXCEPTIONS_0=""
46045 fi
46046
46047 COND_USE_EXCEPTIONS_1="#"
46048 if test "x$USE_EXCEPTIONS" = "x1" ; then
46049 COND_USE_EXCEPTIONS_1=""
46050 fi
46051
46052 COND_USE_GUI_0="#"
46053 if test "x$USE_GUI" = "x0" ; then
46054 COND_USE_GUI_0=""
46055 fi
46056
46057 COND_USE_GUI_1="#"
46058 if test "x$USE_GUI" = "x1" ; then
46059 COND_USE_GUI_1=""
46060 fi
46061
46062 COND_USE_GUI_1_WXUNIV_0="#"
46063 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46064 COND_USE_GUI_1_WXUNIV_0=""
46065 fi
46066
46067 COND_USE_GUI_1_WXUNIV_1="#"
46068 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
46069 COND_USE_GUI_1_WXUNIV_1=""
46070 fi
46071
46072 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
46073 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46074 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
46075 fi
46076
46077 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
46078 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46079 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
46080 fi
46081
46082 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
46083 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46084 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
46085 fi
46086
083508af
MW
46087 COND_USE_ODBC_1="#"
46088 if test "x$USE_ODBC" = "x1" ; then
46089 COND_USE_ODBC_1=""
46090 fi
46091
46092 COND_USE_OPENGL_1="#"
46093 if test "x$USE_OPENGL" = "x1" ; then
46094 COND_USE_OPENGL_1=""
46095 fi
46096
a848cd7e
SC
46097 COND_USE_PLUGINS_0="#"
46098 if test "x$USE_PLUGINS" = "x0" ; then
46099 COND_USE_PLUGINS_0=""
46100 fi
46101
0b78747f
MW
46102 COND_USE_RTTI_0="#"
46103 if test "x$USE_RTTI" = "x0" ; then
46104 COND_USE_RTTI_0=""
46105 fi
46106
46107 COND_USE_RTTI_1="#"
46108 if test "x$USE_RTTI" = "x1" ; then
46109 COND_USE_RTTI_1=""
46110 fi
46111
a848cd7e
SC
46112 COND_USE_SOSYMLINKS_1="#"
46113 if test "x$USE_SOSYMLINKS" = "x1" ; then
46114 COND_USE_SOSYMLINKS_1=""
46115 fi
46116
eb730a0c
JS
46117 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
46118 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
46119 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
46120 fi
46121
a848cd7e
SC
46122 COND_USE_SOVERLINUX_1="#"
46123 if test "x$USE_SOVERLINUX" = "x1" ; then
46124 COND_USE_SOVERLINUX_1=""
46125 fi
46126
46127 COND_USE_SOVERSION_0="#"
46128 if test "x$USE_SOVERSION" = "x0" ; then
46129 COND_USE_SOVERSION_0=""
46130 fi
46131
46132 COND_USE_SOVERSOLARIS_1="#"
46133 if test "x$USE_SOVERSOLARIS" = "x1" ; then
46134 COND_USE_SOVERSOLARIS_1=""
46135 fi
46136
0b78747f
MW
46137 COND_USE_THREADS_0="#"
46138 if test "x$USE_THREADS" = "x0" ; then
46139 COND_USE_THREADS_0=""
46140 fi
46141
46142 COND_USE_THREADS_1="#"
46143 if test "x$USE_THREADS" = "x1" ; then
46144 COND_USE_THREADS_1=""
46145 fi
46146
a13a7f89
RL
46147 COND_USE_XRC_1="#"
46148 if test "x$USE_XRC" = "x1" ; then
46149 COND_USE_XRC_1=""
46150 fi
46151
eb730a0c
JS
46152 COND_WINDOWS_IMPLIB_1="#"
46153 if test "x$WINDOWS_IMPLIB" = "x1" ; then
46154 COND_WINDOWS_IMPLIB_1=""
46155 fi
46156
a848cd7e
SC
46157 COND_WITH_PLUGIN_SDL_1="#"
46158 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
46159 COND_WITH_PLUGIN_SDL_1=""
46160 fi
46161
1e6eb025
VZ
46162 COND_WXUNIV_0="#"
46163 if test "x$WXUNIV" = "x0" ; then
46164 COND_WXUNIV_0=""
46165 fi
46166
a848cd7e
SC
46167 COND_WXUNIV_1="#"
46168 if test "x$WXUNIV" = "x1" ; then
46169 COND_WXUNIV_1=""
46170 fi
46171
46172 COND_WXUSE_EXPAT_BUILTIN="#"
46173 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
46174 COND_WXUSE_EXPAT_BUILTIN=""
46175 fi
46176
46177 COND_WXUSE_LIBJPEG_BUILTIN="#"
46178 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46179 COND_WXUSE_LIBJPEG_BUILTIN=""
46180 fi
46181
46182 COND_WXUSE_LIBPNG_BUILTIN="#"
46183 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46184 COND_WXUSE_LIBPNG_BUILTIN=""
46185 fi
46186
46187 COND_WXUSE_LIBTIFF_BUILTIN="#"
46188 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46189 COND_WXUSE_LIBTIFF_BUILTIN=""
46190 fi
46191
46192 COND_WXUSE_ODBC_BUILTIN="#"
46193 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
46194 COND_WXUSE_ODBC_BUILTIN=""
46195 fi
46196
46197 COND_WXUSE_REGEX_BUILTIN="#"
46198 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
46199 COND_WXUSE_REGEX_BUILTIN=""
46200 fi
46201
46202 COND_WXUSE_ZLIB_BUILTIN="#"
46203 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
46204 COND_WXUSE_ZLIB_BUILTIN=""
46205 fi
46206
46207
46208
810b94f0
MW
46209 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
46210 { { 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
46211echo "$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;}
46212 { (exit 1); exit 1; }; }
46213 fi
46214
2057db16
VS
46215 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
46216 { { 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
46217echo "$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;}
46218 { (exit 1); exit 1; }; }
46219 fi
46220
a848cd7e 46221
ceec2216
RL
46222if test "$wxUSE_SHARED" = "yes"; then
46223
46224 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
46225 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
46226
5b674b9d
DE
46227 case "${host}" in
46228 *-pc-os2_emx | *-pc-os2-emx )
46229 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46230 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46231 cp -p ${srcdir}/src/os2/dllnames.sh .
46232 cp -p ${srcdir}/src/os2/dllar.sh .
46233 ;;
46234 esac
ceec2216
RL
46235else
46236
46237 EXE_LINKER="$CXX -o"
46238
46239fi
69120ee4
VZ
46240if test "$wxUSE_OMF" = "yes"; then
46241 case "${host}" in
46242 *-pc-os2_emx | *-pc-os2-emx )
46243 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
46244 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46245 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46246 ;;
46247 esac
46248fi
a848cd7e 46249
c08ebc62 46250if test $GCC_PCH = 1 ; then
254e8e29 46251 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 46252fi
a848cd7e 46253
2eef8513 46254CPPFLAGS="$CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
46255
46256SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
46257
46258
46259
46260
46261
46262
46263
46264
46265
46266
46267
46268
46269
46270
46271
46272
46273
46274
46275
46276
46277
46278
46279
46280
46281
46282
46283
46284
46285
46286
46287
46288
46289
46290
46291
46292
46293
46294
46295
46296
46297
46298
a848cd7e
SC
46299
46300
46301
46302
46303
46304
46305
46306
46307
46308
46309
46310
46311
46312
46313
46314
46315
46316
ddd14b14 46317
a848cd7e
SC
46318
46319
46320echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46321echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46322set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46323if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46324 echo $ECHO_N "(cached) $ECHO_C" >&6
46325else
46326 cat >conftest.make <<\_ACEOF
46327all:
46328 @echo 'ac_maketemp="$(MAKE)"'
46329_ACEOF
46330# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46331eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46332if test -n "$ac_maketemp"; then
46333 eval ac_cv_prog_make_${ac_make}_set=yes
46334else
46335 eval ac_cv_prog_make_${ac_make}_set=no
46336fi
46337rm -f conftest.make
46338fi
46339if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46340 echo "$as_me:$LINENO: result: yes" >&5
46341echo "${ECHO_T}yes" >&6
46342 SET_MAKE=
46343else
46344 echo "$as_me:$LINENO: result: no" >&5
46345echo "${ECHO_T}no" >&6
46346 SET_MAKE="MAKE=${MAKE-make}"
46347fi
46348
46349
a848cd7e 46350
ceec2216
RL
46351 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
46352
a848cd7e 46353
ceec2216 46354 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 46355
a848cd7e 46356
ceec2216 46357 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 46358
ceec2216
RL
46359
46360 ac_config_files="$ac_config_files version-script Makefile"
46361
46362
46363 ac_config_commands="$ac_config_commands wx-config
46364 "
a848cd7e
SC
46365
46366
9103d280 46367
1c14217d 46368if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
46369if test "$wxUSE_GUI" = "yes"; then
46370 SUBDIRS="samples demos utils contrib"
46371else SUBDIRS="samples utils"
46372fi
46373
46374
46375
46376# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
46377if test "${with_cppunit_prefix+set}" = set; then
46378 withval="$with_cppunit_prefix"
46379 cppunit_config_prefix="$withval"
46380else
46381 cppunit_config_prefix=""
46382fi;
46383
46384# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
46385if test "${with_cppunit_exec_prefix+set}" = set; then
46386 withval="$with_cppunit_exec_prefix"
46387 cppunit_config_exec_prefix="$withval"
46388else
46389 cppunit_config_exec_prefix=""
46390fi;
46391
46392 if test x$cppunit_config_exec_prefix != x ; then
46393 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
46394 if test x${CPPUNIT_CONFIG+set} != xset ; then
46395 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
46396 fi
46397 fi
46398 if test x$cppunit_config_prefix != x ; then
46399 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
46400 if test x${CPPUNIT_CONFIG+set} != xset ; then
46401 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
46402 fi
46403 fi
46404
46405 # Extract the first word of "cppunit-config", so it can be a program name with args.
46406set dummy cppunit-config; ac_word=$2
46407echo "$as_me:$LINENO: checking for $ac_word" >&5
46408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46409if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
46410 echo $ECHO_N "(cached) $ECHO_C" >&6
46411else
46412 case $CPPUNIT_CONFIG in
46413 [\\/]* | ?:[\\/]*)
46414 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
46415 ;;
46416 *)
46417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46418for as_dir in $PATH
46419do
46420 IFS=$as_save_IFS
46421 test -z "$as_dir" && as_dir=.
46422 for ac_exec_ext in '' $ac_executable_extensions; do
46423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46424 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46426 break 2
46427 fi
46428done
46429done
46430
46431 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
46432 ;;
46433esac
46434fi
46435CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
46436
46437if test -n "$CPPUNIT_CONFIG"; then
46438 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
46439echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
46440else
46441 echo "$as_me:$LINENO: result: no" >&5
46442echo "${ECHO_T}no" >&6
46443fi
46444
46445 cppunit_version_min=1.8.0
46446
46447 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
46448echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
46449 no_cppunit=""
46450 if test "$CPPUNIT_CONFIG" = "no" ; then
46451 no_cppunit=yes
46452 else
46453 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
46454 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
46455 cppunit_version=`$CPPUNIT_CONFIG --version`
46456
46457 cppunit_major_version=`echo $cppunit_version | \
46458 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46459 cppunit_minor_version=`echo $cppunit_version | \
46460 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46461 cppunit_micro_version=`echo $cppunit_version | \
46462 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46463
46464 cppunit_major_min=`echo $cppunit_version_min | \
46465 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46466 cppunit_minor_min=`echo $cppunit_version_min | \
46467 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46468 cppunit_micro_min=`echo $cppunit_version_min | \
46469 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46470
46471 cppunit_version_proper=`expr \
46472 $cppunit_major_version \> $cppunit_major_min \| \
46473 $cppunit_major_version \= $cppunit_major_min \& \
46474 $cppunit_minor_version \> $cppunit_minor_min \| \
46475 $cppunit_major_version \= $cppunit_major_min \& \
46476 $cppunit_minor_version \= $cppunit_minor_min \& \
46477 $cppunit_micro_version \>= $cppunit_micro_min `
46478
46479 if test "$cppunit_version_proper" = "1" ; then
46480 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
46481echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
46482 else
46483 echo "$as_me:$LINENO: result: no" >&5
46484echo "${ECHO_T}no" >&6
46485 no_cppunit=yes
46486 fi
46487 fi
46488
46489 if test "x$no_cppunit" = x ; then
c2218763 46490 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
46491 else
46492 CPPUNIT_CFLAGS=""
46493 CPPUNIT_LIBS=""
c2218763 46494 :
a848cd7e
SC
46495 fi
46496
46497
46498
46499
46500
46501for subdir in `echo $SUBDIRS`; do
46502 if test -d ${srcdir}/${subdir} ; then
46503 if test "$wxUSE_GUI" = "yes"; then
46504 if test ${subdir} = "samples"; then
46505 makefiles="samples/Makefile.in $makefiles"
46506 for sample in `echo $SAMPLES_SUBDIRS`; do
46507 if test -d $srcdir/samples/$sample; then
46508 makefiles="samples/$sample/Makefile.in $makefiles"
46509 fi
46510 done
9c112555
MW
46511 else
46512 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
46513 eval "disabled=\$$disabled_var"
46514 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
46515 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
46516 fi
46517 else if test ${subdir} = "samples"; then
46518 makefiles="samples/Makefile.in samples/console/Makefile.in"
46519 elif test ${subdir} = "utils"; then
6537ccf8
VS
46520 makefiles=""
46521 for util in HelpGen tex2rtf ; do
46522 if test -d $srcdir/utils/$util ; then
46523 makefiles="utils/$util/Makefile.in \
46524 utils/$util/src/Makefile.in \
46525 $makefiles"
46526 fi
46527 done
a848cd7e
SC
46528 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
46529 fi
46530 fi
46531
46532 for mkin in $makefiles ; do
46533 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
46534 ac_config_files="$ac_config_files $mk"
46535
46536 done
46537 fi
46538done
1c14217d 46539fi
a848cd7e
SC
46540cat >confcache <<\_ACEOF
46541# This file is a shell script that caches the results of configure
46542# tests run on this system so they can be shared between configure
46543# scripts and configure runs, see configure's option --config-cache.
46544# It is not useful on other systems. If it contains results you don't
46545# want to keep, you may remove or edit it.
46546#
46547# config.status only pays attention to the cache file if you give it
46548# the --recheck option to rerun configure.
46549#
46550# `ac_cv_env_foo' variables (set or unset) will be overridden when
46551# loading this file, other *unset* `ac_cv_foo' will be assigned the
46552# following values.
46553
46554_ACEOF
46555
46556# The following way of writing the cache mishandles newlines in values,
46557# but we know of no workaround that is simple, portable, and efficient.
46558# So, don't put newlines in cache variables' values.
46559# Ultrix sh set writes to stderr and can't be redirected directly,
46560# and sets the high bit in the cache file unless we assign to the vars.
46561{
46562 (set) 2>&1 |
46563 case `(ac_space=' '; set | grep ac_space) 2>&1` in
46564 *ac_space=\ *)
46565 # `set' does not quote correctly, so add quotes (double-quote
46566 # substitution turns \\\\ into \\, and sed turns \\ into \).
46567 sed -n \
ac1cb8d3
VS
46568 "s/'/'\\\\''/g;
46569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
46570 ;;
46571 *)
46572 # `set' quotes correctly as required by POSIX, so do not add quotes.
46573 sed -n \
ac1cb8d3 46574 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
46575 ;;
46576 esac;
46577} |
46578 sed '
46579 t clear
46580 : clear
46581 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46582 t end
46583 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46584 : end' >>confcache
46585if diff $cache_file confcache >/dev/null 2>&1; then :; else
46586 if test -w $cache_file; then
46587 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46588 cat confcache >$cache_file
46589 else
46590 echo "not updating unwritable cache $cache_file"
46591 fi
46592fi
46593rm -f confcache
46594
46595test "x$prefix" = xNONE && prefix=$ac_default_prefix
46596# Let make expand exec_prefix.
46597test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46598
46599# VPATH may cause trouble with some makes, so we remove $(srcdir),
46600# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46601# trailing colons and then remove the whole line if VPATH becomes empty
46602# (actually we leave an empty line to preserve line numbers).
46603if test "x$srcdir" = x.; then
ac1cb8d3 46604 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
46605s/:*\$(srcdir):*/:/;
46606s/:*\${srcdir}:*/:/;
46607s/:*@srcdir@:*/:/;
ac1cb8d3 46608s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 46609s/:*$//;
ac1cb8d3 46610s/^[^=]*=[ ]*$//;
a848cd7e
SC
46611}'
46612fi
46613
46614DEFS=-DHAVE_CONFIG_H
46615
46616ac_libobjs=
46617ac_ltlibobjs=
46618for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46619 # 1. Remove the extension, and $U if already installed.
46620 ac_i=`echo "$ac_i" |
ac1cb8d3 46621 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
46622 # 2. Add them.
46623 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46624 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46625done
46626LIBOBJS=$ac_libobjs
46627
46628LTLIBOBJS=$ac_ltlibobjs
46629
46630
46631
46632: ${CONFIG_STATUS=./config.status}
46633ac_clean_files_save=$ac_clean_files
46634ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46635{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46636echo "$as_me: creating $CONFIG_STATUS" >&6;}
46637cat >$CONFIG_STATUS <<_ACEOF
46638#! $SHELL
46639# Generated by $as_me.
46640# Run this file to recreate the current configuration.
46641# Compiler output produced by configure, useful for debugging
46642# configure, is in config.log if it exists.
46643
46644debug=false
46645ac_cs_recheck=false
46646ac_cs_silent=false
46647SHELL=\${CONFIG_SHELL-$SHELL}
46648_ACEOF
46649
46650cat >>$CONFIG_STATUS <<\_ACEOF
46651## --------------------- ##
46652## M4sh Initialization. ##
46653## --------------------- ##
46654
46655# Be Bourne compatible
46656if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46657 emulate sh
46658 NULLCMD=:
46659 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46660 # is contrary to our usage. Disable this feature.
46661 alias -g '${1+"$@"}'='"$@"'
46662elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46663 set -o posix
46664fi
ac1cb8d3 46665DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
46666
46667# Support unset when possible.
ac1cb8d3 46668if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
46669 as_unset=unset
46670else
46671 as_unset=false
46672fi
46673
46674
46675# Work around bugs in pre-3.0 UWIN ksh.
46676$as_unset ENV MAIL MAILPATH
46677PS1='$ '
46678PS2='> '
46679PS4='+ '
46680
46681# NLS nuisances.
46682for as_var in \
46683 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46684 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46685 LC_TELEPHONE LC_TIME
46686do
ac1cb8d3 46687 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
46688 eval $as_var=C; export $as_var
46689 else
46690 $as_unset $as_var
46691 fi
46692done
46693
46694# Required to use basename.
46695if expr a : '\(a\)' >/dev/null 2>&1; then
46696 as_expr=expr
46697else
46698 as_expr=false
46699fi
46700
46701if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46702 as_basename=basename
46703else
46704 as_basename=false
46705fi
46706
46707
46708# Name of the executable.
46709as_me=`$as_basename "$0" ||
46710$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46711 X"$0" : 'X\(//\)$' \| \
46712 X"$0" : 'X\(/\)$' \| \
46713 . : '\(.\)' 2>/dev/null ||
46714echo X/"$0" |
46715 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46716 /^X\/\(\/\/\)$/{ s//\1/; q; }
46717 /^X\/\(\/\).*/{ s//\1/; q; }
46718 s/.*/./; q'`
46719
46720
46721# PATH needs CR, and LINENO needs CR and PATH.
46722# Avoid depending upon Character Ranges.
46723as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46724as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46725as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46726as_cr_digits='0123456789'
46727as_cr_alnum=$as_cr_Letters$as_cr_digits
46728
46729# The user is always right.
46730if test "${PATH_SEPARATOR+set}" != set; then
46731 echo "#! /bin/sh" >conf$$.sh
46732 echo "exit 0" >>conf$$.sh
46733 chmod +x conf$$.sh
46734 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46735 PATH_SEPARATOR=';'
46736 else
46737 PATH_SEPARATOR=:
46738 fi
46739 rm -f conf$$.sh
46740fi
46741
46742
46743 as_lineno_1=$LINENO
46744 as_lineno_2=$LINENO
46745 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46746 test "x$as_lineno_1" != "x$as_lineno_2" &&
46747 test "x$as_lineno_3" = "x$as_lineno_2" || {
46748 # Find who we are. Look in the path if we contain no path at all
46749 # relative or not.
46750 case $0 in
46751 *[\\/]* ) as_myself=$0 ;;
46752 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46753for as_dir in $PATH
46754do
46755 IFS=$as_save_IFS
46756 test -z "$as_dir" && as_dir=.
46757 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46758done
46759
46760 ;;
46761 esac
46762 # We did not find ourselves, most probably we were run as `sh COMMAND'
46763 # in which case we are not to be found in the path.
46764 if test "x$as_myself" = x; then
46765 as_myself=$0
46766 fi
46767 if test ! -f "$as_myself"; then
46768 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46769echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46770 { (exit 1); exit 1; }; }
46771 fi
46772 case $CONFIG_SHELL in
46773 '')
46774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46775for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46776do
46777 IFS=$as_save_IFS
46778 test -z "$as_dir" && as_dir=.
46779 for as_base in sh bash ksh sh5; do
46780 case $as_dir in
46781 /*)
46782 if ("$as_dir/$as_base" -c '
46783 as_lineno_1=$LINENO
46784 as_lineno_2=$LINENO
46785 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46786 test "x$as_lineno_1" != "x$as_lineno_2" &&
46787 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46788 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46789 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46790 CONFIG_SHELL=$as_dir/$as_base
46791 export CONFIG_SHELL
46792 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46793 fi;;
46794 esac
46795 done
46796done
46797;;
46798 esac
46799
46800 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46801 # uniformly replaced by the line number. The first 'sed' inserts a
46802 # line-number line before each line; the second 'sed' does the real
46803 # work. The second script uses 'N' to pair each line-number line
46804 # with the numbered line, and appends trailing '-' during
46805 # substitution so that $LINENO is not a special case at line end.
46806 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46807 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46808 sed '=' <$as_myself |
46809 sed '
46810 N
46811 s,$,-,
46812 : loop
46813 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46814 t loop
46815 s,-$,,
46816 s,^['$as_cr_digits']*\n,,
46817 ' >$as_me.lineno &&
46818 chmod +x $as_me.lineno ||
46819 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46820echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46821 { (exit 1); exit 1; }; }
46822
46823 # Don't try to exec as it changes $[0], causing all sort of problems
46824 # (the dirname of $[0] is not the place where we might find the
46825 # original and so on. Autoconf is especially sensible to this).
46826 . ./$as_me.lineno
46827 # Exit status is that of the last command.
46828 exit
46829}
46830
46831
46832case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46833 *c*,-n*) ECHO_N= ECHO_C='
46834' ECHO_T=' ' ;;
46835 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46836 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46837esac
46838
46839if expr a : '\(a\)' >/dev/null 2>&1; then
46840 as_expr=expr
46841else
46842 as_expr=false
46843fi
46844
46845rm -f conf$$ conf$$.exe conf$$.file
46846echo >conf$$.file
46847if ln -s conf$$.file conf$$ 2>/dev/null; then
46848 # We could just check for DJGPP; but this test a) works b) is more generic
46849 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46850 if test -f conf$$.exe; then
46851 # Don't use ln at all; we don't have any links
46852 as_ln_s='cp -p'
46853 else
46854 as_ln_s='ln -s'
46855 fi
46856elif ln conf$$.file conf$$ 2>/dev/null; then
46857 as_ln_s=ln
46858else
46859 as_ln_s='cp -p'
46860fi
46861rm -f conf$$ conf$$.exe conf$$.file
46862
46863if mkdir -p . 2>/dev/null; then
46864 as_mkdir_p=:
46865else
ac1cb8d3 46866 test -d ./-p && rmdir ./-p
a848cd7e
SC
46867 as_mkdir_p=false
46868fi
46869
46870as_executable_p="test -f"
46871
46872# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 46873as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46874
46875# Sed expression to map a string onto a valid variable name.
ac1cb8d3 46876as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46877
46878
46879# IFS
46880# We need space, tab and new line, in precisely that order.
46881as_nl='
46882'
46883IFS=" $as_nl"
46884
46885# CDPATH.
46886$as_unset CDPATH
46887
46888exec 6>&1
46889
46890# Open the log real soon, to keep \$[0] and so on meaningful, and to
46891# report actual input values of CONFIG_FILES etc. instead of their
46892# values after options handling. Logging --version etc. is OK.
46893exec 5>>config.log
46894{
46895 echo
46896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46897## Running $as_me. ##
46898_ASBOX
46899} >&5
46900cat >&5 <<_CSEOF
46901
dd8df4fc 46902This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 46903generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
46904
46905 CONFIG_FILES = $CONFIG_FILES
46906 CONFIG_HEADERS = $CONFIG_HEADERS
46907 CONFIG_LINKS = $CONFIG_LINKS
46908 CONFIG_COMMANDS = $CONFIG_COMMANDS
46909 $ $0 $@
46910
46911_CSEOF
46912echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
46913echo >&5
46914_ACEOF
46915
46916# Files that config.status was made for.
46917if test -n "$ac_config_files"; then
46918 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
46919fi
46920
46921if test -n "$ac_config_headers"; then
46922 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
46923fi
46924
46925if test -n "$ac_config_links"; then
46926 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
46927fi
46928
46929if test -n "$ac_config_commands"; then
46930 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
46931fi
46932
46933cat >>$CONFIG_STATUS <<\_ACEOF
46934
46935ac_cs_usage="\
46936\`$as_me' instantiates files from templates according to the
46937current configuration.
46938
46939Usage: $0 [OPTIONS] [FILE]...
46940
46941 -h, --help print this help, then exit
46942 -V, --version print version number, then exit
46943 -q, --quiet do not print progress messages
46944 -d, --debug don't remove temporary files
46945 --recheck update $as_me by reconfiguring in the same conditions
46946 --file=FILE[:TEMPLATE]
ac1cb8d3 46947 instantiate the configuration file FILE
a848cd7e 46948 --header=FILE[:TEMPLATE]
ac1cb8d3 46949 instantiate the configuration header FILE
a848cd7e
SC
46950
46951Configuration files:
46952$config_files
46953
46954Configuration headers:
46955$config_headers
46956
46957Configuration commands:
46958$config_commands
46959
46960Report bugs to <bug-autoconf@gnu.org>."
46961_ACEOF
46962
46963cat >>$CONFIG_STATUS <<_ACEOF
46964ac_cs_version="\\
dd8df4fc 46965wxWidgets config.status 2.7.0
ac1cb8d3 46966configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
46967 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
46968
ac1cb8d3 46969Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
46970This config.status script is free software; the Free Software Foundation
46971gives unlimited permission to copy, distribute and modify it."
46972srcdir=$srcdir
46973INSTALL="$INSTALL"
46974_ACEOF
46975
46976cat >>$CONFIG_STATUS <<\_ACEOF
46977# If no file are specified by the user, then we need to provide default
46978# value. By we need to know if files were specified by the user.
46979ac_need_defaults=:
46980while test $# != 0
46981do
46982 case $1 in
46983 --*=*)
46984 ac_option=`expr "x$1" : 'x\([^=]*\)='`
46985 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
46986 ac_shift=:
46987 ;;
46988 -*)
46989 ac_option=$1
46990 ac_optarg=$2
46991 ac_shift=shift
46992 ;;
46993 *) # This is not an option, so the user has probably given explicit
46994 # arguments.
46995 ac_option=$1
46996 ac_need_defaults=false;;
46997 esac
46998
46999 case $ac_option in
47000 # Handling of the options.
47001_ACEOF
47002cat >>$CONFIG_STATUS <<\_ACEOF
47003 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47004 ac_cs_recheck=: ;;
47005 --version | --vers* | -V )
47006 echo "$ac_cs_version"; exit 0 ;;
47007 --he | --h)
47008 # Conflict between --help and --header
47009 { { echo "$as_me:$LINENO: error: ambiguous option: $1
47010Try \`$0 --help' for more information." >&5
47011echo "$as_me: error: ambiguous option: $1
47012Try \`$0 --help' for more information." >&2;}
47013 { (exit 1); exit 1; }; };;
47014 --help | --hel | -h )
47015 echo "$ac_cs_usage"; exit 0 ;;
47016 --debug | --d* | -d )
47017 debug=: ;;
47018 --file | --fil | --fi | --f )
47019 $ac_shift
47020 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
47021 ac_need_defaults=false;;
47022 --header | --heade | --head | --hea )
47023 $ac_shift
47024 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
47025 ac_need_defaults=false;;
47026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47027 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47028 ac_cs_silent=: ;;
47029
47030 # This is an error.
47031 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
47032Try \`$0 --help' for more information." >&5
47033echo "$as_me: error: unrecognized option: $1
47034Try \`$0 --help' for more information." >&2;}
47035 { (exit 1); exit 1; }; } ;;
47036
47037 *) ac_config_targets="$ac_config_targets $1" ;;
47038
47039 esac
47040 shift
47041done
47042
47043ac_configure_extra_args=
47044
47045if $ac_cs_silent; then
47046 exec 6>/dev/null
47047 ac_configure_extra_args="$ac_configure_extra_args --silent"
47048fi
47049
47050_ACEOF
47051cat >>$CONFIG_STATUS <<_ACEOF
47052if \$ac_cs_recheck; then
47053 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
47054 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47055fi
47056
47057_ACEOF
47058
47059cat >>$CONFIG_STATUS <<_ACEOF
47060#
47061# INIT-COMMANDS section.
47062#
47063
ceec2216
RL
47064 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47065 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47066 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47067 LN_S="${LN_S}"
a848cd7e
SC
47068
47069
47070_ACEOF
47071
47072
47073
47074cat >>$CONFIG_STATUS <<\_ACEOF
47075for ac_config_target in $ac_config_targets
47076do
47077 case "$ac_config_target" in
47078 # Handling of arguments.
ceec2216
RL
47079 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
47080 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
47081 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
47082 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47083 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
47084 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
47085 "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
47086 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47087echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47088 { (exit 1); exit 1; }; };;
47089 esac
47090done
47091
47092# If the user did not use the arguments to specify the items to instantiate,
47093# then the envvar interface is used. Set only those that are not.
47094# We use the long form for the default assignment because of an extremely
47095# bizarre bug on SunOS 4.1.3.
47096if $ac_need_defaults; then
47097 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47098 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47099 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47100fi
47101
47102# Have a temporary directory for convenience. Make it in the build tree
47103# simply because there is no reason to put it here, and in addition,
47104# creating and moving files from /tmp can sometimes cause problems.
47105# Create a temporary directory, and hook for its removal unless debugging.
47106$debug ||
47107{
47108 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
47109 trap '{ (exit 1); exit 1; }' 1 2 13 15
47110}
47111
47112# Create a (secure) tmp directory for tmp files.
47113
47114{
47115 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
47116 test -n "$tmp" && test -d "$tmp"
47117} ||
47118{
47119 tmp=./confstat$$-$RANDOM
47120 (umask 077 && mkdir $tmp)
47121} ||
47122{
47123 echo "$me: cannot create a temporary directory in ." >&2
47124 { (exit 1); exit 1; }
47125}
47126
47127_ACEOF
47128
47129cat >>$CONFIG_STATUS <<_ACEOF
47130
47131#
47132# CONFIG_FILES section.
47133#
47134
47135# No need to generate the scripts if there are no CONFIG_FILES.
47136# This happens for instance when ./config.status config.h
47137if test -n "\$CONFIG_FILES"; then
47138 # Protect against being on the right side of a sed subst in config.status.
47139 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
47140 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
47141s,@SHELL@,$SHELL,;t t
47142s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
47143s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
47144s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
47145s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
47146s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
47147s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
47148s,@exec_prefix@,$exec_prefix,;t t
47149s,@prefix@,$prefix,;t t
47150s,@program_transform_name@,$program_transform_name,;t t
47151s,@bindir@,$bindir,;t t
47152s,@sbindir@,$sbindir,;t t
47153s,@libexecdir@,$libexecdir,;t t
47154s,@datadir@,$datadir,;t t
47155s,@sysconfdir@,$sysconfdir,;t t
47156s,@sharedstatedir@,$sharedstatedir,;t t
47157s,@localstatedir@,$localstatedir,;t t
47158s,@libdir@,$libdir,;t t
47159s,@includedir@,$includedir,;t t
47160s,@oldincludedir@,$oldincludedir,;t t
47161s,@infodir@,$infodir,;t t
47162s,@mandir@,$mandir,;t t
47163s,@build_alias@,$build_alias,;t t
47164s,@host_alias@,$host_alias,;t t
47165s,@target_alias@,$target_alias,;t t
47166s,@DEFS@,$DEFS,;t t
47167s,@ECHO_C@,$ECHO_C,;t t
47168s,@ECHO_N@,$ECHO_N,;t t
47169s,@ECHO_T@,$ECHO_T,;t t
47170s,@LIBS@,$LIBS,;t t
47171s,@build@,$build,;t t
47172s,@build_cpu@,$build_cpu,;t t
47173s,@build_vendor@,$build_vendor,;t t
47174s,@build_os@,$build_os,;t t
47175s,@host@,$host,;t t
47176s,@host_cpu@,$host_cpu,;t t
47177s,@host_vendor@,$host_vendor,;t t
47178s,@host_os@,$host_os,;t t
47179s,@target@,$target,;t t
47180s,@target_cpu@,$target_cpu,;t t
47181s,@target_vendor@,$target_vendor,;t t
47182s,@target_os@,$target_os,;t t
47183s,@CC@,$CC,;t t
47184s,@CFLAGS@,$CFLAGS,;t t
47185s,@LDFLAGS@,$LDFLAGS,;t t
47186s,@CPPFLAGS@,$CPPFLAGS,;t t
47187s,@ac_ct_CC@,$ac_ct_CC,;t t
47188s,@EXEEXT@,$EXEEXT,;t t
47189s,@OBJEXT@,$OBJEXT,;t t
47190s,@CPP@,$CPP,;t t
47191s,@EGREP@,$EGREP,;t t
47192s,@CXX@,$CXX,;t t
47193s,@CXXFLAGS@,$CXXFLAGS,;t t
47194s,@ac_ct_CXX@,$ac_ct_CXX,;t t
47195s,@RANLIB@,$RANLIB,;t t
47196s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
47197s,@AR@,$AR,;t t
8c80d384 47198s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
47199s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
47200s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
47201s,@INSTALL_DATA@,$INSTALL_DATA,;t t
47202s,@STRIP@,$STRIP,;t t
8c80d384
DE
47203s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
47204s,@RESCOMP@,$RESCOMP,;t t
47205s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
47206s,@DLLTOOL@,$DLLTOOL,;t t
47207s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
47208s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
47209s,@LN_S@,$LN_S,;t t
47210s,@CXXCPP@,$CXXCPP,;t t
47211s,@subdirs@,$subdirs,;t t
47212s,@PKG_CONFIG@,$PKG_CONFIG,;t t
47213s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
47214s,@GTK_LIBS@,$GTK_LIBS,;t t
47215s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
47216s,@X_CFLAGS@,$X_CFLAGS,;t t
47217s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
47218s,@X_LIBS@,$X_LIBS,;t t
47219s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
47220s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
47221s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
47222s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
47223s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
47224s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
47225s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
47226s,@DEREZ@,$DEREZ,;t t
47227s,@SETFILE@,$SETFILE,;t t
47228s,@LIBICONV@,$LIBICONV,;t t
47229s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
47230s,@SDL_CONFIG@,$SDL_CONFIG,;t t
47231s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
47232s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
47233s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
47234s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
47235s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
47236s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
47237s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
47238s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
47239s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
47240s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
47241s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
47242s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
47243s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
47244s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
47245s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
47246s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
47247s,@VENDOR@,$VENDOR,;t t
47248s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
47249s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
47250s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
47251s,@WXUNIV@,$WXUNIV,;t t
47252s,@MONOLITHIC@,$MONOLITHIC,;t t
47253s,@USE_PLUGINS@,$USE_PLUGINS,;t t
47254s,@EXTRALIBS@,$EXTRALIBS,;t t
47255s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
47256s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
47257s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
47258s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
47259s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
47260s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
47261s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 47262s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
47263s,@UNICODE@,$UNICODE,;t t
47264s,@BUILD@,$BUILD,;t t
47265s,@DEBUG_INFO@,$DEBUG_INFO,;t t
47266s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
47267s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
47268s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
47269s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
47270s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
47271s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
47272s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
47273s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
47274s,@SET_MAKE@,$SET_MAKE,;t t
47275s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
47276s,@NM@,$NM,;t t
47277s,@ac_ct_NM@,$ac_ct_NM,;t t
47278s,@INSTALL_DIR@,$INSTALL_DIR,;t t
47279s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
47280s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
47281s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
47282s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
47283s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 47284s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
47285s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
47286s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 47287s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
47288s,@SO_SUFFIX@,$SO_SUFFIX,;t t
47289s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
47290s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
47291s,@LIBPREFIX@,$LIBPREFIX,;t t
47292s,@LIBEXT@,$LIBEXT,;t t
47293s,@DLLPREFIX@,$DLLPREFIX,;t t
47294s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 47295s,@dlldir@,$dlldir,;t t
a848cd7e
SC
47296s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
47297s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
47298s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
47299s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
47300s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
47301s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 47302s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
47303s,@USE_SOVERSION@,$USE_SOVERSION,;t t
47304s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
47305s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 47306s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
47307s,@USE_MACVERSION@,$USE_MACVERSION,;t t
47308s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
47309s,@SONAME_FLAG@,$SONAME_FLAG,;t t
47310s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
47311s,@GCC_PCH@,$GCC_PCH,;t t
47312s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
47313s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
47314s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
47315s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
47316s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
47317s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
47318s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
47319s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
47320s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
47321s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
47322s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
47323s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
47324s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
47325s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
47326s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
47327s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
47328s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
47329s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 47330s,@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 47331s,@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 47332s,@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 47333s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 47334s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47335s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
47336s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 47337s,@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 47338s,@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 47339s,@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 47340s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 47341s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
47342s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
47343s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
47344s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
47345s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
47346s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
47347s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 47348s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
47349s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
47350s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 47351s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
47352s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
47353s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
47354s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 47355s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 47356s,@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
47357s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
47358s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
47359s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
47360s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 47361s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 47362s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 47363s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
47364s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
47365s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
47366s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
47367s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
47368s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
47369s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
47370s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
47371s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
47372s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
47373s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
47374s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
47375s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
47376s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47377s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47378s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 47379s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47380s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
47381s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
47382s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
47383s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
47384s,@COND_SHARED_1@,$COND_SHARED_1,;t t
47385s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 47386s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 47387s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 47388s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 47389s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
47390s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
47391s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
47392s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
47393s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
47394s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
47395s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
47396s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
47397s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
47398s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
47399s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
47400s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
47401s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
47402s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
47403s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
47404s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47405s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
47406s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
47407s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
47408s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
47409s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
47410s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
47411s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47412s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
47413s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
47414s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
47415s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
47416s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
47417s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
47418s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
47419s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
47420s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
47421s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
47422s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47423s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47424s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
47425s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
47426s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 47427s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
47428s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
47429s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 47430s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 47431s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
47432s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
47433s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
47434s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
47435s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
47436s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 47437s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 47438s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 47439s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 47440s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
47441s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
47442s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
47443s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
47444s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
47445s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
47446s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
47447s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
47448s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 47449s,@SHARED@,$SHARED,;t t
a848cd7e
SC
47450s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
47451s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
47452s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
47453s,@USE_GUI@,$USE_GUI,;t t
47454s,@AFMINSTALL@,$AFMINSTALL,;t t
47455s,@WIN32INSTALL@,$WIN32INSTALL,;t t
47456s,@TOOLKIT@,$TOOLKIT,;t t
47457s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 47458s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 47459s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
47460s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
47461s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 47462s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
47463s,@WIDGET_SET@,$WIDGET_SET,;t t
47464s,@WX_RELEASE@,$WX_RELEASE,;t t
47465s,@WX_VERSION@,$WX_VERSION,;t t
47466s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
47467s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
47468s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 47469s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
47470s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
47471s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
47472s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
47473s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 47474s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
47475s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
47476s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 47477s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 47478s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
47479s,@DISTDIR@,$DISTDIR,;t t
47480s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
47481s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
47482s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
47483s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
47484s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
47485s,@RESFLAGS@,$RESFLAGS,;t t
47486s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
47487s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
47488s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
47489s,@LIBWXMACRES@,$LIBWXMACRES,;t t
47490s,@MACRESCOMP@,$MACRESCOMP,;t t
47491s,@MACSETFILE@,$MACSETFILE,;t t
47492s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
47493s,@GCC@,$GCC,;t t
a848cd7e
SC
47494s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
47495s,@LIBOBJS@,$LIBOBJS,;t t
47496s,@LTLIBOBJS@,$LTLIBOBJS,;t t
47497CEOF
47498
47499_ACEOF
47500
47501 cat >>$CONFIG_STATUS <<\_ACEOF
47502 # Split the substitutions into bite-sized pieces for seds with
47503 # small command number limits, like on Digital OSF/1 and HP-UX.
47504 ac_max_sed_lines=48
47505 ac_sed_frag=1 # Number of current file.
47506 ac_beg=1 # First line for current file.
47507 ac_end=$ac_max_sed_lines # Line after last line for current file.
47508 ac_more_lines=:
47509 ac_sed_cmds=
47510 while $ac_more_lines; do
47511 if test $ac_beg -gt 1; then
47512 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47513 else
47514 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47515 fi
47516 if test ! -s $tmp/subs.frag; then
47517 ac_more_lines=false
47518 else
47519 # The purpose of the label and of the branching condition is to
47520 # speed up the sed processing (if there are no `@' at all, there
47521 # is no need to browse any of the substitutions).
47522 # These are the two extra sed commands mentioned above.
47523 (echo ':t
47524 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
47525 if test -z "$ac_sed_cmds"; then
ac1cb8d3 47526 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 47527 else
ac1cb8d3 47528 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
47529 fi
47530 ac_sed_frag=`expr $ac_sed_frag + 1`
47531 ac_beg=$ac_end
47532 ac_end=`expr $ac_end + $ac_max_sed_lines`
47533 fi
47534 done
47535 if test -z "$ac_sed_cmds"; then
47536 ac_sed_cmds=cat
47537 fi
47538fi # test -n "$CONFIG_FILES"
47539
47540_ACEOF
47541cat >>$CONFIG_STATUS <<\_ACEOF
47542for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
47543 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47544 case $ac_file in
47545 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47546 cat >$tmp/stdin
47547 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47548 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47549 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47551 * ) ac_file_in=$ac_file.in ;;
47552 esac
47553
47554 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
47555 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47556$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47557 X"$ac_file" : 'X\(//\)[^/]' \| \
47558 X"$ac_file" : 'X\(//\)$' \| \
47559 X"$ac_file" : 'X\(/\)' \| \
47560 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47561echo X"$ac_file" |
47562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47564 /^X\(\/\/\)$/{ s//\1/; q; }
47565 /^X\(\/\).*/{ s//\1/; q; }
47566 s/.*/./; q'`
47567 { if $as_mkdir_p; then
47568 mkdir -p "$ac_dir"
47569 else
47570 as_dir="$ac_dir"
47571 as_dirs=
47572 while test ! -d "$as_dir"; do
47573 as_dirs="$as_dir $as_dirs"
47574 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47576 X"$as_dir" : 'X\(//\)[^/]' \| \
47577 X"$as_dir" : 'X\(//\)$' \| \
47578 X"$as_dir" : 'X\(/\)' \| \
47579 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47580echo X"$as_dir" |
47581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47582 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47583 /^X\(\/\/\)$/{ s//\1/; q; }
47584 /^X\(\/\).*/{ s//\1/; q; }
47585 s/.*/./; q'`
47586 done
47587 test ! -n "$as_dirs" || mkdir $as_dirs
47588 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47589echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47590 { (exit 1); exit 1; }; }; }
47591
47592 ac_builddir=.
47593
47594if test "$ac_dir" != .; then
47595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47596 # A "../" for each directory in $ac_dir_suffix.
47597 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47598else
47599 ac_dir_suffix= ac_top_builddir=
47600fi
47601
47602case $srcdir in
47603 .) # No --srcdir option. We are building in place.
47604 ac_srcdir=.
47605 if test -z "$ac_top_builddir"; then
47606 ac_top_srcdir=.
47607 else
47608 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47609 fi ;;
47610 [\\/]* | ?:[\\/]* ) # Absolute path.
47611 ac_srcdir=$srcdir$ac_dir_suffix;
47612 ac_top_srcdir=$srcdir ;;
47613 *) # Relative path.
47614 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47615 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47616esac
ac1cb8d3
VS
47617
47618# Do not use `cd foo && pwd` to compute absolute paths, because
47619# the directories may not exist.
47620case `pwd` in
47621.) ac_abs_builddir="$ac_dir";;
47622*)
47623 case "$ac_dir" in
47624 .) ac_abs_builddir=`pwd`;;
47625 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47626 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47627 esac;;
47628esac
47629case $ac_abs_builddir in
47630.) ac_abs_top_builddir=${ac_top_builddir}.;;
47631*)
47632 case ${ac_top_builddir}. in
47633 .) ac_abs_top_builddir=$ac_abs_builddir;;
47634 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47635 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47636 esac;;
47637esac
47638case $ac_abs_builddir in
47639.) ac_abs_srcdir=$ac_srcdir;;
47640*)
47641 case $ac_srcdir in
47642 .) ac_abs_srcdir=$ac_abs_builddir;;
47643 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47644 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47645 esac;;
47646esac
47647case $ac_abs_builddir in
47648.) ac_abs_top_srcdir=$ac_top_srcdir;;
47649*)
47650 case $ac_top_srcdir in
47651 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47652 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47653 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47654 esac;;
47655esac
a848cd7e
SC
47656
47657
47658 case $INSTALL in
47659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47660 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47661 esac
47662
a848cd7e
SC
47663 # Let's still pretend it is `configure' which instantiates (i.e., don't
47664 # use $as_me), people would be surprised to read:
47665 # /* config.h. Generated by config.status. */
47666 if test x"$ac_file" = x-; then
47667 configure_input=
47668 else
47669 configure_input="$ac_file. "
47670 fi
47671 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 47672 sed 's,.*/,,'` by configure."
a848cd7e
SC
47673
47674 # First look for the input files in the build tree, otherwise in the
47675 # src tree.
47676 ac_file_inputs=`IFS=:
47677 for f in $ac_file_in; do
47678 case $f in
47679 -) echo $tmp/stdin ;;
47680 [\\/$]*)
ac1cb8d3
VS
47681 # Absolute (can't be DOS-style, as IFS=:)
47682 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47683echo "$as_me: error: cannot find input file: $f" >&2;}
47684 { (exit 1); exit 1; }; }
ac1cb8d3 47685 echo "$f";;
a848cd7e 47686 *) # Relative
ac1cb8d3
VS
47687 if test -f "$f"; then
47688 # Build tree
47689 echo "$f"
47690 elif test -f "$srcdir/$f"; then
47691 # Source tree
47692 echo "$srcdir/$f"
47693 else
47694 # /dev/null tree
47695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47696echo "$as_me: error: cannot find input file: $f" >&2;}
47697 { (exit 1); exit 1; }; }
ac1cb8d3 47698 fi;;
a848cd7e
SC
47699 esac
47700 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
47701
47702 if test x"$ac_file" != x-; then
47703 { echo "$as_me:$LINENO: creating $ac_file" >&5
47704echo "$as_me: creating $ac_file" >&6;}
47705 rm -f "$ac_file"
47706 fi
a848cd7e
SC
47707_ACEOF
47708cat >>$CONFIG_STATUS <<_ACEOF
47709 sed "$ac_vpsub
47710$extrasub
47711_ACEOF
47712cat >>$CONFIG_STATUS <<\_ACEOF
47713:t
47714/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47715s,@configure_input@,$configure_input,;t t
47716s,@srcdir@,$ac_srcdir,;t t
47717s,@abs_srcdir@,$ac_abs_srcdir,;t t
47718s,@top_srcdir@,$ac_top_srcdir,;t t
47719s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47720s,@builddir@,$ac_builddir,;t t
47721s,@abs_builddir@,$ac_abs_builddir,;t t
47722s,@top_builddir@,$ac_top_builddir,;t t
47723s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47724s,@INSTALL@,$ac_INSTALL,;t t
47725" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47726 rm -f $tmp/stdin
47727 if test x"$ac_file" != x-; then
47728 mv $tmp/out $ac_file
47729 else
47730 cat $tmp/out
47731 rm -f $tmp/out
47732 fi
47733
ceec2216
RL
47734 # Run the commands associated with the file.
47735 case $ac_file in
47736 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
47737 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
47738 esac
a848cd7e
SC
47739done
47740_ACEOF
47741cat >>$CONFIG_STATUS <<\_ACEOF
47742
47743#
47744# CONFIG_HEADER section.
47745#
47746
47747# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47748# NAME is the cpp macro being defined and VALUE is the value it is being given.
47749#
47750# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
47751ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47752ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
47753ac_dC=' '
47754ac_dD=',;t'
47755# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 47756ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
47757ac_uB='$,\1#\2define\3'
47758ac_uC=' '
47759ac_uD=',;t'
47760
47761for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47762 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47763 case $ac_file in
47764 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47765 cat >$tmp/stdin
47766 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47767 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47768 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47769 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47770 * ) ac_file_in=$ac_file.in ;;
47771 esac
47772
47773 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47774echo "$as_me: creating $ac_file" >&6;}
47775
47776 # First look for the input files in the build tree, otherwise in the
47777 # src tree.
47778 ac_file_inputs=`IFS=:
47779 for f in $ac_file_in; do
47780 case $f in
47781 -) echo $tmp/stdin ;;
47782 [\\/$]*)
ac1cb8d3
VS
47783 # Absolute (can't be DOS-style, as IFS=:)
47784 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47785echo "$as_me: error: cannot find input file: $f" >&2;}
47786 { (exit 1); exit 1; }; }
ac1cb8d3
VS
47787 # Do quote $f, to prevent DOS paths from being IFS'd.
47788 echo "$f";;
a848cd7e 47789 *) # Relative
ac1cb8d3
VS
47790 if test -f "$f"; then
47791 # Build tree
47792 echo "$f"
47793 elif test -f "$srcdir/$f"; then
47794 # Source tree
47795 echo "$srcdir/$f"
47796 else
47797 # /dev/null tree
47798 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47799echo "$as_me: error: cannot find input file: $f" >&2;}
47800 { (exit 1); exit 1; }; }
ac1cb8d3 47801 fi;;
a848cd7e
SC
47802 esac
47803 done` || { (exit 1); exit 1; }
47804 # Remove the trailing spaces.
ac1cb8d3 47805 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
47806
47807_ACEOF
47808
47809# Transform confdefs.h into two sed scripts, `conftest.defines' and
47810# `conftest.undefs', that substitutes the proper values into
47811# config.h.in to produce config.h. The first handles `#define'
47812# templates, and the second `#undef' templates.
47813# And first: Protect against being on the right side of a sed subst in
47814# config.status. Protect against being in an unquoted here document
47815# in config.status.
47816rm -f conftest.defines conftest.undefs
47817# Using a here document instead of a string reduces the quoting nightmare.
47818# Putting comments in sed scripts is not portable.
47819#
47820# `end' is used to avoid that the second main sed command (meant for
47821# 0-ary CPP macros) applies to n-ary macro definitions.
47822# See the Autoconf documentation for `clear'.
47823cat >confdef2sed.sed <<\_ACEOF
47824s/[\\&,]/\\&/g
47825s,[\\$`],\\&,g
47826t clear
47827: clear
ac1cb8d3 47828s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 47829t end
ac1cb8d3 47830s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
47831: end
47832_ACEOF
47833# If some macros were called several times there might be several times
47834# the same #defines, which is useless. Nevertheless, we may not want to
47835# sort them, since we want the *last* AC-DEFINE to be honored.
47836uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47837sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47838rm -f confdef2sed.sed
47839
47840# This sed command replaces #undef with comments. This is necessary, for
47841# example, in the case of _POSIX_SOURCE, which is predefined and required
47842# on some systems where configure will not decide to define it.
47843cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 47844s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
47845_ACEOF
47846
47847# Break up conftest.defines because some shells have a limit on the size
47848# of here documents, and old seds have small limits too (100 cmds).
47849echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 47850echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
47851echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47852echo ' :' >>$CONFIG_STATUS
47853rm -f conftest.tail
47854while grep . conftest.defines >/dev/null
47855do
47856 # Write a limited-size here document to $tmp/defines.sed.
47857 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47858 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 47859 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
47860 # Work around the forget-to-reset-the-flag bug.
47861 echo 't clr' >>$CONFIG_STATUS
47862 echo ': clr' >>$CONFIG_STATUS
47863 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47864 echo 'CEOF
47865 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47866 rm -f $tmp/in
47867 mv $tmp/out $tmp/in
47868' >>$CONFIG_STATUS
47869 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47870 rm -f conftest.defines
47871 mv conftest.tail conftest.defines
47872done
47873rm -f conftest.defines
47874echo ' fi # grep' >>$CONFIG_STATUS
47875echo >>$CONFIG_STATUS
47876
47877# Break up conftest.undefs because some shells have a limit on the size
47878# of here documents, and old seds have small limits too (100 cmds).
47879echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47880rm -f conftest.tail
47881while grep . conftest.undefs >/dev/null
47882do
47883 # Write a limited-size here document to $tmp/undefs.sed.
47884 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47885 # Speed up: don't consider the non `#undef'
ac1cb8d3 47886 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
47887 # Work around the forget-to-reset-the-flag bug.
47888 echo 't clr' >>$CONFIG_STATUS
47889 echo ': clr' >>$CONFIG_STATUS
47890 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47891 echo 'CEOF
47892 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47893 rm -f $tmp/in
47894 mv $tmp/out $tmp/in
47895' >>$CONFIG_STATUS
47896 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47897 rm -f conftest.undefs
47898 mv conftest.tail conftest.undefs
47899done
47900rm -f conftest.undefs
47901
47902cat >>$CONFIG_STATUS <<\_ACEOF
47903 # Let's still pretend it is `configure' which instantiates (i.e., don't
47904 # use $as_me), people would be surprised to read:
47905 # /* config.h. Generated by config.status. */
47906 if test x"$ac_file" = x-; then
47907 echo "/* Generated by configure. */" >$tmp/config.h
47908 else
47909 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
47910 fi
47911 cat $tmp/in >>$tmp/config.h
47912 rm -f $tmp/in
47913 if test x"$ac_file" != x-; then
47914 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47915 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47916echo "$as_me: $ac_file is unchanged" >&6;}
47917 else
47918 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47919$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47920 X"$ac_file" : 'X\(//\)[^/]' \| \
47921 X"$ac_file" : 'X\(//\)$' \| \
47922 X"$ac_file" : 'X\(/\)' \| \
47923 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47924echo X"$ac_file" |
47925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47927 /^X\(\/\/\)$/{ s//\1/; q; }
47928 /^X\(\/\).*/{ s//\1/; q; }
47929 s/.*/./; q'`
47930 { if $as_mkdir_p; then
47931 mkdir -p "$ac_dir"
47932 else
47933 as_dir="$ac_dir"
47934 as_dirs=
47935 while test ! -d "$as_dir"; do
47936 as_dirs="$as_dir $as_dirs"
47937 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47938$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47939 X"$as_dir" : 'X\(//\)[^/]' \| \
47940 X"$as_dir" : 'X\(//\)$' \| \
47941 X"$as_dir" : 'X\(/\)' \| \
47942 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47943echo X"$as_dir" |
47944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47946 /^X\(\/\/\)$/{ s//\1/; q; }
47947 /^X\(\/\).*/{ s//\1/; q; }
47948 s/.*/./; q'`
47949 done
47950 test ! -n "$as_dirs" || mkdir $as_dirs
47951 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47952echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47953 { (exit 1); exit 1; }; }; }
47954
47955 rm -f $ac_file
47956 mv $tmp/config.h $ac_file
47957 fi
47958 else
47959 cat $tmp/config.h
47960 rm -f $tmp/config.h
47961 fi
47962done
47963_ACEOF
47964cat >>$CONFIG_STATUS <<\_ACEOF
47965
47966#
47967# CONFIG_COMMANDS section.
47968#
47969for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
47970 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
47971 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
47972 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
47973$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47974 X"$ac_dest" : 'X\(//\)[^/]' \| \
47975 X"$ac_dest" : 'X\(//\)$' \| \
47976 X"$ac_dest" : 'X\(/\)' \| \
47977 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47978echo X"$ac_dest" |
47979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47981 /^X\(\/\/\)$/{ s//\1/; q; }
47982 /^X\(\/\).*/{ s//\1/; q; }
47983 s/.*/./; q'`
ac1cb8d3
VS
47984 { if $as_mkdir_p; then
47985 mkdir -p "$ac_dir"
47986 else
47987 as_dir="$ac_dir"
47988 as_dirs=
47989 while test ! -d "$as_dir"; do
47990 as_dirs="$as_dir $as_dirs"
47991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47992$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47993 X"$as_dir" : 'X\(//\)[^/]' \| \
47994 X"$as_dir" : 'X\(//\)$' \| \
47995 X"$as_dir" : 'X\(/\)' \| \
47996 . : '\(.\)' 2>/dev/null ||
47997echo X"$as_dir" |
47998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48000 /^X\(\/\/\)$/{ s//\1/; q; }
48001 /^X\(\/\).*/{ s//\1/; q; }
48002 s/.*/./; q'`
48003 done
48004 test ! -n "$as_dirs" || mkdir $as_dirs
48005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48006echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48007 { (exit 1); exit 1; }; }; }
48008
a848cd7e
SC
48009 ac_builddir=.
48010
48011if test "$ac_dir" != .; then
48012 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48013 # A "../" for each directory in $ac_dir_suffix.
48014 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48015else
48016 ac_dir_suffix= ac_top_builddir=
48017fi
48018
48019case $srcdir in
48020 .) # No --srcdir option. We are building in place.
48021 ac_srcdir=.
48022 if test -z "$ac_top_builddir"; then
48023 ac_top_srcdir=.
48024 else
48025 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48026 fi ;;
48027 [\\/]* | ?:[\\/]* ) # Absolute path.
48028 ac_srcdir=$srcdir$ac_dir_suffix;
48029 ac_top_srcdir=$srcdir ;;
48030 *) # Relative path.
48031 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48032 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48033esac
ac1cb8d3
VS
48034
48035# Do not use `cd foo && pwd` to compute absolute paths, because
48036# the directories may not exist.
48037case `pwd` in
48038.) ac_abs_builddir="$ac_dir";;
48039*)
48040 case "$ac_dir" in
48041 .) ac_abs_builddir=`pwd`;;
48042 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48043 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48044 esac;;
48045esac
48046case $ac_abs_builddir in
48047.) ac_abs_top_builddir=${ac_top_builddir}.;;
48048*)
48049 case ${ac_top_builddir}. in
48050 .) ac_abs_top_builddir=$ac_abs_builddir;;
48051 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48052 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48053 esac;;
48054esac
48055case $ac_abs_builddir in
48056.) ac_abs_srcdir=$ac_srcdir;;
48057*)
48058 case $ac_srcdir in
48059 .) ac_abs_srcdir=$ac_abs_builddir;;
48060 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48061 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48062 esac;;
48063esac
48064case $ac_abs_builddir in
48065.) ac_abs_top_srcdir=$ac_top_srcdir;;
48066*)
48067 case $ac_top_srcdir in
48068 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48069 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48070 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48071 esac;;
48072esac
a848cd7e
SC
48073
48074
48075 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
48076echo "$as_me: executing $ac_dest commands" >&6;}
48077 case $ac_dest in
ceec2216
RL
48078 wx-config ) rm -f wx-config
48079 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
48080 ;;
a848cd7e
SC
48081 esac
48082done
48083_ACEOF
48084
48085cat >>$CONFIG_STATUS <<\_ACEOF
48086
48087{ (exit 0); exit 0; }
48088_ACEOF
48089chmod +x $CONFIG_STATUS
48090ac_clean_files=$ac_clean_files_save
48091
48092
48093# configure is writing to config.log, and then calls config.status.
48094# config.status does its own redirection, appending to config.log.
48095# Unfortunately, on DOS this fails, as config.log is still kept open
48096# by configure, so config.status won't be able to write to it; its
48097# output is simply discarded. So we exec the FD to /dev/null,
48098# effectively closing config.log, so it can be properly (re)opened and
48099# appended to by config.status. When coming back to configure, we
48100# need to make the FD available again.
48101if test "$no_create" != yes; then
48102 ac_cs_success=:
48103 ac_config_status_args=
48104 test "$silent" = yes &&
48105 ac_config_status_args="$ac_config_status_args --quiet"
48106 exec 5>/dev/null
48107 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48108 exec 5>>config.log
48109 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48110 # would make configure fail if this is the last instruction.
48111 $ac_cs_success || { (exit 1); exit 1; }
48112fi
48113
48114#
48115# CONFIG_SUBDIRS section.
48116#
48117if test "$no_recursion" != yes; then
48118
48119 # Remove --cache-file and --srcdir arguments so they do not pile up.
48120 ac_sub_configure_args=
48121 ac_prev=
48122 for ac_arg in $ac_configure_args; do
48123 if test -n "$ac_prev"; then
48124 ac_prev=
48125 continue
48126 fi
48127 case $ac_arg in
48128 -cache-file | --cache-file | --cache-fil | --cache-fi \
48129 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48130 ac_prev=cache_file ;;
48131 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48132 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48133 | --c=*)
48134 ;;
48135 --config-cache | -C)
48136 ;;
48137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48138 ac_prev=srcdir ;;
48139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48140 ;;
48141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48142 ac_prev=prefix ;;
48143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48144 ;;
48145 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
48146 esac
48147 done
48148
48149 # Always prepend --prefix to ensure using the same prefix
48150 # in subdir configurations.
48151 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
48152
48153 ac_popdir=`pwd`
48154 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48155
48156 # Do not complain, so a configure script can configure whichever
48157 # parts of a large source tree are present.
48158 test -d $srcdir/$ac_dir || continue
48159
48160 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
48161echo "$as_me: configuring in $ac_dir" >&6;}
48162 { if $as_mkdir_p; then
48163 mkdir -p "$ac_dir"
48164 else
48165 as_dir="$ac_dir"
48166 as_dirs=
48167 while test ! -d "$as_dir"; do
48168 as_dirs="$as_dir $as_dirs"
48169 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48170$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48171 X"$as_dir" : 'X\(//\)[^/]' \| \
48172 X"$as_dir" : 'X\(//\)$' \| \
48173 X"$as_dir" : 'X\(/\)' \| \
48174 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48175echo X"$as_dir" |
48176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48178 /^X\(\/\/\)$/{ s//\1/; q; }
48179 /^X\(\/\).*/{ s//\1/; q; }
48180 s/.*/./; q'`
48181 done
48182 test ! -n "$as_dirs" || mkdir $as_dirs
48183 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48184echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48185 { (exit 1); exit 1; }; }; }
48186
48187 ac_builddir=.
48188
48189if test "$ac_dir" != .; then
48190 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48191 # A "../" for each directory in $ac_dir_suffix.
48192 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48193else
48194 ac_dir_suffix= ac_top_builddir=
48195fi
48196
48197case $srcdir in
48198 .) # No --srcdir option. We are building in place.
48199 ac_srcdir=.
48200 if test -z "$ac_top_builddir"; then
48201 ac_top_srcdir=.
48202 else
48203 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48204 fi ;;
48205 [\\/]* | ?:[\\/]* ) # Absolute path.
48206 ac_srcdir=$srcdir$ac_dir_suffix;
48207 ac_top_srcdir=$srcdir ;;
48208 *) # Relative path.
48209 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48210 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48211esac
ac1cb8d3
VS
48212
48213# Do not use `cd foo && pwd` to compute absolute paths, because
48214# the directories may not exist.
48215case `pwd` in
48216.) ac_abs_builddir="$ac_dir";;
48217*)
48218 case "$ac_dir" in
48219 .) ac_abs_builddir=`pwd`;;
48220 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48221 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48222 esac;;
48223esac
48224case $ac_abs_builddir in
48225.) ac_abs_top_builddir=${ac_top_builddir}.;;
48226*)
48227 case ${ac_top_builddir}. in
48228 .) ac_abs_top_builddir=$ac_abs_builddir;;
48229 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48230 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48231 esac;;
48232esac
48233case $ac_abs_builddir in
48234.) ac_abs_srcdir=$ac_srcdir;;
48235*)
48236 case $ac_srcdir in
48237 .) ac_abs_srcdir=$ac_abs_builddir;;
48238 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48239 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48240 esac;;
48241esac
48242case $ac_abs_builddir in
48243.) ac_abs_top_srcdir=$ac_top_srcdir;;
48244*)
48245 case $ac_top_srcdir in
48246 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48247 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48248 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48249 esac;;
48250esac
a848cd7e
SC
48251
48252
48253 cd $ac_dir
48254
48255 # Check for guested configure; otherwise get Cygnus style configure.
48256 if test -f $ac_srcdir/configure.gnu; then
48257 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
48258 elif test -f $ac_srcdir/configure; then
48259 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
48260 elif test -f $ac_srcdir/configure.in; then
48261 ac_sub_configure=$ac_configure
48262 else
48263 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
48264echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
48265 ac_sub_configure=
48266 fi
48267
48268 # The recursion is here.
48269 if test -n "$ac_sub_configure"; then
48270 # Make the cache file name correct relative to the subdirectory.
48271 case $cache_file in
48272 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
48273 *) # Relative path.
ac1cb8d3 48274 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
48275 esac
48276
48277 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
48278echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
48279 # The eval makes quoting arguments work.
48280 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
48281 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
48282 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
48283echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
48284 { (exit 1); exit 1; }; }
48285 fi
48286
6ebeb4c7 48287 cd "$ac_popdir"
a848cd7e
SC
48288 done
48289fi
48290
48291
48292echo
77ffb593 48293echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 48294echo ""
4d4ff94c 48295echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 48296echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 48297
77ffb593
JS
48298echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
48299echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
48300echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 48301
77ffb593
JS
48302echo " What level of wxWidgets compatibility should be enabled?"
48303echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
48304echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 48305
77ffb593 48306echo " Which libraries should wxWidgets use?"
a848cd7e
SC
48307echo " jpeg ${wxUSE_LIBJPEG-none}"
48308echo " png ${wxUSE_LIBPNG-none}"
48309echo " regex ${wxUSE_REGEX}"
48310echo " tiff ${wxUSE_LIBTIFF-none}"
48311if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
48312echo " xpm ${wxUSE_LIBXPM-none}"
48313fi
48314echo " zlib ${wxUSE_ZLIB}"
48315echo " odbc ${wxUSE_ODBC}"
48316echo " expat ${wxUSE_EXPAT}"
48317echo " libmspack ${wxUSE_LIBMSPACK}"
48318echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 48319echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
48320
48321echo ""
48322