]> git.saurik.com Git - wxWidgets.git/blame - configure
Work around mingw/cygwin bug 1046059
[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.
e0d84535 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.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'
e0d84535
RL
273PACKAGE_VERSION='2.6.0'
274PACKAGE_STRING='wxWidgets 2.6.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"
83d8eb47 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP 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 RESCOMP 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 ac_ct_AR ac_ct_STRIP 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 AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS 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_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_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 DLLTOOL 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
e0d84535 797\`configure' configures wxWidgets 2.6.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
e0d84535 863 short | recursive ) echo "Configuration of wxWidgets 2.6.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
a848cd7e
SC
1032 --enable-metafiles use wxMetaFile (Windows only)
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
1035 --enable-palette use wxPalette class
1036 --enable-image use wxImage class
1037 --enable-gif use gif images (GIF file format)
1038 --enable-pcx use pcx images (PCX file format)
1039 --enable-iff use iff images (IFF file format)
1040 --enable-pnm use pnm images (PNM file format)
1041 --enable-xpm use xpm images (XPM file format)
1042 --enable-icocur use Windows ICO and CUR formats
77ffb593 1043 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1044 --enable-vendor=VENDOR vendor name (win32 DLL only)
1045 --disable-largefile omit support for large files
1046 --disable-gtktest do not try to compile and run a test GTK+ program
1047 --disable-gtktest Do not try to compile and run a test GTK program
1048 --disable-sdltest Do not try to compile and run a test SDL program
1049 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1050 --disable-precomp-headers
1051 don't use precompiled headers even if compiler can
a848cd7e
SC
1052
1053Optional Packages:
1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1056 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1057 --with-motif use Motif/Lesstif
1058 --with-mac use Mac OS X
1059 --with-cocoa use Cocoa
1060 --with-wine use Wine
1061 --with-msw use MS-Windows
1062 --with-pm use OS/2 Presentation Manager
1063 --with-mgl use SciTech MGL
1064 --with-microwin use MicroWindows
1065 --with-x11 use X11
1066 --with-libpng use libpng (PNG image format)
1067 --with-libjpeg use libjpeg (JPEG file format)
1068 --with-libtiff use libtiff (TIFF file format)
1069 --with-libxpm use libxpm (XPM file format)
1070 --with-libmspack use libmspack (CHM help files loading)
1071 --with-sdl use SDL for audio on Unix
d51253e8 1072 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1073 --with-opengl use OpenGL (or Mesa)
1074 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1075 --with-regex enable support for wxRegEx class
1076 --with-zlib use zlib for LZW compression
1077 --with-odbc use the IODBC and wxODBC classes
1078 --with-expat enable XML support using expat parser
ceec2216 1079 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1080 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1081 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1082 --with-x use the X Window System
1083 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1084 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1085 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1086 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1087 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1088
1089Some influential environment variables:
dcc1b6ad
VS
1090 CC C compiler command
1091 CFLAGS C compiler flags
1092 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1093 nonstandard directory <lib dir>
1094 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095 headers in a nonstandard directory <include dir>
1096 CPP C preprocessor
1097 CXX C++ compiler command
1098 CXXFLAGS C++ compiler flags
1099 CXXCPP C++ preprocessor
a848cd7e
SC
1100
1101Use these variables to override the choices made by `configure' or to help
1102it to find libraries and programs with nonstandard names/locations.
1103
77ffb593 1104Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1105_ACEOF
1106fi
1107
1108if test "$ac_init_help" = "recursive"; then
1109 # If there are subdirs, report their specific --help.
1110 ac_popdir=`pwd`
1111 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1112 test -d $ac_dir || continue
1113 ac_builddir=.
1114
1115if test "$ac_dir" != .; then
1116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1117 # A "../" for each directory in $ac_dir_suffix.
1118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1119else
1120 ac_dir_suffix= ac_top_builddir=
1121fi
1122
1123case $srcdir in
1124 .) # No --srcdir option. We are building in place.
1125 ac_srcdir=.
1126 if test -z "$ac_top_builddir"; then
1127 ac_top_srcdir=.
1128 else
1129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1130 fi ;;
1131 [\\/]* | ?:[\\/]* ) # Absolute path.
1132 ac_srcdir=$srcdir$ac_dir_suffix;
1133 ac_top_srcdir=$srcdir ;;
1134 *) # Relative path.
1135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1137esac
ac1cb8d3
VS
1138
1139# Do not use `cd foo && pwd` to compute absolute paths, because
1140# the directories may not exist.
1141case `pwd` in
1142.) ac_abs_builddir="$ac_dir";;
1143*)
1144 case "$ac_dir" in
1145 .) ac_abs_builddir=`pwd`;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1147 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_top_builddir=${ac_top_builddir}.;;
1152*)
1153 case ${ac_top_builddir}. in
1154 .) ac_abs_top_builddir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1156 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_srcdir=$ac_srcdir;;
1161*)
1162 case $ac_srcdir in
1163 .) ac_abs_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1165 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1166 esac;;
1167esac
1168case $ac_abs_builddir in
1169.) ac_abs_top_srcdir=$ac_top_srcdir;;
1170*)
1171 case $ac_top_srcdir in
1172 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1174 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1175 esac;;
1176esac
a848cd7e
SC
1177
1178 cd $ac_dir
1179 # Check for guested configure; otherwise get Cygnus style configure.
1180 if test -f $ac_srcdir/configure.gnu; then
1181 echo
1182 $SHELL $ac_srcdir/configure.gnu --help=recursive
1183 elif test -f $ac_srcdir/configure; then
1184 echo
1185 $SHELL $ac_srcdir/configure --help=recursive
1186 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1187 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1188 echo
1189 $ac_configure --help
1190 else
1191 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1192 fi
fb00f58d 1193 cd $ac_popdir
a848cd7e
SC
1194 done
1195fi
1196
1197test -n "$ac_init_help" && exit 0
1198if $ac_init_version; then
1199 cat <<\_ACEOF
e0d84535 1200wxWidgets configure 2.6.0
ac1cb8d3 1201generated by GNU Autoconf 2.59
a848cd7e 1202
ac1cb8d3 1203Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1204This configure script is free software; the Free Software Foundation
1205gives unlimited permission to copy, distribute and modify it.
1206_ACEOF
1207 exit 0
1208fi
1209exec 5>config.log
1210cat >&5 <<_ACEOF
1211This file contains any messages produced by compilers while
1212running configure, to aid debugging if configure makes a mistake.
1213
e0d84535 1214It was created by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 1215generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1216
1217 $ $0 $@
1218
1219_ACEOF
1220{
1221cat <<_ASUNAME
1222## --------- ##
1223## Platform. ##
1224## --------- ##
1225
1226hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231
1232/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1234
1235/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1236/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1237/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1239/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1240/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1241/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1242
1243_ASUNAME
1244
1245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246for as_dir in $PATH
1247do
1248 IFS=$as_save_IFS
1249 test -z "$as_dir" && as_dir=.
1250 echo "PATH: $as_dir"
1251done
1252
1253} >&5
1254
1255cat >&5 <<_ACEOF
1256
1257
1258## ----------- ##
1259## Core tests. ##
1260## ----------- ##
1261
1262_ACEOF
1263
1264
1265# Keep a trace of the command line.
1266# Strip out --no-create and --no-recursion so they do not pile up.
1267# Strip out --silent because we don't want to record it for future runs.
1268# Also quote any args containing shell meta-characters.
1269# Make two passes to allow for proper duplicate-argument suppression.
1270ac_configure_args=
1271ac_configure_args0=
1272ac_configure_args1=
1273ac_sep=
1274ac_must_keep_next=false
1275for ac_pass in 1 2
1276do
1277 for ac_arg
1278 do
1279 case $ac_arg in
1280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1283 continue ;;
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 esac
1287 case $ac_pass in
1288 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289 2)
1290 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291 if test $ac_must_keep_next = true; then
ac1cb8d3 1292 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1293 else
ac1cb8d3
VS
1294 case $ac_arg in
1295 *=* | --config-cache | -C | -disable-* | --disable-* \
1296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298 | -with-* | --with-* | -without-* | --without-* | --x)
1299 case "$ac_configure_args0 " in
1300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301 esac
1302 ;;
1303 -* ) ac_must_keep_next=true ;;
1304 esac
a848cd7e
SC
1305 fi
1306 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307 # Get rid of the leading space.
1308 ac_sep=" "
1309 ;;
1310 esac
1311 done
1312done
1313$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315
1316# When interrupted or exit'd, cleanup temporary files, and complete
1317# config.log. We remove comments because anyway the quotes in there
1318# would cause problems or look ugly.
1319# WARNING: Be sure not to use single quotes in there, as some shells,
1320# such as our DU 5.0 friend, will then `close' the trap.
1321trap 'exit_status=$?
1322 # Save into config.log some information that might help in debugging.
1323 {
1324 echo
1325
1326 cat <<\_ASBOX
1327## ---------------- ##
1328## Cache variables. ##
1329## ---------------- ##
1330_ASBOX
1331 echo
1332 # The following way of writing the cache mishandles newlines in values,
1333{
1334 (set) 2>&1 |
1335 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336 *ac_space=\ *)
1337 sed -n \
ac1cb8d3
VS
1338 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1340 ;;
1341 *)
1342 sed -n \
ac1cb8d3 1343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1344 ;;
1345 esac;
1346}
1347 echo
1348
1349 cat <<\_ASBOX
1350## ----------------- ##
1351## Output variables. ##
1352## ----------------- ##
1353_ASBOX
1354 echo
1355 for ac_var in $ac_subst_vars
1356 do
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1359 done | sort
1360 echo
1361
1362 if test -n "$ac_subst_files"; then
1363 cat <<\_ASBOX
1364## ------------- ##
1365## Output files. ##
1366## ------------- ##
1367_ASBOX
1368 echo
1369 for ac_var in $ac_subst_files
1370 do
1371 eval ac_val=$`echo $ac_var`
ac1cb8d3 1372 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1373 done | sort
1374 echo
1375 fi
1376
1377 if test -s confdefs.h; then
1378 cat <<\_ASBOX
1379## ----------- ##
1380## confdefs.h. ##
1381## ----------- ##
1382_ASBOX
1383 echo
1384 sed "/^$/d" confdefs.h | sort
1385 echo
1386 fi
1387 test "$ac_signal" != 0 &&
1388 echo "$as_me: caught signal $ac_signal"
1389 echo "$as_me: exit $exit_status"
1390 } >&5
ac1cb8d3 1391 rm -f core *.core &&
a848cd7e
SC
1392 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1393 exit $exit_status
1394 ' 0
1395for ac_signal in 1 2 13 15; do
1396 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397done
1398ac_signal=0
1399
1400# confdefs.h avoids OS command line length limits that DEFS can exceed.
1401rm -rf conftest* confdefs.h
1402# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403echo >confdefs.h
1404
1405# Predefined preprocessor variables.
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_NAME "$PACKAGE_NAME"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_VERSION "$PACKAGE_VERSION"
1419_ACEOF
1420
1421
1422cat >>confdefs.h <<_ACEOF
1423#define PACKAGE_STRING "$PACKAGE_STRING"
1424_ACEOF
1425
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1429_ACEOF
1430
1431
1432# Let the site file select an alternate cache file if it wants to.
1433# Prefer explicitly selected file to automatically selected ones.
1434if test -z "$CONFIG_SITE"; then
1435 if test "x$prefix" != xNONE; then
1436 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437 else
1438 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439 fi
1440fi
1441for ac_site_file in $CONFIG_SITE; do
1442 if test -r "$ac_site_file"; then
1443 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444echo "$as_me: loading site script $ac_site_file" >&6;}
1445 sed 's/^/| /' "$ac_site_file" >&5
1446 . "$ac_site_file"
1447 fi
1448done
1449
1450if test -r "$cache_file"; then
1451 # Some versions of bash will fail to source /dev/null (special
1452 # files actually), so we avoid doing that.
1453 if test -f "$cache_file"; then
1454 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455echo "$as_me: loading cache $cache_file" >&6;}
1456 case $cache_file in
1457 [\\/]* | ?:[\\/]* ) . $cache_file;;
1458 *) . ./$cache_file;;
1459 esac
1460 fi
1461else
1462 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463echo "$as_me: creating cache $cache_file" >&6;}
1464 >$cache_file
1465fi
1466
1467# Check that the precious variables saved in the cache have kept the same
1468# value.
1469ac_cache_corrupted=false
1470for ac_var in `(set) 2>&1 |
ac1cb8d3 1471 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1472 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473 eval ac_new_set=\$ac_env_${ac_var}_set
1474 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475 eval ac_new_val="\$ac_env_${ac_var}_value"
1476 case $ac_old_set,$ac_new_set in
1477 set,)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,set)
1482 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484 ac_cache_corrupted=: ;;
1485 ,);;
1486 *)
1487 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1488 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1489echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1491echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1492 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1493echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1494 ac_cache_corrupted=:
a848cd7e
SC
1495 fi;;
1496 esac
1497 # Pass precious variables to config.status.
1498 if test "$ac_new_set" = set; then
1499 case $ac_new_val in
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 *) ac_arg=$ac_var=$ac_new_val ;;
1503 esac
1504 case " $ac_configure_args " in
1505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1506 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1507 esac
1508 fi
1509done
1510if $ac_cache_corrupted; then
1511 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515 { (exit 1); exit 1; }; }
1516fi
1517
1518ac_ext=c
1519ac_cpp='$CPP $CPPFLAGS'
1520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553ac_aux_dir=
1554for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555 if test -f $ac_dir/install-sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install-sh -c"
1558 break
1559 elif test -f $ac_dir/install.sh; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/install.sh -c"
1562 break
1563 elif test -f $ac_dir/shtool; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/shtool install -c"
1566 break
1567 fi
1568done
1569if test -z "$ac_aux_dir"; then
1570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572 { (exit 1); exit 1; }; }
1573fi
1574ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578# Make sure we can run config.sub.
1579$ac_config_sub sun4 >/dev/null 2>&1 ||
1580 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584echo "$as_me:$LINENO: checking build system type" >&5
1585echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586if test "${ac_cv_build+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588else
1589 ac_cv_build_alias=$build_alias
1590test -z "$ac_cv_build_alias" &&
1591 ac_cv_build_alias=`$ac_config_guess`
1592test -z "$ac_cv_build_alias" &&
1593 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595 { (exit 1); exit 1; }; }
1596ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599 { (exit 1); exit 1; }; }
1600
1601fi
1602echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603echo "${ECHO_T}$ac_cv_build" >&6
1604build=$ac_cv_build
1605build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
1609
1610echo "$as_me:$LINENO: checking host system type" >&5
1611echo $ECHO_N "checking host system type... $ECHO_C" >&6
1612if test "${ac_cv_host+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 ac_cv_host_alias=$host_alias
1616test -z "$ac_cv_host_alias" &&
1617 ac_cv_host_alias=$ac_cv_build_alias
1618ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1620echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623fi
1624echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1625echo "${ECHO_T}$ac_cv_host" >&6
1626host=$ac_cv_host
1627host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632echo "$as_me:$LINENO: checking target system type" >&5
1633echo $ECHO_N "checking target system type... $ECHO_C" >&6
1634if test "${ac_cv_target+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636else
1637 ac_cv_target_alias=$target_alias
1638test "x$ac_cv_target_alias" = "x" &&
1639 ac_cv_target_alias=$ac_cv_host_alias
1640ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1642echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1644
1645fi
1646echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1647echo "${ECHO_T}$ac_cv_target" >&6
1648target=$ac_cv_target
1649target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654# The aliases save the names the user supplied, while $host etc.
1655# will get canonicalized.
1656test -n "$target_alias" &&
1657 test "$program_prefix$program_suffix$program_transform_name" = \
1658 NONENONEs,x,x, &&
1659 program_prefix=${target_alias}-
1660
1661
1662
ceec2216 1663wx_major_version_number=2
e0d84535 1664wx_minor_version_number=6
7a070ef1
RD
1665wx_release_number=1
1666wx_subrelease_number=0
a848cd7e 1667
ceec2216
RL
1668WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1669WX_VERSION=$WX_RELEASE.$wx_release_number
1670WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1671
ceec2216 1672WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1673
e0d84535 1674WX_CURRENT=0
a848cd7e 1675WX_REVISION=0
e0d84535 1676WX_AGE=0
a848cd7e
SC
1677
1678
1679
1680USE_UNIX=1
1681USE_OS2=0
1682USE_WIN32=0
1683USE_DOS=0
1684USE_BEOS=0
1685USE_MAC=0
1686
1687USE_AIX=
1688USE_BSD= USE_DARWIN= USE_FREEBSD=
1689USE_GNU= USE_HPUX=
1690USE_LINUX=
1691USE_NETBSD=
1692USE_OPENBSD=
1693USE_OSF= USE_SGI=
1694USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1695USE_ULTRIX=
1696USE_UNIXWARE=
1697
1698USE_ALPHA=
1699
1700NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1701
1702ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1703
1704DEFAULT_wxUSE_COCOA=0
1705DEFAULT_wxUSE_GTK=0
1706DEFAULT_wxUSE_MAC=0
1707DEFAULT_wxUSE_MGL=0
1708DEFAULT_wxUSE_MICROWIN=0
1709DEFAULT_wxUSE_MOTIF=0
1710DEFAULT_wxUSE_MSW=0
1711DEFAULT_wxUSE_PM=0
1712DEFAULT_wxUSE_X11=0
1713
1714DEFAULT_DEFAULT_wxUSE_COCOA=0
1715DEFAULT_DEFAULT_wxUSE_GTK=0
1716DEFAULT_DEFAULT_wxUSE_MAC=0
1717DEFAULT_DEFAULT_wxUSE_MGL=0
1718DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1719DEFAULT_DEFAULT_wxUSE_MOTIF=0
1720DEFAULT_DEFAULT_wxUSE_MSW=0
1721DEFAULT_DEFAULT_wxUSE_PM=0
1722DEFAULT_DEFAULT_wxUSE_X11=0
1723
1724PROGRAM_EXT=
1725SO_SUFFIX=so
1726SAMPLES_RPATH_FLAG=
1727SAMPLES_RPATH_POSTLINK=
1728
a03b8b04
RD
1729DEFAULT_STD_FLAG=yes
1730
a848cd7e
SC
1731case "${host}" in
1732 *-hp-hpux* )
1733 USE_HPUX=1
1734 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1735 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1736 SO_SUFFIX=sl
1737 cat >>confdefs.h <<\_ACEOF
1738#define __HPUX__ 1
1739_ACEOF
1740
1741 ;;
1742 *-*-linux* )
1743 USE_LINUX=1
1744 cat >>confdefs.h <<\_ACEOF
1745#define __LINUX__ 1
1746_ACEOF
1747
1748 TMP=`uname -m`
1749 if test "x$TMP" = "xalpha"; then
1750 USE_ALPHA=1
1751 cat >>confdefs.h <<\_ACEOF
1752#define __ALPHA__ 1
1753_ACEOF
1754
1755 fi
1756 DEFAULT_DEFAULT_wxUSE_GTK=1
1757 ;;
1758 *-*-gnu* | *-*-k*bsd*-gnu )
1759 USE_GNU=1
1760 TMP=`uname -m`
1761 if test "x$TMP" = "xalpha"; then
1762 USE_ALPHA=1
1763 cat >>confdefs.h <<\_ACEOF
1764#define __ALPHA__ 1
1765_ACEOF
1766
1767 fi
1768 DEFAULT_DEFAULT_wxUSE_GTK=1
1769 ;;
1770 *-*-irix5* | *-*-irix6* )
1771 USE_SGI=1
1772 USE_SVR4=1
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SGI__ 1
1775_ACEOF
1776
1777 cat >>confdefs.h <<\_ACEOF
1778#define __SVR4__ 1
1779_ACEOF
1780
1781 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1782 ;;
1783 *-*-solaris2* )
1784 USE_SUN=1
1785 USE_SOLARIS=1
1786 USE_SVR4=1
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SUN__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SOLARIS__ 1
1793_ACEOF
1794
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SVR4__ 1
1797_ACEOF
1798
1799 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1800 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1801 ;;
1802 *-*-sunos4* )
1803 USE_SUN=1
1804 USE_SUNOS=1
1805 USE_BSD=1
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SUN__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __SUNOS__ 1
1812_ACEOF
1813
1814 cat >>confdefs.h <<\_ACEOF
1815#define __BSD__ 1
1816_ACEOF
1817
1818 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1819 ;;
1820 *-*-freebsd*)
1821 USE_BSD=1
1822 USE_FREEBSD=1
1823 cat >>confdefs.h <<\_ACEOF
1824#define __FREEBSD__ 1
1825_ACEOF
1826
1827 cat >>confdefs.h <<\_ACEOF
1828#define __BSD__ 1
1829_ACEOF
1830
1831 DEFAULT_DEFAULT_wxUSE_GTK=1
1832 ;;
1833 *-*-openbsd*)
1834 USE_BSD=1
1835 USE_OPENBSD=1
1836 cat >>confdefs.h <<\_ACEOF
1837#define __OPENBSD__ 1
1838_ACEOF
1839
1840 cat >>confdefs.h <<\_ACEOF
1841#define __BSD__ 1
1842_ACEOF
1843
1844 DEFAULT_DEFAULT_wxUSE_GTK=1
1845 ;;
1846 *-*-netbsd*)
1847 USE_BSD=1
1848 USE_NETBSD=1
1849 cat >>confdefs.h <<\_ACEOF
1850#define __NETBSD__ 1
1851_ACEOF
1852
1853 cat >>confdefs.h <<\_ACEOF
1854#define __BSD__ 1
1855_ACEOF
1856
1857 DEFAULT_DEFAULT_wxUSE_GTK=1
1858 ;;
1859 *-*-osf* )
1860 USE_ALPHA=1
1861 USE_OSF=1
1862 cat >>confdefs.h <<\_ACEOF
1863#define __ALPHA__ 1
1864_ACEOF
1865
1866 cat >>confdefs.h <<\_ACEOF
1867#define __OSF__ 1
1868_ACEOF
1869
1870 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1871 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1872 ;;
1873 *-*-dgux5* )
1874 USE_ALPHA=1
1875 USE_SVR4=1
1876 cat >>confdefs.h <<\_ACEOF
1877#define __ALPHA__ 1
1878_ACEOF
1879
1880 cat >>confdefs.h <<\_ACEOF
1881#define __SVR4__ 1
1882_ACEOF
1883
1884 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1885 ;;
1886 *-*-sysv5* )
1887 USE_SYSV=1
1888 USE_SVR4=1
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SYSV__ 1
1891_ACEOF
1892
1893 cat >>confdefs.h <<\_ACEOF
1894#define __SVR4__ 1
1895_ACEOF
1896
1897 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1898 ;;
1899 *-*-aix* )
1900 USE_AIX=1
1901 USE_SYSV=1
1902 USE_SVR4=1
1903 SO_SUFFIX=a
1904 cat >>confdefs.h <<\_ACEOF
1905#define __AIX__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SYSV__ 1
1910_ACEOF
1911
1912 cat >>confdefs.h <<\_ACEOF
1913#define __SVR4__ 1
1914_ACEOF
1915
1916 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1917 ;;
1918
1919 *-*-*UnixWare*)
1920 USE_SYSV=1
1921 USE_SVR4=1
1922 USE_UNIXWARE=1
1923 cat >>confdefs.h <<\_ACEOF
1924#define __UNIXWARE__ 1
1925_ACEOF
1926
1927 ;;
1928
1929 *-*-cygwin* | *-*-mingw32* )
1930 SO_SUFFIX=dll
1931 PROGRAM_EXT=".exe"
1932 RESCOMP=windres
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
1980 powerpc-*-darwin* )
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
2571if test "$wxUSE_GUI" = "yes"; then
2572
2573
2574 enablestring=
2575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2576echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2577 no_cache=0
2578 # Check whether --enable-universal or --disable-universal was given.
2579if test "${enable_universal+set}" = set; then
2580 enableval="$enable_universal"
2581
2582 if test "$enableval" = yes; then
2583 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2584 else
2585 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2586 fi
2587
2588else
2589
2590 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2591 if test "x$LINE" != x ; then
2592 eval "DEFAULT_$LINE"
2593 else
2594 no_cache=1
2595 fi
2596
2597 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2598
2599fi;
2600
2601 eval "$ac_cv_use_universal"
2602 if test "$no_cache" != 1; then
2603 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2604 fi
2605
2606 if test "$wxUSE_UNIVERSAL" = yes; then
2607 echo "$as_me:$LINENO: result: yes" >&5
2608echo "${ECHO_T}yes" >&6
2609 else
2610 echo "$as_me:$LINENO: result: no" >&5
2611echo "${ECHO_T}no" >&6
2612 fi
2613
2614
2615# Check whether --with-gtk or --without-gtk was given.
2616if test "${with_gtk+set}" = set; then
2617 withval="$with_gtk"
2618 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2619fi;
2620
2621# Check whether --with-motif or --without-motif was given.
2622if test "${with_motif+set}" = set; then
2623 withval="$with_motif"
2624 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2625fi;
2626
2627# Check whether --with-mac or --without-mac was given.
2628if test "${with_mac+set}" = set; then
2629 withval="$with_mac"
c228d3a4 2630 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2631fi;
2632
2633# Check whether --with-cocoa or --without-cocoa was given.
2634if test "${with_cocoa+set}" = set; then
2635 withval="$with_cocoa"
c228d3a4 2636 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2637fi;
2638
2639# Check whether --with-wine or --without-wine was given.
2640if test "${with_wine+set}" = set; then
2641 withval="$with_wine"
2642 wxUSE_WINE="$withval" CACHE_WINE=1
2643fi;
2644
2645# Check whether --with-msw or --without-msw was given.
2646if test "${with_msw+set}" = set; then
2647 withval="$with_msw"
2648 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2649fi;
2650
2651# Check whether --with-pm or --without-pm was given.
2652if test "${with_pm+set}" = set; then
2653 withval="$with_pm"
2654 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2655fi;
2656
2657# Check whether --with-mgl or --without-mgl was given.
2658if test "${with_mgl+set}" = set; then
2659 withval="$with_mgl"
2660 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2661fi;
2662
2663# Check whether --with-microwin or --without-microwin was given.
2664if test "${with_microwin+set}" = set; then
2665 withval="$with_microwin"
2666 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2667fi;
2668
2669# Check whether --with-x11 or --without-x11 was given.
2670if test "${with_x11+set}" = set; then
2671 withval="$with_x11"
2672 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2673fi;
2674
2675 enablestring=
2676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2677echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2678 no_cache=0
2679 # Check whether --enable-nanox or --disable-nanox was given.
2680if test "${enable_nanox+set}" = set; then
2681 enableval="$enable_nanox"
2682
2683 if test "$enableval" = yes; then
2684 ac_cv_use_nanox='wxUSE_NANOX=yes'
2685 else
2686 ac_cv_use_nanox='wxUSE_NANOX=no'
2687 fi
2688
2689else
2690
2691 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2692 if test "x$LINE" != x ; then
2693 eval "DEFAULT_$LINE"
2694 else
2695 no_cache=1
2696 fi
2697
2698 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2699
2700fi;
2701
2702 eval "$ac_cv_use_nanox"
2703 if test "$no_cache" != 1; then
2704 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2705 fi
2706
2707 if test "$wxUSE_NANOX" = yes; then
2708 echo "$as_me:$LINENO: result: yes" >&5
2709echo "${ECHO_T}yes" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6
2713 fi
2714
2715
f34ca037
MW
2716# Check whether --enable-gtk2 or --disable-gtk2 was given.
2717if test "${enable_gtk2+set}" = set; then
2718 enableval="$enable_gtk2"
2719 wxUSE_GTK2="$enableval"
2720fi;
a848cd7e 2721
a848cd7e
SC
2722 enablestring=
2723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2724echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2725 no_cache=0
2726 # Check whether --enable-gpe or --disable-gpe was given.
2727if test "${enable_gpe+set}" = set; then
2728 enableval="$enable_gpe"
2729
2730 if test "$enableval" = yes; then
2731 ac_cv_use_gpe='wxUSE_GPE=yes'
2732 else
2733 ac_cv_use_gpe='wxUSE_GPE=no'
2734 fi
2735
2736else
2737
2738 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2739 if test "x$LINE" != x ; then
2740 eval "DEFAULT_$LINE"
2741 else
2742 no_cache=1
2743 fi
2744
2745 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2746
2747fi;
2748
2749 eval "$ac_cv_use_gpe"
2750 if test "$no_cache" != 1; then
2751 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2752 fi
2753
2754 if test "$wxUSE_GPE" = yes; then
2755 echo "$as_me:$LINENO: result: yes" >&5
2756echo "${ECHO_T}yes" >&6
2757 else
2758 echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6
2760 fi
2761
2762
2763
2764 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2765echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2766 no_cache=0
2767
2768# Check whether --with-libpng or --without-libpng was given.
2769if test "${with_libpng+set}" = set; then
2770 withval="$with_libpng"
2771
2772 if test "$withval" = yes; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2774 elif test "$withval" = no; then
2775 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2776 elif test "$withval" = sys; then
2777 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2778 elif test "$withval" = builtin; then
2779 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2780 else
2781 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2782echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2783 { (exit 1); exit 1; }; }
2784 fi
2785
2786else
2787
2788 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2789 if test "x$LINE" != x ; then
2790 eval "DEFAULT_$LINE"
2791 else
2792 no_cache=1
2793 fi
2794
2795 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2796
2797fi;
2798
2799 eval "$ac_cv_use_libpng"
2800 if test "$no_cache" != 1; then
2801 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2802 fi
2803
2804 if test "$wxUSE_LIBPNG" = yes; then
2805 echo "$as_me:$LINENO: result: yes" >&5
2806echo "${ECHO_T}yes" >&6
2807 elif test "$wxUSE_LIBPNG" = no; then
2808 echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6
2810 elif test "$wxUSE_LIBPNG" = sys; then
2811 echo "$as_me:$LINENO: result: system version" >&5
2812echo "${ECHO_T}system version" >&6
2813 elif test "$wxUSE_LIBPNG" = builtin; then
2814 echo "$as_me:$LINENO: result: builtin version" >&5
2815echo "${ECHO_T}builtin version" >&6
2816 else
2817 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2818echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2819 { (exit 1); exit 1; }; }
2820 fi
2821
2822
2823 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2824echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2825 no_cache=0
2826
2827# Check whether --with-libjpeg or --without-libjpeg was given.
2828if test "${with_libjpeg+set}" = set; then
2829 withval="$with_libjpeg"
2830
2831 if test "$withval" = yes; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2833 elif test "$withval" = no; then
2834 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2835 elif test "$withval" = sys; then
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2837 elif test "$withval" = builtin; then
2838 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2839 else
2840 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2841echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2842 { (exit 1); exit 1; }; }
2843 fi
2844
2845else
2846
2847 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2848 if test "x$LINE" != x ; then
2849 eval "DEFAULT_$LINE"
2850 else
2851 no_cache=1
2852 fi
2853
2854 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2855
2856fi;
2857
2858 eval "$ac_cv_use_libjpeg"
2859 if test "$no_cache" != 1; then
2860 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2861 fi
2862
2863 if test "$wxUSE_LIBJPEG" = yes; then
2864 echo "$as_me:$LINENO: result: yes" >&5
2865echo "${ECHO_T}yes" >&6
2866 elif test "$wxUSE_LIBJPEG" = no; then
2867 echo "$as_me:$LINENO: result: no" >&5
2868echo "${ECHO_T}no" >&6
2869 elif test "$wxUSE_LIBJPEG" = sys; then
2870 echo "$as_me:$LINENO: result: system version" >&5
2871echo "${ECHO_T}system version" >&6
2872 elif test "$wxUSE_LIBJPEG" = builtin; then
2873 echo "$as_me:$LINENO: result: builtin version" >&5
2874echo "${ECHO_T}builtin version" >&6
2875 else
2876 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2877echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2878 { (exit 1); exit 1; }; }
2879 fi
2880
2881
2882 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2883echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2884 no_cache=0
2885
2886# Check whether --with-libtiff or --without-libtiff was given.
2887if test "${with_libtiff+set}" = set; then
2888 withval="$with_libtiff"
2889
2890 if test "$withval" = yes; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2892 elif test "$withval" = no; then
2893 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2894 elif test "$withval" = sys; then
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2896 elif test "$withval" = builtin; then
2897 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2898 else
2899 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2900echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2901 { (exit 1); exit 1; }; }
2902 fi
2903
2904else
2905
2906 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2907 if test "x$LINE" != x ; then
2908 eval "DEFAULT_$LINE"
2909 else
2910 no_cache=1
2911 fi
2912
2913 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2914
2915fi;
2916
2917 eval "$ac_cv_use_libtiff"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_LIBTIFF" = yes; then
2923 echo "$as_me:$LINENO: result: yes" >&5
2924echo "${ECHO_T}yes" >&6
2925 elif test "$wxUSE_LIBTIFF" = no; then
2926 echo "$as_me:$LINENO: result: no" >&5
2927echo "${ECHO_T}no" >&6
2928 elif test "$wxUSE_LIBTIFF" = sys; then
2929 echo "$as_me:$LINENO: result: system version" >&5
2930echo "${ECHO_T}system version" >&6
2931 elif test "$wxUSE_LIBTIFF" = builtin; then
2932 echo "$as_me:$LINENO: result: builtin version" >&5
2933echo "${ECHO_T}builtin version" >&6
2934 else
2935 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2936echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2937 { (exit 1); exit 1; }; }
2938 fi
2939
2940
2941 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2942echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2943 no_cache=0
2944
2945# Check whether --with-libxpm or --without-libxpm was given.
2946if test "${with_libxpm+set}" = set; then
2947 withval="$with_libxpm"
2948
2949 if test "$withval" = yes; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2951 elif test "$withval" = no; then
2952 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2953 elif test "$withval" = sys; then
2954 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2955 elif test "$withval" = builtin; then
2956 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2957 else
2958 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2959echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2960 { (exit 1); exit 1; }; }
2961 fi
2962
2963else
2964
2965 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2966 if test "x$LINE" != x ; then
2967 eval "DEFAULT_$LINE"
2968 else
2969 no_cache=1
2970 fi
2971
2972 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2973
2974fi;
2975
2976 eval "$ac_cv_use_libxpm"
2977 if test "$no_cache" != 1; then
2978 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2979 fi
2980
2981 if test "$wxUSE_LIBXPM" = yes; then
2982 echo "$as_me:$LINENO: result: yes" >&5
2983echo "${ECHO_T}yes" >&6
2984 elif test "$wxUSE_LIBXPM" = no; then
2985 echo "$as_me:$LINENO: result: no" >&5
2986echo "${ECHO_T}no" >&6
2987 elif test "$wxUSE_LIBXPM" = sys; then
2988 echo "$as_me:$LINENO: result: system version" >&5
2989echo "${ECHO_T}system version" >&6
2990 elif test "$wxUSE_LIBXPM" = builtin; then
2991 echo "$as_me:$LINENO: result: builtin version" >&5
2992echo "${ECHO_T}builtin version" >&6
2993 else
2994 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2995echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2996 { (exit 1); exit 1; }; }
2997 fi
2998
2999
3000 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3001echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3002 no_cache=0
3003
3004# Check whether --with-libmspack or --without-libmspack was given.
3005if test "${with_libmspack+set}" = set; then
3006 withval="$with_libmspack"
3007
3008 if test "$withval" = yes; then
3009 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3010 else
3011 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3012 fi
3013
3014else
3015
3016 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3017 if test "x$LINE" != x ; then
3018 eval "DEFAULT_$LINE"
3019 else
3020 no_cache=1
3021 fi
3022
3023 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3024
3025fi;
3026
3027 eval "$ac_cv_use_libmspack"
3028 if test "$no_cache" != 1; then
3029 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3030 fi
3031
3032 if test "$wxUSE_LIBMSPACK" = yes; then
3033 echo "$as_me:$LINENO: result: yes" >&5
3034echo "${ECHO_T}yes" >&6
3035 else
3036 echo "$as_me:$LINENO: result: no" >&5
3037echo "${ECHO_T}no" >&6
3038 fi
3039
3040
3041 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3042echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3043 no_cache=0
3044
3045# Check whether --with-sdl or --without-sdl was given.
3046if test "${with_sdl+set}" = set; then
3047 withval="$with_sdl"
3048
3049 if test "$withval" = yes; then
3050 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3051 else
3052 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3053 fi
3054
3055else
3056
3057 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3058 if test "x$LINE" != x ; then
3059 eval "DEFAULT_$LINE"
3060 else
3061 no_cache=1
3062 fi
3063
3064 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3065
3066fi;
3067
3068 eval "$ac_cv_use_sdl"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_LIBSDL" = yes; then
3074 echo "$as_me:$LINENO: result: yes" >&5
3075echo "${ECHO_T}yes" >&6
3076 else
3077 echo "$as_me:$LINENO: result: no" >&5
3078echo "${ECHO_T}no" >&6
3079 fi
3080
3081
d1c38808
VZ
3082 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3083echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3084 no_cache=0
3085
3086# Check whether --with-gnomeprint or --without-gnomeprint was given.
3087if test "${with_gnomeprint+set}" = set; then
3088 withval="$with_gnomeprint"
3089
3090 if test "$withval" = yes; then
3091 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3092 else
3093 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3094 fi
3095
3096else
3097
3098 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3106
3107fi;
3108
3109 eval "$ac_cv_use_gnomeprint"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3115 echo "$as_me:$LINENO: result: yes" >&5
3116echo "${ECHO_T}yes" >&6
3117 else
3118 echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6
3120 fi
3121
3122
a848cd7e
SC
3123 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3124echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3125 no_cache=0
3126
3127# Check whether --with-opengl or --without-opengl was given.
3128if test "${with_opengl+set}" = set; then
3129 withval="$with_opengl"
3130
3131 if test "$withval" = yes; then
3132 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3133 else
3134 ac_cv_use_opengl='wxUSE_OPENGL=no'
3135 fi
3136
3137else
3138
3139 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3140 if test "x$LINE" != x ; then
3141 eval "DEFAULT_$LINE"
3142 else
3143 no_cache=1
3144 fi
3145
3146 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3147
3148fi;
3149
3150 eval "$ac_cv_use_opengl"
3151 if test "$no_cache" != 1; then
3152 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3153 fi
3154
3155 if test "$wxUSE_OPENGL" = yes; then
3156 echo "$as_me:$LINENO: result: yes" >&5
3157echo "${ECHO_T}yes" >&6
3158 else
3159 echo "$as_me:$LINENO: result: no" >&5
3160echo "${ECHO_T}no" >&6
3161 fi
3162
3163
3164fi
3165
3166
3167 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3168echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3169 no_cache=0
3170
3171# Check whether --with-dmalloc or --without-dmalloc was given.
3172if test "${with_dmalloc+set}" = set; then
3173 withval="$with_dmalloc"
3174
3175 if test "$withval" = yes; then
3176 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3177 else
3178 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3179 fi
3180
3181else
3182
3183 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3184 if test "x$LINE" != x ; then
3185 eval "DEFAULT_$LINE"
3186 else
3187 no_cache=1
3188 fi
3189
3190 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3191
3192fi;
3193
3194 eval "$ac_cv_use_dmalloc"
3195 if test "$no_cache" != 1; then
3196 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3197 fi
3198
3199 if test "$wxUSE_DMALLOC" = yes; then
3200 echo "$as_me:$LINENO: result: yes" >&5
3201echo "${ECHO_T}yes" >&6
3202 else
3203 echo "$as_me:$LINENO: result: no" >&5
3204echo "${ECHO_T}no" >&6
3205 fi
3206
3207
3208 echo "$as_me:$LINENO: checking for --with-regex" >&5
3209echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3210 no_cache=0
3211
3212# Check whether --with-regex or --without-regex was given.
3213if test "${with_regex+set}" = set; then
3214 withval="$with_regex"
3215
3216 if test "$withval" = yes; then
3217 ac_cv_use_regex='wxUSE_REGEX=yes'
3218 elif test "$withval" = no; then
3219 ac_cv_use_regex='wxUSE_REGEX=no'
3220 elif test "$withval" = sys; then
3221 ac_cv_use_regex='wxUSE_REGEX=sys'
3222 elif test "$withval" = builtin; then
3223 ac_cv_use_regex='wxUSE_REGEX=builtin'
3224 else
3225 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3226echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3227 { (exit 1); exit 1; }; }
3228 fi
3229
3230else
3231
3232 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3233 if test "x$LINE" != x ; then
3234 eval "DEFAULT_$LINE"
3235 else
3236 no_cache=1
3237 fi
3238
3239 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3240
3241fi;
3242
3243 eval "$ac_cv_use_regex"
3244 if test "$no_cache" != 1; then
3245 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3246 fi
3247
3248 if test "$wxUSE_REGEX" = yes; then
3249 echo "$as_me:$LINENO: result: yes" >&5
3250echo "${ECHO_T}yes" >&6
3251 elif test "$wxUSE_REGEX" = no; then
3252 echo "$as_me:$LINENO: result: no" >&5
3253echo "${ECHO_T}no" >&6
3254 elif test "$wxUSE_REGEX" = sys; then
3255 echo "$as_me:$LINENO: result: system version" >&5
3256echo "${ECHO_T}system version" >&6
3257 elif test "$wxUSE_REGEX" = builtin; then
3258 echo "$as_me:$LINENO: result: builtin version" >&5
3259echo "${ECHO_T}builtin version" >&6
3260 else
3261 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3262echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3263 { (exit 1); exit 1; }; }
3264 fi
3265
3266
3267 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3268echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3269 no_cache=0
3270
3271# Check whether --with-zlib or --without-zlib was given.
3272if test "${with_zlib+set}" = set; then
3273 withval="$with_zlib"
3274
3275 if test "$withval" = yes; then
3276 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3277 elif test "$withval" = no; then
3278 ac_cv_use_zlib='wxUSE_ZLIB=no'
3279 elif test "$withval" = sys; then
3280 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3281 elif test "$withval" = builtin; then
3282 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3283 else
3284 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3285echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3286 { (exit 1); exit 1; }; }
3287 fi
3288
3289else
3290
3291 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3292 if test "x$LINE" != x ; then
3293 eval "DEFAULT_$LINE"
3294 else
3295 no_cache=1
3296 fi
3297
3298 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3299
3300fi;
3301
3302 eval "$ac_cv_use_zlib"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_ZLIB" = yes; then
3308 echo "$as_me:$LINENO: result: yes" >&5
3309echo "${ECHO_T}yes" >&6
3310 elif test "$wxUSE_ZLIB" = no; then
3311 echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6
3313 elif test "$wxUSE_ZLIB" = sys; then
3314 echo "$as_me:$LINENO: result: system version" >&5
3315echo "${ECHO_T}system version" >&6
3316 elif test "$wxUSE_ZLIB" = builtin; then
3317 echo "$as_me:$LINENO: result: builtin version" >&5
3318echo "${ECHO_T}builtin version" >&6
3319 else
3320 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3321echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3322 { (exit 1); exit 1; }; }
3323 fi
3324
3325
3326 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3327echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3328 no_cache=0
3329
3330# Check whether --with-odbc or --without-odbc was given.
3331if test "${with_odbc+set}" = set; then
3332 withval="$with_odbc"
3333
3334 if test "$withval" = yes; then
3335 ac_cv_use_odbc='wxUSE_ODBC=yes'
3336 elif test "$withval" = no; then
3337 ac_cv_use_odbc='wxUSE_ODBC=no'
3338 elif test "$withval" = sys; then
3339 ac_cv_use_odbc='wxUSE_ODBC=sys'
3340 elif test "$withval" = builtin; then
3341 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3342 else
3343 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3344echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3345 { (exit 1); exit 1; }; }
3346 fi
3347
3348else
3349
3350 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3351 if test "x$LINE" != x ; then
3352 eval "DEFAULT_$LINE"
3353 else
3354 no_cache=1
3355 fi
3356
3357 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3358
3359fi;
3360
3361 eval "$ac_cv_use_odbc"
3362 if test "$no_cache" != 1; then
3363 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3364 fi
3365
3366 if test "$wxUSE_ODBC" = yes; then
3367 echo "$as_me:$LINENO: result: yes" >&5
3368echo "${ECHO_T}yes" >&6
3369 elif test "$wxUSE_ODBC" = no; then
3370 echo "$as_me:$LINENO: result: no" >&5
3371echo "${ECHO_T}no" >&6
3372 elif test "$wxUSE_ODBC" = sys; then
3373 echo "$as_me:$LINENO: result: system version" >&5
3374echo "${ECHO_T}system version" >&6
3375 elif test "$wxUSE_ODBC" = builtin; then
3376 echo "$as_me:$LINENO: result: builtin version" >&5
3377echo "${ECHO_T}builtin version" >&6
3378 else
3379 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3380echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3381 { (exit 1); exit 1; }; }
3382 fi
3383
3384
3385 echo "$as_me:$LINENO: checking for --with-expat" >&5
3386echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3387 no_cache=0
3388
3389# Check whether --with-expat or --without-expat was given.
3390if test "${with_expat+set}" = set; then
3391 withval="$with_expat"
3392
3393 if test "$withval" = yes; then
3394 ac_cv_use_expat='wxUSE_EXPAT=yes'
3395 elif test "$withval" = no; then
3396 ac_cv_use_expat='wxUSE_EXPAT=no'
3397 elif test "$withval" = sys; then
3398 ac_cv_use_expat='wxUSE_EXPAT=sys'
3399 elif test "$withval" = builtin; then
3400 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3401 else
3402 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3403echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3404 { (exit 1); exit 1; }; }
3405 fi
3406
3407else
3408
3409 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3417
3418fi;
3419
3420 eval "$ac_cv_use_expat"
3421 if test "$no_cache" != 1; then
3422 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3423 fi
3424
3425 if test "$wxUSE_EXPAT" = yes; then
3426 echo "$as_me:$LINENO: result: yes" >&5
3427echo "${ECHO_T}yes" >&6
3428 elif test "$wxUSE_EXPAT" = no; then
3429 echo "$as_me:$LINENO: result: no" >&5
3430echo "${ECHO_T}no" >&6
3431 elif test "$wxUSE_EXPAT" = sys; then
3432 echo "$as_me:$LINENO: result: system version" >&5
3433echo "${ECHO_T}system version" >&6
3434 elif test "$wxUSE_EXPAT" = builtin; then
3435 echo "$as_me:$LINENO: result: builtin version" >&5
3436echo "${ECHO_T}builtin version" >&6
3437 else
3438 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3439echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3440 { (exit 1); exit 1; }; }
3441 fi
3442
3443
3444
3445
3446 enablestring=
3447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3448echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3449 no_cache=0
3450 # Check whether --enable-shared or --disable-shared was given.
3451if test "${enable_shared+set}" = set; then
3452 enableval="$enable_shared"
3453
3454 if test "$enableval" = yes; then
3455 ac_cv_use_shared='wxUSE_SHARED=yes'
3456 else
3457 ac_cv_use_shared='wxUSE_SHARED=no'
3458 fi
3459
3460else
3461
3462 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3463 if test "x$LINE" != x ; then
3464 eval "DEFAULT_$LINE"
3465 else
3466 no_cache=1
3467 fi
3468
3469 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3470
3471fi;
3472
3473 eval "$ac_cv_use_shared"
3474 if test "$no_cache" != 1; then
3475 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3476 fi
3477
3478 if test "$wxUSE_SHARED" = yes; then
3479 echo "$as_me:$LINENO: result: yes" >&5
3480echo "${ECHO_T}yes" >&6
3481 else
3482 echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
3484 fi
3485
3486
3487 enablestring=
3488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3489echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3490 no_cache=0
3491 # Check whether --enable-optimise or --disable-optimise was given.
3492if test "${enable_optimise+set}" = set; then
3493 enableval="$enable_optimise"
3494
3495 if test "$enableval" = yes; then
3496 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3497 else
3498 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3499 fi
3500
3501else
3502
3503 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3504 if test "x$LINE" != x ; then
3505 eval "DEFAULT_$LINE"
3506 else
3507 no_cache=1
3508 fi
3509
3510 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3511
3512fi;
3513
3514 eval "$ac_cv_use_optimise"
3515 if test "$no_cache" != 1; then
3516 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3517 fi
3518
3519 if test "$wxUSE_OPTIMISE" = yes; then
3520 echo "$as_me:$LINENO: result: yes" >&5
3521echo "${ECHO_T}yes" >&6
3522 else
3523 echo "$as_me:$LINENO: result: no" >&5
3524echo "${ECHO_T}no" >&6
3525 fi
3526
3527
3528 enablestring=
3529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3530echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3531 no_cache=0
3532 # Check whether --enable-debug or --disable-debug was given.
3533if test "${enable_debug+set}" = set; then
3534 enableval="$enable_debug"
3535
3536 if test "$enableval" = yes; then
3537 ac_cv_use_debug='wxUSE_DEBUG=yes'
3538 else
3539 ac_cv_use_debug='wxUSE_DEBUG=no'
3540 fi
3541
3542else
3543
3544 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3545 if test "x$LINE" != x ; then
3546 eval "DEFAULT_$LINE"
3547 else
3548 no_cache=1
3549 fi
3550
3551 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3552
3553fi;
3554
3555 eval "$ac_cv_use_debug"
3556 if test "$no_cache" != 1; then
3557 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3558 fi
3559
3560 if test "$wxUSE_DEBUG" = yes; then
3561 echo "$as_me:$LINENO: result: yes" >&5
3562echo "${ECHO_T}yes" >&6
3563 else
3564 echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6
3566 fi
3567
3568
3569 enablestring=
3570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3571echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3572 no_cache=0
3573 # Check whether --enable-stl or --disable-stl was given.
3574if test "${enable_stl+set}" = set; then
3575 enableval="$enable_stl"
3576
3577 if test "$enableval" = yes; then
3578 ac_cv_use_stl='wxUSE_STL=yes'
3579 else
3580 ac_cv_use_stl='wxUSE_STL=no'
3581 fi
3582
3583else
3584
3585 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3586 if test "x$LINE" != x ; then
3587 eval "DEFAULT_$LINE"
3588 else
3589 no_cache=1
3590 fi
3591
3592 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3593
3594fi;
3595
3596 eval "$ac_cv_use_stl"
3597 if test "$no_cache" != 1; then
3598 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3599 fi
3600
3601 if test "$wxUSE_STL" = yes; then
3602 echo "$as_me:$LINENO: result: yes" >&5
3603echo "${ECHO_T}yes" >&6
3604 else
3605 echo "$as_me:$LINENO: result: no" >&5
3606echo "${ECHO_T}no" >&6
3607 fi
3608
3609if test "$USE_OS2" = "1"; then
69120ee4 3610 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3611
3612 enablestring=
3613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3614echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3615 no_cache=0
3616 # Check whether --enable-omf or --disable-omf was given.
3617if test "${enable_omf+set}" = set; then
3618 enableval="$enable_omf"
3619
3620 if test "$enableval" = yes; then
3621 ac_cv_use_omf='wxUSE_OMF=yes'
3622 else
3623 ac_cv_use_omf='wxUSE_OMF=no'
3624 fi
3625
3626else
3627
3628 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3629 if test "x$LINE" != x ; then
3630 eval "DEFAULT_$LINE"
3631 else
3632 no_cache=1
3633 fi
3634
3635 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3636
3637fi;
3638
3639 eval "$ac_cv_use_omf"
3640 if test "$no_cache" != 1; then
3641 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3642 fi
3643
3644 if test "$wxUSE_OMF" = yes; then
3645 echo "$as_me:$LINENO: result: yes" >&5
3646echo "${ECHO_T}yes" >&6
3647 else
3648 echo "$as_me:$LINENO: result: no" >&5
3649echo "${ECHO_T}no" >&6
3650 fi
3651
3652fi
3653
3654if test "$wxUSE_DEBUG" = "yes"; then
3655 DEFAULT_wxUSE_DEBUG_FLAG=yes
3656 DEFAULT_wxUSE_DEBUG_INFO=yes
3657 BUILD=debug
3658elif test "$wxUSE_DEBUG" = "no"; then
3659 DEFAULT_wxUSE_DEBUG_FLAG=no
3660 DEFAULT_wxUSE_DEBUG_INFO=no
3661 BUILD=release
3662fi
3663
3664
3665 enablestring=
3666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3667echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3668 no_cache=0
3669 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3670if test "${enable_debug_flag+set}" = set; then
3671 enableval="$enable_debug_flag"
3672
3673 if test "$enableval" = yes; then
3674 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3675 else
3676 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3677 fi
3678
3679else
3680
3681 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3682 if test "x$LINE" != x ; then
3683 eval "DEFAULT_$LINE"
3684 else
3685 no_cache=1
3686 fi
3687
3688 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3689
3690fi;
3691
3692 eval "$ac_cv_use_debug_flag"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_DEBUG_FLAG" = yes; then
3698 echo "$as_me:$LINENO: result: yes" >&5
3699echo "${ECHO_T}yes" >&6
3700 else
3701 echo "$as_me:$LINENO: result: no" >&5
3702echo "${ECHO_T}no" >&6
3703 fi
3704
3705
3706 enablestring=
3707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3708echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3709 no_cache=0
3710 # Check whether --enable-debug_info or --disable-debug_info was given.
3711if test "${enable_debug_info+set}" = set; then
3712 enableval="$enable_debug_info"
3713
3714 if test "$enableval" = yes; then
3715 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3716 else
3717 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3718 fi
3719
3720else
3721
3722 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3723 if test "x$LINE" != x ; then
3724 eval "DEFAULT_$LINE"
3725 else
3726 no_cache=1
3727 fi
3728
3729 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3730
3731fi;
3732
3733 eval "$ac_cv_use_debug_info"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_DEBUG_INFO" = yes; then
3739 echo "$as_me:$LINENO: result: yes" >&5
3740echo "${ECHO_T}yes" >&6
3741 else
3742 echo "$as_me:$LINENO: result: no" >&5
3743echo "${ECHO_T}no" >&6
3744 fi
3745
3746
3747 enablestring=
3748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3749echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3750 no_cache=0
3751 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3752if test "${enable_debug_gdb+set}" = set; then
3753 enableval="$enable_debug_gdb"
3754
3755 if test "$enableval" = yes; then
3756 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3757 else
3758 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3759 fi
3760
3761else
3762
3763 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3764 if test "x$LINE" != x ; then
3765 eval "DEFAULT_$LINE"
3766 else
3767 no_cache=1
3768 fi
3769
3770 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3771
3772fi;
3773
3774 eval "$ac_cv_use_debug_gdb"
3775 if test "$no_cache" != 1; then
3776 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3777 fi
3778
3779 if test "$wxUSE_DEBUG_GDB" = yes; then
3780 echo "$as_me:$LINENO: result: yes" >&5
3781echo "${ECHO_T}yes" >&6
3782 else
3783 echo "$as_me:$LINENO: result: no" >&5
3784echo "${ECHO_T}no" >&6
3785 fi
3786
3787
3788 enablestring=
3789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3790echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3791 no_cache=0
3792 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3793if test "${enable_debug_cntxt+set}" = set; then
3794 enableval="$enable_debug_cntxt"
3795
3796 if test "$enableval" = yes; then
3797 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3798 else
3799 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3800 fi
3801
3802else
3803
3804 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3805 if test "x$LINE" != x ; then
3806 eval "DEFAULT_$LINE"
3807 else
3808 no_cache=1
3809 fi
3810
3811 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3812
3813fi;
3814
3815 eval "$ac_cv_use_debug_cntxt"
3816 if test "$no_cache" != 1; then
3817 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3818 fi
3819
3820 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3821 echo "$as_me:$LINENO: result: yes" >&5
3822echo "${ECHO_T}yes" >&6
3823 else
3824 echo "$as_me:$LINENO: result: no" >&5
3825echo "${ECHO_T}no" >&6
3826 fi
3827
3828
3829 enablestring=
3830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3831echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3832 no_cache=0
3833 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3834if test "${enable_mem_tracing+set}" = set; then
3835 enableval="$enable_mem_tracing"
3836
3837 if test "$enableval" = yes; then
3838 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3839 else
3840 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3841 fi
3842
3843else
3844
3845 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3846 if test "x$LINE" != x ; then
3847 eval "DEFAULT_$LINE"
3848 else
3849 no_cache=1
3850 fi
3851
3852 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3853
3854fi;
3855
3856 eval "$ac_cv_use_mem_tracing"
3857 if test "$no_cache" != 1; then
3858 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3859 fi
3860
3861 if test "$wxUSE_MEM_TRACING" = yes; then
3862 echo "$as_me:$LINENO: result: yes" >&5
3863echo "${ECHO_T}yes" >&6
3864 else
3865 echo "$as_me:$LINENO: result: no" >&5
3866echo "${ECHO_T}no" >&6
3867 fi
3868
3869
3870 enablestring=
3871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3872echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3873 no_cache=0
3874 # Check whether --enable-profile or --disable-profile was given.
3875if test "${enable_profile+set}" = set; then
3876 enableval="$enable_profile"
3877
3878 if test "$enableval" = yes; then
3879 ac_cv_use_profile='wxUSE_PROFILE=yes'
3880 else
3881 ac_cv_use_profile='wxUSE_PROFILE=no'
3882 fi
3883
3884else
3885
3886 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3887 if test "x$LINE" != x ; then
3888 eval "DEFAULT_$LINE"
3889 else
3890 no_cache=1
3891 fi
3892
3893 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3894
3895fi;
3896
3897 eval "$ac_cv_use_profile"
3898 if test "$no_cache" != 1; then
3899 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3900 fi
3901
3902 if test "$wxUSE_PROFILE" = yes; then
3903 echo "$as_me:$LINENO: result: yes" >&5
3904echo "${ECHO_T}yes" >&6
3905 else
3906 echo "$as_me:$LINENO: result: no" >&5
3907echo "${ECHO_T}no" >&6
3908 fi
3909
3910
3911 enablestring=
3912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3913echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3914 no_cache=0
3915 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3916if test "${enable_no_rtti+set}" = set; then
3917 enableval="$enable_no_rtti"
3918
3919 if test "$enableval" = yes; then
3920 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3921 else
3922 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3923 fi
3924
3925else
3926
3927 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3935
3936fi;
3937
3938 eval "$ac_cv_use_no_rtti"
3939 if test "$no_cache" != 1; then
3940 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3941 fi
3942
3943 if test "$wxUSE_NO_RTTI" = yes; then
3944 echo "$as_me:$LINENO: result: yes" >&5
3945echo "${ECHO_T}yes" >&6
3946 else
3947 echo "$as_me:$LINENO: result: no" >&5
3948echo "${ECHO_T}no" >&6
3949 fi
3950
3951
3952 enablestring=
3953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3954echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3955 no_cache=0
3956 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3957if test "${enable_no_exceptions+set}" = set; then
3958 enableval="$enable_no_exceptions"
3959
3960 if test "$enableval" = yes; then
3961 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3962 else
3963 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3964 fi
3965
3966else
3967
3968 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3969 if test "x$LINE" != x ; then
3970 eval "DEFAULT_$LINE"
3971 else
3972 no_cache=1
3973 fi
3974
3975 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3976
3977fi;
3978
3979 eval "$ac_cv_use_no_exceptions"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3985 echo "$as_me:$LINENO: result: yes" >&5
3986echo "${ECHO_T}yes" >&6
3987 else
3988 echo "$as_me:$LINENO: result: no" >&5
3989echo "${ECHO_T}no" >&6
3990 fi
3991
3992
3993 enablestring=
3994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3995echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3996 no_cache=0
3997 # Check whether --enable-permissive or --disable-permissive was given.
3998if test "${enable_permissive+set}" = set; then
3999 enableval="$enable_permissive"
4000
4001 if test "$enableval" = yes; then
4002 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4003 else
4004 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4005 fi
4006
4007else
4008
4009 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4010 if test "x$LINE" != x ; then
4011 eval "DEFAULT_$LINE"
4012 else
4013 no_cache=1
4014 fi
4015
4016 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4017
4018fi;
4019
4020 eval "$ac_cv_use_permissive"
4021 if test "$no_cache" != 1; then
4022 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4023 fi
4024
4025 if test "$wxUSE_PERMISSIVE" = yes; then
4026 echo "$as_me:$LINENO: result: yes" >&5
4027echo "${ECHO_T}yes" >&6
4028 else
4029 echo "$as_me:$LINENO: result: no" >&5
4030echo "${ECHO_T}no" >&6
4031 fi
4032
4033
4034 enablestring=
4035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4036echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4037 no_cache=0
4038 # Check whether --enable-no_deps or --disable-no_deps was given.
4039if test "${enable_no_deps+set}" = set; then
4040 enableval="$enable_no_deps"
4041
4042 if test "$enableval" = yes; then
4043 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4044 else
4045 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4046 fi
4047
4048else
4049
4050 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4051 if test "x$LINE" != x ; then
4052 eval "DEFAULT_$LINE"
4053 else
4054 no_cache=1
4055 fi
4056
4057 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4058
4059fi;
4060
4061 eval "$ac_cv_use_no_deps"
4062 if test "$no_cache" != 1; then
4063 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4064 fi
4065
4066 if test "$wxUSE_NO_DEPS" = yes; then
4067 echo "$as_me:$LINENO: result: yes" >&5
4068echo "${ECHO_T}yes" >&6
4069 else
4070 echo "$as_me:$LINENO: result: no" >&5
4071echo "${ECHO_T}no" >&6
4072 fi
4073
4074
4075
4076 enablestring=
4077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4078echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4079 no_cache=0
4080 # Check whether --enable-compat22 or --disable-compat22 was given.
4081if test "${enable_compat22+set}" = set; then
4082 enableval="$enable_compat22"
4083
4084 if test "$enableval" = yes; then
4085 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4086 else
4087 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4088 fi
4089
4090else
4091
4092 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4093 if test "x$LINE" != x ; then
4094 eval "DEFAULT_$LINE"
4095 else
4096 no_cache=1
4097 fi
4098
4099 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4100
4101fi;
4102
4103 eval "$ac_cv_use_compat22"
4104 if test "$no_cache" != 1; then
4105 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4106 fi
4107
4108 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4109 echo "$as_me:$LINENO: result: yes" >&5
4110echo "${ECHO_T}yes" >&6
4111 else
4112 echo "$as_me:$LINENO: result: no" >&5
4113echo "${ECHO_T}no" >&6
4114 fi
4115
4116
4117 enablestring=disable
4118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4119echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4120 no_cache=0
4121 # Check whether --enable-compat24 or --disable-compat24 was given.
4122if test "${enable_compat24+set}" = set; then
4123 enableval="$enable_compat24"
4124
4125 if test "$enableval" = yes; then
4126 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4127 else
4128 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4129 fi
4130
4131else
4132
4133 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4134 if test "x$LINE" != x ; then
4135 eval "DEFAULT_$LINE"
4136 else
4137 no_cache=1
4138 fi
4139
4140 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4141
4142fi;
4143
4144 eval "$ac_cv_use_compat24"
4145 if test "$no_cache" != 1; then
4146 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4147 fi
4148
4149 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4150 echo "$as_me:$LINENO: result: yes" >&5
4151echo "${ECHO_T}yes" >&6
4152 else
4153 echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6
4155 fi
4156
4157
ffa0583f
RL
4158
4159 enablestring=
4160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4161echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4162 no_cache=0
4163 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4164if test "${enable_rpath+set}" = set; then
4165 enableval="$enable_rpath"
ffa0583f
RL
4166
4167 if test "$enableval" = yes; then
4168 ac_cv_use_rpath='wxUSE_RPATH=yes'
4169 else
4170 ac_cv_use_rpath='wxUSE_RPATH=no'
4171 fi
4172
4173else
4174
4175 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4176 if test "x$LINE" != x ; then
4177 eval "DEFAULT_$LINE"
4178 else
4179 no_cache=1
4180 fi
4181
4182 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4183
a848cd7e
SC
4184fi;
4185
ffa0583f
RL
4186 eval "$ac_cv_use_rpath"
4187 if test "$no_cache" != 1; then
4188 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4189 fi
4190
4191 if test "$wxUSE_RPATH" = yes; then
4192 echo "$as_me:$LINENO: result: yes" >&5
4193echo "${ECHO_T}yes" >&6
4194 else
4195 echo "$as_me:$LINENO: result: no" >&5
4196echo "${ECHO_T}no" >&6
4197 fi
4198
a848cd7e
SC
4199
4200
4201
4202
4203 enablestring=
4204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4205echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4206 no_cache=0
4207 # Check whether --enable-intl or --disable-intl was given.
4208if test "${enable_intl+set}" = set; then
4209 enableval="$enable_intl"
4210
4211 if test "$enableval" = yes; then
4212 ac_cv_use_intl='wxUSE_INTL=yes'
4213 else
4214 ac_cv_use_intl='wxUSE_INTL=no'
4215 fi
4216
4217else
4218
4219 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4220 if test "x$LINE" != x ; then
4221 eval "DEFAULT_$LINE"
4222 else
4223 no_cache=1
4224 fi
4225
4226 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4227
4228fi;
4229
4230 eval "$ac_cv_use_intl"
4231 if test "$no_cache" != 1; then
4232 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4233 fi
4234
4235 if test "$wxUSE_INTL" = yes; then
4236 echo "$as_me:$LINENO: result: yes" >&5
4237echo "${ECHO_T}yes" >&6
4238 else
4239 echo "$as_me:$LINENO: result: no" >&5
4240echo "${ECHO_T}no" >&6
4241 fi
4242
4243
4244 enablestring=
4245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4246echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4247 no_cache=0
4248 # Check whether --enable-config or --disable-config was given.
4249if test "${enable_config+set}" = set; then
4250 enableval="$enable_config"
4251
4252 if test "$enableval" = yes; then
4253 ac_cv_use_config='wxUSE_CONFIG=yes'
4254 else
4255 ac_cv_use_config='wxUSE_CONFIG=no'
4256 fi
4257
4258else
4259
4260 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4261 if test "x$LINE" != x ; then
4262 eval "DEFAULT_$LINE"
4263 else
4264 no_cache=1
4265 fi
4266
4267 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4268
4269fi;
4270
4271 eval "$ac_cv_use_config"
4272 if test "$no_cache" != 1; then
4273 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4274 fi
4275
4276 if test "$wxUSE_CONFIG" = yes; then
4277 echo "$as_me:$LINENO: result: yes" >&5
4278echo "${ECHO_T}yes" >&6
4279 else
4280 echo "$as_me:$LINENO: result: no" >&5
4281echo "${ECHO_T}no" >&6
4282 fi
4283
4284
4285
4286 enablestring=
4287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4288echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4289 no_cache=0
4290 # Check whether --enable-protocols or --disable-protocols was given.
4291if test "${enable_protocols+set}" = set; then
4292 enableval="$enable_protocols"
4293
4294 if test "$enableval" = yes; then
4295 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4296 else
4297 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4298 fi
4299
4300else
4301
4302 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4303 if test "x$LINE" != x ; then
4304 eval "DEFAULT_$LINE"
4305 else
4306 no_cache=1
4307 fi
4308
4309 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4310
4311fi;
4312
4313 eval "$ac_cv_use_protocols"
4314 if test "$no_cache" != 1; then
4315 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4316 fi
4317
4318 if test "$wxUSE_PROTOCOL" = yes; then
4319 echo "$as_me:$LINENO: result: yes" >&5
4320echo "${ECHO_T}yes" >&6
4321 else
4322 echo "$as_me:$LINENO: result: no" >&5
4323echo "${ECHO_T}no" >&6
4324 fi
4325
4326
4327 enablestring=
4328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4329echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4330 no_cache=0
4331 # Check whether --enable-ftp or --disable-ftp was given.
4332if test "${enable_ftp+set}" = set; then
4333 enableval="$enable_ftp"
4334
4335 if test "$enableval" = yes; then
4336 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4337 else
4338 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4339 fi
4340
4341else
4342
4343 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4344 if test "x$LINE" != x ; then
4345 eval "DEFAULT_$LINE"
4346 else
4347 no_cache=1
4348 fi
4349
4350 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4351
4352fi;
4353
4354 eval "$ac_cv_use_ftp"
4355 if test "$no_cache" != 1; then
4356 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4357 fi
4358
4359 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4360 echo "$as_me:$LINENO: result: yes" >&5
4361echo "${ECHO_T}yes" >&6
4362 else
4363 echo "$as_me:$LINENO: result: no" >&5
4364echo "${ECHO_T}no" >&6
4365 fi
4366
4367
4368 enablestring=
4369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4370echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4371 no_cache=0
4372 # Check whether --enable-http or --disable-http was given.
4373if test "${enable_http+set}" = set; then
4374 enableval="$enable_http"
4375
4376 if test "$enableval" = yes; then
4377 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4378 else
4379 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4380 fi
4381
4382else
4383
4384 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4392
4393fi;
4394
4395 eval "$ac_cv_use_http"
4396 if test "$no_cache" != 1; then
4397 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4398 fi
4399
4400 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4401 echo "$as_me:$LINENO: result: yes" >&5
4402echo "${ECHO_T}yes" >&6
4403 else
4404 echo "$as_me:$LINENO: result: no" >&5
4405echo "${ECHO_T}no" >&6
4406 fi
4407
4408
4409 enablestring=
4410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4411echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4412 no_cache=0
4413 # Check whether --enable-fileproto or --disable-fileproto was given.
4414if test "${enable_fileproto+set}" = set; then
4415 enableval="$enable_fileproto"
4416
4417 if test "$enableval" = yes; then
4418 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4419 else
4420 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4421 fi
4422
4423else
4424
4425 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4426 if test "x$LINE" != x ; then
4427 eval "DEFAULT_$LINE"
4428 else
4429 no_cache=1
4430 fi
4431
4432 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4433
4434fi;
4435
4436 eval "$ac_cv_use_fileproto"
4437 if test "$no_cache" != 1; then
4438 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4439 fi
4440
4441 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4442 echo "$as_me:$LINENO: result: yes" >&5
4443echo "${ECHO_T}yes" >&6
4444 else
4445 echo "$as_me:$LINENO: result: no" >&5
4446echo "${ECHO_T}no" >&6
4447 fi
4448
4449
4450 enablestring=
4451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4452echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4453 no_cache=0
4454 # Check whether --enable-sockets or --disable-sockets was given.
4455if test "${enable_sockets+set}" = set; then
4456 enableval="$enable_sockets"
4457
4458 if test "$enableval" = yes; then
4459 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4460 else
4461 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4462 fi
4463
4464else
4465
4466 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4467 if test "x$LINE" != x ; then
4468 eval "DEFAULT_$LINE"
4469 else
4470 no_cache=1
4471 fi
4472
4473 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4474
4475fi;
4476
4477 eval "$ac_cv_use_sockets"
4478 if test "$no_cache" != 1; then
4479 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4480 fi
4481
4482 if test "$wxUSE_SOCKETS" = yes; then
4483 echo "$as_me:$LINENO: result: yes" >&5
4484echo "${ECHO_T}yes" >&6
4485 else
4486 echo "$as_me:$LINENO: result: no" >&5
4487echo "${ECHO_T}no" >&6
4488 fi
4489
4490
4491 enablestring=
4492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4493echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4494 no_cache=0
4495 # Check whether --enable-ole or --disable-ole was given.
4496if test "${enable_ole+set}" = set; then
4497 enableval="$enable_ole"
4498
4499 if test "$enableval" = yes; then
4500 ac_cv_use_ole='wxUSE_OLE=yes'
4501 else
4502 ac_cv_use_ole='wxUSE_OLE=no'
4503 fi
4504
4505else
4506
4507 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4508 if test "x$LINE" != x ; then
4509 eval "DEFAULT_$LINE"
4510 else
4511 no_cache=1
4512 fi
4513
4514 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4515
4516fi;
4517
4518 eval "$ac_cv_use_ole"
4519 if test "$no_cache" != 1; then
4520 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4521 fi
4522
4523 if test "$wxUSE_OLE" = yes; then
4524 echo "$as_me:$LINENO: result: yes" >&5
4525echo "${ECHO_T}yes" >&6
4526 else
4527 echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6
4529 fi
4530
4531
4532 enablestring=
4533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4534echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4535 no_cache=0
4536 # Check whether --enable-dataobj or --disable-dataobj was given.
4537if test "${enable_dataobj+set}" = set; then
4538 enableval="$enable_dataobj"
4539
4540 if test "$enableval" = yes; then
4541 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4542 else
4543 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4544 fi
4545
4546else
4547
4548 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4549 if test "x$LINE" != x ; then
4550 eval "DEFAULT_$LINE"
4551 else
4552 no_cache=1
4553 fi
4554
4555 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4556
4557fi;
4558
4559 eval "$ac_cv_use_dataobj"
4560 if test "$no_cache" != 1; then
4561 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4562 fi
4563
4564 if test "$wxUSE_DATAOBJ" = yes; then
4565 echo "$as_me:$LINENO: result: yes" >&5
4566echo "${ECHO_T}yes" >&6
4567 else
4568 echo "$as_me:$LINENO: result: no" >&5
4569echo "${ECHO_T}no" >&6
4570 fi
4571
4572
4573
4574 enablestring=
4575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4576echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4577 no_cache=0
4578 # Check whether --enable-ipc or --disable-ipc was given.
4579if test "${enable_ipc+set}" = set; then
4580 enableval="$enable_ipc"
4581
4582 if test "$enableval" = yes; then
4583 ac_cv_use_ipc='wxUSE_IPC=yes'
4584 else
4585 ac_cv_use_ipc='wxUSE_IPC=no'
4586 fi
4587
4588else
4589
4590 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4591 if test "x$LINE" != x ; then
4592 eval "DEFAULT_$LINE"
4593 else
4594 no_cache=1
4595 fi
4596
4597 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4598
4599fi;
4600
4601 eval "$ac_cv_use_ipc"
4602 if test "$no_cache" != 1; then
4603 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4604 fi
4605
4606 if test "$wxUSE_IPC" = yes; then
4607 echo "$as_me:$LINENO: result: yes" >&5
4608echo "${ECHO_T}yes" >&6
4609 else
4610 echo "$as_me:$LINENO: result: no" >&5
4611echo "${ECHO_T}no" >&6
4612 fi
4613
4614
4615
4616 enablestring=
4617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4618echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4619 no_cache=0
4620 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4621if test "${enable_apple_ieee+set}" = set; then
4622 enableval="$enable_apple_ieee"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4626 else
4627 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4628 fi
4629
4630else
4631
4632 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4640
4641fi;
4642
4643 eval "$ac_cv_use_apple_ieee"
4644 if test "$no_cache" != 1; then
4645 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4646 fi
4647
4648 if test "$wxUSE_APPLE_IEEE" = yes; then
4649 echo "$as_me:$LINENO: result: yes" >&5
4650echo "${ECHO_T}yes" >&6
4651 else
4652 echo "$as_me:$LINENO: result: no" >&5
4653echo "${ECHO_T}no" >&6
4654 fi
4655
4656
81f90336
MW
4657 enablestring=
4658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4659echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4660 no_cache=0
4661 # Check whether --enable-arcstream or --disable-arcstream was given.
4662if test "${enable_arcstream+set}" = set; then
4663 enableval="$enable_arcstream"
4664
4665 if test "$enableval" = yes; then
9e8e867f 4666 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4667 else
9e8e867f 4668 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4669 fi
4670
4671else
4672
9e8e867f 4673 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
9e8e867f 4680 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4681
4682fi;
4683
4684 eval "$ac_cv_use_arcstream"
4685 if test "$no_cache" != 1; then
4686 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4687 fi
4688
9e8e867f 4689 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4690 echo "$as_me:$LINENO: result: yes" >&5
4691echo "${ECHO_T}yes" >&6
4692 else
4693 echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6
4695 fi
4696
4697
a848cd7e 4698 enablestring=
36b6448c
VZ
4699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4700echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4701 no_cache=0
36b6448c
VZ
4702 # Check whether --enable-backtrace or --disable-backtrace was given.
4703if test "${enable_backtrace+set}" = set; then
4704 enableval="$enable_backtrace"
a848cd7e
SC
4705
4706 if test "$enableval" = yes; then
36b6448c 4707 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4708 else
36b6448c 4709 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4710 fi
4711
4712else
4713
36b6448c 4714 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 else
4718 no_cache=1
4719 fi
4720
36b6448c 4721 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4722
4723fi;
4724
36b6448c 4725 eval "$ac_cv_use_backtrace"
a848cd7e 4726 if test "$no_cache" != 1; then
36b6448c 4727 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4728 fi
4729
36b6448c 4730 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4731 echo "$as_me:$LINENO: result: yes" >&5
4732echo "${ECHO_T}yes" >&6
4733 else
4734 echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
4736 fi
4737
4738
eaff0f0d 4739 enablestring=
36b6448c
VZ
4740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4741echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4742 no_cache=0
36b6448c
VZ
4743 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4744if test "${enable_catch_segvs+set}" = set; then
4745 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4746
4747 if test "$enableval" = yes; then
36b6448c 4748 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4749 else
36b6448c 4750 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4751 fi
4752
4753else
4754
36b6448c 4755 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4756 if test "x$LINE" != x ; then
4757 eval "DEFAULT_$LINE"
4758 else
4759 no_cache=1
4760 fi
4761
36b6448c 4762 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4763
4764fi;
4765
36b6448c 4766 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4767 if test "$no_cache" != 1; then
36b6448c 4768 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4769 fi
4770
36b6448c 4771 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4772 echo "$as_me:$LINENO: result: yes" >&5
4773echo "${ECHO_T}yes" >&6
4774 else
4775 echo "$as_me:$LINENO: result: no" >&5
4776echo "${ECHO_T}no" >&6
4777 fi
4778
4779
a848cd7e
SC
4780 enablestring=
4781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4782echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4783 no_cache=0
4784 # Check whether --enable-cmdline or --disable-cmdline was given.
4785if test "${enable_cmdline+set}" = set; then
4786 enableval="$enable_cmdline"
4787
4788 if test "$enableval" = yes; then
4789 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4790 else
4791 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4792 fi
4793
4794else
4795
4796 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4797 if test "x$LINE" != x ; then
4798 eval "DEFAULT_$LINE"
4799 else
4800 no_cache=1
4801 fi
4802
4803 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4804
4805fi;
4806
4807 eval "$ac_cv_use_cmdline"
4808 if test "$no_cache" != 1; then
4809 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4810 fi
4811
4812 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4813 echo "$as_me:$LINENO: result: yes" >&5
4814echo "${ECHO_T}yes" >&6
4815 else
4816 echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
4818 fi
4819
4820
4821 enablestring=
4822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4823echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4824 no_cache=0
4825 # Check whether --enable-datetime or --disable-datetime was given.
4826if test "${enable_datetime+set}" = set; then
4827 enableval="$enable_datetime"
4828
4829 if test "$enableval" = yes; then
4830 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4831 else
4832 ac_cv_use_datetime='wxUSE_DATETIME=no'
4833 fi
4834
4835else
4836
4837 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4838 if test "x$LINE" != x ; then
4839 eval "DEFAULT_$LINE"
4840 else
4841 no_cache=1
4842 fi
4843
4844 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4845
4846fi;
4847
4848 eval "$ac_cv_use_datetime"
4849 if test "$no_cache" != 1; then
4850 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4851 fi
4852
4853 if test "$wxUSE_DATETIME" = yes; then
4854 echo "$as_me:$LINENO: result: yes" >&5
4855echo "${ECHO_T}yes" >&6
4856 else
4857 echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6
4859 fi
4860
4861
36b6448c
VZ
4862 enablestring=
4863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4864echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4865 no_cache=0
4866 # Check whether --enable-debugreport or --disable-debugreport was given.
4867if test "${enable_debugreport+set}" = set; then
4868 enableval="$enable_debugreport"
4869
4870 if test "$enableval" = yes; then
4871 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4872 else
4873 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4874 fi
4875
4876else
4877
4878 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4879 if test "x$LINE" != x ; then
4880 eval "DEFAULT_$LINE"
4881 else
4882 no_cache=1
4883 fi
4884
4885 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4886
4887fi;
4888
4889 eval "$ac_cv_use_debugreport"
4890 if test "$no_cache" != 1; then
4891 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4892 fi
4893
4894 if test "$wxUSE_DEBUGREPORT" = yes; then
4895 echo "$as_me:$LINENO: result: yes" >&5
4896echo "${ECHO_T}yes" >&6
4897 else
4898 echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6
4900 fi
4901
4902
a848cd7e
SC
4903 enablestring=
4904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4905echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4906 no_cache=0
4907 # Check whether --enable-dialupman or --disable-dialupman was given.
4908if test "${enable_dialupman+set}" = set; then
4909 enableval="$enable_dialupman"
4910
4911 if test "$enableval" = yes; then
4912 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4913 else
4914 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4915 fi
4916
4917else
4918
4919 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4920 if test "x$LINE" != x ; then
4921 eval "DEFAULT_$LINE"
4922 else
4923 no_cache=1
4924 fi
4925
4926 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4927
4928fi;
4929
4930 eval "$ac_cv_use_dialupman"
4931 if test "$no_cache" != 1; then
4932 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4933 fi
4934
4935 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4936 echo "$as_me:$LINENO: result: yes" >&5
4937echo "${ECHO_T}yes" >&6
4938 else
4939 echo "$as_me:$LINENO: result: no" >&5
4940echo "${ECHO_T}no" >&6
4941 fi
4942
4943
4944 enablestring=
4945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4946echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4947 no_cache=0
4948 # Check whether --enable-dynlib or --disable-dynlib was given.
4949if test "${enable_dynlib+set}" = set; then
4950 enableval="$enable_dynlib"
4951
4952 if test "$enableval" = yes; then
4953 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4954 else
4955 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4956 fi
4957
4958else
4959
4960 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4961 if test "x$LINE" != x ; then
4962 eval "DEFAULT_$LINE"
4963 else
4964 no_cache=1
4965 fi
4966
4967 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4968
4969fi;
4970
4971 eval "$ac_cv_use_dynlib"
4972 if test "$no_cache" != 1; then
4973 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4974 fi
4975
4976 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4977 echo "$as_me:$LINENO: result: yes" >&5
4978echo "${ECHO_T}yes" >&6
4979 else
4980 echo "$as_me:$LINENO: result: no" >&5
4981echo "${ECHO_T}no" >&6
4982 fi
4983
4984
4985 enablestring=
4986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4987echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4988 no_cache=0
4989 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4990if test "${enable_dynamicloader+set}" = set; then
4991 enableval="$enable_dynamicloader"
4992
4993 if test "$enableval" = yes; then
4994 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4995 else
4996 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4997 fi
4998
4999else
5000
5001 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5002 if test "x$LINE" != x ; then
5003 eval "DEFAULT_$LINE"
5004 else
5005 no_cache=1
5006 fi
5007
5008 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5009
5010fi;
5011
5012 eval "$ac_cv_use_dynamicloader"
5013 if test "$no_cache" != 1; then
5014 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5015 fi
5016
5017 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5018 echo "$as_me:$LINENO: result: yes" >&5
5019echo "${ECHO_T}yes" >&6
5020 else
5021 echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6
5023 fi
5024
5025
5026 enablestring=
5027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5028echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5029 no_cache=0
5030 # Check whether --enable-exceptions or --disable-exceptions was given.
5031if test "${enable_exceptions+set}" = set; then
5032 enableval="$enable_exceptions"
5033
5034 if test "$enableval" = yes; then
5035 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5036 else
5037 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5038 fi
5039
5040else
5041
5042 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5043 if test "x$LINE" != x ; then
5044 eval "DEFAULT_$LINE"
5045 else
5046 no_cache=1
5047 fi
5048
5049 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5050
5051fi;
5052
5053 eval "$ac_cv_use_exceptions"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_EXCEPTIONS" = yes; then
5059 echo "$as_me:$LINENO: result: yes" >&5
5060echo "${ECHO_T}yes" >&6
5061 else
5062 echo "$as_me:$LINENO: result: no" >&5
5063echo "${ECHO_T}no" >&6
5064 fi
5065
5066
5067 enablestring=
5068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5069echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5070 no_cache=0
5071 # Check whether --enable-ffile or --disable-ffile was given.
5072if test "${enable_ffile+set}" = set; then
5073 enableval="$enable_ffile"
5074
5075 if test "$enableval" = yes; then
5076 ac_cv_use_ffile='wxUSE_FFILE=yes'
5077 else
5078 ac_cv_use_ffile='wxUSE_FFILE=no'
5079 fi
5080
5081else
5082
5083 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5084 if test "x$LINE" != x ; then
5085 eval "DEFAULT_$LINE"
5086 else
5087 no_cache=1
5088 fi
5089
5090 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5091
5092fi;
5093
5094 eval "$ac_cv_use_ffile"
5095 if test "$no_cache" != 1; then
5096 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5097 fi
5098
5099 if test "$wxUSE_FFILE" = yes; then
5100 echo "$as_me:$LINENO: result: yes" >&5
5101echo "${ECHO_T}yes" >&6
5102 else
5103 echo "$as_me:$LINENO: result: no" >&5
5104echo "${ECHO_T}no" >&6
5105 fi
5106
5107
5108 enablestring=
5109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5110echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5111 no_cache=0
5112 # Check whether --enable-file or --disable-file was given.
5113if test "${enable_file+set}" = set; then
5114 enableval="$enable_file"
5115
5116 if test "$enableval" = yes; then
5117 ac_cv_use_file='wxUSE_FILE=yes'
5118 else
5119 ac_cv_use_file='wxUSE_FILE=no'
5120 fi
5121
5122else
5123
5124 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5125 if test "x$LINE" != x ; then
5126 eval "DEFAULT_$LINE"
5127 else
5128 no_cache=1
5129 fi
5130
5131 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5132
5133fi;
5134
5135 eval "$ac_cv_use_file"
5136 if test "$no_cache" != 1; then
5137 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5138 fi
5139
5140 if test "$wxUSE_FILE" = yes; then
5141 echo "$as_me:$LINENO: result: yes" >&5
5142echo "${ECHO_T}yes" >&6
5143 else
5144 echo "$as_me:$LINENO: result: no" >&5
5145echo "${ECHO_T}no" >&6
5146 fi
5147
5148
5149 enablestring=
5150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5151echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5152 no_cache=0
5153 # Check whether --enable-filesystem or --disable-filesystem was given.
5154if test "${enable_filesystem+set}" = set; then
5155 enableval="$enable_filesystem"
5156
5157 if test "$enableval" = yes; then
5158 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5159 else
5160 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5161 fi
5162
5163else
5164
5165 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5166 if test "x$LINE" != x ; then
5167 eval "DEFAULT_$LINE"
5168 else
5169 no_cache=1
5170 fi
5171
5172 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5173
5174fi;
5175
5176 eval "$ac_cv_use_filesystem"
5177 if test "$no_cache" != 1; then
5178 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5179 fi
5180
5181 if test "$wxUSE_FILESYSTEM" = yes; then
5182 echo "$as_me:$LINENO: result: yes" >&5
5183echo "${ECHO_T}yes" >&6
5184 else
5185 echo "$as_me:$LINENO: result: no" >&5
5186echo "${ECHO_T}no" >&6
5187 fi
5188
5189
5190 enablestring=
5191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5192echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5193 no_cache=0
5194 # Check whether --enable-fontmap or --disable-fontmap was given.
5195if test "${enable_fontmap+set}" = set; then
5196 enableval="$enable_fontmap"
5197
5198 if test "$enableval" = yes; then
5199 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5200 else
5201 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5202 fi
5203
5204else
5205
5206 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5207 if test "x$LINE" != x ; then
5208 eval "DEFAULT_$LINE"
5209 else
5210 no_cache=1
5211 fi
5212
5213 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5214
5215fi;
5216
5217 eval "$ac_cv_use_fontmap"
5218 if test "$no_cache" != 1; then
5219 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5220 fi
5221
5222 if test "$wxUSE_FONTMAP" = yes; then
5223 echo "$as_me:$LINENO: result: yes" >&5
5224echo "${ECHO_T}yes" >&6
5225 else
5226 echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228 fi
5229
5230
5231 enablestring=
5232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5233echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5234 no_cache=0
5235 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5236if test "${enable_fs_inet+set}" = set; then
5237 enableval="$enable_fs_inet"
5238
5239 if test "$enableval" = yes; then
5240 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5241 else
5242 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5243 fi
5244
5245else
5246
5247 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5248 if test "x$LINE" != x ; then
5249 eval "DEFAULT_$LINE"
5250 else
5251 no_cache=1
5252 fi
5253
5254 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5255
5256fi;
5257
5258 eval "$ac_cv_use_fs_inet"
5259 if test "$no_cache" != 1; then
5260 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5261 fi
5262
5263 if test "$wxUSE_FS_INET" = yes; then
5264 echo "$as_me:$LINENO: result: yes" >&5
5265echo "${ECHO_T}yes" >&6
5266 else
5267 echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6
5269 fi
5270
5271
5272 enablestring=
5273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5274echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5275 no_cache=0
5276 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5277if test "${enable_fs_zip+set}" = set; then
5278 enableval="$enable_fs_zip"
5279
5280 if test "$enableval" = yes; then
5281 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5282 else
5283 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5284 fi
5285
5286else
5287
5288 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5289 if test "x$LINE" != x ; then
5290 eval "DEFAULT_$LINE"
5291 else
5292 no_cache=1
5293 fi
5294
5295 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5296
5297fi;
5298
5299 eval "$ac_cv_use_fs_zip"
5300 if test "$no_cache" != 1; then
5301 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5302 fi
5303
5304 if test "$wxUSE_FS_ZIP" = yes; then
5305 echo "$as_me:$LINENO: result: yes" >&5
5306echo "${ECHO_T}yes" >&6
5307 else
5308 echo "$as_me:$LINENO: result: no" >&5
5309echo "${ECHO_T}no" >&6
5310 fi
5311
5312
5313 enablestring=
5314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5315echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5316 no_cache=0
5317 # Check whether --enable-geometry or --disable-geometry was given.
5318if test "${enable_geometry+set}" = set; then
5319 enableval="$enable_geometry"
5320
5321 if test "$enableval" = yes; then
5322 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5323 else
5324 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5325 fi
5326
5327else
5328
5329 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5330 if test "x$LINE" != x ; then
5331 eval "DEFAULT_$LINE"
5332 else
5333 no_cache=1
5334 fi
5335
5336 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5337
5338fi;
5339
5340 eval "$ac_cv_use_geometry"
5341 if test "$no_cache" != 1; then
5342 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5343 fi
5344
5345 if test "$wxUSE_GEOMETRY" = yes; then
5346 echo "$as_me:$LINENO: result: yes" >&5
5347echo "${ECHO_T}yes" >&6
5348 else
5349 echo "$as_me:$LINENO: result: no" >&5
5350echo "${ECHO_T}no" >&6
5351 fi
5352
5353
5354 enablestring=
5355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5356echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5357 no_cache=0
5358 # Check whether --enable-log or --disable-log was given.
5359if test "${enable_log+set}" = set; then
5360 enableval="$enable_log"
5361
5362 if test "$enableval" = yes; then
5363 ac_cv_use_log='wxUSE_LOG=yes'
5364 else
5365 ac_cv_use_log='wxUSE_LOG=no'
5366 fi
5367
5368else
5369
5370 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5378
5379fi;
5380
5381 eval "$ac_cv_use_log"
5382 if test "$no_cache" != 1; then
5383 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5384 fi
5385
5386 if test "$wxUSE_LOG" = yes; then
5387 echo "$as_me:$LINENO: result: yes" >&5
5388echo "${ECHO_T}yes" >&6
5389 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391echo "${ECHO_T}no" >&6
5392 fi
5393
5394
5395 enablestring=
5396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5397echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5398 no_cache=0
5399 # Check whether --enable-longlong or --disable-longlong was given.
5400if test "${enable_longlong+set}" = set; then
5401 enableval="$enable_longlong"
5402
5403 if test "$enableval" = yes; then
5404 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5405 else
5406 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5407 fi
5408
5409else
5410
5411 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5412 if test "x$LINE" != x ; then
5413 eval "DEFAULT_$LINE"
5414 else
5415 no_cache=1
5416 fi
5417
5418 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5419
5420fi;
5421
5422 eval "$ac_cv_use_longlong"
5423 if test "$no_cache" != 1; then
5424 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5425 fi
5426
5427 if test "$wxUSE_LONGLONG" = yes; then
5428 echo "$as_me:$LINENO: result: yes" >&5
5429echo "${ECHO_T}yes" >&6
5430 else
5431 echo "$as_me:$LINENO: result: no" >&5
5432echo "${ECHO_T}no" >&6
5433 fi
5434
5435
5436 enablestring=
5437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5438echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5439 no_cache=0
5440 # Check whether --enable-mimetype or --disable-mimetype was given.
5441if test "${enable_mimetype+set}" = set; then
5442 enableval="$enable_mimetype"
5443
5444 if test "$enableval" = yes; then
5445 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5446 else
5447 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5448 fi
5449
5450else
5451
5452 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
5459 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5460
5461fi;
5462
5463 eval "$ac_cv_use_mimetype"
5464 if test "$no_cache" != 1; then
5465 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5466 fi
5467
5468 if test "$wxUSE_MIMETYPE" = yes; then
5469 echo "$as_me:$LINENO: result: yes" >&5
5470echo "${ECHO_T}yes" >&6
5471 else
5472 echo "$as_me:$LINENO: result: no" >&5
5473echo "${ECHO_T}no" >&6
5474 fi
5475
5476
5477 enablestring=
5478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5479echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5480 no_cache=0
5481 # Check whether --enable-mslu or --disable-mslu was given.
5482if test "${enable_mslu+set}" = set; then
5483 enableval="$enable_mslu"
5484
5485 if test "$enableval" = yes; then
5486 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5487 else
5488 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5489 fi
5490
5491else
5492
5493 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5494 if test "x$LINE" != x ; then
5495 eval "DEFAULT_$LINE"
5496 else
5497 no_cache=1
5498 fi
5499
5500 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5501
5502fi;
5503
5504 eval "$ac_cv_use_mslu"
5505 if test "$no_cache" != 1; then
5506 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5507 fi
5508
5509 if test "$wxUSE_UNICODE_MSLU" = yes; then
5510 echo "$as_me:$LINENO: result: yes" >&5
5511echo "${ECHO_T}yes" >&6
5512 else
5513 echo "$as_me:$LINENO: result: no" >&5
5514echo "${ECHO_T}no" >&6
5515 fi
5516
5517
5518 enablestring=
5519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5520echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5521 no_cache=0
5522 # Check whether --enable-snglinst or --disable-snglinst was given.
5523if test "${enable_snglinst+set}" = set; then
5524 enableval="$enable_snglinst"
5525
5526 if test "$enableval" = yes; then
5527 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5528 else
5529 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5530 fi
5531
5532else
5533
5534 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5535 if test "x$LINE" != x ; then
5536 eval "DEFAULT_$LINE"
5537 else
5538 no_cache=1
5539 fi
5540
5541 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5542
5543fi;
5544
5545 eval "$ac_cv_use_snglinst"
5546 if test "$no_cache" != 1; then
5547 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5548 fi
5549
5550 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5551 echo "$as_me:$LINENO: result: yes" >&5
5552echo "${ECHO_T}yes" >&6
5553 else
5554 echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6
5556 fi
5557
5558
5559 enablestring=
07158944
VZ
5560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5561echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5562 no_cache=0
07158944
VZ
5563 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5564if test "${enable_std_iostreams+set}" = set; then
5565 enableval="$enable_std_iostreams"
a848cd7e
SC
5566
5567 if test "$enableval" = yes; then
07158944 5568 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5569 else
07158944 5570 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5571 fi
5572
5573else
5574
07158944 5575 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5576 if test "x$LINE" != x ; then
5577 eval "DEFAULT_$LINE"
5578 else
5579 no_cache=1
5580 fi
5581
07158944 5582 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5583
5584fi;
5585
07158944 5586 eval "$ac_cv_use_std_iostreams"
a848cd7e 5587 if test "$no_cache" != 1; then
07158944 5588 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5589 fi
5590
07158944 5591 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5592 echo "$as_me:$LINENO: result: yes" >&5
5593echo "${ECHO_T}yes" >&6
5594 else
5595 echo "$as_me:$LINENO: result: no" >&5
5596echo "${ECHO_T}no" >&6
5597 fi
5598
5599
59746b65
MW
5600 enablestring=
5601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5602echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5603 no_cache=0
5604 # Check whether --enable-std_string or --disable-std_string was given.
5605if test "${enable_std_string+set}" = set; then
5606 enableval="$enable_std_string"
5607
5608 if test "$enableval" = yes; then
5609 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5610 else
5611 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5612 fi
5613
5614else
5615
5616 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5617 if test "x$LINE" != x ; then
5618 eval "DEFAULT_$LINE"
5619 else
5620 no_cache=1
5621 fi
5622
5623 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5624
5625fi;
5626
5627 eval "$ac_cv_use_std_string"
5628 if test "$no_cache" != 1; then
5629 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5630 fi
5631
5632 if test "$wxUSE_STD_STRING" = yes; then
5633 echo "$as_me:$LINENO: result: yes" >&5
5634echo "${ECHO_T}yes" >&6
5635 else
5636 echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638 fi
5639
5640
a848cd7e 5641 enablestring=
07158944
VZ
5642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5643echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5644 no_cache=0
07158944
VZ
5645 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5646if test "${enable_stdpaths+set}" = set; then
5647 enableval="$enable_stdpaths"
a848cd7e
SC
5648
5649 if test "$enableval" = yes; then
07158944 5650 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5651 else
07158944 5652 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5653 fi
5654
5655else
5656
07158944 5657 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5658 if test "x$LINE" != x ; then
5659 eval "DEFAULT_$LINE"
5660 else
5661 no_cache=1
5662 fi
5663
07158944 5664 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5665
5666fi;
5667
07158944 5668 eval "$ac_cv_use_stdpaths"
a848cd7e 5669 if test "$no_cache" != 1; then
07158944 5670 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5671 fi
5672
07158944 5673 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5674 echo "$as_me:$LINENO: result: yes" >&5
5675echo "${ECHO_T}yes" >&6
5676 else
5677 echo "$as_me:$LINENO: result: no" >&5
5678echo "${ECHO_T}no" >&6
5679 fi
5680
5681
5682 enablestring=
5683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5684echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5685 no_cache=0
5686 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5687if test "${enable_stopwatch+set}" = set; then
5688 enableval="$enable_stopwatch"
5689
5690 if test "$enableval" = yes; then
5691 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5692 else
5693 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5694 fi
5695
5696else
5697
5698 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5699 if test "x$LINE" != x ; then
5700 eval "DEFAULT_$LINE"
5701 else
5702 no_cache=1
5703 fi
5704
5705 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5706
5707fi;
5708
5709 eval "$ac_cv_use_stopwatch"
5710 if test "$no_cache" != 1; then
5711 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5712 fi
5713
5714 if test "$wxUSE_STOPWATCH" = yes; then
5715 echo "$as_me:$LINENO: result: yes" >&5
5716echo "${ECHO_T}yes" >&6
5717 else
5718 echo "$as_me:$LINENO: result: no" >&5
5719echo "${ECHO_T}no" >&6
5720 fi
5721
5722
07158944
VZ
5723 enablestring=
5724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5725echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5726 no_cache=0
5727 # Check whether --enable-streams or --disable-streams was given.
5728if test "${enable_streams+set}" = set; then
5729 enableval="$enable_streams"
5730
5731 if test "$enableval" = yes; then
5732 ac_cv_use_streams='wxUSE_STREAMS=yes'
5733 else
5734 ac_cv_use_streams='wxUSE_STREAMS=no'
5735 fi
5736
5737else
5738
5739 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5740 if test "x$LINE" != x ; then
5741 eval "DEFAULT_$LINE"
5742 else
5743 no_cache=1
5744 fi
5745
5746 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5747
5748fi;
5749
5750 eval "$ac_cv_use_streams"
5751 if test "$no_cache" != 1; then
5752 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5753 fi
5754
5755 if test "$wxUSE_STREAMS" = yes; then
5756 echo "$as_me:$LINENO: result: yes" >&5
5757echo "${ECHO_T}yes" >&6
5758 else
5759 echo "$as_me:$LINENO: result: no" >&5
5760echo "${ECHO_T}no" >&6
5761 fi
5762
5763
a848cd7e
SC
5764 enablestring=
5765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5766echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5767 no_cache=0
5768 # Check whether --enable-system_options or --disable-system_options was given.
5769if test "${enable_system_options+set}" = set; then
5770 enableval="$enable_system_options"
5771
5772 if test "$enableval" = yes; then
5773 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5774 else
5775 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5776 fi
5777
5778else
5779
5780 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5781 if test "x$LINE" != x ; then
5782 eval "DEFAULT_$LINE"
5783 else
5784 no_cache=1
5785 fi
5786
5787 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5788
5789fi;
5790
5791 eval "$ac_cv_use_system_options"
5792 if test "$no_cache" != 1; then
5793 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5794 fi
5795
5796 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5797 echo "$as_me:$LINENO: result: yes" >&5
5798echo "${ECHO_T}yes" >&6
5799 else
5800 echo "$as_me:$LINENO: result: no" >&5
5801echo "${ECHO_T}no" >&6
5802 fi
5803
5804
5805 enablestring=
5806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5807echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5808 no_cache=0
5809 # Check whether --enable-textbuf or --disable-textbuf was given.
5810if test "${enable_textbuf+set}" = set; then
5811 enableval="$enable_textbuf"
5812
5813 if test "$enableval" = yes; then
5814 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5815 else
5816 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5817 fi
5818
5819else
5820
5821 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5822 if test "x$LINE" != x ; then
5823 eval "DEFAULT_$LINE"
5824 else
5825 no_cache=1
5826 fi
5827
5828 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5829
5830fi;
5831
5832 eval "$ac_cv_use_textbuf"
5833 if test "$no_cache" != 1; then
5834 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5835 fi
5836
5837 if test "$wxUSE_TEXTBUFFER" = yes; then
5838 echo "$as_me:$LINENO: result: yes" >&5
5839echo "${ECHO_T}yes" >&6
5840 else
5841 echo "$as_me:$LINENO: result: no" >&5
5842echo "${ECHO_T}no" >&6
5843 fi
5844
5845
5846 enablestring=
5847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5848echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5849 no_cache=0
5850 # Check whether --enable-textfile or --disable-textfile was given.
5851if test "${enable_textfile+set}" = set; then
5852 enableval="$enable_textfile"
5853
5854 if test "$enableval" = yes; then
5855 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5856 else
5857 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5858 fi
5859
5860else
5861
5862 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5863 if test "x$LINE" != x ; then
5864 eval "DEFAULT_$LINE"
5865 else
5866 no_cache=1
5867 fi
5868
5869 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5870
5871fi;
5872
5873 eval "$ac_cv_use_textfile"
5874 if test "$no_cache" != 1; then
5875 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5876 fi
5877
5878 if test "$wxUSE_TEXTFILE" = yes; then
5879 echo "$as_me:$LINENO: result: yes" >&5
5880echo "${ECHO_T}yes" >&6
5881 else
5882 echo "$as_me:$LINENO: result: no" >&5
5883echo "${ECHO_T}no" >&6
5884 fi
5885
5886
5887 enablestring=
5888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5889echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5890 no_cache=0
5891 # Check whether --enable-timer or --disable-timer was given.
5892if test "${enable_timer+set}" = set; then
5893 enableval="$enable_timer"
5894
5895 if test "$enableval" = yes; then
5896 ac_cv_use_timer='wxUSE_TIMER=yes'
5897 else
5898 ac_cv_use_timer='wxUSE_TIMER=no'
5899 fi
5900
5901else
5902
5903 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5904 if test "x$LINE" != x ; then
5905 eval "DEFAULT_$LINE"
5906 else
5907 no_cache=1
5908 fi
5909
5910 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5911
5912fi;
5913
5914 eval "$ac_cv_use_timer"
5915 if test "$no_cache" != 1; then
5916 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5917 fi
5918
5919 if test "$wxUSE_TIMER" = yes; then
5920 echo "$as_me:$LINENO: result: yes" >&5
5921echo "${ECHO_T}yes" >&6
5922 else
5923 echo "$as_me:$LINENO: result: no" >&5
5924echo "${ECHO_T}no" >&6
5925 fi
5926
5927
5928 enablestring=
5929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5930echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5931 no_cache=0
5932 # Check whether --enable-unicode or --disable-unicode was given.
5933if test "${enable_unicode+set}" = set; then
5934 enableval="$enable_unicode"
5935
5936 if test "$enableval" = yes; then
5937 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5938 else
5939 ac_cv_use_unicode='wxUSE_UNICODE=no'
5940 fi
5941
5942else
5943
5944 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5945 if test "x$LINE" != x ; then
5946 eval "DEFAULT_$LINE"
5947 else
5948 no_cache=1
5949 fi
5950
5951 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5952
5953fi;
5954
5955 eval "$ac_cv_use_unicode"
5956 if test "$no_cache" != 1; then
5957 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5958 fi
5959
5960 if test "$wxUSE_UNICODE" = yes; then
5961 echo "$as_me:$LINENO: result: yes" >&5
5962echo "${ECHO_T}yes" >&6
5963 else
5964 echo "$as_me:$LINENO: result: no" >&5
5965echo "${ECHO_T}no" >&6
5966 fi
5967
5968
5969 enablestring=
5970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5971echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5972 no_cache=0
5973 # Check whether --enable-sound or --disable-sound was given.
5974if test "${enable_sound+set}" = set; then
5975 enableval="$enable_sound"
5976
5977 if test "$enableval" = yes; then
5978 ac_cv_use_sound='wxUSE_SOUND=yes'
5979 else
5980 ac_cv_use_sound='wxUSE_SOUND=no'
5981 fi
5982
5983else
5984
5985 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5986 if test "x$LINE" != x ; then
5987 eval "DEFAULT_$LINE"
5988 else
5989 no_cache=1
5990 fi
5991
5992 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5993
5994fi;
5995
5996 eval "$ac_cv_use_sound"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_SOUND" = yes; then
6002 echo "$as_me:$LINENO: result: yes" >&5
6003echo "${ECHO_T}yes" >&6
6004 else
6005 echo "$as_me:$LINENO: result: no" >&5
6006echo "${ECHO_T}no" >&6
6007 fi
6008
6009
3b57de8b
RL
6010 enablestring=
6011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6012echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6013 no_cache=0
6014 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6015if test "${enable_mediactrl+set}" = set; then
6016 enableval="$enable_mediactrl"
6017
6018 if test "$enableval" = yes; then
6019 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6020 else
6021 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6022 fi
6023
6024else
6025
6026 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6027 if test "x$LINE" != x ; then
6028 eval "DEFAULT_$LINE"
6029 else
6030 no_cache=1
6031 fi
6032
6033 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6034
6035fi;
6036
6037 eval "$ac_cv_use_mediactrl"
6038 if test "$no_cache" != 1; then
6039 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6040 fi
6041
6042 if test "$wxUSE_MEDIACTRL" = yes; then
6043 echo "$as_me:$LINENO: result: yes" >&5
6044echo "${ECHO_T}yes" >&6
6045 else
6046 echo "$as_me:$LINENO: result: no" >&5
6047echo "${ECHO_T}no" >&6
6048 fi
6049
6050
a848cd7e
SC
6051 enablestring=
6052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6053echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6054 no_cache=0
6055 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6056if test "${enable_wxprintfv+set}" = set; then
6057 enableval="$enable_wxprintfv"
6058
6059 if test "$enableval" = yes; then
6060 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6061 else
6062 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6063 fi
6064
6065else
6066
6067 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6068 if test "x$LINE" != x ; then
6069 eval "DEFAULT_$LINE"
6070 else
6071 no_cache=1
6072 fi
6073
6074 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6075
6076fi;
6077
6078 eval "$ac_cv_use_wxprintfv"
6079 if test "$no_cache" != 1; then
6080 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6081 fi
6082
6083 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6084 echo "$as_me:$LINENO: result: yes" >&5
6085echo "${ECHO_T}yes" >&6
6086 else
6087 echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6
6089 fi
6090
6091
6092 enablestring=
6093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6094echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6095 no_cache=0
6096 # Check whether --enable-zipstream or --disable-zipstream was given.
6097if test "${enable_zipstream+set}" = set; then
6098 enableval="$enable_zipstream"
6099
6100 if test "$enableval" = yes; then
6101 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6102 else
6103 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6104 fi
6105
6106else
6107
6108 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6109 if test "x$LINE" != x ; then
6110 eval "DEFAULT_$LINE"
6111 else
6112 no_cache=1
6113 fi
6114
6115 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6116
6117fi;
6118
6119 eval "$ac_cv_use_zipstream"
6120 if test "$no_cache" != 1; then
6121 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6122 fi
6123
6124 if test "$wxUSE_ZIPSTREAM" = yes; then
6125 echo "$as_me:$LINENO: result: yes" >&5
6126echo "${ECHO_T}yes" >&6
6127 else
6128 echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
6130 fi
6131
6132
a848cd7e
SC
6133
6134 enablestring=
6135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6136echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6137 no_cache=0
6138 # Check whether --enable-url or --disable-url was given.
6139if test "${enable_url+set}" = set; then
6140 enableval="$enable_url"
6141
6142 if test "$enableval" = yes; then
6143 ac_cv_use_url='wxUSE_URL=yes'
6144 else
6145 ac_cv_use_url='wxUSE_URL=no'
6146 fi
6147
6148else
6149
6150 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6151 if test "x$LINE" != x ; then
6152 eval "DEFAULT_$LINE"
6153 else
6154 no_cache=1
6155 fi
6156
6157 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6158
6159fi;
6160
6161 eval "$ac_cv_use_url"
6162 if test "$no_cache" != 1; then
6163 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6164 fi
6165
6166 if test "$wxUSE_URL" = yes; then
6167 echo "$as_me:$LINENO: result: yes" >&5
6168echo "${ECHO_T}yes" >&6
6169 else
6170 echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6
6172 fi
6173
6174
6175 enablestring=
6176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6177echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6178 no_cache=0
6179 # Check whether --enable-protocol or --disable-protocol was given.
6180if test "${enable_protocol+set}" = set; then
6181 enableval="$enable_protocol"
6182
6183 if test "$enableval" = yes; then
6184 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6185 else
6186 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6187 fi
6188
6189else
6190
6191 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6192 if test "x$LINE" != x ; then
6193 eval "DEFAULT_$LINE"
6194 else
6195 no_cache=1
6196 fi
6197
6198 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6199
6200fi;
6201
6202 eval "$ac_cv_use_protocol"
6203 if test "$no_cache" != 1; then
6204 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6205 fi
6206
6207 if test "$wxUSE_PROTOCOL" = yes; then
6208 echo "$as_me:$LINENO: result: yes" >&5
6209echo "${ECHO_T}yes" >&6
6210 else
6211 echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6
6213 fi
6214
6215
6216 enablestring=
6217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6218echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6219 no_cache=0
6220 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6221if test "${enable_protocol_http+set}" = set; then
6222 enableval="$enable_protocol_http"
6223
6224 if test "$enableval" = yes; then
6225 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6226 else
6227 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6228 fi
6229
6230else
6231
6232 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 else
6236 no_cache=1
6237 fi
6238
6239 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6240
6241fi;
6242
6243 eval "$ac_cv_use_protocol_http"
6244 if test "$no_cache" != 1; then
6245 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6246 fi
6247
6248 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6249 echo "$as_me:$LINENO: result: yes" >&5
6250echo "${ECHO_T}yes" >&6
6251 else
6252 echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6
6254 fi
6255
6256
6257 enablestring=
6258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6259echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6260 no_cache=0
6261 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6262if test "${enable_protocol_ftp+set}" = set; then
6263 enableval="$enable_protocol_ftp"
6264
6265 if test "$enableval" = yes; then
6266 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6267 else
6268 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6269 fi
6270
6271else
6272
6273 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6274 if test "x$LINE" != x ; then
6275 eval "DEFAULT_$LINE"
6276 else
6277 no_cache=1
6278 fi
6279
6280 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6281
6282fi;
6283
6284 eval "$ac_cv_use_protocol_ftp"
6285 if test "$no_cache" != 1; then
6286 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6287 fi
6288
6289 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6290 echo "$as_me:$LINENO: result: yes" >&5
6291echo "${ECHO_T}yes" >&6
6292 else
6293 echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6
6295 fi
6296
6297
6298 enablestring=
6299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6300echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6301 no_cache=0
6302 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6303if test "${enable_protocol_file+set}" = set; then
6304 enableval="$enable_protocol_file"
6305
6306 if test "$enableval" = yes; then
6307 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6308 else
6309 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6310 fi
6311
6312else
6313
6314 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6322
6323fi;
6324
6325 eval "$ac_cv_use_protocol_file"
6326 if test "$no_cache" != 1; then
6327 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6328 fi
6329
6330 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6331 echo "$as_me:$LINENO: result: yes" >&5
6332echo "${ECHO_T}yes" >&6
6333 else
6334 echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6
6336 fi
6337
6338
6339
6340
6341
6342 enablestring=
6343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6344echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6345 no_cache=0
6346 # Check whether --enable-threads or --disable-threads was given.
6347if test "${enable_threads+set}" = set; then
6348 enableval="$enable_threads"
6349
6350 if test "$enableval" = yes; then
6351 ac_cv_use_threads='wxUSE_THREADS=yes'
6352 else
6353 ac_cv_use_threads='wxUSE_THREADS=no'
6354 fi
6355
6356else
6357
6358 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6359 if test "x$LINE" != x ; then
6360 eval "DEFAULT_$LINE"
6361 else
6362 no_cache=1
6363 fi
6364
6365 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6366
6367fi;
6368
6369 eval "$ac_cv_use_threads"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_THREADS" = yes; then
6375 echo "$as_me:$LINENO: result: yes" >&5
6376echo "${ECHO_T}yes" >&6
6377 else
6378 echo "$as_me:$LINENO: result: no" >&5
6379echo "${ECHO_T}no" >&6
6380 fi
6381
6382
6383if test "$wxUSE_GUI" = "yes"; then
6384
6385
6386
6387 enablestring=
6388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6389echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6390 no_cache=0
6391 # Check whether --enable-docview or --disable-docview was given.
6392if test "${enable_docview+set}" = set; then
6393 enableval="$enable_docview"
6394
6395 if test "$enableval" = yes; then
6396 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6397 else
6398 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6399 fi
6400
6401else
6402
6403 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6404 if test "x$LINE" != x ; then
6405 eval "DEFAULT_$LINE"
6406 else
6407 no_cache=1
6408 fi
6409
6410 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6411
6412fi;
6413
6414 eval "$ac_cv_use_docview"
6415 if test "$no_cache" != 1; then
6416 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6417 fi
6418
6419 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6420 echo "$as_me:$LINENO: result: yes" >&5
6421echo "${ECHO_T}yes" >&6
6422 else
6423 echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6
6425 fi
6426
6427
6428 enablestring=
6429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6430echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6431 no_cache=0
6432 # Check whether --enable-help or --disable-help was given.
6433if test "${enable_help+set}" = set; then
6434 enableval="$enable_help"
6435
6436 if test "$enableval" = yes; then
6437 ac_cv_use_help='wxUSE_HELP=yes'
6438 else
6439 ac_cv_use_help='wxUSE_HELP=no'
6440 fi
6441
6442else
6443
6444 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6445 if test "x$LINE" != x ; then
6446 eval "DEFAULT_$LINE"
6447 else
6448 no_cache=1
6449 fi
6450
6451 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6452
6453fi;
6454
6455 eval "$ac_cv_use_help"
6456 if test "$no_cache" != 1; then
6457 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6458 fi
6459
6460 if test "$wxUSE_HELP" = yes; then
6461 echo "$as_me:$LINENO: result: yes" >&5
6462echo "${ECHO_T}yes" >&6
6463 else
6464 echo "$as_me:$LINENO: result: no" >&5
6465echo "${ECHO_T}no" >&6
6466 fi
6467
6468
6469 enablestring=
6470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6471echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6472 no_cache=0
6473 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6474if test "${enable_mshtmlhelp+set}" = set; then
6475 enableval="$enable_mshtmlhelp"
6476
6477 if test "$enableval" = yes; then
6478 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6479 else
6480 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6481 fi
6482
6483else
6484
6485 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6486 if test "x$LINE" != x ; then
6487 eval "DEFAULT_$LINE"
6488 else
6489 no_cache=1
6490 fi
6491
6492 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6493
6494fi;
6495
6496 eval "$ac_cv_use_mshtmlhelp"
6497 if test "$no_cache" != 1; then
6498 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6499 fi
6500
6501 if test "$wxUSE_MS_HTML_HELP" = yes; then
6502 echo "$as_me:$LINENO: result: yes" >&5
6503echo "${ECHO_T}yes" >&6
6504 else
6505 echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6
6507 fi
6508
6509
6510 enablestring=
6511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6512echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6513 no_cache=0
6514 # Check whether --enable-html or --disable-html was given.
6515if test "${enable_html+set}" = set; then
6516 enableval="$enable_html"
6517
6518 if test "$enableval" = yes; then
6519 ac_cv_use_html='wxUSE_HTML=yes'
6520 else
6521 ac_cv_use_html='wxUSE_HTML=no'
6522 fi
6523
6524else
6525
6526 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6527 if test "x$LINE" != x ; then
6528 eval "DEFAULT_$LINE"
6529 else
6530 no_cache=1
6531 fi
6532
6533 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6534
6535fi;
6536
6537 eval "$ac_cv_use_html"
6538 if test "$no_cache" != 1; then
6539 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6540 fi
6541
6542 if test "$wxUSE_HTML" = yes; then
6543 echo "$as_me:$LINENO: result: yes" >&5
6544echo "${ECHO_T}yes" >&6
6545 else
6546 echo "$as_me:$LINENO: result: no" >&5
6547echo "${ECHO_T}no" >&6
6548 fi
6549
6550
6551 enablestring=
6552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6553echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6554 no_cache=0
6555 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6556if test "${enable_htmlhelp+set}" = set; then
6557 enableval="$enable_htmlhelp"
6558
6559 if test "$enableval" = yes; then
6560 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6561 else
6562 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6563 fi
6564
6565else
6566
6567 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6568 if test "x$LINE" != x ; then
6569 eval "DEFAULT_$LINE"
6570 else
6571 no_cache=1
6572 fi
6573
6574 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6575
6576fi;
6577
6578 eval "$ac_cv_use_htmlhelp"
6579 if test "$no_cache" != 1; then
6580 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6581 fi
6582
6583 if test "$wxUSE_WXHTML_HELP" = yes; then
6584 echo "$as_me:$LINENO: result: yes" >&5
6585echo "${ECHO_T}yes" >&6
6586 else
6587 echo "$as_me:$LINENO: result: no" >&5
6588echo "${ECHO_T}no" >&6
6589 fi
6590
6591
9a8f0513
VS
6592 enablestring=
6593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6594echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6595 no_cache=0
6596 # Check whether --enable-xrc or --disable-xrc was given.
6597if test "${enable_xrc+set}" = set; then
6598 enableval="$enable_xrc"
6599
6600 if test "$enableval" = yes; then
6601 ac_cv_use_xrc='wxUSE_XRC=yes'
6602 else
6603 ac_cv_use_xrc='wxUSE_XRC=no'
6604 fi
6605
6606else
6607
6608 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6609 if test "x$LINE" != x ; then
6610 eval "DEFAULT_$LINE"
6611 else
6612 no_cache=1
6613 fi
6614
6615 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6616
6617fi;
6618
6619 eval "$ac_cv_use_xrc"
6620 if test "$no_cache" != 1; then
6621 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6622 fi
6623
6624 if test "$wxUSE_XRC" = yes; then
6625 echo "$as_me:$LINENO: result: yes" >&5
6626echo "${ECHO_T}yes" >&6
6627 else
6628 echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6
6630 fi
6631
6632
a848cd7e
SC
6633 enablestring=
6634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6635echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6636 no_cache=0
6637 # Check whether --enable-constraints or --disable-constraints was given.
6638if test "${enable_constraints+set}" = set; then
6639 enableval="$enable_constraints"
6640
6641 if test "$enableval" = yes; then
6642 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6643 else
6644 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6645 fi
6646
6647else
6648
6649 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6650 if test "x$LINE" != x ; then
6651 eval "DEFAULT_$LINE"
6652 else
6653 no_cache=1
6654 fi
6655
6656 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6657
6658fi;
6659
6660 eval "$ac_cv_use_constraints"
6661 if test "$no_cache" != 1; then
6662 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6663 fi
6664
6665 if test "$wxUSE_CONSTRAINTS" = yes; then
6666 echo "$as_me:$LINENO: result: yes" >&5
6667echo "${ECHO_T}yes" >&6
6668 else
6669 echo "$as_me:$LINENO: result: no" >&5
6670echo "${ECHO_T}no" >&6
6671 fi
6672
6673
6674 enablestring=
6675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6676echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6677 no_cache=0
6678 # Check whether --enable-printarch or --disable-printarch was given.
6679if test "${enable_printarch+set}" = set; then
6680 enableval="$enable_printarch"
6681
6682 if test "$enableval" = yes; then
6683 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6684 else
6685 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6686 fi
6687
6688else
6689
6690 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6691 if test "x$LINE" != x ; then
6692 eval "DEFAULT_$LINE"
6693 else
6694 no_cache=1
6695 fi
6696
6697 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6698
6699fi;
6700
6701 eval "$ac_cv_use_printarch"
6702 if test "$no_cache" != 1; then
6703 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6704 fi
6705
6706 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6707 echo "$as_me:$LINENO: result: yes" >&5
6708echo "${ECHO_T}yes" >&6
6709 else
6710 echo "$as_me:$LINENO: result: no" >&5
6711echo "${ECHO_T}no" >&6
6712 fi
6713
6714
6715 enablestring=
6716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6717echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6718 no_cache=0
6719 # Check whether --enable-mdi or --disable-mdi was given.
6720if test "${enable_mdi+set}" = set; then
6721 enableval="$enable_mdi"
6722
6723 if test "$enableval" = yes; then
8a7b1113 6724 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6725 else
8a7b1113 6726 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6727 fi
6728
6729else
6730
8a7b1113 6731 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6732 if test "x$LINE" != x ; then
6733 eval "DEFAULT_$LINE"
6734 else
6735 no_cache=1
6736 fi
6737
8a7b1113 6738 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6739
6740fi;
6741
6742 eval "$ac_cv_use_mdi"
6743 if test "$no_cache" != 1; then
6744 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6745 fi
6746
8a7b1113
VZ
6747 if test "$wxUSE_MDI" = yes; then
6748 echo "$as_me:$LINENO: result: yes" >&5
6749echo "${ECHO_T}yes" >&6
6750 else
6751 echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6
6753 fi
6754
6755
6756 enablestring=
6757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6758echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6759 no_cache=0
6760 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6761if test "${enable_mdidoc+set}" = set; then
6762 enableval="$enable_mdidoc"
6763
6764 if test "$enableval" = yes; then
6765 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6766 else
6767 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6768 fi
6769
6770else
6771
6772 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6773 if test "x$LINE" != x ; then
6774 eval "DEFAULT_$LINE"
6775 else
6776 no_cache=1
6777 fi
6778
6779 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6780
6781fi;
6782
6783 eval "$ac_cv_use_mdidoc"
6784 if test "$no_cache" != 1; then
6785 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6786 fi
6787
a848cd7e
SC
6788 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6789 echo "$as_me:$LINENO: result: yes" >&5
6790echo "${ECHO_T}yes" >&6
6791 else
6792 echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6
6794 fi
6795
6796
6797 enablestring=
6798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6799echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6800 no_cache=0
6801 # Check whether --enable-loggui or --disable-loggui was given.
6802if test "${enable_loggui+set}" = set; then
6803 enableval="$enable_loggui"
6804
6805 if test "$enableval" = yes; then
6806 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6807 else
6808 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6809 fi
6810
6811else
6812
6813 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6814 if test "x$LINE" != x ; then
6815 eval "DEFAULT_$LINE"
6816 else
6817 no_cache=1
6818 fi
6819
6820 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6821
6822fi;
6823
6824 eval "$ac_cv_use_loggui"
6825 if test "$no_cache" != 1; then
6826 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6827 fi
6828
6829 if test "$wxUSE_LOGGUI" = yes; then
6830 echo "$as_me:$LINENO: result: yes" >&5
6831echo "${ECHO_T}yes" >&6
6832 else
6833 echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6
6835 fi
6836
6837
6838 enablestring=
6839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6840echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6841 no_cache=0
6842 # Check whether --enable-logwin or --disable-logwin was given.
6843if test "${enable_logwin+set}" = set; then
6844 enableval="$enable_logwin"
6845
6846 if test "$enableval" = yes; then
6847 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6848 else
6849 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6850 fi
6851
6852else
6853
6854 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6855 if test "x$LINE" != x ; then
6856 eval "DEFAULT_$LINE"
6857 else
6858 no_cache=1
6859 fi
6860
6861 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6862
6863fi;
6864
6865 eval "$ac_cv_use_logwin"
6866 if test "$no_cache" != 1; then
6867 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6868 fi
6869
6870 if test "$wxUSE_LOGWINDOW" = yes; then
6871 echo "$as_me:$LINENO: result: yes" >&5
6872echo "${ECHO_T}yes" >&6
6873 else
6874 echo "$as_me:$LINENO: result: no" >&5
6875echo "${ECHO_T}no" >&6
6876 fi
6877
6878
6879 enablestring=
6880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6881echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6882 no_cache=0
6883 # Check whether --enable-logdialog or --disable-logdialog was given.
6884if test "${enable_logdialog+set}" = set; then
6885 enableval="$enable_logdialog"
6886
6887 if test "$enableval" = yes; then
6888 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6889 else
6890 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6891 fi
6892
6893else
6894
6895 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6896 if test "x$LINE" != x ; then
6897 eval "DEFAULT_$LINE"
6898 else
6899 no_cache=1
6900 fi
6901
6902 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6903
6904fi;
6905
6906 eval "$ac_cv_use_logdialog"
6907 if test "$no_cache" != 1; then
6908 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6909 fi
6910
6911 if test "$wxUSE_LOGDIALOG" = yes; then
6912 echo "$as_me:$LINENO: result: yes" >&5
6913echo "${ECHO_T}yes" >&6
6914 else
6915 echo "$as_me:$LINENO: result: no" >&5
6916echo "${ECHO_T}no" >&6
6917 fi
6918
6919
646b6ec1
VS
6920 enablestring=
6921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6922echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6923 no_cache=0
6924 # Check whether --enable-webkit or --disable-webkit was given.
6925if test "${enable_webkit+set}" = set; then
6926 enableval="$enable_webkit"
6927
6928 if test "$enableval" = yes; then
6929 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6930 else
6931 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6932 fi
6933
6934else
6935
6936 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6937 if test "x$LINE" != x ; then
6938 eval "DEFAULT_$LINE"
6939 else
6940 no_cache=1
6941 fi
6942
6943 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6944
6945fi;
6946
6947 eval "$ac_cv_use_webkit"
6948 if test "$no_cache" != 1; then
6949 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6950 fi
6951
6952 if test "$wxUSE_WEBKIT" = yes; then
6953 echo "$as_me:$LINENO: result: yes" >&5
6954echo "${ECHO_T}yes" >&6
6955 else
6956 echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6
6958 fi
6959
6960
a848cd7e
SC
6961
6962 enablestring=
6963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6964echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6965 no_cache=0
6966 # Check whether --enable-postscript or --disable-postscript was given.
6967if test "${enable_postscript+set}" = set; then
6968 enableval="$enable_postscript"
6969
6970 if test "$enableval" = yes; then
6971 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6972 else
6973 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6974 fi
6975
6976else
6977
6978 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6979 if test "x$LINE" != x ; then
6980 eval "DEFAULT_$LINE"
6981 else
6982 no_cache=1
6983 fi
6984
6985 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6986
6987fi;
6988
6989 eval "$ac_cv_use_postscript"
6990 if test "$no_cache" != 1; then
6991 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6992 fi
6993
6994 if test "$wxUSE_POSTSCRIPT" = yes; then
6995 echo "$as_me:$LINENO: result: yes" >&5
6996echo "${ECHO_T}yes" >&6
6997 else
6998 echo "$as_me:$LINENO: result: no" >&5
6999echo "${ECHO_T}no" >&6
7000 fi
7001
7002
7003
7004
7005
7006 enablestring=
7007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7008echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7009 no_cache=0
7010 # Check whether --enable-prologio or --disable-prologio was given.
7011if test "${enable_prologio+set}" = set; then
7012 enableval="$enable_prologio"
7013
7014 if test "$enableval" = yes; then
7015 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7016 else
7017 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7018 fi
7019
7020else
7021
7022 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7030
7031fi;
7032
7033 eval "$ac_cv_use_prologio"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_PROLOGIO" = yes; then
7039 echo "$as_me:$LINENO: result: yes" >&5
7040echo "${ECHO_T}yes" >&6
7041 else
7042 echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6
7044 fi
7045
7046
7047 enablestring=
7048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7049echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7050 no_cache=0
7051 # Check whether --enable-resources or --disable-resources was given.
7052if test "${enable_resources+set}" = set; then
7053 enableval="$enable_resources"
7054
7055 if test "$enableval" = yes; then
7056 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7057 else
7058 ac_cv_use_resources='wxUSE_RESOURCES=no'
7059 fi
7060
7061else
7062
7063 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7071
7072fi;
7073
7074 eval "$ac_cv_use_resources"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_RESOURCES" = yes; then
7080 echo "$as_me:$LINENO: result: yes" >&5
7081echo "${ECHO_T}yes" >&6
7082 else
7083 echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
7085 fi
7086
7087
7088
7089
7090 enablestring=
7091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7092echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7093 no_cache=0
7094 # Check whether --enable-clipboard or --disable-clipboard was given.
7095if test "${enable_clipboard+set}" = set; then
7096 enableval="$enable_clipboard"
7097
7098 if test "$enableval" = yes; then
7099 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7100 else
7101 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7102 fi
7103
7104else
7105
7106 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7107 if test "x$LINE" != x ; then
7108 eval "DEFAULT_$LINE"
7109 else
7110 no_cache=1
7111 fi
7112
7113 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7114
7115fi;
7116
7117 eval "$ac_cv_use_clipboard"
7118 if test "$no_cache" != 1; then
7119 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7120 fi
7121
7122 if test "$wxUSE_CLIPBOARD" = yes; then
7123 echo "$as_me:$LINENO: result: yes" >&5
7124echo "${ECHO_T}yes" >&6
7125 else
7126 echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6
7128 fi
7129
7130
7131 enablestring=
7132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7133echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7134 no_cache=0
7135 # Check whether --enable-dnd or --disable-dnd was given.
7136if test "${enable_dnd+set}" = set; then
7137 enableval="$enable_dnd"
7138
7139 if test "$enableval" = yes; then
7140 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7141 else
7142 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7143 fi
7144
7145else
7146
7147 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7148 if test "x$LINE" != x ; then
7149 eval "DEFAULT_$LINE"
7150 else
7151 no_cache=1
7152 fi
7153
7154 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7155
7156fi;
7157
7158 eval "$ac_cv_use_dnd"
7159 if test "$no_cache" != 1; then
7160 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7161 fi
7162
7163 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7164 echo "$as_me:$LINENO: result: yes" >&5
7165echo "${ECHO_T}yes" >&6
7166 else
7167 echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169 fi
7170
7171
7172 enablestring=
7173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7174echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7175 no_cache=0
7176 # Check whether --enable-metafile or --disable-metafile was given.
7177if test "${enable_metafile+set}" = set; then
7178 enableval="$enable_metafile"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7182 else
7183 ac_cv_use_metafile='wxUSE_METAFILE=no'
7184 fi
7185
7186else
7187
7188 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7196
7197fi;
7198
7199 eval "$ac_cv_use_metafile"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_METAFILE" = yes; then
7205 echo "$as_me:$LINENO: result: yes" >&5
7206echo "${ECHO_T}yes" >&6
7207 else
7208 echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6
7210 fi
7211
7212
7213
7214
7215
7216 enablestring=
7217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7218echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7219 no_cache=0
7220 # Check whether --enable-controls or --disable-controls was given.
7221if test "${enable_controls+set}" = set; then
7222 enableval="$enable_controls"
7223
7224 if test "$enableval" = yes; then
7225 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7226 else
7227 ac_cv_use_controls='wxUSE_CONTROLS=no'
7228 fi
7229
7230else
7231
7232 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7240
7241fi;
7242
7243 eval "$ac_cv_use_controls"
7244 if test "$no_cache" != 1; then
7245 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7246 fi
7247
7248 if test "$wxUSE_CONTROLS" = yes; then
7249 echo "$as_me:$LINENO: result: yes" >&5
7250echo "${ECHO_T}yes" >&6
7251 else
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
7254 fi
7255
7256
7257if test "$wxUSE_CONTROLS" = "yes"; then
7258 DEFAULT_wxUSE_ACCEL=yes
7259 DEFAULT_wxUSE_BMPBUTTON=yes
7260 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7261 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7262 DEFAULT_wxUSE_CARET=yes
7263 DEFAULT_wxUSE_COMBOBOX=yes
7264 DEFAULT_wxUSE_CHECKBOX=yes
7265 DEFAULT_wxUSE_CHECKLISTBOX=yes
7266 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7267 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7268 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7269 DEFAULT_wxUSE_GAUGE=yes
7270 DEFAULT_wxUSE_GRID=yes
7271 DEFAULT_wxUSE_IMAGLIST=yes
7272 DEFAULT_wxUSE_LISTBOOK=yes
7273 DEFAULT_wxUSE_LISTBOX=yes
7274 DEFAULT_wxUSE_LISTCTRL=yes
7275 DEFAULT_wxUSE_NOTEBOOK=yes
7276 DEFAULT_wxUSE_RADIOBOX=yes
7277 DEFAULT_wxUSE_RADIOBTN=yes
7278 DEFAULT_wxUSE_SASH=yes
7279 DEFAULT_wxUSE_SCROLLBAR=yes
7280 DEFAULT_wxUSE_SLIDER=yes
7281 DEFAULT_wxUSE_SPINBTN=yes
7282 DEFAULT_wxUSE_SPINCTRL=yes
7283 DEFAULT_wxUSE_SPLITTER=yes
7284 DEFAULT_wxUSE_STATBMP=yes
7285 DEFAULT_wxUSE_STATBOX=yes
7286 DEFAULT_wxUSE_STATLINE=yes
7287 DEFAULT_wxUSE_STATUSBAR=yes
7288 DEFAULT_wxUSE_TAB_DIALOG=yes
7289 DEFAULT_wxUSE_TOGGLEBTN=yes
7290 DEFAULT_wxUSE_TOOLBAR=yes
7291 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7292 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7293 DEFAULT_wxUSE_TOOLTIPS=yes
7294 DEFAULT_wxUSE_TREECTRL=yes
7295 DEFAULT_wxUSE_POPUPWIN=yes
7296 DEFAULT_wxUSE_TIPWINDOW=yes
7297elif test "$wxUSE_CONTROLS" = "no"; then
7298 DEFAULT_wxUSE_ACCEL=no
7299 DEFAULT_wxUSE_BMPBUTTON=no
7300 DEFAULT_wxUSE_BUTTON=no
7301 DEFAULT_wxUSE_CALCTRL=no
7302 DEFAULT_wxUSE_CARET=no
7303 DEFAULT_wxUSE_COMBOBOX=no
7304 DEFAULT_wxUSE_CHECKBOX=no
7305 DEFAULT_wxUSE_CHECKLISTBOX=no
7306 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7307 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7308 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7309 DEFAULT_wxUSE_GAUGE=no
7310 DEFAULT_wxUSE_GRID=no
7311 DEFAULT_wxUSE_IMAGLIST=no
7312 DEFAULT_wxUSE_LISTBOOK=no
7313 DEFAULT_wxUSE_LISTBOX=no
7314 DEFAULT_wxUSE_LISTCTRL=no
7315 DEFAULT_wxUSE_NOTEBOOK=no
7316 DEFAULT_wxUSE_RADIOBOX=no
7317 DEFAULT_wxUSE_RADIOBTN=no
7318 DEFAULT_wxUSE_SASH=no
7319 DEFAULT_wxUSE_SCROLLBAR=no
7320 DEFAULT_wxUSE_SLIDER=no
7321 DEFAULT_wxUSE_SPINBTN=no
7322 DEFAULT_wxUSE_SPINCTRL=no
7323 DEFAULT_wxUSE_SPLITTER=no
7324 DEFAULT_wxUSE_STATBMP=no
7325 DEFAULT_wxUSE_STATBOX=no
7326 DEFAULT_wxUSE_STATLINE=no
7327 DEFAULT_wxUSE_STATUSBAR=no
7328 DEFAULT_wxUSE_TAB_DIALOG=no
7329 DEFAULT_wxUSE_TOGGLEBTN=no
7330 DEFAULT_wxUSE_TOOLBAR=no
7331 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7332 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7333 DEFAULT_wxUSE_TOOLTIPS=no
7334 DEFAULT_wxUSE_TREECTRL=no
7335 DEFAULT_wxUSE_POPUPWIN=no
7336 DEFAULT_wxUSE_TIPWINDOW=no
7337fi
7338
a848cd7e
SC
7339
7340 enablestring=
7341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7342echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7343 no_cache=0
7344 # Check whether --enable-accel or --disable-accel was given.
7345if test "${enable_accel+set}" = set; then
7346 enableval="$enable_accel"
7347
7348 if test "$enableval" = yes; then
7349 ac_cv_use_accel='wxUSE_ACCEL=yes'
7350 else
7351 ac_cv_use_accel='wxUSE_ACCEL=no'
7352 fi
7353
7354else
7355
7356 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7357 if test "x$LINE" != x ; then
7358 eval "DEFAULT_$LINE"
7359 else
7360 no_cache=1
7361 fi
7362
7363 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7364
7365fi;
7366
7367 eval "$ac_cv_use_accel"
7368 if test "$no_cache" != 1; then
7369 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7370 fi
7371
7372 if test "$wxUSE_ACCEL" = yes; then
7373 echo "$as_me:$LINENO: result: yes" >&5
7374echo "${ECHO_T}yes" >&6
7375 else
7376 echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6
7378 fi
7379
7380
7381 enablestring=
7382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7383echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7384 no_cache=0
7385 # Check whether --enable-button or --disable-button was given.
7386if test "${enable_button+set}" = set; then
7387 enableval="$enable_button"
7388
7389 if test "$enableval" = yes; then
7390 ac_cv_use_button='wxUSE_BUTTON=yes'
7391 else
7392 ac_cv_use_button='wxUSE_BUTTON=no'
7393 fi
7394
7395else
7396
7397 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7398 if test "x$LINE" != x ; then
7399 eval "DEFAULT_$LINE"
7400 else
7401 no_cache=1
7402 fi
7403
7404 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7405
7406fi;
7407
7408 eval "$ac_cv_use_button"
7409 if test "$no_cache" != 1; then
7410 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7411 fi
7412
7413 if test "$wxUSE_BUTTON" = yes; then
7414 echo "$as_me:$LINENO: result: yes" >&5
7415echo "${ECHO_T}yes" >&6
7416 else
7417 echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6
7419 fi
7420
7421
7422 enablestring=
7423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7424echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7425 no_cache=0
7426 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7427if test "${enable_bmpbutton+set}" = set; then
7428 enableval="$enable_bmpbutton"
7429
7430 if test "$enableval" = yes; then
7431 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7432 else
7433 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7434 fi
7435
7436else
7437
7438 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7439 if test "x$LINE" != x ; then
7440 eval "DEFAULT_$LINE"
7441 else
7442 no_cache=1
7443 fi
7444
7445 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7446
7447fi;
7448
7449 eval "$ac_cv_use_bmpbutton"
7450 if test "$no_cache" != 1; then
7451 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7452 fi
7453
7454 if test "$wxUSE_BMPBUTTON" = yes; then
7455 echo "$as_me:$LINENO: result: yes" >&5
7456echo "${ECHO_T}yes" >&6
7457 else
7458 echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6
7460 fi
7461
7462
7463 enablestring=
7464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7465echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7466 no_cache=0
7467 # Check whether --enable-calendar or --disable-calendar was given.
7468if test "${enable_calendar+set}" = set; then
7469 enableval="$enable_calendar"
7470
7471 if test "$enableval" = yes; then
7472 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7473 else
7474 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7475 fi
7476
7477else
7478
7479 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7480 if test "x$LINE" != x ; then
7481 eval "DEFAULT_$LINE"
7482 else
7483 no_cache=1
7484 fi
7485
7486 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7487
7488fi;
7489
7490 eval "$ac_cv_use_calendar"
7491 if test "$no_cache" != 1; then
7492 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7493 fi
7494
7495 if test "$wxUSE_CALCTRL" = yes; then
7496 echo "$as_me:$LINENO: result: yes" >&5
7497echo "${ECHO_T}yes" >&6
7498 else
7499 echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
7501 fi
7502
7503
7504 enablestring=
7505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7506echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7507 no_cache=0
7508 # Check whether --enable-caret or --disable-caret was given.
7509if test "${enable_caret+set}" = set; then
7510 enableval="$enable_caret"
7511
7512 if test "$enableval" = yes; then
7513 ac_cv_use_caret='wxUSE_CARET=yes'
7514 else
7515 ac_cv_use_caret='wxUSE_CARET=no'
7516 fi
7517
7518else
7519
7520 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7521 if test "x$LINE" != x ; then
7522 eval "DEFAULT_$LINE"
7523 else
7524 no_cache=1
7525 fi
7526
7527 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7528
7529fi;
7530
7531 eval "$ac_cv_use_caret"
7532 if test "$no_cache" != 1; then
7533 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7534 fi
7535
7536 if test "$wxUSE_CARET" = yes; then
7537 echo "$as_me:$LINENO: result: yes" >&5
7538echo "${ECHO_T}yes" >&6
7539 else
7540 echo "$as_me:$LINENO: result: no" >&5
7541echo "${ECHO_T}no" >&6
7542 fi
7543
7544
7545 enablestring=
7546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7547echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7548 no_cache=0
7549 # Check whether --enable-checkbox or --disable-checkbox was given.
7550if test "${enable_checkbox+set}" = set; then
7551 enableval="$enable_checkbox"
7552
7553 if test "$enableval" = yes; then
7554 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7555 else
7556 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7557 fi
7558
7559else
7560
7561 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7562 if test "x$LINE" != x ; then
7563 eval "DEFAULT_$LINE"
7564 else
7565 no_cache=1
7566 fi
7567
7568 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7569
7570fi;
7571
7572 eval "$ac_cv_use_checkbox"
7573 if test "$no_cache" != 1; then
7574 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7575 fi
7576
7577 if test "$wxUSE_CHECKBOX" = yes; then
7578 echo "$as_me:$LINENO: result: yes" >&5
7579echo "${ECHO_T}yes" >&6
7580 else
7581 echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6
7583 fi
7584
7585
7586 enablestring=
7587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7588echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7589 no_cache=0
7590 # Check whether --enable-checklst or --disable-checklst was given.
7591if test "${enable_checklst+set}" = set; then
7592 enableval="$enable_checklst"
7593
7594 if test "$enableval" = yes; then
7595 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7596 else
7597 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7598 fi
7599
7600else
7601
7602 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7603 if test "x$LINE" != x ; then
7604 eval "DEFAULT_$LINE"
7605 else
7606 no_cache=1
7607 fi
7608
7609 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7610
7611fi;
7612
7613 eval "$ac_cv_use_checklst"
7614 if test "$no_cache" != 1; then
7615 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7616 fi
7617
7618 if test "$wxUSE_CHECKLST" = yes; then
7619 echo "$as_me:$LINENO: result: yes" >&5
7620echo "${ECHO_T}yes" >&6
7621 else
7622 echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6
7624 fi
7625
7626
7627 enablestring=
7628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7629echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7630 no_cache=0
7631 # Check whether --enable-choice or --disable-choice was given.
7632if test "${enable_choice+set}" = set; then
7633 enableval="$enable_choice"
7634
7635 if test "$enableval" = yes; then
7636 ac_cv_use_choice='wxUSE_CHOICE=yes'
7637 else
7638 ac_cv_use_choice='wxUSE_CHOICE=no'
7639 fi
7640
7641else
7642
7643 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7644 if test "x$LINE" != x ; then
7645 eval "DEFAULT_$LINE"
7646 else
7647 no_cache=1
7648 fi
7649
7650 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7651
7652fi;
7653
7654 eval "$ac_cv_use_choice"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_CHOICE" = yes; then
7660 echo "$as_me:$LINENO: result: yes" >&5
7661echo "${ECHO_T}yes" >&6
7662 else
7663 echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6
7665 fi
7666
7667
92bbdbcd
WS
7668 enablestring=
7669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7670echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7671 no_cache=0
7672 # Check whether --enable-choicebook or --disable-choicebook was given.
7673if test "${enable_choicebook+set}" = set; then
7674 enableval="$enable_choicebook"
7675
7676 if test "$enableval" = yes; then
7677 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7678 else
7679 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7680 fi
7681
7682else
7683
7684 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7685 if test "x$LINE" != x ; then
7686 eval "DEFAULT_$LINE"
7687 else
7688 no_cache=1
7689 fi
7690
7691 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7692
7693fi;
7694
7695 eval "$ac_cv_use_choicebook"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_CHOICEBOOK" = yes; then
7701 echo "$as_me:$LINENO: result: yes" >&5
7702echo "${ECHO_T}yes" >&6
7703 else
7704 echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6
7706 fi
7707
7708
a848cd7e
SC
7709 enablestring=
7710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7711echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7712 no_cache=0
7713 # Check whether --enable-combobox or --disable-combobox was given.
7714if test "${enable_combobox+set}" = set; then
7715 enableval="$enable_combobox"
7716
7717 if test "$enableval" = yes; then
7718 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7719 else
7720 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7721 fi
7722
7723else
7724
7725 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7726 if test "x$LINE" != x ; then
7727 eval "DEFAULT_$LINE"
7728 else
7729 no_cache=1
7730 fi
7731
7732 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7733
7734fi;
7735
7736 eval "$ac_cv_use_combobox"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_COMBOBOX" = yes; then
7742 echo "$as_me:$LINENO: result: yes" >&5
7743echo "${ECHO_T}yes" >&6
7744 else
7745 echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6
7747 fi
7748
7749
da98e9be
VZ
7750 enablestring=
7751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7752echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7753 no_cache=0
7754 # Check whether --enable-datepick or --disable-datepick was given.
7755if test "${enable_datepick+set}" = set; then
7756 enableval="$enable_datepick"
7757
7758 if test "$enableval" = yes; then
7759 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7760 else
7761 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7762 fi
7763
7764else
7765
7766 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7767 if test "x$LINE" != x ; then
7768 eval "DEFAULT_$LINE"
7769 else
7770 no_cache=1
7771 fi
7772
7773 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7774
7775fi;
7776
7777 eval "$ac_cv_use_datepick"
7778 if test "$no_cache" != 1; then
7779 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7780 fi
7781
7782 if test "$wxUSE_DATEPICKCTRL" = yes; then
7783 echo "$as_me:$LINENO: result: yes" >&5
7784echo "${ECHO_T}yes" >&6
7785 else
7786 echo "$as_me:$LINENO: result: no" >&5
7787echo "${ECHO_T}no" >&6
7788 fi
7789
7790
a848cd7e
SC
7791 enablestring=
7792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7793echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7794 no_cache=0
7795 # Check whether --enable-display or --disable-display was given.
7796if test "${enable_display+set}" = set; then
7797 enableval="$enable_display"
7798
7799 if test "$enableval" = yes; then
7800 ac_cv_use_display='wxUSE_DISPLAY=yes'
7801 else
7802 ac_cv_use_display='wxUSE_DISPLAY=no'
7803 fi
7804
7805else
7806
7807 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7808 if test "x$LINE" != x ; then
7809 eval "DEFAULT_$LINE"
7810 else
7811 no_cache=1
7812 fi
7813
7814 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7815
7816fi;
7817
7818 eval "$ac_cv_use_display"
7819 if test "$no_cache" != 1; then
7820 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7821 fi
7822
7823 if test "$wxUSE_DISPLAY" = yes; then
7824 echo "$as_me:$LINENO: result: yes" >&5
7825echo "${ECHO_T}yes" >&6
7826 else
7827 echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6
7829 fi
7830
7831
7832 enablestring=
7833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7834echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7835 no_cache=0
7836 # Check whether --enable-gauge or --disable-gauge was given.
7837if test "${enable_gauge+set}" = set; then
7838 enableval="$enable_gauge"
7839
7840 if test "$enableval" = yes; then
7841 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7842 else
7843 ac_cv_use_gauge='wxUSE_GAUGE=no'
7844 fi
7845
7846else
7847
7848 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7849 if test "x$LINE" != x ; then
7850 eval "DEFAULT_$LINE"
7851 else
7852 no_cache=1
7853 fi
7854
7855 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7856
7857fi;
7858
7859 eval "$ac_cv_use_gauge"
7860 if test "$no_cache" != 1; then
7861 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7862 fi
7863
7864 if test "$wxUSE_GAUGE" = yes; then
7865 echo "$as_me:$LINENO: result: yes" >&5
7866echo "${ECHO_T}yes" >&6
7867 else
7868 echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6
7870 fi
7871
7872
7873 enablestring=
7874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7875echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7876 no_cache=0
7877 # Check whether --enable-grid or --disable-grid was given.
7878if test "${enable_grid+set}" = set; then
7879 enableval="$enable_grid"
7880
7881 if test "$enableval" = yes; then
7882 ac_cv_use_grid='wxUSE_GRID=yes'
7883 else
7884 ac_cv_use_grid='wxUSE_GRID=no'
7885 fi
7886
7887else
7888
7889 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7890 if test "x$LINE" != x ; then
7891 eval "DEFAULT_$LINE"
7892 else
7893 no_cache=1
7894 fi
7895
7896 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7897
7898fi;
7899
7900 eval "$ac_cv_use_grid"
7901 if test "$no_cache" != 1; then
7902 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7903 fi
7904
7905 if test "$wxUSE_GRID" = yes; then
7906 echo "$as_me:$LINENO: result: yes" >&5
7907echo "${ECHO_T}yes" >&6
7908 else
7909 echo "$as_me:$LINENO: result: no" >&5
7910echo "${ECHO_T}no" >&6
7911 fi
7912
7913
7914 enablestring=
7915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7916echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7917 no_cache=0
7918 # Check whether --enable-imaglist or --disable-imaglist was given.
7919if test "${enable_imaglist+set}" = set; then
7920 enableval="$enable_imaglist"
7921
7922 if test "$enableval" = yes; then
7923 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7924 else
7925 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7926 fi
7927
7928else
7929
7930 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7931 if test "x$LINE" != x ; then
7932 eval "DEFAULT_$LINE"
7933 else
7934 no_cache=1
7935 fi
7936
7937 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7938
7939fi;
7940
7941 eval "$ac_cv_use_imaglist"
7942 if test "$no_cache" != 1; then
7943 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7944 fi
7945
7946 if test "$wxUSE_IMAGLIST" = yes; then
7947 echo "$as_me:$LINENO: result: yes" >&5
7948echo "${ECHO_T}yes" >&6
7949 else
7950 echo "$as_me:$LINENO: result: no" >&5
7951echo "${ECHO_T}no" >&6
7952 fi
7953
7954
7955 enablestring=
7956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7957echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7958 no_cache=0
7959 # Check whether --enable-listbook or --disable-listbook was given.
7960if test "${enable_listbook+set}" = set; then
7961 enableval="$enable_listbook"
7962
7963 if test "$enableval" = yes; then
7964 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7965 else
7966 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7967 fi
7968
7969else
7970
7971 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7972 if test "x$LINE" != x ; then
7973 eval "DEFAULT_$LINE"
7974 else
7975 no_cache=1
7976 fi
7977
7978 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7979
7980fi;
7981
7982 eval "$ac_cv_use_listbook"
7983 if test "$no_cache" != 1; then
7984 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7985 fi
7986
7987 if test "$wxUSE_LISTBOOK" = yes; then
7988 echo "$as_me:$LINENO: result: yes" >&5
7989echo "${ECHO_T}yes" >&6
7990 else
7991 echo "$as_me:$LINENO: result: no" >&5
7992echo "${ECHO_T}no" >&6
7993 fi
7994
7995
7996 enablestring=
7997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7998echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7999 no_cache=0
8000 # Check whether --enable-listbox or --disable-listbox was given.
8001if test "${enable_listbox+set}" = set; then
8002 enableval="$enable_listbox"
8003
8004 if test "$enableval" = yes; then
8005 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8006 else
8007 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8008 fi
8009
8010else
8011
8012 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8013 if test "x$LINE" != x ; then
8014 eval "DEFAULT_$LINE"
8015 else
8016 no_cache=1
8017 fi
8018
8019 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8020
8021fi;
8022
8023 eval "$ac_cv_use_listbox"
8024 if test "$no_cache" != 1; then
8025 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8026 fi
8027
8028 if test "$wxUSE_LISTBOX" = yes; then
8029 echo "$as_me:$LINENO: result: yes" >&5
8030echo "${ECHO_T}yes" >&6
8031 else
8032 echo "$as_me:$LINENO: result: no" >&5
8033echo "${ECHO_T}no" >&6
8034 fi
8035
8036
8037 enablestring=
8038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8039echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8040 no_cache=0
8041 # Check whether --enable-listctrl or --disable-listctrl was given.
8042if test "${enable_listctrl+set}" = set; then
8043 enableval="$enable_listctrl"
8044
8045 if test "$enableval" = yes; then
8046 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8047 else
8048 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8049 fi
8050
8051else
8052
8053 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8054 if test "x$LINE" != x ; then
8055 eval "DEFAULT_$LINE"
8056 else
8057 no_cache=1
8058 fi
8059
8060 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8061
8062fi;
8063
8064 eval "$ac_cv_use_listctrl"
8065 if test "$no_cache" != 1; then
8066 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8067 fi
8068
8069 if test "$wxUSE_LISTCTRL" = yes; then
8070 echo "$as_me:$LINENO: result: yes" >&5
8071echo "${ECHO_T}yes" >&6
8072 else
8073 echo "$as_me:$LINENO: result: no" >&5
8074echo "${ECHO_T}no" >&6
8075 fi
8076
8077
8078 enablestring=
8079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8080echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8081 no_cache=0
8082 # Check whether --enable-notebook or --disable-notebook was given.
8083if test "${enable_notebook+set}" = set; then
8084 enableval="$enable_notebook"
8085
8086 if test "$enableval" = yes; then
8087 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8088 else
8089 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8090 fi
8091
8092else
8093
8094 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8095 if test "x$LINE" != x ; then
8096 eval "DEFAULT_$LINE"
8097 else
8098 no_cache=1
8099 fi
8100
8101 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8102
8103fi;
8104
8105 eval "$ac_cv_use_notebook"
8106 if test "$no_cache" != 1; then
8107 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8108 fi
8109
8110 if test "$wxUSE_NOTEBOOK" = yes; then
8111 echo "$as_me:$LINENO: result: yes" >&5
8112echo "${ECHO_T}yes" >&6
8113 else
8114 echo "$as_me:$LINENO: result: no" >&5
8115echo "${ECHO_T}no" >&6
8116 fi
8117
8118
8119 enablestring=
8120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8121echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8122 no_cache=0
8123 # Check whether --enable-radiobox or --disable-radiobox was given.
8124if test "${enable_radiobox+set}" = set; then
8125 enableval="$enable_radiobox"
8126
8127 if test "$enableval" = yes; then
8128 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8129 else
8130 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8131 fi
8132
8133else
8134
8135 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8136 if test "x$LINE" != x ; then
8137 eval "DEFAULT_$LINE"
8138 else
8139 no_cache=1
8140 fi
8141
8142 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8143
8144fi;
8145
8146 eval "$ac_cv_use_radiobox"
8147 if test "$no_cache" != 1; then
8148 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8149 fi
8150
8151 if test "$wxUSE_RADIOBOX" = yes; then
8152 echo "$as_me:$LINENO: result: yes" >&5
8153echo "${ECHO_T}yes" >&6
8154 else
8155 echo "$as_me:$LINENO: result: no" >&5
8156echo "${ECHO_T}no" >&6
8157 fi
8158
8159
8160 enablestring=
8161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8162echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8163 no_cache=0
8164 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8165if test "${enable_radiobtn+set}" = set; then
8166 enableval="$enable_radiobtn"
8167
8168 if test "$enableval" = yes; then
8169 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8170 else
8171 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8172 fi
8173
8174else
8175
8176 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8177 if test "x$LINE" != x ; then
8178 eval "DEFAULT_$LINE"
8179 else
8180 no_cache=1
8181 fi
8182
8183 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8184
8185fi;
8186
8187 eval "$ac_cv_use_radiobtn"
8188 if test "$no_cache" != 1; then
8189 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8190 fi
8191
8192 if test "$wxUSE_RADIOBTN" = yes; then
8193 echo "$as_me:$LINENO: result: yes" >&5
8194echo "${ECHO_T}yes" >&6
8195 else
8196 echo "$as_me:$LINENO: result: no" >&5
8197echo "${ECHO_T}no" >&6
8198 fi
8199
8200
8201 enablestring=
8202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8203echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8204 no_cache=0
8205 # Check whether --enable-sash or --disable-sash was given.
8206if test "${enable_sash+set}" = set; then
8207 enableval="$enable_sash"
8208
8209 if test "$enableval" = yes; then
8210 ac_cv_use_sash='wxUSE_SASH=yes'
8211 else
8212 ac_cv_use_sash='wxUSE_SASH=no'
8213 fi
8214
8215else
8216
8217 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8218 if test "x$LINE" != x ; then
8219 eval "DEFAULT_$LINE"
8220 else
8221 no_cache=1
8222 fi
8223
8224 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8225
8226fi;
8227
8228 eval "$ac_cv_use_sash"
8229 if test "$no_cache" != 1; then
8230 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8231 fi
8232
8233 if test "$wxUSE_SASH" = yes; then
8234 echo "$as_me:$LINENO: result: yes" >&5
8235echo "${ECHO_T}yes" >&6
8236 else
8237 echo "$as_me:$LINENO: result: no" >&5
8238echo "${ECHO_T}no" >&6
8239 fi
8240
8241
8242 enablestring=
8243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8244echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8245 no_cache=0
8246 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8247if test "${enable_scrollbar+set}" = set; then
8248 enableval="$enable_scrollbar"
8249
8250 if test "$enableval" = yes; then
8251 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8252 else
8253 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8254 fi
8255
8256else
8257
8258 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8259 if test "x$LINE" != x ; then
8260 eval "DEFAULT_$LINE"
8261 else
8262 no_cache=1
8263 fi
8264
8265 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8266
8267fi;
8268
8269 eval "$ac_cv_use_scrollbar"
8270 if test "$no_cache" != 1; then
8271 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8272 fi
8273
8274 if test "$wxUSE_SCROLLBAR" = yes; then
8275 echo "$as_me:$LINENO: result: yes" >&5
8276echo "${ECHO_T}yes" >&6
8277 else
8278 echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6
8280 fi
8281
8282
8283 enablestring=
8284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8285echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8286 no_cache=0
8287 # Check whether --enable-slider or --disable-slider was given.
8288if test "${enable_slider+set}" = set; then
8289 enableval="$enable_slider"
8290
8291 if test "$enableval" = yes; then
8292 ac_cv_use_slider='wxUSE_SLIDER=yes'
8293 else
8294 ac_cv_use_slider='wxUSE_SLIDER=no'
8295 fi
8296
8297else
8298
8299 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8300 if test "x$LINE" != x ; then
8301 eval "DEFAULT_$LINE"
8302 else
8303 no_cache=1
8304 fi
8305
8306 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8307
8308fi;
8309
8310 eval "$ac_cv_use_slider"
8311 if test "$no_cache" != 1; then
8312 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8313 fi
8314
8315 if test "$wxUSE_SLIDER" = yes; then
8316 echo "$as_me:$LINENO: result: yes" >&5
8317echo "${ECHO_T}yes" >&6
8318 else
8319 echo "$as_me:$LINENO: result: no" >&5
8320echo "${ECHO_T}no" >&6
8321 fi
8322
8323
8324 enablestring=
8325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8326echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8327 no_cache=0
8328 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8329if test "${enable_spinbtn+set}" = set; then
8330 enableval="$enable_spinbtn"
8331
8332 if test "$enableval" = yes; then
8333 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8334 else
8335 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8336 fi
8337
8338else
8339
8340 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8341 if test "x$LINE" != x ; then
8342 eval "DEFAULT_$LINE"
8343 else
8344 no_cache=1
8345 fi
8346
8347 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8348
8349fi;
8350
8351 eval "$ac_cv_use_spinbtn"
8352 if test "$no_cache" != 1; then
8353 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8354 fi
8355
8356 if test "$wxUSE_SPINBTN" = yes; then
8357 echo "$as_me:$LINENO: result: yes" >&5
8358echo "${ECHO_T}yes" >&6
8359 else
8360 echo "$as_me:$LINENO: result: no" >&5
8361echo "${ECHO_T}no" >&6
8362 fi
8363
8364
8365 enablestring=
8366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8367echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8368 no_cache=0
8369 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8370if test "${enable_spinctrl+set}" = set; then
8371 enableval="$enable_spinctrl"
8372
8373 if test "$enableval" = yes; then
8374 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8375 else
8376 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8377 fi
8378
8379else
8380
8381 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8382 if test "x$LINE" != x ; then
8383 eval "DEFAULT_$LINE"
8384 else
8385 no_cache=1
8386 fi
8387
8388 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8389
8390fi;
8391
8392 eval "$ac_cv_use_spinctrl"
8393 if test "$no_cache" != 1; then
8394 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8395 fi
8396
8397 if test "$wxUSE_SPINCTRL" = yes; then
8398 echo "$as_me:$LINENO: result: yes" >&5
8399echo "${ECHO_T}yes" >&6
8400 else
8401 echo "$as_me:$LINENO: result: no" >&5
8402echo "${ECHO_T}no" >&6
8403 fi
8404
8405
8406 enablestring=
8407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8408echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8409 no_cache=0
8410 # Check whether --enable-splitter or --disable-splitter was given.
8411if test "${enable_splitter+set}" = set; then
8412 enableval="$enable_splitter"
8413
8414 if test "$enableval" = yes; then
8415 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8416 else
8417 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8418 fi
8419
8420else
8421
8422 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8423 if test "x$LINE" != x ; then
8424 eval "DEFAULT_$LINE"
8425 else
8426 no_cache=1
8427 fi
8428
8429 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8430
8431fi;
8432
8433 eval "$ac_cv_use_splitter"
8434 if test "$no_cache" != 1; then
8435 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8436 fi
8437
8438 if test "$wxUSE_SPLITTER" = yes; then
8439 echo "$as_me:$LINENO: result: yes" >&5
8440echo "${ECHO_T}yes" >&6
8441 else
8442 echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6
8444 fi
8445
8446
8447 enablestring=
8448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8449echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8450 no_cache=0
8451 # Check whether --enable-statbmp or --disable-statbmp was given.
8452if test "${enable_statbmp+set}" = set; then
8453 enableval="$enable_statbmp"
8454
8455 if test "$enableval" = yes; then
8456 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8457 else
8458 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8459 fi
8460
8461else
8462
8463 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8464 if test "x$LINE" != x ; then
8465 eval "DEFAULT_$LINE"
8466 else
8467 no_cache=1
8468 fi
8469
8470 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8471
8472fi;
8473
8474 eval "$ac_cv_use_statbmp"
8475 if test "$no_cache" != 1; then
8476 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8477 fi
8478
8479 if test "$wxUSE_STATBMP" = yes; then
8480 echo "$as_me:$LINENO: result: yes" >&5
8481echo "${ECHO_T}yes" >&6
8482 else
8483 echo "$as_me:$LINENO: result: no" >&5
8484echo "${ECHO_T}no" >&6
8485 fi
8486
8487
8488 enablestring=
8489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8490echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8491 no_cache=0
8492 # Check whether --enable-statbox or --disable-statbox was given.
8493if test "${enable_statbox+set}" = set; then
8494 enableval="$enable_statbox"
8495
8496 if test "$enableval" = yes; then
8497 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8498 else
8499 ac_cv_use_statbox='wxUSE_STATBOX=no'
8500 fi
8501
8502else
8503
8504 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8505 if test "x$LINE" != x ; then
8506 eval "DEFAULT_$LINE"
8507 else
8508 no_cache=1
8509 fi
8510
8511 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8512
8513fi;
8514
8515 eval "$ac_cv_use_statbox"
8516 if test "$no_cache" != 1; then
8517 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8518 fi
8519
8520 if test "$wxUSE_STATBOX" = yes; then
8521 echo "$as_me:$LINENO: result: yes" >&5
8522echo "${ECHO_T}yes" >&6
8523 else
8524 echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6
8526 fi
8527
8528
8529 enablestring=
8530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8531echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8532 no_cache=0
8533 # Check whether --enable-statline or --disable-statline was given.
8534if test "${enable_statline+set}" = set; then
8535 enableval="$enable_statline"
8536
8537 if test "$enableval" = yes; then
8538 ac_cv_use_statline='wxUSE_STATLINE=yes'
8539 else
8540 ac_cv_use_statline='wxUSE_STATLINE=no'
8541 fi
8542
8543else
8544
8545 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8546 if test "x$LINE" != x ; then
8547 eval "DEFAULT_$LINE"
8548 else
8549 no_cache=1
8550 fi
8551
8552 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8553
8554fi;
8555
8556 eval "$ac_cv_use_statline"
8557 if test "$no_cache" != 1; then
8558 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8559 fi
8560
8561 if test "$wxUSE_STATLINE" = yes; then
8562 echo "$as_me:$LINENO: result: yes" >&5
8563echo "${ECHO_T}yes" >&6
8564 else
8565 echo "$as_me:$LINENO: result: no" >&5
8566echo "${ECHO_T}no" >&6
8567 fi
8568
8569
8570 enablestring=
8571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8572echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8573 no_cache=0
8574 # Check whether --enable-stattext or --disable-stattext was given.
8575if test "${enable_stattext+set}" = set; then
8576 enableval="$enable_stattext"
8577
8578 if test "$enableval" = yes; then
8579 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8580 else
8581 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8582 fi
8583
8584else
8585
8586 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8587 if test "x$LINE" != x ; then
8588 eval "DEFAULT_$LINE"
8589 else
8590 no_cache=1
8591 fi
8592
8593 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8594
8595fi;
8596
8597 eval "$ac_cv_use_stattext"
8598 if test "$no_cache" != 1; then
8599 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8600 fi
8601
8602 if test "$wxUSE_STATTEXT" = yes; then
8603 echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6
8605 else
8606 echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
8608 fi
8609
8610
8611 enablestring=
8612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8613echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8614 no_cache=0
8615 # Check whether --enable-statusbar or --disable-statusbar was given.
8616if test "${enable_statusbar+set}" = set; then
8617 enableval="$enable_statusbar"
8618
8619 if test "$enableval" = yes; then
8620 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8621 else
8622 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8623 fi
8624
8625else
8626
8627 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8628 if test "x$LINE" != x ; then
8629 eval "DEFAULT_$LINE"
8630 else
8631 no_cache=1
8632 fi
8633
8634 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8635
8636fi;
8637
8638 eval "$ac_cv_use_statusbar"
8639 if test "$no_cache" != 1; then
8640 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8641 fi
8642
8643 if test "$wxUSE_STATUSBAR" = yes; then
8644 echo "$as_me:$LINENO: result: yes" >&5
8645echo "${ECHO_T}yes" >&6
8646 else
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
8649 fi
8650
8651
8652 enablestring=
8653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8654echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8655 no_cache=0
8656 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8657if test "${enable_tabdialog+set}" = set; then
8658 enableval="$enable_tabdialog"
8659
8660 if test "$enableval" = yes; then
8661 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8662 else
8663 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8664 fi
8665
8666else
8667
8668 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8669 if test "x$LINE" != x ; then
8670 eval "DEFAULT_$LINE"
8671 else
8672 no_cache=1
8673 fi
8674
8675 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8676
8677fi;
8678
8679 eval "$ac_cv_use_tabdialog"
8680 if test "$no_cache" != 1; then
8681 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8682 fi
8683
8684 if test "$wxUSE_TABDIALOG" = yes; then
8685 echo "$as_me:$LINENO: result: yes" >&5
8686echo "${ECHO_T}yes" >&6
8687 else
8688 echo "$as_me:$LINENO: result: no" >&5
8689echo "${ECHO_T}no" >&6
8690 fi
8691
8692
8693 enablestring=
8694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8695echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8696 no_cache=0
8697 # Check whether --enable-textctrl or --disable-textctrl was given.
8698if test "${enable_textctrl+set}" = set; then
8699 enableval="$enable_textctrl"
8700
8701 if test "$enableval" = yes; then
8702 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8703 else
8704 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8705 fi
8706
8707else
8708
8709 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8710 if test "x$LINE" != x ; then
8711 eval "DEFAULT_$LINE"
8712 else
8713 no_cache=1
8714 fi
8715
8716 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8717
8718fi;
8719
8720 eval "$ac_cv_use_textctrl"
8721 if test "$no_cache" != 1; then
8722 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8723 fi
8724
8725 if test "$wxUSE_TEXTCTRL" = yes; then
8726 echo "$as_me:$LINENO: result: yes" >&5
8727echo "${ECHO_T}yes" >&6
8728 else
8729 echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6
8731 fi
8732
8733
8734 enablestring=
8735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8736echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8737 no_cache=0
8738 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8739if test "${enable_togglebtn+set}" = set; then
8740 enableval="$enable_togglebtn"
8741
8742 if test "$enableval" = yes; then
8743 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8744 else
8745 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8746 fi
8747
8748else
8749
8750 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8751 if test "x$LINE" != x ; then
8752 eval "DEFAULT_$LINE"
8753 else
8754 no_cache=1
8755 fi
8756
8757 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8758
8759fi;
8760
8761 eval "$ac_cv_use_togglebtn"
8762 if test "$no_cache" != 1; then
8763 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8764 fi
8765
8766 if test "$wxUSE_TOGGLEBTN" = yes; then
8767 echo "$as_me:$LINENO: result: yes" >&5
8768echo "${ECHO_T}yes" >&6
8769 else
8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
8772 fi
8773
8774
8775 enablestring=
8776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8777echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8778 no_cache=0
8779 # Check whether --enable-toolbar or --disable-toolbar was given.
8780if test "${enable_toolbar+set}" = set; then
8781 enableval="$enable_toolbar"
8782
8783 if test "$enableval" = yes; then
8784 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8785 else
8786 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8787 fi
8788
8789else
8790
8791 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8792 if test "x$LINE" != x ; then
8793 eval "DEFAULT_$LINE"
8794 else
8795 no_cache=1
8796 fi
8797
8798 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8799
8800fi;
8801
8802 eval "$ac_cv_use_toolbar"
8803 if test "$no_cache" != 1; then
8804 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8805 fi
8806
8807 if test "$wxUSE_TOOLBAR" = yes; then
8808 echo "$as_me:$LINENO: result: yes" >&5
8809echo "${ECHO_T}yes" >&6
8810 else
8811 echo "$as_me:$LINENO: result: no" >&5
8812echo "${ECHO_T}no" >&6
8813 fi
8814
8815
8816 enablestring=
8817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8818echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8819 no_cache=0
8820 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8821if test "${enable_tbarnative+set}" = set; then
8822 enableval="$enable_tbarnative"
8823
8824 if test "$enableval" = yes; then
8825 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8826 else
8827 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8828 fi
8829
8830else
8831
8832 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8833 if test "x$LINE" != x ; then
8834 eval "DEFAULT_$LINE"
8835 else
8836 no_cache=1
8837 fi
8838
8839 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8840
8841fi;
8842
8843 eval "$ac_cv_use_tbarnative"
8844 if test "$no_cache" != 1; then
8845 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8846 fi
8847
8848 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8849 echo "$as_me:$LINENO: result: yes" >&5
8850echo "${ECHO_T}yes" >&6
8851 else
8852 echo "$as_me:$LINENO: result: no" >&5
8853echo "${ECHO_T}no" >&6
8854 fi
8855
8856
8857 enablestring=
8858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8859echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8860 no_cache=0
8861 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8862if test "${enable_tbarsmpl+set}" = set; then
8863 enableval="$enable_tbarsmpl"
8864
8865 if test "$enableval" = yes; then
8866 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8867 else
8868 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8869 fi
8870
8871else
8872
8873 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8874 if test "x$LINE" != x ; then
8875 eval "DEFAULT_$LINE"
8876 else
8877 no_cache=1
8878 fi
8879
8880 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8881
8882fi;
8883
8884 eval "$ac_cv_use_tbarsmpl"
8885 if test "$no_cache" != 1; then
8886 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8887 fi
8888
8889 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8890 echo "$as_me:$LINENO: result: yes" >&5
8891echo "${ECHO_T}yes" >&6
8892 else
8893 echo "$as_me:$LINENO: result: no" >&5
8894echo "${ECHO_T}no" >&6
8895 fi
8896
8897
8898 enablestring=
8899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8900echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8901 no_cache=0
8902 # Check whether --enable-treectrl or --disable-treectrl was given.
8903if test "${enable_treectrl+set}" = set; then
8904 enableval="$enable_treectrl"
8905
8906 if test "$enableval" = yes; then
8907 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8908 else
8909 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8910 fi
8911
8912else
8913
8914 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8915 if test "x$LINE" != x ; then
8916 eval "DEFAULT_$LINE"
8917 else
8918 no_cache=1
8919 fi
8920
8921 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8922
8923fi;
8924
8925 eval "$ac_cv_use_treectrl"
8926 if test "$no_cache" != 1; then
8927 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8928 fi
8929
8930 if test "$wxUSE_TREECTRL" = yes; then
8931 echo "$as_me:$LINENO: result: yes" >&5
8932echo "${ECHO_T}yes" >&6
8933 else
8934 echo "$as_me:$LINENO: result: no" >&5
8935echo "${ECHO_T}no" >&6
8936 fi
8937
8938
8939 enablestring=
8940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8941echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8942 no_cache=0
8943 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8944if test "${enable_tipwindow+set}" = set; then
8945 enableval="$enable_tipwindow"
8946
8947 if test "$enableval" = yes; then
8948 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8949 else
8950 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8951 fi
8952
8953else
8954
8955 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8956 if test "x$LINE" != x ; then
8957 eval "DEFAULT_$LINE"
8958 else
8959 no_cache=1
8960 fi
8961
8962 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8963
8964fi;
8965
8966 eval "$ac_cv_use_tipwindow"
8967 if test "$no_cache" != 1; then
8968 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8969 fi
8970
8971 if test "$wxUSE_TIPWINDOW" = yes; then
8972 echo "$as_me:$LINENO: result: yes" >&5
8973echo "${ECHO_T}yes" >&6
8974 else
8975 echo "$as_me:$LINENO: result: no" >&5
8976echo "${ECHO_T}no" >&6
8977 fi
8978
8979
8980 enablestring=
8981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8982echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8983 no_cache=0
8984 # Check whether --enable-popupwin or --disable-popupwin was given.
8985if test "${enable_popupwin+set}" = set; then
8986 enableval="$enable_popupwin"
8987
8988 if test "$enableval" = yes; then
8989 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8990 else
8991 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8992 fi
8993
8994else
8995
8996 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8997 if test "x$LINE" != x ; then
8998 eval "DEFAULT_$LINE"
8999 else
9000 no_cache=1
9001 fi
9002
9003 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9004
9005fi;
9006
9007 eval "$ac_cv_use_popupwin"
9008 if test "$no_cache" != 1; then
9009 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9010 fi
9011
9012 if test "$wxUSE_POPUPWIN" = yes; then
9013 echo "$as_me:$LINENO: result: yes" >&5
9014echo "${ECHO_T}yes" >&6
9015 else
9016 echo "$as_me:$LINENO: result: no" >&5
9017echo "${ECHO_T}no" >&6
9018 fi
9019
9020
9021
9022
9023 enablestring=
9024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9025echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9026 no_cache=0
9027 # Check whether --enable-commondlg or --disable-commondlg was given.
9028if test "${enable_commondlg+set}" = set; then
9029 enableval="$enable_commondlg"
9030
9031 if test "$enableval" = yes; then
9032 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9033 else
9034 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9035 fi
9036
9037else
9038
9039 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9040 if test "x$LINE" != x ; then
9041 eval "DEFAULT_$LINE"
9042 else
9043 no_cache=1
9044 fi
9045
9046 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9047
9048fi;
9049
9050 eval "$ac_cv_use_commondlg"
9051 if test "$no_cache" != 1; then
9052 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9053 fi
9054
9055 if test "$wxUSE_COMMONDLGS" = yes; then
9056 echo "$as_me:$LINENO: result: yes" >&5
9057echo "${ECHO_T}yes" >&6
9058 else
9059 echo "$as_me:$LINENO: result: no" >&5
9060echo "${ECHO_T}no" >&6
9061 fi
9062
9063
9064 enablestring=
9065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9066echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9067 no_cache=0
9068 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9069if test "${enable_choicedlg+set}" = set; then
9070 enableval="$enable_choicedlg"
9071
9072 if test "$enableval" = yes; then
9073 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9074 else
9075 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9076 fi
9077
9078else
9079
9080 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9081 if test "x$LINE" != x ; then
9082 eval "DEFAULT_$LINE"
9083 else
9084 no_cache=1
9085 fi
9086
9087 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9088
9089fi;
9090
9091 eval "$ac_cv_use_choicedlg"
9092 if test "$no_cache" != 1; then
9093 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9094 fi
9095
9096 if test "$wxUSE_CHOICEDLG" = yes; then
9097 echo "$as_me:$LINENO: result: yes" >&5
9098echo "${ECHO_T}yes" >&6
9099 else
9100 echo "$as_me:$LINENO: result: no" >&5
9101echo "${ECHO_T}no" >&6
9102 fi
9103
9104
9105 enablestring=
9106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9107echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9108 no_cache=0
9109 # Check whether --enable-coldlg or --disable-coldlg was given.
9110if test "${enable_coldlg+set}" = set; then
9111 enableval="$enable_coldlg"
9112
9113 if test "$enableval" = yes; then
9114 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9115 else
9116 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9117 fi
9118
9119else
9120
9121 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9122 if test "x$LINE" != x ; then
9123 eval "DEFAULT_$LINE"
9124 else
9125 no_cache=1
9126 fi
9127
9128 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9129
9130fi;
9131
9132 eval "$ac_cv_use_coldlg"
9133 if test "$no_cache" != 1; then
9134 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9135 fi
9136
9137 if test "$wxUSE_COLOURDLG" = yes; then
9138 echo "$as_me:$LINENO: result: yes" >&5
9139echo "${ECHO_T}yes" >&6
9140 else
9141 echo "$as_me:$LINENO: result: no" >&5
9142echo "${ECHO_T}no" >&6
9143 fi
9144
9145
9146 enablestring=
9147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9148echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9149 no_cache=0
9150 # Check whether --enable-filedlg or --disable-filedlg was given.
9151if test "${enable_filedlg+set}" = set; then
9152 enableval="$enable_filedlg"
9153
9154 if test "$enableval" = yes; then
9155 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9156 else
9157 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9158 fi
9159
9160else
9161
9162 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9163 if test "x$LINE" != x ; then
9164 eval "DEFAULT_$LINE"
9165 else
9166 no_cache=1
9167 fi
9168
9169 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9170
9171fi;
9172
9173 eval "$ac_cv_use_filedlg"
9174 if test "$no_cache" != 1; then
9175 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9176 fi
9177
9178 if test "$wxUSE_FILEDLG" = yes; then
9179 echo "$as_me:$LINENO: result: yes" >&5
9180echo "${ECHO_T}yes" >&6
9181 else
9182 echo "$as_me:$LINENO: result: no" >&5
9183echo "${ECHO_T}no" >&6
9184 fi
9185
9186
9187 enablestring=
9188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9189echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9190 no_cache=0
9191 # Check whether --enable-finddlg or --disable-finddlg was given.
9192if test "${enable_finddlg+set}" = set; then
9193 enableval="$enable_finddlg"
9194
9195 if test "$enableval" = yes; then
9196 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9197 else
9198 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9199 fi
9200
9201else
9202
9203 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9204 if test "x$LINE" != x ; then
9205 eval "DEFAULT_$LINE"
9206 else
9207 no_cache=1
9208 fi
9209
9210 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9211
9212fi;
9213
9214 eval "$ac_cv_use_finddlg"
9215 if test "$no_cache" != 1; then
9216 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9217 fi
9218
9219 if test "$wxUSE_FINDREPLDLG" = yes; then
9220 echo "$as_me:$LINENO: result: yes" >&5
9221echo "${ECHO_T}yes" >&6
9222 else
9223 echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
9225 fi
9226
9227
9228 enablestring=
9229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9230echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9231 no_cache=0
9232 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9233if test "${enable_fontdlg+set}" = set; then
9234 enableval="$enable_fontdlg"
9235
9236 if test "$enableval" = yes; then
9237 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9238 else
9239 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9240 fi
9241
9242else
9243
9244 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9245 if test "x$LINE" != x ; then
9246 eval "DEFAULT_$LINE"
9247 else
9248 no_cache=1
9249 fi
9250
9251 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9252
9253fi;
9254
9255 eval "$ac_cv_use_fontdlg"
9256 if test "$no_cache" != 1; then
9257 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9258 fi
9259
9260 if test "$wxUSE_FONTDLG" = yes; then
9261 echo "$as_me:$LINENO: result: yes" >&5
9262echo "${ECHO_T}yes" >&6
9263 else
9264 echo "$as_me:$LINENO: result: no" >&5
9265echo "${ECHO_T}no" >&6
9266 fi
9267
9268
9269 enablestring=
9270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9271echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9272 no_cache=0
9273 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9274if test "${enable_dirdlg+set}" = set; then
9275 enableval="$enable_dirdlg"
9276
9277 if test "$enableval" = yes; then
9278 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9279 else
9280 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9281 fi
9282
9283else
9284
9285 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9286 if test "x$LINE" != x ; then
9287 eval "DEFAULT_$LINE"
9288 else
9289 no_cache=1
9290 fi
9291
9292 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9293
9294fi;
9295
9296 eval "$ac_cv_use_dirdlg"
9297 if test "$no_cache" != 1; then
9298 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9299 fi
9300
9301 if test "$wxUSE_DIRDLG" = yes; then
9302 echo "$as_me:$LINENO: result: yes" >&5
9303echo "${ECHO_T}yes" >&6
9304 else
9305 echo "$as_me:$LINENO: result: no" >&5
9306echo "${ECHO_T}no" >&6
9307 fi
9308
9309
9310 enablestring=
9311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9312echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9313 no_cache=0
9314 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9315if test "${enable_msgdlg+set}" = set; then
9316 enableval="$enable_msgdlg"
9317
9318 if test "$enableval" = yes; then
9319 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9320 else
9321 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9322 fi
9323
9324else
9325
9326 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9327 if test "x$LINE" != x ; then
9328 eval "DEFAULT_$LINE"
9329 else
9330 no_cache=1
9331 fi
9332
9333 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9334
9335fi;
9336
9337 eval "$ac_cv_use_msgdlg"
9338 if test "$no_cache" != 1; then
9339 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9340 fi
9341
9342 if test "$wxUSE_MSGDLG" = yes; then
9343 echo "$as_me:$LINENO: result: yes" >&5
9344echo "${ECHO_T}yes" >&6
9345 else
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
9348 fi
9349
9350
9351 enablestring=
9352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9353echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9354 no_cache=0
9355 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9356if test "${enable_numberdlg+set}" = set; then
9357 enableval="$enable_numberdlg"
9358
9359 if test "$enableval" = yes; then
9360 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9361 else
9362 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9363 fi
9364
9365else
9366
9367 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9368 if test "x$LINE" != x ; then
9369 eval "DEFAULT_$LINE"
9370 else
9371 no_cache=1
9372 fi
9373
9374 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9375
9376fi;
9377
9378 eval "$ac_cv_use_numberdlg"
9379 if test "$no_cache" != 1; then
9380 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9381 fi
9382
9383 if test "$wxUSE_NUMBERDLG" = yes; then
9384 echo "$as_me:$LINENO: result: yes" >&5
9385echo "${ECHO_T}yes" >&6
9386 else
9387 echo "$as_me:$LINENO: result: no" >&5
9388echo "${ECHO_T}no" >&6
9389 fi
9390
9391
9392 enablestring=
9393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9394echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9395 no_cache=0
9396 # Check whether --enable-splash or --disable-splash was given.
9397if test "${enable_splash+set}" = set; then
9398 enableval="$enable_splash"
9399
9400 if test "$enableval" = yes; then
9401 ac_cv_use_splash='wxUSE_SPLASH=yes'
9402 else
9403 ac_cv_use_splash='wxUSE_SPLASH=no'
9404 fi
9405
9406else
9407
9408 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9409 if test "x$LINE" != x ; then
9410 eval "DEFAULT_$LINE"
9411 else
9412 no_cache=1
9413 fi
9414
9415 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9416
9417fi;
9418
9419 eval "$ac_cv_use_splash"
9420 if test "$no_cache" != 1; then
9421 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9422 fi
9423
9424 if test "$wxUSE_SPLASH" = yes; then
9425 echo "$as_me:$LINENO: result: yes" >&5
9426echo "${ECHO_T}yes" >&6
9427 else
9428 echo "$as_me:$LINENO: result: no" >&5
9429echo "${ECHO_T}no" >&6
9430 fi
9431
9432
9433 enablestring=
9434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9435echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9436 no_cache=0
9437 # Check whether --enable-textdlg or --disable-textdlg was given.
9438if test "${enable_textdlg+set}" = set; then
9439 enableval="$enable_textdlg"
9440
9441 if test "$enableval" = yes; then
9442 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9443 else
9444 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9445 fi
9446
9447else
9448
9449 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9450 if test "x$LINE" != x ; then
9451 eval "DEFAULT_$LINE"
9452 else
9453 no_cache=1
9454 fi
9455
9456 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9457
9458fi;
9459
9460 eval "$ac_cv_use_textdlg"
9461 if test "$no_cache" != 1; then
9462 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9463 fi
9464
9465 if test "$wxUSE_TEXTDLG" = yes; then
9466 echo "$as_me:$LINENO: result: yes" >&5
9467echo "${ECHO_T}yes" >&6
9468 else
9469 echo "$as_me:$LINENO: result: no" >&5
9470echo "${ECHO_T}no" >&6
9471 fi
9472
9473
9474 enablestring=
9475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9476echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9477 no_cache=0
9478 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9479if test "${enable_tipdlg+set}" = set; then
9480 enableval="$enable_tipdlg"
9481
9482 if test "$enableval" = yes; then
9483 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9484 else
9485 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9486 fi
9487
9488else
9489
9490 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9491 if test "x$LINE" != x ; then
9492 eval "DEFAULT_$LINE"
9493 else
9494 no_cache=1
9495 fi
9496
9497 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9498
9499fi;
9500
9501 eval "$ac_cv_use_tipdlg"
9502 if test "$no_cache" != 1; then
9503 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9504 fi
9505
9506 if test "$wxUSE_STARTUP_TIPS" = yes; then
9507 echo "$as_me:$LINENO: result: yes" >&5
9508echo "${ECHO_T}yes" >&6
9509 else
9510 echo "$as_me:$LINENO: result: no" >&5
9511echo "${ECHO_T}no" >&6
9512 fi
9513
9514
9515 enablestring=
9516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9517echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9518 no_cache=0
9519 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9520if test "${enable_progressdlg+set}" = set; then
9521 enableval="$enable_progressdlg"
9522
9523 if test "$enableval" = yes; then
9524 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9525 else
9526 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9527 fi
9528
9529else
9530
9531 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9532 if test "x$LINE" != x ; then
9533 eval "DEFAULT_$LINE"
9534 else
9535 no_cache=1
9536 fi
9537
9538 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9539
9540fi;
9541
9542 eval "$ac_cv_use_progressdlg"
9543 if test "$no_cache" != 1; then
9544 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9545 fi
9546
9547 if test "$wxUSE_PROGRESSDLG" = yes; then
9548 echo "$as_me:$LINENO: result: yes" >&5
9549echo "${ECHO_T}yes" >&6
9550 else
9551 echo "$as_me:$LINENO: result: no" >&5
9552echo "${ECHO_T}no" >&6
9553 fi
9554
9555
9556 enablestring=
9557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9558echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9559 no_cache=0
9560 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9561if test "${enable_wizarddlg+set}" = set; then
9562 enableval="$enable_wizarddlg"
9563
9564 if test "$enableval" = yes; then
9565 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9566 else
9567 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9568 fi
9569
9570else
9571
9572 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9573 if test "x$LINE" != x ; then
9574 eval "DEFAULT_$LINE"
9575 else
9576 no_cache=1
9577 fi
9578
9579 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9580
9581fi;
9582
9583 eval "$ac_cv_use_wizarddlg"
9584 if test "$no_cache" != 1; then
9585 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9586 fi
9587
9588 if test "$wxUSE_WIZARDDLG" = yes; then
9589 echo "$as_me:$LINENO: result: yes" >&5
9590echo "${ECHO_T}yes" >&6
9591 else
9592 echo "$as_me:$LINENO: result: no" >&5
9593echo "${ECHO_T}no" >&6
9594 fi
9595
9596
9597
9598
9599 enablestring=
9600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9601echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9602 no_cache=0
9603 # Check whether --enable-menus or --disable-menus was given.
9604if test "${enable_menus+set}" = set; then
9605 enableval="$enable_menus"
9606
9607 if test "$enableval" = yes; then
9608 ac_cv_use_menus='wxUSE_MENUS=yes'
9609 else
9610 ac_cv_use_menus='wxUSE_MENUS=no'
9611 fi
9612
9613else
9614
9615 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9616 if test "x$LINE" != x ; then
9617 eval "DEFAULT_$LINE"
9618 else
9619 no_cache=1
9620 fi
9621
9622 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9623
9624fi;
9625
9626 eval "$ac_cv_use_menus"
9627 if test "$no_cache" != 1; then
9628 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9629 fi
9630
9631 if test "$wxUSE_MENUS" = yes; then
9632 echo "$as_me:$LINENO: result: yes" >&5
9633echo "${ECHO_T}yes" >&6
9634 else
9635 echo "$as_me:$LINENO: result: no" >&5
9636echo "${ECHO_T}no" >&6
9637 fi
9638
9639
9640 enablestring=
9641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9642echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9643 no_cache=0
9644 # Check whether --enable-miniframe or --disable-miniframe was given.
9645if test "${enable_miniframe+set}" = set; then
9646 enableval="$enable_miniframe"
9647
9648 if test "$enableval" = yes; then
9649 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9650 else
9651 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9652 fi
9653
9654else
9655
9656 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9657 if test "x$LINE" != x ; then
9658 eval "DEFAULT_$LINE"
9659 else
9660 no_cache=1
9661 fi
9662
9663 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9664
9665fi;
9666
9667 eval "$ac_cv_use_miniframe"
9668 if test "$no_cache" != 1; then
9669 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9670 fi
9671
9672 if test "$wxUSE_MINIFRAME" = yes; then
9673 echo "$as_me:$LINENO: result: yes" >&5
9674echo "${ECHO_T}yes" >&6
9675 else
9676 echo "$as_me:$LINENO: result: no" >&5
9677echo "${ECHO_T}no" >&6
9678 fi
9679
9680
9681 enablestring=
9682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9683echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9684 no_cache=0
9685 # Check whether --enable-tooltips or --disable-tooltips was given.
9686if test "${enable_tooltips+set}" = set; then
9687 enableval="$enable_tooltips"
9688
9689 if test "$enableval" = yes; then
9690 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9691 else
9692 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9693 fi
9694
9695else
9696
9697 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9698 if test "x$LINE" != x ; then
9699 eval "DEFAULT_$LINE"
9700 else
9701 no_cache=1
9702 fi
9703
9704 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9705
9706fi;
9707
9708 eval "$ac_cv_use_tooltips"
9709 if test "$no_cache" != 1; then
9710 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9711 fi
9712
9713 if test "$wxUSE_TOOLTIPS" = yes; then
9714 echo "$as_me:$LINENO: result: yes" >&5
9715echo "${ECHO_T}yes" >&6
9716 else
9717 echo "$as_me:$LINENO: result: no" >&5
9718echo "${ECHO_T}no" >&6
9719 fi
9720
9721
9722 enablestring=
9723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9724echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9725 no_cache=0
9726 # Check whether --enable-splines or --disable-splines was given.
9727if test "${enable_splines+set}" = set; then
9728 enableval="$enable_splines"
9729
9730 if test "$enableval" = yes; then
9731 ac_cv_use_splines='wxUSE_SPLINES=yes'
9732 else
9733 ac_cv_use_splines='wxUSE_SPLINES=no'
9734 fi
9735
9736else
9737
9738 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9739 if test "x$LINE" != x ; then
9740 eval "DEFAULT_$LINE"
9741 else
9742 no_cache=1
9743 fi
9744
9745 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9746
9747fi;
9748
9749 eval "$ac_cv_use_splines"
9750 if test "$no_cache" != 1; then
9751 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9752 fi
9753
9754 if test "$wxUSE_SPLINES" = yes; then
9755 echo "$as_me:$LINENO: result: yes" >&5
9756echo "${ECHO_T}yes" >&6
9757 else
9758 echo "$as_me:$LINENO: result: no" >&5
9759echo "${ECHO_T}no" >&6
9760 fi
9761
9762
fbe2ca43
SN
9763 enablestring=
9764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9765echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9766 no_cache=0
9767 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9768if test "${enable_mousewheel+set}" = set; then
9769 enableval="$enable_mousewheel"
9770
9771 if test "$enableval" = yes; then
9772 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9773 else
9774 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9775 fi
9776
9777else
9778
9779 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9780 if test "x$LINE" != x ; then
9781 eval "DEFAULT_$LINE"
9782 else
9783 no_cache=1
9784 fi
9785
9786 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9787
9788fi;
9789
9790 eval "$ac_cv_use_mousewheel"
9791 if test "$no_cache" != 1; then
9792 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9793 fi
9794
9795 if test "$wxUSE_MOUSEWHEEL" = yes; then
9796 echo "$as_me:$LINENO: result: yes" >&5
9797echo "${ECHO_T}yes" >&6
9798 else
9799 echo "$as_me:$LINENO: result: no" >&5
9800echo "${ECHO_T}no" >&6
9801 fi
9802
9803
a848cd7e
SC
9804 enablestring=
9805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9806echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9807 no_cache=0
9808 # Check whether --enable-validators or --disable-validators was given.
9809if test "${enable_validators+set}" = set; then
9810 enableval="$enable_validators"
9811
9812 if test "$enableval" = yes; then
9813 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9814 else
9815 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9816 fi
9817
9818else
9819
9820 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9821 if test "x$LINE" != x ; then
9822 eval "DEFAULT_$LINE"
9823 else
9824 no_cache=1
9825 fi
9826
9827 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9828
9829fi;
9830
9831 eval "$ac_cv_use_validators"
9832 if test "$no_cache" != 1; then
9833 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9834 fi
9835
9836 if test "$wxUSE_VALIDATORS" = yes; then
9837 echo "$as_me:$LINENO: result: yes" >&5
9838echo "${ECHO_T}yes" >&6
9839 else
9840 echo "$as_me:$LINENO: result: no" >&5
9841echo "${ECHO_T}no" >&6
9842 fi
9843
9844
9845 enablestring=
9846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9847echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9848 no_cache=0
9849 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9850if test "${enable_busyinfo+set}" = set; then
9851 enableval="$enable_busyinfo"
9852
9853 if test "$enableval" = yes; then
9854 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9855 else
9856 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9857 fi
9858
9859else
9860
9861 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9862 if test "x$LINE" != x ; then
9863 eval "DEFAULT_$LINE"
9864 else
9865 no_cache=1
9866 fi
9867
9868 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9869
9870fi;
9871
9872 eval "$ac_cv_use_busyinfo"
9873 if test "$no_cache" != 1; then
9874 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9875 fi
9876
9877 if test "$wxUSE_BUSYINFO" = yes; then
9878 echo "$as_me:$LINENO: result: yes" >&5
9879echo "${ECHO_T}yes" >&6
9880 else
9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
9883 fi
9884
9885
9886 enablestring=
9887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9888echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9889 no_cache=0
9890 # Check whether --enable-joystick or --disable-joystick was given.
9891if test "${enable_joystick+set}" = set; then
9892 enableval="$enable_joystick"
9893
9894 if test "$enableval" = yes; then
9895 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9896 else
9897 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9898 fi
9899
9900else
9901
9902 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9903 if test "x$LINE" != x ; then
9904 eval "DEFAULT_$LINE"
9905 else
9906 no_cache=1
9907 fi
9908
9909 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9910
9911fi;
9912
9913 eval "$ac_cv_use_joystick"
9914 if test "$no_cache" != 1; then
9915 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9916 fi
9917
9918 if test "$wxUSE_JOYSTICK" = yes; then
9919 echo "$as_me:$LINENO: result: yes" >&5
9920echo "${ECHO_T}yes" >&6
9921 else
9922 echo "$as_me:$LINENO: result: no" >&5
9923echo "${ECHO_T}no" >&6
9924 fi
9925
9926
9927 enablestring=
9928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9929echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9930 no_cache=0
9931 # Check whether --enable-metafile or --disable-metafile was given.
9932if test "${enable_metafile+set}" = set; then
9933 enableval="$enable_metafile"
9934
9935 if test "$enableval" = yes; then
9936 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9937 else
9938 ac_cv_use_metafile='wxUSE_METAFILE=no'
9939 fi
9940
9941else
9942
9943 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9944 if test "x$LINE" != x ; then
9945 eval "DEFAULT_$LINE"
9946 else
9947 no_cache=1
9948 fi
9949
9950 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9951
9952fi;
9953
9954 eval "$ac_cv_use_metafile"
9955 if test "$no_cache" != 1; then
9956 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9957 fi
9958
9959 if test "$wxUSE_METAFILE" = yes; then
9960 echo "$as_me:$LINENO: result: yes" >&5
9961echo "${ECHO_T}yes" >&6
9962 else
9963 echo "$as_me:$LINENO: result: no" >&5
9964echo "${ECHO_T}no" >&6
9965 fi
9966
9967
9968 enablestring=
9969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9970echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9971 no_cache=0
9972 # Check whether --enable-dragimage or --disable-dragimage was given.
9973if test "${enable_dragimage+set}" = set; then
9974 enableval="$enable_dragimage"
9975
9976 if test "$enableval" = yes; then
9977 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9978 else
9979 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9980 fi
9981
9982else
9983
9984 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9985 if test "x$LINE" != x ; then
9986 eval "DEFAULT_$LINE"
9987 else
9988 no_cache=1
9989 fi
9990
9991 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9992
9993fi;
9994
9995 eval "$ac_cv_use_dragimage"
9996 if test "$no_cache" != 1; then
9997 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9998 fi
9999
10000 if test "$wxUSE_DRAGIMAGE" = yes; then
10001 echo "$as_me:$LINENO: result: yes" >&5
10002echo "${ECHO_T}yes" >&6
10003 else
10004 echo "$as_me:$LINENO: result: no" >&5
10005echo "${ECHO_T}no" >&6
10006 fi
10007
10008
10009 enablestring=
10010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10011echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10012 no_cache=0
10013 # Check whether --enable-accessibility or --disable-accessibility was given.
10014if test "${enable_accessibility+set}" = set; then
10015 enableval="$enable_accessibility"
10016
10017 if test "$enableval" = yes; then
10018 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10019 else
10020 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10021 fi
10022
10023else
10024
10025 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10026 if test "x$LINE" != x ; then
10027 eval "DEFAULT_$LINE"
10028 else
10029 no_cache=1
10030 fi
10031
10032 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10033
10034fi;
10035
10036 eval "$ac_cv_use_accessibility"
10037 if test "$no_cache" != 1; then
10038 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10039 fi
10040
10041 if test "$wxUSE_ACCESSIBILITY" = yes; then
10042 echo "$as_me:$LINENO: result: yes" >&5
10043echo "${ECHO_T}yes" >&6
10044 else
10045 echo "$as_me:$LINENO: result: no" >&5
10046echo "${ECHO_T}no" >&6
10047 fi
10048
10049
10050
10051
10052 enablestring=
10053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10054echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10055 no_cache=0
10056 # Check whether --enable-palette or --disable-palette was given.
10057if test "${enable_palette+set}" = set; then
10058 enableval="$enable_palette"
10059
10060 if test "$enableval" = yes; then
10061 ac_cv_use_palette='wxUSE_PALETTE=yes'
10062 else
10063 ac_cv_use_palette='wxUSE_PALETTE=no'
10064 fi
10065
10066else
10067
10068 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10069 if test "x$LINE" != x ; then
10070 eval "DEFAULT_$LINE"
10071 else
10072 no_cache=1
10073 fi
10074
10075 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10076
10077fi;
10078
10079 eval "$ac_cv_use_palette"
10080 if test "$no_cache" != 1; then
10081 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10082 fi
10083
10084 if test "$wxUSE_PALETTE" = yes; then
10085 echo "$as_me:$LINENO: result: yes" >&5
10086echo "${ECHO_T}yes" >&6
10087 else
10088 echo "$as_me:$LINENO: result: no" >&5
10089echo "${ECHO_T}no" >&6
10090 fi
10091
10092
10093 enablestring=
10094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10095echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10096 no_cache=0
10097 # Check whether --enable-image or --disable-image was given.
10098if test "${enable_image+set}" = set; then
10099 enableval="$enable_image"
10100
10101 if test "$enableval" = yes; then
10102 ac_cv_use_image='wxUSE_IMAGE=yes'
10103 else
10104 ac_cv_use_image='wxUSE_IMAGE=no'
10105 fi
10106
10107else
10108
10109 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10110 if test "x$LINE" != x ; then
10111 eval "DEFAULT_$LINE"
10112 else
10113 no_cache=1
10114 fi
10115
10116 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10117
10118fi;
10119
10120 eval "$ac_cv_use_image"
10121 if test "$no_cache" != 1; then
10122 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10123 fi
10124
10125 if test "$wxUSE_IMAGE" = yes; then
10126 echo "$as_me:$LINENO: result: yes" >&5
10127echo "${ECHO_T}yes" >&6
10128 else
10129 echo "$as_me:$LINENO: result: no" >&5
10130echo "${ECHO_T}no" >&6
10131 fi
10132
10133
10134 enablestring=
10135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10136echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10137 no_cache=0
10138 # Check whether --enable-gif or --disable-gif was given.
10139if test "${enable_gif+set}" = set; then
10140 enableval="$enable_gif"
10141
10142 if test "$enableval" = yes; then
10143 ac_cv_use_gif='wxUSE_GIF=yes'
10144 else
10145 ac_cv_use_gif='wxUSE_GIF=no'
10146 fi
10147
10148else
10149
10150 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10151 if test "x$LINE" != x ; then
10152 eval "DEFAULT_$LINE"
10153 else
10154 no_cache=1
10155 fi
10156
10157 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10158
10159fi;
10160
10161 eval "$ac_cv_use_gif"
10162 if test "$no_cache" != 1; then
10163 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10164 fi
10165
10166 if test "$wxUSE_GIF" = yes; then
10167 echo "$as_me:$LINENO: result: yes" >&5
10168echo "${ECHO_T}yes" >&6
10169 else
10170 echo "$as_me:$LINENO: result: no" >&5
10171echo "${ECHO_T}no" >&6
10172 fi
10173
10174
10175 enablestring=
10176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10177echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10178 no_cache=0
10179 # Check whether --enable-pcx or --disable-pcx was given.
10180if test "${enable_pcx+set}" = set; then
10181 enableval="$enable_pcx"
10182
10183 if test "$enableval" = yes; then
10184 ac_cv_use_pcx='wxUSE_PCX=yes'
10185 else
10186 ac_cv_use_pcx='wxUSE_PCX=no'
10187 fi
10188
10189else
10190
10191 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10192 if test "x$LINE" != x ; then
10193 eval "DEFAULT_$LINE"
10194 else
10195 no_cache=1
10196 fi
10197
10198 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10199
10200fi;
10201
10202 eval "$ac_cv_use_pcx"
10203 if test "$no_cache" != 1; then
10204 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10205 fi
10206
10207 if test "$wxUSE_PCX" = yes; then
10208 echo "$as_me:$LINENO: result: yes" >&5
10209echo "${ECHO_T}yes" >&6
10210 else
10211 echo "$as_me:$LINENO: result: no" >&5
10212echo "${ECHO_T}no" >&6
10213 fi
10214
10215
10216 enablestring=
10217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10218echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10219 no_cache=0
10220 # Check whether --enable-iff or --disable-iff was given.
10221if test "${enable_iff+set}" = set; then
10222 enableval="$enable_iff"
10223
10224 if test "$enableval" = yes; then
10225 ac_cv_use_iff='wxUSE_IFF=yes'
10226 else
10227 ac_cv_use_iff='wxUSE_IFF=no'
10228 fi
10229
10230else
10231
10232 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10233 if test "x$LINE" != x ; then
10234 eval "DEFAULT_$LINE"
10235 else
10236 no_cache=1
10237 fi
10238
10239 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10240
10241fi;
10242
10243 eval "$ac_cv_use_iff"
10244 if test "$no_cache" != 1; then
10245 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10246 fi
10247
10248 if test "$wxUSE_IFF" = yes; then
10249 echo "$as_me:$LINENO: result: yes" >&5
10250echo "${ECHO_T}yes" >&6
10251 else
10252 echo "$as_me:$LINENO: result: no" >&5
10253echo "${ECHO_T}no" >&6
10254 fi
10255
10256
10257 enablestring=
10258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10259echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10260 no_cache=0
10261 # Check whether --enable-pnm or --disable-pnm was given.
10262if test "${enable_pnm+set}" = set; then
10263 enableval="$enable_pnm"
10264
10265 if test "$enableval" = yes; then
10266 ac_cv_use_pnm='wxUSE_PNM=yes'
10267 else
10268 ac_cv_use_pnm='wxUSE_PNM=no'
10269 fi
10270
10271else
10272
10273 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10274 if test "x$LINE" != x ; then
10275 eval "DEFAULT_$LINE"
10276 else
10277 no_cache=1
10278 fi
10279
10280 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10281
10282fi;
10283
10284 eval "$ac_cv_use_pnm"
10285 if test "$no_cache" != 1; then
10286 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10287 fi
10288
10289 if test "$wxUSE_PNM" = yes; then
10290 echo "$as_me:$LINENO: result: yes" >&5
10291echo "${ECHO_T}yes" >&6
10292 else
10293 echo "$as_me:$LINENO: result: no" >&5
10294echo "${ECHO_T}no" >&6
10295 fi
10296
10297
10298 enablestring=
10299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10300echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10301 no_cache=0
10302 # Check whether --enable-xpm or --disable-xpm was given.
10303if test "${enable_xpm+set}" = set; then
10304 enableval="$enable_xpm"
10305
10306 if test "$enableval" = yes; then
10307 ac_cv_use_xpm='wxUSE_XPM=yes'
10308 else
10309 ac_cv_use_xpm='wxUSE_XPM=no'
10310 fi
10311
10312else
10313
10314 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10315 if test "x$LINE" != x ; then
10316 eval "DEFAULT_$LINE"
10317 else
10318 no_cache=1
10319 fi
10320
10321 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10322
10323fi;
10324
10325 eval "$ac_cv_use_xpm"
10326 if test "$no_cache" != 1; then
10327 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10328 fi
10329
10330 if test "$wxUSE_XPM" = yes; then
10331 echo "$as_me:$LINENO: result: yes" >&5
10332echo "${ECHO_T}yes" >&6
10333 else
10334 echo "$as_me:$LINENO: result: no" >&5
10335echo "${ECHO_T}no" >&6
10336 fi
10337
10338
10339 enablestring=
10340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10341echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10342 no_cache=0
10343 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10344if test "${enable_ico_cur+set}" = set; then
10345 enableval="$enable_ico_cur"
10346
10347 if test "$enableval" = yes; then
10348 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10349 else
10350 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10351 fi
10352
10353else
10354
10355 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10356 if test "x$LINE" != x ; then
10357 eval "DEFAULT_$LINE"
10358 else
10359 no_cache=1
10360 fi
10361
10362 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10363
10364fi;
10365
10366 eval "$ac_cv_use_ico_cur"
10367 if test "$no_cache" != 1; then
10368 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10369 fi
10370
10371 if test "$wxUSE_ICO_CUR" = yes; then
10372 echo "$as_me:$LINENO: result: yes" >&5
10373echo "${ECHO_T}yes" >&6
10374 else
10375 echo "$as_me:$LINENO: result: no" >&5
10376echo "${ECHO_T}no" >&6
10377 fi
10378
10379
10380fi
10381
10382
10383
ceec2216
RL
10384# Check whether --with-flavour or --without-flavour was given.
10385if test "${with_flavour+set}" = set; then
10386 withval="$with_flavour"
10387 WX_FLAVOUR="$withval"
10388fi;
10389
10390
10391
a848cd7e
SC
10392 enablestring=
10393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10394echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10395 no_cache=0
10396 # Check whether --enable-official_build or --disable-official_build was given.
10397if test "${enable_official_build+set}" = set; then
10398 enableval="$enable_official_build"
10399
10400 if test "$enableval" = yes; then
10401 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10402 else
10403 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10404 fi
10405
10406else
10407
10408 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10409 if test "x$LINE" != x ; then
10410 eval "DEFAULT_$LINE"
10411 else
10412 no_cache=1
10413 fi
10414
10415 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10416
10417fi;
10418
10419 eval "$ac_cv_use_official_build"
10420 if test "$no_cache" != 1; then
10421 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10422 fi
10423
10424 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10425 echo "$as_me:$LINENO: result: yes" >&5
10426echo "${ECHO_T}yes" >&6
10427 else
10428 echo "$as_me:$LINENO: result: no" >&5
10429echo "${ECHO_T}no" >&6
10430 fi
10431
10432# Check whether --enable-vendor or --disable-vendor was given.
10433if test "${enable_vendor+set}" = set; then
10434 enableval="$enable_vendor"
10435 VENDOR="$enableval"
10436fi;
10437if test "x$VENDOR" = "x"; then
10438 VENDOR="custom"
10439fi
10440
a848cd7e
SC
10441
10442
10443
10444 echo "saving argument cache $wx_arg_cache_file"
10445 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10446
10447
10448
10449echo "$as_me:$LINENO: checking for toolkit" >&5
10450echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10451
10452# In Wine, we need to default to MSW, not GTK or MOTIF
10453if test "$wxUSE_WINE" = "yes"; then
10454 DEFAULT_DEFAULT_wxUSE_GTK=0
10455 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10456 DEFAULT_DEFAULT_wxUSE_MSW=1
10457 wxUSE_SHARED=no
10458fi
10459
f597b41c 10460
a848cd7e
SC
10461if test "$wxUSE_GUI" = "yes"; then
10462
10463 if test "$USE_BEOS" = 1; then
10464 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10465echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10466 { (exit 1); exit 1; }; }
10467 fi
10468
10469 if test "$TOOLKIT_GIVEN" = 1; then
10470 for toolkit in `echo $ALL_TOOLKITS`; do
10471 var=wxUSE_$toolkit
10472 eval "value=\$${var}"
f34ca037
MW
10473 if test "x$value" = "xno"; then
10474 eval "$var=0"
10475 elif test "x$value" != "x"; then
10476 eval "$var=1"
10477 fi
10478
10479 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10480 eval "wx${toolkit}_VERSION=$value"
10481 fi
a848cd7e
SC
10482 done
10483 else
10484 for toolkit in `echo $ALL_TOOLKITS`; do
10485 if test "$has_toolkit_in_cache" != 1; then
10486 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10487 else
10488 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10489
10490 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10491 if test "x$version" != "x"; then
10492 eval "wx${toolkit}_VERSION=$version"
10493 fi
a848cd7e
SC
10494 fi
10495 eval "wxUSE_$toolkit=\$${var}"
10496 done
10497 fi
10498
10499 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10500 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10501 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10502
10503 case "${host}" in
10504 *-pc-os2_emx | *-pc-os2-emx )
10505 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10506 esac
10507
10508 case "$NUM_TOOLKITS" in
10509 1)
10510 ;;
10511 0)
10512 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10513echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10514 { (exit 1); exit 1; }; }
10515 ;;
10516 *)
10517 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10518echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10519 { (exit 1); exit 1; }; }
10520 esac
10521
f34ca037
MW
10522 # to be removed when --disable-gtk2 isn't needed
10523 if test "x$wxUSE_GTK2" = "xyes"; then
10524 wxGTK_VERSION=2
10525 elif test "x$wxUSE_GTK2" = "xno"; then
10526 wxGTK_VERSION=1
10527 fi
10528
a848cd7e
SC
10529 for toolkit in `echo $ALL_TOOLKITS`; do
10530 var=wxUSE_$toolkit
10531 eval "value=\$${var}"
10532 if test "x$value" != x; then
10533 cache_var=CACHE_$toolkit
10534 eval "cache=\$${cache_var}"
10535 if test "$cache" = 1; then
10536 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10537 eval "version=\$wx${toolkit}_VERSION"
10538 if test "x$version" != "x"; then
10539 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10540 fi
a848cd7e
SC
10541 fi
10542 if test "$value" = 1; then
10543 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10544 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10545echo "${ECHO_T}$toolkit_echo" >&6
10546 fi
10547 fi
10548 done
10549else
10550 if test "x$host_alias" != "x"; then
10551 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10552echo "${ECHO_T}base ($host_alias hosted) only" >&6
10553 else
10554 echo "$as_me:$LINENO: result: base only" >&5
10555echo "${ECHO_T}base only" >&6
10556 fi
10557fi
10558
10559wants_win32=0
10560doesnt_want_win32=0
10561case "${host}" in
10562 *-*-cygwin*)
10563 if test "$wxUSE_MSW" = 1 ; then
10564 wants_win32=1
10565 else
10566 doesnt_want_win32=1
10567 fi
10568 ;;
10569 *-*-mingw*)
10570 wants_win32=1
10571 ;;
10572esac
10573
10574if test "$wxUSE_WINE" = "yes"; then
10575 wants_win32=1
10576 CC=winegcc
10577 CXX=wineg++
10578 RESCOMP=wrc
10579 LDFLAGS_GUI="-mwindows"
10580fi
10581
10582if test "$wants_win32" = 1 ; then
10583 USE_UNIX=0
10584 USE_WIN32=1
10585 cat >>confdefs.h <<\_ACEOF
10586#define __WIN32__ 1
10587_ACEOF
10588
10589 cat >>confdefs.h <<\_ACEOF
10590#define __WIN95__ 1
10591_ACEOF
10592
10593 cat >>confdefs.h <<\_ACEOF
10594#define __WINDOWS__ 1
10595_ACEOF
10596
10597 cat >>confdefs.h <<\_ACEOF
10598#define __GNUWIN32__ 1
10599_ACEOF
10600
10601 cat >>confdefs.h <<\_ACEOF
10602#define STRICT 1
10603_ACEOF
10604
10605 cat >>confdefs.h <<\_ACEOF
10606#define WINVER 0x0400
10607_ACEOF
10608
10609fi
10610if test "$doesnt_want_win32" = 1 ; then
10611 USE_UNIX=1
10612 USE_WIN32=0
10613fi
10614
10615if test "$USE_UNIX" = 1 ; then
10616 wxUSE_UNIX=yes
10617 cat >>confdefs.h <<\_ACEOF
10618#define __UNIX__ 1
10619_ACEOF
10620
10621fi
10622
10623
10624cat >confcache <<\_ACEOF
10625# This file is a shell script that caches the results of configure
10626# tests run on this system so they can be shared between configure
10627# scripts and configure runs, see configure's option --config-cache.
10628# It is not useful on other systems. If it contains results you don't
10629# want to keep, you may remove or edit it.
10630#
10631# config.status only pays attention to the cache file if you give it
10632# the --recheck option to rerun configure.
10633#
10634# `ac_cv_env_foo' variables (set or unset) will be overridden when
10635# loading this file, other *unset* `ac_cv_foo' will be assigned the
10636# following values.
10637
10638_ACEOF
10639
10640# The following way of writing the cache mishandles newlines in values,
10641# but we know of no workaround that is simple, portable, and efficient.
10642# So, don't put newlines in cache variables' values.
10643# Ultrix sh set writes to stderr and can't be redirected directly,
10644# and sets the high bit in the cache file unless we assign to the vars.
10645{
10646 (set) 2>&1 |
10647 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10648 *ac_space=\ *)
10649 # `set' does not quote correctly, so add quotes (double-quote
10650 # substitution turns \\\\ into \\, and sed turns \\ into \).
10651 sed -n \
ac1cb8d3
VS
10652 "s/'/'\\\\''/g;
10653 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10654 ;;
10655 *)
10656 # `set' quotes correctly as required by POSIX, so do not add quotes.
10657 sed -n \
ac1cb8d3 10658 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10659 ;;
10660 esac;
10661} |
10662 sed '
10663 t clear
10664 : clear
10665 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10666 t end
10667 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10668 : end' >>confcache
10669if diff $cache_file confcache >/dev/null 2>&1; then :; else
10670 if test -w $cache_file; then
10671 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10672 cat confcache >$cache_file
10673 else
10674 echo "not updating unwritable cache $cache_file"
10675 fi
10676fi
10677rm -f confcache
10678
10679if test "$build" != "$host" ; then
1e9e8aba 10680 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10681 CC=$host_alias-gcc
10682 CXX=$host_alias-c++
10683 AR=$host_alias-ar
10684 RANLIB=$host_alias-ranlib
10685 DLLTOOL=$host_alias-dlltool
10686 RESCOMP=$host_alias-windres
a848cd7e 10687 STRIP=$host_alias-strip
1e9e8aba
DE
10688 elif test "x$CC" '!=' "x"; then
10689 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10690 else
10691 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10692echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10693 { (exit 1); exit 1; }; }
10694 fi
10695fi
10696
10697CFLAGS=${CFLAGS:=}
6dcfc289
DE
10698
10699
10700 ac_ext=c
a848cd7e
SC
10701ac_cpp='$CPP $CPPFLAGS'
10702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704ac_compiler_gnu=$ac_cv_c_compiler_gnu
10705if test -n "$ac_tool_prefix"; then
10706 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10707set dummy ${ac_tool_prefix}gcc; ac_word=$2
10708echo "$as_me:$LINENO: checking for $ac_word" >&5
10709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10710if test "${ac_cv_prog_CC+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712else
10713 if test -n "$CC"; then
10714 ac_cv_prog_CC="$CC" # Let the user override the test.
10715else
10716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717for as_dir in $PATH
10718do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10723 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10726 fi
10727done
10728done
10729
10730fi
10731fi
10732CC=$ac_cv_prog_CC
10733if test -n "$CC"; then
10734 echo "$as_me:$LINENO: result: $CC" >&5
10735echo "${ECHO_T}$CC" >&6
10736else
10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
10739fi
10740
10741fi
10742if test -z "$ac_cv_prog_CC"; then
10743 ac_ct_CC=$CC
10744 # Extract the first word of "gcc", so it can be a program name with args.
10745set dummy gcc; ac_word=$2
10746echo "$as_me:$LINENO: checking for $ac_word" >&5
10747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10748if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751 if test -n "$ac_ct_CC"; then
10752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10753else
10754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755for as_dir in $PATH
10756do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761 ac_cv_prog_ac_ct_CC="gcc"
10762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10764 fi
10765done
10766done
10767
10768fi
10769fi
10770ac_ct_CC=$ac_cv_prog_ac_ct_CC
10771if test -n "$ac_ct_CC"; then
10772 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10773echo "${ECHO_T}$ac_ct_CC" >&6
10774else
10775 echo "$as_me:$LINENO: result: no" >&5
10776echo "${ECHO_T}no" >&6
10777fi
10778
10779 CC=$ac_ct_CC
10780else
10781 CC="$ac_cv_prog_CC"
10782fi
10783
10784if test -z "$CC"; then
10785 if test -n "$ac_tool_prefix"; then
10786 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10787set dummy ${ac_tool_prefix}cc; ac_word=$2
10788echo "$as_me:$LINENO: checking for $ac_word" >&5
10789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10790if test "${ac_cv_prog_CC+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792else
10793 if test -n "$CC"; then
10794 ac_cv_prog_CC="$CC" # Let the user override the test.
10795else
10796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797for as_dir in $PATH
10798do
10799 IFS=$as_save_IFS
10800 test -z "$as_dir" && as_dir=.
10801 for ac_exec_ext in '' $ac_executable_extensions; do
10802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10803 ac_cv_prog_CC="${ac_tool_prefix}cc"
10804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10805 break 2
10806 fi
10807done
10808done
10809
10810fi
10811fi
10812CC=$ac_cv_prog_CC
10813if test -n "$CC"; then
10814 echo "$as_me:$LINENO: result: $CC" >&5
10815echo "${ECHO_T}$CC" >&6
10816else
10817 echo "$as_me:$LINENO: result: no" >&5
10818echo "${ECHO_T}no" >&6
10819fi
10820
10821fi
10822if test -z "$ac_cv_prog_CC"; then
10823 ac_ct_CC=$CC
10824 # Extract the first word of "cc", so it can be a program name with args.
10825set dummy cc; ac_word=$2
10826echo "$as_me:$LINENO: checking for $ac_word" >&5
10827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10828if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 if test -n "$ac_ct_CC"; then
10832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10833else
10834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10835for as_dir in $PATH
10836do
10837 IFS=$as_save_IFS
10838 test -z "$as_dir" && as_dir=.
10839 for ac_exec_ext in '' $ac_executable_extensions; do
10840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10841 ac_cv_prog_ac_ct_CC="cc"
10842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10843 break 2
10844 fi
10845done
10846done
10847
10848fi
10849fi
10850ac_ct_CC=$ac_cv_prog_ac_ct_CC
10851if test -n "$ac_ct_CC"; then
10852 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10853echo "${ECHO_T}$ac_ct_CC" >&6
10854else
10855 echo "$as_me:$LINENO: result: no" >&5
10856echo "${ECHO_T}no" >&6
10857fi
10858
10859 CC=$ac_ct_CC
10860else
10861 CC="$ac_cv_prog_CC"
10862fi
10863
10864fi
10865if test -z "$CC"; then
10866 # Extract the first word of "cc", so it can be a program name with args.
10867set dummy cc; ac_word=$2
10868echo "$as_me:$LINENO: checking for $ac_word" >&5
10869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10870if test "${ac_cv_prog_CC+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872else
10873 if test -n "$CC"; then
10874 ac_cv_prog_CC="$CC" # Let the user override the test.
10875else
10876 ac_prog_rejected=no
10877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878for as_dir in $PATH
10879do
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10885 ac_prog_rejected=yes
10886 continue
10887 fi
10888 ac_cv_prog_CC="cc"
10889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10890 break 2
10891 fi
10892done
10893done
10894
10895if test $ac_prog_rejected = yes; then
10896 # We found a bogon in the path, so make sure we never use it.
10897 set dummy $ac_cv_prog_CC
10898 shift
10899 if test $# != 0; then
10900 # We chose a different compiler from the bogus one.
10901 # However, it has the same basename, so the bogon will be chosen
10902 # first if we set CC to just the basename; use the full file name.
10903 shift
10904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10905 fi
10906fi
10907fi
10908fi
10909CC=$ac_cv_prog_CC
10910if test -n "$CC"; then
10911 echo "$as_me:$LINENO: result: $CC" >&5
10912echo "${ECHO_T}$CC" >&6
10913else
10914 echo "$as_me:$LINENO: result: no" >&5
10915echo "${ECHO_T}no" >&6
10916fi
10917
10918fi
10919if test -z "$CC"; then
10920 if test -n "$ac_tool_prefix"; then
10921 for ac_prog in cl
10922 do
10923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10924set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10925echo "$as_me:$LINENO: checking for $ac_word" >&5
10926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10927if test "${ac_cv_prog_CC+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929else
10930 if test -n "$CC"; then
10931 ac_cv_prog_CC="$CC" # Let the user override the test.
10932else
10933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934for as_dir in $PATH
10935do
10936 IFS=$as_save_IFS
10937 test -z "$as_dir" && as_dir=.
10938 for ac_exec_ext in '' $ac_executable_extensions; do
10939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10940 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10942 break 2
10943 fi
10944done
10945done
10946
10947fi
10948fi
10949CC=$ac_cv_prog_CC
10950if test -n "$CC"; then
10951 echo "$as_me:$LINENO: result: $CC" >&5
10952echo "${ECHO_T}$CC" >&6
10953else
10954 echo "$as_me:$LINENO: result: no" >&5
10955echo "${ECHO_T}no" >&6
10956fi
10957
10958 test -n "$CC" && break
10959 done
10960fi
10961if test -z "$CC"; then
10962 ac_ct_CC=$CC
10963 for ac_prog in cl
10964do
10965 # Extract the first word of "$ac_prog", so it can be a program name with args.
10966set dummy $ac_prog; ac_word=$2
10967echo "$as_me:$LINENO: checking for $ac_word" >&5
10968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10969if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971else
10972 if test -n "$ac_ct_CC"; then
10973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10974else
10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH
10977do
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_prog_ac_ct_CC="$ac_prog"
10983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 break 2
10985 fi
10986done
10987done
10988
10989fi
10990fi
10991ac_ct_CC=$ac_cv_prog_ac_ct_CC
10992if test -n "$ac_ct_CC"; then
10993 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10994echo "${ECHO_T}$ac_ct_CC" >&6
10995else
10996 echo "$as_me:$LINENO: result: no" >&5
10997echo "${ECHO_T}no" >&6
10998fi
10999
11000 test -n "$ac_ct_CC" && break
11001done
11002
11003 CC=$ac_ct_CC
11004fi
11005
11006fi
11007
11008
11009test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11010See \`config.log' for more details." >&5
11011echo "$as_me: error: no acceptable C compiler found in \$PATH
11012See \`config.log' for more details." >&2;}
11013 { (exit 1); exit 1; }; }
11014
11015# Provide some information about the compiler.
11016echo "$as_me:$LINENO:" \
11017 "checking for C compiler version" >&5
11018ac_compiler=`set X $ac_compile; echo $2`
11019{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11020 (eval $ac_compiler --version </dev/null >&5) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }
11024{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11025 (eval $ac_compiler -v </dev/null >&5) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }
11029{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11030 (eval $ac_compiler -V </dev/null >&5) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }
11034
11035cat >conftest.$ac_ext <<_ACEOF
11036/* confdefs.h. */
11037_ACEOF
11038cat confdefs.h >>conftest.$ac_ext
11039cat >>conftest.$ac_ext <<_ACEOF
11040/* end confdefs.h. */
11041
11042int
11043main ()
11044{
11045
11046 ;
11047 return 0;
11048}
11049_ACEOF
11050ac_clean_files_save=$ac_clean_files
11051ac_clean_files="$ac_clean_files a.out a.exe b.out"
11052# Try to create an executable without -o first, disregard a.out.
11053# It will help us diagnose broken compilers, and finding out an intuition
11054# of exeext.
ac1cb8d3
VS
11055echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11056echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11057ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11058if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11059 (eval $ac_link_default) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; then
11063 # Find the output, starting from the most likely. This scheme is
11064# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11065# resort.
11066
11067# Be careful to initialize this variable, since it used to be cached.
11068# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11069ac_cv_exeext=
11070# b.out is created by i960 compilers.
11071for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11072do
11073 test -f "$ac_file" || continue
11074 case $ac_file in
11075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11076 ;;
a848cd7e 11077 conftest.$ac_ext )
ac1cb8d3
VS
11078 # This is the source file.
11079 ;;
a848cd7e 11080 [ab].out )
ac1cb8d3
VS
11081 # We found the default executable, but exeext='' is most
11082 # certainly right.
11083 break;;
a848cd7e 11084 *.* )
ac1cb8d3
VS
11085 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11086 # FIXME: I believe we export ac_cv_exeext for Libtool,
11087 # but it would be cool to find out if it's true. Does anybody
11088 # maintain Libtool? --akim.
11089 export ac_cv_exeext
11090 break;;
a848cd7e 11091 * )
ac1cb8d3 11092 break;;
a848cd7e
SC
11093 esac
11094done
11095else
11096 echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
11099{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11100See \`config.log' for more details." >&5
11101echo "$as_me: error: C compiler cannot create executables
11102See \`config.log' for more details." >&2;}
11103 { (exit 77); exit 77; }; }
11104fi
11105
11106ac_exeext=$ac_cv_exeext
11107echo "$as_me:$LINENO: result: $ac_file" >&5
11108echo "${ECHO_T}$ac_file" >&6
11109
11110# Check the compiler produces executables we can run. If not, either
11111# the compiler is broken, or we cross compile.
11112echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11113echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11114# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11115# If not cross compiling, check that we can run a simple program.
11116if test "$cross_compiling" != yes; then
11117 if { ac_try='./$ac_file'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 cross_compiling=no
11124 else
11125 if test "$cross_compiling" = maybe; then
11126 cross_compiling=yes
11127 else
11128 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11129If you meant to cross compile, use \`--host'.
11130See \`config.log' for more details." >&5
11131echo "$as_me: error: cannot run C compiled programs.
11132If you meant to cross compile, use \`--host'.
11133See \`config.log' for more details." >&2;}
11134 { (exit 1); exit 1; }; }
11135 fi
11136 fi
11137fi
11138echo "$as_me:$LINENO: result: yes" >&5
11139echo "${ECHO_T}yes" >&6
11140
11141rm -f a.out a.exe conftest$ac_cv_exeext b.out
11142ac_clean_files=$ac_clean_files_save
11143# Check the compiler produces executables we can run. If not, either
11144# the compiler is broken, or we cross compile.
11145echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11146echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11147echo "$as_me:$LINENO: result: $cross_compiling" >&5
11148echo "${ECHO_T}$cross_compiling" >&6
11149
11150echo "$as_me:$LINENO: checking for suffix of executables" >&5
11151echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153 (eval $ac_link) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; then
11157 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11158# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11159# work properly (i.e., refer to `conftest.exe'), while it won't with
11160# `rm'.
11161for ac_file in conftest.exe conftest conftest.*; do
11162 test -f "$ac_file" || continue
11163 case $ac_file in
11164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11165 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11166 export ac_cv_exeext
11167 break;;
a848cd7e
SC
11168 * ) break;;
11169 esac
11170done
11171else
11172 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11173See \`config.log' for more details." >&5
11174echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11175See \`config.log' for more details." >&2;}
11176 { (exit 1); exit 1; }; }
11177fi
11178
11179rm -f conftest$ac_cv_exeext
11180echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11181echo "${ECHO_T}$ac_cv_exeext" >&6
11182
11183rm -f conftest.$ac_ext
11184EXEEXT=$ac_cv_exeext
11185ac_exeext=$EXEEXT
11186echo "$as_me:$LINENO: checking for suffix of object files" >&5
11187echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11188if test "${ac_cv_objext+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190else
11191 cat >conftest.$ac_ext <<_ACEOF
11192/* confdefs.h. */
11193_ACEOF
11194cat confdefs.h >>conftest.$ac_ext
11195cat >>conftest.$ac_ext <<_ACEOF
11196/* end confdefs.h. */
11197
11198int
11199main ()
11200{
11201
11202 ;
11203 return 0;
11204}
11205_ACEOF
11206rm -f conftest.o conftest.obj
11207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>&5
11209 ac_status=$?
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; then
11212 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11213 case $ac_file in
11214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11215 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11216 break;;
11217 esac
11218done
11219else
11220 echo "$as_me: failed program was:" >&5
11221sed 's/^/| /' conftest.$ac_ext >&5
11222
11223{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11224See \`config.log' for more details." >&5
11225echo "$as_me: error: cannot compute suffix of object files: cannot compile
11226See \`config.log' for more details." >&2;}
11227 { (exit 1); exit 1; }; }
11228fi
11229
11230rm -f conftest.$ac_cv_objext conftest.$ac_ext
11231fi
11232echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11233echo "${ECHO_T}$ac_cv_objext" >&6
11234OBJEXT=$ac_cv_objext
11235ac_objext=$OBJEXT
11236echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11237echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11238if test "${ac_cv_c_compiler_gnu+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240else
11241 cat >conftest.$ac_ext <<_ACEOF
11242/* confdefs.h. */
11243_ACEOF
11244cat confdefs.h >>conftest.$ac_ext
11245cat >>conftest.$ac_ext <<_ACEOF
11246/* end confdefs.h. */
11247
11248int
11249main ()
11250{
11251#ifndef __GNUC__
11252 choke me
11253#endif
11254
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259rm -f conftest.$ac_objext
11260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11261 (eval $ac_compile) 2>conftest.er1
a848cd7e 11262 ac_status=$?
ac1cb8d3
VS
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
a848cd7e
SC
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
fb00f58d
JS
11268 { ac_try='test -z "$ac_c_werror_flag"
11269 || test ! -s conftest.err'
ac1cb8d3
VS
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 ac_compiler_gnu=yes
11282else
11283 echo "$as_me: failed program was:" >&5
11284sed 's/^/| /' conftest.$ac_ext >&5
11285
11286ac_compiler_gnu=no
11287fi
ac1cb8d3 11288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11289ac_cv_c_compiler_gnu=$ac_compiler_gnu
11290
11291fi
11292echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11293echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11294GCC=`test $ac_compiler_gnu = yes && echo yes`
11295ac_test_CFLAGS=${CFLAGS+set}
11296ac_save_CFLAGS=$CFLAGS
52ada004 11297CFLAGS="-g"
a848cd7e
SC
11298echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11299echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11300if test "${ac_cv_prog_cc_g+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302else
11303 cat >conftest.$ac_ext <<_ACEOF
11304/* confdefs.h. */
11305_ACEOF
11306cat confdefs.h >>conftest.$ac_ext
11307cat >>conftest.$ac_ext <<_ACEOF
11308/* end confdefs.h. */
11309
11310int
11311main ()
11312{
11313
11314 ;
11315 return 0;
11316}
11317_ACEOF
11318rm -f conftest.$ac_objext
11319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11320 (eval $ac_compile) 2>conftest.er1
a848cd7e 11321 ac_status=$?
ac1cb8d3
VS
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
a848cd7e
SC
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
fb00f58d
JS
11327 { ac_try='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
ac1cb8d3
VS
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_prog_cc_g=yes
11341else
11342 echo "$as_me: failed program was:" >&5
11343sed 's/^/| /' conftest.$ac_ext >&5
11344
11345ac_cv_prog_cc_g=no
11346fi
ac1cb8d3 11347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11348fi
11349echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11350echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11351if test "$ac_test_CFLAGS" = set; then
11352 CFLAGS=$ac_save_CFLAGS
11353elif test $ac_cv_prog_cc_g = yes; then
11354 if test "$GCC" = yes; then
11355 CFLAGS="-g -O2"
11356 else
11357 CFLAGS="-g"
11358 fi
11359else
11360 if test "$GCC" = yes; then
11361 CFLAGS="-O2"
11362 else
11363 CFLAGS=
11364 fi
11365fi
11366echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11367echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11368if test "${ac_cv_prog_cc_stdc+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370else
11371 ac_cv_prog_cc_stdc=no
11372ac_save_CC=$CC
11373cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
11379#include <stdarg.h>
11380#include <stdio.h>
11381#include <sys/types.h>
11382#include <sys/stat.h>
11383/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11384struct buf { int x; };
11385FILE * (*rcsopen) (struct buf *, struct stat *, int);
11386static char *e (p, i)
11387 char **p;
11388 int i;
11389{
11390 return p[i];
11391}
11392static char *f (char * (*g) (char **, int), char **p, ...)
11393{
11394 char *s;
11395 va_list v;
11396 va_start (v,p);
11397 s = g (p, va_arg (v,int));
11398 va_end (v);
11399 return s;
11400}
ac1cb8d3
VS
11401
11402/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11403 function prototypes and stuff, but not '\xHH' hex character constants.
11404 These don't provoke an error unfortunately, instead are silently treated
11405 as 'x'. The following induces an error, until -std1 is added to get
11406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11407 array size at least. It's necessary to write '\x00'==0 to get something
11408 that's true only with -std1. */
11409int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11410
a848cd7e
SC
11411int test (int i, double x);
11412struct s1 {int (*f) (int a);};
11413struct s2 {int (*f) (double a);};
11414int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11415int argc;
11416char **argv;
11417int
11418main ()
11419{
11420return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11421 ;
11422 return 0;
11423}
11424_ACEOF
11425# Don't try gcc -ansi; that turns off useful extensions and
11426# breaks some systems' header files.
11427# AIX -qlanglvl=ansi
11428# Ultrix and OSF/1 -std1
11429# HP-UX 10.20 and later -Ae
11430# HP-UX older versions -Aa -D_HPUX_SOURCE
11431# SVR4 -Xc -D__EXTENSIONS__
11432for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11433do
11434 CC="$ac_save_CC $ac_arg"
11435 rm -f conftest.$ac_objext
11436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11437 (eval $ac_compile) 2>conftest.er1
a848cd7e 11438 ac_status=$?
ac1cb8d3
VS
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
a848cd7e
SC
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } &&
fb00f58d
JS
11444 { ac_try='test -z "$ac_c_werror_flag"
11445 || test ! -s conftest.err'
ac1cb8d3
VS
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 ac_cv_prog_cc_stdc=$ac_arg
11458break
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463fi
ac1cb8d3 11464rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11465done
11466rm -f conftest.$ac_ext conftest.$ac_objext
11467CC=$ac_save_CC
11468
11469fi
11470
11471case "x$ac_cv_prog_cc_stdc" in
11472 x|xno)
11473 echo "$as_me:$LINENO: result: none needed" >&5
11474echo "${ECHO_T}none needed" >&6 ;;
11475 *)
11476 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11477echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11478 CC="$CC $ac_cv_prog_cc_stdc" ;;
11479esac
11480
11481# Some people use a C++ compiler to compile C. Since we use `exit',
11482# in C++ we need to declare it. In case someone uses the same compiler
11483# for both compiling C and C++ we need to have the C++ compiler decide
11484# the declaration of exit, since it's the most demanding environment.
11485cat >conftest.$ac_ext <<_ACEOF
11486#ifndef __cplusplus
11487 choke me
11488#endif
11489_ACEOF
11490rm -f conftest.$ac_objext
11491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11492 (eval $ac_compile) 2>conftest.er1
a848cd7e 11493 ac_status=$?
ac1cb8d3
VS
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
a848cd7e
SC
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
fb00f58d
JS
11499 { ac_try='test -z "$ac_c_werror_flag"
11500 || test ! -s conftest.err'
ac1cb8d3
VS
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 for ac_declaration in \
ac1cb8d3 11513 '' \
a848cd7e
SC
11514 'extern "C" void std::exit (int) throw (); using std::exit;' \
11515 'extern "C" void std::exit (int); using std::exit;' \
11516 'extern "C" void exit (int) throw ();' \
11517 'extern "C" void exit (int);' \
11518 'void exit (int);'
11519do
11520 cat >conftest.$ac_ext <<_ACEOF
11521/* confdefs.h. */
11522_ACEOF
11523cat confdefs.h >>conftest.$ac_ext
11524cat >>conftest.$ac_ext <<_ACEOF
11525/* end confdefs.h. */
de59c161 11526$ac_declaration
ac1cb8d3 11527#include <stdlib.h>
a848cd7e
SC
11528int
11529main ()
11530{
11531exit (42);
11532 ;
11533 return 0;
11534}
11535_ACEOF
11536rm -f conftest.$ac_objext
11537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11538 (eval $ac_compile) 2>conftest.er1
a848cd7e 11539 ac_status=$?
ac1cb8d3
VS
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
a848cd7e
SC
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } &&
fb00f58d
JS
11545 { ac_try='test -z "$ac_c_werror_flag"
11546 || test ! -s conftest.err'
ac1cb8d3
VS
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; } &&
11552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 :
11559else
11560 echo "$as_me: failed program was:" >&5
11561sed 's/^/| /' conftest.$ac_ext >&5
11562
11563continue
11564fi
ac1cb8d3 11565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11566 cat >conftest.$ac_ext <<_ACEOF
11567/* confdefs.h. */
11568_ACEOF
11569cat confdefs.h >>conftest.$ac_ext
11570cat >>conftest.$ac_ext <<_ACEOF
11571/* end confdefs.h. */
11572$ac_declaration
11573int
11574main ()
11575{
11576exit (42);
11577 ;
11578 return 0;
11579}
11580_ACEOF
11581rm -f conftest.$ac_objext
11582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11583 (eval $ac_compile) 2>conftest.er1
a848cd7e 11584 ac_status=$?
ac1cb8d3
VS
11585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -f conftest.er1
11587 cat conftest.err >&5
a848cd7e
SC
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
fb00f58d
JS
11590 { ac_try='test -z "$ac_c_werror_flag"
11591 || test ! -s conftest.err'
ac1cb8d3
VS
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; } &&
11597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 break
11604else
11605 echo "$as_me: failed program was:" >&5
11606sed 's/^/| /' conftest.$ac_ext >&5
11607
11608fi
ac1cb8d3 11609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11610done
11611rm -f conftest*
11612if test -n "$ac_declaration"; then
11613 echo '#ifdef __cplusplus' >>confdefs.h
11614 echo $ac_declaration >>confdefs.h
11615 echo '#endif' >>confdefs.h
11616fi
11617
11618else
11619 echo "$as_me: failed program was:" >&5
11620sed 's/^/| /' conftest.$ac_ext >&5
11621
11622fi
ac1cb8d3 11623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11624ac_ext=c
11625ac_cpp='$CPP $CPPFLAGS'
11626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11628ac_compiler_gnu=$ac_cv_c_compiler_gnu
11629
6dcfc289 11630 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11631echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11632if test "${wx_cv_c_exto+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634else
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
11642int
11643main ()
11644{
11645
11646 ;
11647 return 0;
11648}
11649_ACEOF
11650rm -f conftest.$ac_objext conftest.$ac_ext.o
11651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11652 (eval $ac_compile) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; then
11656 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11657 case $ac_file in
11658 conftest.$ac_ext.o)
11659 wx_cv_c_exto="-ext o"
11660 ;;
11661 *)
11662 ;;
11663 esac
11664done
11665else
11666 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11667See \`config.log' for more details." >&5
11668echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11669See \`config.log' for more details." >&2;}
11670 { (exit 1); exit 1; }; }
11671
11672fi
11673
11674rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11675
11676fi
11677echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11678echo "${ECHO_T}$wx_cv_c_exto" >&6
11679if test "x$wx_cv_c_exto" '!=' "x"; then
11680 if test "c" = "c"; then
11681 CFLAGS="$wx_cv_c_exto $CFLAGS"
11682 fi
11683 if test "c" = "cxx"; then
11684 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11685 fi
11686fi
11687
6dcfc289
DE
11688 if test "x$wx_cv_c_exto" '!=' "x"; then
11689 unset ac_cv_prog_cc_g
11690 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11691ac_save_CFLAGS=$CFLAGS
52ada004 11692CFLAGS="-g"
480ccd21
DE
11693echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11694echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11695if test "${ac_cv_prog_cc_g+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11697else
11698 cat >conftest.$ac_ext <<_ACEOF
11699/* confdefs.h. */
11700_ACEOF
11701cat confdefs.h >>conftest.$ac_ext
11702cat >>conftest.$ac_ext <<_ACEOF
11703/* end confdefs.h. */
11704
11705int
11706main ()
11707{
11708
11709 ;
11710 return 0;
11711}
11712_ACEOF
11713rm -f conftest.$ac_objext
11714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715 (eval $ac_compile) 2>conftest.er1
11716 ac_status=$?
11717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
fb00f58d
JS
11722 { ac_try='test -z "$ac_c_werror_flag"
11723 || test ! -s conftest.err'
480ccd21
DE
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; } &&
11729 { ac_try='test -s conftest.$ac_objext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 ac_cv_prog_cc_g=yes
11736else
11737 echo "$as_me: failed program was:" >&5
11738sed 's/^/| /' conftest.$ac_ext >&5
11739
11740ac_cv_prog_cc_g=no
11741fi
11742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11743fi
11744echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11745echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11746if test "$ac_test_CFLAGS" = set; then
11747 CFLAGS=$ac_save_CFLAGS
11748elif test $ac_cv_prog_cc_g = yes; then
11749 if test "$GCC" = yes; then
11750 CFLAGS="-g -O2"
11751 else
11752 CFLAGS="-g"
11753 fi
11754else
11755 if test "$GCC" = yes; then
11756 CFLAGS="-O2"
11757 else
11758 CFLAGS=
11759 fi
11760fi
6dcfc289
DE
11761 fi
11762 ac_ext=c
95986553
DE
11763ac_cpp='$CPP $CPPFLAGS'
11764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11766ac_compiler_gnu=$ac_cv_c_compiler_gnu
11767
11768echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11769echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11770if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11772else
11773 cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779
11780int
11781main ()
11782{
11783#ifndef __MWERKS__
11784 choke me
11785#endif
11786
11787 ;
11788 return 0;
11789}
11790_ACEOF
11791rm -f conftest.$ac_objext
11792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11793 (eval $ac_compile) 2>conftest.er1
11794 ac_status=$?
11795 grep -v '^ *+' conftest.er1 >conftest.err
11796 rm -f conftest.er1
11797 cat conftest.err >&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
fb00f58d
JS
11800 { ac_try='test -z "$ac_c_werror_flag"
11801 || test ! -s conftest.err'
95986553
DE
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try='test -s conftest.$ac_objext'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 bakefile_compiler_mwerks=yes
11814else
11815 echo "$as_me: failed program was:" >&5
11816sed 's/^/| /' conftest.$ac_ext >&5
11817
11818bakefile_compiler_mwerks=no
11819fi
11820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11821 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11822
11823fi
11824echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11825echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11826
0e6fa1d9 11827MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11828ac_ext=c
11829ac_cpp='$CPP $CPPFLAGS'
11830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11832ac_compiler_gnu=$ac_cv_c_compiler_gnu
11833
11834
6dcfc289 11835 ac_ext=c
9273ffba
DE
11836ac_cpp='$CPP $CPPFLAGS'
11837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11839ac_compiler_gnu=$ac_cv_c_compiler_gnu
11840
11841echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11842echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11843if test "${wx_cv_c_compiler_xlc+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11845else
11846 cat >conftest.$ac_ext <<_ACEOF
11847/* confdefs.h. */
11848_ACEOF
11849cat confdefs.h >>conftest.$ac_ext
11850cat >>conftest.$ac_ext <<_ACEOF
11851/* end confdefs.h. */
11852
11853int
11854main ()
11855{
11856#ifndef __xlC__
11857 choke me
11858#endif
11859
11860 ;
11861 return 0;
11862}
11863_ACEOF
11864rm -f conftest.$ac_objext
11865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11866 (eval $ac_compile) 2>conftest.er1
11867 ac_status=$?
11868 grep -v '^ *+' conftest.er1 >conftest.err
11869 rm -f conftest.er1
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
fb00f58d
JS
11873 { ac_try='test -z "$ac_c_werror_flag"
11874 || test ! -s conftest.err'
9273ffba
DE
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; } &&
11880 { ac_try='test -s conftest.$ac_objext'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11886 wx_compiler_xlc=yes
11887else
11888 echo "$as_me: failed program was:" >&5
11889sed 's/^/| /' conftest.$ac_ext >&5
11890
11891wx_compiler_xlc=no
11892fi
11893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11894 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11895
11896fi
11897echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11898echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11899
0e6fa1d9 11900XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11901ac_ext=c
11902ac_cpp='$CPP $CPPFLAGS'
11903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11905ac_compiler_gnu=$ac_cv_c_compiler_gnu
11906
11907
a848cd7e 11908
6dcfc289 11909
a848cd7e
SC
11910ac_ext=c
11911ac_cpp='$CPP $CPPFLAGS'
11912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11914ac_compiler_gnu=$ac_cv_c_compiler_gnu
11915echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11916echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11917# On Suns, sometimes $CPP names a directory.
11918if test -n "$CPP" && test -d "$CPP"; then
11919 CPP=
11920fi
11921if test -z "$CPP"; then
11922 if test "${ac_cv_prog_CPP+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924else
11925 # Double quotes because CPP needs to be expanded
11926 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11927 do
11928 ac_preproc_ok=false
11929for ac_c_preproc_warn_flag in '' yes
11930do
11931 # Use a header file that comes with gcc, so configuring glibc
11932 # with a fresh cross-compiler works.
11933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934 # <limits.h> exists even on freestanding compilers.
11935 # On the NeXT, cc -E runs the code through the compiler's parser,
11936 # not just through cpp. "Syntax error" is here to catch this case.
11937 cat >conftest.$ac_ext <<_ACEOF
11938/* confdefs.h. */
11939_ACEOF
11940cat confdefs.h >>conftest.$ac_ext
11941cat >>conftest.$ac_ext <<_ACEOF
11942/* end confdefs.h. */
11943#ifdef __STDC__
11944# include <limits.h>
11945#else
11946# include <assert.h>
11947#endif
ac1cb8d3 11948 Syntax error
a848cd7e
SC
11949_ACEOF
11950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } >/dev/null; then
11958 if test -s conftest.err; then
11959 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11961 else
11962 ac_cpp_err=
11963 fi
11964else
11965 ac_cpp_err=yes
11966fi
11967if test -z "$ac_cpp_err"; then
11968 :
11969else
11970 echo "$as_me: failed program was:" >&5
11971sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 # Broken: fails on valid input.
11974continue
11975fi
11976rm -f conftest.err conftest.$ac_ext
11977
11978 # OK, works on sane cases. Now check whether non-existent headers
11979 # can be detected and how.
11980 cat >conftest.$ac_ext <<_ACEOF
11981/* confdefs.h. */
11982_ACEOF
11983cat confdefs.h >>conftest.$ac_ext
11984cat >>conftest.$ac_ext <<_ACEOF
11985/* end confdefs.h. */
11986#include <ac_nonexistent.h>
11987_ACEOF
11988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11990 ac_status=$?
11991 grep -v '^ *+' conftest.er1 >conftest.err
11992 rm -f conftest.er1
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } >/dev/null; then
11996 if test -s conftest.err; then
11997 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11999 else
12000 ac_cpp_err=
12001 fi
12002else
12003 ac_cpp_err=yes
12004fi
12005if test -z "$ac_cpp_err"; then
12006 # Broken: success on invalid input.
12007continue
12008else
12009 echo "$as_me: failed program was:" >&5
12010sed 's/^/| /' conftest.$ac_ext >&5
12011
12012 # Passes both tests.
12013ac_preproc_ok=:
12014break
12015fi
12016rm -f conftest.err conftest.$ac_ext
12017
12018done
12019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12020rm -f conftest.err conftest.$ac_ext
12021if $ac_preproc_ok; then
12022 break
12023fi
12024
12025 done
12026 ac_cv_prog_CPP=$CPP
12027
12028fi
12029 CPP=$ac_cv_prog_CPP
12030else
12031 ac_cv_prog_CPP=$CPP
12032fi
12033echo "$as_me:$LINENO: result: $CPP" >&5
12034echo "${ECHO_T}$CPP" >&6
12035ac_preproc_ok=false
12036for ac_c_preproc_warn_flag in '' yes
12037do
12038 # Use a header file that comes with gcc, so configuring glibc
12039 # with a fresh cross-compiler works.
12040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12041 # <limits.h> exists even on freestanding compilers.
12042 # On the NeXT, cc -E runs the code through the compiler's parser,
12043 # not just through cpp. "Syntax error" is here to catch this case.
12044 cat >conftest.$ac_ext <<_ACEOF
12045/* confdefs.h. */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h. */
12050#ifdef __STDC__
12051# include <limits.h>
12052#else
12053# include <assert.h>
12054#endif
ac1cb8d3 12055 Syntax error
a848cd7e
SC
12056_ACEOF
12057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12059 ac_status=$?
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } >/dev/null; then
12065 if test -s conftest.err; then
12066 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12068 else
12069 ac_cpp_err=
12070 fi
12071else
12072 ac_cpp_err=yes
12073fi
12074if test -z "$ac_cpp_err"; then
12075 :
12076else
12077 echo "$as_me: failed program was:" >&5
12078sed 's/^/| /' conftest.$ac_ext >&5
12079
12080 # Broken: fails on valid input.
12081continue
12082fi
12083rm -f conftest.err conftest.$ac_ext
12084
12085 # OK, works on sane cases. Now check whether non-existent headers
12086 # can be detected and how.
12087 cat >conftest.$ac_ext <<_ACEOF
12088/* confdefs.h. */
12089_ACEOF
12090cat confdefs.h >>conftest.$ac_ext
12091cat >>conftest.$ac_ext <<_ACEOF
12092/* end confdefs.h. */
12093#include <ac_nonexistent.h>
12094_ACEOF
12095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } >/dev/null; then
12103 if test -s conftest.err; then
12104 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12106 else
12107 ac_cpp_err=
12108 fi
12109else
12110 ac_cpp_err=yes
12111fi
12112if test -z "$ac_cpp_err"; then
12113 # Broken: success on invalid input.
12114continue
12115else
12116 echo "$as_me: failed program was:" >&5
12117sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 # Passes both tests.
12120ac_preproc_ok=:
12121break
12122fi
12123rm -f conftest.err conftest.$ac_ext
12124
12125done
12126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12127rm -f conftest.err conftest.$ac_ext
12128if $ac_preproc_ok; then
12129 :
12130else
12131 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12132See \`config.log' for more details." >&5
12133echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12134See \`config.log' for more details." >&2;}
12135 { (exit 1); exit 1; }; }
12136fi
12137
12138ac_ext=c
12139ac_cpp='$CPP $CPPFLAGS'
12140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12142ac_compiler_gnu=$ac_cv_c_compiler_gnu
12143
12144
12145echo "$as_me:$LINENO: checking for egrep" >&5
12146echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12147if test "${ac_cv_prog_egrep+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149else
12150 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12151 then ac_cv_prog_egrep='grep -E'
12152 else ac_cv_prog_egrep='egrep'
12153 fi
12154fi
12155echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12156echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12157 EGREP=$ac_cv_prog_egrep
12158
12159
12160if test $ac_cv_c_compiler_gnu = yes; then
12161 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12162echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12163if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12165else
12166 ac_pattern="Autoconf.*'x'"
12167 cat >conftest.$ac_ext <<_ACEOF
12168/* confdefs.h. */
12169_ACEOF
12170cat confdefs.h >>conftest.$ac_ext
12171cat >>conftest.$ac_ext <<_ACEOF
12172/* end confdefs.h. */
12173#include <sgtty.h>
12174Autoconf TIOCGETP
12175_ACEOF
12176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12177 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12178 ac_cv_prog_gcc_traditional=yes
12179else
12180 ac_cv_prog_gcc_traditional=no
12181fi
12182rm -f conftest*
12183
12184
12185 if test $ac_cv_prog_gcc_traditional = no; then
12186 cat >conftest.$ac_ext <<_ACEOF
12187/* confdefs.h. */
12188_ACEOF
12189cat confdefs.h >>conftest.$ac_ext
12190cat >>conftest.$ac_ext <<_ACEOF
12191/* end confdefs.h. */
12192#include <termio.h>
12193Autoconf TCGETA
12194_ACEOF
12195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12196 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12197 ac_cv_prog_gcc_traditional=yes
12198fi
12199rm -f conftest*
12200
12201 fi
12202fi
12203echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12204echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12205 if test $ac_cv_prog_gcc_traditional = yes; then
12206 CC="$CC -traditional"
12207 fi
12208fi
12209
12210
12211
12212
12213ac_ext=cc
12214ac_cpp='$CXXCPP $CPPFLAGS'
12215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12218
12219
12220CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12221
12222
12223 ac_ext=cc
a848cd7e
SC
12224ac_cpp='$CXXCPP $CPPFLAGS'
12225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12228if test -n "$ac_tool_prefix"; then
12229 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12230 do
12231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12232set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12233echo "$as_me:$LINENO: checking for $ac_word" >&5
12234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12235if test "${ac_cv_prog_CXX+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237else
12238 if test -n "$CXX"; then
12239 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12240else
12241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242for as_dir in $PATH
12243do
12244 IFS=$as_save_IFS
12245 test -z "$as_dir" && as_dir=.
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12248 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12250 break 2
12251 fi
12252done
12253done
12254
12255fi
12256fi
12257CXX=$ac_cv_prog_CXX
12258if test -n "$CXX"; then
12259 echo "$as_me:$LINENO: result: $CXX" >&5
12260echo "${ECHO_T}$CXX" >&6
12261else
12262 echo "$as_me:$LINENO: result: no" >&5
12263echo "${ECHO_T}no" >&6
12264fi
12265
12266 test -n "$CXX" && break
12267 done
12268fi
12269if test -z "$CXX"; then
12270 ac_ct_CXX=$CXX
12271 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12272do
12273 # Extract the first word of "$ac_prog", so it can be a program name with args.
12274set dummy $ac_prog; ac_word=$2
12275echo "$as_me:$LINENO: checking for $ac_word" >&5
12276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12277if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279else
12280 if test -n "$ac_ct_CXX"; then
12281 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12282else
12283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284for as_dir in $PATH
12285do
12286 IFS=$as_save_IFS
12287 test -z "$as_dir" && as_dir=.
12288 for ac_exec_ext in '' $ac_executable_extensions; do
12289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12290 ac_cv_prog_ac_ct_CXX="$ac_prog"
12291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12292 break 2
12293 fi
12294done
12295done
12296
12297fi
12298fi
12299ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12300if test -n "$ac_ct_CXX"; then
12301 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12302echo "${ECHO_T}$ac_ct_CXX" >&6
12303else
12304 echo "$as_me:$LINENO: result: no" >&5
12305echo "${ECHO_T}no" >&6
12306fi
12307
12308 test -n "$ac_ct_CXX" && break
12309done
12310test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12311
12312 CXX=$ac_ct_CXX
12313fi
12314
12315
12316# Provide some information about the compiler.
12317echo "$as_me:$LINENO:" \
12318 "checking for C++ compiler version" >&5
12319ac_compiler=`set X $ac_compile; echo $2`
12320{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12321 (eval $ac_compiler --version </dev/null >&5) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }
12325{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12326 (eval $ac_compiler -v </dev/null >&5) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }
12330{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12331 (eval $ac_compiler -V </dev/null >&5) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }
12335
12336echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12337echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12338if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340else
12341 cat >conftest.$ac_ext <<_ACEOF
12342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h. */
12347
12348int
12349main ()
12350{
12351#ifndef __GNUC__
12352 choke me
12353#endif
12354
12355 ;
12356 return 0;
12357}
12358_ACEOF
12359rm -f conftest.$ac_objext
12360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12361 (eval $ac_compile) 2>conftest.er1
a848cd7e 12362 ac_status=$?
ac1cb8d3
VS
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
a848cd7e
SC
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
fb00f58d
JS
12368 { ac_try='test -z "$ac_cxx_werror_flag"
12369 || test ! -s conftest.err'
ac1cb8d3
VS
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_compiler_gnu=yes
12382else
12383 echo "$as_me: failed program was:" >&5
12384sed 's/^/| /' conftest.$ac_ext >&5
12385
12386ac_compiler_gnu=no
12387fi
ac1cb8d3 12388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12389ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12390
12391fi
12392echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12393echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12394GXX=`test $ac_compiler_gnu = yes && echo yes`
12395ac_test_CXXFLAGS=${CXXFLAGS+set}
12396ac_save_CXXFLAGS=$CXXFLAGS
12397CXXFLAGS="-g"
12398echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12399echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12400if test "${ac_cv_prog_cxx_g+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403 cat >conftest.$ac_ext <<_ACEOF
12404/* confdefs.h. */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
12408/* end confdefs.h. */
12409
12410int
12411main ()
12412{
12413
12414 ;
12415 return 0;
12416}
12417_ACEOF
12418rm -f conftest.$ac_objext
12419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12420 (eval $ac_compile) 2>conftest.er1
a848cd7e 12421 ac_status=$?
ac1cb8d3
VS
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
a848cd7e
SC
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
fb00f58d
JS
12427 { ac_try='test -z "$ac_cxx_werror_flag"
12428 || test ! -s conftest.err'
ac1cb8d3
VS
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_prog_cxx_g=yes
12441else
12442 echo "$as_me: failed program was:" >&5
12443sed 's/^/| /' conftest.$ac_ext >&5
12444
12445ac_cv_prog_cxx_g=no
12446fi
ac1cb8d3 12447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12448fi
12449echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12450echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12451if test "$ac_test_CXXFLAGS" = set; then
12452 CXXFLAGS=$ac_save_CXXFLAGS
12453elif test $ac_cv_prog_cxx_g = yes; then
12454 if test "$GXX" = yes; then
52ada004 12455 CXXFLAGS="-g -O2"
a848cd7e 12456 else
52ada004 12457 CXXFLAGS="-g"
a848cd7e
SC
12458 fi
12459else
12460 if test "$GXX" = yes; then
12461 CXXFLAGS="-O2"
12462 else
12463 CXXFLAGS=
12464 fi
12465fi
12466for ac_declaration in \
ac1cb8d3 12467 '' \
a848cd7e
SC
12468 'extern "C" void std::exit (int) throw (); using std::exit;' \
12469 'extern "C" void std::exit (int); using std::exit;' \
12470 'extern "C" void exit (int) throw ();' \
12471 'extern "C" void exit (int);' \
12472 'void exit (int);'
12473do
12474 cat >conftest.$ac_ext <<_ACEOF
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
de59c161 12480$ac_declaration
ac1cb8d3 12481#include <stdlib.h>
a848cd7e
SC
12482int
12483main ()
12484{
12485exit (42);
12486 ;
12487 return 0;
12488}
12489_ACEOF
12490rm -f conftest.$ac_objext
12491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12492 (eval $ac_compile) 2>conftest.er1
a848cd7e 12493 ac_status=$?
ac1cb8d3
VS
12494 grep -v '^ *+' conftest.er1 >conftest.err
12495 rm -f conftest.er1
12496 cat conftest.err >&5
a848cd7e
SC
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } &&
fb00f58d
JS
12499 { ac_try='test -z "$ac_cxx_werror_flag"
12500 || test ! -s conftest.err'
ac1cb8d3
VS
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12503 ac_status=$?
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; } &&
12506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12509 ac_status=$?
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 :
12513else
12514 echo "$as_me: failed program was:" >&5
12515sed 's/^/| /' conftest.$ac_ext >&5
12516
12517continue
12518fi
ac1cb8d3 12519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12520 cat >conftest.$ac_ext <<_ACEOF
12521/* confdefs.h. */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
12525/* end confdefs.h. */
12526$ac_declaration
12527int
12528main ()
12529{
12530exit (42);
12531 ;
12532 return 0;
12533}
12534_ACEOF
12535rm -f conftest.$ac_objext
12536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12537 (eval $ac_compile) 2>conftest.er1
a848cd7e 12538 ac_status=$?
ac1cb8d3
VS
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
a848cd7e
SC
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
fb00f58d
JS
12544 { ac_try='test -z "$ac_cxx_werror_flag"
12545 || test ! -s conftest.err'
ac1cb8d3
VS
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 break
12558else
12559 echo "$as_me: failed program was:" >&5
12560sed 's/^/| /' conftest.$ac_ext >&5
12561
12562fi
ac1cb8d3 12563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12564done
12565rm -f conftest*
12566if test -n "$ac_declaration"; then
12567 echo '#ifdef __cplusplus' >>confdefs.h
12568 echo $ac_declaration >>confdefs.h
12569 echo '#endif' >>confdefs.h
12570fi
12571
12572ac_ext=cc
12573ac_cpp='$CXXCPP $CPPFLAGS'
12574ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12575ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12576ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12577
6dcfc289 12578 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12579echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12580if test "${wx_cv_cxx_exto+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12582else
12583 cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
12589
12590int
12591main ()
12592{
12593
12594 ;
12595 return 0;
12596}
12597_ACEOF
12598rm -f conftest.$ac_objext conftest.$ac_ext.o
12599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; then
12604 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12605 case $ac_file in
12606 conftest.$ac_ext.o)
12607 wx_cv_cxx_exto="-ext o"
12608 ;;
12609 *)
12610 ;;
12611 esac
12612done
12613else
12614 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12615See \`config.log' for more details." >&5
12616echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12617See \`config.log' for more details." >&2;}
12618 { (exit 1); exit 1; }; }
12619
12620fi
12621
12622rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12623
12624fi
12625echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12626echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12627if test "x$wx_cv_cxx_exto" '!=' "x"; then
12628 if test "cxx" = "c"; then
12629 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12630 fi
12631 if test "cxx" = "cxx"; then
12632 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12633 fi
12634fi
12635
6dcfc289
DE
12636 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12637 unset ac_cv_prog_cxx_g
12638 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12639ac_save_CXXFLAGS=$CXXFLAGS
12640CXXFLAGS="-g"
12641echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12642echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12643if test "${ac_cv_prog_cxx_g+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645else
12646 cat >conftest.$ac_ext <<_ACEOF
12647/* confdefs.h. */
12648_ACEOF
12649cat confdefs.h >>conftest.$ac_ext
12650cat >>conftest.$ac_ext <<_ACEOF
12651/* end confdefs.h. */
12652
12653int
12654main ()
12655{
12656
12657 ;
12658 return 0;
12659}
12660_ACEOF
12661rm -f conftest.$ac_objext
12662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
fb00f58d
JS
12670 { ac_try='test -z "$ac_cxx_werror_flag"
12671 || test ! -s conftest.err'
480ccd21
DE
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest.$ac_objext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_cv_prog_cxx_g=yes
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688ac_cv_prog_cxx_g=no
12689fi
12690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12691fi
12692echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12693echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12694if test "$ac_test_CXXFLAGS" = set; then
12695 CXXFLAGS=$ac_save_CXXFLAGS
12696elif test $ac_cv_prog_cxx_g = yes; then
12697 if test "$GXX" = yes; then
52ada004 12698 CXXFLAGS="-g -O2"
480ccd21 12699 else
52ada004 12700 CXXFLAGS="-g"
480ccd21
DE
12701 fi
12702else
12703 if test "$GXX" = yes; then
12704 CXXFLAGS="-O2"
12705 else
12706 CXXFLAGS=
12707 fi
12708fi
6dcfc289
DE
12709 fi
12710 ac_ext=cc
95986553
DE
12711ac_cpp='$CXXCPP $CPPFLAGS'
12712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12715
12716echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12717echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12718if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12720else
12721 cat >conftest.$ac_ext <<_ACEOF
12722/* confdefs.h. */
12723_ACEOF
12724cat confdefs.h >>conftest.$ac_ext
12725cat >>conftest.$ac_ext <<_ACEOF
12726/* end confdefs.h. */
12727
12728int
12729main ()
12730{
12731#ifndef __MWERKS__
12732 choke me
12733#endif
12734
12735 ;
12736 return 0;
12737}
12738_ACEOF
12739rm -f conftest.$ac_objext
12740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12741 (eval $ac_compile) 2>conftest.er1
12742 ac_status=$?
12743 grep -v '^ *+' conftest.er1 >conftest.err
12744 rm -f conftest.er1
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } &&
fb00f58d
JS
12748 { ac_try='test -z "$ac_cxx_werror_flag"
12749 || test ! -s conftest.err'
95986553
DE
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; } &&
12755 { ac_try='test -s conftest.$ac_objext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 bakefile_compiler_mwerks=yes
12762else
12763 echo "$as_me: failed program was:" >&5
12764sed 's/^/| /' conftest.$ac_ext >&5
12765
12766bakefile_compiler_mwerks=no
12767fi
12768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12769 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12770
12771fi
12772echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12773echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12774
0e6fa1d9 12775MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12776ac_ext=cc
12777ac_cpp='$CXXCPP $CPPFLAGS'
12778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12781
12782
6dcfc289 12783 ac_ext=cc
9273ffba
DE
12784ac_cpp='$CXXCPP $CPPFLAGS'
12785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12788
12789echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12790echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12791if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12793else
12794 cat >conftest.$ac_ext <<_ACEOF
12795/* confdefs.h. */
12796_ACEOF
12797cat confdefs.h >>conftest.$ac_ext
12798cat >>conftest.$ac_ext <<_ACEOF
12799/* end confdefs.h. */
12800
12801int
12802main ()
12803{
12804#ifndef __xlC__
12805 choke me
12806#endif
12807
12808 ;
12809 return 0;
12810}
12811_ACEOF
12812rm -f conftest.$ac_objext
12813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12814 (eval $ac_compile) 2>conftest.er1
12815 ac_status=$?
12816 grep -v '^ *+' conftest.er1 >conftest.err
12817 rm -f conftest.er1
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } &&
fb00f58d
JS
12821 { ac_try='test -z "$ac_cxx_werror_flag"
12822 || test ! -s conftest.err'
9273ffba
DE
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; } &&
12828 { ac_try='test -s conftest.$ac_objext'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; }; then
12834 wx_compiler_xlc=yes
12835else
12836 echo "$as_me: failed program was:" >&5
12837sed 's/^/| /' conftest.$ac_ext >&5
12838
12839wx_compiler_xlc=no
12840fi
12841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12842 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12843
12844fi
12845echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12846echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12847
0e6fa1d9 12848XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12849ac_ext=cc
12850ac_cpp='$CXXCPP $CPPFLAGS'
12851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12854
12855
95986553 12856
6dcfc289 12857
a848cd7e
SC
12858ac_ext=c
12859ac_cpp='$CPP $CPPFLAGS'
12860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12862ac_compiler_gnu=$ac_cv_c_compiler_gnu
12863
12864
a848cd7e
SC
12865if test -n "$ac_tool_prefix"; then
12866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12867set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12868echo "$as_me:$LINENO: checking for $ac_word" >&5
12869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12870if test "${ac_cv_prog_RANLIB+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872else
12873 if test -n "$RANLIB"; then
12874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12875else
12876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $PATH
12878do
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
12882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12885 break 2
12886 fi
12887done
12888done
12889
12890fi
12891fi
12892RANLIB=$ac_cv_prog_RANLIB
12893if test -n "$RANLIB"; then
12894 echo "$as_me:$LINENO: result: $RANLIB" >&5
12895echo "${ECHO_T}$RANLIB" >&6
12896else
12897 echo "$as_me:$LINENO: result: no" >&5
12898echo "${ECHO_T}no" >&6
12899fi
12900
12901fi
12902if test -z "$ac_cv_prog_RANLIB"; then
12903 ac_ct_RANLIB=$RANLIB
12904 # Extract the first word of "ranlib", so it can be a program name with args.
12905set dummy ranlib; ac_word=$2
12906echo "$as_me:$LINENO: checking for $ac_word" >&5
12907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12908if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12910else
12911 if test -n "$ac_ct_RANLIB"; then
12912 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12913else
12914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915for as_dir in $PATH
12916do
12917 IFS=$as_save_IFS
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12921 ac_cv_prog_ac_ct_RANLIB="ranlib"
12922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12923 break 2
12924 fi
12925done
12926done
12927
12928 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12929fi
12930fi
12931ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12932if test -n "$ac_ct_RANLIB"; then
12933 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12934echo "${ECHO_T}$ac_ct_RANLIB" >&6
12935else
12936 echo "$as_me:$LINENO: result: no" >&5
12937echo "${ECHO_T}no" >&6
12938fi
12939
12940 RANLIB=$ac_ct_RANLIB
12941else
12942 RANLIB="$ac_cv_prog_RANLIB"
12943fi
12944
12945
12946# Extract the first word of "ar", so it can be a program name with args.
12947set dummy ar; ac_word=$2
12948echo "$as_me:$LINENO: checking for $ac_word" >&5
12949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12950if test "${ac_cv_prog_AR+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952else
12953 if test -n "$AR"; then
12954 ac_cv_prog_AR="$AR" # Let the user override the test.
12955else
12956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957for as_dir in $PATH
12958do
12959 IFS=$as_save_IFS
12960 test -z "$as_dir" && as_dir=.
12961 for ac_exec_ext in '' $ac_executable_extensions; do
12962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12963 ac_cv_prog_AR="ar"
12964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12965 break 2
12966 fi
12967done
12968done
12969
12970fi
12971fi
12972AR=$ac_cv_prog_AR
12973if test -n "$AR"; then
12974 echo "$as_me:$LINENO: result: $AR" >&5
12975echo "${ECHO_T}$AR" >&6
12976else
12977 echo "$as_me:$LINENO: result: no" >&5
12978echo "${ECHO_T}no" >&6
12979fi
12980
12981if test "x$AR" = "x" ; then
77ffb593
JS
12982 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12983echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12984 { (exit 1); exit 1; }; }
12985fi
12986
12987# Find a good install program. We prefer a C program (faster),
12988# so one script is as good as another. But avoid the broken or
12989# incompatible versions:
12990# SysV /etc/install, /usr/sbin/install
12991# SunOS /usr/etc/install
12992# IRIX /sbin/install
12993# AIX /bin/install
12994# AmigaOS /C/install, which installs bootblocks on floppy discs
12995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12998# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12999# ./install, which can be erroneously created by make from ./install.sh.
13000echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13001echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13002if test -z "$INSTALL"; then
13003if test "${ac_cv_path_install+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13005else
13006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007for as_dir in $PATH
13008do
13009 IFS=$as_save_IFS
13010 test -z "$as_dir" && as_dir=.
13011 # Account for people who put trailing slashes in PATH elements.
13012case $as_dir/ in
13013 ./ | .// | /cC/* | \
13014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13016 /usr/ucb/* ) ;;
13017 *)
13018 # OSF1 and SCO ODT 3.0 have their own names for install.
13019 # Don't use installbsd from OSF since it installs stuff as root
13020 # by default.
13021 for ac_prog in ginstall scoinst install; do
13022 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13023 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13024 if test $ac_prog = install &&
13025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13026 # AIX install. It has an incompatible calling convention.
13027 :
13028 elif test $ac_prog = install &&
13029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13030 # program-specific install script used by HP pwplus--don't use.
13031 :
13032 else
13033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13034 break 3
13035 fi
13036 fi
a848cd7e
SC
13037 done
13038 done
13039 ;;
13040esac
13041done
13042
13043
13044fi
13045 if test "${ac_cv_path_install+set}" = set; then
13046 INSTALL=$ac_cv_path_install
13047 else
13048 # As a last resort, use the slow shell script. We don't cache a
13049 # path for INSTALL within a source directory, because that will
13050 # break other packages using the cache if that directory is
13051 # removed, or if the path is relative.
13052 INSTALL=$ac_install_sh
13053 fi
13054fi
13055echo "$as_me:$LINENO: result: $INSTALL" >&5
13056echo "${ECHO_T}$INSTALL" >&6
13057
13058# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13059# It thinks the first close brace ends the variable substitution.
13060test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13061
13062test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13063
13064test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13065
13066
13067case ${INSTALL} in
13068 /* ) # Absolute
13069 ;;
13070 ?:* ) # Drive letter, considered as absolute.
13071 ;;
13072 *)
13073 INSTALL=`pwd`/${INSTALL} ;;
13074esac
13075
a848cd7e
SC
13076
13077case "${host}" in
13078
13079 powerpc-*-darwin* )
13080 INSTALL_PROGRAM="cp -fp"
13081 INSTALL_DATA="cp -fp"
13082 ;;
13083 *)
13084 ;;
13085esac
13086
13087# Extract the first word of "strip", so it can be a program name with args.
13088set dummy strip; ac_word=$2
13089echo "$as_me:$LINENO: checking for $ac_word" >&5
13090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13091if test "${ac_cv_prog_STRIP+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093else
13094 if test -n "$STRIP"; then
13095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13096else
13097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098for as_dir in $PATH
13099do
13100 IFS=$as_save_IFS
13101 test -z "$as_dir" && as_dir=.
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13104 ac_cv_prog_STRIP="strip"
13105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13106 break 2
13107 fi
13108done
13109done
13110
13111 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13112fi
13113fi
13114STRIP=$ac_cv_prog_STRIP
13115if test -n "$STRIP"; then
13116 echo "$as_me:$LINENO: result: $STRIP" >&5
13117echo "${ECHO_T}$STRIP" >&6
13118else
13119 echo "$as_me:$LINENO: result: no" >&5
13120echo "${ECHO_T}no" >&6
13121fi
13122
13123
13124echo "$as_me:$LINENO: checking if make is GNU make" >&5
13125echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13126if test "${wx_cv_prog_makeisgnu+set}" = set; then
13127 echo $ECHO_N "(cached) $ECHO_C" >&6
13128else
13129
13130 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13131 egrep -s GNU > /dev/null); then
13132 wx_cv_prog_makeisgnu="yes"
13133 else
13134 wx_cv_prog_makeisgnu="no"
13135 fi
13136
13137fi
13138echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13139echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13140
13141if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13142 IF_GNU_MAKE=""
13143else
13144 IF_GNU_MAKE="#"
13145fi
13146
13147
13148
13149if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13150echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13151echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13152if test "${wx_cv_prog_makevpath+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154else
13155
13156cat - << EOF > confMake
13157check : file
13158 cp \$? \$@
13159 cp \$? final_file
13160EOF
13161
13162if test ! -d sub ; then
13163 mkdir sub
13164fi
13165echo dummy > sub/file
13166${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13167RESULT=$?
13168rm -f sub/file check final_file confMake
13169rmdir sub
13170if test "$RESULT" = 0; then
13171 wx_cv_prog_makevpath="yes"
13172else
13173 wx_cv_prog_makevpath="no"
13174fi
13175
13176fi
13177echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13178echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13179
13180if test "x$wx_cv_prog_makevpath" != "xyes"; then
13181{ { echo "$as_me:$LINENO: error:
13182You need a make-utility that is able to use the variable
13183VPATH correctly.
13184If your version of make does not support VPATH correctly,
13185please install GNU-make (possibly as gmake), and start
13186configure with the following command:
13187export MAKE=gmake; ./configure for sh-type shells
13188setenv MAKE gmake; ./configure for csh-type shells
13189Also please do remember to use gmake in this case every time
13190you are trying to compile.
13191" >&5
13192echo "$as_me: error:
13193You need a make-utility that is able to use the variable
13194VPATH correctly.
13195If your version of make does not support VPATH correctly,
13196please install GNU-make (possibly as gmake), and start
13197configure with the following command:
13198export MAKE=gmake; ./configure for sh-type shells
13199setenv MAKE gmake; ./configure for csh-type shells
13200Also please do remember to use gmake in this case every time
13201you are trying to compile.
13202" >&2;}
13203 { (exit 1); exit 1; }; }
13204fi fi
13205echo "$as_me:$LINENO: checking whether ln -s works" >&5
13206echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13207LN_S=$as_ln_s
13208if test "$LN_S" = "ln -s"; then
13209 echo "$as_me:$LINENO: result: yes" >&5
13210echo "${ECHO_T}yes" >&6
13211else
13212 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13213echo "${ECHO_T}no, using $LN_S" >&6
13214fi
13215
13216
13217
9273ffba
DE
13218if test "x$XLCXX" = "xyes"; then
13219 CXXFLAGS="$CXXFLAGS -qunique"
13220fi
13221
13222
4d7ec9f1
DE
13223case "${host}" in
13224 powerpc-*-darwin* )
13225 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13226echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13227 cat >conftest.$ac_ext <<_ACEOF
13228/* confdefs.h. */
13229_ACEOF
13230cat confdefs.h >>conftest.$ac_ext
13231cat >>conftest.$ac_ext <<_ACEOF
13232/* end confdefs.h. */
13233
13234int
13235main ()
13236{
13237#ifndef __POWERPC__
13238 choke me for lack of PowerPC
13239#endif
13240
13241 ;
13242 return 0;
13243}
13244_ACEOF
13245rm -f conftest.$ac_objext
13246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13247 (eval $ac_compile) 2>conftest.er1
13248 ac_status=$?
13249 grep -v '^ *+' conftest.er1 >conftest.err
13250 rm -f conftest.er1
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
fb00f58d
JS
13254 { ac_try='test -z "$ac_c_werror_flag"
13255 || test ! -s conftest.err'
4d7ec9f1
DE
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 echo "$as_me:$LINENO: result: yes" >&5
13268echo "${ECHO_T}yes" >&6
13269else
13270 echo "$as_me: failed program was:" >&5
13271sed 's/^/| /' conftest.$ac_ext >&5
13272
13273echo "$as_me:$LINENO: result: no" >&5
13274echo "${ECHO_T}no" >&6
13275 cat >>confdefs.h <<\_ACEOF
13276#define __POWERPC__ 1
13277_ACEOF
13278
13279
13280fi
13281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13282 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13283echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13284 cat >conftest.$ac_ext <<_ACEOF
13285/* confdefs.h. */
13286_ACEOF
13287cat confdefs.h >>conftest.$ac_ext
13288cat >>conftest.$ac_ext <<_ACEOF
13289/* end confdefs.h. */
13290#include <CoreFoundation/CFBase.h>
13291
13292int
13293main ()
13294{
13295
13296 ;
13297 return 0;
13298}
13299_ACEOF
13300rm -f conftest.$ac_objext
13301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302 (eval $ac_compile) 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
fb00f58d
JS
13309 { ac_try='test -z "$ac_c_werror_flag"
13310 || test ! -s conftest.err'
4d7ec9f1
DE
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; } &&
13316 { ac_try='test -s conftest.$ac_objext'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13322 echo "$as_me:$LINENO: result: yes" >&5
13323echo "${ECHO_T}yes" >&6
13324else
13325 echo "$as_me: failed program was:" >&5
13326sed 's/^/| /' conftest.$ac_ext >&5
13327
13328echo "$as_me:$LINENO: result: no" >&5
13329echo "${ECHO_T}no" >&6
13330 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13331echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13332 cat >conftest.$ac_ext <<_ACEOF
13333/* confdefs.h. */
13334_ACEOF
13335cat confdefs.h >>conftest.$ac_ext
13336cat >>conftest.$ac_ext <<_ACEOF
13337/* end confdefs.h. */
13338#define __CF_USE_FRAMEWORK_INCLUDES__
13339#include <CoreFoundation/CFBase.h>
13340
13341int
13342main ()
13343{
13344
13345 ;
13346 return 0;
13347}
13348_ACEOF
13349rm -f conftest.$ac_objext
13350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13351 (eval $ac_compile) 2>conftest.er1
13352 ac_status=$?
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
fb00f58d
JS
13358 { ac_try='test -z "$ac_c_werror_flag"
13359 || test ! -s conftest.err'
4d7ec9f1
DE
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; } &&
13365 { ac_try='test -s conftest.$ac_objext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 echo "$as_me:$LINENO: result: yes" >&5
13372echo "${ECHO_T}yes" >&6
13373 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13374else
13375 echo "$as_me: failed program was:" >&5
13376sed 's/^/| /' conftest.$ac_ext >&5
13377
13378{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13379See \`config.log' for more details." >&5
13380echo "$as_me: error: no. CoreFoundation not available.
13381See \`config.log' for more details." >&2;}
13382 { (exit 1); exit 1; }; }
13383
13384fi
13385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13386
13387
13388fi
13389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13390 ;;
13391esac
13392
a848cd7e
SC
13393case "${host}" in
13394 *-pc-os2_emx | *-pc-os2-emx )
13395 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13396 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13397echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13398if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13400else
13401 ac_check_lib_save_LIBS=$LIBS
13402LIBS="-lcExt $LIBS"
13403cat >conftest.$ac_ext <<_ACEOF
13404/* confdefs.h. */
13405_ACEOF
13406cat confdefs.h >>conftest.$ac_ext
13407cat >>conftest.$ac_ext <<_ACEOF
13408/* end confdefs.h. */
13409
13410/* Override any gcc2 internal prototype to avoid an error. */
13411#ifdef __cplusplus
13412extern "C"
13413#endif
13414/* We use char because int might match the return type of a gcc2
13415 builtin and then its argument prototype would still apply. */
13416char drand48 ();
13417int
13418main ()
13419{
13420drand48 ();
13421 ;
13422 return 0;
13423}
13424_ACEOF
13425rm -f conftest.$ac_objext conftest$ac_exeext
13426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13427 (eval $ac_link) 2>conftest.er1
a848cd7e 13428 ac_status=$?
ac1cb8d3
VS
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
a848cd7e
SC
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } &&
fb00f58d
JS
13434 { ac_try='test -z "$ac_c_werror_flag"
13435 || test ! -s conftest.err'
ac1cb8d3
VS
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } &&
13441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_cv_lib_cExt_drand48=yes
13448else
13449 echo "$as_me: failed program was:" >&5
13450sed 's/^/| /' conftest.$ac_ext >&5
13451
13452ac_cv_lib_cExt_drand48=no
13453fi
ac1cb8d3
VS
13454rm -f conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13456LIBS=$ac_check_lib_save_LIBS
13457fi
13458echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13459echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13460if test $ac_cv_lib_cExt_drand48 = yes; then
13461 LIBS="$LIBS -lcExt"
13462fi
13463
13464 else
13465 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13466 fi
69120ee4
VZ
13467 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13468echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13469if test "${wx_cv_gccversion+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471else
13472
391a765e
VS
13473 if test "$cross_compiling" = yes; then
13474 wx_cv_gccversion="EMX2"
13475
13476else
13477 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13478/* confdefs.h. */
13479_ACEOF
13480cat confdefs.h >>conftest.$ac_ext
13481cat >>conftest.$ac_ext <<_ACEOF
13482/* end confdefs.h. */
13483
391a765e 13484 #include <stdio.h>
a848cd7e 13485
391a765e
VS
13486 int main()
13487 {
13488 FILE *f=fopen("conftestval", "w");
13489 if (!f) exit(1);
13490 fprintf(f,
a848cd7e 13491 #if (__GNUC__ < 3)
391a765e
VS
13492 "EMX2"
13493 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13494 "EMX3"
13495 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13496 "Innotek5"
13497 #else
13498 "Innotek6"
a848cd7e 13499 #endif
391a765e
VS
13500 );
13501 exit(0);
13502 }
a848cd7e 13503
a848cd7e 13504_ACEOF
391a765e
VS
13505rm -f conftest$ac_exeext
13506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13507 (eval $ac_link) 2>&5
ac1cb8d3
VS
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
391a765e 13516 wx_cv_gccversion=`cat conftestval`
a848cd7e 13517else
391a765e
VS
13518 echo "$as_me: program exited with status $ac_status" >&5
13519echo "$as_me: failed program was:" >&5
a848cd7e
SC
13520sed 's/^/| /' conftest.$ac_ext >&5
13521
391a765e
VS
13522( exit $ac_status )
13523wx_cv_gccversion="EMX2"
a848cd7e 13524fi
391a765e 13525rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13526fi
a848cd7e
SC
13527
13528fi
13529echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13530echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13531 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13532 LIBS="$LIBS -lstdcpp"
13533 LDFLAGS="$LDFLAGS -Zsysv-signals"
13534 else
391a765e 13535 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13536 LIBS="$LIBS -lstdcxx"
13537 LDFLAGS="$LDFLAGS -Zsysv-signals"
13538 else
13539 LIBS="$LIBS -lstdc++"
13540 fi
13541 fi
94acd38e
DE
13542 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13543 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13544echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13545 wxUSE_OMF=yes
2da0c077 13546 enable_omf=yes
a848cd7e
SC
13547 fi
13548 ;;
13549 *)
13550
13551
13552
13553 ac_ext=cc
13554ac_cpp='$CXXCPP $CPPFLAGS'
13555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13558
13559
95986553 13560 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13561echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13562if test "${ac_cv_string_strcasecmp+set}" = set; then
13563 echo $ECHO_N "(cached) $ECHO_C" >&6
13564else
13565
13566 cat >conftest.$ac_ext <<_ACEOF
13567/* confdefs.h. */
13568_ACEOF
13569cat confdefs.h >>conftest.$ac_ext
13570cat >>conftest.$ac_ext <<_ACEOF
13571/* end confdefs.h. */
13572
13573 #include <string.h>
13574
13575int
13576main ()
13577{
13578
13579 strcasecmp("foo", "bar");
13580
13581 ;
13582 return 0;
13583}
13584_ACEOF
13585rm -f conftest.$ac_objext conftest$ac_exeext
13586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13587 (eval $ac_link) 2>conftest.er1
a848cd7e 13588 ac_status=$?
ac1cb8d3
VS
13589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
a848cd7e
SC
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } &&
fb00f58d
JS
13594 { ac_try='test -z "$ac_cxx_werror_flag"
13595 || test ! -s conftest.err'
ac1cb8d3
VS
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; } &&
13601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_cv_string_strcasecmp=yes
13608else
13609 echo "$as_me: failed program was:" >&5
13610sed 's/^/| /' conftest.$ac_ext >&5
13611
13612ac_cv_string_strcasecmp=no
13613
13614fi
ac1cb8d3
VS
13615rm -f conftest.err conftest.$ac_objext \
13616 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13617
13618fi
13619echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13620echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13621
13622 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13623 cat >>confdefs.h <<\_ACEOF
13624#define HAVE_STRCASECMP_IN_STRING_H 1
13625_ACEOF
13626
13627 else
13628 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13629echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13630if test "${ac_cv_strings_strcasecmp+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13632else
13633
13634 cat >conftest.$ac_ext <<_ACEOF
13635/* confdefs.h. */
13636_ACEOF
13637cat confdefs.h >>conftest.$ac_ext
13638cat >>conftest.$ac_ext <<_ACEOF
13639/* end confdefs.h. */
13640
13641 #include <strings.h>
13642
13643int
13644main ()
13645{
13646
13647 strcasecmp("foo", "bar");
13648
13649 ;
13650 return 0;
13651}
13652_ACEOF
13653rm -f conftest.$ac_objext conftest$ac_exeext
13654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13655 (eval $ac_link) 2>conftest.er1
a848cd7e 13656 ac_status=$?
ac1cb8d3
VS
13657 grep -v '^ *+' conftest.er1 >conftest.err
13658 rm -f conftest.er1
13659 cat conftest.err >&5
a848cd7e
SC
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } &&
fb00f58d
JS
13662 { ac_try='test -z "$ac_cxx_werror_flag"
13663 || test ! -s conftest.err'
ac1cb8d3
VS
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13666 ac_status=$?
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; } &&
13669 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }; then
13675 ac_cv_strings_strcasecmp=yes
13676else
13677 echo "$as_me: failed program was:" >&5
13678sed 's/^/| /' conftest.$ac_ext >&5
13679
13680ac_cv_strings_strcasecmp=no
13681
13682fi
ac1cb8d3
VS
13683rm -f conftest.err conftest.$ac_objext \
13684 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13685
13686fi
13687echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13688echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13689
0c3c69fc 13690 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13691 cat >>confdefs.h <<\_ACEOF
13692#define HAVE_STRCASECMP_IN_STRINGS_H 1
13693_ACEOF
13694
13695 else
13696 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13697echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13698 { (exit 1); exit 1; }; }
13699 fi
13700 fi
13701
13702 ac_ext=c
13703ac_cpp='$CPP $CPPFLAGS'
13704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13706ac_compiler_gnu=$ac_cv_c_compiler_gnu
13707
13708 ;;
13709esac
13710
13711
13712echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13713echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13714if test "${ac_cv_header_stdc+set}" = set; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13716else
13717 cat >conftest.$ac_ext <<_ACEOF
13718/* confdefs.h. */
13719_ACEOF
13720cat confdefs.h >>conftest.$ac_ext
13721cat >>conftest.$ac_ext <<_ACEOF
13722/* end confdefs.h. */
13723#include <stdlib.h>
13724#include <stdarg.h>
13725#include <string.h>
13726#include <float.h>
13727
13728int
13729main ()
13730{
13731
13732 ;
13733 return 0;
13734}
13735_ACEOF
13736rm -f conftest.$ac_objext
13737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13738 (eval $ac_compile) 2>conftest.er1
a848cd7e 13739 ac_status=$?
ac1cb8d3
VS
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
a848cd7e
SC
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } &&
fb00f58d
JS
13745 { ac_try='test -z "$ac_c_werror_flag"
13746 || test ! -s conftest.err'
ac1cb8d3
VS
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_cv_header_stdc=yes
13759else
13760 echo "$as_me: failed program was:" >&5
13761sed 's/^/| /' conftest.$ac_ext >&5
13762
13763ac_cv_header_stdc=no
13764fi
ac1cb8d3 13765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13766
13767if test $ac_cv_header_stdc = yes; then
13768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13769 cat >conftest.$ac_ext <<_ACEOF
13770/* confdefs.h. */
13771_ACEOF
13772cat confdefs.h >>conftest.$ac_ext
13773cat >>conftest.$ac_ext <<_ACEOF
13774/* end confdefs.h. */
13775#include <string.h>
13776
13777_ACEOF
13778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13779 $EGREP "memchr" >/dev/null 2>&1; then
13780 :
13781else
13782 ac_cv_header_stdc=no
13783fi
13784rm -f conftest*
13785
13786fi
13787
13788if test $ac_cv_header_stdc = yes; then
13789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13790 cat >conftest.$ac_ext <<_ACEOF
13791/* confdefs.h. */
13792_ACEOF
13793cat confdefs.h >>conftest.$ac_ext
13794cat >>conftest.$ac_ext <<_ACEOF
13795/* end confdefs.h. */
13796#include <stdlib.h>
13797
13798_ACEOF
13799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13800 $EGREP "free" >/dev/null 2>&1; then
13801 :
13802else
13803 ac_cv_header_stdc=no
13804fi
13805rm -f conftest*
13806
13807fi
13808
13809if test $ac_cv_header_stdc = yes; then
13810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13811 if test "$cross_compiling" = yes; then
13812 :
13813else
13814 cat >conftest.$ac_ext <<_ACEOF
13815/* confdefs.h. */
13816_ACEOF
13817cat confdefs.h >>conftest.$ac_ext
13818cat >>conftest.$ac_ext <<_ACEOF
13819/* end confdefs.h. */
13820#include <ctype.h>
13821#if ((' ' & 0x0FF) == 0x020)
13822# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13823# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13824#else
13825# define ISLOWER(c) \
ac1cb8d3
VS
13826 (('a' <= (c) && (c) <= 'i') \
13827 || ('j' <= (c) && (c) <= 'r') \
13828 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13829# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13830#endif
13831
13832#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13833int
13834main ()
13835{
13836 int i;
13837 for (i = 0; i < 256; i++)
13838 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13839 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13840 exit(2);
13841 exit (0);
13842}
13843_ACEOF
13844rm -f conftest$ac_exeext
13845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 :
13856else
13857 echo "$as_me: program exited with status $ac_status" >&5
13858echo "$as_me: failed program was:" >&5
13859sed 's/^/| /' conftest.$ac_ext >&5
13860
13861( exit $ac_status )
13862ac_cv_header_stdc=no
13863fi
ac1cb8d3 13864rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13865fi
13866fi
13867fi
13868echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13869echo "${ECHO_T}$ac_cv_header_stdc" >&6
13870if test $ac_cv_header_stdc = yes; then
13871
13872cat >>confdefs.h <<\_ACEOF
13873#define STDC_HEADERS 1
13874_ACEOF
13875
13876fi
13877
13878# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13889 inttypes.h stdint.h unistd.h
a848cd7e
SC
13890do
13891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13892echo "$as_me:$LINENO: checking for $ac_header" >&5
13893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13894if eval "test \"\${$as_ac_Header+set}\" = set"; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13896else
13897 cat >conftest.$ac_ext <<_ACEOF
13898/* confdefs.h. */
13899_ACEOF
13900cat confdefs.h >>conftest.$ac_ext
13901cat >>conftest.$ac_ext <<_ACEOF
13902/* end confdefs.h. */
13903$ac_includes_default
13904
13905#include <$ac_header>
13906_ACEOF
13907rm -f conftest.$ac_objext
13908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13909 (eval $ac_compile) 2>conftest.er1
a848cd7e 13910 ac_status=$?
ac1cb8d3
VS
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
a848cd7e
SC
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
fb00f58d
JS
13916 { ac_try='test -z "$ac_c_werror_flag"
13917 || test ! -s conftest.err'
ac1cb8d3
VS
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929 eval "$as_ac_Header=yes"
13930else
13931 echo "$as_me: failed program was:" >&5
13932sed 's/^/| /' conftest.$ac_ext >&5
13933
13934eval "$as_ac_Header=no"
13935fi
ac1cb8d3 13936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13937fi
13938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13940if test `eval echo '${'$as_ac_Header'}'` = yes; then
13941 cat >>confdefs.h <<_ACEOF
13942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13943_ACEOF
13944
13945fi
13946
13947done
13948
13949
13950
13951for ac_header in stdlib.h
13952do
13953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13954if eval "test \"\${$as_ac_Header+set}\" = set"; then
13955 echo "$as_me:$LINENO: checking for $ac_header" >&5
13956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13957if eval "test \"\${$as_ac_Header+set}\" = set"; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959fi
13960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13962else
13963 # Is the header compilable?
13964echo "$as_me:$LINENO: checking $ac_header usability" >&5
13965echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13966cat >conftest.$ac_ext <<_ACEOF
13967/* confdefs.h. */
13968_ACEOF
13969cat confdefs.h >>conftest.$ac_ext
13970cat >>conftest.$ac_ext <<_ACEOF
13971/* end confdefs.h. */
13972$ac_includes_default
13973#include <$ac_header>
13974_ACEOF
13975rm -f conftest.$ac_objext
13976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13977 (eval $ac_compile) 2>conftest.er1
a848cd7e 13978 ac_status=$?
ac1cb8d3
VS
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
a848cd7e
SC
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } &&
fb00f58d
JS
13984 { ac_try='test -z "$ac_c_werror_flag"
13985 || test ! -s conftest.err'
ac1cb8d3
VS
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; } &&
13991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; }; then
13997 ac_header_compiler=yes
13998else
13999 echo "$as_me: failed program was:" >&5
14000sed 's/^/| /' conftest.$ac_ext >&5
14001
14002ac_header_compiler=no
14003fi
ac1cb8d3 14004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14005echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14006echo "${ECHO_T}$ac_header_compiler" >&6
14007
14008# Is the header present?
14009echo "$as_me:$LINENO: checking $ac_header presence" >&5
14010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14011cat >conftest.$ac_ext <<_ACEOF
14012/* confdefs.h. */
14013_ACEOF
14014cat confdefs.h >>conftest.$ac_ext
14015cat >>conftest.$ac_ext <<_ACEOF
14016/* end confdefs.h. */
14017#include <$ac_header>
14018_ACEOF
14019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14021 ac_status=$?
14022 grep -v '^ *+' conftest.er1 >conftest.err
14023 rm -f conftest.er1
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } >/dev/null; then
14027 if test -s conftest.err; then
14028 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14030 else
14031 ac_cpp_err=
14032 fi
14033else
14034 ac_cpp_err=yes
14035fi
14036if test -z "$ac_cpp_err"; then
14037 ac_header_preproc=yes
14038else
14039 echo "$as_me: failed program was:" >&5
14040sed 's/^/| /' conftest.$ac_ext >&5
14041
14042 ac_header_preproc=no
14043fi
14044rm -f conftest.err conftest.$ac_ext
14045echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14046echo "${ECHO_T}$ac_header_preproc" >&6
14047
14048# So? What about this header?
ac1cb8d3
VS
14049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14050 yes:no: )
a848cd7e
SC
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14055 ac_header_preproc=yes
a848cd7e 14056 ;;
ac1cb8d3 14057 no:yes:* )
a848cd7e
SC
14058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14061echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14065echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14070 (
14071 cat <<\_ASBOX
ac1cb8d3
VS
14072## ----------------------------------------- ##
14073## Report this to wx-dev@lists.wxwidgets.org ##
14074## ----------------------------------------- ##
a848cd7e
SC
14075_ASBOX
14076 ) |
14077 sed "s/^/$as_me: WARNING: /" >&2
14078 ;;
14079esac
14080echo "$as_me:$LINENO: checking for $ac_header" >&5
14081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14082if eval "test \"\${$as_ac_Header+set}\" = set"; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14084else
ac1cb8d3 14085 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14086fi
14087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14089
14090fi
14091if test `eval echo '${'$as_ac_Header'}'` = yes; then
14092 cat >>confdefs.h <<_ACEOF
14093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14094_ACEOF
14095
14096fi
14097
14098done
14099
14100
14101for ac_header in malloc.h
14102do
14103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14104if eval "test \"\${$as_ac_Header+set}\" = set"; then
14105 echo "$as_me:$LINENO: checking for $ac_header" >&5
14106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14107if eval "test \"\${$as_ac_Header+set}\" = set"; then
14108 echo $ECHO_N "(cached) $ECHO_C" >&6
14109fi
14110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14112else
14113 # Is the header compilable?
14114echo "$as_me:$LINENO: checking $ac_header usability" >&5
14115echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14116cat >conftest.$ac_ext <<_ACEOF
14117/* confdefs.h. */
14118_ACEOF
14119cat confdefs.h >>conftest.$ac_ext
14120cat >>conftest.$ac_ext <<_ACEOF
14121/* end confdefs.h. */
14122$ac_includes_default
14123#include <$ac_header>
14124_ACEOF
14125rm -f conftest.$ac_objext
14126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14127 (eval $ac_compile) 2>conftest.er1
a848cd7e 14128 ac_status=$?
ac1cb8d3
VS
14129 grep -v '^ *+' conftest.er1 >conftest.err
14130 rm -f conftest.er1
14131 cat conftest.err >&5
a848cd7e
SC
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } &&
fb00f58d
JS
14134 { ac_try='test -z "$ac_c_werror_flag"
14135 || test ! -s conftest.err'
ac1cb8d3
VS
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; } &&
14141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }; then
14147 ac_header_compiler=yes
14148else
14149 echo "$as_me: failed program was:" >&5
14150sed 's/^/| /' conftest.$ac_ext >&5
14151
14152ac_header_compiler=no
14153fi
ac1cb8d3 14154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14155echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14156echo "${ECHO_T}$ac_header_compiler" >&6
14157
14158# Is the header present?
14159echo "$as_me:$LINENO: checking $ac_header presence" >&5
14160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14161cat >conftest.$ac_ext <<_ACEOF
14162/* confdefs.h. */
14163_ACEOF
14164cat confdefs.h >>conftest.$ac_ext
14165cat >>conftest.$ac_ext <<_ACEOF
14166/* end confdefs.h. */
14167#include <$ac_header>
14168_ACEOF
14169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } >/dev/null; then
14177 if test -s conftest.err; then
14178 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14180 else
14181 ac_cpp_err=
14182 fi
14183else
14184 ac_cpp_err=yes
14185fi
14186if test -z "$ac_cpp_err"; then
14187 ac_header_preproc=yes
14188else
14189 echo "$as_me: failed program was:" >&5
14190sed 's/^/| /' conftest.$ac_ext >&5
14191
14192 ac_header_preproc=no
14193fi
14194rm -f conftest.err conftest.$ac_ext
14195echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14196echo "${ECHO_T}$ac_header_preproc" >&6
14197
14198# So? What about this header?
ac1cb8d3
VS
14199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14200 yes:no: )
a848cd7e
SC
14201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14205 ac_header_preproc=yes
a848cd7e 14206 ;;
ac1cb8d3 14207 no:yes:* )
a848cd7e
SC
14208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14211echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14215echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14220 (
14221 cat <<\_ASBOX
ac1cb8d3
VS
14222## ----------------------------------------- ##
14223## Report this to wx-dev@lists.wxwidgets.org ##
14224## ----------------------------------------- ##
a848cd7e
SC
14225_ASBOX
14226 ) |
14227 sed "s/^/$as_me: WARNING: /" >&2
14228 ;;
14229esac
14230echo "$as_me:$LINENO: checking for $ac_header" >&5
14231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14232if eval "test \"\${$as_ac_Header+set}\" = set"; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14234else
ac1cb8d3 14235 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14236fi
14237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14239
14240fi
14241if test `eval echo '${'$as_ac_Header'}'` = yes; then
14242 cat >>confdefs.h <<_ACEOF
14243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14244_ACEOF
14245
14246fi
14247
14248done
14249
14250
14251for ac_header in unistd.h
14252do
14253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14254if eval "test \"\${$as_ac_Header+set}\" = set"; then
14255 echo "$as_me:$LINENO: checking for $ac_header" >&5
14256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14257if eval "test \"\${$as_ac_Header+set}\" = set"; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14259fi
14260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14262else
14263 # Is the header compilable?
14264echo "$as_me:$LINENO: checking $ac_header usability" >&5
14265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14266cat >conftest.$ac_ext <<_ACEOF
14267/* confdefs.h. */
14268_ACEOF
14269cat confdefs.h >>conftest.$ac_ext
14270cat >>conftest.$ac_ext <<_ACEOF
14271/* end confdefs.h. */
14272$ac_includes_default
14273#include <$ac_header>
14274_ACEOF
14275rm -f conftest.$ac_objext
14276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14277 (eval $ac_compile) 2>conftest.er1
a848cd7e 14278 ac_status=$?
ac1cb8d3
VS
14279 grep -v '^ *+' conftest.er1 >conftest.err
14280 rm -f conftest.er1
14281 cat conftest.err >&5
a848cd7e
SC
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
fb00f58d
JS
14284 { ac_try='test -z "$ac_c_werror_flag"
14285 || test ! -s conftest.err'
ac1cb8d3
VS
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; } &&
14291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 ac_header_compiler=yes
14298else
14299 echo "$as_me: failed program was:" >&5
14300sed 's/^/| /' conftest.$ac_ext >&5
14301
14302ac_header_compiler=no
14303fi
ac1cb8d3 14304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14305echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14306echo "${ECHO_T}$ac_header_compiler" >&6
14307
14308# Is the header present?
14309echo "$as_me:$LINENO: checking $ac_header presence" >&5
14310echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14311cat >conftest.$ac_ext <<_ACEOF
14312/* confdefs.h. */
14313_ACEOF
14314cat confdefs.h >>conftest.$ac_ext
14315cat >>conftest.$ac_ext <<_ACEOF
14316/* end confdefs.h. */
14317#include <$ac_header>
14318_ACEOF
14319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14321 ac_status=$?
14322 grep -v '^ *+' conftest.er1 >conftest.err
14323 rm -f conftest.er1
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } >/dev/null; then
14327 if test -s conftest.err; then
14328 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14330 else
14331 ac_cpp_err=
14332 fi
14333else
14334 ac_cpp_err=yes
14335fi
14336if test -z "$ac_cpp_err"; then
14337 ac_header_preproc=yes
14338else
14339 echo "$as_me: failed program was:" >&5
14340sed 's/^/| /' conftest.$ac_ext >&5
14341
14342 ac_header_preproc=no
14343fi
14344rm -f conftest.err conftest.$ac_ext
14345echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14346echo "${ECHO_T}$ac_header_preproc" >&6
14347
14348# So? What about this header?
ac1cb8d3
VS
14349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14350 yes:no: )
a848cd7e
SC
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14352echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14354echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14355 ac_header_preproc=yes
a848cd7e 14356 ;;
ac1cb8d3 14357 no:yes:* )
a848cd7e
SC
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14359echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14361echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14363echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14365echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14369echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14370 (
14371 cat <<\_ASBOX
ac1cb8d3
VS
14372## ----------------------------------------- ##
14373## Report this to wx-dev@lists.wxwidgets.org ##
14374## ----------------------------------------- ##
a848cd7e
SC
14375_ASBOX
14376 ) |
14377 sed "s/^/$as_me: WARNING: /" >&2
14378 ;;
14379esac
14380echo "$as_me:$LINENO: checking for $ac_header" >&5
14381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14382if eval "test \"\${$as_ac_Header+set}\" = set"; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384else
ac1cb8d3 14385 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14386fi
14387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14389
14390fi
14391if test `eval echo '${'$as_ac_Header'}'` = yes; then
14392 cat >>confdefs.h <<_ACEOF
14393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14394_ACEOF
14395
14396fi
14397
14398done
14399
14400
14401for ac_header in wchar.h
14402do
14403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14404if eval "test \"\${$as_ac_Header+set}\" = set"; then
14405 echo "$as_me:$LINENO: checking for $ac_header" >&5
14406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14407if eval "test \"\${$as_ac_Header+set}\" = set"; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14409fi
14410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14412else
14413 # Is the header compilable?
14414echo "$as_me:$LINENO: checking $ac_header usability" >&5
14415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14416cat >conftest.$ac_ext <<_ACEOF
14417/* confdefs.h. */
14418_ACEOF
14419cat confdefs.h >>conftest.$ac_ext
14420cat >>conftest.$ac_ext <<_ACEOF
14421/* end confdefs.h. */
14422$ac_includes_default
14423#include <$ac_header>
14424_ACEOF
14425rm -f conftest.$ac_objext
14426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14427 (eval $ac_compile) 2>conftest.er1
a848cd7e 14428 ac_status=$?
ac1cb8d3
VS
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
a848cd7e
SC
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
fb00f58d
JS
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
ac1cb8d3
VS
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 ac_header_compiler=yes
14448else
14449 echo "$as_me: failed program was:" >&5
14450sed 's/^/| /' conftest.$ac_ext >&5
14451
14452ac_header_compiler=no
14453fi
ac1cb8d3 14454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14456echo "${ECHO_T}$ac_header_compiler" >&6
14457
14458# Is the header present?
14459echo "$as_me:$LINENO: checking $ac_header presence" >&5
14460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14461cat >conftest.$ac_ext <<_ACEOF
14462/* confdefs.h. */
14463_ACEOF
14464cat confdefs.h >>conftest.$ac_ext
14465cat >>conftest.$ac_ext <<_ACEOF
14466/* end confdefs.h. */
14467#include <$ac_header>
14468_ACEOF
14469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14471 ac_status=$?
14472 grep -v '^ *+' conftest.er1 >conftest.err
14473 rm -f conftest.er1
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } >/dev/null; then
14477 if test -s conftest.err; then
14478 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14480 else
14481 ac_cpp_err=
14482 fi
14483else
14484 ac_cpp_err=yes
14485fi
14486if test -z "$ac_cpp_err"; then
14487 ac_header_preproc=yes
14488else
14489 echo "$as_me: failed program was:" >&5
14490sed 's/^/| /' conftest.$ac_ext >&5
14491
14492 ac_header_preproc=no
14493fi
14494rm -f conftest.err conftest.$ac_ext
14495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14496echo "${ECHO_T}$ac_header_preproc" >&6
14497
14498# So? What about this header?
ac1cb8d3
VS
14499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14500 yes:no: )
a848cd7e
SC
14501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14505 ac_header_preproc=yes
a848cd7e 14506 ;;
ac1cb8d3 14507 no:yes:* )
a848cd7e
SC
14508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14511echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14515echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14520 (
14521 cat <<\_ASBOX
ac1cb8d3
VS
14522## ----------------------------------------- ##
14523## Report this to wx-dev@lists.wxwidgets.org ##
14524## ----------------------------------------- ##
a848cd7e
SC
14525_ASBOX
14526 ) |
14527 sed "s/^/$as_me: WARNING: /" >&2
14528 ;;
14529esac
14530echo "$as_me:$LINENO: checking for $ac_header" >&5
14531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14532if eval "test \"\${$as_ac_Header+set}\" = set"; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14534else
ac1cb8d3 14535 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14536fi
14537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14539
14540fi
14541if test `eval echo '${'$as_ac_Header'}'` = yes; then
14542 cat >>confdefs.h <<_ACEOF
14543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14544_ACEOF
14545
14546fi
14547
14548done
14549
14550
14551if test "$ac_cv_header_wchar_h" != "yes"; then
14552
14553for ac_header in wcstr.h
14554do
14555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14556if eval "test \"\${$as_ac_Header+set}\" = set"; then
14557 echo "$as_me:$LINENO: checking for $ac_header" >&5
14558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14559if eval "test \"\${$as_ac_Header+set}\" = set"; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561fi
14562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14564else
14565 # Is the header compilable?
14566echo "$as_me:$LINENO: checking $ac_header usability" >&5
14567echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14568cat >conftest.$ac_ext <<_ACEOF
14569/* confdefs.h. */
14570_ACEOF
14571cat confdefs.h >>conftest.$ac_ext
14572cat >>conftest.$ac_ext <<_ACEOF
14573/* end confdefs.h. */
14574$ac_includes_default
14575#include <$ac_header>
14576_ACEOF
14577rm -f conftest.$ac_objext
14578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14579 (eval $ac_compile) 2>conftest.er1
a848cd7e 14580 ac_status=$?
ac1cb8d3
VS
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
a848cd7e
SC
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
fb00f58d
JS
14586 { ac_try='test -z "$ac_c_werror_flag"
14587 || test ! -s conftest.err'
ac1cb8d3
VS
14588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589 (eval $ac_try) 2>&5
14590 ac_status=$?
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; } &&
14593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595 (eval $ac_try) 2>&5
14596 ac_status=$?
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; }; then
14599 ac_header_compiler=yes
14600else
14601 echo "$as_me: failed program was:" >&5
14602sed 's/^/| /' conftest.$ac_ext >&5
14603
14604ac_header_compiler=no
14605fi
ac1cb8d3 14606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14607echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14608echo "${ECHO_T}$ac_header_compiler" >&6
14609
14610# Is the header present?
14611echo "$as_me:$LINENO: checking $ac_header presence" >&5
14612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14613cat >conftest.$ac_ext <<_ACEOF
14614/* confdefs.h. */
14615_ACEOF
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
14618/* end confdefs.h. */
14619#include <$ac_header>
14620_ACEOF
14621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } >/dev/null; then
14629 if test -s conftest.err; then
14630 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14632 else
14633 ac_cpp_err=
14634 fi
14635else
14636 ac_cpp_err=yes
14637fi
14638if test -z "$ac_cpp_err"; then
14639 ac_header_preproc=yes
14640else
14641 echo "$as_me: failed program was:" >&5
14642sed 's/^/| /' conftest.$ac_ext >&5
14643
14644 ac_header_preproc=no
14645fi
14646rm -f conftest.err conftest.$ac_ext
14647echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14648echo "${ECHO_T}$ac_header_preproc" >&6
14649
14650# So? What about this header?
ac1cb8d3
VS
14651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14652 yes:no: )
a848cd7e
SC
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14657 ac_header_preproc=yes
a848cd7e 14658 ;;
ac1cb8d3 14659 no:yes:* )
a848cd7e
SC
14660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14667echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14672 (
14673 cat <<\_ASBOX
ac1cb8d3
VS
14674## ----------------------------------------- ##
14675## Report this to wx-dev@lists.wxwidgets.org ##
14676## ----------------------------------------- ##
a848cd7e
SC
14677_ASBOX
14678 ) |
14679 sed "s/^/$as_me: WARNING: /" >&2
14680 ;;
14681esac
14682echo "$as_me:$LINENO: checking for $ac_header" >&5
14683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14684if eval "test \"\${$as_ac_Header+set}\" = set"; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686else
ac1cb8d3 14687 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14688fi
14689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14691
14692fi
14693if test `eval echo '${'$as_ac_Header'}'` = yes; then
14694 cat >>confdefs.h <<_ACEOF
14695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14696_ACEOF
14697
14698fi
14699
14700done
14701
14702fi
14703
14704
14705for ac_header in fnmatch.h
14706do
14707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14708if eval "test \"\${$as_ac_Header+set}\" = set"; then
14709 echo "$as_me:$LINENO: checking for $ac_header" >&5
14710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14711if eval "test \"\${$as_ac_Header+set}\" = set"; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14713fi
14714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14716else
14717 # Is the header compilable?
14718echo "$as_me:$LINENO: checking $ac_header usability" >&5
14719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14720cat >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$ac_includes_default
14727#include <$ac_header>
14728_ACEOF
14729rm -f conftest.$ac_objext
14730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14731 (eval $ac_compile) 2>conftest.er1
a848cd7e 14732 ac_status=$?
ac1cb8d3
VS
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
a848cd7e
SC
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
fb00f58d
JS
14738 { ac_try='test -z "$ac_c_werror_flag"
14739 || test ! -s conftest.err'
ac1cb8d3
VS
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; } &&
14745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_header_compiler=yes
14752else
14753 echo "$as_me: failed program was:" >&5
14754sed 's/^/| /' conftest.$ac_ext >&5
14755
14756ac_header_compiler=no
14757fi
ac1cb8d3 14758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14760echo "${ECHO_T}$ac_header_compiler" >&6
14761
14762# Is the header present?
14763echo "$as_me:$LINENO: checking $ac_header presence" >&5
14764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14765cat >conftest.$ac_ext <<_ACEOF
14766/* confdefs.h. */
14767_ACEOF
14768cat confdefs.h >>conftest.$ac_ext
14769cat >>conftest.$ac_ext <<_ACEOF
14770/* end confdefs.h. */
14771#include <$ac_header>
14772_ACEOF
14773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } >/dev/null; then
14781 if test -s conftest.err; then
14782 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14784 else
14785 ac_cpp_err=
14786 fi
14787else
14788 ac_cpp_err=yes
14789fi
14790if test -z "$ac_cpp_err"; then
14791 ac_header_preproc=yes
14792else
14793 echo "$as_me: failed program was:" >&5
14794sed 's/^/| /' conftest.$ac_ext >&5
14795
14796 ac_header_preproc=no
14797fi
14798rm -f conftest.err conftest.$ac_ext
14799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14800echo "${ECHO_T}$ac_header_preproc" >&6
14801
14802# So? What about this header?
ac1cb8d3
VS
14803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14804 yes:no: )
a848cd7e
SC
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14809 ac_header_preproc=yes
a848cd7e 14810 ;;
ac1cb8d3 14811 no:yes:* )
a848cd7e
SC
14812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14819echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14824 (
14825 cat <<\_ASBOX
ac1cb8d3
VS
14826## ----------------------------------------- ##
14827## Report this to wx-dev@lists.wxwidgets.org ##
14828## ----------------------------------------- ##
a848cd7e
SC
14829_ASBOX
14830 ) |
14831 sed "s/^/$as_me: WARNING: /" >&2
14832 ;;
14833esac
14834echo "$as_me:$LINENO: checking for $ac_header" >&5
14835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14836if eval "test \"\${$as_ac_Header+set}\" = set"; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14838else
ac1cb8d3 14839 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14840fi
14841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14843
14844fi
14845if test `eval echo '${'$as_ac_Header'}'` = yes; then
14846 cat >>confdefs.h <<_ACEOF
14847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14848_ACEOF
14849
14850fi
14851
14852done
14853
14854
14855if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14856
14857for ac_func in fnmatch
14858do
14859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14860echo "$as_me:$LINENO: checking for $ac_func" >&5
14861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14862if eval "test \"\${$as_ac_var+set}\" = set"; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14864else
14865 cat >conftest.$ac_ext <<_ACEOF
14866/* confdefs.h. */
14867_ACEOF
14868cat confdefs.h >>conftest.$ac_ext
14869cat >>conftest.$ac_ext <<_ACEOF
14870/* end confdefs.h. */
ac1cb8d3
VS
14871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14873#define $ac_func innocuous_$ac_func
14874
a848cd7e
SC
14875/* System header to define __stub macros and hopefully few prototypes,
14876 which can conflict with char $ac_func (); below.
14877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14878 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14879
a848cd7e
SC
14880#ifdef __STDC__
14881# include <limits.h>
14882#else
14883# include <assert.h>
14884#endif
ac1cb8d3
VS
14885
14886#undef $ac_func
14887
a848cd7e
SC
14888/* Override any gcc2 internal prototype to avoid an error. */
14889#ifdef __cplusplus
14890extern "C"
14891{
14892#endif
14893/* We use char because int might match the return type of a gcc2
14894 builtin and then its argument prototype would still apply. */
14895char $ac_func ();
14896/* The GNU C library defines this for functions which it implements
14897 to always fail with ENOSYS. Some functions are actually named
14898 something starting with __ and the normal name is an alias. */
14899#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14900choke me
14901#else
14902char (*f) () = $ac_func;
14903#endif
14904#ifdef __cplusplus
14905}
14906#endif
14907
14908int
14909main ()
14910{
14911return f != $ac_func;
14912 ;
14913 return 0;
14914}
14915_ACEOF
14916rm -f conftest.$ac_objext conftest$ac_exeext
14917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14918 (eval $ac_link) 2>conftest.er1
a848cd7e 14919 ac_status=$?
ac1cb8d3
VS
14920 grep -v '^ *+' conftest.er1 >conftest.err
14921 rm -f conftest.er1
14922 cat conftest.err >&5
a848cd7e
SC
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } &&
fb00f58d
JS
14925 { ac_try='test -z "$ac_c_werror_flag"
14926 || test ! -s conftest.err'
ac1cb8d3
VS
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; } &&
14932 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
14938 eval "$as_ac_var=yes"
14939else
14940 echo "$as_me: failed program was:" >&5
14941sed 's/^/| /' conftest.$ac_ext >&5
14942
14943eval "$as_ac_var=no"
14944fi
ac1cb8d3
VS
14945rm -f conftest.err conftest.$ac_objext \
14946 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14947fi
14948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14950if test `eval echo '${'$as_ac_var'}'` = yes; then
14951 cat >>confdefs.h <<_ACEOF
14952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14953_ACEOF
14954
14955fi
14956done
14957
14958fi
14959
14960
14961for ac_header in langinfo.h
14962do
14963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14964if eval "test \"\${$as_ac_Header+set}\" = set"; then
14965 echo "$as_me:$LINENO: checking for $ac_header" >&5
14966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14967if eval "test \"\${$as_ac_Header+set}\" = set"; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14969fi
14970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14972else
14973 # Is the header compilable?
14974echo "$as_me:$LINENO: checking $ac_header usability" >&5
14975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14976cat >conftest.$ac_ext <<_ACEOF
14977/* confdefs.h. */
14978_ACEOF
14979cat confdefs.h >>conftest.$ac_ext
14980cat >>conftest.$ac_ext <<_ACEOF
14981/* end confdefs.h. */
14982$ac_includes_default
14983#include <$ac_header>
14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14987 (eval $ac_compile) 2>conftest.er1
a848cd7e 14988 ac_status=$?
ac1cb8d3
VS
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
a848cd7e
SC
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
fb00f58d
JS
14994 { ac_try='test -z "$ac_c_werror_flag"
14995 || test ! -s conftest.err'
ac1cb8d3
VS
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; } &&
15001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_header_compiler=yes
15008else
15009 echo "$as_me: failed program was:" >&5
15010sed 's/^/| /' conftest.$ac_ext >&5
15011
15012ac_header_compiler=no
15013fi
ac1cb8d3 15014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15016echo "${ECHO_T}$ac_header_compiler" >&6
15017
15018# Is the header present?
15019echo "$as_me:$LINENO: checking $ac_header presence" >&5
15020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15021cat >conftest.$ac_ext <<_ACEOF
15022/* confdefs.h. */
15023_ACEOF
15024cat confdefs.h >>conftest.$ac_ext
15025cat >>conftest.$ac_ext <<_ACEOF
15026/* end confdefs.h. */
15027#include <$ac_header>
15028_ACEOF
15029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15031 ac_status=$?
15032 grep -v '^ *+' conftest.er1 >conftest.err
15033 rm -f conftest.er1
15034 cat conftest.err >&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } >/dev/null; then
15037 if test -s conftest.err; then
15038 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15040 else
15041 ac_cpp_err=
15042 fi
15043else
15044 ac_cpp_err=yes
15045fi
15046if test -z "$ac_cpp_err"; then
15047 ac_header_preproc=yes
15048else
15049 echo "$as_me: failed program was:" >&5
15050sed 's/^/| /' conftest.$ac_ext >&5
15051
15052 ac_header_preproc=no
15053fi
15054rm -f conftest.err conftest.$ac_ext
15055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15056echo "${ECHO_T}$ac_header_preproc" >&6
15057
15058# So? What about this header?
ac1cb8d3
VS
15059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15060 yes:no: )
a848cd7e
SC
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15065 ac_header_preproc=yes
a848cd7e 15066 ;;
ac1cb8d3 15067 no:yes:* )
a848cd7e
SC
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15080 (
15081 cat <<\_ASBOX
ac1cb8d3
VS
15082## ----------------------------------------- ##
15083## Report this to wx-dev@lists.wxwidgets.org ##
15084## ----------------------------------------- ##
a848cd7e
SC
15085_ASBOX
15086 ) |
15087 sed "s/^/$as_me: WARNING: /" >&2
15088 ;;
15089esac
15090echo "$as_me:$LINENO: checking for $ac_header" >&5
15091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15092if eval "test \"\${$as_ac_Header+set}\" = set"; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15094else
ac1cb8d3 15095 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15096fi
15097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15099
15100fi
15101if test `eval echo '${'$as_ac_Header'}'` = yes; then
15102 cat >>confdefs.h <<_ACEOF
15103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15104_ACEOF
15105
15106fi
15107
15108done
15109
15110
15111case "${host}" in
15112 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15113 if test $ac_cv_header_langinfo_h = "yes" \
15114 -a \( "$wx_cv_gccversion" = "EMX2" \
15115 -o "$wx_cv_gccversion" = "EMX3" \
15116 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15117 LIBS="$LIBS -lintl"
15118 fi
15119 ;;
15120esac
15121
15122if test "$wxUSE_GUI" = "yes"; then
15123 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15124
15125for ac_header in X11/Xlib.h
15126do
15127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15128if eval "test \"\${$as_ac_Header+set}\" = set"; then
15129 echo "$as_me:$LINENO: checking for $ac_header" >&5
15130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15131if eval "test \"\${$as_ac_Header+set}\" = set"; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15133fi
15134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15136else
15137 # Is the header compilable?
15138echo "$as_me:$LINENO: checking $ac_header usability" >&5
15139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15140cat >conftest.$ac_ext <<_ACEOF
15141/* confdefs.h. */
15142_ACEOF
15143cat confdefs.h >>conftest.$ac_ext
15144cat >>conftest.$ac_ext <<_ACEOF
15145/* end confdefs.h. */
15146$ac_includes_default
15147#include <$ac_header>
15148_ACEOF
15149rm -f conftest.$ac_objext
15150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15151 (eval $ac_compile) 2>conftest.er1
a848cd7e 15152 ac_status=$?
ac1cb8d3
VS
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
a848cd7e
SC
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
fb00f58d
JS
15158 { ac_try='test -z "$ac_c_werror_flag"
15159 || test ! -s conftest.err'
ac1cb8d3
VS
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; } &&
15165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_header_compiler=yes
15172else
15173 echo "$as_me: failed program was:" >&5
15174sed 's/^/| /' conftest.$ac_ext >&5
15175
15176ac_header_compiler=no
15177fi
ac1cb8d3 15178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15180echo "${ECHO_T}$ac_header_compiler" >&6
15181
15182# Is the header present?
15183echo "$as_me:$LINENO: checking $ac_header presence" >&5
15184echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15185cat >conftest.$ac_ext <<_ACEOF
15186/* confdefs.h. */
15187_ACEOF
15188cat confdefs.h >>conftest.$ac_ext
15189cat >>conftest.$ac_ext <<_ACEOF
15190/* end confdefs.h. */
15191#include <$ac_header>
15192_ACEOF
15193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15195 ac_status=$?
15196 grep -v '^ *+' conftest.er1 >conftest.err
15197 rm -f conftest.er1
15198 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } >/dev/null; then
15201 if test -s conftest.err; then
15202 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15204 else
15205 ac_cpp_err=
15206 fi
15207else
15208 ac_cpp_err=yes
15209fi
15210if test -z "$ac_cpp_err"; then
15211 ac_header_preproc=yes
15212else
15213 echo "$as_me: failed program was:" >&5
15214sed 's/^/| /' conftest.$ac_ext >&5
15215
15216 ac_header_preproc=no
15217fi
15218rm -f conftest.err conftest.$ac_ext
15219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220echo "${ECHO_T}$ac_header_preproc" >&6
15221
15222# So? What about this header?
ac1cb8d3
VS
15223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15224 yes:no: )
a848cd7e
SC
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15229 ac_header_preproc=yes
a848cd7e 15230 ;;
ac1cb8d3 15231 no:yes:* )
a848cd7e
SC
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15244 (
15245 cat <<\_ASBOX
ac1cb8d3
VS
15246## ----------------------------------------- ##
15247## Report this to wx-dev@lists.wxwidgets.org ##
15248## ----------------------------------------- ##
a848cd7e
SC
15249_ASBOX
15250 ) |
15251 sed "s/^/$as_me: WARNING: /" >&2
15252 ;;
15253esac
15254echo "$as_me:$LINENO: checking for $ac_header" >&5
15255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15256if eval "test \"\${$as_ac_Header+set}\" = set"; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15258else
ac1cb8d3 15259 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15260fi
15261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15263
15264fi
15265if test `eval echo '${'$as_ac_Header'}'` = yes; then
15266 cat >>confdefs.h <<_ACEOF
15267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15268_ACEOF
15269
15270fi
15271
15272done
15273
15274
15275for ac_header in X11/XKBlib.h
15276do
15277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15278echo "$as_me:$LINENO: checking for $ac_header" >&5
15279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15280if eval "test \"\${$as_ac_Header+set}\" = set"; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15282else
15283 cat >conftest.$ac_ext <<_ACEOF
15284/* confdefs.h. */
15285_ACEOF
15286cat confdefs.h >>conftest.$ac_ext
15287cat >>conftest.$ac_ext <<_ACEOF
15288/* end confdefs.h. */
15289
15290 #if HAVE_X11_XLIB_H
15291 #include <X11/Xlib.h>
15292 #endif
15293
15294
15295#include <$ac_header>
15296_ACEOF
15297rm -f conftest.$ac_objext
15298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15299 (eval $ac_compile) 2>conftest.er1
a848cd7e 15300 ac_status=$?
ac1cb8d3
VS
15301 grep -v '^ *+' conftest.er1 >conftest.err
15302 rm -f conftest.er1
15303 cat conftest.err >&5
a848cd7e
SC
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } &&
fb00f58d
JS
15306 { ac_try='test -z "$ac_c_werror_flag"
15307 || test ! -s conftest.err'
ac1cb8d3
VS
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; } &&
15313 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15316 ac_status=$?
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15319 eval "$as_ac_Header=yes"
15320else
15321 echo "$as_me: failed program was:" >&5
15322sed 's/^/| /' conftest.$ac_ext >&5
15323
15324eval "$as_ac_Header=no"
15325fi
ac1cb8d3 15326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15327fi
15328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15329echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15330if test `eval echo '${'$as_ac_Header'}'` = yes; then
15331 cat >>confdefs.h <<_ACEOF
15332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15333_ACEOF
15334
15335fi
15336
15337done
15338
15339 fi
15340fi
15341
15342
15343echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15344echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15345if test "${ac_cv_c_const+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347else
15348 cat >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
15355int
15356main ()
15357{
15358/* FIXME: Include the comments suggested by Paul. */
15359#ifndef __cplusplus
15360 /* Ultrix mips cc rejects this. */
15361 typedef int charset[2];
15362 const charset x;
15363 /* SunOS 4.1.1 cc rejects this. */
15364 char const *const *ccp;
15365 char **p;
15366 /* NEC SVR4.0.2 mips cc rejects this. */
15367 struct point {int x, y;};
15368 static struct point const zero = {0,0};
15369 /* AIX XL C 1.02.0.0 rejects this.
15370 It does not let you subtract one const X* pointer from another in
15371 an arm of an if-expression whose if-part is not a constant
15372 expression */
15373 const char *g = "string";
15374 ccp = &g + (g ? g-g : 0);
15375 /* HPUX 7.0 cc rejects these. */
15376 ++ccp;
15377 p = (char**) ccp;
15378 ccp = (char const *const *) p;
15379 { /* SCO 3.2v4 cc rejects this. */
15380 char *t;
15381 char const *s = 0 ? (char *) 0 : (char const *) 0;
15382
15383 *t++ = 0;
15384 }
15385 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15386 int x[] = {25, 17};
15387 const int *foo = &x[0];
15388 ++foo;
15389 }
15390 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15391 typedef const int *iptr;
15392 iptr p = 0;
15393 ++p;
15394 }
15395 { /* AIX XL C 1.02.0.0 rejects this saying
15396 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15397 struct s { int j; const int *ap[3]; };
15398 struct s *b; b->j = 5;
15399 }
15400 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15401 const int foo = 10;
15402 }
15403#endif
15404
15405 ;
15406 return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15411 (eval $ac_compile) 2>conftest.er1
a848cd7e 15412 ac_status=$?
ac1cb8d3
VS
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
a848cd7e
SC
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
fb00f58d
JS
15418 { ac_try='test -z "$ac_c_werror_flag"
15419 || test ! -s conftest.err'
ac1cb8d3
VS
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 ac_cv_c_const=yes
15432else
15433 echo "$as_me: failed program was:" >&5
15434sed 's/^/| /' conftest.$ac_ext >&5
15435
15436ac_cv_c_const=no
15437fi
ac1cb8d3 15438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15439fi
15440echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15441echo "${ECHO_T}$ac_cv_c_const" >&6
15442if test $ac_cv_c_const = no; then
15443
15444cat >>confdefs.h <<\_ACEOF
15445#define const
15446_ACEOF
15447
15448fi
15449
15450echo "$as_me:$LINENO: checking for inline" >&5
15451echo $ECHO_N "checking for inline... $ECHO_C" >&6
15452if test "${ac_cv_c_inline+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15454else
15455 ac_cv_c_inline=no
15456for ac_kw in inline __inline__ __inline; do
15457 cat >conftest.$ac_ext <<_ACEOF
15458/* confdefs.h. */
15459_ACEOF
15460cat confdefs.h >>conftest.$ac_ext
15461cat >>conftest.$ac_ext <<_ACEOF
15462/* end confdefs.h. */
15463#ifndef __cplusplus
15464typedef int foo_t;
15465static $ac_kw foo_t static_foo () {return 0; }
15466$ac_kw foo_t foo () {return 0; }
15467#endif
15468
15469_ACEOF
15470rm -f conftest.$ac_objext
15471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15472 (eval $ac_compile) 2>conftest.er1
a848cd7e 15473 ac_status=$?
ac1cb8d3
VS
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
a848cd7e
SC
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
fb00f58d
JS
15479 { ac_try='test -z "$ac_c_werror_flag"
15480 || test ! -s conftest.err'
ac1cb8d3
VS
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; } &&
15486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 ac_cv_c_inline=$ac_kw; break
15493else
15494 echo "$as_me: failed program was:" >&5
15495sed 's/^/| /' conftest.$ac_ext >&5
15496
15497fi
ac1cb8d3 15498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15499done
15500
15501fi
15502echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15503echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15504
15505
a848cd7e
SC
15506case $ac_cv_c_inline in
15507 inline | yes) ;;
ac1cb8d3
VS
15508 *)
15509 case $ac_cv_c_inline in
15510 no) ac_val=;;
15511 *) ac_val=$ac_cv_c_inline;;
15512 esac
15513 cat >>confdefs.h <<_ACEOF
15514#ifndef __cplusplus
15515#define inline $ac_val
15516#endif
de59c161 15517_ACEOF
ac1cb8d3 15518 ;;
a848cd7e
SC
15519esac
15520
15521
15522echo "$as_me:$LINENO: checking for char" >&5
15523echo $ECHO_N "checking for char... $ECHO_C" >&6
15524if test "${ac_cv_type_char+set}" = set; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15526else
15527 cat >conftest.$ac_ext <<_ACEOF
15528/* confdefs.h. */
15529_ACEOF
15530cat confdefs.h >>conftest.$ac_ext
15531cat >>conftest.$ac_ext <<_ACEOF
15532/* end confdefs.h. */
15533$ac_includes_default
15534int
15535main ()
15536{
15537if ((char *) 0)
15538 return 0;
15539if (sizeof (char))
15540 return 0;
15541 ;
15542 return 0;
15543}
15544_ACEOF
15545rm -f conftest.$ac_objext
15546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15547 (eval $ac_compile) 2>conftest.er1
a848cd7e 15548 ac_status=$?
ac1cb8d3
VS
15549 grep -v '^ *+' conftest.er1 >conftest.err
15550 rm -f conftest.er1
15551 cat conftest.err >&5
a848cd7e
SC
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
fb00f58d
JS
15554 { ac_try='test -z "$ac_c_werror_flag"
15555 || test ! -s conftest.err'
ac1cb8d3
VS
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; } &&
15561 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; }; then
15567 ac_cv_type_char=yes
15568else
15569 echo "$as_me: failed program was:" >&5
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
15572ac_cv_type_char=no
15573fi
ac1cb8d3 15574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15575fi
15576echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15577echo "${ECHO_T}$ac_cv_type_char" >&6
15578
15579echo "$as_me:$LINENO: checking size of char" >&5
15580echo $ECHO_N "checking size of char... $ECHO_C" >&6
15581if test "${ac_cv_sizeof_char+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15583else
15584 if test "$ac_cv_type_char" = yes; then
15585 # The cast to unsigned long works around a bug in the HP C Compiler
15586 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15587 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15588 # This bug is HP SR number 8606223364.
15589 if test "$cross_compiling" = yes; then
15590 # Depending upon the size, compute the lo and hi bounds.
15591cat >conftest.$ac_ext <<_ACEOF
15592/* confdefs.h. */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
15596/* end confdefs.h. */
15597$ac_includes_default
15598int
15599main ()
15600{
15601static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15602test_array [0] = 0
15603
15604 ;
15605 return 0;
15606}
15607_ACEOF
15608rm -f conftest.$ac_objext
15609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15610 (eval $ac_compile) 2>conftest.er1
a848cd7e 15611 ac_status=$?
ac1cb8d3
VS
15612 grep -v '^ *+' conftest.er1 >conftest.err
15613 rm -f conftest.er1
15614 cat conftest.err >&5
a848cd7e
SC
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } &&
fb00f58d
JS
15617 { ac_try='test -z "$ac_c_werror_flag"
15618 || test ! -s conftest.err'
ac1cb8d3
VS
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15621 ac_status=$?
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; } &&
15624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; }; then
15630 ac_lo=0 ac_mid=0
15631 while :; do
15632 cat >conftest.$ac_ext <<_ACEOF
15633/* confdefs.h. */
15634_ACEOF
15635cat confdefs.h >>conftest.$ac_ext
15636cat >>conftest.$ac_ext <<_ACEOF
15637/* end confdefs.h. */
15638$ac_includes_default
15639int
15640main ()
15641{
15642static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15643test_array [0] = 0
15644
15645 ;
15646 return 0;
15647}
15648_ACEOF
15649rm -f conftest.$ac_objext
15650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15651 (eval $ac_compile) 2>conftest.er1
a848cd7e 15652 ac_status=$?
ac1cb8d3
VS
15653 grep -v '^ *+' conftest.er1 >conftest.err
15654 rm -f conftest.er1
15655 cat conftest.err >&5
a848cd7e
SC
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } &&
fb00f58d
JS
15658 { ac_try='test -z "$ac_c_werror_flag"
15659 || test ! -s conftest.err'
ac1cb8d3
VS
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 ac_hi=$ac_mid; break
15672else
15673 echo "$as_me: failed program was:" >&5
15674sed 's/^/| /' conftest.$ac_ext >&5
15675
15676ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15677 if test $ac_lo -le $ac_mid; then
15678 ac_lo= ac_hi=
15679 break
15680 fi
15681 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15682fi
ac1cb8d3 15683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15684 done
15685else
15686 echo "$as_me: failed program was:" >&5
15687sed 's/^/| /' conftest.$ac_ext >&5
15688
15689cat >conftest.$ac_ext <<_ACEOF
15690/* confdefs.h. */
15691_ACEOF
15692cat confdefs.h >>conftest.$ac_ext
15693cat >>conftest.$ac_ext <<_ACEOF
15694/* end confdefs.h. */
15695$ac_includes_default
15696int
15697main ()
15698{
15699static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15700test_array [0] = 0
15701
15702 ;
15703 return 0;
15704}
15705_ACEOF
15706rm -f conftest.$ac_objext
15707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15708 (eval $ac_compile) 2>conftest.er1
a848cd7e 15709 ac_status=$?
ac1cb8d3
VS
15710 grep -v '^ *+' conftest.er1 >conftest.err
15711 rm -f conftest.er1
15712 cat conftest.err >&5
a848cd7e
SC
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } &&
fb00f58d
JS
15715 { ac_try='test -z "$ac_c_werror_flag"
15716 || test ! -s conftest.err'
ac1cb8d3
VS
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; } &&
15722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724 (eval $ac_try) 2>&5
15725 ac_status=$?
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; }; then
15728 ac_hi=-1 ac_mid=-1
15729 while :; do
15730 cat >conftest.$ac_ext <<_ACEOF
15731/* confdefs.h. */
15732_ACEOF
15733cat confdefs.h >>conftest.$ac_ext
15734cat >>conftest.$ac_ext <<_ACEOF
15735/* end confdefs.h. */
15736$ac_includes_default
15737int
15738main ()
15739{
15740static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15741test_array [0] = 0
15742
15743 ;
15744 return 0;
15745}
15746_ACEOF
15747rm -f conftest.$ac_objext
15748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15749 (eval $ac_compile) 2>conftest.er1
a848cd7e 15750 ac_status=$?
ac1cb8d3
VS
15751 grep -v '^ *+' conftest.er1 >conftest.err
15752 rm -f conftest.er1
15753 cat conftest.err >&5
a848cd7e
SC
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
fb00f58d
JS
15756 { ac_try='test -z "$ac_c_werror_flag"
15757 || test ! -s conftest.err'
ac1cb8d3
VS
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_lo=$ac_mid; break
15770else
15771 echo "$as_me: failed program was:" >&5
15772sed 's/^/| /' conftest.$ac_ext >&5
15773
15774ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15775 if test $ac_mid -le $ac_hi; then
15776 ac_lo= ac_hi=
15777 break
15778 fi
15779 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15780fi
ac1cb8d3 15781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15782 done
15783else
15784 echo "$as_me: failed program was:" >&5
15785sed 's/^/| /' conftest.$ac_ext >&5
15786
15787ac_lo= ac_hi=
15788fi
ac1cb8d3 15789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15790fi
ac1cb8d3 15791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15792# Binary search between lo and hi bounds.
15793while test "x$ac_lo" != "x$ac_hi"; do
15794 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15795 cat >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
15802int
15803main ()
15804{
15805static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15806test_array [0] = 0
15807
15808 ;
15809 return 0;
15810}
15811_ACEOF
15812rm -f conftest.$ac_objext
15813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15814 (eval $ac_compile) 2>conftest.er1
a848cd7e 15815 ac_status=$?
ac1cb8d3
VS
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
a848cd7e
SC
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
fb00f58d
JS
15821 { ac_try='test -z "$ac_c_werror_flag"
15822 || test ! -s conftest.err'
ac1cb8d3
VS
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 ac_hi=$ac_mid
15835else
15836 echo "$as_me: failed program was:" >&5
15837sed 's/^/| /' conftest.$ac_ext >&5
15838
15839ac_lo=`expr '(' $ac_mid ')' + 1`
15840fi
ac1cb8d3 15841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15842done
15843case $ac_lo in
15844?*) ac_cv_sizeof_char=$ac_lo;;
15845'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15846See \`config.log' for more details." >&5
15847echo "$as_me: error: cannot compute sizeof (char), 77
15848See \`config.log' for more details." >&2;}
15849 { (exit 1); exit 1; }; } ;;
15850esac
15851else
15852 if test "$cross_compiling" = yes; then
fb00f58d
JS
15853 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15854See \`config.log' for more details." >&5
15855echo "$as_me: error: cannot run test program while cross compiling
15856See \`config.log' for more details." >&2;}
a848cd7e
SC
15857 { (exit 1); exit 1; }; }
15858else
15859 cat >conftest.$ac_ext <<_ACEOF
15860/* confdefs.h. */
15861_ACEOF
15862cat confdefs.h >>conftest.$ac_ext
15863cat >>conftest.$ac_ext <<_ACEOF
15864/* end confdefs.h. */
15865$ac_includes_default
15866long longval () { return (long) (sizeof (char)); }
15867unsigned long ulongval () { return (long) (sizeof (char)); }
15868#include <stdio.h>
15869#include <stdlib.h>
15870int
15871main ()
15872{
15873
15874 FILE *f = fopen ("conftest.val", "w");
15875 if (! f)
15876 exit (1);
15877 if (((long) (sizeof (char))) < 0)
15878 {
15879 long i = longval ();
15880 if (i != ((long) (sizeof (char))))
15881 exit (1);
15882 fprintf (f, "%ld\n", i);
15883 }
15884 else
15885 {
15886 unsigned long i = ulongval ();
15887 if (i != ((long) (sizeof (char))))
15888 exit (1);
15889 fprintf (f, "%lu\n", i);
15890 }
15891 exit (ferror (f) || fclose (f) != 0);
15892
15893 ;
15894 return 0;
15895}
15896_ACEOF
15897rm -f conftest$ac_exeext
15898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15899 (eval $ac_link) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; }; then
15908 ac_cv_sizeof_char=`cat conftest.val`
15909else
15910 echo "$as_me: program exited with status $ac_status" >&5
15911echo "$as_me: failed program was:" >&5
15912sed 's/^/| /' conftest.$ac_ext >&5
15913
15914( exit $ac_status )
15915{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15916See \`config.log' for more details." >&5
15917echo "$as_me: error: cannot compute sizeof (char), 77
15918See \`config.log' for more details." >&2;}
15919 { (exit 1); exit 1; }; }
15920fi
ac1cb8d3 15921rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15922fi
15923fi
15924rm -f conftest.val
15925else
15926 ac_cv_sizeof_char=0
15927fi
15928fi
15929echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15930echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15931cat >>confdefs.h <<_ACEOF
15932#define SIZEOF_CHAR $ac_cv_sizeof_char
15933_ACEOF
15934
15935
15936echo "$as_me:$LINENO: checking for short" >&5
15937echo $ECHO_N "checking for short... $ECHO_C" >&6
15938if test "${ac_cv_type_short+set}" = set; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15940else
15941 cat >conftest.$ac_ext <<_ACEOF
15942/* confdefs.h. */
15943_ACEOF
15944cat confdefs.h >>conftest.$ac_ext
15945cat >>conftest.$ac_ext <<_ACEOF
15946/* end confdefs.h. */
15947$ac_includes_default
15948int
15949main ()
15950{
15951if ((short *) 0)
15952 return 0;
15953if (sizeof (short))
15954 return 0;
15955 ;
15956 return 0;
15957}
15958_ACEOF
15959rm -f conftest.$ac_objext
15960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15961 (eval $ac_compile) 2>conftest.er1
a848cd7e 15962 ac_status=$?
ac1cb8d3
VS
15963 grep -v '^ *+' conftest.er1 >conftest.err
15964 rm -f conftest.er1
15965 cat conftest.err >&5
a848cd7e
SC
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
fb00f58d
JS
15968 { ac_try='test -z "$ac_c_werror_flag"
15969 || test ! -s conftest.err'
ac1cb8d3
VS
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 ac_cv_type_short=yes
15982else
15983 echo "$as_me: failed program was:" >&5
15984sed 's/^/| /' conftest.$ac_ext >&5
15985
15986ac_cv_type_short=no
15987fi
ac1cb8d3 15988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15989fi
15990echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15991echo "${ECHO_T}$ac_cv_type_short" >&6
15992
15993echo "$as_me:$LINENO: checking size of short" >&5
15994echo $ECHO_N "checking size of short... $ECHO_C" >&6
15995if test "${ac_cv_sizeof_short+set}" = set; then
15996 echo $ECHO_N "(cached) $ECHO_C" >&6
15997else
15998 if test "$ac_cv_type_short" = yes; then
15999 # The cast to unsigned long works around a bug in the HP C Compiler
16000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16002 # This bug is HP SR number 8606223364.
16003 if test "$cross_compiling" = yes; then
16004 # Depending upon the size, compute the lo and hi bounds.
16005cat >conftest.$ac_ext <<_ACEOF
16006/* confdefs.h. */
16007_ACEOF
16008cat confdefs.h >>conftest.$ac_ext
16009cat >>conftest.$ac_ext <<_ACEOF
16010/* end confdefs.h. */
16011$ac_includes_default
16012int
16013main ()
16014{
16015static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16016test_array [0] = 0
16017
16018 ;
16019 return 0;
16020}
16021_ACEOF
16022rm -f conftest.$ac_objext
16023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16024 (eval $ac_compile) 2>conftest.er1
a848cd7e 16025 ac_status=$?
ac1cb8d3
VS
16026 grep -v '^ *+' conftest.er1 >conftest.err
16027 rm -f conftest.er1
16028 cat conftest.err >&5
a848cd7e
SC
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } &&
fb00f58d
JS
16031 { ac_try='test -z "$ac_c_werror_flag"
16032 || test ! -s conftest.err'
ac1cb8d3
VS
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; } &&
16038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_lo=0 ac_mid=0
16045 while :; do
16046 cat >conftest.$ac_ext <<_ACEOF
16047/* confdefs.h. */
16048_ACEOF
16049cat confdefs.h >>conftest.$ac_ext
16050cat >>conftest.$ac_ext <<_ACEOF
16051/* end confdefs.h. */
16052$ac_includes_default
16053int
16054main ()
16055{
16056static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16057test_array [0] = 0
16058
16059 ;
16060 return 0;
16061}
16062_ACEOF
16063rm -f conftest.$ac_objext
16064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16065 (eval $ac_compile) 2>conftest.er1
a848cd7e 16066 ac_status=$?
ac1cb8d3
VS
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
a848cd7e
SC
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
fb00f58d
JS
16072 { ac_try='test -z "$ac_c_werror_flag"
16073 || test ! -s conftest.err'
ac1cb8d3
VS
16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; } &&
16079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; }; then
16085 ac_hi=$ac_mid; break
16086else
16087 echo "$as_me: failed program was:" >&5
16088sed 's/^/| /' conftest.$ac_ext >&5
16089
16090ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16091 if test $ac_lo -le $ac_mid; then
16092 ac_lo= ac_hi=
16093 break
16094 fi
16095 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16096fi
ac1cb8d3 16097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16098 done
16099else
16100 echo "$as_me: failed program was:" >&5
16101sed 's/^/| /' conftest.$ac_ext >&5
16102
16103cat >conftest.$ac_ext <<_ACEOF
16104/* confdefs.h. */
16105_ACEOF
16106cat confdefs.h >>conftest.$ac_ext
16107cat >>conftest.$ac_ext <<_ACEOF
16108/* end confdefs.h. */
16109$ac_includes_default
16110int
16111main ()
16112{
16113static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16114test_array [0] = 0
16115
16116 ;
16117 return 0;
16118}
16119_ACEOF
16120rm -f conftest.$ac_objext
16121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16122 (eval $ac_compile) 2>conftest.er1
a848cd7e 16123 ac_status=$?
ac1cb8d3
VS
16124 grep -v '^ *+' conftest.er1 >conftest.err
16125 rm -f conftest.er1
16126 cat conftest.err >&5
a848cd7e
SC
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } &&
fb00f58d
JS
16129 { ac_try='test -z "$ac_c_werror_flag"
16130 || test ! -s conftest.err'
ac1cb8d3
VS
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; } &&
16136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; }; then
16142 ac_hi=-1 ac_mid=-1
16143 while :; do
16144 cat >conftest.$ac_ext <<_ACEOF
16145/* confdefs.h. */
16146_ACEOF
16147cat confdefs.h >>conftest.$ac_ext
16148cat >>conftest.$ac_ext <<_ACEOF
16149/* end confdefs.h. */
16150$ac_includes_default
16151int
16152main ()
16153{
16154static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16155test_array [0] = 0
16156
16157 ;
16158 return 0;
16159}
16160_ACEOF
16161rm -f conftest.$ac_objext
16162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16163 (eval $ac_compile) 2>conftest.er1
a848cd7e 16164 ac_status=$?
ac1cb8d3
VS
16165 grep -v '^ *+' conftest.er1 >conftest.err
16166 rm -f conftest.er1
16167 cat conftest.err >&5
a848cd7e
SC
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } &&
fb00f58d
JS
16170 { ac_try='test -z "$ac_c_werror_flag"
16171 || test ! -s conftest.err'
ac1cb8d3
VS
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 ac_lo=$ac_mid; break
16184else
16185 echo "$as_me: failed program was:" >&5
16186sed 's/^/| /' conftest.$ac_ext >&5
16187
16188ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16189 if test $ac_mid -le $ac_hi; then
16190 ac_lo= ac_hi=
16191 break
16192 fi
16193 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16194fi
ac1cb8d3 16195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16196 done
16197else
16198 echo "$as_me: failed program was:" >&5
16199sed 's/^/| /' conftest.$ac_ext >&5
16200
16201ac_lo= ac_hi=
16202fi
ac1cb8d3 16203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16204fi
ac1cb8d3 16205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16206# Binary search between lo and hi bounds.
16207while test "x$ac_lo" != "x$ac_hi"; do
16208 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16209 cat >conftest.$ac_ext <<_ACEOF
16210/* confdefs.h. */
16211_ACEOF
16212cat confdefs.h >>conftest.$ac_ext
16213cat >>conftest.$ac_ext <<_ACEOF
16214/* end confdefs.h. */
16215$ac_includes_default
16216int
16217main ()
16218{
16219static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16220test_array [0] = 0
16221
16222 ;
16223 return 0;
16224}
16225_ACEOF
16226rm -f conftest.$ac_objext
16227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16228 (eval $ac_compile) 2>conftest.er1
a848cd7e 16229 ac_status=$?
ac1cb8d3
VS
16230 grep -v '^ *+' conftest.er1 >conftest.err
16231 rm -f conftest.er1
16232 cat conftest.err >&5
a848cd7e
SC
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
fb00f58d
JS
16235 { ac_try='test -z "$ac_c_werror_flag"
16236 || test ! -s conftest.err'
ac1cb8d3
VS
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16239 ac_status=$?
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; } &&
16242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248 ac_hi=$ac_mid
16249else
16250 echo "$as_me: failed program was:" >&5
16251sed 's/^/| /' conftest.$ac_ext >&5
16252
16253ac_lo=`expr '(' $ac_mid ')' + 1`
16254fi
ac1cb8d3 16255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16256done
16257case $ac_lo in
16258?*) ac_cv_sizeof_short=$ac_lo;;
16259'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16260See \`config.log' for more details." >&5
16261echo "$as_me: error: cannot compute sizeof (short), 77
16262See \`config.log' for more details." >&2;}
16263 { (exit 1); exit 1; }; } ;;
16264esac
16265else
16266 if test "$cross_compiling" = yes; then
fb00f58d
JS
16267 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16268See \`config.log' for more details." >&5
16269echo "$as_me: error: cannot run test program while cross compiling
16270See \`config.log' for more details." >&2;}
a848cd7e
SC
16271 { (exit 1); exit 1; }; }
16272else
16273 cat >conftest.$ac_ext <<_ACEOF
16274/* confdefs.h. */
16275_ACEOF
16276cat confdefs.h >>conftest.$ac_ext
16277cat >>conftest.$ac_ext <<_ACEOF
16278/* end confdefs.h. */
16279$ac_includes_default
16280long longval () { return (long) (sizeof (short)); }
16281unsigned long ulongval () { return (long) (sizeof (short)); }
16282#include <stdio.h>
16283#include <stdlib.h>
16284int
16285main ()
16286{
16287
16288 FILE *f = fopen ("conftest.val", "w");
16289 if (! f)
16290 exit (1);
16291 if (((long) (sizeof (short))) < 0)
16292 {
16293 long i = longval ();
16294 if (i != ((long) (sizeof (short))))
16295 exit (1);
16296 fprintf (f, "%ld\n", i);
16297 }
16298 else
16299 {
16300 unsigned long i = ulongval ();
16301 if (i != ((long) (sizeof (short))))
16302 exit (1);
16303 fprintf (f, "%lu\n", i);
16304 }
16305 exit (ferror (f) || fclose (f) != 0);
16306
16307 ;
16308 return 0;
16309}
16310_ACEOF
16311rm -f conftest$ac_exeext
16312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16313 (eval $ac_link) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 ac_cv_sizeof_short=`cat conftest.val`
16323else
16324 echo "$as_me: program exited with status $ac_status" >&5
16325echo "$as_me: failed program was:" >&5
16326sed 's/^/| /' conftest.$ac_ext >&5
16327
16328( exit $ac_status )
16329{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16330See \`config.log' for more details." >&5
16331echo "$as_me: error: cannot compute sizeof (short), 77
16332See \`config.log' for more details." >&2;}
16333 { (exit 1); exit 1; }; }
16334fi
ac1cb8d3 16335rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16336fi
16337fi
16338rm -f conftest.val
16339else
16340 ac_cv_sizeof_short=0
16341fi
16342fi
16343echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16344echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16345cat >>confdefs.h <<_ACEOF
16346#define SIZEOF_SHORT $ac_cv_sizeof_short
16347_ACEOF
16348
16349
16350echo "$as_me:$LINENO: checking for void *" >&5
16351echo $ECHO_N "checking for void *... $ECHO_C" >&6
16352if test "${ac_cv_type_void_p+set}" = set; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16354else
16355 cat >conftest.$ac_ext <<_ACEOF
16356/* confdefs.h. */
16357_ACEOF
16358cat confdefs.h >>conftest.$ac_ext
16359cat >>conftest.$ac_ext <<_ACEOF
16360/* end confdefs.h. */
16361$ac_includes_default
16362int
16363main ()
16364{
16365if ((void * *) 0)
16366 return 0;
16367if (sizeof (void *))
16368 return 0;
16369 ;
16370 return 0;
16371}
16372_ACEOF
16373rm -f conftest.$ac_objext
16374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16375 (eval $ac_compile) 2>conftest.er1
a848cd7e 16376 ac_status=$?
ac1cb8d3
VS
16377 grep -v '^ *+' conftest.er1 >conftest.err
16378 rm -f conftest.er1
16379 cat conftest.err >&5
a848cd7e
SC
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } &&
fb00f58d
JS
16382 { ac_try='test -z "$ac_c_werror_flag"
16383 || test ! -s conftest.err'
ac1cb8d3
VS
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; } &&
16389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16392 ac_status=$?
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16395 ac_cv_type_void_p=yes
16396else
16397 echo "$as_me: failed program was:" >&5
16398sed 's/^/| /' conftest.$ac_ext >&5
16399
16400ac_cv_type_void_p=no
16401fi
ac1cb8d3 16402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16403fi
16404echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16405echo "${ECHO_T}$ac_cv_type_void_p" >&6
16406
16407echo "$as_me:$LINENO: checking size of void *" >&5
16408echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16409if test "${ac_cv_sizeof_void_p+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411else
16412 if test "$ac_cv_type_void_p" = yes; then
16413 # The cast to unsigned long works around a bug in the HP C Compiler
16414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16416 # This bug is HP SR number 8606223364.
16417 if test "$cross_compiling" = yes; then
16418 # Depending upon the size, compute the lo and hi bounds.
16419cat >conftest.$ac_ext <<_ACEOF
16420/* confdefs.h. */
16421_ACEOF
16422cat confdefs.h >>conftest.$ac_ext
16423cat >>conftest.$ac_ext <<_ACEOF
16424/* end confdefs.h. */
16425$ac_includes_default
16426int
16427main ()
16428{
16429static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16430test_array [0] = 0
16431
16432 ;
16433 return 0;
16434}
16435_ACEOF
16436rm -f conftest.$ac_objext
16437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16438 (eval $ac_compile) 2>conftest.er1
a848cd7e 16439 ac_status=$?
ac1cb8d3
VS
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
a848cd7e
SC
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
fb00f58d
JS
16445 { ac_try='test -z "$ac_c_werror_flag"
16446 || test ! -s conftest.err'
ac1cb8d3
VS
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_lo=0 ac_mid=0
16459 while :; do
16460 cat >conftest.$ac_ext <<_ACEOF
16461/* confdefs.h. */
16462_ACEOF
16463cat confdefs.h >>conftest.$ac_ext
16464cat >>conftest.$ac_ext <<_ACEOF
16465/* end confdefs.h. */
16466$ac_includes_default
16467int
16468main ()
16469{
16470static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16471test_array [0] = 0
16472
16473 ;
16474 return 0;
16475}
16476_ACEOF
16477rm -f conftest.$ac_objext
16478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16479 (eval $ac_compile) 2>conftest.er1
a848cd7e 16480 ac_status=$?
ac1cb8d3
VS
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
a848cd7e
SC
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
fb00f58d
JS
16486 { ac_try='test -z "$ac_c_werror_flag"
16487 || test ! -s conftest.err'
ac1cb8d3
VS
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16496 ac_status=$?
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 ac_hi=$ac_mid; break
16500else
16501 echo "$as_me: failed program was:" >&5
16502sed 's/^/| /' conftest.$ac_ext >&5
16503
16504ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16505 if test $ac_lo -le $ac_mid; then
16506 ac_lo= ac_hi=
16507 break
16508 fi
16509 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16510fi
ac1cb8d3 16511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16512 done
16513else
16514 echo "$as_me: failed program was:" >&5
16515sed 's/^/| /' conftest.$ac_ext >&5
16516
16517cat >conftest.$ac_ext <<_ACEOF
16518/* confdefs.h. */
16519_ACEOF
16520cat confdefs.h >>conftest.$ac_ext
16521cat >>conftest.$ac_ext <<_ACEOF
16522/* end confdefs.h. */
16523$ac_includes_default
16524int
16525main ()
16526{
16527static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16528test_array [0] = 0
16529
16530 ;
16531 return 0;
16532}
16533_ACEOF
16534rm -f conftest.$ac_objext
16535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16536 (eval $ac_compile) 2>conftest.er1
a848cd7e 16537 ac_status=$?
ac1cb8d3
VS
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
a848cd7e
SC
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
fb00f58d
JS
16543 { ac_try='test -z "$ac_c_werror_flag"
16544 || test ! -s conftest.err'
ac1cb8d3
VS
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; } &&
16550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16553 ac_status=$?
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; }; then
16556 ac_hi=-1 ac_mid=-1
16557 while :; do
16558 cat >conftest.$ac_ext <<_ACEOF
16559/* confdefs.h. */
16560_ACEOF
16561cat confdefs.h >>conftest.$ac_ext
16562cat >>conftest.$ac_ext <<_ACEOF
16563/* end confdefs.h. */
16564$ac_includes_default
16565int
16566main ()
16567{
16568static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16569test_array [0] = 0
16570
16571 ;
16572 return 0;
16573}
16574_ACEOF
16575rm -f conftest.$ac_objext
16576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16577 (eval $ac_compile) 2>conftest.er1
a848cd7e 16578 ac_status=$?
ac1cb8d3
VS
16579 grep -v '^ *+' conftest.er1 >conftest.err
16580 rm -f conftest.er1
16581 cat conftest.err >&5
a848cd7e
SC
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } &&
fb00f58d
JS
16584 { ac_try='test -z "$ac_c_werror_flag"
16585 || test ! -s conftest.err'
ac1cb8d3
VS
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16588 ac_status=$?
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; } &&
16591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16594 ac_status=$?
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_lo=$ac_mid; break
16598else
16599 echo "$as_me: failed program was:" >&5
16600sed 's/^/| /' conftest.$ac_ext >&5
16601
16602ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16603 if test $ac_mid -le $ac_hi; then
16604 ac_lo= ac_hi=
16605 break
16606 fi
16607 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16608fi
ac1cb8d3 16609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16610 done
16611else
16612 echo "$as_me: failed program was:" >&5
16613sed 's/^/| /' conftest.$ac_ext >&5
16614
16615ac_lo= ac_hi=
16616fi
ac1cb8d3 16617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16618fi
ac1cb8d3 16619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16620# Binary search between lo and hi bounds.
16621while test "x$ac_lo" != "x$ac_hi"; do
16622 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16623 cat >conftest.$ac_ext <<_ACEOF
16624/* confdefs.h. */
16625_ACEOF
16626cat confdefs.h >>conftest.$ac_ext
16627cat >>conftest.$ac_ext <<_ACEOF
16628/* end confdefs.h. */
16629$ac_includes_default
16630int
16631main ()
16632{
16633static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16634test_array [0] = 0
16635
16636 ;
16637 return 0;
16638}
16639_ACEOF
16640rm -f conftest.$ac_objext
16641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16642 (eval $ac_compile) 2>conftest.er1
a848cd7e 16643 ac_status=$?
ac1cb8d3
VS
16644 grep -v '^ *+' conftest.er1 >conftest.err
16645 rm -f conftest.er1
16646 cat conftest.err >&5
a848cd7e
SC
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
fb00f58d
JS
16649 { ac_try='test -z "$ac_c_werror_flag"
16650 || test ! -s conftest.err'
ac1cb8d3
VS
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ac_hi=$ac_mid
16663else
16664 echo "$as_me: failed program was:" >&5
16665sed 's/^/| /' conftest.$ac_ext >&5
16666
16667ac_lo=`expr '(' $ac_mid ')' + 1`
16668fi
ac1cb8d3 16669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16670done
16671case $ac_lo in
16672?*) ac_cv_sizeof_void_p=$ac_lo;;
16673'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16674See \`config.log' for more details." >&5
16675echo "$as_me: error: cannot compute sizeof (void *), 77
16676See \`config.log' for more details." >&2;}
16677 { (exit 1); exit 1; }; } ;;
16678esac
16679else
16680 if test "$cross_compiling" = yes; then
fb00f58d
JS
16681 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16682See \`config.log' for more details." >&5
16683echo "$as_me: error: cannot run test program while cross compiling
16684See \`config.log' for more details." >&2;}
a848cd7e
SC
16685 { (exit 1); exit 1; }; }
16686else
16687 cat >conftest.$ac_ext <<_ACEOF
16688/* confdefs.h. */
16689_ACEOF
16690cat confdefs.h >>conftest.$ac_ext
16691cat >>conftest.$ac_ext <<_ACEOF
16692/* end confdefs.h. */
16693$ac_includes_default
16694long longval () { return (long) (sizeof (void *)); }
16695unsigned long ulongval () { return (long) (sizeof (void *)); }
16696#include <stdio.h>
16697#include <stdlib.h>
16698int
16699main ()
16700{
16701
16702 FILE *f = fopen ("conftest.val", "w");
16703 if (! f)
16704 exit (1);
16705 if (((long) (sizeof (void *))) < 0)
16706 {
16707 long i = longval ();
16708 if (i != ((long) (sizeof (void *))))
16709 exit (1);
16710 fprintf (f, "%ld\n", i);
16711 }
16712 else
16713 {
16714 unsigned long i = ulongval ();
16715 if (i != ((long) (sizeof (void *))))
16716 exit (1);
16717 fprintf (f, "%lu\n", i);
16718 }
16719 exit (ferror (f) || fclose (f) != 0);
16720
16721 ;
16722 return 0;
16723}
16724_ACEOF
16725rm -f conftest$ac_exeext
16726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16727 (eval $ac_link) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_cv_sizeof_void_p=`cat conftest.val`
16737else
16738 echo "$as_me: program exited with status $ac_status" >&5
16739echo "$as_me: failed program was:" >&5
16740sed 's/^/| /' conftest.$ac_ext >&5
16741
16742( exit $ac_status )
16743{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16744See \`config.log' for more details." >&5
16745echo "$as_me: error: cannot compute sizeof (void *), 77
16746See \`config.log' for more details." >&2;}
16747 { (exit 1); exit 1; }; }
16748fi
ac1cb8d3 16749rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16750fi
16751fi
16752rm -f conftest.val
16753else
16754 ac_cv_sizeof_void_p=0
16755fi
16756fi
16757echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16758echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16759cat >>confdefs.h <<_ACEOF
16760#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16761_ACEOF
16762
16763
16764echo "$as_me:$LINENO: checking for int" >&5
16765echo $ECHO_N "checking for int... $ECHO_C" >&6
16766if test "${ac_cv_type_int+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16768else
16769 cat >conftest.$ac_ext <<_ACEOF
16770/* confdefs.h. */
16771_ACEOF
16772cat confdefs.h >>conftest.$ac_ext
16773cat >>conftest.$ac_ext <<_ACEOF
16774/* end confdefs.h. */
16775$ac_includes_default
16776int
16777main ()
16778{
16779if ((int *) 0)
16780 return 0;
16781if (sizeof (int))
16782 return 0;
16783 ;
16784 return 0;
16785}
16786_ACEOF
16787rm -f conftest.$ac_objext
16788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16789 (eval $ac_compile) 2>conftest.er1
a848cd7e 16790 ac_status=$?
ac1cb8d3
VS
16791 grep -v '^ *+' conftest.er1 >conftest.err
16792 rm -f conftest.er1
16793 cat conftest.err >&5
a848cd7e
SC
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
fb00f58d
JS
16796 { ac_try='test -z "$ac_c_werror_flag"
16797 || test ! -s conftest.err'
ac1cb8d3
VS
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 ac_cv_type_int=yes
16810else
16811 echo "$as_me: failed program was:" >&5
16812sed 's/^/| /' conftest.$ac_ext >&5
16813
16814ac_cv_type_int=no
16815fi
ac1cb8d3 16816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16817fi
16818echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16819echo "${ECHO_T}$ac_cv_type_int" >&6
16820
16821echo "$as_me:$LINENO: checking size of int" >&5
16822echo $ECHO_N "checking size of int... $ECHO_C" >&6
16823if test "${ac_cv_sizeof_int+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825else
16826 if test "$ac_cv_type_int" = yes; then
16827 # The cast to unsigned long works around a bug in the HP C Compiler
16828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16830 # This bug is HP SR number 8606223364.
16831 if test "$cross_compiling" = yes; then
16832 # Depending upon the size, compute the lo and hi bounds.
16833cat >conftest.$ac_ext <<_ACEOF
16834/* confdefs.h. */
16835_ACEOF
16836cat confdefs.h >>conftest.$ac_ext
16837cat >>conftest.$ac_ext <<_ACEOF
16838/* end confdefs.h. */
16839$ac_includes_default
16840int
16841main ()
16842{
16843static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16844test_array [0] = 0
16845
16846 ;
16847 return 0;
16848}
16849_ACEOF
16850rm -f conftest.$ac_objext
16851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16852 (eval $ac_compile) 2>conftest.er1
a848cd7e 16853 ac_status=$?
ac1cb8d3
VS
16854 grep -v '^ *+' conftest.er1 >conftest.err
16855 rm -f conftest.er1
16856 cat conftest.err >&5
a848cd7e
SC
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
fb00f58d
JS
16859 { ac_try='test -z "$ac_c_werror_flag"
16860 || test ! -s conftest.err'
ac1cb8d3
VS
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 ac_lo=0 ac_mid=0
16873 while :; do
16874 cat >conftest.$ac_ext <<_ACEOF
16875/* confdefs.h. */
16876_ACEOF
16877cat confdefs.h >>conftest.$ac_ext
16878cat >>conftest.$ac_ext <<_ACEOF
16879/* end confdefs.h. */
16880$ac_includes_default
16881int
16882main ()
16883{
16884static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16885test_array [0] = 0
16886
16887 ;
16888 return 0;
16889}
16890_ACEOF
16891rm -f conftest.$ac_objext
16892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16893 (eval $ac_compile) 2>conftest.er1
a848cd7e 16894 ac_status=$?
ac1cb8d3
VS
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
a848cd7e
SC
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } &&
fb00f58d
JS
16900 { ac_try='test -z "$ac_c_werror_flag"
16901 || test ! -s conftest.err'
ac1cb8d3
VS
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; } &&
16907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_hi=$ac_mid; break
16914else
16915 echo "$as_me: failed program was:" >&5
16916sed 's/^/| /' conftest.$ac_ext >&5
16917
16918ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16919 if test $ac_lo -le $ac_mid; then
16920 ac_lo= ac_hi=
16921 break
16922 fi
16923 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16924fi
ac1cb8d3 16925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16926 done
16927else
16928 echo "$as_me: failed program was:" >&5
16929sed 's/^/| /' conftest.$ac_ext >&5
16930
16931cat >conftest.$ac_ext <<_ACEOF
16932/* confdefs.h. */
16933_ACEOF
16934cat confdefs.h >>conftest.$ac_ext
16935cat >>conftest.$ac_ext <<_ACEOF
16936/* end confdefs.h. */
16937$ac_includes_default
16938int
16939main ()
16940{
16941static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16942test_array [0] = 0
16943
16944 ;
16945 return 0;
16946}
16947_ACEOF
16948rm -f conftest.$ac_objext
16949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16950 (eval $ac_compile) 2>conftest.er1
a848cd7e 16951 ac_status=$?
ac1cb8d3
VS
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -f conftest.er1
16954 cat conftest.err >&5
a848cd7e
SC
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } &&
fb00f58d
JS
16957 { ac_try='test -z "$ac_c_werror_flag"
16958 || test ! -s conftest.err'
ac1cb8d3
VS
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; } &&
16964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 ac_hi=-1 ac_mid=-1
16971 while :; do
16972 cat >conftest.$ac_ext <<_ACEOF
16973/* confdefs.h. */
16974_ACEOF
16975cat confdefs.h >>conftest.$ac_ext
16976cat >>conftest.$ac_ext <<_ACEOF
16977/* end confdefs.h. */
16978$ac_includes_default
16979int
16980main ()
16981{
16982static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16983test_array [0] = 0
16984
16985 ;
16986 return 0;
16987}
16988_ACEOF
16989rm -f conftest.$ac_objext
16990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16991 (eval $ac_compile) 2>conftest.er1
a848cd7e 16992 ac_status=$?
ac1cb8d3
VS
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
a848cd7e
SC
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
fb00f58d
JS
16998 { ac_try='test -z "$ac_c_werror_flag"
16999 || test ! -s conftest.err'
ac1cb8d3
VS
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17011 ac_lo=$ac_mid; break
17012else
17013 echo "$as_me: failed program was:" >&5
17014sed 's/^/| /' conftest.$ac_ext >&5
17015
17016ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17017 if test $ac_mid -le $ac_hi; then
17018 ac_lo= ac_hi=
17019 break
17020 fi
17021 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17022fi
ac1cb8d3 17023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17024 done
17025else
17026 echo "$as_me: failed program was:" >&5
17027sed 's/^/| /' conftest.$ac_ext >&5
17028
17029ac_lo= ac_hi=
17030fi
ac1cb8d3 17031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17032fi
ac1cb8d3 17033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17034# Binary search between lo and hi bounds.
17035while test "x$ac_lo" != "x$ac_hi"; do
17036 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17037 cat >conftest.$ac_ext <<_ACEOF
17038/* confdefs.h. */
17039_ACEOF
17040cat confdefs.h >>conftest.$ac_ext
17041cat >>conftest.$ac_ext <<_ACEOF
17042/* end confdefs.h. */
17043$ac_includes_default
17044int
17045main ()
17046{
17047static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17048test_array [0] = 0
17049
17050 ;
17051 return 0;
17052}
17053_ACEOF
17054rm -f conftest.$ac_objext
17055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17056 (eval $ac_compile) 2>conftest.er1
a848cd7e 17057 ac_status=$?
ac1cb8d3
VS
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
17060 cat conftest.err >&5
a848cd7e
SC
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } &&
fb00f58d
JS
17063 { ac_try='test -z "$ac_c_werror_flag"
17064 || test ! -s conftest.err'
ac1cb8d3
VS
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; } &&
17070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17076 ac_hi=$ac_mid
17077else
17078 echo "$as_me: failed program was:" >&5
17079sed 's/^/| /' conftest.$ac_ext >&5
17080
17081ac_lo=`expr '(' $ac_mid ')' + 1`
17082fi
ac1cb8d3 17083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17084done
17085case $ac_lo in
17086?*) ac_cv_sizeof_int=$ac_lo;;
17087'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17088See \`config.log' for more details." >&5
17089echo "$as_me: error: cannot compute sizeof (int), 77
17090See \`config.log' for more details." >&2;}
17091 { (exit 1); exit 1; }; } ;;
17092esac
17093else
17094 if test "$cross_compiling" = yes; then
fb00f58d
JS
17095 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17096See \`config.log' for more details." >&5
17097echo "$as_me: error: cannot run test program while cross compiling
17098See \`config.log' for more details." >&2;}
a848cd7e
SC
17099 { (exit 1); exit 1; }; }
17100else
17101 cat >conftest.$ac_ext <<_ACEOF
17102/* confdefs.h. */
17103_ACEOF
17104cat confdefs.h >>conftest.$ac_ext
17105cat >>conftest.$ac_ext <<_ACEOF
17106/* end confdefs.h. */
17107$ac_includes_default
17108long longval () { return (long) (sizeof (int)); }
17109unsigned long ulongval () { return (long) (sizeof (int)); }
17110#include <stdio.h>
17111#include <stdlib.h>
17112int
17113main ()
17114{
17115
17116 FILE *f = fopen ("conftest.val", "w");
17117 if (! f)
17118 exit (1);
17119 if (((long) (sizeof (int))) < 0)
17120 {
17121 long i = longval ();
17122 if (i != ((long) (sizeof (int))))
17123 exit (1);
17124 fprintf (f, "%ld\n", i);
17125 }
17126 else
17127 {
17128 unsigned long i = ulongval ();
17129 if (i != ((long) (sizeof (int))))
17130 exit (1);
17131 fprintf (f, "%lu\n", i);
17132 }
17133 exit (ferror (f) || fclose (f) != 0);
17134
17135 ;
17136 return 0;
17137}
17138_ACEOF
17139rm -f conftest$ac_exeext
17140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17141 (eval $ac_link) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; }; then
17150 ac_cv_sizeof_int=`cat conftest.val`
17151else
17152 echo "$as_me: program exited with status $ac_status" >&5
17153echo "$as_me: failed program was:" >&5
17154sed 's/^/| /' conftest.$ac_ext >&5
17155
17156( exit $ac_status )
17157{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17158See \`config.log' for more details." >&5
17159echo "$as_me: error: cannot compute sizeof (int), 77
17160See \`config.log' for more details." >&2;}
17161 { (exit 1); exit 1; }; }
17162fi
ac1cb8d3 17163rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17164fi
17165fi
17166rm -f conftest.val
17167else
17168 ac_cv_sizeof_int=0
17169fi
17170fi
17171echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17172echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17173cat >>confdefs.h <<_ACEOF
17174#define SIZEOF_INT $ac_cv_sizeof_int
17175_ACEOF
17176
17177
17178echo "$as_me:$LINENO: checking for long" >&5
17179echo $ECHO_N "checking for long... $ECHO_C" >&6
17180if test "${ac_cv_type_long+set}" = set; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17182else
17183 cat >conftest.$ac_ext <<_ACEOF
17184/* confdefs.h. */
17185_ACEOF
17186cat confdefs.h >>conftest.$ac_ext
17187cat >>conftest.$ac_ext <<_ACEOF
17188/* end confdefs.h. */
17189$ac_includes_default
17190int
17191main ()
17192{
17193if ((long *) 0)
17194 return 0;
17195if (sizeof (long))
17196 return 0;
17197 ;
17198 return 0;
17199}
17200_ACEOF
17201rm -f conftest.$ac_objext
17202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17203 (eval $ac_compile) 2>conftest.er1
a848cd7e 17204 ac_status=$?
ac1cb8d3
VS
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
a848cd7e
SC
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
fb00f58d
JS
17210 { ac_try='test -z "$ac_c_werror_flag"
17211 || test ! -s conftest.err'
ac1cb8d3
VS
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 ac_cv_type_long=yes
17224else
17225 echo "$as_me: failed program was:" >&5
17226sed 's/^/| /' conftest.$ac_ext >&5
17227
17228ac_cv_type_long=no
17229fi
ac1cb8d3 17230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17231fi
17232echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17233echo "${ECHO_T}$ac_cv_type_long" >&6
17234
17235echo "$as_me:$LINENO: checking size of long" >&5
17236echo $ECHO_N "checking size of long... $ECHO_C" >&6
17237if test "${ac_cv_sizeof_long+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17239else
17240 if test "$ac_cv_type_long" = yes; then
17241 # The cast to unsigned long works around a bug in the HP C Compiler
17242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17244 # This bug is HP SR number 8606223364.
17245 if test "$cross_compiling" = yes; then
17246 # Depending upon the size, compute the lo and hi bounds.
17247cat >conftest.$ac_ext <<_ACEOF
17248/* confdefs.h. */
17249_ACEOF
17250cat confdefs.h >>conftest.$ac_ext
17251cat >>conftest.$ac_ext <<_ACEOF
17252/* end confdefs.h. */
17253$ac_includes_default
17254int
17255main ()
17256{
17257static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17258test_array [0] = 0
17259
17260 ;
17261 return 0;
17262}
17263_ACEOF
17264rm -f conftest.$ac_objext
17265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17266 (eval $ac_compile) 2>conftest.er1
a848cd7e 17267 ac_status=$?
ac1cb8d3
VS
17268 grep -v '^ *+' conftest.er1 >conftest.err
17269 rm -f conftest.er1
17270 cat conftest.err >&5
a848cd7e
SC
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } &&
fb00f58d
JS
17273 { ac_try='test -z "$ac_c_werror_flag"
17274 || test ! -s conftest.err'
ac1cb8d3
VS
17275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276 (eval $ac_try) 2>&5
17277 ac_status=$?
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; } &&
17280 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 ac_lo=0 ac_mid=0
17287 while :; do
17288 cat >conftest.$ac_ext <<_ACEOF
17289/* confdefs.h. */
17290_ACEOF
17291cat confdefs.h >>conftest.$ac_ext
17292cat >>conftest.$ac_ext <<_ACEOF
17293/* end confdefs.h. */
17294$ac_includes_default
17295int
17296main ()
17297{
17298static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17299test_array [0] = 0
17300
17301 ;
17302 return 0;
17303}
17304_ACEOF
17305rm -f conftest.$ac_objext
17306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17307 (eval $ac_compile) 2>conftest.er1
a848cd7e 17308 ac_status=$?
ac1cb8d3
VS
17309 grep -v '^ *+' conftest.er1 >conftest.err
17310 rm -f conftest.er1
17311 cat conftest.err >&5
a848cd7e
SC
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } &&
fb00f58d
JS
17314 { ac_try='test -z "$ac_c_werror_flag"
17315 || test ! -s conftest.err'
ac1cb8d3
VS
17316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317 (eval $ac_try) 2>&5
17318 ac_status=$?
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; } &&
17321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_hi=$ac_mid; break
17328else
17329 echo "$as_me: failed program was:" >&5
17330sed 's/^/| /' conftest.$ac_ext >&5
17331
17332ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17333 if test $ac_lo -le $ac_mid; then
17334 ac_lo= ac_hi=
17335 break
17336 fi
17337 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17338fi
ac1cb8d3 17339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17340 done
17341else
17342 echo "$as_me: failed program was:" >&5
17343sed 's/^/| /' conftest.$ac_ext >&5
17344
17345cat >conftest.$ac_ext <<_ACEOF
17346/* confdefs.h. */
17347_ACEOF
17348cat confdefs.h >>conftest.$ac_ext
17349cat >>conftest.$ac_ext <<_ACEOF
17350/* end confdefs.h. */
17351$ac_includes_default
17352int
17353main ()
17354{
17355static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17356test_array [0] = 0
17357
17358 ;
17359 return 0;
17360}
17361_ACEOF
17362rm -f conftest.$ac_objext
17363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17364 (eval $ac_compile) 2>conftest.er1
a848cd7e 17365 ac_status=$?
ac1cb8d3
VS
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
a848cd7e
SC
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
fb00f58d
JS
17371 { ac_try='test -z "$ac_c_werror_flag"
17372 || test ! -s conftest.err'
ac1cb8d3
VS
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; } &&
17378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 ac_hi=-1 ac_mid=-1
17385 while :; do
17386 cat >conftest.$ac_ext <<_ACEOF
17387/* confdefs.h. */
17388_ACEOF
17389cat confdefs.h >>conftest.$ac_ext
17390cat >>conftest.$ac_ext <<_ACEOF
17391/* end confdefs.h. */
17392$ac_includes_default
17393int
17394main ()
17395{
17396static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17397test_array [0] = 0
17398
17399 ;
17400 return 0;
17401}
17402_ACEOF
17403rm -f conftest.$ac_objext
17404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17405 (eval $ac_compile) 2>conftest.er1
a848cd7e 17406 ac_status=$?
ac1cb8d3
VS
17407 grep -v '^ *+' conftest.er1 >conftest.err
17408 rm -f conftest.er1
17409 cat conftest.err >&5
a848cd7e
SC
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); } &&
fb00f58d
JS
17412 { ac_try='test -z "$ac_c_werror_flag"
17413 || test ! -s conftest.err'
ac1cb8d3
VS
17414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415 (eval $ac_try) 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; } &&
17419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17422 ac_status=$?
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 ac_lo=$ac_mid; break
17426else
17427 echo "$as_me: failed program was:" >&5
17428sed 's/^/| /' conftest.$ac_ext >&5
17429
17430ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17431 if test $ac_mid -le $ac_hi; then
17432 ac_lo= ac_hi=
17433 break
17434 fi
17435 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17436fi
ac1cb8d3 17437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17438 done
17439else
17440 echo "$as_me: failed program was:" >&5
17441sed 's/^/| /' conftest.$ac_ext >&5
17442
17443ac_lo= ac_hi=
17444fi
ac1cb8d3 17445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17446fi
ac1cb8d3 17447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17448# Binary search between lo and hi bounds.
17449while test "x$ac_lo" != "x$ac_hi"; do
17450 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17451 cat >conftest.$ac_ext <<_ACEOF
17452/* confdefs.h. */
17453_ACEOF
17454cat confdefs.h >>conftest.$ac_ext
17455cat >>conftest.$ac_ext <<_ACEOF
17456/* end confdefs.h. */
17457$ac_includes_default
17458int
17459main ()
17460{
17461static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17462test_array [0] = 0
17463
17464 ;
17465 return 0;
17466}
17467_ACEOF
17468rm -f conftest.$ac_objext
17469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17470 (eval $ac_compile) 2>conftest.er1
a848cd7e 17471 ac_status=$?
ac1cb8d3
VS
17472 grep -v '^ *+' conftest.er1 >conftest.err
17473 rm -f conftest.er1
17474 cat conftest.err >&5
a848cd7e
SC
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
fb00f58d
JS
17477 { ac_try='test -z "$ac_c_werror_flag"
17478 || test ! -s conftest.err'
ac1cb8d3
VS
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; }; then
17490 ac_hi=$ac_mid
17491else
17492 echo "$as_me: failed program was:" >&5
17493sed 's/^/| /' conftest.$ac_ext >&5
17494
17495ac_lo=`expr '(' $ac_mid ')' + 1`
17496fi
ac1cb8d3 17497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17498done
17499case $ac_lo in
17500?*) ac_cv_sizeof_long=$ac_lo;;
17501'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17502See \`config.log' for more details." >&5
17503echo "$as_me: error: cannot compute sizeof (long), 77
17504See \`config.log' for more details." >&2;}
17505 { (exit 1); exit 1; }; } ;;
17506esac
17507else
17508 if test "$cross_compiling" = yes; then
fb00f58d
JS
17509 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17510See \`config.log' for more details." >&5
17511echo "$as_me: error: cannot run test program while cross compiling
17512See \`config.log' for more details." >&2;}
a848cd7e
SC
17513 { (exit 1); exit 1; }; }
17514else
17515 cat >conftest.$ac_ext <<_ACEOF
17516/* confdefs.h. */
17517_ACEOF
17518cat confdefs.h >>conftest.$ac_ext
17519cat >>conftest.$ac_ext <<_ACEOF
17520/* end confdefs.h. */
17521$ac_includes_default
17522long longval () { return (long) (sizeof (long)); }
17523unsigned long ulongval () { return (long) (sizeof (long)); }
17524#include <stdio.h>
17525#include <stdlib.h>
17526int
17527main ()
17528{
17529
17530 FILE *f = fopen ("conftest.val", "w");
17531 if (! f)
17532 exit (1);
17533 if (((long) (sizeof (long))) < 0)
17534 {
17535 long i = longval ();
17536 if (i != ((long) (sizeof (long))))
17537 exit (1);
17538 fprintf (f, "%ld\n", i);
17539 }
17540 else
17541 {
17542 unsigned long i = ulongval ();
17543 if (i != ((long) (sizeof (long))))
17544 exit (1);
17545 fprintf (f, "%lu\n", i);
17546 }
17547 exit (ferror (f) || fclose (f) != 0);
17548
17549 ;
17550 return 0;
17551}
17552_ACEOF
17553rm -f conftest$ac_exeext
17554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17555 (eval $ac_link) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 ac_cv_sizeof_long=`cat conftest.val`
17565else
17566 echo "$as_me: program exited with status $ac_status" >&5
17567echo "$as_me: failed program was:" >&5
17568sed 's/^/| /' conftest.$ac_ext >&5
17569
17570( exit $ac_status )
17571{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17572See \`config.log' for more details." >&5
17573echo "$as_me: error: cannot compute sizeof (long), 77
17574See \`config.log' for more details." >&2;}
17575 { (exit 1); exit 1; }; }
17576fi
ac1cb8d3 17577rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17578fi
17579fi
17580rm -f conftest.val
17581else
17582 ac_cv_sizeof_long=0
17583fi
17584fi
17585echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17586echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17587cat >>confdefs.h <<_ACEOF
17588#define SIZEOF_LONG $ac_cv_sizeof_long
17589_ACEOF
17590
17591
17592echo "$as_me:$LINENO: checking for size_t" >&5
17593echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17594if test "${ac_cv_type_size_t+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17596else
17597 cat >conftest.$ac_ext <<_ACEOF
17598/* confdefs.h. */
17599_ACEOF
17600cat confdefs.h >>conftest.$ac_ext
17601cat >>conftest.$ac_ext <<_ACEOF
17602/* end confdefs.h. */
17603$ac_includes_default
17604int
17605main ()
17606{
17607if ((size_t *) 0)
17608 return 0;
17609if (sizeof (size_t))
17610 return 0;
17611 ;
17612 return 0;
17613}
17614_ACEOF
17615rm -f conftest.$ac_objext
17616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17617 (eval $ac_compile) 2>conftest.er1
a848cd7e 17618 ac_status=$?
ac1cb8d3
VS
17619 grep -v '^ *+' conftest.er1 >conftest.err
17620 rm -f conftest.er1
17621 cat conftest.err >&5
a848cd7e
SC
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
fb00f58d
JS
17624 { ac_try='test -z "$ac_c_werror_flag"
17625 || test ! -s conftest.err'
ac1cb8d3
VS
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17628 ac_status=$?
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637 ac_cv_type_size_t=yes
17638else
17639 echo "$as_me: failed program was:" >&5
17640sed 's/^/| /' conftest.$ac_ext >&5
17641
17642ac_cv_type_size_t=no
17643fi
ac1cb8d3 17644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17645fi
17646echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17647echo "${ECHO_T}$ac_cv_type_size_t" >&6
17648
17649echo "$as_me:$LINENO: checking size of size_t" >&5
17650echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17651if test "${ac_cv_sizeof_size_t+set}" = set; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17653else
17654 if test "$ac_cv_type_size_t" = yes; then
17655 # The cast to unsigned long works around a bug in the HP C Compiler
17656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17658 # This bug is HP SR number 8606223364.
17659 if test "$cross_compiling" = yes; then
17660 # Depending upon the size, compute the lo and hi bounds.
17661cat >conftest.$ac_ext <<_ACEOF
17662/* confdefs.h. */
17663_ACEOF
17664cat confdefs.h >>conftest.$ac_ext
17665cat >>conftest.$ac_ext <<_ACEOF
17666/* end confdefs.h. */
17667$ac_includes_default
17668int
17669main ()
17670{
17671static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17672test_array [0] = 0
17673
17674 ;
17675 return 0;
17676}
17677_ACEOF
17678rm -f conftest.$ac_objext
17679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17680 (eval $ac_compile) 2>conftest.er1
a848cd7e 17681 ac_status=$?
ac1cb8d3
VS
17682 grep -v '^ *+' conftest.er1 >conftest.err
17683 rm -f conftest.er1
17684 cat conftest.err >&5
a848cd7e
SC
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
fb00f58d
JS
17687 { ac_try='test -z "$ac_c_werror_flag"
17688 || test ! -s conftest.err'
ac1cb8d3
VS
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17691 ac_status=$?
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; } &&
17694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 ac_lo=0 ac_mid=0
17701 while :; do
17702 cat >conftest.$ac_ext <<_ACEOF
17703/* confdefs.h. */
17704_ACEOF
17705cat confdefs.h >>conftest.$ac_ext
17706cat >>conftest.$ac_ext <<_ACEOF
17707/* end confdefs.h. */
17708$ac_includes_default
17709int
17710main ()
17711{
17712static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17713test_array [0] = 0
17714
17715 ;
17716 return 0;
17717}
17718_ACEOF
17719rm -f conftest.$ac_objext
17720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17721 (eval $ac_compile) 2>conftest.er1
a848cd7e 17722 ac_status=$?
ac1cb8d3
VS
17723 grep -v '^ *+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
a848cd7e
SC
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
fb00f58d
JS
17728 { ac_try='test -z "$ac_c_werror_flag"
17729 || test ! -s conftest.err'
ac1cb8d3
VS
17730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731 (eval $ac_try) 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737 (eval $ac_try) 2>&5
17738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 ac_hi=$ac_mid; break
17742else
17743 echo "$as_me: failed program was:" >&5
17744sed 's/^/| /' conftest.$ac_ext >&5
17745
17746ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17747 if test $ac_lo -le $ac_mid; then
17748 ac_lo= ac_hi=
17749 break
17750 fi
17751 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17752fi
ac1cb8d3 17753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17754 done
17755else
17756 echo "$as_me: failed program was:" >&5
17757sed 's/^/| /' conftest.$ac_ext >&5
17758
17759cat >conftest.$ac_ext <<_ACEOF
17760/* confdefs.h. */
17761_ACEOF
17762cat confdefs.h >>conftest.$ac_ext
17763cat >>conftest.$ac_ext <<_ACEOF
17764/* end confdefs.h. */
17765$ac_includes_default
17766int
17767main ()
17768{
17769static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17770test_array [0] = 0
17771
17772 ;
17773 return 0;
17774}
17775_ACEOF
17776rm -f conftest.$ac_objext
17777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17778 (eval $ac_compile) 2>conftest.er1
a848cd7e 17779 ac_status=$?
ac1cb8d3
VS
17780 grep -v '^ *+' conftest.er1 >conftest.err
17781 rm -f conftest.er1
17782 cat conftest.err >&5
a848cd7e
SC
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
fb00f58d
JS
17785 { ac_try='test -z "$ac_c_werror_flag"
17786 || test ! -s conftest.err'
ac1cb8d3
VS
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17789 ac_status=$?
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; } &&
17792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; }; then
17798 ac_hi=-1 ac_mid=-1
17799 while :; do
17800 cat >conftest.$ac_ext <<_ACEOF
17801/* confdefs.h. */
17802_ACEOF
17803cat confdefs.h >>conftest.$ac_ext
17804cat >>conftest.$ac_ext <<_ACEOF
17805/* end confdefs.h. */
17806$ac_includes_default
17807int
17808main ()
17809{
17810static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17811test_array [0] = 0
17812
17813 ;
17814 return 0;
17815}
17816_ACEOF
17817rm -f conftest.$ac_objext
17818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17819 (eval $ac_compile) 2>conftest.er1
a848cd7e 17820 ac_status=$?
ac1cb8d3
VS
17821 grep -v '^ *+' conftest.er1 >conftest.err
17822 rm -f conftest.er1
17823 cat conftest.err >&5
a848cd7e
SC
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
fb00f58d
JS
17826 { ac_try='test -z "$ac_c_werror_flag"
17827 || test ! -s conftest.err'
ac1cb8d3
VS
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17839 ac_lo=$ac_mid; break
17840else
17841 echo "$as_me: failed program was:" >&5
17842sed 's/^/| /' conftest.$ac_ext >&5
17843
17844ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17845 if test $ac_mid -le $ac_hi; then
17846 ac_lo= ac_hi=
17847 break
17848 fi
17849 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17850fi
ac1cb8d3 17851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17852 done
17853else
17854 echo "$as_me: failed program was:" >&5
17855sed 's/^/| /' conftest.$ac_ext >&5
17856
17857ac_lo= ac_hi=
17858fi
ac1cb8d3 17859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17860fi
ac1cb8d3 17861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17862# Binary search between lo and hi bounds.
17863while test "x$ac_lo" != "x$ac_hi"; do
17864 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17865 cat >conftest.$ac_ext <<_ACEOF
17866/* confdefs.h. */
17867_ACEOF
17868cat confdefs.h >>conftest.$ac_ext
17869cat >>conftest.$ac_ext <<_ACEOF
17870/* end confdefs.h. */
17871$ac_includes_default
17872int
17873main ()
17874{
17875static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17876test_array [0] = 0
17877
17878 ;
17879 return 0;
17880}
17881_ACEOF
17882rm -f conftest.$ac_objext
17883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17884 (eval $ac_compile) 2>conftest.er1
a848cd7e 17885 ac_status=$?
ac1cb8d3
VS
17886 grep -v '^ *+' conftest.er1 >conftest.err
17887 rm -f conftest.er1
17888 cat conftest.err >&5
a848cd7e
SC
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); } &&
fb00f58d
JS
17891 { ac_try='test -z "$ac_c_werror_flag"
17892 || test ! -s conftest.err'
ac1cb8d3
VS
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; } &&
17898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; }; then
17904 ac_hi=$ac_mid
17905else
17906 echo "$as_me: failed program was:" >&5
17907sed 's/^/| /' conftest.$ac_ext >&5
17908
17909ac_lo=`expr '(' $ac_mid ')' + 1`
17910fi
ac1cb8d3 17911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17912done
17913case $ac_lo in
17914?*) ac_cv_sizeof_size_t=$ac_lo;;
17915'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17916See \`config.log' for more details." >&5
17917echo "$as_me: error: cannot compute sizeof (size_t), 77
17918See \`config.log' for more details." >&2;}
17919 { (exit 1); exit 1; }; } ;;
17920esac
17921else
17922 if test "$cross_compiling" = yes; then
fb00f58d
JS
17923 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17924See \`config.log' for more details." >&5
17925echo "$as_me: error: cannot run test program while cross compiling
17926See \`config.log' for more details." >&2;}
a848cd7e
SC
17927 { (exit 1); exit 1; }; }
17928else
17929 cat >conftest.$ac_ext <<_ACEOF
17930/* confdefs.h. */
17931_ACEOF
17932cat confdefs.h >>conftest.$ac_ext
17933cat >>conftest.$ac_ext <<_ACEOF
17934/* end confdefs.h. */
17935$ac_includes_default
17936long longval () { return (long) (sizeof (size_t)); }
17937unsigned long ulongval () { return (long) (sizeof (size_t)); }
17938#include <stdio.h>
17939#include <stdlib.h>
17940int
17941main ()
17942{
17943
17944 FILE *f = fopen ("conftest.val", "w");
17945 if (! f)
17946 exit (1);
17947 if (((long) (sizeof (size_t))) < 0)
17948 {
17949 long i = longval ();
17950 if (i != ((long) (sizeof (size_t))))
17951 exit (1);
17952 fprintf (f, "%ld\n", i);
17953 }
17954 else
17955 {
17956 unsigned long i = ulongval ();
17957 if (i != ((long) (sizeof (size_t))))
17958 exit (1);
17959 fprintf (f, "%lu\n", i);
17960 }
17961 exit (ferror (f) || fclose (f) != 0);
17962
17963 ;
17964 return 0;
17965}
17966_ACEOF
17967rm -f conftest$ac_exeext
17968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17969 (eval $ac_link) 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17975 ac_status=$?
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; }; then
17978 ac_cv_sizeof_size_t=`cat conftest.val`
17979else
17980 echo "$as_me: program exited with status $ac_status" >&5
17981echo "$as_me: failed program was:" >&5
17982sed 's/^/| /' conftest.$ac_ext >&5
17983
17984( exit $ac_status )
17985{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17986See \`config.log' for more details." >&5
17987echo "$as_me: error: cannot compute sizeof (size_t), 77
17988See \`config.log' for more details." >&2;}
17989 { (exit 1); exit 1; }; }
17990fi
ac1cb8d3 17991rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17992fi
17993fi
17994rm -f conftest.val
17995else
17996 ac_cv_sizeof_size_t=0
17997fi
17998fi
17999echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18000echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18001cat >>confdefs.h <<_ACEOF
18002#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18003_ACEOF
18004
18005
18006
18007case "${host}" in
18008 arm-*-linux* )
18009 echo "$as_me:$LINENO: checking for long long" >&5
18010echo $ECHO_N "checking for long long... $ECHO_C" >&6
18011if test "${ac_cv_type_long_long+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013else
18014 cat >conftest.$ac_ext <<_ACEOF
18015/* confdefs.h. */
18016_ACEOF
18017cat confdefs.h >>conftest.$ac_ext
18018cat >>conftest.$ac_ext <<_ACEOF
18019/* end confdefs.h. */
18020$ac_includes_default
18021int
18022main ()
18023{
18024if ((long long *) 0)
18025 return 0;
18026if (sizeof (long long))
18027 return 0;
18028 ;
18029 return 0;
18030}
18031_ACEOF
18032rm -f conftest.$ac_objext
18033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18034 (eval $ac_compile) 2>conftest.er1
a848cd7e 18035 ac_status=$?
ac1cb8d3
VS
18036 grep -v '^ *+' conftest.er1 >conftest.err
18037 rm -f conftest.er1
18038 cat conftest.err >&5
a848cd7e
SC
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
fb00f58d
JS
18041 { ac_try='test -z "$ac_c_werror_flag"
18042 || test ! -s conftest.err'
ac1cb8d3
VS
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; } &&
18048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
18054 ac_cv_type_long_long=yes
18055else
18056 echo "$as_me: failed program was:" >&5
18057sed 's/^/| /' conftest.$ac_ext >&5
18058
18059ac_cv_type_long_long=no
18060fi
ac1cb8d3 18061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18062fi
18063echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18064echo "${ECHO_T}$ac_cv_type_long_long" >&6
18065
18066echo "$as_me:$LINENO: checking size of long long" >&5
18067echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18068if test "${ac_cv_sizeof_long_long+set}" = set; then
18069 echo $ECHO_N "(cached) $ECHO_C" >&6
18070else
18071 if test "$ac_cv_type_long_long" = yes; then
18072 # The cast to unsigned long works around a bug in the HP C Compiler
18073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18075 # This bug is HP SR number 8606223364.
18076 if test "$cross_compiling" = yes; then
18077 # Depending upon the size, compute the lo and hi bounds.
18078cat >conftest.$ac_ext <<_ACEOF
18079/* confdefs.h. */
18080_ACEOF
18081cat confdefs.h >>conftest.$ac_ext
18082cat >>conftest.$ac_ext <<_ACEOF
18083/* end confdefs.h. */
18084$ac_includes_default
18085int
18086main ()
18087{
18088static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18089test_array [0] = 0
18090
18091 ;
18092 return 0;
18093}
18094_ACEOF
18095rm -f conftest.$ac_objext
18096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18097 (eval $ac_compile) 2>conftest.er1
a848cd7e 18098 ac_status=$?
ac1cb8d3
VS
18099 grep -v '^ *+' conftest.er1 >conftest.err
18100 rm -f conftest.er1
18101 cat conftest.err >&5
a848cd7e
SC
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
fb00f58d
JS
18104 { ac_try='test -z "$ac_c_werror_flag"
18105 || test ! -s conftest.err'
ac1cb8d3
VS
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 ac_lo=0 ac_mid=0
18118 while :; do
18119 cat >conftest.$ac_ext <<_ACEOF
18120/* confdefs.h. */
18121_ACEOF
18122cat confdefs.h >>conftest.$ac_ext
18123cat >>conftest.$ac_ext <<_ACEOF
18124/* end confdefs.h. */
18125$ac_includes_default
18126int
18127main ()
18128{
18129static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18130test_array [0] = 0
18131
18132 ;
18133 return 0;
18134}
18135_ACEOF
18136rm -f conftest.$ac_objext
18137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18138 (eval $ac_compile) 2>conftest.er1
a848cd7e 18139 ac_status=$?
ac1cb8d3
VS
18140 grep -v '^ *+' conftest.er1 >conftest.err
18141 rm -f conftest.er1
18142 cat conftest.err >&5
a848cd7e
SC
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); } &&
fb00f58d
JS
18145 { ac_try='test -z "$ac_c_werror_flag"
18146 || test ! -s conftest.err'
ac1cb8d3
VS
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18149 ac_status=$?
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; } &&
18152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18155 ac_status=$?
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; }; then
18158 ac_hi=$ac_mid; break
18159else
18160 echo "$as_me: failed program was:" >&5
18161sed 's/^/| /' conftest.$ac_ext >&5
18162
18163ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18164 if test $ac_lo -le $ac_mid; then
18165 ac_lo= ac_hi=
18166 break
18167 fi
18168 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18169fi
ac1cb8d3 18170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18171 done
18172else
18173 echo "$as_me: failed program was:" >&5
18174sed 's/^/| /' conftest.$ac_ext >&5
18175
18176cat >conftest.$ac_ext <<_ACEOF
18177/* confdefs.h. */
18178_ACEOF
18179cat confdefs.h >>conftest.$ac_ext
18180cat >>conftest.$ac_ext <<_ACEOF
18181/* end confdefs.h. */
18182$ac_includes_default
18183int
18184main ()
18185{
18186static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18187test_array [0] = 0
18188
18189 ;
18190 return 0;
18191}
18192_ACEOF
18193rm -f conftest.$ac_objext
18194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18195 (eval $ac_compile) 2>conftest.er1
a848cd7e 18196 ac_status=$?
ac1cb8d3
VS
18197 grep -v '^ *+' conftest.er1 >conftest.err
18198 rm -f conftest.er1
18199 cat conftest.err >&5
a848cd7e
SC
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } &&
fb00f58d
JS
18202 { ac_try='test -z "$ac_c_werror_flag"
18203 || test ! -s conftest.err'
ac1cb8d3
VS
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18206 ac_status=$?
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; } &&
18209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; }; then
18215 ac_hi=-1 ac_mid=-1
18216 while :; do
18217 cat >conftest.$ac_ext <<_ACEOF
18218/* confdefs.h. */
18219_ACEOF
18220cat confdefs.h >>conftest.$ac_ext
18221cat >>conftest.$ac_ext <<_ACEOF
18222/* end confdefs.h. */
18223$ac_includes_default
18224int
18225main ()
18226{
18227static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18228test_array [0] = 0
18229
18230 ;
18231 return 0;
18232}
18233_ACEOF
18234rm -f conftest.$ac_objext
18235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18236 (eval $ac_compile) 2>conftest.er1
a848cd7e 18237 ac_status=$?
ac1cb8d3
VS
18238 grep -v '^ *+' conftest.er1 >conftest.err
18239 rm -f conftest.er1
18240 cat conftest.err >&5
a848cd7e
SC
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
fb00f58d
JS
18243 { ac_try='test -z "$ac_c_werror_flag"
18244 || test ! -s conftest.err'
ac1cb8d3
VS
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 ac_lo=$ac_mid; break
18257else
18258 echo "$as_me: failed program was:" >&5
18259sed 's/^/| /' conftest.$ac_ext >&5
18260
18261ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18262 if test $ac_mid -le $ac_hi; then
18263 ac_lo= ac_hi=
18264 break
18265 fi
18266 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18267fi
ac1cb8d3 18268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18269 done
18270else
18271 echo "$as_me: failed program was:" >&5
18272sed 's/^/| /' conftest.$ac_ext >&5
18273
18274ac_lo= ac_hi=
18275fi
ac1cb8d3 18276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18277fi
ac1cb8d3 18278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18279# Binary search between lo and hi bounds.
18280while test "x$ac_lo" != "x$ac_hi"; do
18281 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18282 cat >conftest.$ac_ext <<_ACEOF
18283/* confdefs.h. */
18284_ACEOF
18285cat confdefs.h >>conftest.$ac_ext
18286cat >>conftest.$ac_ext <<_ACEOF
18287/* end confdefs.h. */
18288$ac_includes_default
18289int
18290main ()
18291{
18292static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18293test_array [0] = 0
18294
18295 ;
18296 return 0;
18297}
18298_ACEOF
18299rm -f conftest.$ac_objext
18300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18301 (eval $ac_compile) 2>conftest.er1
a848cd7e 18302 ac_status=$?
ac1cb8d3
VS
18303 grep -v '^ *+' conftest.er1 >conftest.err
18304 rm -f conftest.er1
18305 cat conftest.err >&5
a848cd7e
SC
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } &&
fb00f58d
JS
18308 { ac_try='test -z "$ac_c_werror_flag"
18309 || test ! -s conftest.err'
ac1cb8d3
VS
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_hi=$ac_mid
18322else
18323 echo "$as_me: failed program was:" >&5
18324sed 's/^/| /' conftest.$ac_ext >&5
18325
18326ac_lo=`expr '(' $ac_mid ')' + 1`
18327fi
ac1cb8d3 18328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18329done
18330case $ac_lo in
18331?*) ac_cv_sizeof_long_long=$ac_lo;;
18332'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18333See \`config.log' for more details." >&5
18334echo "$as_me: error: cannot compute sizeof (long long), 77
18335See \`config.log' for more details." >&2;}
18336 { (exit 1); exit 1; }; } ;;
18337esac
18338else
18339 if test "$cross_compiling" = yes; then
fb00f58d
JS
18340 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18341See \`config.log' for more details." >&5
18342echo "$as_me: error: cannot run test program while cross compiling
18343See \`config.log' for more details." >&2;}
a848cd7e
SC
18344 { (exit 1); exit 1; }; }
18345else
18346 cat >conftest.$ac_ext <<_ACEOF
18347/* confdefs.h. */
18348_ACEOF
18349cat confdefs.h >>conftest.$ac_ext
18350cat >>conftest.$ac_ext <<_ACEOF
18351/* end confdefs.h. */
18352$ac_includes_default
18353long longval () { return (long) (sizeof (long long)); }
18354unsigned long ulongval () { return (long) (sizeof (long long)); }
18355#include <stdio.h>
18356#include <stdlib.h>
18357int
18358main ()
18359{
18360
18361 FILE *f = fopen ("conftest.val", "w");
18362 if (! f)
18363 exit (1);
18364 if (((long) (sizeof (long long))) < 0)
18365 {
18366 long i = longval ();
18367 if (i != ((long) (sizeof (long long))))
18368 exit (1);
18369 fprintf (f, "%ld\n", i);
18370 }
18371 else
18372 {
18373 unsigned long i = ulongval ();
18374 if (i != ((long) (sizeof (long long))))
18375 exit (1);
18376 fprintf (f, "%lu\n", i);
18377 }
18378 exit (ferror (f) || fclose (f) != 0);
18379
18380 ;
18381 return 0;
18382}
18383_ACEOF
18384rm -f conftest$ac_exeext
18385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18386 (eval $ac_link) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 ac_cv_sizeof_long_long=`cat conftest.val`
18396else
18397 echo "$as_me: program exited with status $ac_status" >&5
18398echo "$as_me: failed program was:" >&5
18399sed 's/^/| /' conftest.$ac_ext >&5
18400
18401( exit $ac_status )
18402{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18403See \`config.log' for more details." >&5
18404echo "$as_me: error: cannot compute sizeof (long long), 77
18405See \`config.log' for more details." >&2;}
18406 { (exit 1); exit 1; }; }
18407fi
ac1cb8d3 18408rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18409fi
18410fi
18411rm -f conftest.val
18412else
18413 ac_cv_sizeof_long_long=0
18414fi
18415fi
18416echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18417echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18418cat >>confdefs.h <<_ACEOF
18419#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18420_ACEOF
18421
18422
18423 ;;
18424 *-hp-hpux* )
18425 echo "$as_me:$LINENO: checking for long long" >&5
18426echo $ECHO_N "checking for long long... $ECHO_C" >&6
18427if test "${ac_cv_type_long_long+set}" = set; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
18429else
18430 cat >conftest.$ac_ext <<_ACEOF
18431/* confdefs.h. */
18432_ACEOF
18433cat confdefs.h >>conftest.$ac_ext
18434cat >>conftest.$ac_ext <<_ACEOF
18435/* end confdefs.h. */
18436$ac_includes_default
18437int
18438main ()
18439{
18440if ((long long *) 0)
18441 return 0;
18442if (sizeof (long long))
18443 return 0;
18444 ;
18445 return 0;
18446}
18447_ACEOF
18448rm -f conftest.$ac_objext
18449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18450 (eval $ac_compile) 2>conftest.er1
a848cd7e 18451 ac_status=$?
ac1cb8d3
VS
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
a848cd7e
SC
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
fb00f58d
JS
18457 { ac_try='test -z "$ac_c_werror_flag"
18458 || test ! -s conftest.err'
ac1cb8d3
VS
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 ac_cv_type_long_long=yes
18471else
18472 echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475ac_cv_type_long_long=no
18476fi
ac1cb8d3 18477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18478fi
18479echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18480echo "${ECHO_T}$ac_cv_type_long_long" >&6
18481
18482echo "$as_me:$LINENO: checking size of long long" >&5
18483echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18484if test "${ac_cv_sizeof_long_long+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18486else
18487 if test "$ac_cv_type_long_long" = yes; then
18488 # The cast to unsigned long works around a bug in the HP C Compiler
18489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18491 # This bug is HP SR number 8606223364.
18492 if test "$cross_compiling" = yes; then
18493 # Depending upon the size, compute the lo and hi bounds.
18494cat >conftest.$ac_ext <<_ACEOF
18495/* confdefs.h. */
18496_ACEOF
18497cat confdefs.h >>conftest.$ac_ext
18498cat >>conftest.$ac_ext <<_ACEOF
18499/* end confdefs.h. */
18500$ac_includes_default
18501int
18502main ()
18503{
18504static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18505test_array [0] = 0
18506
18507 ;
18508 return 0;
18509}
18510_ACEOF
18511rm -f conftest.$ac_objext
18512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18513 (eval $ac_compile) 2>conftest.er1
a848cd7e 18514 ac_status=$?
ac1cb8d3
VS
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
a848cd7e
SC
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
fb00f58d
JS
18520 { ac_try='test -z "$ac_c_werror_flag"
18521 || test ! -s conftest.err'
ac1cb8d3
VS
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_lo=0 ac_mid=0
18534 while :; do
18535 cat >conftest.$ac_ext <<_ACEOF
18536/* confdefs.h. */
18537_ACEOF
18538cat confdefs.h >>conftest.$ac_ext
18539cat >>conftest.$ac_ext <<_ACEOF
18540/* end confdefs.h. */
18541$ac_includes_default
18542int
18543main ()
18544{
18545static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18546test_array [0] = 0
18547
18548 ;
18549 return 0;
18550}
18551_ACEOF
18552rm -f conftest.$ac_objext
18553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18554 (eval $ac_compile) 2>conftest.er1
a848cd7e 18555 ac_status=$?
ac1cb8d3
VS
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
a848cd7e
SC
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
fb00f58d
JS
18561 { ac_try='test -z "$ac_c_werror_flag"
18562 || test ! -s conftest.err'
ac1cb8d3
VS
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; } &&
18568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570 (eval $ac_try) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; }; then
18574 ac_hi=$ac_mid; break
18575else
18576 echo "$as_me: failed program was:" >&5
18577sed 's/^/| /' conftest.$ac_ext >&5
18578
18579ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18580 if test $ac_lo -le $ac_mid; then
18581 ac_lo= ac_hi=
18582 break
18583 fi
18584 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18585fi
ac1cb8d3 18586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18587 done
18588else
18589 echo "$as_me: failed program was:" >&5
18590sed 's/^/| /' conftest.$ac_ext >&5
18591
18592cat >conftest.$ac_ext <<_ACEOF
18593/* confdefs.h. */
18594_ACEOF
18595cat confdefs.h >>conftest.$ac_ext
18596cat >>conftest.$ac_ext <<_ACEOF
18597/* end confdefs.h. */
18598$ac_includes_default
18599int
18600main ()
18601{
18602static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18603test_array [0] = 0
18604
18605 ;
18606 return 0;
18607}
18608_ACEOF
18609rm -f conftest.$ac_objext
18610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18611 (eval $ac_compile) 2>conftest.er1
a848cd7e 18612 ac_status=$?
ac1cb8d3
VS
18613 grep -v '^ *+' conftest.er1 >conftest.err
18614 rm -f conftest.er1
18615 cat conftest.err >&5
a848cd7e
SC
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
fb00f58d
JS
18618 { ac_try='test -z "$ac_c_werror_flag"
18619 || test ! -s conftest.err'
ac1cb8d3
VS
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_hi=-1 ac_mid=-1
18632 while :; do
18633 cat >conftest.$ac_ext <<_ACEOF
18634/* confdefs.h. */
18635_ACEOF
18636cat confdefs.h >>conftest.$ac_ext
18637cat >>conftest.$ac_ext <<_ACEOF
18638/* end confdefs.h. */
18639$ac_includes_default
18640int
18641main ()
18642{
18643static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18644test_array [0] = 0
18645
18646 ;
18647 return 0;
18648}
18649_ACEOF
18650rm -f conftest.$ac_objext
18651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18652 (eval $ac_compile) 2>conftest.er1
a848cd7e 18653 ac_status=$?
ac1cb8d3
VS
18654 grep -v '^ *+' conftest.er1 >conftest.err
18655 rm -f conftest.er1
18656 cat conftest.err >&5
a848cd7e
SC
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } &&
fb00f58d
JS
18659 { ac_try='test -z "$ac_c_werror_flag"
18660 || test ! -s conftest.err'
ac1cb8d3
VS
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; } &&
18666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18669 ac_status=$?
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; }; then
18672 ac_lo=$ac_mid; break
18673else
18674 echo "$as_me: failed program was:" >&5
18675sed 's/^/| /' conftest.$ac_ext >&5
18676
18677ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18678 if test $ac_mid -le $ac_hi; then
18679 ac_lo= ac_hi=
18680 break
18681 fi
18682 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18683fi
ac1cb8d3 18684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18685 done
18686else
18687 echo "$as_me: failed program was:" >&5
18688sed 's/^/| /' conftest.$ac_ext >&5
18689
18690ac_lo= ac_hi=
18691fi
ac1cb8d3 18692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18693fi
ac1cb8d3 18694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18695# Binary search between lo and hi bounds.
18696while test "x$ac_lo" != "x$ac_hi"; do
18697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18698 cat >conftest.$ac_ext <<_ACEOF
18699/* confdefs.h. */
18700_ACEOF
18701cat confdefs.h >>conftest.$ac_ext
18702cat >>conftest.$ac_ext <<_ACEOF
18703/* end confdefs.h. */
18704$ac_includes_default
18705int
18706main ()
18707{
18708static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18709test_array [0] = 0
18710
18711 ;
18712 return 0;
18713}
18714_ACEOF
18715rm -f conftest.$ac_objext
18716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18717 (eval $ac_compile) 2>conftest.er1
a848cd7e 18718 ac_status=$?
ac1cb8d3
VS
18719 grep -v '^ *+' conftest.er1 >conftest.err
18720 rm -f conftest.er1
18721 cat conftest.err >&5
a848cd7e
SC
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } &&
fb00f58d
JS
18724 { ac_try='test -z "$ac_c_werror_flag"
18725 || test ! -s conftest.err'
ac1cb8d3
VS
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; } &&
18731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 ac_hi=$ac_mid
18738else
18739 echo "$as_me: failed program was:" >&5
18740sed 's/^/| /' conftest.$ac_ext >&5
18741
18742ac_lo=`expr '(' $ac_mid ')' + 1`
18743fi
ac1cb8d3 18744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18745done
18746case $ac_lo in
18747?*) ac_cv_sizeof_long_long=$ac_lo;;
18748'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18749See \`config.log' for more details." >&5
18750echo "$as_me: error: cannot compute sizeof (long long), 77
18751See \`config.log' for more details." >&2;}
18752 { (exit 1); exit 1; }; } ;;
18753esac
18754else
18755 if test "$cross_compiling" = yes; then
fb00f58d
JS
18756 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18757See \`config.log' for more details." >&5
18758echo "$as_me: error: cannot run test program while cross compiling
18759See \`config.log' for more details." >&2;}
a848cd7e
SC
18760 { (exit 1); exit 1; }; }
18761else
18762 cat >conftest.$ac_ext <<_ACEOF
18763/* confdefs.h. */
18764_ACEOF
18765cat confdefs.h >>conftest.$ac_ext
18766cat >>conftest.$ac_ext <<_ACEOF
18767/* end confdefs.h. */
18768$ac_includes_default
18769long longval () { return (long) (sizeof (long long)); }
18770unsigned long ulongval () { return (long) (sizeof (long long)); }
18771#include <stdio.h>
18772#include <stdlib.h>
18773int
18774main ()
18775{
18776
18777 FILE *f = fopen ("conftest.val", "w");
18778 if (! f)
18779 exit (1);
18780 if (((long) (sizeof (long long))) < 0)
18781 {
18782 long i = longval ();
18783 if (i != ((long) (sizeof (long long))))
18784 exit (1);
18785 fprintf (f, "%ld\n", i);
18786 }
18787 else
18788 {
18789 unsigned long i = ulongval ();
18790 if (i != ((long) (sizeof (long long))))
18791 exit (1);
18792 fprintf (f, "%lu\n", i);
18793 }
18794 exit (ferror (f) || fclose (f) != 0);
18795
18796 ;
18797 return 0;
18798}
18799_ACEOF
18800rm -f conftest$ac_exeext
18801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18802 (eval $ac_link) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 ac_cv_sizeof_long_long=`cat conftest.val`
18812else
18813 echo "$as_me: program exited with status $ac_status" >&5
18814echo "$as_me: failed program was:" >&5
18815sed 's/^/| /' conftest.$ac_ext >&5
18816
18817( exit $ac_status )
18818{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18819See \`config.log' for more details." >&5
18820echo "$as_me: error: cannot compute sizeof (long long), 77
18821See \`config.log' for more details." >&2;}
18822 { (exit 1); exit 1; }; }
18823fi
ac1cb8d3 18824rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18825fi
18826fi
18827rm -f conftest.val
18828else
18829 ac_cv_sizeof_long_long=0
18830fi
18831fi
18832echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18833echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18834cat >>confdefs.h <<_ACEOF
18835#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18836_ACEOF
18837
18838
18839 if test "$ac_cv_sizeof_long_long" != "0"; then
18840 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18841 fi
18842 ;;
18843 * )
18844 echo "$as_me:$LINENO: checking for long long" >&5
18845echo $ECHO_N "checking for long long... $ECHO_C" >&6
18846if test "${ac_cv_type_long_long+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18848else
18849 cat >conftest.$ac_ext <<_ACEOF
18850/* confdefs.h. */
18851_ACEOF
18852cat confdefs.h >>conftest.$ac_ext
18853cat >>conftest.$ac_ext <<_ACEOF
18854/* end confdefs.h. */
18855$ac_includes_default
18856int
18857main ()
18858{
18859if ((long long *) 0)
18860 return 0;
18861if (sizeof (long long))
18862 return 0;
18863 ;
18864 return 0;
18865}
18866_ACEOF
18867rm -f conftest.$ac_objext
18868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18869 (eval $ac_compile) 2>conftest.er1
a848cd7e 18870 ac_status=$?
ac1cb8d3
VS
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
a848cd7e
SC
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
fb00f58d
JS
18876 { ac_try='test -z "$ac_c_werror_flag"
18877 || test ! -s conftest.err'
ac1cb8d3
VS
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ac_cv_type_long_long=yes
18890else
18891 echo "$as_me: failed program was:" >&5
18892sed 's/^/| /' conftest.$ac_ext >&5
18893
18894ac_cv_type_long_long=no
18895fi
ac1cb8d3 18896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18897fi
18898echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18899echo "${ECHO_T}$ac_cv_type_long_long" >&6
18900
18901echo "$as_me:$LINENO: checking size of long long" >&5
18902echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18903if test "${ac_cv_sizeof_long_long+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905else
18906 if test "$ac_cv_type_long_long" = yes; then
18907 # The cast to unsigned long works around a bug in the HP C Compiler
18908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18910 # This bug is HP SR number 8606223364.
18911 if test "$cross_compiling" = yes; then
18912 # Depending upon the size, compute the lo and hi bounds.
18913cat >conftest.$ac_ext <<_ACEOF
18914/* confdefs.h. */
18915_ACEOF
18916cat confdefs.h >>conftest.$ac_ext
18917cat >>conftest.$ac_ext <<_ACEOF
18918/* end confdefs.h. */
18919$ac_includes_default
18920int
18921main ()
18922{
18923static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18924test_array [0] = 0
18925
18926 ;
18927 return 0;
18928}
18929_ACEOF
18930rm -f conftest.$ac_objext
18931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18932 (eval $ac_compile) 2>conftest.er1
a848cd7e 18933 ac_status=$?
ac1cb8d3
VS
18934 grep -v '^ *+' conftest.er1 >conftest.err
18935 rm -f conftest.er1
18936 cat conftest.err >&5
a848cd7e
SC
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); } &&
fb00f58d
JS
18939 { ac_try='test -z "$ac_c_werror_flag"
18940 || test ! -s conftest.err'
ac1cb8d3
VS
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; } &&
18946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948 (eval $ac_try) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; }; then
18952 ac_lo=0 ac_mid=0
18953 while :; do
18954 cat >conftest.$ac_ext <<_ACEOF
18955/* confdefs.h. */
18956_ACEOF
18957cat confdefs.h >>conftest.$ac_ext
18958cat >>conftest.$ac_ext <<_ACEOF
18959/* end confdefs.h. */
18960$ac_includes_default
18961int
18962main ()
18963{
18964static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18965test_array [0] = 0
18966
18967 ;
18968 return 0;
18969}
18970_ACEOF
18971rm -f conftest.$ac_objext
18972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18973 (eval $ac_compile) 2>conftest.er1
a848cd7e 18974 ac_status=$?
ac1cb8d3
VS
18975 grep -v '^ *+' conftest.er1 >conftest.err
18976 rm -f conftest.er1
18977 cat conftest.err >&5
a848cd7e
SC
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
fb00f58d
JS
18980 { ac_try='test -z "$ac_c_werror_flag"
18981 || test ! -s conftest.err'
ac1cb8d3
VS
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ac_hi=$ac_mid; break
18994else
18995 echo "$as_me: failed program was:" >&5
18996sed 's/^/| /' conftest.$ac_ext >&5
18997
18998ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18999 if test $ac_lo -le $ac_mid; then
19000 ac_lo= ac_hi=
19001 break
19002 fi
19003 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19004fi
ac1cb8d3 19005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19006 done
19007else
19008 echo "$as_me: failed program was:" >&5
19009sed 's/^/| /' conftest.$ac_ext >&5
19010
19011cat >conftest.$ac_ext <<_ACEOF
19012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
19017$ac_includes_default
19018int
19019main ()
19020{
19021static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19022test_array [0] = 0
19023
19024 ;
19025 return 0;
19026}
19027_ACEOF
19028rm -f conftest.$ac_objext
19029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19030 (eval $ac_compile) 2>conftest.er1
a848cd7e 19031 ac_status=$?
ac1cb8d3
VS
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
a848cd7e
SC
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
fb00f58d
JS
19037 { ac_try='test -z "$ac_c_werror_flag"
19038 || test ! -s conftest.err'
ac1cb8d3
VS
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_hi=-1 ac_mid=-1
19051 while :; do
19052 cat >conftest.$ac_ext <<_ACEOF
19053/* confdefs.h. */
19054_ACEOF
19055cat confdefs.h >>conftest.$ac_ext
19056cat >>conftest.$ac_ext <<_ACEOF
19057/* end confdefs.h. */
19058$ac_includes_default
19059int
19060main ()
19061{
19062static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19063test_array [0] = 0
19064
19065 ;
19066 return 0;
19067}
19068_ACEOF
19069rm -f conftest.$ac_objext
19070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19071 (eval $ac_compile) 2>conftest.er1
a848cd7e 19072 ac_status=$?
ac1cb8d3
VS
19073 grep -v '^ *+' conftest.er1 >conftest.err
19074 rm -f conftest.er1
19075 cat conftest.err >&5
a848cd7e
SC
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); } &&
fb00f58d
JS
19078 { ac_try='test -z "$ac_c_werror_flag"
19079 || test ! -s conftest.err'
ac1cb8d3
VS
19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19082 ac_status=$?
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19088 ac_status=$?
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; }; then
19091 ac_lo=$ac_mid; break
19092else
19093 echo "$as_me: failed program was:" >&5
19094sed 's/^/| /' conftest.$ac_ext >&5
19095
19096ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19097 if test $ac_mid -le $ac_hi; then
19098 ac_lo= ac_hi=
19099 break
19100 fi
19101 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19102fi
ac1cb8d3 19103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19104 done
19105else
19106 echo "$as_me: failed program was:" >&5
19107sed 's/^/| /' conftest.$ac_ext >&5
19108
19109ac_lo= ac_hi=
19110fi
ac1cb8d3 19111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19112fi
ac1cb8d3 19113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19114# Binary search between lo and hi bounds.
19115while test "x$ac_lo" != "x$ac_hi"; do
19116 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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); } &&
fb00f58d
JS
19143 { ac_try='test -z "$ac_c_werror_flag"
19144 || test ! -s conftest.err'
ac1cb8d3
VS
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; }; then
19156 ac_hi=$ac_mid
19157else
19158 echo "$as_me: failed program was:" >&5
19159sed 's/^/| /' conftest.$ac_ext >&5
19160
19161ac_lo=`expr '(' $ac_mid ')' + 1`
19162fi
ac1cb8d3 19163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19164done
19165case $ac_lo in
19166?*) ac_cv_sizeof_long_long=$ac_lo;;
19167'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19168See \`config.log' for more details." >&5
19169echo "$as_me: error: cannot compute sizeof (long long), 77
19170See \`config.log' for more details." >&2;}
19171 { (exit 1); exit 1; }; } ;;
19172esac
19173else
19174 if test "$cross_compiling" = yes; then
fb00f58d
JS
19175 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19176See \`config.log' for more details." >&5
19177echo "$as_me: error: cannot run test program while cross compiling
19178See \`config.log' for more details." >&2;}
a848cd7e
SC
19179 { (exit 1); exit 1; }; }
19180else
19181 cat >conftest.$ac_ext <<_ACEOF
19182/* confdefs.h. */
19183_ACEOF
19184cat confdefs.h >>conftest.$ac_ext
19185cat >>conftest.$ac_ext <<_ACEOF
19186/* end confdefs.h. */
19187$ac_includes_default
19188long longval () { return (long) (sizeof (long long)); }
19189unsigned long ulongval () { return (long) (sizeof (long long)); }
19190#include <stdio.h>
19191#include <stdlib.h>
19192int
19193main ()
19194{
19195
19196 FILE *f = fopen ("conftest.val", "w");
19197 if (! f)
19198 exit (1);
19199 if (((long) (sizeof (long long))) < 0)
19200 {
19201 long i = longval ();
19202 if (i != ((long) (sizeof (long long))))
19203 exit (1);
19204 fprintf (f, "%ld\n", i);
19205 }
19206 else
19207 {
19208 unsigned long i = ulongval ();
19209 if (i != ((long) (sizeof (long long))))
19210 exit (1);
19211 fprintf (f, "%lu\n", i);
19212 }
19213 exit (ferror (f) || fclose (f) != 0);
19214
19215 ;
19216 return 0;
19217}
19218_ACEOF
19219rm -f conftest$ac_exeext
19220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19221 (eval $ac_link) 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 ac_cv_sizeof_long_long=`cat conftest.val`
19231else
19232 echo "$as_me: program exited with status $ac_status" >&5
19233echo "$as_me: failed program was:" >&5
19234sed 's/^/| /' conftest.$ac_ext >&5
19235
19236( exit $ac_status )
19237{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19238See \`config.log' for more details." >&5
19239echo "$as_me: error: cannot compute sizeof (long long), 77
19240See \`config.log' for more details." >&2;}
19241 { (exit 1); exit 1; }; }
19242fi
ac1cb8d3 19243rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19244fi
19245fi
19246rm -f conftest.val
19247else
19248 ac_cv_sizeof_long_long=0
19249fi
19250fi
19251echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19252echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19253cat >>confdefs.h <<_ACEOF
19254#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19255_ACEOF
19256
19257
19258esac
19259
238ecede
MW
19260echo "$as_me:$LINENO: checking for wchar_t" >&5
19261echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19262if test "${ac_cv_type_wchar_t+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19264else
19265 cat >conftest.$ac_ext <<_ACEOF
19266/* confdefs.h. */
19267_ACEOF
19268cat confdefs.h >>conftest.$ac_ext
19269cat >>conftest.$ac_ext <<_ACEOF
19270/* end confdefs.h. */
19271
83d8eb47
MW
19272 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19273 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19274 # error "fake wchar_t"
19275 #endif
19276 #ifdef HAVE_WCHAR_H
19277 # ifdef __CYGWIN__
19278 # include <stddef.h>
19279 # endif
19280 # include <wchar.h>
19281 #endif
19282 #ifdef HAVE_STDLIB_H
19283 # include <stdlib.h>
19284 #endif
19285 #include <stdio.h>
19286
19287
19288
19289int
19290main ()
19291{
19292if ((wchar_t *) 0)
19293 return 0;
19294if (sizeof (wchar_t))
19295 return 0;
19296 ;
19297 return 0;
19298}
19299_ACEOF
19300rm -f conftest.$ac_objext
19301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19302 (eval $ac_compile) 2>conftest.er1
19303 ac_status=$?
19304 grep -v '^ *+' conftest.er1 >conftest.err
19305 rm -f conftest.er1
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } &&
fb00f58d
JS
19309 { ac_try='test -z "$ac_c_werror_flag"
19310 || test ! -s conftest.err'
238ecede
MW
19311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312 (eval $ac_try) 2>&5
19313 ac_status=$?
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); }; } &&
19316 { ac_try='test -s conftest.$ac_objext'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322 ac_cv_type_wchar_t=yes
19323else
19324 echo "$as_me: failed program was:" >&5
19325sed 's/^/| /' conftest.$ac_ext >&5
19326
19327ac_cv_type_wchar_t=no
19328fi
19329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19330fi
19331echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19332echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19333
a848cd7e
SC
19334echo "$as_me:$LINENO: checking size of wchar_t" >&5
19335echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19336if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19338else
238ecede
MW
19339 if test "$ac_cv_type_wchar_t" = yes; then
19340 # The cast to unsigned long works around a bug in the HP C Compiler
19341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19343 # This bug is HP SR number 8606223364.
19344 if test "$cross_compiling" = yes; then
19345 # Depending upon the size, compute the lo and hi bounds.
19346cat >conftest.$ac_ext <<_ACEOF
19347/* confdefs.h. */
19348_ACEOF
19349cat confdefs.h >>conftest.$ac_ext
19350cat >>conftest.$ac_ext <<_ACEOF
19351/* end confdefs.h. */
19352
83d8eb47
MW
19353 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19354 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19355 # error "fake wchar_t"
19356 #endif
19357 #ifdef HAVE_WCHAR_H
19358 # ifdef __CYGWIN__
19359 # include <stddef.h>
19360 # endif
19361 # include <wchar.h>
19362 #endif
19363 #ifdef HAVE_STDLIB_H
19364 # include <stdlib.h>
19365 #endif
19366 #include <stdio.h>
19367
19368
19369
19370int
19371main ()
19372{
19373static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19374test_array [0] = 0
19375
19376 ;
19377 return 0;
19378}
19379_ACEOF
19380rm -f conftest.$ac_objext
19381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
fb00f58d
JS
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
238ecede
MW
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_lo=0 ac_mid=0
19403 while :; do
19404 cat >conftest.$ac_ext <<_ACEOF
19405/* confdefs.h. */
19406_ACEOF
19407cat confdefs.h >>conftest.$ac_ext
19408cat >>conftest.$ac_ext <<_ACEOF
19409/* end confdefs.h. */
19410
83d8eb47
MW
19411 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19412 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19413 # error "fake wchar_t"
19414 #endif
19415 #ifdef HAVE_WCHAR_H
19416 # ifdef __CYGWIN__
19417 # include <stddef.h>
19418 # endif
19419 # include <wchar.h>
19420 #endif
19421 #ifdef HAVE_STDLIB_H
19422 # include <stdlib.h>
19423 #endif
19424 #include <stdio.h>
19425
19426
19427
19428int
19429main ()
19430{
19431static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19432test_array [0] = 0
19433
19434 ;
19435 return 0;
19436}
19437_ACEOF
19438rm -f conftest.$ac_objext
19439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440 (eval $ac_compile) 2>conftest.er1
19441 ac_status=$?
19442 grep -v '^ *+' conftest.er1 >conftest.err
19443 rm -f conftest.er1
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
fb00f58d
JS
19447 { ac_try='test -z "$ac_c_werror_flag"
19448 || test ! -s conftest.err'
238ecede
MW
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_hi=$ac_mid; break
19461else
19462 echo "$as_me: failed program was:" >&5
19463sed 's/^/| /' conftest.$ac_ext >&5
19464
19465ac_lo=`expr $ac_mid + 1`
19466 if test $ac_lo -le $ac_mid; then
19467 ac_lo= ac_hi=
19468 break
19469 fi
19470 ac_mid=`expr 2 '*' $ac_mid + 1`
19471fi
19472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19473 done
19474else
19475 echo "$as_me: failed program was:" >&5
19476sed 's/^/| /' conftest.$ac_ext >&5
19477
19478cat >conftest.$ac_ext <<_ACEOF
19479/* confdefs.h. */
19480_ACEOF
19481cat confdefs.h >>conftest.$ac_ext
19482cat >>conftest.$ac_ext <<_ACEOF
19483/* end confdefs.h. */
19484
83d8eb47
MW
19485 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19486 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19487 # error "fake wchar_t"
19488 #endif
19489 #ifdef HAVE_WCHAR_H
19490 # ifdef __CYGWIN__
19491 # include <stddef.h>
19492 # endif
19493 # include <wchar.h>
19494 #endif
19495 #ifdef HAVE_STDLIB_H
19496 # include <stdlib.h>
19497 #endif
19498 #include <stdio.h>
19499
19500
19501
19502int
19503main ()
19504{
19505static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19506test_array [0] = 0
19507
19508 ;
19509 return 0;
19510}
19511_ACEOF
19512rm -f conftest.$ac_objext
19513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19514 (eval $ac_compile) 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } &&
fb00f58d
JS
19521 { ac_try='test -z "$ac_c_werror_flag"
19522 || test ! -s conftest.err'
238ecede
MW
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; } &&
19528 { ac_try='test -s conftest.$ac_objext'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; }; then
19534 ac_hi=-1 ac_mid=-1
19535 while :; do
19536 cat >conftest.$ac_ext <<_ACEOF
19537/* confdefs.h. */
19538_ACEOF
19539cat confdefs.h >>conftest.$ac_ext
19540cat >>conftest.$ac_ext <<_ACEOF
19541/* end confdefs.h. */
19542
83d8eb47
MW
19543 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19544 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19545 # error "fake wchar_t"
19546 #endif
19547 #ifdef HAVE_WCHAR_H
19548 # ifdef __CYGWIN__
19549 # include <stddef.h>
19550 # endif
19551 # include <wchar.h>
19552 #endif
19553 #ifdef HAVE_STDLIB_H
19554 # include <stdlib.h>
19555 #endif
19556 #include <stdio.h>
19557
19558
19559
19560int
19561main ()
19562{
19563static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19564test_array [0] = 0
19565
19566 ;
19567 return 0;
19568}
19569_ACEOF
19570rm -f conftest.$ac_objext
19571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19572 (eval $ac_compile) 2>conftest.er1
19573 ac_status=$?
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
fb00f58d
JS
19579 { ac_try='test -z "$ac_c_werror_flag"
19580 || test ! -s conftest.err'
238ecede
MW
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; } &&
19586 { ac_try='test -s conftest.$ac_objext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 ac_lo=$ac_mid; break
19593else
19594 echo "$as_me: failed program was:" >&5
19595sed 's/^/| /' conftest.$ac_ext >&5
19596
19597ac_hi=`expr '(' $ac_mid ')' - 1`
19598 if test $ac_mid -le $ac_hi; then
19599 ac_lo= ac_hi=
19600 break
19601 fi
19602 ac_mid=`expr 2 '*' $ac_mid`
19603fi
19604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19605 done
19606else
19607 echo "$as_me: failed program was:" >&5
19608sed 's/^/| /' conftest.$ac_ext >&5
19609
19610ac_lo= ac_hi=
19611fi
19612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19613fi
19614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19615# Binary search between lo and hi bounds.
19616while test "x$ac_lo" != "x$ac_hi"; do
19617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19618 cat >conftest.$ac_ext <<_ACEOF
19619/* confdefs.h. */
19620_ACEOF
19621cat confdefs.h >>conftest.$ac_ext
19622cat >>conftest.$ac_ext <<_ACEOF
19623/* end confdefs.h. */
19624
83d8eb47
MW
19625 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19626 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19627 # error "fake wchar_t"
19628 #endif
19629 #ifdef HAVE_WCHAR_H
19630 # ifdef __CYGWIN__
19631 # include <stddef.h>
19632 # endif
19633 # include <wchar.h>
19634 #endif
19635 #ifdef HAVE_STDLIB_H
19636 # include <stdlib.h>
19637 #endif
19638 #include <stdio.h>
a848cd7e 19639
a848cd7e 19640
a848cd7e 19641
238ecede
MW
19642int
19643main ()
19644{
19645static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19646test_array [0] = 0
a848cd7e 19647
238ecede
MW
19648 ;
19649 return 0;
19650}
19651_ACEOF
19652rm -f conftest.$ac_objext
19653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19654 (eval $ac_compile) 2>conftest.er1
19655 ac_status=$?
19656 grep -v '^ *+' conftest.er1 >conftest.err
19657 rm -f conftest.er1
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
fb00f58d
JS
19661 { ac_try='test -z "$ac_c_werror_flag"
19662 || test ! -s conftest.err'
238ecede
MW
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try='test -s conftest.$ac_objext'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19674 ac_hi=$ac_mid
19675else
19676 echo "$as_me: failed program was:" >&5
19677sed 's/^/| /' conftest.$ac_ext >&5
19678
19679ac_lo=`expr '(' $ac_mid ')' + 1`
19680fi
19681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19682done
19683case $ac_lo in
19684?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19685'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19686See \`config.log' for more details." >&5
19687echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19688See \`config.log' for more details." >&2;}
19689 { (exit 1); exit 1; }; } ;;
19690esac
19691else
19692 if test "$cross_compiling" = yes; then
fb00f58d
JS
19693 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19694See \`config.log' for more details." >&5
19695echo "$as_me: error: cannot run test program while cross compiling
19696See \`config.log' for more details." >&2;}
238ecede 19697 { (exit 1); exit 1; }; }
a848cd7e
SC
19698else
19699 cat >conftest.$ac_ext <<_ACEOF
19700/* confdefs.h. */
19701_ACEOF
19702cat confdefs.h >>conftest.$ac_ext
19703cat >>conftest.$ac_ext <<_ACEOF
19704/* end confdefs.h. */
19705
83d8eb47
MW
19706 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19707 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19708 # error "fake wchar_t"
19709 #endif
19710 #ifdef HAVE_WCHAR_H
19711 # ifdef __CYGWIN__
19712 # include <stddef.h>
19713 # endif
19714 # include <wchar.h>
19715 #endif
19716 #ifdef HAVE_STDLIB_H
19717 # include <stdlib.h>
19718 #endif
19719 #include <stdio.h>
19720
19721
19722
19723long longval () { return (long) (sizeof (wchar_t)); }
19724unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19725#include <stdio.h>
19726#include <stdlib.h>
19727int
19728main ()
19729{
a848cd7e 19730
238ecede
MW
19731 FILE *f = fopen ("conftest.val", "w");
19732 if (! f)
19733 exit (1);
19734 if (((long) (sizeof (wchar_t))) < 0)
19735 {
19736 long i = longval ();
19737 if (i != ((long) (sizeof (wchar_t))))
19738 exit (1);
19739 fprintf (f, "%ld\n", i);
19740 }
19741 else
19742 {
19743 unsigned long i = ulongval ();
19744 if (i != ((long) (sizeof (wchar_t))))
19745 exit (1);
19746 fprintf (f, "%lu\n", i);
19747 }
19748 exit (ferror (f) || fclose (f) != 0);
19749
19750 ;
19751 return 0;
19752}
a848cd7e
SC
19753_ACEOF
19754rm -f conftest$ac_exeext
19755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19756 (eval $ac_link) 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
238ecede 19765 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19766else
19767 echo "$as_me: program exited with status $ac_status" >&5
19768echo "$as_me: failed program was:" >&5
19769sed 's/^/| /' conftest.$ac_ext >&5
19770
19771( exit $ac_status )
238ecede
MW
19772{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19773See \`config.log' for more details." >&5
19774echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19775See \`config.log' for more details." >&2;}
19776 { (exit 1); exit 1; }; }
a848cd7e 19777fi
ac1cb8d3 19778rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19779fi
a848cd7e 19780fi
238ecede
MW
19781rm -f conftest.val
19782else
19783 ac_cv_sizeof_wchar_t=0
19784fi
19785fi
19786echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19787echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19788cat >>confdefs.h <<_ACEOF
238ecede 19789#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19790_ACEOF
19791
19792
47a7e797
MW
19793if test "$ac_cv_sizeof_wchar_t" != "0"; then
19794 wxUSE_WCHAR_T=yes
19795else
19796 wxUSE_WCHAR_T=no
19797fi
238ecede 19798
ba3d13e1
VZ
19799echo "$as_me:$LINENO: checking for va_copy" >&5
19800echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19801if test "${wx_cv_func_va_copy+set}" = set; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19803else
19804
19805 cat >conftest.$ac_ext <<_ACEOF
19806
19807 #include <stdarg.h>
19808 void foo(char *f, ...)
19809 {
19810 va_list ap1, ap2;
19811 va_start(ap1, f);
19812 va_copy(ap2, ap1);
19813 va_end(ap2);
19814 va_end(ap1);
19815 }
5886b072
VZ
19816 int main()
19817 {
b902e639
VZ
19818 foo("hi", 17);
19819 return 0;
5886b072 19820 }
ba3d13e1
VZ
19821_ACEOF
19822rm -f conftest.$ac_objext conftest$ac_exeext
19823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19824 (eval $ac_link) 2>conftest.er1
19825 ac_status=$?
19826 grep -v '^ *+' conftest.er1 >conftest.err
19827 rm -f conftest.er1
19828 cat conftest.err >&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } &&
fb00f58d
JS
19831 { ac_try='test -z "$ac_c_werror_flag"
19832 || test ! -s conftest.err'
ba3d13e1
VZ
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest$ac_exeext'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 wx_cv_func_va_copy=yes
19845else
19846 echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849wx_cv_func_va_copy=no
19850
19851fi
19852rm -f conftest.err conftest.$ac_objext \
19853 conftest$ac_exeext conftest.$ac_ext
19854
19855
19856fi
19857echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19858echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19859
19860if test $wx_cv_func_va_copy = "yes"; then
19861 cat >>confdefs.h <<\_ACEOF
19862#define HAVE_VA_COPY 1
19863_ACEOF
19864
19865else
19866 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19867echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19868if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19870else
19871
19872 if test "$cross_compiling" = yes; then
19873 wx_cv_type_va_list_lvalue=yes
19874
19875else
19876 cat >conftest.$ac_ext <<_ACEOF
19877
19878 #include <stdarg.h>
19879 int foo(char *f, ...)
19880 {
19881 va_list ap1, ap2;
19882 va_start(ap1, f);
19883 ap2 = ap1;
19884 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19885 return 1;
19886 va_end(ap2);
19887 va_end(ap1);
19888 return 0;
19889 }
19890 int main()
19891 {
19892 return foo("hi", 17);
19893 }
19894_ACEOF
19895rm -f conftest$ac_exeext
19896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19897 (eval $ac_link) 2>&5
19898 ac_status=$?
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 wx_cv_type_va_list_lvalue=yes
19907else
19908 echo "$as_me: program exited with status $ac_status" >&5
19909echo "$as_me: failed program was:" >&5
19910sed 's/^/| /' conftest.$ac_ext >&5
19911
19912( exit $ac_status )
19913wx_cv_type_va_list_lvalue=no
19914fi
19915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19916fi
19917
19918
19919fi
19920echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19921echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19922
19923 if test $wx_cv_type_va_list_lvalue != "yes"; then
19924 cat >>confdefs.h <<\_ACEOF
19925#define VA_LIST_IS_ARRAY 1
19926_ACEOF
19927
19928 fi
19929fi
19930
a848cd7e
SC
19931# Check whether --enable-largefile or --disable-largefile was given.
19932if test "${enable_largefile+set}" = set; then
19933 enableval="$enable_largefile"
19934
19935fi;
19936if test "$enable_largefile" != no; then
19937 wx_largefile=no
19938
19939 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19940echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19941if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19943else
19944
19945 cat >conftest.$ac_ext <<_ACEOF
19946/* confdefs.h. */
19947_ACEOF
19948cat confdefs.h >>conftest.$ac_ext
19949cat >>conftest.$ac_ext <<_ACEOF
19950/* end confdefs.h. */
19951#define _FILE_OFFSET_BITS 64
19952 #include <sys/types.h>
19953int
19954main ()
19955{
19956typedef struct {
19957 unsigned int field: sizeof(off_t) == 8;
19958} wxlf;
19959
19960 ;
19961 return 0;
19962}
19963_ACEOF
19964rm -f conftest.$ac_objext
19965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19966 (eval $ac_compile) 2>conftest.er1
a848cd7e 19967 ac_status=$?
ac1cb8d3
VS
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
a848cd7e
SC
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } &&
fb00f58d
JS
19973 { ac_try='test -z "$ac_c_werror_flag"
19974 || test ! -s conftest.err'
ac1cb8d3
VS
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; } &&
19980 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; }; then
19986 ac_cv_sys_file_offset_bits=64
19987else
19988 echo "$as_me: failed program was:" >&5
19989sed 's/^/| /' conftest.$ac_ext >&5
19990
19991ac_cv_sys_file_offset_bits=no
19992fi
ac1cb8d3 19993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19994
19995
19996fi
19997echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19998echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19999
20000 if test "$ac_cv_sys_file_offset_bits" != no; then
20001 wx_largefile=yes
20002 cat >>confdefs.h <<_ACEOF
20003#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20004_ACEOF
20005
20006 fi
20007
20008 if test "x$wx_largefile" != "xyes"; then
20009
20010 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20011echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20012if test "${ac_cv_sys_large_files+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20014else
20015
20016 cat >conftest.$ac_ext <<_ACEOF
20017/* confdefs.h. */
20018_ACEOF
20019cat confdefs.h >>conftest.$ac_ext
20020cat >>conftest.$ac_ext <<_ACEOF
20021/* end confdefs.h. */
20022#define _LARGE_FILES 1
20023 #include <sys/types.h>
20024int
20025main ()
20026{
20027typedef struct {
20028 unsigned int field: sizeof(off_t) == 8;
20029} wxlf;
20030
20031 ;
20032 return 0;
20033}
20034_ACEOF
20035rm -f conftest.$ac_objext
20036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20037 (eval $ac_compile) 2>conftest.er1
a848cd7e 20038 ac_status=$?
ac1cb8d3
VS
20039 grep -v '^ *+' conftest.er1 >conftest.err
20040 rm -f conftest.er1
20041 cat conftest.err >&5
a848cd7e
SC
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } &&
fb00f58d
JS
20044 { ac_try='test -z "$ac_c_werror_flag"
20045 || test ! -s conftest.err'
ac1cb8d3
VS
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; } &&
20051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 ac_cv_sys_large_files=1
20058else
20059 echo "$as_me: failed program was:" >&5
20060sed 's/^/| /' conftest.$ac_ext >&5
20061
20062ac_cv_sys_large_files=no
20063fi
ac1cb8d3 20064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20065
20066
20067fi
20068echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20069echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20070
20071 if test "$ac_cv_sys_large_files" != no; then
20072 wx_largefile=yes
20073 cat >>confdefs.h <<_ACEOF
20074#define _LARGE_FILES $ac_cv_sys_large_files
20075_ACEOF
20076
20077 fi
20078
20079 fi
20080
20081 echo "$as_me:$LINENO: checking if large file support is available" >&5
20082echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20083 if test "x$wx_largefile" = "xyes"; then
20084 cat >>confdefs.h <<\_ACEOF
20085#define HAVE_LARGEFILE_SUPPORT 1
20086_ACEOF
20087
20088 fi
20089 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20090echo "${ECHO_T}$wx_largefile" >&6
20091fi
20092
5b674b9d
DE
20093
20094if test "x$wx_largefile" = "xyes"; then
20095 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20096 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
20097 else
20098 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20099 fi
20100 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20101echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20102if test "${ac_cv_sys_largefile_source+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20104else
20105 while :; do
20106 ac_cv_sys_largefile_source=no
20107 cat >conftest.$ac_ext <<_ACEOF
20108/* confdefs.h. */
20109_ACEOF
20110cat confdefs.h >>conftest.$ac_ext
20111cat >>conftest.$ac_ext <<_ACEOF
20112/* end confdefs.h. */
20113#include <stdio.h>
20114int
20115main ()
20116{
20117return !fseeko;
20118 ;
20119 return 0;
20120}
20121_ACEOF
20122rm -f conftest.$ac_objext
20123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20124 (eval $ac_compile) 2>conftest.er1
20125 ac_status=$?
20126 grep -v '^ *+' conftest.er1 >conftest.err
20127 rm -f conftest.er1
20128 cat conftest.err >&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } &&
fb00f58d
JS
20131 { ac_try='test -z "$ac_c_werror_flag"
20132 || test ! -s conftest.err'
5294a27e
VZ
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; } &&
20138 { ac_try='test -s conftest.$ac_objext'
20139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20140 (eval $ac_try) 2>&5
20141 ac_status=$?
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); }; }; then
20144 break
20145else
20146 echo "$as_me: failed program was:" >&5
20147sed 's/^/| /' conftest.$ac_ext >&5
20148
20149fi
20150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20151 cat >conftest.$ac_ext <<_ACEOF
20152/* confdefs.h. */
20153_ACEOF
20154cat confdefs.h >>conftest.$ac_ext
20155cat >>conftest.$ac_ext <<_ACEOF
20156/* end confdefs.h. */
20157#define _LARGEFILE_SOURCE 1
20158#include <stdio.h>
20159int
20160main ()
20161{
20162return !fseeko;
20163 ;
20164 return 0;
20165}
20166_ACEOF
20167rm -f conftest.$ac_objext
20168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20169 (eval $ac_compile) 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
fb00f58d
JS
20176 { ac_try='test -z "$ac_c_werror_flag"
20177 || test ! -s conftest.err'
5294a27e
VZ
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; } &&
20183 { ac_try='test -s conftest.$ac_objext'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
20189 ac_cv_sys_largefile_source=1; break
20190else
20191 echo "$as_me: failed program was:" >&5
20192sed 's/^/| /' conftest.$ac_ext >&5
20193
20194fi
20195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20196 break
20197done
20198fi
20199echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20200echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20201if test "$ac_cv_sys_largefile_source" != no; then
20202
20203cat >>confdefs.h <<_ACEOF
20204#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20205_ACEOF
20206
20207fi
20208rm -f conftest*
20209
20210# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20211# in glibc 2.1.3, but that breaks too many other things.
20212# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20213echo "$as_me:$LINENO: checking for fseeko" >&5
20214echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20215if test "${ac_cv_func_fseeko+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217else
20218 cat >conftest.$ac_ext <<_ACEOF
20219/* confdefs.h. */
20220_ACEOF
20221cat confdefs.h >>conftest.$ac_ext
20222cat >>conftest.$ac_ext <<_ACEOF
20223/* end confdefs.h. */
20224#include <stdio.h>
20225int
20226main ()
20227{
20228return fseeko && fseeko (stdin, 0, 0);
20229 ;
20230 return 0;
20231}
20232_ACEOF
20233rm -f conftest.$ac_objext conftest$ac_exeext
20234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20235 (eval $ac_link) 2>conftest.er1
20236 ac_status=$?
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
fb00f58d
JS
20242 { ac_try='test -z "$ac_c_werror_flag"
20243 || test ! -s conftest.err'
5294a27e
VZ
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try='test -s conftest$ac_exeext'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 ac_cv_func_fseeko=yes
20256else
20257 echo "$as_me: failed program was:" >&5
20258sed 's/^/| /' conftest.$ac_ext >&5
20259
20260ac_cv_func_fseeko=no
20261fi
20262rm -f conftest.err conftest.$ac_objext \
20263 conftest$ac_exeext conftest.$ac_ext
20264fi
20265echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20266echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20267if test $ac_cv_func_fseeko = yes; then
20268
20269cat >>confdefs.h <<\_ACEOF
20270#define HAVE_FSEEKO 1
20271_ACEOF
20272
20273fi
20274
5b674b9d
DE
20275 if test "$ac_cv_sys_largefile_source" != no; then
20276 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20277 fi
20278 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20279fi
20280
20281echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20282echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20283if test "${ac_cv_c_bigendian+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20285else
20286 ac_cv_c_bigendian=unknown
20287# See if sys/param.h defines the BYTE_ORDER macro.
20288cat >conftest.$ac_ext <<_ACEOF
20289/* confdefs.h. */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h. */
20294#include <sys/types.h>
20295#include <sys/param.h>
20296int
20297main ()
20298{
20299
20300#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20301 bogus endian macros
20302#endif
20303 ;
20304 return 0;
20305}
20306_ACEOF
20307rm -f conftest.$ac_objext
20308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20309 (eval $ac_compile) 2>conftest.er1
a848cd7e 20310 ac_status=$?
ac1cb8d3
VS
20311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
a848cd7e
SC
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
fb00f58d
JS
20316 { ac_try='test -z "$ac_c_werror_flag"
20317 || test ! -s conftest.err'
ac1cb8d3
VS
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 # It does; now see whether it defined to BIG_ENDIAN or not.
20330cat >conftest.$ac_ext <<_ACEOF
20331/* confdefs.h. */
20332_ACEOF
20333cat confdefs.h >>conftest.$ac_ext
20334cat >>conftest.$ac_ext <<_ACEOF
20335/* end confdefs.h. */
20336#include <sys/types.h>
20337#include <sys/param.h>
20338int
20339main ()
20340{
20341
20342#if BYTE_ORDER != BIG_ENDIAN
20343 not big endian
20344#endif
20345 ;
20346 return 0;
20347}
20348_ACEOF
20349rm -f conftest.$ac_objext
20350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20351 (eval $ac_compile) 2>conftest.er1
a848cd7e 20352 ac_status=$?
ac1cb8d3
VS
20353 grep -v '^ *+' conftest.er1 >conftest.err
20354 rm -f conftest.er1
20355 cat conftest.err >&5
a848cd7e
SC
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } &&
fb00f58d
JS
20358 { ac_try='test -z "$ac_c_werror_flag"
20359 || test ! -s conftest.err'
ac1cb8d3
VS
20360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361 (eval $ac_try) 2>&5
20362 ac_status=$?
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }; } &&
20365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; }; then
20371 ac_cv_c_bigendian=yes
20372else
20373 echo "$as_me: failed program was:" >&5
20374sed 's/^/| /' conftest.$ac_ext >&5
20375
20376ac_cv_c_bigendian=no
20377fi
ac1cb8d3 20378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20379else
20380 echo "$as_me: failed program was:" >&5
20381sed 's/^/| /' conftest.$ac_ext >&5
20382
20383fi
ac1cb8d3 20384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20385if test $ac_cv_c_bigendian = unknown; then
20386if test "$cross_compiling" = yes; then
20387 ac_cv_c_bigendian=unknown
20388else
20389 cat >conftest.$ac_ext <<_ACEOF
20390/* confdefs.h. */
20391_ACEOF
20392cat confdefs.h >>conftest.$ac_ext
20393cat >>conftest.$ac_ext <<_ACEOF
20394/* end confdefs.h. */
20395main () {
20396 /* Are we little or big endian? From Harbison&Steele. */
20397 union
20398 {
20399 long l;
20400 char c[sizeof (long)];
20401 } u;
20402 u.l = 1;
20403 exit (u.c[sizeof (long) - 1] == 1);
20404}
20405_ACEOF
20406rm -f conftest$ac_exeext
20407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20408 (eval $ac_link) 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20414 ac_status=$?
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 ac_cv_c_bigendian=no
20418else
20419 echo "$as_me: program exited with status $ac_status" >&5
20420echo "$as_me: failed program was:" >&5
20421sed 's/^/| /' conftest.$ac_ext >&5
20422
20423( exit $ac_status )
20424ac_cv_c_bigendian=yes
20425fi
ac1cb8d3 20426rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20427fi
20428fi
20429fi
20430echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20431echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20432if test $ac_cv_c_bigendian = unknown; then
20433 { 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
20434echo "$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;}
20435fi
20436if test $ac_cv_c_bigendian = yes; then
20437 cat >>confdefs.h <<\_ACEOF
20438#define WORDS_BIGENDIAN 1
20439_ACEOF
20440
20441fi
20442
20443
20444ac_ext=cc
20445ac_cpp='$CXXCPP $CPPFLAGS'
20446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20449echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20450echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20451if test -z "$CXXCPP"; then
20452 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20454else
20455 # Double quotes because CXXCPP needs to be expanded
20456 for CXXCPP in "$CXX -E" "/lib/cpp"
20457 do
20458 ac_preproc_ok=false
20459for ac_cxx_preproc_warn_flag in '' yes
20460do
20461 # Use a header file that comes with gcc, so configuring glibc
20462 # with a fresh cross-compiler works.
20463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20464 # <limits.h> exists even on freestanding compilers.
20465 # On the NeXT, cc -E runs the code through the compiler's parser,
20466 # not just through cpp. "Syntax error" is here to catch this case.
20467 cat >conftest.$ac_ext <<_ACEOF
20468/* confdefs.h. */
20469_ACEOF
20470cat confdefs.h >>conftest.$ac_ext
20471cat >>conftest.$ac_ext <<_ACEOF
20472/* end confdefs.h. */
20473#ifdef __STDC__
20474# include <limits.h>
20475#else
20476# include <assert.h>
20477#endif
ac1cb8d3 20478 Syntax error
a848cd7e
SC
20479_ACEOF
20480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20482 ac_status=$?
20483 grep -v '^ *+' conftest.er1 >conftest.err
20484 rm -f conftest.er1
20485 cat conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } >/dev/null; then
20488 if test -s conftest.err; then
20489 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20490 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20491 else
20492 ac_cpp_err=
20493 fi
20494else
20495 ac_cpp_err=yes
20496fi
20497if test -z "$ac_cpp_err"; then
20498 :
20499else
20500 echo "$as_me: failed program was:" >&5
20501sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 # Broken: fails on valid input.
20504continue
20505fi
20506rm -f conftest.err conftest.$ac_ext
20507
20508 # OK, works on sane cases. Now check whether non-existent headers
20509 # can be detected and how.
20510 cat >conftest.$ac_ext <<_ACEOF
20511/* confdefs.h. */
20512_ACEOF
20513cat confdefs.h >>conftest.$ac_ext
20514cat >>conftest.$ac_ext <<_ACEOF
20515/* end confdefs.h. */
20516#include <ac_nonexistent.h>
20517_ACEOF
20518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20520 ac_status=$?
20521 grep -v '^ *+' conftest.er1 >conftest.err
20522 rm -f conftest.er1
20523 cat conftest.err >&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); } >/dev/null; then
20526 if test -s conftest.err; then
20527 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20528 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20529 else
20530 ac_cpp_err=
20531 fi
20532else
20533 ac_cpp_err=yes
20534fi
20535if test -z "$ac_cpp_err"; then
20536 # Broken: success on invalid input.
20537continue
20538else
20539 echo "$as_me: failed program was:" >&5
20540sed 's/^/| /' conftest.$ac_ext >&5
20541
20542 # Passes both tests.
20543ac_preproc_ok=:
20544break
20545fi
20546rm -f conftest.err conftest.$ac_ext
20547
20548done
20549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20550rm -f conftest.err conftest.$ac_ext
20551if $ac_preproc_ok; then
20552 break
20553fi
20554
20555 done
20556 ac_cv_prog_CXXCPP=$CXXCPP
20557
20558fi
20559 CXXCPP=$ac_cv_prog_CXXCPP
20560else
20561 ac_cv_prog_CXXCPP=$CXXCPP
20562fi
20563echo "$as_me:$LINENO: result: $CXXCPP" >&5
20564echo "${ECHO_T}$CXXCPP" >&6
20565ac_preproc_ok=false
20566for ac_cxx_preproc_warn_flag in '' yes
20567do
20568 # Use a header file that comes with gcc, so configuring glibc
20569 # with a fresh cross-compiler works.
20570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20571 # <limits.h> exists even on freestanding compilers.
20572 # On the NeXT, cc -E runs the code through the compiler's parser,
20573 # not just through cpp. "Syntax error" is here to catch this case.
20574 cat >conftest.$ac_ext <<_ACEOF
20575/* confdefs.h. */
20576_ACEOF
20577cat confdefs.h >>conftest.$ac_ext
20578cat >>conftest.$ac_ext <<_ACEOF
20579/* end confdefs.h. */
20580#ifdef __STDC__
20581# include <limits.h>
20582#else
20583# include <assert.h>
20584#endif
ac1cb8d3 20585 Syntax error
a848cd7e
SC
20586_ACEOF
20587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20589 ac_status=$?
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } >/dev/null; then
20595 if test -s conftest.err; then
20596 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20597 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20598 else
20599 ac_cpp_err=
20600 fi
20601else
20602 ac_cpp_err=yes
20603fi
20604if test -z "$ac_cpp_err"; then
20605 :
20606else
20607 echo "$as_me: failed program was:" >&5
20608sed 's/^/| /' conftest.$ac_ext >&5
20609
20610 # Broken: fails on valid input.
20611continue
20612fi
20613rm -f conftest.err conftest.$ac_ext
20614
20615 # OK, works on sane cases. Now check whether non-existent headers
20616 # can be detected and how.
20617 cat >conftest.$ac_ext <<_ACEOF
20618/* confdefs.h. */
20619_ACEOF
20620cat confdefs.h >>conftest.$ac_ext
20621cat >>conftest.$ac_ext <<_ACEOF
20622/* end confdefs.h. */
20623#include <ac_nonexistent.h>
20624_ACEOF
20625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20627 ac_status=$?
20628 grep -v '^ *+' conftest.er1 >conftest.err
20629 rm -f conftest.er1
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } >/dev/null; then
20633 if test -s conftest.err; then
20634 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20635 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20636 else
20637 ac_cpp_err=
20638 fi
20639else
20640 ac_cpp_err=yes
20641fi
20642if test -z "$ac_cpp_err"; then
20643 # Broken: success on invalid input.
20644continue
20645else
20646 echo "$as_me: failed program was:" >&5
20647sed 's/^/| /' conftest.$ac_ext >&5
20648
20649 # Passes both tests.
20650ac_preproc_ok=:
20651break
20652fi
20653rm -f conftest.err conftest.$ac_ext
20654
20655done
20656# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20657rm -f conftest.err conftest.$ac_ext
20658if $ac_preproc_ok; then
20659 :
20660else
20661 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20662See \`config.log' for more details." >&5
20663echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20664See \`config.log' for more details." >&2;}
20665 { (exit 1); exit 1; }; }
20666fi
20667
20668ac_ext=cc
20669ac_cpp='$CXXCPP $CPPFLAGS'
20670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20673
20674
20675
20676
20677
20678 ac_ext=cc
20679ac_cpp='$CXXCPP $CPPFLAGS'
20680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20683
20684
20685
20686for ac_header in iostream
20687do
20688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20689if eval "test \"\${$as_ac_Header+set}\" = set"; then
20690 echo "$as_me:$LINENO: checking for $ac_header" >&5
20691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20692if eval "test \"\${$as_ac_Header+set}\" = set"; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20694fi
20695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20697else
20698 # Is the header compilable?
20699echo "$as_me:$LINENO: checking $ac_header usability" >&5
20700echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20701cat >conftest.$ac_ext <<_ACEOF
20702/* confdefs.h. */
20703_ACEOF
20704cat confdefs.h >>conftest.$ac_ext
20705cat >>conftest.$ac_ext <<_ACEOF
20706/* end confdefs.h. */
20707$ac_includes_default
20708#include <$ac_header>
20709_ACEOF
20710rm -f conftest.$ac_objext
20711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20712 (eval $ac_compile) 2>conftest.er1
a848cd7e 20713 ac_status=$?
ac1cb8d3
VS
20714 grep -v '^ *+' conftest.er1 >conftest.err
20715 rm -f conftest.er1
20716 cat conftest.err >&5
a848cd7e
SC
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } &&
fb00f58d
JS
20719 { ac_try='test -z "$ac_cxx_werror_flag"
20720 || test ! -s conftest.err'
ac1cb8d3
VS
20721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20722 (eval $ac_try) 2>&5
20723 ac_status=$?
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); }; } &&
20726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20729 ac_status=$?
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; }; then
20732 ac_header_compiler=yes
20733else
20734 echo "$as_me: failed program was:" >&5
20735sed 's/^/| /' conftest.$ac_ext >&5
20736
20737ac_header_compiler=no
20738fi
ac1cb8d3 20739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20740echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20741echo "${ECHO_T}$ac_header_compiler" >&6
20742
20743# Is the header present?
20744echo "$as_me:$LINENO: checking $ac_header presence" >&5
20745echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20746cat >conftest.$ac_ext <<_ACEOF
20747/* confdefs.h. */
20748_ACEOF
20749cat confdefs.h >>conftest.$ac_ext
20750cat >>conftest.$ac_ext <<_ACEOF
20751/* end confdefs.h. */
20752#include <$ac_header>
20753_ACEOF
20754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20756 ac_status=$?
20757 grep -v '^ *+' conftest.er1 >conftest.err
20758 rm -f conftest.er1
20759 cat conftest.err >&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } >/dev/null; then
20762 if test -s conftest.err; then
20763 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20764 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20765 else
20766 ac_cpp_err=
20767 fi
20768else
20769 ac_cpp_err=yes
20770fi
20771if test -z "$ac_cpp_err"; then
20772 ac_header_preproc=yes
20773else
20774 echo "$as_me: failed program was:" >&5
20775sed 's/^/| /' conftest.$ac_ext >&5
20776
20777 ac_header_preproc=no
20778fi
20779rm -f conftest.err conftest.$ac_ext
20780echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20781echo "${ECHO_T}$ac_header_preproc" >&6
20782
20783# So? What about this header?
ac1cb8d3
VS
20784case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20785 yes:no: )
a848cd7e
SC
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20787echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20789echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20790 ac_header_preproc=yes
a848cd7e 20791 ;;
ac1cb8d3 20792 no:yes:* )
a848cd7e
SC
20793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20796echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20798echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20800echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20802echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20804echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20805 (
20806 cat <<\_ASBOX
ac1cb8d3
VS
20807## ----------------------------------------- ##
20808## Report this to wx-dev@lists.wxwidgets.org ##
20809## ----------------------------------------- ##
a848cd7e
SC
20810_ASBOX
20811 ) |
20812 sed "s/^/$as_me: WARNING: /" >&2
20813 ;;
20814esac
20815echo "$as_me:$LINENO: checking for $ac_header" >&5
20816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20817if eval "test \"\${$as_ac_Header+set}\" = set"; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20819else
ac1cb8d3 20820 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20821fi
20822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20824
20825fi
20826if test `eval echo '${'$as_ac_Header'}'` = yes; then
20827 cat >>confdefs.h <<_ACEOF
20828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20829_ACEOF
20830
20831fi
20832
20833done
20834
20835
20836 if test "$ac_cv_header_iostream" = "yes" ; then
20837 :
20838 else
20839 cat >>confdefs.h <<\_ACEOF
20840#define wxUSE_IOSTREAMH 1
20841_ACEOF
20842
20843 fi
20844
20845 ac_ext=c
20846ac_cpp='$CPP $CPPFLAGS'
20847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20849ac_compiler_gnu=$ac_cv_c_compiler_gnu
20850
20851
20852
20853
20854 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20855echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20856if test "${wx_cv_cpp_bool+set}" = set; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20858else
20859
20860
20861
20862 ac_ext=cc
20863ac_cpp='$CXXCPP $CPPFLAGS'
20864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20867
20868
20869 cat >conftest.$ac_ext <<_ACEOF
20870/* confdefs.h. */
20871_ACEOF
20872cat confdefs.h >>conftest.$ac_ext
20873cat >>conftest.$ac_ext <<_ACEOF
20874/* end confdefs.h. */
20875
20876
20877int
20878main ()
20879{
20880
20881 bool b = true;
20882
20883 return 0;
20884
20885 ;
20886 return 0;
20887}
20888_ACEOF
20889rm -f conftest.$ac_objext
20890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20891 (eval $ac_compile) 2>conftest.er1
a848cd7e 20892 ac_status=$?
ac1cb8d3
VS
20893 grep -v '^ *+' conftest.er1 >conftest.err
20894 rm -f conftest.er1
20895 cat conftest.err >&5
a848cd7e
SC
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } &&
fb00f58d
JS
20898 { ac_try='test -z "$ac_cxx_werror_flag"
20899 || test ! -s conftest.err'
ac1cb8d3
VS
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; } &&
20905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; }; then
20911
20912 wx_cv_cpp_bool=yes
20913
20914else
20915 echo "$as_me: failed program was:" >&5
20916sed 's/^/| /' conftest.$ac_ext >&5
20917
20918
20919 wx_cv_cpp_bool=no
20920
20921
20922fi
ac1cb8d3 20923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20924
20925 ac_ext=c
20926ac_cpp='$CPP $CPPFLAGS'
20927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20929ac_compiler_gnu=$ac_cv_c_compiler_gnu
20930
20931
20932fi
20933echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20934echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20935
20936 if test "$wx_cv_cpp_bool" = "yes"; then
20937 cat >>confdefs.h <<\_ACEOF
20938#define HAVE_BOOL 1
20939_ACEOF
20940
20941 fi
20942
20943
20944
20945 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20946echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20947if test "${wx_cv_explicit+set}" = set; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20949else
20950
20951
20952
20953 ac_ext=cc
20954ac_cpp='$CXXCPP $CPPFLAGS'
20955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20958
20959
20960 cat >conftest.$ac_ext <<_ACEOF
20961/* confdefs.h. */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
20965/* end confdefs.h. */
20966
20967 class Foo { public: explicit Foo(int) {} };
20968
20969int
20970main ()
20971{
20972
20973 return 0;
20974
20975 ;
20976 return 0;
20977}
20978_ACEOF
20979rm -f conftest.$ac_objext
20980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20981 (eval $ac_compile) 2>conftest.er1
a848cd7e 20982 ac_status=$?
ac1cb8d3
VS
20983 grep -v '^ *+' conftest.er1 >conftest.err
20984 rm -f conftest.er1
20985 cat conftest.err >&5
a848cd7e
SC
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } &&
fb00f58d
JS
20988 { ac_try='test -z "$ac_cxx_werror_flag"
20989 || test ! -s conftest.err'
ac1cb8d3
VS
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; } &&
20995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20998 ac_status=$?
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; }; then
21001
21002 cat >conftest.$ac_ext <<_ACEOF
21003/* confdefs.h. */
21004_ACEOF
21005cat confdefs.h >>conftest.$ac_ext
21006cat >>conftest.$ac_ext <<_ACEOF
21007/* end confdefs.h. */
21008
21009 class Foo { public: explicit Foo(int) {} };
21010 static void TakeFoo(const Foo& foo) { }
21011
21012int
21013main ()
21014{
21015
21016 TakeFoo(17);
21017 return 0;
21018
21019 ;
21020 return 0;
21021}
21022_ACEOF
21023rm -f conftest.$ac_objext
21024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21025 (eval $ac_compile) 2>conftest.er1
a848cd7e 21026 ac_status=$?
ac1cb8d3
VS
21027 grep -v '^ *+' conftest.er1 >conftest.err
21028 rm -f conftest.er1
21029 cat conftest.err >&5
a848cd7e
SC
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } &&
fb00f58d
JS
21032 { ac_try='test -z "$ac_cxx_werror_flag"
21033 || test ! -s conftest.err'
ac1cb8d3
VS
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
21039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 wx_cv_explicit=no
21046else
21047 echo "$as_me: failed program was:" >&5
21048sed 's/^/| /' conftest.$ac_ext >&5
21049
21050wx_cv_explicit=yes
21051
21052fi
ac1cb8d3 21053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21054
21055else
21056 echo "$as_me: failed program was:" >&5
21057sed 's/^/| /' conftest.$ac_ext >&5
21058
21059wx_cv_explicit=no
21060
21061fi
ac1cb8d3 21062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21063
21064 ac_ext=c
21065ac_cpp='$CPP $CPPFLAGS'
21066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21068ac_compiler_gnu=$ac_cv_c_compiler_gnu
21069
21070
21071fi
21072echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21073echo "${ECHO_T}$wx_cv_explicit" >&6
21074
21075 if test "$wx_cv_explicit" = "yes"; then
21076 cat >>confdefs.h <<\_ACEOF
21077#define HAVE_EXPLICIT 1
21078_ACEOF
21079
21080 fi
21081
21082
21083echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21084echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21085if test "${ac_cv_cxx_const_cast+set}" = set; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21087else
21088
21089
21090 ac_ext=cc
21091ac_cpp='$CXXCPP $CPPFLAGS'
21092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21095
21096 cat >conftest.$ac_ext <<_ACEOF
21097/* confdefs.h. */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h. */
21102
21103int
21104main ()
21105{
21106int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21107 ;
21108 return 0;
21109}
21110_ACEOF
21111rm -f conftest.$ac_objext
21112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21113 (eval $ac_compile) 2>conftest.er1
a848cd7e 21114 ac_status=$?
ac1cb8d3
VS
21115 grep -v '^ *+' conftest.er1 >conftest.err
21116 rm -f conftest.er1
21117 cat conftest.err >&5
a848cd7e
SC
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } &&
fb00f58d
JS
21120 { ac_try='test -z "$ac_cxx_werror_flag"
21121 || test ! -s conftest.err'
ac1cb8d3
VS
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21124 ac_status=$?
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; } &&
21127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129 (eval $ac_try) 2>&5
21130 ac_status=$?
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; }; then
21133 ac_cv_cxx_const_cast=yes
21134else
21135 echo "$as_me: failed program was:" >&5
21136sed 's/^/| /' conftest.$ac_ext >&5
21137
21138ac_cv_cxx_const_cast=no
21139fi
ac1cb8d3 21140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21141 ac_ext=c
21142ac_cpp='$CPP $CPPFLAGS'
21143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21145ac_compiler_gnu=$ac_cv_c_compiler_gnu
21146
21147
21148fi
21149echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21150echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21151if test "$ac_cv_cxx_const_cast" = yes; then
21152
21153cat >>confdefs.h <<\_ACEOF
21154#define HAVE_CONST_CAST
21155_ACEOF
21156
21157fi
21158
7714864e
RL
21159echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21160echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21161if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21163else
21164
21165
21166 ac_ext=cc
21167ac_cpp='$CXXCPP $CPPFLAGS'
21168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21171
21172 cat >conftest.$ac_ext <<_ACEOF
21173/* confdefs.h. */
21174_ACEOF
21175cat confdefs.h >>conftest.$ac_ext
21176cat >>conftest.$ac_ext <<_ACEOF
21177/* end confdefs.h. */
21178#include <typeinfo>
21179class Base { public : Base () {} virtual void f () = 0;};
21180class Derived : public Base { public : Derived () {} virtual void f () {} };
21181class Unrelated { public : Unrelated () {} };
21182int g (Unrelated&) { return 0; }
21183int
21184main ()
21185{
21186
21187Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21188 ;
21189 return 0;
21190}
21191_ACEOF
21192rm -f conftest.$ac_objext
21193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21194 (eval $ac_compile) 2>conftest.er1
21195 ac_status=$?
21196 grep -v '^ *+' conftest.er1 >conftest.err
21197 rm -f conftest.er1
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
fb00f58d
JS
21201 { ac_try='test -z "$ac_cxx_werror_flag"
21202 || test ! -s conftest.err'
7714864e
RL
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21205 ac_status=$?
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; } &&
21208 { ac_try='test -s conftest.$ac_objext'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; }; then
21214 ac_cv_cxx_reinterpret_cast=yes
21215else
21216 echo "$as_me: failed program was:" >&5
21217sed 's/^/| /' conftest.$ac_ext >&5
21218
21219ac_cv_cxx_reinterpret_cast=no
21220fi
21221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21222 ac_ext=c
21223ac_cpp='$CPP $CPPFLAGS'
21224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21226ac_compiler_gnu=$ac_cv_c_compiler_gnu
21227
21228
21229fi
21230echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21231echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21232if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21233
21234cat >>confdefs.h <<\_ACEOF
21235#define HAVE_REINTERPRET_CAST
21236_ACEOF
21237
21238fi
21239
a848cd7e
SC
21240echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21241echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21242if test "${ac_cv_cxx_static_cast+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21244else
21245
21246
21247 ac_ext=cc
21248ac_cpp='$CXXCPP $CPPFLAGS'
21249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21252
21253 cat >conftest.$ac_ext <<_ACEOF
21254/* confdefs.h. */
21255_ACEOF
21256cat confdefs.h >>conftest.$ac_ext
21257cat >>conftest.$ac_ext <<_ACEOF
21258/* end confdefs.h. */
21259#include <typeinfo>
21260class Base { public : Base () {} virtual void f () = 0; };
21261class Derived : public Base { public : Derived () {} virtual void f () {} };
21262int g (Derived&) { return 0; }
21263int
21264main ()
21265{
21266
21267Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21268 ;
21269 return 0;
21270}
21271_ACEOF
21272rm -f conftest.$ac_objext
21273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21274 (eval $ac_compile) 2>conftest.er1
a848cd7e 21275 ac_status=$?
ac1cb8d3
VS
21276 grep -v '^ *+' conftest.er1 >conftest.err
21277 rm -f conftest.er1
21278 cat conftest.err >&5
a848cd7e
SC
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } &&
fb00f58d
JS
21281 { ac_try='test -z "$ac_cxx_werror_flag"
21282 || test ! -s conftest.err'
ac1cb8d3
VS
21283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284 (eval $ac_try) 2>&5
21285 ac_status=$?
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; } &&
21288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21291 ac_status=$?
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21294 ac_cv_cxx_static_cast=yes
21295else
21296 echo "$as_me: failed program was:" >&5
21297sed 's/^/| /' conftest.$ac_ext >&5
21298
21299ac_cv_cxx_static_cast=no
21300fi
ac1cb8d3 21301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21302 ac_ext=c
21303ac_cpp='$CPP $CPPFLAGS'
21304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21306ac_compiler_gnu=$ac_cv_c_compiler_gnu
21307
21308
21309fi
21310echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21311echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21312if test "$ac_cv_cxx_static_cast" = yes; then
21313
21314cat >>confdefs.h <<\_ACEOF
21315#define HAVE_STATIC_CAST
21316_ACEOF
21317
21318fi
21319
21320
f56c22b4 21321if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21322 ac_ext=cc
21323ac_cpp='$CXXCPP $CPPFLAGS'
21324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21327
21328
f56c22b4
MW
21329 if test "$wxUSE_UNICODE" = "yes"; then
21330 std_string="std::wstring"
21331 char_type="wchar_t"
21332 else
21333 std_string="std::string"
21334 char_type="char"
21335 fi
21336
21337 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21338echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21339 cat >conftest.$ac_ext <<_ACEOF
21340/* confdefs.h. */
21341_ACEOF
21342cat confdefs.h >>conftest.$ac_ext
21343cat >>conftest.$ac_ext <<_ACEOF
21344/* end confdefs.h. */
21345#include <string>
a848cd7e
SC
21346int
21347main ()
21348{
f56c22b4 21349$std_string foo;
a848cd7e
SC
21350 ;
21351 return 0;
21352}
21353_ACEOF
21354rm -f conftest.$ac_objext
21355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21356 (eval $ac_compile) 2>conftest.er1
a848cd7e 21357 ac_status=$?
ac1cb8d3
VS
21358 grep -v '^ *+' conftest.er1 >conftest.err
21359 rm -f conftest.er1
21360 cat conftest.err >&5
a848cd7e
SC
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } &&
fb00f58d
JS
21363 { ac_try='test -z "$ac_cxx_werror_flag"
21364 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
21370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; }; then
21376 echo "$as_me:$LINENO: result: yes" >&5
21377echo "${ECHO_T}yes" >&6
0a08f02a
MB
21378 cat >>confdefs.h <<\_ACEOF
21379#define HAVE_STD_WSTRING 1
21380_ACEOF
21381
a848cd7e
SC
21382else
21383 echo "$as_me: failed program was:" >&5
21384sed 's/^/| /' conftest.$ac_ext >&5
21385
21386echo "$as_me:$LINENO: result: no" >&5
21387echo "${ECHO_T}no" >&6
f56c22b4
MW
21388 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21389echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21390 cat >conftest.$ac_ext <<_ACEOF
21391/* confdefs.h. */
21392_ACEOF
21393cat confdefs.h >>conftest.$ac_ext
21394cat >>conftest.$ac_ext <<_ACEOF
21395/* end confdefs.h. */
21396
21397 #ifdef HAVE_WCHAR_H
21398 # ifdef __CYGWIN__
21399 # include <stddef.h>
21400 # endif
21401 # include <wchar.h>
21402 #endif
21403 #ifdef HAVE_STDLIB_H
21404 # include <stdlib.h>
21405 #endif
21406 #include <stdio.h>
21407 #include <string>
21408
21409int
21410main ()
21411{
f56c22b4
MW
21412std::basic_string<$char_type> foo;
21413 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21414 ;
21415 return 0;
21416}
21417_ACEOF
21418rm -f conftest.$ac_objext
21419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21420 (eval $ac_compile) 2>conftest.er1
21421 ac_status=$?
21422 grep -v '^ *+' conftest.er1 >conftest.err
21423 rm -f conftest.er1
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } &&
fb00f58d
JS
21427 { ac_try='test -z "$ac_cxx_werror_flag"
21428 || test ! -s conftest.err'
0a08f02a
MB
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21431 ac_status=$?
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; } &&
21434 { ac_try='test -s conftest.$ac_objext'
21435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436 (eval $ac_try) 2>&5
21437 ac_status=$?
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; }; then
21440 echo "$as_me:$LINENO: result: yes" >&5
21441echo "${ECHO_T}yes" >&6
21442else
21443 echo "$as_me: failed program was:" >&5
21444sed 's/^/| /' conftest.$ac_ext >&5
21445
21446echo "$as_me:$LINENO: result: no" >&5
21447echo "${ECHO_T}no" >&6
f56c22b4 21448 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21449 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21450echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21451 { (exit 1); exit 1; }; }
21452 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21453 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21454echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21455 { (exit 1); exit 1; }; }
f56c22b4
MW
21456 else
21457 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21458echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21459 wxUSE_STD_STRING=no
21460 fi
21461
0a08f02a 21462
a848cd7e 21463fi
ac1cb8d3 21464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21465
0a08f02a
MB
21466fi
21467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21468
21469 ac_ext=c
21470ac_cpp='$CPP $CPPFLAGS'
21471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21473ac_compiler_gnu=$ac_cv_c_compiler_gnu
21474
21475fi
21476
21477if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21478 ac_ext=cc
21479ac_cpp='$CXXCPP $CPPFLAGS'
21480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21483
21484
21485 echo "$as_me:$LINENO: checking for std::istream" >&5
21486echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21487if test "${ac_cv_type_std__istream+set}" = set; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21489else
21490 cat >conftest.$ac_ext <<_ACEOF
21491/* confdefs.h. */
21492_ACEOF
21493cat confdefs.h >>conftest.$ac_ext
21494cat >>conftest.$ac_ext <<_ACEOF
21495/* end confdefs.h. */
21496#include <iostream>
21497
21498int
21499main ()
21500{
21501if ((std::istream *) 0)
21502 return 0;
21503if (sizeof (std::istream))
21504 return 0;
21505 ;
21506 return 0;
21507}
21508_ACEOF
21509rm -f conftest.$ac_objext
21510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21511 (eval $ac_compile) 2>conftest.er1
21512 ac_status=$?
21513 grep -v '^ *+' conftest.er1 >conftest.err
21514 rm -f conftest.er1
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } &&
fb00f58d
JS
21518 { ac_try='test -z "$ac_cxx_werror_flag"
21519 || test ! -s conftest.err'
f56c22b4
MW
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; } &&
21525 { ac_try='test -s conftest.$ac_objext'
21526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21527 (eval $ac_try) 2>&5
21528 ac_status=$?
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); }; }; then
21531 ac_cv_type_std__istream=yes
21532else
21533 echo "$as_me: failed program was:" >&5
21534sed 's/^/| /' conftest.$ac_ext >&5
21535
21536ac_cv_type_std__istream=no
21537fi
21538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21539fi
21540echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21541echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21542if test $ac_cv_type_std__istream = yes; then
21543
21544cat >>confdefs.h <<_ACEOF
21545#define HAVE_STD__ISTREAM 1
21546_ACEOF
21547
21548
21549else
21550 wxUSE_STD_IOSTREAM=no
21551fi
21552echo "$as_me:$LINENO: checking for std::ostream" >&5
21553echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21554if test "${ac_cv_type_std__ostream+set}" = set; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21556else
21557 cat >conftest.$ac_ext <<_ACEOF
21558/* confdefs.h. */
21559_ACEOF
21560cat confdefs.h >>conftest.$ac_ext
21561cat >>conftest.$ac_ext <<_ACEOF
21562/* end confdefs.h. */
21563#include <iostream>
21564
21565int
21566main ()
21567{
21568if ((std::ostream *) 0)
21569 return 0;
21570if (sizeof (std::ostream))
21571 return 0;
21572 ;
21573 return 0;
21574}
21575_ACEOF
21576rm -f conftest.$ac_objext
21577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21578 (eval $ac_compile) 2>conftest.er1
21579 ac_status=$?
21580 grep -v '^ *+' conftest.er1 >conftest.err
21581 rm -f conftest.er1
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } &&
fb00f58d
JS
21585 { ac_try='test -z "$ac_cxx_werror_flag"
21586 || test ! -s conftest.err'
f56c22b4
MW
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21589 ac_status=$?
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; } &&
21592 { ac_try='test -s conftest.$ac_objext'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; }; then
21598 ac_cv_type_std__ostream=yes
21599else
21600 echo "$as_me: failed program was:" >&5
21601sed 's/^/| /' conftest.$ac_ext >&5
21602
21603ac_cv_type_std__ostream=no
21604fi
21605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21606fi
21607echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21608echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21609if test $ac_cv_type_std__ostream = yes; then
21610
21611cat >>confdefs.h <<_ACEOF
21612#define HAVE_STD__OSTREAM 1
21613_ACEOF
21614
21615
21616else
21617 wxUSE_STD_IOSTREAM=no
21618fi
21619
21620
21621 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21622 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21623 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21624echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21625 { (exit 1); exit 1; }; }
21626 else
21627 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21628echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21629 fi
f56c22b4
MW
21630 fi
21631
21632 ac_ext=c
21633ac_cpp='$CPP $CPPFLAGS'
21634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21636ac_compiler_gnu=$ac_cv_c_compiler_gnu
21637
21638fi
21639
21640if test "$wxUSE_STL" = "yes"; then
21641 ac_ext=cc
21642ac_cpp='$CXXCPP $CPPFLAGS'
21643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21646
21647
21648 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21649echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21650 cat >conftest.$ac_ext <<_ACEOF
21651/* confdefs.h. */
21652_ACEOF
21653cat confdefs.h >>conftest.$ac_ext
21654cat >>conftest.$ac_ext <<_ACEOF
21655/* end confdefs.h. */
21656#include <string>
0a08f02a
MB
21657 #include <functional>
21658 #include <algorithm>
21659 #include <vector>
21660 #include <list>
a848cd7e
SC
21661int
21662main ()
21663{
0a08f02a
MB
21664std::vector<int> moo;
21665 std::list<int> foo;
21666 std::vector<int>::iterator it =
21667 std::find_if(moo.begin(), moo.end(),
21668 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21669 ;
21670 return 0;
21671}
21672_ACEOF
21673rm -f conftest.$ac_objext
21674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21675 (eval $ac_compile) 2>conftest.er1
a848cd7e 21676 ac_status=$?
ac1cb8d3
VS
21677 grep -v '^ *+' conftest.er1 >conftest.err
21678 rm -f conftest.er1
21679 cat conftest.err >&5
a848cd7e
SC
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } &&
fb00f58d
JS
21682 { ac_try='test -z "$ac_cxx_werror_flag"
21683 || test ! -s conftest.err'
ac1cb8d3
VS
21684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21685 (eval $ac_try) 2>&5
21686 ac_status=$?
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); }; } &&
21689 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21692 ac_status=$?
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; }; then
21695 echo "$as_me:$LINENO: result: yes" >&5
21696echo "${ECHO_T}yes" >&6
a848cd7e
SC
21697else
21698 echo "$as_me: failed program was:" >&5
21699sed 's/^/| /' conftest.$ac_ext >&5
21700
21701echo "$as_me:$LINENO: result: no" >&5
21702echo "${ECHO_T}no" >&6
0a08f02a
MB
21703 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21704echo "$as_me: error: Basic STL functionality missing" >&2;}
21705 { (exit 1); exit 1; }; }
a848cd7e 21706fi
ac1cb8d3 21707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21708
21709 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21710echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21711 cat >conftest.$ac_ext <<_ACEOF
21712/* confdefs.h. */
21713_ACEOF
21714cat confdefs.h >>conftest.$ac_ext
21715cat >>conftest.$ac_ext <<_ACEOF
21716/* end confdefs.h. */
21717#include <string>
21718int
21719main ()
21720{
21721std::string foo, bar;
21722 foo.compare(bar);
21723 foo.compare(1, 1, bar);
21724 foo.compare(1, 1, bar, 1, 1);
21725 foo.compare("");
21726 foo.compare(1, 1, "");
21727 foo.compare(1, 1, "", 2);
21728 ;
21729 return 0;
21730}
21731_ACEOF
21732rm -f conftest.$ac_objext
21733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21734 (eval $ac_compile) 2>conftest.er1
a848cd7e 21735 ac_status=$?
ac1cb8d3
VS
21736 grep -v '^ *+' conftest.er1 >conftest.err
21737 rm -f conftest.er1
21738 cat conftest.err >&5
a848cd7e
SC
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); } &&
fb00f58d
JS
21741 { ac_try='test -z "$ac_cxx_werror_flag"
21742 || test ! -s conftest.err'
ac1cb8d3
VS
21743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744 (eval $ac_try) 2>&5
21745 ac_status=$?
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; } &&
21748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750 (eval $ac_try) 2>&5
21751 ac_status=$?
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); }; }; then
21754 echo "$as_me:$LINENO: result: yes" >&5
21755echo "${ECHO_T}yes" >&6
21756 cat >>confdefs.h <<\_ACEOF
21757#define HAVE_STD_STRING_COMPARE 1
21758_ACEOF
21759
21760else
21761 echo "$as_me: failed program was:" >&5
21762sed 's/^/| /' conftest.$ac_ext >&5
21763
21764echo "$as_me:$LINENO: result: no" >&5
21765echo "${ECHO_T}no" >&6
21766fi
ac1cb8d3 21767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21768
21769 if test "${ac_cv_header_hash_map+set}" = set; then
21770 echo "$as_me:$LINENO: checking for hash_map" >&5
21771echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21772if test "${ac_cv_header_hash_map+set}" = set; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21774fi
21775echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21776echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21777else
21778 # Is the header compilable?
21779echo "$as_me:$LINENO: checking hash_map usability" >&5
21780echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21781cat >conftest.$ac_ext <<_ACEOF
21782/* confdefs.h. */
21783_ACEOF
21784cat confdefs.h >>conftest.$ac_ext
21785cat >>conftest.$ac_ext <<_ACEOF
21786/* end confdefs.h. */
21787$ac_includes_default
21788#include <hash_map>
21789_ACEOF
21790rm -f conftest.$ac_objext
21791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21792 (eval $ac_compile) 2>conftest.er1
bdcade0a 21793 ac_status=$?
ac1cb8d3
VS
21794 grep -v '^ *+' conftest.er1 >conftest.err
21795 rm -f conftest.er1
21796 cat conftest.err >&5
bdcade0a
MB
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } &&
fb00f58d
JS
21799 { ac_try='test -z "$ac_cxx_werror_flag"
21800 || test ! -s conftest.err'
ac1cb8d3
VS
21801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802 (eval $ac_try) 2>&5
21803 ac_status=$?
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); }; } &&
21806 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808 (eval $ac_try) 2>&5
21809 ac_status=$?
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); }; }; then
21812 ac_header_compiler=yes
21813else
21814 echo "$as_me: failed program was:" >&5
21815sed 's/^/| /' conftest.$ac_ext >&5
21816
21817ac_header_compiler=no
21818fi
ac1cb8d3 21819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21820echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21821echo "${ECHO_T}$ac_header_compiler" >&6
21822
21823# Is the header present?
21824echo "$as_me:$LINENO: checking hash_map presence" >&5
21825echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21826cat >conftest.$ac_ext <<_ACEOF
21827/* confdefs.h. */
21828_ACEOF
21829cat confdefs.h >>conftest.$ac_ext
21830cat >>conftest.$ac_ext <<_ACEOF
21831/* end confdefs.h. */
21832#include <hash_map>
21833_ACEOF
21834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21836 ac_status=$?
21837 grep -v '^ *+' conftest.er1 >conftest.err
21838 rm -f conftest.er1
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } >/dev/null; then
21842 if test -s conftest.err; then
21843 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21844 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21845 else
21846 ac_cpp_err=
21847 fi
21848else
21849 ac_cpp_err=yes
21850fi
21851if test -z "$ac_cpp_err"; then
21852 ac_header_preproc=yes
21853else
21854 echo "$as_me: failed program was:" >&5
21855sed 's/^/| /' conftest.$ac_ext >&5
21856
21857 ac_header_preproc=no
21858fi
21859rm -f conftest.err conftest.$ac_ext
21860echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21861echo "${ECHO_T}$ac_header_preproc" >&6
21862
21863# So? What about this header?
ac1cb8d3
VS
21864case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21865 yes:no: )
bdcade0a
MB
21866 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21867echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21868 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21869echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21870 ac_header_preproc=yes
bdcade0a 21871 ;;
ac1cb8d3 21872 no:yes:* )
bdcade0a
MB
21873 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21874echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21875 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21876echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21878echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21880echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21881 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21882echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21883 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21884echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21885 (
21886 cat <<\_ASBOX
ac1cb8d3
VS
21887## ----------------------------------------- ##
21888## Report this to wx-dev@lists.wxwidgets.org ##
21889## ----------------------------------------- ##
bdcade0a
MB
21890_ASBOX
21891 ) |
21892 sed "s/^/$as_me: WARNING: /" >&2
21893 ;;
21894esac
21895echo "$as_me:$LINENO: checking for hash_map" >&5
21896echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21897if test "${ac_cv_header_hash_map+set}" = set; then
21898 echo $ECHO_N "(cached) $ECHO_C" >&6
21899else
21900 ac_cv_header_hash_map=$ac_header_preproc
21901fi
21902echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21903echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21904
21905fi
21906if test $ac_cv_header_hash_map = yes; then
21907 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21908echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21909 cat >conftest.$ac_ext <<_ACEOF
21910/* confdefs.h. */
21911_ACEOF
21912cat confdefs.h >>conftest.$ac_ext
21913cat >>conftest.$ac_ext <<_ACEOF
21914/* end confdefs.h. */
21915#include <hash_map>
21916 #include <hash_set>
21917int
21918main ()
21919{
21920std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21921 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21922 ;
21923 return 0;
21924}
21925_ACEOF
21926rm -f conftest.$ac_objext
21927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21928 (eval $ac_compile) 2>conftest.er1
bdcade0a 21929 ac_status=$?
ac1cb8d3
VS
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
bdcade0a
MB
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } &&
fb00f58d
JS
21935 { ac_try='test -z "$ac_cxx_werror_flag"
21936 || test ! -s conftest.err'
ac1cb8d3
VS
21937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; } &&
21942 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21944 (eval $ac_try) 2>&5
21945 ac_status=$?
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); }; }; then
21948 echo "$as_me:$LINENO: result: yes" >&5
21949echo "${ECHO_T}yes" >&6
21950 cat >>confdefs.h <<\_ACEOF
21951#define HAVE_HASH_MAP 1
21952_ACEOF
21953
21954 cat >>confdefs.h <<\_ACEOF
21955#define HAVE_STD_HASH_MAP 1
21956_ACEOF
21957
21958else
21959 echo "$as_me: failed program was:" >&5
21960sed 's/^/| /' conftest.$ac_ext >&5
21961
21962echo "$as_me:$LINENO: result: no" >&5
21963echo "${ECHO_T}no" >&6
21964fi
ac1cb8d3 21965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21966
21967fi
21968
21969
21970
21971 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21972 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21973echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21974if test "${ac_cv_header_ext_hash_map+set}" = set; then
21975 echo $ECHO_N "(cached) $ECHO_C" >&6
21976fi
21977echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21978echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21979else
21980 # Is the header compilable?
21981echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21982echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21983cat >conftest.$ac_ext <<_ACEOF
21984/* confdefs.h. */
21985_ACEOF
21986cat confdefs.h >>conftest.$ac_ext
21987cat >>conftest.$ac_ext <<_ACEOF
21988/* end confdefs.h. */
21989$ac_includes_default
21990#include <ext/hash_map>
21991_ACEOF
21992rm -f conftest.$ac_objext
21993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21994 (eval $ac_compile) 2>conftest.er1
bdcade0a 21995 ac_status=$?
ac1cb8d3
VS
21996 grep -v '^ *+' conftest.er1 >conftest.err
21997 rm -f conftest.er1
21998 cat conftest.err >&5
bdcade0a
MB
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } &&
fb00f58d
JS
22001 { ac_try='test -z "$ac_cxx_werror_flag"
22002 || test ! -s conftest.err'
ac1cb8d3
VS
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22005 ac_status=$?
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; } &&
22008 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 ac_header_compiler=yes
22015else
22016 echo "$as_me: failed program was:" >&5
22017sed 's/^/| /' conftest.$ac_ext >&5
22018
22019ac_header_compiler=no
22020fi
ac1cb8d3 22021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22022echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22023echo "${ECHO_T}$ac_header_compiler" >&6
22024
22025# Is the header present?
22026echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22027echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22028cat >conftest.$ac_ext <<_ACEOF
22029/* confdefs.h. */
22030_ACEOF
22031cat confdefs.h >>conftest.$ac_ext
22032cat >>conftest.$ac_ext <<_ACEOF
22033/* end confdefs.h. */
22034#include <ext/hash_map>
22035_ACEOF
22036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22038 ac_status=$?
22039 grep -v '^ *+' conftest.er1 >conftest.err
22040 rm -f conftest.er1
22041 cat conftest.err >&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } >/dev/null; then
22044 if test -s conftest.err; then
22045 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22046 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22047 else
22048 ac_cpp_err=
22049 fi
22050else
22051 ac_cpp_err=yes
22052fi
22053if test -z "$ac_cpp_err"; then
22054 ac_header_preproc=yes
22055else
22056 echo "$as_me: failed program was:" >&5
22057sed 's/^/| /' conftest.$ac_ext >&5
22058
22059 ac_header_preproc=no
22060fi
22061rm -f conftest.err conftest.$ac_ext
22062echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22063echo "${ECHO_T}$ac_header_preproc" >&6
22064
22065# So? What about this header?
ac1cb8d3
VS
22066case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22067 yes:no: )
bdcade0a
MB
22068 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22069echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22070 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22071echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22072 ac_header_preproc=yes
bdcade0a 22073 ;;
ac1cb8d3 22074 no:yes:* )
bdcade0a
MB
22075 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22076echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22077 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22078echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22079 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22080echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22082echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22083 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22084echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22085 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22086echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22087 (
22088 cat <<\_ASBOX
ac1cb8d3
VS
22089## ----------------------------------------- ##
22090## Report this to wx-dev@lists.wxwidgets.org ##
22091## ----------------------------------------- ##
bdcade0a
MB
22092_ASBOX
22093 ) |
22094 sed "s/^/$as_me: WARNING: /" >&2
22095 ;;
22096esac
22097echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22098echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22099if test "${ac_cv_header_ext_hash_map+set}" = set; then
22100 echo $ECHO_N "(cached) $ECHO_C" >&6
22101else
22102 ac_cv_header_ext_hash_map=$ac_header_preproc
22103fi
22104echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22105echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22106
22107fi
22108if test $ac_cv_header_ext_hash_map = yes; then
22109 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22110echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22111 cat >conftest.$ac_ext <<_ACEOF
22112/* confdefs.h. */
22113_ACEOF
22114cat confdefs.h >>conftest.$ac_ext
22115cat >>conftest.$ac_ext <<_ACEOF
22116/* end confdefs.h. */
22117#include <ext/hash_map>
22118 #include <ext/hash_set>
22119int
22120main ()
22121{
22122__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22123 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22124 ;
22125 return 0;
22126}
22127_ACEOF
22128rm -f conftest.$ac_objext
22129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22130 (eval $ac_compile) 2>conftest.er1
bdcade0a 22131 ac_status=$?
ac1cb8d3
VS
22132 grep -v '^ *+' conftest.er1 >conftest.err
22133 rm -f conftest.er1
22134 cat conftest.err >&5
bdcade0a
MB
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); } &&
fb00f58d
JS
22137 { ac_try='test -z "$ac_cxx_werror_flag"
22138 || test ! -s conftest.err'
ac1cb8d3
VS
22139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140 (eval $ac_try) 2>&5
22141 ac_status=$?
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); }; } &&
22144 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22146 (eval $ac_try) 2>&5
22147 ac_status=$?
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); }; }; then
22150 echo "$as_me:$LINENO: result: yes" >&5
22151echo "${ECHO_T}yes" >&6
22152 cat >>confdefs.h <<\_ACEOF
22153#define HAVE_EXT_HASH_MAP 1
22154_ACEOF
22155
22156 cat >>confdefs.h <<\_ACEOF
22157#define HAVE_GNU_CXX_HASH_MAP 1
22158_ACEOF
22159
22160else
22161 echo "$as_me: failed program was:" >&5
22162sed 's/^/| /' conftest.$ac_ext >&5
22163
22164echo "$as_me:$LINENO: result: no" >&5
22165echo "${ECHO_T}no" >&6
22166fi
ac1cb8d3 22167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22168
22169fi
22170
22171
a848cd7e
SC
22172
22173 ac_ext=c
22174ac_cpp='$CPP $CPPFLAGS'
22175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22177ac_compiler_gnu=$ac_cv_c_compiler_gnu
22178
22179fi
22180
22181
22182SEARCH_INCLUDE="\
22183 /usr/local/include \
22184 \
22185 /usr/Motif-2.1/include \
22186 /usr/Motif-1.2/include \
22187 /usr/include/Motif1.2 \
22188 /opt/xpm/include/X11 \
22189 /opt/GBxpm/include/ \
22190 /opt/GBxpm/X11/include/ \
22191 \
22192 /usr/dt/include \
22193 /usr/openwin/include \
22194 \
22195 /usr/include/Xm \
22196 \
22197 /usr/X11R6/include \
22198 /usr/X11R6.4/include \
22199 /usr/X11R5/include \
22200 /usr/X11R4/include \
22201 \
22202 /usr/include/X11R6 \
22203 /usr/include/X11R5 \
22204 /usr/include/X11R4 \
22205 \
22206 /usr/local/X11R6/include \
22207 /usr/local/X11R5/include \
22208 /usr/local/X11R4/include \
22209 \
22210 /usr/local/include/X11R6 \
22211 /usr/local/include/X11R5 \
22212 /usr/local/include/X11R4 \
22213 \
22214 /usr/X11/include \
22215 /usr/include/X11 \
22216 /usr/local/X11/include \
22217 /usr/local/include/X11 \
22218 \
22219 /usr/X386/include \
22220 /usr/x386/include \
22221 /usr/XFree86/include/X11 \
22222 \
22223 X:/XFree86/include \
22224 X:/XFree86/include/X11 \
22225 \
22226 /usr/include/gtk \
22227 /usr/local/include/gtk \
22228 /usr/include/glib \
22229 /usr/local/include/glib \
22230 \
22231 /usr/include/qt \
22232 /usr/local/include/qt \
22233 \
22234 /usr/local/arm/3.3.2/include \
22235 \
22236 /usr/include/windows \
22237 /usr/include/wine \
22238 /usr/local/include/wine \
22239 \
22240 /usr/unsupported/include \
22241 /usr/athena/include \
22242 /usr/local/x11r5/include \
22243 /usr/lpp/Xamples/include \
22244 \
22245 /usr/openwin/share/include"
22246
07158944 22247SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
22248
22249
22250cat >confcache <<\_ACEOF
22251# This file is a shell script that caches the results of configure
22252# tests run on this system so they can be shared between configure
22253# scripts and configure runs, see configure's option --config-cache.
22254# It is not useful on other systems. If it contains results you don't
22255# want to keep, you may remove or edit it.
22256#
22257# config.status only pays attention to the cache file if you give it
22258# the --recheck option to rerun configure.
22259#
22260# `ac_cv_env_foo' variables (set or unset) will be overridden when
22261# loading this file, other *unset* `ac_cv_foo' will be assigned the
22262# following values.
22263
22264_ACEOF
22265
22266# The following way of writing the cache mishandles newlines in values,
22267# but we know of no workaround that is simple, portable, and efficient.
22268# So, don't put newlines in cache variables' values.
22269# Ultrix sh set writes to stderr and can't be redirected directly,
22270# and sets the high bit in the cache file unless we assign to the vars.
22271{
22272 (set) 2>&1 |
22273 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22274 *ac_space=\ *)
22275 # `set' does not quote correctly, so add quotes (double-quote
22276 # substitution turns \\\\ into \\, and sed turns \\ into \).
22277 sed -n \
ac1cb8d3
VS
22278 "s/'/'\\\\''/g;
22279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22280 ;;
22281 *)
22282 # `set' quotes correctly as required by POSIX, so do not add quotes.
22283 sed -n \
ac1cb8d3 22284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22285 ;;
22286 esac;
22287} |
22288 sed '
22289 t clear
22290 : clear
22291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22292 t end
22293 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22294 : end' >>confcache
22295if diff $cache_file confcache >/dev/null 2>&1; then :; else
22296 if test -w $cache_file; then
22297 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22298 cat confcache >$cache_file
22299 else
22300 echo "not updating unwritable cache $cache_file"
22301 fi
22302fi
22303rm -f confcache
22304
22305if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22306 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22307echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22308if test "${wx_cv_lib_glibc21+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22310else
22311
22312 cat >conftest.$ac_ext <<_ACEOF
22313/* confdefs.h. */
22314_ACEOF
22315cat confdefs.h >>conftest.$ac_ext
22316cat >>conftest.$ac_ext <<_ACEOF
22317/* end confdefs.h. */
22318#include <features.h>
22319int
22320main ()
22321{
22322
22323 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22324 #error not glibc2.1
22325 #endif
22326
22327 ;
22328 return 0;
22329}
22330_ACEOF
22331rm -f conftest.$ac_objext
22332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22333 (eval $ac_compile) 2>conftest.er1
a848cd7e 22334 ac_status=$?
ac1cb8d3
VS
22335 grep -v '^ *+' conftest.er1 >conftest.err
22336 rm -f conftest.er1
22337 cat conftest.err >&5
a848cd7e
SC
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); } &&
fb00f58d
JS
22340 { ac_try='test -z "$ac_c_werror_flag"
22341 || test ! -s conftest.err'
ac1cb8d3
VS
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22344 ac_status=$?
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; } &&
22347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22353
22354 wx_cv_lib_glibc21=yes
22355
22356else
22357 echo "$as_me: failed program was:" >&5
22358sed 's/^/| /' conftest.$ac_ext >&5
22359
22360
22361 wx_cv_lib_glibc21=no
22362
22363
22364fi
ac1cb8d3 22365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22366
22367fi
22368echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22369echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22370 if test "$wx_cv_lib_glibc21" = "yes"; then
22371 cat >>confdefs.h <<\_ACEOF
22372#define wxHAVE_GLIBC2 1
22373_ACEOF
22374
22375 fi
22376fi
22377
22378if test "x$wx_cv_lib_glibc21" = "xyes"; then
22379 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22380 cat >>confdefs.h <<\_ACEOF
22381#define _GNU_SOURCE 1
22382_ACEOF
22383
22384 fi
22385fi
22386
22387
22388
22389if test "$wxUSE_REGEX" != "no"; then
22390 cat >>confdefs.h <<\_ACEOF
22391#define wxUSE_REGEX 1
22392_ACEOF
22393
22394
22395 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22396 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22397echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22398 wxUSE_REGEX=builtin
22399 fi
22400
22401 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22402 if test "${ac_cv_header_regex_h+set}" = set; then
22403 echo "$as_me:$LINENO: checking for regex.h" >&5
22404echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22405if test "${ac_cv_header_regex_h+set}" = set; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22407fi
22408echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22409echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22410else
22411 # Is the header compilable?
22412echo "$as_me:$LINENO: checking regex.h usability" >&5
22413echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22414cat >conftest.$ac_ext <<_ACEOF
22415/* confdefs.h. */
22416_ACEOF
22417cat confdefs.h >>conftest.$ac_ext
22418cat >>conftest.$ac_ext <<_ACEOF
22419/* end confdefs.h. */
22420$ac_includes_default
22421#include <regex.h>
22422_ACEOF
22423rm -f conftest.$ac_objext
22424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22425 (eval $ac_compile) 2>conftest.er1
a848cd7e 22426 ac_status=$?
ac1cb8d3
VS
22427 grep -v '^ *+' conftest.er1 >conftest.err
22428 rm -f conftest.er1
22429 cat conftest.err >&5
a848cd7e
SC
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } &&
fb00f58d
JS
22432 { ac_try='test -z "$ac_c_werror_flag"
22433 || test ! -s conftest.err'
ac1cb8d3
VS
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; } &&
22439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; }; then
22445 ac_header_compiler=yes
22446else
22447 echo "$as_me: failed program was:" >&5
22448sed 's/^/| /' conftest.$ac_ext >&5
22449
22450ac_header_compiler=no
22451fi
ac1cb8d3 22452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22453echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22454echo "${ECHO_T}$ac_header_compiler" >&6
22455
22456# Is the header present?
22457echo "$as_me:$LINENO: checking regex.h presence" >&5
22458echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22459cat >conftest.$ac_ext <<_ACEOF
22460/* confdefs.h. */
22461_ACEOF
22462cat confdefs.h >>conftest.$ac_ext
22463cat >>conftest.$ac_ext <<_ACEOF
22464/* end confdefs.h. */
22465#include <regex.h>
22466_ACEOF
22467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22469 ac_status=$?
22470 grep -v '^ *+' conftest.er1 >conftest.err
22471 rm -f conftest.er1
22472 cat conftest.err >&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } >/dev/null; then
22475 if test -s conftest.err; then
22476 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22478 else
22479 ac_cpp_err=
22480 fi
22481else
22482 ac_cpp_err=yes
22483fi
22484if test -z "$ac_cpp_err"; then
22485 ac_header_preproc=yes
22486else
22487 echo "$as_me: failed program was:" >&5
22488sed 's/^/| /' conftest.$ac_ext >&5
22489
22490 ac_header_preproc=no
22491fi
22492rm -f conftest.err conftest.$ac_ext
22493echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22494echo "${ECHO_T}$ac_header_preproc" >&6
22495
22496# So? What about this header?
ac1cb8d3
VS
22497case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22498 yes:no: )
a848cd7e
SC
22499 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22500echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22501 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22502echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22503 ac_header_preproc=yes
a848cd7e 22504 ;;
ac1cb8d3 22505 no:yes:* )
a848cd7e
SC
22506 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22507echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22508 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22509echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22510 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22511echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22512 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22513echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22514 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22515echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22516 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22517echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22518 (
22519 cat <<\_ASBOX
ac1cb8d3
VS
22520## ----------------------------------------- ##
22521## Report this to wx-dev@lists.wxwidgets.org ##
22522## ----------------------------------------- ##
a848cd7e
SC
22523_ASBOX
22524 ) |
22525 sed "s/^/$as_me: WARNING: /" >&2
22526 ;;
22527esac
22528echo "$as_me:$LINENO: checking for regex.h" >&5
22529echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22530if test "${ac_cv_header_regex_h+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532else
22533 ac_cv_header_regex_h=$ac_header_preproc
22534fi
22535echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22536echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22537
22538fi
22539if test $ac_cv_header_regex_h = yes; then
22540
22541for ac_func in regcomp
22542do
22543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22544echo "$as_me:$LINENO: checking for $ac_func" >&5
22545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22546if eval "test \"\${$as_ac_var+set}\" = set"; then
22547 echo $ECHO_N "(cached) $ECHO_C" >&6
22548else
22549 cat >conftest.$ac_ext <<_ACEOF
22550/* confdefs.h. */
22551_ACEOF
22552cat confdefs.h >>conftest.$ac_ext
22553cat >>conftest.$ac_ext <<_ACEOF
22554/* end confdefs.h. */
ac1cb8d3
VS
22555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22557#define $ac_func innocuous_$ac_func
22558
a848cd7e
SC
22559/* System header to define __stub macros and hopefully few prototypes,
22560 which can conflict with char $ac_func (); below.
22561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22562 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22563
a848cd7e
SC
22564#ifdef __STDC__
22565# include <limits.h>
22566#else
22567# include <assert.h>
22568#endif
ac1cb8d3
VS
22569
22570#undef $ac_func
22571
a848cd7e
SC
22572/* Override any gcc2 internal prototype to avoid an error. */
22573#ifdef __cplusplus
22574extern "C"
22575{
22576#endif
22577/* We use char because int might match the return type of a gcc2
22578 builtin and then its argument prototype would still apply. */
22579char $ac_func ();
22580/* The GNU C library defines this for functions which it implements
22581 to always fail with ENOSYS. Some functions are actually named
22582 something starting with __ and the normal name is an alias. */
22583#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22584choke me
22585#else
22586char (*f) () = $ac_func;
22587#endif
22588#ifdef __cplusplus
22589}
22590#endif
22591
22592int
22593main ()
22594{
22595return f != $ac_func;
22596 ;
22597 return 0;
22598}
22599_ACEOF
22600rm -f conftest.$ac_objext conftest$ac_exeext
22601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22602 (eval $ac_link) 2>conftest.er1
a848cd7e 22603 ac_status=$?
ac1cb8d3
VS
22604 grep -v '^ *+' conftest.er1 >conftest.err
22605 rm -f conftest.er1
22606 cat conftest.err >&5
a848cd7e
SC
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } &&
fb00f58d
JS
22609 { ac_try='test -z "$ac_c_werror_flag"
22610 || test ! -s conftest.err'
ac1cb8d3
VS
22611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612 (eval $ac_try) 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; } &&
22616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22619 ac_status=$?
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; }; then
22622 eval "$as_ac_var=yes"
22623else
22624 echo "$as_me: failed program was:" >&5
22625sed 's/^/| /' conftest.$ac_ext >&5
22626
22627eval "$as_ac_var=no"
22628fi
ac1cb8d3
VS
22629rm -f conftest.err conftest.$ac_objext \
22630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22631fi
22632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22633echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22634if test `eval echo '${'$as_ac_var'}'` = yes; then
22635 cat >>confdefs.h <<_ACEOF
22636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22637_ACEOF
22638
22639fi
22640done
22641
22642fi
22643
22644
22645
22646 if test "x$ac_cv_func_regcomp" != "xyes"; then
22647 if test "$wxUSE_REGEX" = "sys" ; then
22648 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22649echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22650 { (exit 1); exit 1; }; }
22651 else
22652 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22653echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22654 wxUSE_REGEX=builtin
22655 fi
22656 else
22657 wxUSE_REGEX=sys
22658 cat >>confdefs.h <<\_ACEOF
22659#define WX_NO_REGEX_ADVANCED 1
22660_ACEOF
22661
22662 fi
22663 fi
22664fi
22665
22666
22667ZLIB_LINK=
22668if test "$wxUSE_ZLIB" != "no" ; then
22669 cat >>confdefs.h <<\_ACEOF
22670#define wxUSE_ZLIB 1
22671_ACEOF
22672
22673
22674 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22675 if test "$USE_DARWIN" = 1; then
22676 system_zlib_h_ok="yes"
22677 else
22678 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22679echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22680if test "${ac_cv_header_zlib_h+set}" = set; then
22681 echo $ECHO_N "(cached) $ECHO_C" >&6
22682else
22683 if test "$cross_compiling" = yes; then
22684 unset ac_cv_header_zlib_h
22685
22686else
22687 cat >conftest.$ac_ext <<_ACEOF
22688/* confdefs.h. */
22689_ACEOF
22690cat confdefs.h >>conftest.$ac_ext
22691cat >>conftest.$ac_ext <<_ACEOF
22692/* end confdefs.h. */
22693
22694 #include <zlib.h>
22695 #include <stdio.h>
22696
22697 int main()
22698 {
22699 FILE *f=fopen("conftestval", "w");
22700 if (!f) exit(1);
22701 fprintf(f, "%s",
22702 ZLIB_VERSION[0] == '1' &&
22703 (ZLIB_VERSION[2] > '1' ||
22704 (ZLIB_VERSION[2] == '1' &&
22705 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22706 exit(0);
22707 }
22708
22709_ACEOF
22710rm -f conftest$ac_exeext
22711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22712 (eval $ac_link) 2>&5
22713 ac_status=$?
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717 (eval $ac_try) 2>&5
22718 ac_status=$?
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; }; then
22721 ac_cv_header_zlib_h=`cat conftestval`
22722else
22723 echo "$as_me: program exited with status $ac_status" >&5
22724echo "$as_me: failed program was:" >&5
22725sed 's/^/| /' conftest.$ac_ext >&5
22726
22727( exit $ac_status )
22728ac_cv_header_zlib_h=no
22729fi
ac1cb8d3 22730rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22731fi
22732
22733fi
22734echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22735echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22736 if test "${ac_cv_header_zlib_h+set}" = set; then
22737 echo "$as_me:$LINENO: checking for zlib.h" >&5
22738echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22739if test "${ac_cv_header_zlib_h+set}" = set; then
22740 echo $ECHO_N "(cached) $ECHO_C" >&6
22741fi
22742echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22743echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22744else
22745 # Is the header compilable?
22746echo "$as_me:$LINENO: checking zlib.h usability" >&5
22747echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22748cat >conftest.$ac_ext <<_ACEOF
22749/* confdefs.h. */
22750_ACEOF
22751cat confdefs.h >>conftest.$ac_ext
22752cat >>conftest.$ac_ext <<_ACEOF
22753/* end confdefs.h. */
22754$ac_includes_default
22755#include <zlib.h>
22756_ACEOF
22757rm -f conftest.$ac_objext
22758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22759 (eval $ac_compile) 2>conftest.er1
a848cd7e 22760 ac_status=$?
ac1cb8d3
VS
22761 grep -v '^ *+' conftest.er1 >conftest.err
22762 rm -f conftest.er1
22763 cat conftest.err >&5
a848cd7e
SC
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } &&
fb00f58d
JS
22766 { ac_try='test -z "$ac_c_werror_flag"
22767 || test ! -s conftest.err'
ac1cb8d3
VS
22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22770 ac_status=$?
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; } &&
22773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22775 (eval $ac_try) 2>&5
22776 ac_status=$?
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }; }; then
22779 ac_header_compiler=yes
22780else
22781 echo "$as_me: failed program was:" >&5
22782sed 's/^/| /' conftest.$ac_ext >&5
22783
22784ac_header_compiler=no
22785fi
ac1cb8d3 22786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22788echo "${ECHO_T}$ac_header_compiler" >&6
22789
22790# Is the header present?
22791echo "$as_me:$LINENO: checking zlib.h presence" >&5
22792echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22793cat >conftest.$ac_ext <<_ACEOF
22794/* confdefs.h. */
22795_ACEOF
22796cat confdefs.h >>conftest.$ac_ext
22797cat >>conftest.$ac_ext <<_ACEOF
22798/* end confdefs.h. */
22799#include <zlib.h>
22800_ACEOF
22801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22803 ac_status=$?
22804 grep -v '^ *+' conftest.er1 >conftest.err
22805 rm -f conftest.er1
22806 cat conftest.err >&5
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); } >/dev/null; then
22809 if test -s conftest.err; then
22810 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22812 else
22813 ac_cpp_err=
22814 fi
22815else
22816 ac_cpp_err=yes
22817fi
22818if test -z "$ac_cpp_err"; then
22819 ac_header_preproc=yes
22820else
22821 echo "$as_me: failed program was:" >&5
22822sed 's/^/| /' conftest.$ac_ext >&5
22823
22824 ac_header_preproc=no
22825fi
22826rm -f conftest.err conftest.$ac_ext
22827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22828echo "${ECHO_T}$ac_header_preproc" >&6
22829
22830# So? What about this header?
ac1cb8d3
VS
22831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22832 yes:no: )
a848cd7e
SC
22833 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22834echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22835 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22836echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22837 ac_header_preproc=yes
a848cd7e 22838 ;;
ac1cb8d3 22839 no:yes:* )
a848cd7e
SC
22840 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22841echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22842 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22843echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22844 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22845echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22846 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22847echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22848 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22849echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22850 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22851echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22852 (
22853 cat <<\_ASBOX
ac1cb8d3
VS
22854## ----------------------------------------- ##
22855## Report this to wx-dev@lists.wxwidgets.org ##
22856## ----------------------------------------- ##
a848cd7e
SC
22857_ASBOX
22858 ) |
22859 sed "s/^/$as_me: WARNING: /" >&2
22860 ;;
22861esac
22862echo "$as_me:$LINENO: checking for zlib.h" >&5
22863echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22864if test "${ac_cv_header_zlib_h+set}" = set; then
22865 echo $ECHO_N "(cached) $ECHO_C" >&6
22866else
22867 ac_cv_header_zlib_h=$ac_header_preproc
22868fi
22869echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22870echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22871
22872fi
22873
22874
22875
22876 system_zlib_h_ok=$ac_cv_header_zlib_h
22877 fi
22878
22879 if test "$system_zlib_h_ok" = "yes"; then
22880 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22881echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22882if test "${ac_cv_lib_z_deflate+set}" = set; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22884else
22885 ac_check_lib_save_LIBS=$LIBS
22886LIBS="-lz $LIBS"
22887cat >conftest.$ac_ext <<_ACEOF
22888/* confdefs.h. */
22889_ACEOF
22890cat confdefs.h >>conftest.$ac_ext
22891cat >>conftest.$ac_ext <<_ACEOF
22892/* end confdefs.h. */
22893
22894/* Override any gcc2 internal prototype to avoid an error. */
22895#ifdef __cplusplus
22896extern "C"
22897#endif
22898/* We use char because int might match the return type of a gcc2
22899 builtin and then its argument prototype would still apply. */
22900char deflate ();
22901int
22902main ()
22903{
22904deflate ();
22905 ;
22906 return 0;
22907}
22908_ACEOF
22909rm -f conftest.$ac_objext conftest$ac_exeext
22910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22911 (eval $ac_link) 2>conftest.er1
a848cd7e 22912 ac_status=$?
ac1cb8d3
VS
22913 grep -v '^ *+' conftest.er1 >conftest.err
22914 rm -f conftest.er1
22915 cat conftest.err >&5
a848cd7e
SC
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } &&
fb00f58d
JS
22918 { ac_try='test -z "$ac_c_werror_flag"
22919 || test ! -s conftest.err'
ac1cb8d3
VS
22920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22921 (eval $ac_try) 2>&5
22922 ac_status=$?
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); }; } &&
22925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22927 (eval $ac_try) 2>&5
22928 ac_status=$?
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }; }; then
22931 ac_cv_lib_z_deflate=yes
22932else
22933 echo "$as_me: failed program was:" >&5
22934sed 's/^/| /' conftest.$ac_ext >&5
22935
22936ac_cv_lib_z_deflate=no
22937fi
ac1cb8d3
VS
22938rm -f conftest.err conftest.$ac_objext \
22939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22940LIBS=$ac_check_lib_save_LIBS
22941fi
22942echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22943echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22944if test $ac_cv_lib_z_deflate = yes; then
22945 ZLIB_LINK=" -lz"
22946fi
22947
22948 fi
22949
22950 if test "x$ZLIB_LINK" = "x" ; then
22951 if test "$wxUSE_ZLIB" = "sys" ; then
22952 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22953echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22954 { (exit 1); exit 1; }; }
22955 else
22956 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22957echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22958 wxUSE_ZLIB=builtin
22959 fi
22960 else
22961 wxUSE_ZLIB=sys
22962 fi
22963 fi
22964fi
22965
22966
22967PNG_LINK=
22968if test "$wxUSE_LIBPNG" != "no" ; then
22969 cat >>confdefs.h <<\_ACEOF
22970#define wxUSE_LIBPNG 1
22971_ACEOF
22972
22973
22974 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22975 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22976echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22977 wxUSE_LIBPNG=sys
22978 fi
22979
22980 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22981 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22982echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22983 wxUSE_LIBPNG=builtin
22984 fi
22985
22986 if test "$wxUSE_MGL" != 1 ; then
22987 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22988 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22989echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22990if test "${ac_cv_header_png_h+set}" = set; then
22991 echo $ECHO_N "(cached) $ECHO_C" >&6
22992else
22993 if test "$cross_compiling" = yes; then
22994 unset ac_cv_header_png_h
22995
22996else
22997 cat >conftest.$ac_ext <<_ACEOF
22998/* confdefs.h. */
22999_ACEOF
23000cat confdefs.h >>conftest.$ac_ext
23001cat >>conftest.$ac_ext <<_ACEOF
23002/* end confdefs.h. */
23003
23004 #include <png.h>
23005 #include <stdio.h>
23006
23007 int main()
23008 {
23009 FILE *f=fopen("conftestval", "w");
23010 if (!f) exit(1);
23011 fprintf(f, "%s",
23012 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23013 exit(0);
23014 }
23015
23016_ACEOF
23017rm -f conftest$ac_exeext
23018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23019 (eval $ac_link) 2>&5
23020 ac_status=$?
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; }; then
23028 ac_cv_header_png_h=`cat conftestval`
23029else
23030 echo "$as_me: program exited with status $ac_status" >&5
23031echo "$as_me: failed program was:" >&5
23032sed 's/^/| /' conftest.$ac_ext >&5
23033
23034( exit $ac_status )
23035ac_cv_header_png_h=no
23036fi
ac1cb8d3 23037rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23038fi
23039
23040fi
23041echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23042echo "${ECHO_T}$ac_cv_header_png_h" >&6
23043 if test "${ac_cv_header_png_h+set}" = set; then
23044 echo "$as_me:$LINENO: checking for png.h" >&5
23045echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23046if test "${ac_cv_header_png_h+set}" = set; then
23047 echo $ECHO_N "(cached) $ECHO_C" >&6
23048fi
23049echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23050echo "${ECHO_T}$ac_cv_header_png_h" >&6
23051else
23052 # Is the header compilable?
23053echo "$as_me:$LINENO: checking png.h usability" >&5
23054echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23055cat >conftest.$ac_ext <<_ACEOF
23056/* confdefs.h. */
23057_ACEOF
23058cat confdefs.h >>conftest.$ac_ext
23059cat >>conftest.$ac_ext <<_ACEOF
23060/* end confdefs.h. */
23061$ac_includes_default
23062#include <png.h>
23063_ACEOF
23064rm -f conftest.$ac_objext
23065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23066 (eval $ac_compile) 2>conftest.er1
a848cd7e 23067 ac_status=$?
ac1cb8d3
VS
23068 grep -v '^ *+' conftest.er1 >conftest.err
23069 rm -f conftest.er1
23070 cat conftest.err >&5
a848cd7e
SC
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } &&
fb00f58d
JS
23073 { ac_try='test -z "$ac_c_werror_flag"
23074 || test ! -s conftest.err'
ac1cb8d3
VS
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; } &&
23080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
23086 ac_header_compiler=yes
23087else
23088 echo "$as_me: failed program was:" >&5
23089sed 's/^/| /' conftest.$ac_ext >&5
23090
23091ac_header_compiler=no
23092fi
ac1cb8d3 23093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23094echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23095echo "${ECHO_T}$ac_header_compiler" >&6
23096
23097# Is the header present?
23098echo "$as_me:$LINENO: checking png.h presence" >&5
23099echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23100cat >conftest.$ac_ext <<_ACEOF
23101/* confdefs.h. */
23102_ACEOF
23103cat confdefs.h >>conftest.$ac_ext
23104cat >>conftest.$ac_ext <<_ACEOF
23105/* end confdefs.h. */
23106#include <png.h>
23107_ACEOF
23108if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23110 ac_status=$?
23111 grep -v '^ *+' conftest.er1 >conftest.err
23112 rm -f conftest.er1
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } >/dev/null; then
23116 if test -s conftest.err; then
23117 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23119 else
23120 ac_cpp_err=
23121 fi
23122else
23123 ac_cpp_err=yes
23124fi
23125if test -z "$ac_cpp_err"; then
23126 ac_header_preproc=yes
23127else
23128 echo "$as_me: failed program was:" >&5
23129sed 's/^/| /' conftest.$ac_ext >&5
23130
23131 ac_header_preproc=no
23132fi
23133rm -f conftest.err conftest.$ac_ext
23134echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23135echo "${ECHO_T}$ac_header_preproc" >&6
23136
23137# So? What about this header?
ac1cb8d3
VS
23138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23139 yes:no: )
a848cd7e
SC
23140 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23141echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23142 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23143echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23144 ac_header_preproc=yes
a848cd7e 23145 ;;
ac1cb8d3 23146 no:yes:* )
a848cd7e
SC
23147 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23148echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23149 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23150echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23151 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23152echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23153 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23154echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23155 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23156echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23157 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23158echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23159 (
23160 cat <<\_ASBOX
ac1cb8d3
VS
23161## ----------------------------------------- ##
23162## Report this to wx-dev@lists.wxwidgets.org ##
23163## ----------------------------------------- ##
a848cd7e
SC
23164_ASBOX
23165 ) |
23166 sed "s/^/$as_me: WARNING: /" >&2
23167 ;;
23168esac
23169echo "$as_me:$LINENO: checking for png.h" >&5
23170echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23171if test "${ac_cv_header_png_h+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23173else
23174 ac_cv_header_png_h=$ac_header_preproc
23175fi
23176echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23177echo "${ECHO_T}$ac_cv_header_png_h" >&6
23178
23179fi
23180
23181
23182
23183 if test "$ac_cv_header_png_h" = "yes"; then
23184 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23185echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23186if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23188else
23189 ac_check_lib_save_LIBS=$LIBS
23190LIBS="-lpng -lz -lm $LIBS"
23191cat >conftest.$ac_ext <<_ACEOF
23192/* confdefs.h. */
23193_ACEOF
23194cat confdefs.h >>conftest.$ac_ext
23195cat >>conftest.$ac_ext <<_ACEOF
23196/* end confdefs.h. */
23197
23198/* Override any gcc2 internal prototype to avoid an error. */
23199#ifdef __cplusplus
23200extern "C"
23201#endif
23202/* We use char because int might match the return type of a gcc2
23203 builtin and then its argument prototype would still apply. */
23204char png_check_sig ();
23205int
23206main ()
23207{
23208png_check_sig ();
23209 ;
23210 return 0;
23211}
23212_ACEOF
23213rm -f conftest.$ac_objext conftest$ac_exeext
23214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23215 (eval $ac_link) 2>conftest.er1
a848cd7e 23216 ac_status=$?
ac1cb8d3
VS
23217 grep -v '^ *+' conftest.er1 >conftest.err
23218 rm -f conftest.er1
23219 cat conftest.err >&5
a848cd7e
SC
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } &&
fb00f58d
JS
23222 { ac_try='test -z "$ac_c_werror_flag"
23223 || test ! -s conftest.err'
ac1cb8d3
VS
23224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225 (eval $ac_try) 2>&5
23226 ac_status=$?
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); }; } &&
23229 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; }; then
23235 ac_cv_lib_png_png_check_sig=yes
23236else
23237 echo "$as_me: failed program was:" >&5
23238sed 's/^/| /' conftest.$ac_ext >&5
23239
23240ac_cv_lib_png_png_check_sig=no
23241fi
ac1cb8d3
VS
23242rm -f conftest.err conftest.$ac_objext \
23243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23244LIBS=$ac_check_lib_save_LIBS
23245fi
23246echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23247echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23248if test $ac_cv_lib_png_png_check_sig = yes; then
23249 PNG_LINK=" -lpng -lz"
23250fi
23251
23252 fi
23253
23254 if test "x$PNG_LINK" = "x" ; then
23255 if test "$wxUSE_LIBPNG" = "sys" ; then
23256 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23257echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23258 { (exit 1); exit 1; }; }
23259 else
23260 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23261echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23262 wxUSE_LIBPNG=builtin
23263 fi
23264 else
23265 wxUSE_LIBPNG=sys
23266 fi
23267 fi
23268 fi
23269
23270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23271fi
23272
23273
23274JPEG_LINK=
23275if test "$wxUSE_LIBJPEG" != "no" ; then
23276 cat >>confdefs.h <<\_ACEOF
23277#define wxUSE_LIBJPEG 1
23278_ACEOF
23279
23280
23281 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23282 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23283echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23284 wxUSE_LIBJPEG=sys
23285 fi
23286
23287 if test "$wxUSE_MGL" != 1 ; then
23288 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23289 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23290echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23291 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23292 echo $ECHO_N "(cached) $ECHO_C" >&6
23293else
23294 cat >conftest.$ac_ext <<_ACEOF
23295/* confdefs.h. */
23296_ACEOF
23297cat confdefs.h >>conftest.$ac_ext
23298cat >>conftest.$ac_ext <<_ACEOF
23299/* end confdefs.h. */
23300
23301 #undef HAVE_STDLIB_H
23302 #include <stdio.h>
23303 #include <jpeglib.h>
23304
23305int
23306main ()
23307{
23308
23309
23310 ;
23311 return 0;
23312}
23313_ACEOF
23314rm -f conftest.$ac_objext
23315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23316 (eval $ac_compile) 2>conftest.er1
a848cd7e 23317 ac_status=$?
ac1cb8d3
VS
23318 grep -v '^ *+' conftest.er1 >conftest.err
23319 rm -f conftest.er1
23320 cat conftest.err >&5
a848cd7e
SC
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); } &&
fb00f58d
JS
23323 { ac_try='test -z "$ac_c_werror_flag"
23324 || test ! -s conftest.err'
ac1cb8d3
VS
23325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326 (eval $ac_try) 2>&5
23327 ac_status=$?
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); }; } &&
23330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23332 (eval $ac_try) 2>&5
23333 ac_status=$?
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); }; }; then
23336 ac_cv_header_jpeglib_h=yes
23337else
23338 echo "$as_me: failed program was:" >&5
23339sed 's/^/| /' conftest.$ac_ext >&5
23340
23341ac_cv_header_jpeglib_h=no
23342
23343fi
ac1cb8d3 23344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23345
23346fi
23347
23348 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23349echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23350
23351 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23352 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23353echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23354if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23355 echo $ECHO_N "(cached) $ECHO_C" >&6
23356else
23357 ac_check_lib_save_LIBS=$LIBS
23358LIBS="-ljpeg $LIBS"
23359cat >conftest.$ac_ext <<_ACEOF
23360/* confdefs.h. */
23361_ACEOF
23362cat confdefs.h >>conftest.$ac_ext
23363cat >>conftest.$ac_ext <<_ACEOF
23364/* end confdefs.h. */
23365
23366/* Override any gcc2 internal prototype to avoid an error. */
23367#ifdef __cplusplus
23368extern "C"
23369#endif
23370/* We use char because int might match the return type of a gcc2
23371 builtin and then its argument prototype would still apply. */
23372char jpeg_read_header ();
23373int
23374main ()
23375{
23376jpeg_read_header ();
23377 ;
23378 return 0;
23379}
23380_ACEOF
23381rm -f conftest.$ac_objext conftest$ac_exeext
23382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23383 (eval $ac_link) 2>conftest.er1
a848cd7e 23384 ac_status=$?
ac1cb8d3
VS
23385 grep -v '^ *+' conftest.er1 >conftest.err
23386 rm -f conftest.er1
23387 cat conftest.err >&5
a848cd7e
SC
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); } &&
fb00f58d
JS
23390 { ac_try='test -z "$ac_c_werror_flag"
23391 || test ! -s conftest.err'
ac1cb8d3
VS
23392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23393 (eval $ac_try) 2>&5
23394 ac_status=$?
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); }; } &&
23397 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399 (eval $ac_try) 2>&5
23400 ac_status=$?
23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); }; }; then
23403 ac_cv_lib_jpeg_jpeg_read_header=yes
23404else
23405 echo "$as_me: failed program was:" >&5
23406sed 's/^/| /' conftest.$ac_ext >&5
23407
23408ac_cv_lib_jpeg_jpeg_read_header=no
23409fi
ac1cb8d3
VS
23410rm -f conftest.err conftest.$ac_objext \
23411 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23412LIBS=$ac_check_lib_save_LIBS
23413fi
23414echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23415echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23416if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23417 JPEG_LINK=" -ljpeg"
23418fi
23419
23420 fi
23421
23422 if test "x$JPEG_LINK" = "x" ; then
23423 if test "$wxUSE_LIBJPEG" = "sys" ; then
23424 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23425echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23426 { (exit 1); exit 1; }; }
23427 else
23428 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23429echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23430 wxUSE_LIBJPEG=builtin
23431 fi
23432 else
23433 wxUSE_LIBJPEG=sys
23434 fi
23435 fi
23436 fi
23437fi
23438
23439
23440TIFF_LINK=
23441TIFF_PREREQ_LINKS=-lm
23442if test "$wxUSE_LIBTIFF" != "no" ; then
23443 cat >>confdefs.h <<\_ACEOF
23444#define wxUSE_LIBTIFF 1
23445_ACEOF
23446
23447
23448 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23449 if test "$wxUSE_LIBJPEG" = "sys"; then
23450 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23451 fi
23452 if test "$wxUSE_ZLIB" = "sys"; then
23453 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23454 fi
23455 if test "${ac_cv_header_tiffio_h+set}" = set; then
23456 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23457echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23458if test "${ac_cv_header_tiffio_h+set}" = set; then
23459 echo $ECHO_N "(cached) $ECHO_C" >&6
23460fi
23461echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23462echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23463else
23464 # Is the header compilable?
23465echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23466echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23467cat >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$ac_includes_default
23474#include <tiffio.h>
23475_ACEOF
23476rm -f conftest.$ac_objext
23477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23478 (eval $ac_compile) 2>conftest.er1
a848cd7e 23479 ac_status=$?
ac1cb8d3
VS
23480 grep -v '^ *+' conftest.er1 >conftest.err
23481 rm -f conftest.er1
23482 cat conftest.err >&5
a848cd7e
SC
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } &&
fb00f58d
JS
23485 { ac_try='test -z "$ac_c_werror_flag"
23486 || test ! -s conftest.err'
ac1cb8d3
VS
23487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488 (eval $ac_try) 2>&5
23489 ac_status=$?
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; } &&
23492 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494 (eval $ac_try) 2>&5
23495 ac_status=$?
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; }; then
23498 ac_header_compiler=yes
23499else
23500 echo "$as_me: failed program was:" >&5
23501sed 's/^/| /' conftest.$ac_ext >&5
23502
23503ac_header_compiler=no
23504fi
ac1cb8d3 23505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23506echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23507echo "${ECHO_T}$ac_header_compiler" >&6
23508
23509# Is the header present?
23510echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23511echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23512cat >conftest.$ac_ext <<_ACEOF
23513/* confdefs.h. */
23514_ACEOF
23515cat confdefs.h >>conftest.$ac_ext
23516cat >>conftest.$ac_ext <<_ACEOF
23517/* end confdefs.h. */
23518#include <tiffio.h>
23519_ACEOF
23520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23522 ac_status=$?
23523 grep -v '^ *+' conftest.er1 >conftest.err
23524 rm -f conftest.er1
23525 cat conftest.err >&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } >/dev/null; then
23528 if test -s conftest.err; then
23529 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23531 else
23532 ac_cpp_err=
23533 fi
23534else
23535 ac_cpp_err=yes
23536fi
23537if test -z "$ac_cpp_err"; then
23538 ac_header_preproc=yes
23539else
23540 echo "$as_me: failed program was:" >&5
23541sed 's/^/| /' conftest.$ac_ext >&5
23542
23543 ac_header_preproc=no
23544fi
23545rm -f conftest.err conftest.$ac_ext
23546echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23547echo "${ECHO_T}$ac_header_preproc" >&6
23548
23549# So? What about this header?
ac1cb8d3
VS
23550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23551 yes:no: )
a848cd7e
SC
23552 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23553echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23554 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23555echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23556 ac_header_preproc=yes
a848cd7e 23557 ;;
ac1cb8d3 23558 no:yes:* )
a848cd7e
SC
23559 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23560echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23561 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23562echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23563 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23564echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23565 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23566echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23567 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23568echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23569 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23570echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23571 (
23572 cat <<\_ASBOX
ac1cb8d3
VS
23573## ----------------------------------------- ##
23574## Report this to wx-dev@lists.wxwidgets.org ##
23575## ----------------------------------------- ##
a848cd7e
SC
23576_ASBOX
23577 ) |
23578 sed "s/^/$as_me: WARNING: /" >&2
23579 ;;
23580esac
23581echo "$as_me:$LINENO: checking for tiffio.h" >&5
23582echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23583if test "${ac_cv_header_tiffio_h+set}" = set; then
23584 echo $ECHO_N "(cached) $ECHO_C" >&6
23585else
23586 ac_cv_header_tiffio_h=$ac_header_preproc
23587fi
23588echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23589echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23590
23591fi
23592if test $ac_cv_header_tiffio_h = yes; then
23593
23594 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23595echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23596if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23597 echo $ECHO_N "(cached) $ECHO_C" >&6
23598else
23599 ac_check_lib_save_LIBS=$LIBS
23600LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23601cat >conftest.$ac_ext <<_ACEOF
23602/* confdefs.h. */
23603_ACEOF
23604cat confdefs.h >>conftest.$ac_ext
23605cat >>conftest.$ac_ext <<_ACEOF
23606/* end confdefs.h. */
23607
23608/* Override any gcc2 internal prototype to avoid an error. */
23609#ifdef __cplusplus
23610extern "C"
23611#endif
23612/* We use char because int might match the return type of a gcc2
23613 builtin and then its argument prototype would still apply. */
23614char TIFFError ();
23615int
23616main ()
23617{
23618TIFFError ();
23619 ;
23620 return 0;
23621}
23622_ACEOF
23623rm -f conftest.$ac_objext conftest$ac_exeext
23624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23625 (eval $ac_link) 2>conftest.er1
a848cd7e 23626 ac_status=$?
ac1cb8d3
VS
23627 grep -v '^ *+' conftest.er1 >conftest.err
23628 rm -f conftest.er1
23629 cat conftest.err >&5
a848cd7e
SC
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); } &&
fb00f58d
JS
23632 { ac_try='test -z "$ac_c_werror_flag"
23633 || test ! -s conftest.err'
ac1cb8d3
VS
23634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23635 (eval $ac_try) 2>&5
23636 ac_status=$?
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); }; } &&
23639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23641 (eval $ac_try) 2>&5
23642 ac_status=$?
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); }; }; then
23645 ac_cv_lib_tiff_TIFFError=yes
23646else
23647 echo "$as_me: failed program was:" >&5
23648sed 's/^/| /' conftest.$ac_ext >&5
23649
23650ac_cv_lib_tiff_TIFFError=no
23651fi
ac1cb8d3
VS
23652rm -f conftest.err conftest.$ac_objext \
23653 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23654LIBS=$ac_check_lib_save_LIBS
23655fi
23656echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23657echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23658if test $ac_cv_lib_tiff_TIFFError = yes; then
23659 TIFF_LINK=" -ltiff"
23660fi
23661
23662
23663
23664fi
23665
23666
23667
23668 if test "x$TIFF_LINK" = "x" ; then
23669 if test "$wxUSE_LIBTIFF" = "sys" ; then
23670 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23671echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23672 { (exit 1); exit 1; }; }
23673 else
23674 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23675echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23676 wxUSE_LIBTIFF=builtin
23677 fi
23678 else
23679 wxUSE_LIBTIFF=sys
23680 fi
23681 fi
23682fi
23683
23684
47a7e797
MW
23685if test "$wxUSE_WCHAR_T" != "yes"; then
23686 if test "$wxUSE_EXPAT" != "no"; then
23687 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23688echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23689 wxUSE_EXPAT=no
23690 fi
23691 if test "$wxUSE_XML" != "no"; then
23692 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23693echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23694 wxUSE_XML=no
23695 fi
23696fi
23697
a848cd7e
SC
23698if test "$wxUSE_EXPAT" != "no"; then
23699 wxUSE_XML=yes
23700 cat >>confdefs.h <<\_ACEOF
23701#define wxUSE_EXPAT 1
23702_ACEOF
23703
23704 cat >>confdefs.h <<\_ACEOF
23705#define wxUSE_XML 1
23706_ACEOF
23707
23708
23709 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23710 if test "${ac_cv_header_expat_h+set}" = set; then
23711 echo "$as_me:$LINENO: checking for expat.h" >&5
23712echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23713if test "${ac_cv_header_expat_h+set}" = set; then
23714 echo $ECHO_N "(cached) $ECHO_C" >&6
23715fi
23716echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23717echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23718else
23719 # Is the header compilable?
23720echo "$as_me:$LINENO: checking expat.h usability" >&5
23721echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23722cat >conftest.$ac_ext <<_ACEOF
23723/* confdefs.h. */
23724_ACEOF
23725cat confdefs.h >>conftest.$ac_ext
23726cat >>conftest.$ac_ext <<_ACEOF
23727/* end confdefs.h. */
23728$ac_includes_default
23729#include <expat.h>
23730_ACEOF
23731rm -f conftest.$ac_objext
23732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23733 (eval $ac_compile) 2>conftest.er1
a848cd7e 23734 ac_status=$?
ac1cb8d3
VS
23735 grep -v '^ *+' conftest.er1 >conftest.err
23736 rm -f conftest.er1
23737 cat conftest.err >&5
a848cd7e
SC
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } &&
fb00f58d
JS
23740 { ac_try='test -z "$ac_c_werror_flag"
23741 || test ! -s conftest.err'
ac1cb8d3
VS
23742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23743 (eval $ac_try) 2>&5
23744 ac_status=$?
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); }; } &&
23747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23749 (eval $ac_try) 2>&5
23750 ac_status=$?
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); }; }; then
23753 ac_header_compiler=yes
23754else
23755 echo "$as_me: failed program was:" >&5
23756sed 's/^/| /' conftest.$ac_ext >&5
23757
23758ac_header_compiler=no
23759fi
ac1cb8d3 23760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23762echo "${ECHO_T}$ac_header_compiler" >&6
23763
23764# Is the header present?
23765echo "$as_me:$LINENO: checking expat.h presence" >&5
23766echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23767cat >conftest.$ac_ext <<_ACEOF
23768/* confdefs.h. */
23769_ACEOF
23770cat confdefs.h >>conftest.$ac_ext
23771cat >>conftest.$ac_ext <<_ACEOF
23772/* end confdefs.h. */
23773#include <expat.h>
23774_ACEOF
23775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23777 ac_status=$?
23778 grep -v '^ *+' conftest.er1 >conftest.err
23779 rm -f conftest.er1
23780 cat conftest.err >&5
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); } >/dev/null; then
23783 if test -s conftest.err; then
23784 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23786 else
23787 ac_cpp_err=
23788 fi
23789else
23790 ac_cpp_err=yes
23791fi
23792if test -z "$ac_cpp_err"; then
23793 ac_header_preproc=yes
23794else
23795 echo "$as_me: failed program was:" >&5
23796sed 's/^/| /' conftest.$ac_ext >&5
23797
23798 ac_header_preproc=no
23799fi
23800rm -f conftest.err conftest.$ac_ext
23801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23802echo "${ECHO_T}$ac_header_preproc" >&6
23803
23804# So? What about this header?
ac1cb8d3
VS
23805case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23806 yes:no: )
a848cd7e
SC
23807 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23808echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23809 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23810echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23811 ac_header_preproc=yes
a848cd7e 23812 ;;
ac1cb8d3 23813 no:yes:* )
a848cd7e
SC
23814 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23815echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23816 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23817echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23818 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23819echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23820 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23821echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23822 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23823echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23824 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23825echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23826 (
23827 cat <<\_ASBOX
ac1cb8d3
VS
23828## ----------------------------------------- ##
23829## Report this to wx-dev@lists.wxwidgets.org ##
23830## ----------------------------------------- ##
a848cd7e
SC
23831_ASBOX
23832 ) |
23833 sed "s/^/$as_me: WARNING: /" >&2
23834 ;;
23835esac
23836echo "$as_me:$LINENO: checking for expat.h" >&5
23837echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23838if test "${ac_cv_header_expat_h+set}" = set; then
23839 echo $ECHO_N "(cached) $ECHO_C" >&6
23840else
23841 ac_cv_header_expat_h=$ac_header_preproc
23842fi
23843echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23844echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23845
23846fi
23847if test $ac_cv_header_expat_h = yes; then
23848 found_expat_h=1
23849fi
23850
23851
23852 if test "x$found_expat_h" = "x1"; then
23853 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23854echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23855if test "${wx_cv_expat_is_not_broken+set}" = set; then
23856 echo $ECHO_N "(cached) $ECHO_C" >&6
23857else
23858
23859
23860
23861 ac_ext=cc
23862ac_cpp='$CXXCPP $CPPFLAGS'
23863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23866
23867 cat >conftest.$ac_ext <<_ACEOF
23868/* confdefs.h. */
23869_ACEOF
23870cat confdefs.h >>conftest.$ac_ext
23871cat >>conftest.$ac_ext <<_ACEOF
23872/* end confdefs.h. */
23873#include <expat.h>
23874int
23875main ()
23876{
23877
23878 ;
23879 return 0;
23880}
23881_ACEOF
23882rm -f conftest.$ac_objext
23883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23884 (eval $ac_compile) 2>conftest.er1
a848cd7e 23885 ac_status=$?
ac1cb8d3
VS
23886 grep -v '^ *+' conftest.er1 >conftest.err
23887 rm -f conftest.er1
23888 cat conftest.err >&5
a848cd7e
SC
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } &&
fb00f58d
JS
23891 { ac_try='test -z "$ac_cxx_werror_flag"
23892 || test ! -s conftest.err'
ac1cb8d3
VS
23893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894 (eval $ac_try) 2>&5
23895 ac_status=$?
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); }; } &&
23898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; }; then
23904 wx_cv_expat_is_not_broken=yes
23905else
23906 echo "$as_me: failed program was:" >&5
23907sed 's/^/| /' conftest.$ac_ext >&5
23908
23909wx_cv_expat_is_not_broken=no
23910
23911fi
ac1cb8d3 23912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23913 ac_ext=c
23914ac_cpp='$CPP $CPPFLAGS'
23915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23917ac_compiler_gnu=$ac_cv_c_compiler_gnu
23918
23919
23920
23921fi
23922echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23923echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23924 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23925 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23926echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23927if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23928 echo $ECHO_N "(cached) $ECHO_C" >&6
23929else
23930 ac_check_lib_save_LIBS=$LIBS
23931LIBS="-lexpat $LIBS"
23932cat >conftest.$ac_ext <<_ACEOF
23933/* confdefs.h. */
23934_ACEOF
23935cat confdefs.h >>conftest.$ac_ext
23936cat >>conftest.$ac_ext <<_ACEOF
23937/* end confdefs.h. */
23938
23939/* Override any gcc2 internal prototype to avoid an error. */
23940#ifdef __cplusplus
23941extern "C"
23942#endif
23943/* We use char because int might match the return type of a gcc2
23944 builtin and then its argument prototype would still apply. */
23945char XML_ParserCreate ();
23946int
23947main ()
23948{
23949XML_ParserCreate ();
23950 ;
23951 return 0;
23952}
23953_ACEOF
23954rm -f conftest.$ac_objext conftest$ac_exeext
23955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23956 (eval $ac_link) 2>conftest.er1
a848cd7e 23957 ac_status=$?
ac1cb8d3
VS
23958 grep -v '^ *+' conftest.er1 >conftest.err
23959 rm -f conftest.er1
23960 cat conftest.err >&5
a848cd7e
SC
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); } &&
fb00f58d
JS
23963 { ac_try='test -z "$ac_c_werror_flag"
23964 || test ! -s conftest.err'
ac1cb8d3
VS
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23967 ac_status=$?
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; } &&
23970 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23973 ac_status=$?
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; }; then
23976 ac_cv_lib_expat_XML_ParserCreate=yes
23977else
23978 echo "$as_me: failed program was:" >&5
23979sed 's/^/| /' conftest.$ac_ext >&5
23980
23981ac_cv_lib_expat_XML_ParserCreate=no
23982fi
ac1cb8d3
VS
23983rm -f conftest.err conftest.$ac_objext \
23984 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23985LIBS=$ac_check_lib_save_LIBS
23986fi
23987echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23988echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23989if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23990 EXPAT_LINK=" -lexpat"
23991fi
23992
23993 fi
23994 fi
23995 if test "x$EXPAT_LINK" = "x" ; then
23996 if test "$wxUSE_EXPAT" = "sys" ; then
23997 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23998echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23999 { (exit 1); exit 1; }; }
24000 else
24001 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24002echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24003 wxUSE_EXPAT=builtin
24004 fi
24005 else
24006 wxUSE_EXPAT=sys
24007 fi
24008 fi
24009 if test "$wxUSE_EXPAT" = "builtin" ; then
24010
24011
24012subdirs="$subdirs src/expat"
24013
24014 fi
24015fi
24016
24017
24018
24019if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24020 if test "${ac_cv_header_mspack_h+set}" = set; then
24021 echo "$as_me:$LINENO: checking for mspack.h" >&5
24022echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24023if test "${ac_cv_header_mspack_h+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24025fi
24026echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24027echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24028else
24029 # Is the header compilable?
24030echo "$as_me:$LINENO: checking mspack.h usability" >&5
24031echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24032cat >conftest.$ac_ext <<_ACEOF
24033/* confdefs.h. */
24034_ACEOF
24035cat confdefs.h >>conftest.$ac_ext
24036cat >>conftest.$ac_ext <<_ACEOF
24037/* end confdefs.h. */
24038$ac_includes_default
24039#include <mspack.h>
24040_ACEOF
24041rm -f conftest.$ac_objext
24042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24043 (eval $ac_compile) 2>conftest.er1
a848cd7e 24044 ac_status=$?
ac1cb8d3
VS
24045 grep -v '^ *+' conftest.er1 >conftest.err
24046 rm -f conftest.er1
24047 cat conftest.err >&5
a848cd7e
SC
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); } &&
fb00f58d
JS
24050 { ac_try='test -z "$ac_c_werror_flag"
24051 || test ! -s conftest.err'
ac1cb8d3
VS
24052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24053 (eval $ac_try) 2>&5
24054 ac_status=$?
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); }; } &&
24057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24059 (eval $ac_try) 2>&5
24060 ac_status=$?
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); }; }; then
24063 ac_header_compiler=yes
24064else
24065 echo "$as_me: failed program was:" >&5
24066sed 's/^/| /' conftest.$ac_ext >&5
24067
24068ac_header_compiler=no
24069fi
ac1cb8d3 24070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24072echo "${ECHO_T}$ac_header_compiler" >&6
24073
24074# Is the header present?
24075echo "$as_me:$LINENO: checking mspack.h presence" >&5
24076echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24077cat >conftest.$ac_ext <<_ACEOF
24078/* confdefs.h. */
24079_ACEOF
24080cat confdefs.h >>conftest.$ac_ext
24081cat >>conftest.$ac_ext <<_ACEOF
24082/* end confdefs.h. */
24083#include <mspack.h>
24084_ACEOF
24085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24087 ac_status=$?
24088 grep -v '^ *+' conftest.er1 >conftest.err
24089 rm -f conftest.er1
24090 cat conftest.err >&5
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); } >/dev/null; then
24093 if test -s conftest.err; then
24094 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24096 else
24097 ac_cpp_err=
24098 fi
24099else
24100 ac_cpp_err=yes
24101fi
24102if test -z "$ac_cpp_err"; then
24103 ac_header_preproc=yes
24104else
24105 echo "$as_me: failed program was:" >&5
24106sed 's/^/| /' conftest.$ac_ext >&5
24107
24108 ac_header_preproc=no
24109fi
24110rm -f conftest.err conftest.$ac_ext
24111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24112echo "${ECHO_T}$ac_header_preproc" >&6
24113
24114# So? What about this header?
ac1cb8d3
VS
24115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24116 yes:no: )
a848cd7e
SC
24117 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24118echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24119 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24120echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24121 ac_header_preproc=yes
a848cd7e 24122 ;;
ac1cb8d3 24123 no:yes:* )
a848cd7e
SC
24124 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24125echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24126 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24127echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24128 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24129echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24130 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24131echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24132 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24133echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24134 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24135echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24136 (
24137 cat <<\_ASBOX
ac1cb8d3
VS
24138## ----------------------------------------- ##
24139## Report this to wx-dev@lists.wxwidgets.org ##
24140## ----------------------------------------- ##
a848cd7e
SC
24141_ASBOX
24142 ) |
24143 sed "s/^/$as_me: WARNING: /" >&2
24144 ;;
24145esac
24146echo "$as_me:$LINENO: checking for mspack.h" >&5
24147echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24148if test "${ac_cv_header_mspack_h+set}" = set; then
24149 echo $ECHO_N "(cached) $ECHO_C" >&6
24150else
24151 ac_cv_header_mspack_h=$ac_header_preproc
24152fi
24153echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24154echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24155
24156fi
24157if test $ac_cv_header_mspack_h = yes; then
24158 found_mspack_h=1
24159fi
24160
24161
24162 if test "x$found_mspack_h" = "x1"; then
24163 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24164echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24165if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24166 echo $ECHO_N "(cached) $ECHO_C" >&6
24167else
24168 ac_check_lib_save_LIBS=$LIBS
24169LIBS="-lmspack $LIBS"
24170cat >conftest.$ac_ext <<_ACEOF
24171/* confdefs.h. */
24172_ACEOF
24173cat confdefs.h >>conftest.$ac_ext
24174cat >>conftest.$ac_ext <<_ACEOF
24175/* end confdefs.h. */
24176
24177/* Override any gcc2 internal prototype to avoid an error. */
24178#ifdef __cplusplus
24179extern "C"
24180#endif
24181/* We use char because int might match the return type of a gcc2
24182 builtin and then its argument prototype would still apply. */
24183char mspack_create_chm_decompressor ();
24184int
24185main ()
24186{
24187mspack_create_chm_decompressor ();
24188 ;
24189 return 0;
24190}
24191_ACEOF
24192rm -f conftest.$ac_objext conftest$ac_exeext
24193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24194 (eval $ac_link) 2>conftest.er1
a848cd7e 24195 ac_status=$?
ac1cb8d3
VS
24196 grep -v '^ *+' conftest.er1 >conftest.err
24197 rm -f conftest.er1
24198 cat conftest.err >&5
a848cd7e
SC
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } &&
fb00f58d
JS
24201 { ac_try='test -z "$ac_c_werror_flag"
24202 || test ! -s conftest.err'
ac1cb8d3
VS
24203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24204 (eval $ac_try) 2>&5
24205 ac_status=$?
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); }; } &&
24208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24210 (eval $ac_try) 2>&5
24211 ac_status=$?
24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); }; }; then
24214 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24215else
24216 echo "$as_me: failed program was:" >&5
24217sed 's/^/| /' conftest.$ac_ext >&5
24218
24219ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24220fi
ac1cb8d3
VS
24221rm -f conftest.err conftest.$ac_objext \
24222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24223LIBS=$ac_check_lib_save_LIBS
24224fi
24225echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24226echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24227if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24228 MSPACK_LINK=" -lmspack"
24229fi
24230
24231 fi
24232 if test "x$MSPACK_LINK" = "x" ; then
24233 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24234 fi
24235fi
24236
24237if test "$wxUSE_LIBMSPACK" != "no"; then
24238 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24239#define wxUSE_LIBMSPACK 1
24240_ACEOF
24241
a848cd7e
SC
24242fi
24243
24244
24245
24246AFMINSTALL=
24247WIN32INSTALL=
24248
24249TOOLKIT=
24250TOOLKIT_INCLUDE=
24251WIDGET_SET=
24252
24253if test "$USE_WIN32" = 1 ; then
24254
24255for ac_header in w32api.h
24256do
24257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24258if eval "test \"\${$as_ac_Header+set}\" = set"; then
24259 echo "$as_me:$LINENO: checking for $ac_header" >&5
24260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24261if eval "test \"\${$as_ac_Header+set}\" = set"; then
24262 echo $ECHO_N "(cached) $ECHO_C" >&6
24263fi
24264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24266else
24267 # Is the header compilable?
24268echo "$as_me:$LINENO: checking $ac_header usability" >&5
24269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24270cat >conftest.$ac_ext <<_ACEOF
24271/* confdefs.h. */
24272_ACEOF
24273cat confdefs.h >>conftest.$ac_ext
24274cat >>conftest.$ac_ext <<_ACEOF
24275/* end confdefs.h. */
24276$ac_includes_default
24277#include <$ac_header>
24278_ACEOF
24279rm -f conftest.$ac_objext
24280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24281 (eval $ac_compile) 2>conftest.er1
a848cd7e 24282 ac_status=$?
ac1cb8d3
VS
24283 grep -v '^ *+' conftest.er1 >conftest.err
24284 rm -f conftest.er1
24285 cat conftest.err >&5
a848cd7e
SC
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); } &&
fb00f58d
JS
24288 { ac_try='test -z "$ac_c_werror_flag"
24289 || test ! -s conftest.err'
ac1cb8d3
VS
24290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24291 (eval $ac_try) 2>&5
24292 ac_status=$?
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); }; } &&
24295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24297 (eval $ac_try) 2>&5
24298 ac_status=$?
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); }; }; then
24301 ac_header_compiler=yes
24302else
24303 echo "$as_me: failed program was:" >&5
24304sed 's/^/| /' conftest.$ac_ext >&5
24305
24306ac_header_compiler=no
24307fi
ac1cb8d3 24308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24309echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24310echo "${ECHO_T}$ac_header_compiler" >&6
24311
24312# Is the header present?
24313echo "$as_me:$LINENO: checking $ac_header presence" >&5
24314echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24315cat >conftest.$ac_ext <<_ACEOF
24316/* confdefs.h. */
24317_ACEOF
24318cat confdefs.h >>conftest.$ac_ext
24319cat >>conftest.$ac_ext <<_ACEOF
24320/* end confdefs.h. */
24321#include <$ac_header>
24322_ACEOF
24323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24325 ac_status=$?
24326 grep -v '^ *+' conftest.er1 >conftest.err
24327 rm -f conftest.er1
24328 cat conftest.err >&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); } >/dev/null; then
24331 if test -s conftest.err; then
24332 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24334 else
24335 ac_cpp_err=
24336 fi
24337else
24338 ac_cpp_err=yes
24339fi
24340if test -z "$ac_cpp_err"; then
24341 ac_header_preproc=yes
24342else
24343 echo "$as_me: failed program was:" >&5
24344sed 's/^/| /' conftest.$ac_ext >&5
24345
24346 ac_header_preproc=no
24347fi
24348rm -f conftest.err conftest.$ac_ext
24349echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24350echo "${ECHO_T}$ac_header_preproc" >&6
24351
24352# So? What about this header?
ac1cb8d3
VS
24353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24354 yes:no: )
a848cd7e
SC
24355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24358echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24359 ac_header_preproc=yes
a848cd7e 24360 ;;
ac1cb8d3 24361 no:yes:* )
a848cd7e
SC
24362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24365echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24367echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24369echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24373echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24374 (
24375 cat <<\_ASBOX
ac1cb8d3
VS
24376## ----------------------------------------- ##
24377## Report this to wx-dev@lists.wxwidgets.org ##
24378## ----------------------------------------- ##
a848cd7e
SC
24379_ASBOX
24380 ) |
24381 sed "s/^/$as_me: WARNING: /" >&2
24382 ;;
24383esac
24384echo "$as_me:$LINENO: checking for $ac_header" >&5
24385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24386if eval "test \"\${$as_ac_Header+set}\" = set"; then
24387 echo $ECHO_N "(cached) $ECHO_C" >&6
24388else
ac1cb8d3 24389 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24390fi
24391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24393
24394fi
24395if test `eval echo '${'$as_ac_Header'}'` = yes; then
24396 cat >>confdefs.h <<_ACEOF
24397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24398_ACEOF
24399
24400fi
24401
24402done
24403
24404 if test "${ac_cv_header_windows_h+set}" = set; then
24405 echo "$as_me:$LINENO: checking for windows.h" >&5
24406echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24407if test "${ac_cv_header_windows_h+set}" = set; then
24408 echo $ECHO_N "(cached) $ECHO_C" >&6
24409fi
24410echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24411echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24412else
24413 # Is the header compilable?
24414echo "$as_me:$LINENO: checking windows.h usability" >&5
24415echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24416cat >conftest.$ac_ext <<_ACEOF
24417/* confdefs.h. */
24418_ACEOF
24419cat confdefs.h >>conftest.$ac_ext
24420cat >>conftest.$ac_ext <<_ACEOF
24421/* end confdefs.h. */
24422$ac_includes_default
24423#include <windows.h>
24424_ACEOF
24425rm -f conftest.$ac_objext
24426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24427 (eval $ac_compile) 2>conftest.er1
a848cd7e 24428 ac_status=$?
ac1cb8d3
VS
24429 grep -v '^ *+' conftest.er1 >conftest.err
24430 rm -f conftest.er1
24431 cat conftest.err >&5
a848cd7e
SC
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } &&
fb00f58d
JS
24434 { ac_try='test -z "$ac_c_werror_flag"
24435 || test ! -s conftest.err'
ac1cb8d3
VS
24436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437 (eval $ac_try) 2>&5
24438 ac_status=$?
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); }; } &&
24441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24443 (eval $ac_try) 2>&5
24444 ac_status=$?
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); }; }; then
24447 ac_header_compiler=yes
24448else
24449 echo "$as_me: failed program was:" >&5
24450sed 's/^/| /' conftest.$ac_ext >&5
24451
24452ac_header_compiler=no
24453fi
ac1cb8d3 24454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24456echo "${ECHO_T}$ac_header_compiler" >&6
24457
24458# Is the header present?
24459echo "$as_me:$LINENO: checking windows.h presence" >&5
24460echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24461cat >conftest.$ac_ext <<_ACEOF
24462/* confdefs.h. */
24463_ACEOF
24464cat confdefs.h >>conftest.$ac_ext
24465cat >>conftest.$ac_ext <<_ACEOF
24466/* end confdefs.h. */
24467#include <windows.h>
24468_ACEOF
24469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24471 ac_status=$?
24472 grep -v '^ *+' conftest.er1 >conftest.err
24473 rm -f conftest.er1
24474 cat conftest.err >&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); } >/dev/null; then
24477 if test -s conftest.err; then
24478 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24480 else
24481 ac_cpp_err=
24482 fi
24483else
24484 ac_cpp_err=yes
24485fi
24486if test -z "$ac_cpp_err"; then
24487 ac_header_preproc=yes
24488else
24489 echo "$as_me: failed program was:" >&5
24490sed 's/^/| /' conftest.$ac_ext >&5
24491
24492 ac_header_preproc=no
24493fi
24494rm -f conftest.err conftest.$ac_ext
24495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24496echo "${ECHO_T}$ac_header_preproc" >&6
24497
24498# So? What about this header?
ac1cb8d3
VS
24499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24500 yes:no: )
a848cd7e
SC
24501 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24502echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24503 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24504echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24505 ac_header_preproc=yes
a848cd7e 24506 ;;
ac1cb8d3 24507 no:yes:* )
a848cd7e
SC
24508 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24509echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24510 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24511echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24512 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24513echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24514 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24515echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24516 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24517echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24518 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24519echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24520 (
24521 cat <<\_ASBOX
ac1cb8d3
VS
24522## ----------------------------------------- ##
24523## Report this to wx-dev@lists.wxwidgets.org ##
24524## ----------------------------------------- ##
a848cd7e
SC
24525_ASBOX
24526 ) |
24527 sed "s/^/$as_me: WARNING: /" >&2
24528 ;;
24529esac
24530echo "$as_me:$LINENO: checking for windows.h" >&5
24531echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24532if test "${ac_cv_header_windows_h+set}" = set; then
24533 echo $ECHO_N "(cached) $ECHO_C" >&6
24534else
24535 ac_cv_header_windows_h=$ac_header_preproc
24536fi
24537echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24538echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24539
24540fi
24541if test $ac_cv_header_windows_h = yes; then
24542 :
24543else
24544
24545 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24546echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24547 { (exit 1); exit 1; }; }
24548
24549fi
24550
24551
24552
24553 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24554
24555 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24556 LIBS="$LIBS -loleacc"
24557 fi
24558
24559 case "${host}" in
24560 *-*-cygwin* )
24561 LIBS="$LIBS -lkernel32 -luser32"
24562 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24563 esac
24564
24565 if test "$wxUSE_ODBC" = "sys" ; then
24566 wxUSE_ODBC = "yes"
24567 fi
24568 if test "$wxUSE_ODBC" = "yes" ; then
24569 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24570 cat >>confdefs.h <<\_ACEOF
24571#define wxUSE_ODBC 1
24572_ACEOF
24573
24574 fi
24575
24576 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24577 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24578
24579 WIN32INSTALL=win32install
24580fi
24581
24582if test "$wxUSE_GUI" = "yes"; then
24583 USE_GUI=1
24584
24585 GUI_TK_LIBRARY=
24586
24587 WXGTK12=
24588 WXGTK127=
24589 WXGTK20=
24590 WXGPE=
24591
207bc66c
RN
24592 if test "$wxUSE_COCOA" = 1 ; then
24593 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24594 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24595echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24596 wxUSE_PRINTING_ARCHITECTURE=no
24597 fi
24598 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24599 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24600echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24601 wxUSE_DRAG_AND_DROP=no
24602 fi
24603 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24604 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24605echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24606 wxUSE_DRAGIMAGE=no
24607 fi
24608 fi
24609
a848cd7e
SC
24610 if test "$wxUSE_MSW" = 1 ; then
24611 TOOLKIT=MSW
24612 GUIDIST=MSW_DIST
24613
ceec2216 24614 case "${host}" in
a848cd7e
SC
24615 *-*-mingw32* )
24616 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24617 esac
24618 fi
24619
24620 if test "$wxUSE_GTK" = 1; then
24621 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24622echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24623
24624 gtk_version_cached=1
24625 if test "${wx_cv_lib_gtk+set}" = set; then
24626 echo $ECHO_N "(cached) $ECHO_C" >&6
24627else
24628
24629 gtk_version_cached=0
24630 echo "$as_me:$LINENO: result: " >&5
24631echo "${ECHO_T}" >&6
24632
24633 GTK_MODULES=
24634 if test "$wxUSE_THREADS" = "yes"; then
24635 GTK_MODULES=gthread
24636 fi
24637
f597b41c 24638 wx_cv_lib_gtk=
f34ca037 24639 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24640 # Check whether --enable-gtktest or --disable-gtktest was given.
24641if test "${enable_gtktest+set}" = set; then
24642 enableval="$enable_gtktest"
24643
24644else
24645 enable_gtktest=yes
24646fi;
24647
24648 pkg_config_args=gtk+-2.0
24649 for module in . $GTK_MODULES
24650 do
24651 case "$module" in
24652 gthread)
24653 pkg_config_args="$pkg_config_args gthread-2.0"
24654 ;;
24655 esac
24656 done
24657
24658 no_gtk=""
24659
24660 # Extract the first word of "pkg-config", so it can be a program name with args.
24661set dummy pkg-config; ac_word=$2
24662echo "$as_me:$LINENO: checking for $ac_word" >&5
24663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24664if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24665 echo $ECHO_N "(cached) $ECHO_C" >&6
24666else
24667 case $PKG_CONFIG in
24668 [\\/]* | ?:[\\/]*)
24669 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24670 ;;
24671 *)
24672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24673for as_dir in $PATH
24674do
24675 IFS=$as_save_IFS
24676 test -z "$as_dir" && as_dir=.
24677 for ac_exec_ext in '' $ac_executable_extensions; do
24678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24679 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24681 break 2
24682 fi
24683done
24684done
24685
24686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24687 ;;
24688esac
24689fi
24690PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24691
24692if test -n "$PKG_CONFIG"; then
24693 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24694echo "${ECHO_T}$PKG_CONFIG" >&6
24695else
24696 echo "$as_me:$LINENO: result: no" >&5
24697echo "${ECHO_T}no" >&6
24698fi
24699
24700
24701 if test x$PKG_CONFIG != xno ; then
24702 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24703 :
24704 else
c2218763 24705 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24706 no_gtk=yes
24707 PKG_CONFIG=no
24708 fi
24709 else
24710 no_gtk=yes
24711 fi
24712
24713 min_gtk_version=2.0.0
24714 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24715echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24716
24717 if test x$PKG_CONFIG != xno ; then
24718 ## don't try to run the test against uninstalled libtool libs
24719 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24720 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24721 enable_gtktest=no
24722 fi
24723
24724 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24725 :
24726 else
24727 no_gtk=yes
24728 fi
24729 fi
24730
24731 if test x"$no_gtk" = x ; then
24732 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24733 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24734 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24735 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24736 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24737 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24738 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24739 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24740 if test "x$enable_gtktest" = "xyes" ; then
24741 ac_save_CFLAGS="$CFLAGS"
24742 ac_save_LIBS="$LIBS"
24743 CFLAGS="$CFLAGS $GTK_CFLAGS"
24744 LIBS="$GTK_LIBS $LIBS"
24745 rm -f conf.gtktest
24746 if test "$cross_compiling" = yes; then
24747 echo $ac_n "cross compiling; assumed OK... $ac_c"
24748else
24749 cat >conftest.$ac_ext <<_ACEOF
24750/* confdefs.h. */
24751_ACEOF
24752cat confdefs.h >>conftest.$ac_ext
24753cat >>conftest.$ac_ext <<_ACEOF
24754/* end confdefs.h. */
24755
24756#include <gtk/gtk.h>
24757#include <stdio.h>
24758#include <stdlib.h>
24759
24760int
24761main ()
24762{
24763 int major, minor, micro;
24764 char *tmp_version;
24765
24766 system ("touch conf.gtktest");
24767
24768 /* HP/UX 9 (%@#!) writes to sscanf strings */
24769 tmp_version = g_strdup("$min_gtk_version");
24770 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24771 printf("%s, bad version string\n", "$min_gtk_version");
24772 exit(1);
24773 }
24774
24775 if ((gtk_major_version != $gtk_config_major_version) ||
24776 (gtk_minor_version != $gtk_config_minor_version) ||
24777 (gtk_micro_version != $gtk_config_micro_version))
24778 {
24779 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24780 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24781 gtk_major_version, gtk_minor_version, gtk_micro_version);
24782 printf ("*** was found! If pkg-config was correct, then it is best\n");
24783 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24784 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24785 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24786 printf("*** required on your system.\n");
24787 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24788 printf("*** to point to the correct configuration files\n");
24789 }
24790 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24791 (gtk_minor_version != GTK_MINOR_VERSION) ||
24792 (gtk_micro_version != GTK_MICRO_VERSION))
24793 {
24794 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24795 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24796 printf("*** library (version %d.%d.%d)\n",
24797 gtk_major_version, gtk_minor_version, gtk_micro_version);
24798 }
24799 else
24800 {
24801 if ((gtk_major_version > major) ||
24802 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24803 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24804 {
24805 return 0;
24806 }
24807 else
24808 {
24809 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24810 gtk_major_version, gtk_minor_version, gtk_micro_version);
24811 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24812 major, minor, micro);
24813 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24814 printf("***\n");
24815 printf("*** If you have already installed a sufficiently new version, this error\n");
24816 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24817 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24818 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24819 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24820 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24821 printf("*** so that the correct libraries are found at run-time))\n");
24822 }
24823 }
24824 return 1;
24825}
24826
24827_ACEOF
24828rm -f conftest$ac_exeext
24829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24830 (eval $ac_link) 2>&5
24831 ac_status=$?
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835 (eval $ac_try) 2>&5
24836 ac_status=$?
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; }; then
24839 :
24840else
24841 echo "$as_me: program exited with status $ac_status" >&5
24842echo "$as_me: failed program was:" >&5
24843sed 's/^/| /' conftest.$ac_ext >&5
24844
24845( exit $ac_status )
24846no_gtk=yes
24847fi
ac1cb8d3 24848rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24849fi
24850 CFLAGS="$ac_save_CFLAGS"
24851 LIBS="$ac_save_LIBS"
24852 fi
24853 fi
24854 if test "x$no_gtk" = x ; then
24855 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24856echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24857 wx_cv_lib_gtk=2.0
24858 else
24859 echo "$as_me:$LINENO: result: no" >&5
24860echo "${ECHO_T}no" >&6
24861 if test "$PKG_CONFIG" = "no" ; then
24862 echo "*** A new enough version of pkg-config was not found."
24863 echo "*** See http://pkgconfig.sourceforge.net"
24864 else
24865 if test -f conf.gtktest ; then
24866 :
24867 else
24868 echo "*** Could not run GTK+ test program, checking why..."
24869 ac_save_CFLAGS="$CFLAGS"
24870 ac_save_LIBS="$LIBS"
24871 CFLAGS="$CFLAGS $GTK_CFLAGS"
24872 LIBS="$LIBS $GTK_LIBS"
24873 cat >conftest.$ac_ext <<_ACEOF
24874/* confdefs.h. */
24875_ACEOF
24876cat confdefs.h >>conftest.$ac_ext
24877cat >>conftest.$ac_ext <<_ACEOF
24878/* end confdefs.h. */
24879
24880#include <gtk/gtk.h>
24881#include <stdio.h>
24882
24883int
24884main ()
24885{
24886 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24887 ;
24888 return 0;
24889}
24890_ACEOF
24891rm -f conftest.$ac_objext conftest$ac_exeext
24892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24893 (eval $ac_link) 2>conftest.er1
a848cd7e 24894 ac_status=$?
ac1cb8d3
VS
24895 grep -v '^ *+' conftest.er1 >conftest.err
24896 rm -f conftest.er1
24897 cat conftest.err >&5
a848cd7e
SC
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); } &&
fb00f58d
JS
24900 { ac_try='test -z "$ac_c_werror_flag"
24901 || test ! -s conftest.err'
ac1cb8d3
VS
24902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24903 (eval $ac_try) 2>&5
24904 ac_status=$?
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); }; } &&
24907 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24909 (eval $ac_try) 2>&5
24910 ac_status=$?
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); }; }; then
24913 echo "*** The test program compiled, but did not run. This usually means"
24914 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24915 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24916 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24917 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24918 echo "*** is required on your system"
24919 echo "***"
24920 echo "*** If you have an old version installed, it is best to remove it, although"
24921 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24922else
24923 echo "$as_me: failed program was:" >&5
24924sed 's/^/| /' conftest.$ac_ext >&5
24925
24926 echo "*** The test program failed to compile or link. See the file config.log for the"
24927 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24928fi
ac1cb8d3
VS
24929rm -f conftest.err conftest.$ac_objext \
24930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24931 CFLAGS="$ac_save_CFLAGS"
24932 LIBS="$ac_save_LIBS"
24933 fi
24934 fi
24935 GTK_CFLAGS=""
24936 GTK_LIBS=""
24937 :
24938 fi
24939
24940
24941 rm -f conf.gtktest
24942
f597b41c
MW
24943 fi
24944
f34ca037
MW
24945 if test -z "$wx_cv_lib_gtk"; then
24946 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24947
24948# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24949if test "${with_gtk_prefix+set}" = set; then
24950 withval="$with_gtk_prefix"
24951 gtk_config_prefix="$withval"
24952else
24953 gtk_config_prefix=""
24954fi;
24955
24956# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24957if test "${with_gtk_exec_prefix+set}" = set; then
24958 withval="$with_gtk_exec_prefix"
24959 gtk_config_exec_prefix="$withval"
24960else
24961 gtk_config_exec_prefix=""
24962fi;
24963# Check whether --enable-gtktest or --disable-gtktest was given.
24964if test "${enable_gtktest+set}" = set; then
24965 enableval="$enable_gtktest"
24966
24967else
24968 enable_gtktest=yes
24969fi;
24970
24971 for module in . $GTK_MODULES
24972 do
24973 case "$module" in
24974 gthread)
24975 gtk_config_args="$gtk_config_args gthread"
24976 ;;
24977 esac
24978 done
24979
24980 if test x$gtk_config_exec_prefix != x ; then
24981 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24982 if test x${GTK_CONFIG+set} != xset ; then
24983 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24984 fi
24985 fi
24986 if test x$gtk_config_prefix != x ; then
24987 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24988 if test x${GTK_CONFIG+set} != xset ; then
24989 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24990 fi
24991 fi
24992
24993 # Extract the first word of "gtk-config", so it can be a program name with args.
24994set dummy gtk-config; ac_word=$2
24995echo "$as_me:$LINENO: checking for $ac_word" >&5
24996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24997if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24998 echo $ECHO_N "(cached) $ECHO_C" >&6
24999else
25000 case $GTK_CONFIG in
25001 [\\/]* | ?:[\\/]*)
25002 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25003 ;;
25004 *)
25005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25006for as_dir in $PATH
25007do
25008 IFS=$as_save_IFS
25009 test -z "$as_dir" && as_dir=.
25010 for ac_exec_ext in '' $ac_executable_extensions; do
25011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25012 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25014 break 2
25015 fi
25016done
25017done
25018
25019 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25020 ;;
25021esac
25022fi
25023GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25024
25025if test -n "$GTK_CONFIG"; then
25026 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25027echo "${ECHO_T}$GTK_CONFIG" >&6
25028else
25029 echo "$as_me:$LINENO: result: no" >&5
25030echo "${ECHO_T}no" >&6
25031fi
25032
25033 min_gtk_version=1.2.7
25034 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25035echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25036 no_gtk=""
25037 if test "$GTK_CONFIG" = "no" ; then
25038 no_gtk=yes
25039 else
25040 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25041 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25042 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25044 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25045 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25046 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25047 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25048 if test "x$enable_gtktest" = "xyes" ; then
25049 ac_save_CFLAGS="$CFLAGS"
25050 ac_save_LIBS="$LIBS"
25051 CFLAGS="$CFLAGS $GTK_CFLAGS"
25052 LIBS="$GTK_LIBS $LIBS"
25053 rm -f conf.gtktest
25054 if test "$cross_compiling" = yes; then
25055 echo $ac_n "cross compiling; assumed OK... $ac_c"
25056else
25057 cat >conftest.$ac_ext <<_ACEOF
25058/* confdefs.h. */
25059_ACEOF
25060cat confdefs.h >>conftest.$ac_ext
25061cat >>conftest.$ac_ext <<_ACEOF
25062/* end confdefs.h. */
25063
25064#include <gtk/gtk.h>
25065#include <stdio.h>
25066#include <stdlib.h>
25067
25068int
25069main ()
25070{
25071 int major, minor, micro;
25072 char *tmp_version;
25073
25074 system ("touch conf.gtktest");
25075
25076 /* HP/UX 9 (%@#!) writes to sscanf strings */
25077 tmp_version = g_strdup("$min_gtk_version");
25078 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25079 printf("%s, bad version string\n", "$min_gtk_version");
25080 exit(1);
25081 }
25082
25083 if ((gtk_major_version != $gtk_config_major_version) ||
25084 (gtk_minor_version != $gtk_config_minor_version) ||
25085 (gtk_micro_version != $gtk_config_micro_version))
25086 {
25087 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25088 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25089 gtk_major_version, gtk_minor_version, gtk_micro_version);
25090 printf ("*** was found! If gtk-config was correct, then it is best\n");
25091 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25092 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25093 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25094 printf("*** required on your system.\n");
25095 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25096 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25097 printf("*** before re-running configure\n");
25098 }
25099#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25100 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25101 (gtk_minor_version != GTK_MINOR_VERSION) ||
25102 (gtk_micro_version != GTK_MICRO_VERSION))
25103 {
25104 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25105 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25106 printf("*** library (version %d.%d.%d)\n",
25107 gtk_major_version, gtk_minor_version, gtk_micro_version);
25108 }
25109#endif /* defined (GTK_MAJOR_VERSION) ... */
25110 else
25111 {
25112 if ((gtk_major_version > major) ||
25113 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25114 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25115 {
25116 return 0;
25117 }
25118 else
25119 {
25120 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25121 gtk_major_version, gtk_minor_version, gtk_micro_version);
25122 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25123 major, minor, micro);
25124 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25125 printf("***\n");
25126 printf("*** If you have already installed a sufficiently new version, this error\n");
25127 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25128 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25129 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25130 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25131 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25132 printf("*** so that the correct libraries are found at run-time))\n");
25133 }
25134 }
25135 return 1;
25136}
25137
25138_ACEOF
25139rm -f conftest$ac_exeext
25140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25141 (eval $ac_link) 2>&5
25142 ac_status=$?
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146 (eval $ac_try) 2>&5
25147 ac_status=$?
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); }; }; then
25150 :
25151else
25152 echo "$as_me: program exited with status $ac_status" >&5
25153echo "$as_me: failed program was:" >&5
25154sed 's/^/| /' conftest.$ac_ext >&5
25155
25156( exit $ac_status )
25157no_gtk=yes
25158fi
ac1cb8d3 25159rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25160fi
25161 CFLAGS="$ac_save_CFLAGS"
25162 LIBS="$ac_save_LIBS"
25163 fi
25164 fi
25165 if test "x$no_gtk" = x ; then
25166 echo "$as_me:$LINENO: result: yes" >&5
25167echo "${ECHO_T}yes" >&6
25168 wx_cv_lib_gtk=1.2.7
25169 else
25170 echo "$as_me:$LINENO: result: no" >&5
25171echo "${ECHO_T}no" >&6
25172 if test "$GTK_CONFIG" = "no" ; then
25173 echo "*** The gtk-config script installed by GTK could not be found"
25174 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25175 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25176 echo "*** full path to gtk-config."
25177 else
25178 if test -f conf.gtktest ; then
25179 :
25180 else
25181 echo "*** Could not run GTK test program, checking why..."
25182 CFLAGS="$CFLAGS $GTK_CFLAGS"
25183 LIBS="$LIBS $GTK_LIBS"
25184 cat >conftest.$ac_ext <<_ACEOF
25185/* confdefs.h. */
25186_ACEOF
25187cat confdefs.h >>conftest.$ac_ext
25188cat >>conftest.$ac_ext <<_ACEOF
25189/* end confdefs.h. */
25190
25191#include <gtk/gtk.h>
25192#include <stdio.h>
25193
25194int
25195main ()
25196{
25197 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25198 ;
25199 return 0;
25200}
25201_ACEOF
25202rm -f conftest.$ac_objext conftest$ac_exeext
25203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25204 (eval $ac_link) 2>conftest.er1
a848cd7e 25205 ac_status=$?
ac1cb8d3
VS
25206 grep -v '^ *+' conftest.er1 >conftest.err
25207 rm -f conftest.er1
25208 cat conftest.err >&5
a848cd7e
SC
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } &&
fb00f58d
JS
25211 { ac_try='test -z "$ac_c_werror_flag"
25212 || test ! -s conftest.err'
ac1cb8d3
VS
25213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25214 (eval $ac_try) 2>&5
25215 ac_status=$?
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); }; } &&
25218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25220 (eval $ac_try) 2>&5
25221 ac_status=$?
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); }; }; then
25224 echo "*** The test program compiled, but did not run. This usually means"
25225 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25226 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25227 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25228 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25229 echo "*** is required on your system"
25230 echo "***"
25231 echo "*** If you have an old version installed, it is best to remove it, although"
25232 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25233 echo "***"
25234 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25235 echo "*** came with the system with the command"
25236 echo "***"
25237 echo "*** rpm --erase --nodeps gtk gtk-devel"
25238else
25239 echo "$as_me: failed program was:" >&5
25240sed 's/^/| /' conftest.$ac_ext >&5
25241
25242 echo "*** The test program failed to compile or link. See the file config.log for the"
25243 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25244 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25245 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25246fi
ac1cb8d3
VS
25247rm -f conftest.err conftest.$ac_objext \
25248 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25249 CFLAGS="$ac_save_CFLAGS"
25250 LIBS="$ac_save_LIBS"
25251 fi
25252 fi
25253 GTK_CFLAGS=""
25254 GTK_LIBS=""
25255 :
25256 fi
25257
25258
25259 rm -f conf.gtktest
25260
25261
f34ca037 25262 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25263
25264# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25265if test "${with_gtk_prefix+set}" = set; then
25266 withval="$with_gtk_prefix"
25267 gtk_config_prefix="$withval"
25268else
25269 gtk_config_prefix=""
25270fi;
25271
25272# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25273if test "${with_gtk_exec_prefix+set}" = set; then
25274 withval="$with_gtk_exec_prefix"
25275 gtk_config_exec_prefix="$withval"
25276else
25277 gtk_config_exec_prefix=""
25278fi;
25279# Check whether --enable-gtktest or --disable-gtktest was given.
25280if test "${enable_gtktest+set}" = set; then
25281 enableval="$enable_gtktest"
25282
25283else
25284 enable_gtktest=yes
25285fi;
25286
25287 for module in . $GTK_MODULES
25288 do
25289 case "$module" in
25290 gthread)
25291 gtk_config_args="$gtk_config_args gthread"
25292 ;;
25293 esac
25294 done
25295
25296 if test x$gtk_config_exec_prefix != x ; then
25297 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25298 if test x${GTK_CONFIG+set} != xset ; then
25299 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25300 fi
25301 fi
25302 if test x$gtk_config_prefix != x ; then
25303 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25304 if test x${GTK_CONFIG+set} != xset ; then
25305 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25306 fi
25307 fi
25308
25309 # Extract the first word of "gtk-config", so it can be a program name with args.
25310set dummy gtk-config; ac_word=$2
25311echo "$as_me:$LINENO: checking for $ac_word" >&5
25312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25313if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25314 echo $ECHO_N "(cached) $ECHO_C" >&6
25315else
25316 case $GTK_CONFIG in
25317 [\\/]* | ?:[\\/]*)
25318 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25319 ;;
25320 *)
25321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25322for as_dir in $PATH
25323do
25324 IFS=$as_save_IFS
25325 test -z "$as_dir" && as_dir=.
25326 for ac_exec_ext in '' $ac_executable_extensions; do
25327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25328 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25330 break 2
25331 fi
25332done
25333done
25334
25335 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25336 ;;
25337esac
25338fi
25339GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25340
25341if test -n "$GTK_CONFIG"; then
25342 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25343echo "${ECHO_T}$GTK_CONFIG" >&6
25344else
25345 echo "$as_me:$LINENO: result: no" >&5
25346echo "${ECHO_T}no" >&6
25347fi
25348
25349 min_gtk_version=1.2.3
25350 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25351echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25352 no_gtk=""
25353 if test "$GTK_CONFIG" = "no" ; then
25354 no_gtk=yes
25355 else
25356 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25357 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25358 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25359 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25360 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25361 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25362 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25363 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25364 if test "x$enable_gtktest" = "xyes" ; then
25365 ac_save_CFLAGS="$CFLAGS"
25366 ac_save_LIBS="$LIBS"
25367 CFLAGS="$CFLAGS $GTK_CFLAGS"
25368 LIBS="$GTK_LIBS $LIBS"
25369 rm -f conf.gtktest
25370 if test "$cross_compiling" = yes; then
25371 echo $ac_n "cross compiling; assumed OK... $ac_c"
25372else
25373 cat >conftest.$ac_ext <<_ACEOF
25374/* confdefs.h. */
25375_ACEOF
25376cat confdefs.h >>conftest.$ac_ext
25377cat >>conftest.$ac_ext <<_ACEOF
25378/* end confdefs.h. */
25379
25380#include <gtk/gtk.h>
25381#include <stdio.h>
25382#include <stdlib.h>
25383
25384int
25385main ()
25386{
25387 int major, minor, micro;
25388 char *tmp_version;
25389
25390 system ("touch conf.gtktest");
25391
25392 /* HP/UX 9 (%@#!) writes to sscanf strings */
25393 tmp_version = g_strdup("$min_gtk_version");
25394 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25395 printf("%s, bad version string\n", "$min_gtk_version");
25396 exit(1);
25397 }
25398
25399 if ((gtk_major_version != $gtk_config_major_version) ||
25400 (gtk_minor_version != $gtk_config_minor_version) ||
25401 (gtk_micro_version != $gtk_config_micro_version))
25402 {
25403 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25404 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25405 gtk_major_version, gtk_minor_version, gtk_micro_version);
25406 printf ("*** was found! If gtk-config was correct, then it is best\n");
25407 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25408 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25409 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25410 printf("*** required on your system.\n");
25411 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25412 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25413 printf("*** before re-running configure\n");
25414 }
25415#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25416 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25417 (gtk_minor_version != GTK_MINOR_VERSION) ||
25418 (gtk_micro_version != GTK_MICRO_VERSION))
25419 {
25420 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25421 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25422 printf("*** library (version %d.%d.%d)\n",
25423 gtk_major_version, gtk_minor_version, gtk_micro_version);
25424 }
25425#endif /* defined (GTK_MAJOR_VERSION) ... */
25426 else
25427 {
25428 if ((gtk_major_version > major) ||
25429 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25430 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25431 {
25432 return 0;
25433 }
25434 else
25435 {
25436 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25437 gtk_major_version, gtk_minor_version, gtk_micro_version);
25438 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25439 major, minor, micro);
25440 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25441 printf("***\n");
25442 printf("*** If you have already installed a sufficiently new version, this error\n");
25443 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25444 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25445 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25446 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25447 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25448 printf("*** so that the correct libraries are found at run-time))\n");
25449 }
25450 }
25451 return 1;
25452}
25453
25454_ACEOF
25455rm -f conftest$ac_exeext
25456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25457 (eval $ac_link) 2>&5
25458 ac_status=$?
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25462 (eval $ac_try) 2>&5
25463 ac_status=$?
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); }; }; then
25466 :
25467else
25468 echo "$as_me: program exited with status $ac_status" >&5
25469echo "$as_me: failed program was:" >&5
25470sed 's/^/| /' conftest.$ac_ext >&5
25471
25472( exit $ac_status )
25473no_gtk=yes
25474fi
ac1cb8d3 25475rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25476fi
25477 CFLAGS="$ac_save_CFLAGS"
25478 LIBS="$ac_save_LIBS"
25479 fi
25480 fi
25481 if test "x$no_gtk" = x ; then
25482 echo "$as_me:$LINENO: result: yes" >&5
25483echo "${ECHO_T}yes" >&6
25484 wx_cv_lib_gtk=1.2.3
25485 else
25486 echo "$as_me:$LINENO: result: no" >&5
25487echo "${ECHO_T}no" >&6
25488 if test "$GTK_CONFIG" = "no" ; then
25489 echo "*** The gtk-config script installed by GTK could not be found"
25490 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25491 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25492 echo "*** full path to gtk-config."
25493 else
25494 if test -f conf.gtktest ; then
25495 :
25496 else
25497 echo "*** Could not run GTK test program, checking why..."
25498 CFLAGS="$CFLAGS $GTK_CFLAGS"
25499 LIBS="$LIBS $GTK_LIBS"
25500 cat >conftest.$ac_ext <<_ACEOF
25501/* confdefs.h. */
25502_ACEOF
25503cat confdefs.h >>conftest.$ac_ext
25504cat >>conftest.$ac_ext <<_ACEOF
25505/* end confdefs.h. */
25506
25507#include <gtk/gtk.h>
25508#include <stdio.h>
25509
25510int
25511main ()
25512{
25513 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25514 ;
25515 return 0;
25516}
25517_ACEOF
25518rm -f conftest.$ac_objext conftest$ac_exeext
25519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25520 (eval $ac_link) 2>conftest.er1
a848cd7e 25521 ac_status=$?
ac1cb8d3
VS
25522 grep -v '^ *+' conftest.er1 >conftest.err
25523 rm -f conftest.er1
25524 cat conftest.err >&5
a848cd7e
SC
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); } &&
fb00f58d
JS
25527 { ac_try='test -z "$ac_c_werror_flag"
25528 || test ! -s conftest.err'
ac1cb8d3
VS
25529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25530 (eval $ac_try) 2>&5
25531 ac_status=$?
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); }; } &&
25534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25537 ac_status=$?
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; }; then
25540 echo "*** The test program compiled, but did not run. This usually means"
25541 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25542 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25543 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25544 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25545 echo "*** is required on your system"
25546 echo "***"
25547 echo "*** If you have an old version installed, it is best to remove it, although"
25548 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25549 echo "***"
25550 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25551 echo "*** came with the system with the command"
25552 echo "***"
25553 echo "*** rpm --erase --nodeps gtk gtk-devel"
25554else
25555 echo "$as_me: failed program was:" >&5
25556sed 's/^/| /' conftest.$ac_ext >&5
25557
25558 echo "*** The test program failed to compile or link. See the file config.log for the"
25559 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25560 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25561 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25562fi
ac1cb8d3
VS
25563rm -f conftest.err conftest.$ac_objext \
25564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25565 CFLAGS="$ac_save_CFLAGS"
25566 LIBS="$ac_save_LIBS"
25567 fi
25568 fi
25569 GTK_CFLAGS=""
25570 GTK_LIBS=""
25571 :
25572 fi
25573
25574
25575 rm -f conf.gtktest
25576
f34ca037 25577 fi
a848cd7e
SC
25578 fi
25579 fi
25580
25581 if test -z "$wx_cv_lib_gtk"; then
25582 wx_cv_lib_gtk=none
25583 else
25584 wx_cv_cflags_gtk=$GTK_CFLAGS
25585 wx_cv_libs_gtk=$GTK_LIBS
25586 fi
25587
25588
25589fi
25590
25591
25592 if test "$gtk_version_cached" = 1; then
25593 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25594echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25595 fi
25596
25597 case "$wx_cv_lib_gtk" in
25598 2.0) WXGTK20=1
25599 TOOLKIT_VERSION=2
25600 ;;
25601 1.2.7) WXGTK127=1
25602 WXGTK12=1
25603 ;;
25604 1.2.3) WXGTK12=1
25605 ;;
25606 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25607The development files for GTK+ were not found. For GTK+ 2, please
25608ensure that pkg-config is in the path and that gtk+-2.0.pc is
25609installed. For GTK+ 1.2 please check that gtk-config is in the path,
25610and that the version is 1.2.3 or above. Also check that the
25611libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25612--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25613 " >&5
25614echo "$as_me: error:
f597b41c
MW
25615The development files for GTK+ were not found. For GTK+ 2, please
25616ensure that pkg-config is in the path and that gtk+-2.0.pc is
25617installed. For GTK+ 1.2 please check that gtk-config is in the path,
25618and that the version is 1.2.3 or above. Also check that the
25619libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25620--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25621 " >&2;}
25622 { (exit 1); exit 1; }; }
25623 ;;
25624 esac
25625
25626 if test "$WXGTK20" = 1; then
304205f1
VS
25627 save_CFLAGS="$CFLAGS"
25628 save_LIBS="$LIBS"
9d271838
VZ
25629 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25630 LIBS="$LIBS $wx_cv_lib_gtk"
304205f1 25631
9755e73b 25632
304205f1
VS
25633for ac_func in pango_font_family_is_monospace
25634do
25635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25636echo "$as_me:$LINENO: checking for $ac_func" >&5
25637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25638if eval "test \"\${$as_ac_var+set}\" = set"; then
25639 echo $ECHO_N "(cached) $ECHO_C" >&6
25640else
25641 cat >conftest.$ac_ext <<_ACEOF
25642/* confdefs.h. */
25643_ACEOF
25644cat confdefs.h >>conftest.$ac_ext
25645cat >>conftest.$ac_ext <<_ACEOF
25646/* end confdefs.h. */
25647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25649#define $ac_func innocuous_$ac_func
25650
25651/* System header to define __stub macros and hopefully few prototypes,
25652 which can conflict with char $ac_func (); below.
25653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25654 <limits.h> exists even on freestanding compilers. */
25655
25656#ifdef __STDC__
25657# include <limits.h>
25658#else
25659# include <assert.h>
25660#endif
25661
25662#undef $ac_func
25663
25664/* Override any gcc2 internal prototype to avoid an error. */
25665#ifdef __cplusplus
25666extern "C"
25667{
25668#endif
25669/* We use char because int might match the return type of a gcc2
25670 builtin and then its argument prototype would still apply. */
25671char $ac_func ();
25672/* The GNU C library defines this for functions which it implements
25673 to always fail with ENOSYS. Some functions are actually named
25674 something starting with __ and the normal name is an alias. */
25675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25676choke me
25677#else
25678char (*f) () = $ac_func;
25679#endif
25680#ifdef __cplusplus
25681}
25682#endif
25683
25684int
25685main ()
25686{
25687return f != $ac_func;
25688 ;
25689 return 0;
25690}
25691_ACEOF
25692rm -f conftest.$ac_objext conftest$ac_exeext
25693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25694 (eval $ac_link) 2>conftest.er1
25695 ac_status=$?
25696 grep -v '^ *+' conftest.er1 >conftest.err
25697 rm -f conftest.er1
25698 cat conftest.err >&5
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); } &&
fb00f58d
JS
25701 { ac_try='test -z "$ac_c_werror_flag"
25702 || test ! -s conftest.err'
304205f1
VS
25703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25704 (eval $ac_try) 2>&5
25705 ac_status=$?
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); }; } &&
25708 { ac_try='test -s conftest$ac_exeext'
25709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25710 (eval $ac_try) 2>&5
25711 ac_status=$?
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); }; }; then
25714 eval "$as_ac_var=yes"
25715else
25716 echo "$as_me: failed program was:" >&5
25717sed 's/^/| /' conftest.$ac_ext >&5
25718
25719eval "$as_ac_var=no"
25720fi
25721rm -f conftest.err conftest.$ac_objext \
25722 conftest$ac_exeext conftest.$ac_ext
25723fi
25724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25725echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25726if test `eval echo '${'$as_ac_var'}'` = yes; then
25727 cat >>confdefs.h <<_ACEOF
25728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25729_ACEOF
25730
25731fi
25732done
25733
9755e73b
VS
25734
25735 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25736echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25737 cat >conftest.$ac_ext <<_ACEOF
25738/* confdefs.h. */
25739_ACEOF
25740cat confdefs.h >>conftest.$ac_ext
25741cat >>conftest.$ac_ext <<_ACEOF
25742/* end confdefs.h. */
25743
25744 #include <gtk/gtk.h>
25745
25746int
25747main ()
25748{
25749
25750 #if !GTK_CHECK_VERSION(2,4,0)
25751 #error "Not GTK+ 2.4"
25752 #endif
25753
25754 ;
25755 return 0;
25756}
25757_ACEOF
25758rm -f conftest.$ac_objext
25759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25760 (eval $ac_compile) 2>conftest.er1
25761 ac_status=$?
25762 grep -v '^ *+' conftest.er1 >conftest.err
25763 rm -f conftest.er1
25764 cat conftest.err >&5
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } &&
fb00f58d
JS
25767 { ac_try='test -z "$ac_c_werror_flag"
25768 || test ! -s conftest.err'
9755e73b
VS
25769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770 (eval $ac_try) 2>&5
25771 ac_status=$?
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); }; } &&
25774 { ac_try='test -s conftest.$ac_objext'
25775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25776 (eval $ac_try) 2>&5
25777 ac_status=$?
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); }; }; then
25780
25781 cat >>confdefs.h <<\_ACEOF
25782#define __WXGTK24__ 1
25783_ACEOF
25784
25785 echo "$as_me:$LINENO: result: yes" >&5
25786echo "${ECHO_T}yes" >&6
25787
25788else
25789 echo "$as_me: failed program was:" >&5
25790sed 's/^/| /' conftest.$ac_ext >&5
25791
25792
25793 echo "$as_me:$LINENO: result: no" >&5
25794echo "${ECHO_T}no" >&6
25795
25796fi
25797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25798
304205f1
VS
25799 CFLAGS="$save_CFLAGS"
25800 LIBS="$save_LIBS"
a848cd7e
SC
25801 else
25802 if test "$wxUSE_UNICODE" = "yes"; then
25803 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25804echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25805 wxUSE_UNICODE=no
25806 fi
25807 fi
25808
25809 if test "$USE_DARWIN" != 1; then
25810
25811for ac_func in poll
25812do
25813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25814echo "$as_me:$LINENO: checking for $ac_func" >&5
25815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25816if eval "test \"\${$as_ac_var+set}\" = set"; then
25817 echo $ECHO_N "(cached) $ECHO_C" >&6
25818else
25819 cat >conftest.$ac_ext <<_ACEOF
25820/* confdefs.h. */
25821_ACEOF
25822cat confdefs.h >>conftest.$ac_ext
25823cat >>conftest.$ac_ext <<_ACEOF
25824/* end confdefs.h. */
ac1cb8d3
VS
25825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25827#define $ac_func innocuous_$ac_func
25828
a848cd7e
SC
25829/* System header to define __stub macros and hopefully few prototypes,
25830 which can conflict with char $ac_func (); below.
25831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25832 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25833
a848cd7e
SC
25834#ifdef __STDC__
25835# include <limits.h>
25836#else
25837# include <assert.h>
25838#endif
ac1cb8d3
VS
25839
25840#undef $ac_func
25841
a848cd7e
SC
25842/* Override any gcc2 internal prototype to avoid an error. */
25843#ifdef __cplusplus
25844extern "C"
25845{
25846#endif
25847/* We use char because int might match the return type of a gcc2
25848 builtin and then its argument prototype would still apply. */
25849char $ac_func ();
25850/* The GNU C library defines this for functions which it implements
25851 to always fail with ENOSYS. Some functions are actually named
25852 something starting with __ and the normal name is an alias. */
25853#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25854choke me
25855#else
25856char (*f) () = $ac_func;
25857#endif
25858#ifdef __cplusplus
25859}
25860#endif
25861
25862int
25863main ()
25864{
25865return f != $ac_func;
25866 ;
25867 return 0;
25868}
25869_ACEOF
25870rm -f conftest.$ac_objext conftest$ac_exeext
25871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25872 (eval $ac_link) 2>conftest.er1
a848cd7e 25873 ac_status=$?
ac1cb8d3
VS
25874 grep -v '^ *+' conftest.er1 >conftest.err
25875 rm -f conftest.er1
25876 cat conftest.err >&5
a848cd7e
SC
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); } &&
fb00f58d
JS
25879 { ac_try='test -z "$ac_c_werror_flag"
25880 || test ! -s conftest.err'
ac1cb8d3
VS
25881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25882 (eval $ac_try) 2>&5
25883 ac_status=$?
25884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); }; } &&
25886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25888 (eval $ac_try) 2>&5
25889 ac_status=$?
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); }; }; then
25892 eval "$as_ac_var=yes"
25893else
25894 echo "$as_me: failed program was:" >&5
25895sed 's/^/| /' conftest.$ac_ext >&5
25896
25897eval "$as_ac_var=no"
25898fi
ac1cb8d3
VS
25899rm -f conftest.err conftest.$ac_objext \
25900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25901fi
25902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25903echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25904if test `eval echo '${'$as_ac_var'}'` = yes; then
25905 cat >>confdefs.h <<_ACEOF
25906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25907_ACEOF
25908
25909fi
25910done
25911
25912 fi
25913
25914 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25915 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25916
25917 AFMINSTALL=afminstall
25918 TOOLKIT=GTK
25919 GUIDIST=GTK_DIST
25920
25921 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25922echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25923if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25924 echo $ECHO_N "(cached) $ECHO_C" >&6
25925else
25926 ac_check_lib_save_LIBS=$LIBS
25927LIBS="-lgdk $LIBS"
25928cat >conftest.$ac_ext <<_ACEOF
25929/* confdefs.h. */
25930_ACEOF
25931cat confdefs.h >>conftest.$ac_ext
25932cat >>conftest.$ac_ext <<_ACEOF
25933/* end confdefs.h. */
25934
25935/* Override any gcc2 internal prototype to avoid an error. */
25936#ifdef __cplusplus
25937extern "C"
25938#endif
25939/* We use char because int might match the return type of a gcc2
25940 builtin and then its argument prototype would still apply. */
25941char gdk_im_open ();
25942int
25943main ()
25944{
25945gdk_im_open ();
25946 ;
25947 return 0;
25948}
25949_ACEOF
25950rm -f conftest.$ac_objext conftest$ac_exeext
25951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25952 (eval $ac_link) 2>conftest.er1
a848cd7e 25953 ac_status=$?
ac1cb8d3
VS
25954 grep -v '^ *+' conftest.er1 >conftest.err
25955 rm -f conftest.er1
25956 cat conftest.err >&5
a848cd7e
SC
25957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); } &&
fb00f58d
JS
25959 { ac_try='test -z "$ac_c_werror_flag"
25960 || test ! -s conftest.err'
ac1cb8d3
VS
25961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25962 (eval $ac_try) 2>&5
25963 ac_status=$?
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); }; } &&
25966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25969 ac_status=$?
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; }; then
25972 ac_cv_lib_gdk_gdk_im_open=yes
25973else
25974 echo "$as_me: failed program was:" >&5
25975sed 's/^/| /' conftest.$ac_ext >&5
25976
25977ac_cv_lib_gdk_gdk_im_open=no
25978fi
ac1cb8d3
VS
25979rm -f conftest.err conftest.$ac_objext \
25980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25981LIBS=$ac_check_lib_save_LIBS
25982fi
25983echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25984echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25985if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25986 cat >>confdefs.h <<\_ACEOF
25987#define HAVE_XIM 1
25988_ACEOF
25989
25990fi
25991
25992
25993
25994 if test "$wxUSE_GPE" = "yes"; then
25995 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25996echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25997
25998ac_find_libraries=
25999for ac_dir in $SEARCH_LIB /usr/lib;
26000 do
26001 for ac_extension in a so sl dylib; do
26002 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26003 ac_find_libraries=$ac_dir
26004 break 2
26005 fi
26006 done
26007 done
26008
26009 if test "$ac_find_libraries" != "" ; then
26010
26011 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26012 result=$?
26013 if test $result = 0; then
26014 ac_path_to_link=""
26015 else
26016 ac_path_to_link=" -L$ac_find_libraries"
26017 fi
26018
26019 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26020 WXGPE=1
26021 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26022echo "${ECHO_T}found at $ac_find_libraries" >&6
26023 else
26024 echo "$as_me:$LINENO: result: not found" >&5
26025echo "${ECHO_T}not found" >&6
26026 fi
26027
26028 fi
26029 fi
26030
26031 if test "$wxUSE_MGL" = 1; then
26032 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26033echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26034 if test "x$MGL_ROOT" = x ; then
26035 echo "$as_me:$LINENO: result: not found" >&5
26036echo "${ECHO_T}not found" >&6
26037 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26038echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26039 { (exit 1); exit 1; }; }
26040 else
26041 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26042echo "${ECHO_T}$MGL_ROOT" >&6
26043 fi
26044
26045 echo "$as_me:$LINENO: checking for libmgl location" >&5
26046echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26047 case "${host}" in
26048 *-*-linux* )
26049 if test "x$wxUSE_SHARED" = xyes ; then
26050 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26051 else
26052 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26053 fi
26054 ;;
26055 *-pc-msdosdjgpp )
26056 mgl_os_candidates="dos32/dj2"
26057 ;;
26058 *)
26059 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26060echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26061 { (exit 1); exit 1; }; }
26062 esac
26063
26064 mgl_lib_type=""
26065 mgl_os=""
26066
26067 for mgl_os_i in $mgl_os_candidates ; do
26068 if test "x$mgl_os" = x ; then
26069 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26070 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26071 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26072 mgl_lib_type=debug
26073 mgl_os=$mgl_os_i
26074 fi
26075 fi
26076 if test "x$mgl_lib_type" = x ; then
26077 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26078 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26079 mgl_lib_type=release
26080 mgl_os=$mgl_os_i
26081 fi
26082 fi
26083 fi
26084 done
26085
26086 if test "x$mgl_os" = x ; then
26087 echo "$as_me:$LINENO: result: not found" >&5
26088echo "${ECHO_T}not found" >&6
26089 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26090echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26091 { (exit 1); exit 1; }; }
26092 fi
26093 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26094echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26095
26096 wxUSE_UNIVERSAL="yes"
26097
26098 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26099 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26100
26101 AFMINSTALL=afminstall
26102 TOOLKIT=MGL
26103 GUIDIST=MGL_DIST
26104 fi
26105
26106 if test "$wxUSE_MICROWIN" = 1; then
26107 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26108echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26109 if test "x$MICROWINDOWS" = x ; then
26110 echo "$as_me:$LINENO: result: not found" >&5
26111echo "${ECHO_T}not found" >&6
26112 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26113echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26114 { (exit 1); exit 1; }; }
26115 else
26116 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26117echo "${ECHO_T}$MICROWINDOWS" >&6
26118 fi
26119
26120 if test -f $MICROWINDOWS/lib/libmwin.a; then
26121 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26122echo "${ECHO_T}MicroWindows' libraries found." >&6
26123 else
26124 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26125echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26126 { (exit 1); exit 1; }; }
26127 fi
26128
26129 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26130 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26131
26132 wxUSE_UNIVERSAL="yes"
26133
26134 AFMINSTALL=afminstall
26135 TOOLKIT=MICROWIN
26136 GUIDIST=MICROWIN_DIST
26137
26138 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26139 fi
26140
74b84332 26141 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
fb00f58d 26142 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26143echo $ECHO_N "checking for X... $ECHO_C" >&6
26144
26145
26146# Check whether --with-x or --without-x was given.
26147if test "${with_x+set}" = set; then
26148 withval="$with_x"
26149
26150fi;
26151# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26152if test "x$with_x" = xno; then
26153 # The user explicitly disabled X.
26154 have_x=disabled
26155else
26156 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26157 # Both variables are already set.
26158 have_x=yes
26159 else
26160 if test "${ac_cv_have_x+set}" = set; then
26161 echo $ECHO_N "(cached) $ECHO_C" >&6
26162else
26163 # One or both of the vars are not set, and there is no cached value.
26164ac_x_includes=no ac_x_libraries=no
26165rm -fr conftest.dir
26166if mkdir conftest.dir; then
26167 cd conftest.dir
26168 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26169 cat >Imakefile <<'_ACEOF'
26170acfindx:
26171 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26172_ACEOF
26173 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26174 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26175 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26176 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26177 for ac_extension in a so sl; do
26178 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26179 test -f $ac_im_libdir/libX11.$ac_extension; then
26180 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26181 fi
26182 done
26183 # Screen out bogus values from the imake configuration. They are
26184 # bogus both because they are the default anyway, and because
26185 # using them would break gcc on systems where it needs fixed includes.
26186 case $ac_im_incroot in
26187 /usr/include) ;;
26188 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26189 esac
26190 case $ac_im_usrlibdir in
26191 /usr/lib | /lib) ;;
26192 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26193 esac
26194 fi
26195 cd ..
26196 rm -fr conftest.dir
26197fi
26198
26199# Standard set of common directories for X headers.
26200# Check X11 before X11Rn because it is often a symlink to the current release.
26201ac_x_header_dirs='
26202/usr/X11/include
26203/usr/X11R6/include
26204/usr/X11R5/include
26205/usr/X11R4/include
26206
26207/usr/include/X11
26208/usr/include/X11R6
26209/usr/include/X11R5
26210/usr/include/X11R4
26211
26212/usr/local/X11/include
26213/usr/local/X11R6/include
26214/usr/local/X11R5/include
26215/usr/local/X11R4/include
26216
26217/usr/local/include/X11
26218/usr/local/include/X11R6
26219/usr/local/include/X11R5
26220/usr/local/include/X11R4
26221
26222/usr/X386/include
26223/usr/x386/include
26224/usr/XFree86/include/X11
26225
26226/usr/include
26227/usr/local/include
26228/usr/unsupported/include
26229/usr/athena/include
26230/usr/local/x11r5/include
26231/usr/lpp/Xamples/include
26232
26233/usr/openwin/include
26234/usr/openwin/share/include'
26235
26236if test "$ac_x_includes" = no; then
fb00f58d 26237 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
26238 # First, try using that file with no special directory specified.
26239 cat >conftest.$ac_ext <<_ACEOF
26240/* confdefs.h. */
26241_ACEOF
26242cat confdefs.h >>conftest.$ac_ext
26243cat >>conftest.$ac_ext <<_ACEOF
26244/* end confdefs.h. */
26245#include <X11/Intrinsic.h>
26246_ACEOF
26247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26249 ac_status=$?
26250 grep -v '^ *+' conftest.er1 >conftest.err
26251 rm -f conftest.er1
26252 cat conftest.err >&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } >/dev/null; then
26255 if test -s conftest.err; then
26256 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26258 else
26259 ac_cpp_err=
26260 fi
26261else
26262 ac_cpp_err=yes
26263fi
26264if test -z "$ac_cpp_err"; then
26265 # We can compile using X headers with no special include directory.
26266ac_x_includes=
26267else
26268 echo "$as_me: failed program was:" >&5
26269sed 's/^/| /' conftest.$ac_ext >&5
26270
26271 for ac_dir in $ac_x_header_dirs; do
26272 if test -r "$ac_dir/X11/Intrinsic.h"; then
26273 ac_x_includes=$ac_dir
26274 break
26275 fi
26276done
26277fi
26278rm -f conftest.err conftest.$ac_ext
26279fi # $ac_x_includes = no
26280
26281if test "$ac_x_libraries" = no; then
26282 # Check for the libraries.
26283 # See if we find them without any special options.
26284 # Don't add to $LIBS permanently.
26285 ac_save_LIBS=$LIBS
26286 LIBS="-lXt $LIBS"
26287 cat >conftest.$ac_ext <<_ACEOF
26288/* confdefs.h. */
26289_ACEOF
26290cat confdefs.h >>conftest.$ac_ext
26291cat >>conftest.$ac_ext <<_ACEOF
26292/* end confdefs.h. */
26293#include <X11/Intrinsic.h>
26294int
26295main ()
26296{
26297XtMalloc (0)
26298 ;
26299 return 0;
26300}
26301_ACEOF
26302rm -f conftest.$ac_objext conftest$ac_exeext
26303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26304 (eval $ac_link) 2>conftest.er1
a848cd7e 26305 ac_status=$?
ac1cb8d3
VS
26306 grep -v '^ *+' conftest.er1 >conftest.err
26307 rm -f conftest.er1
26308 cat conftest.err >&5
a848cd7e
SC
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); } &&
fb00f58d
JS
26311 { ac_try='test -z "$ac_c_werror_flag"
26312 || test ! -s conftest.err'
ac1cb8d3
VS
26313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26314 (eval $ac_try) 2>&5
26315 ac_status=$?
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); }; } &&
26318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26320 (eval $ac_try) 2>&5
26321 ac_status=$?
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); }; }; then
26324 LIBS=$ac_save_LIBS
26325# We can link X programs with no special library path.
26326ac_x_libraries=
26327else
26328 echo "$as_me: failed program was:" >&5
26329sed 's/^/| /' conftest.$ac_ext >&5
26330
26331LIBS=$ac_save_LIBS
26332for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26333do
26334 # Don't even attempt the hair of trying to link an X program!
26335 for ac_extension in a so sl; do
26336 if test -r $ac_dir/libXt.$ac_extension; then
26337 ac_x_libraries=$ac_dir
26338 break 2
26339 fi
26340 done
26341done
26342fi
ac1cb8d3
VS
26343rm -f conftest.err conftest.$ac_objext \
26344 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26345fi # $ac_x_libraries = no
26346
26347if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26348 # Didn't find X anywhere. Cache the known absence of X.
26349 ac_cv_have_x="have_x=no"
26350else
26351 # Record where we found X for the cache.
26352 ac_cv_have_x="have_x=yes \
ac1cb8d3 26353 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26354fi
26355fi
26356
26357 fi
26358 eval "$ac_cv_have_x"
26359fi # $with_x != no
26360
26361if test "$have_x" != yes; then
26362 echo "$as_me:$LINENO: result: $have_x" >&5
26363echo "${ECHO_T}$have_x" >&6
26364 no_x=yes
26365else
26366 # If each of the values was on the command line, it overrides each guess.
26367 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26368 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26369 # Update the cache value to reflect the command line values.
26370 ac_cv_have_x="have_x=yes \
26371 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
fb00f58d
JS
26372 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
26373echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
26374fi
26375
26376if test "$no_x" = yes; then
26377 # Not all programs may use this symbol, but it does not hurt to define it.
26378
26379cat >>confdefs.h <<\_ACEOF
26380#define X_DISPLAY_MISSING 1
26381_ACEOF
26382
26383 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26384else
26385 if test -n "$x_includes"; then
26386 X_CFLAGS="$X_CFLAGS -I$x_includes"
26387 fi
26388
26389 # It would also be nice to do this for all -L options, not just this one.
26390 if test -n "$x_libraries"; then
26391 X_LIBS="$X_LIBS -L$x_libraries"
26392 # For Solaris; some versions of Sun CC require a space after -R and
26393 # others require no space. Words are not sufficient . . . .
26394 case `(uname -sr) 2>/dev/null` in
26395 "SunOS 5"*)
26396 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26397echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26398 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26399 cat >conftest.$ac_ext <<_ACEOF
26400/* confdefs.h. */
26401_ACEOF
26402cat confdefs.h >>conftest.$ac_ext
26403cat >>conftest.$ac_ext <<_ACEOF
26404/* end confdefs.h. */
26405
26406int
26407main ()
26408{
26409
26410 ;
26411 return 0;
26412}
26413_ACEOF
26414rm -f conftest.$ac_objext conftest$ac_exeext
26415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26416 (eval $ac_link) 2>conftest.er1
a848cd7e 26417 ac_status=$?
ac1cb8d3
VS
26418 grep -v '^ *+' conftest.er1 >conftest.err
26419 rm -f conftest.er1
26420 cat conftest.err >&5
a848cd7e
SC
26421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422 (exit $ac_status); } &&
fb00f58d
JS
26423 { ac_try='test -z "$ac_c_werror_flag"
26424 || test ! -s conftest.err'
ac1cb8d3
VS
26425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26426 (eval $ac_try) 2>&5
26427 ac_status=$?
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429 (exit $ac_status); }; } &&
26430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26432 (eval $ac_try) 2>&5
26433 ac_status=$?
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); }; }; then
26436 ac_R_nospace=yes
26437else
26438 echo "$as_me: failed program was:" >&5
26439sed 's/^/| /' conftest.$ac_ext >&5
26440
26441ac_R_nospace=no
26442fi
ac1cb8d3
VS
26443rm -f conftest.err conftest.$ac_objext \
26444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26445 if test $ac_R_nospace = yes; then
26446 echo "$as_me:$LINENO: result: no" >&5
26447echo "${ECHO_T}no" >&6
26448 X_LIBS="$X_LIBS -R$x_libraries"
26449 else
26450 LIBS="$ac_xsave_LIBS -R $x_libraries"
26451 cat >conftest.$ac_ext <<_ACEOF
26452/* confdefs.h. */
26453_ACEOF
26454cat confdefs.h >>conftest.$ac_ext
26455cat >>conftest.$ac_ext <<_ACEOF
26456/* end confdefs.h. */
26457
26458int
26459main ()
26460{
26461
26462 ;
26463 return 0;
26464}
26465_ACEOF
26466rm -f conftest.$ac_objext conftest$ac_exeext
26467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26468 (eval $ac_link) 2>conftest.er1
a848cd7e 26469 ac_status=$?
ac1cb8d3
VS
26470 grep -v '^ *+' conftest.er1 >conftest.err
26471 rm -f conftest.er1
26472 cat conftest.err >&5
a848cd7e
SC
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); } &&
fb00f58d
JS
26475 { ac_try='test -z "$ac_c_werror_flag"
26476 || test ! -s conftest.err'
ac1cb8d3
VS
26477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478 (eval $ac_try) 2>&5
26479 ac_status=$?
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); }; } &&
26482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26485 ac_status=$?
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; }; then
26488 ac_R_space=yes
26489else
26490 echo "$as_me: failed program was:" >&5
26491sed 's/^/| /' conftest.$ac_ext >&5
26492
26493ac_R_space=no
26494fi
ac1cb8d3
VS
26495rm -f conftest.err conftest.$ac_objext \
26496 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26497 if test $ac_R_space = yes; then
26498 echo "$as_me:$LINENO: result: yes" >&5
26499echo "${ECHO_T}yes" >&6
26500 X_LIBS="$X_LIBS -R $x_libraries"
26501 else
26502 echo "$as_me:$LINENO: result: neither works" >&5
26503echo "${ECHO_T}neither works" >&6
26504 fi
26505 fi
26506 LIBS=$ac_xsave_LIBS
26507 esac
26508 fi
26509
26510 # Check for system-dependent libraries X programs must link with.
26511 # Do this before checking for the system-independent R6 libraries
26512 # (-lICE), since we may need -lsocket or whatever for X linking.
26513
26514 if test "$ISC" = yes; then
26515 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26516 else
26517 # Martyn Johnson says this is needed for Ultrix, if the X
26518 # libraries were built with DECnet support. And Karl Berry says
26519 # the Alpha needs dnet_stub (dnet does not exist).
26520 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26521 cat >conftest.$ac_ext <<_ACEOF
26522/* confdefs.h. */
26523_ACEOF
26524cat confdefs.h >>conftest.$ac_ext
26525cat >>conftest.$ac_ext <<_ACEOF
26526/* end confdefs.h. */
26527
26528/* Override any gcc2 internal prototype to avoid an error. */
26529#ifdef __cplusplus
26530extern "C"
26531#endif
26532/* We use char because int might match the return type of a gcc2
26533 builtin and then its argument prototype would still apply. */
26534char XOpenDisplay ();
26535int
26536main ()
26537{
26538XOpenDisplay ();
26539 ;
26540 return 0;
26541}
26542_ACEOF
26543rm -f conftest.$ac_objext conftest$ac_exeext
26544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26545 (eval $ac_link) 2>conftest.er1
a848cd7e 26546 ac_status=$?
ac1cb8d3
VS
26547 grep -v '^ *+' conftest.er1 >conftest.err
26548 rm -f conftest.er1
26549 cat conftest.err >&5
a848cd7e
SC
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); } &&
fb00f58d
JS
26552 { ac_try='test -z "$ac_c_werror_flag"
26553 || test ! -s conftest.err'
ac1cb8d3
VS
26554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555 (eval $ac_try) 2>&5
26556 ac_status=$?
26557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558 (exit $ac_status); }; } &&
26559 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26561 (eval $ac_try) 2>&5
26562 ac_status=$?
26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); }; }; then
26565 :
26566else
26567 echo "$as_me: failed program was:" >&5
26568sed 's/^/| /' conftest.$ac_ext >&5
26569
26570echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26571echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26572if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26573 echo $ECHO_N "(cached) $ECHO_C" >&6
26574else
26575 ac_check_lib_save_LIBS=$LIBS
26576LIBS="-ldnet $LIBS"
26577cat >conftest.$ac_ext <<_ACEOF
26578/* confdefs.h. */
26579_ACEOF
26580cat confdefs.h >>conftest.$ac_ext
26581cat >>conftest.$ac_ext <<_ACEOF
26582/* end confdefs.h. */
26583
26584/* Override any gcc2 internal prototype to avoid an error. */
26585#ifdef __cplusplus
26586extern "C"
26587#endif
26588/* We use char because int might match the return type of a gcc2
26589 builtin and then its argument prototype would still apply. */
26590char dnet_ntoa ();
26591int
26592main ()
26593{
26594dnet_ntoa ();
26595 ;
26596 return 0;
26597}
26598_ACEOF
26599rm -f conftest.$ac_objext conftest$ac_exeext
26600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26601 (eval $ac_link) 2>conftest.er1
a848cd7e 26602 ac_status=$?
ac1cb8d3
VS
26603 grep -v '^ *+' conftest.er1 >conftest.err
26604 rm -f conftest.er1
26605 cat conftest.err >&5
a848cd7e
SC
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); } &&
fb00f58d
JS
26608 { ac_try='test -z "$ac_c_werror_flag"
26609 || test ! -s conftest.err'
ac1cb8d3
VS
26610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611 (eval $ac_try) 2>&5
26612 ac_status=$?
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); }; } &&
26615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617 (eval $ac_try) 2>&5
26618 ac_status=$?
26619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); }; }; then
26621 ac_cv_lib_dnet_dnet_ntoa=yes
26622else
26623 echo "$as_me: failed program was:" >&5
26624sed 's/^/| /' conftest.$ac_ext >&5
26625
26626ac_cv_lib_dnet_dnet_ntoa=no
26627fi
ac1cb8d3
VS
26628rm -f conftest.err conftest.$ac_objext \
26629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26630LIBS=$ac_check_lib_save_LIBS
26631fi
26632echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26633echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26634if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26635 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26636fi
26637
26638 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26639 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26640echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26641if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26642 echo $ECHO_N "(cached) $ECHO_C" >&6
26643else
26644 ac_check_lib_save_LIBS=$LIBS
26645LIBS="-ldnet_stub $LIBS"
26646cat >conftest.$ac_ext <<_ACEOF
26647/* confdefs.h. */
26648_ACEOF
26649cat confdefs.h >>conftest.$ac_ext
26650cat >>conftest.$ac_ext <<_ACEOF
26651/* end confdefs.h. */
26652
26653/* Override any gcc2 internal prototype to avoid an error. */
26654#ifdef __cplusplus
26655extern "C"
26656#endif
26657/* We use char because int might match the return type of a gcc2
26658 builtin and then its argument prototype would still apply. */
26659char dnet_ntoa ();
26660int
26661main ()
26662{
26663dnet_ntoa ();
26664 ;
26665 return 0;
26666}
26667_ACEOF
26668rm -f conftest.$ac_objext conftest$ac_exeext
26669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26670 (eval $ac_link) 2>conftest.er1
a848cd7e 26671 ac_status=$?
ac1cb8d3
VS
26672 grep -v '^ *+' conftest.er1 >conftest.err
26673 rm -f conftest.er1
26674 cat conftest.err >&5
a848cd7e
SC
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } &&
fb00f58d
JS
26677 { ac_try='test -z "$ac_c_werror_flag"
26678 || test ! -s conftest.err'
ac1cb8d3
VS
26679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); }; } &&
26684 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; }; then
26690 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26691else
26692 echo "$as_me: failed program was:" >&5
26693sed 's/^/| /' conftest.$ac_ext >&5
26694
26695ac_cv_lib_dnet_stub_dnet_ntoa=no
26696fi
ac1cb8d3
VS
26697rm -f conftest.err conftest.$ac_objext \
26698 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26699LIBS=$ac_check_lib_save_LIBS
26700fi
26701echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26702echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26703if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26704 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26705fi
26706
26707 fi
26708fi
ac1cb8d3
VS
26709rm -f conftest.err conftest.$ac_objext \
26710 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26711 LIBS="$ac_xsave_LIBS"
26712
26713 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26714 # to get the SysV transport functions.
26715 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26716 # needs -lnsl.
26717 # The nsl library prevents programs from opening the X display
26718 # on Irix 5.2, according to T.E. Dickey.
26719 # The functions gethostbyname, getservbyname, and inet_addr are
26720 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26721 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26722echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26723if test "${ac_cv_func_gethostbyname+set}" = set; then
26724 echo $ECHO_N "(cached) $ECHO_C" >&6
26725else
26726 cat >conftest.$ac_ext <<_ACEOF
26727/* confdefs.h. */
26728_ACEOF
26729cat confdefs.h >>conftest.$ac_ext
26730cat >>conftest.$ac_ext <<_ACEOF
26731/* end confdefs.h. */
ac1cb8d3
VS
26732/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26734#define gethostbyname innocuous_gethostbyname
26735
a848cd7e
SC
26736/* System header to define __stub macros and hopefully few prototypes,
26737 which can conflict with char gethostbyname (); below.
26738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26739 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26740
a848cd7e
SC
26741#ifdef __STDC__
26742# include <limits.h>
26743#else
26744# include <assert.h>
26745#endif
ac1cb8d3
VS
26746
26747#undef gethostbyname
26748
a848cd7e
SC
26749/* Override any gcc2 internal prototype to avoid an error. */
26750#ifdef __cplusplus
26751extern "C"
26752{
26753#endif
26754/* We use char because int might match the return type of a gcc2
26755 builtin and then its argument prototype would still apply. */
26756char gethostbyname ();
26757/* The GNU C library defines this for functions which it implements
26758 to always fail with ENOSYS. Some functions are actually named
26759 something starting with __ and the normal name is an alias. */
26760#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26761choke me
26762#else
26763char (*f) () = gethostbyname;
26764#endif
26765#ifdef __cplusplus
26766}
26767#endif
26768
26769int
26770main ()
26771{
26772return f != gethostbyname;
26773 ;
26774 return 0;
26775}
26776_ACEOF
26777rm -f conftest.$ac_objext conftest$ac_exeext
26778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26779 (eval $ac_link) 2>conftest.er1
a848cd7e 26780 ac_status=$?
ac1cb8d3
VS
26781 grep -v '^ *+' conftest.er1 >conftest.err
26782 rm -f conftest.er1
26783 cat conftest.err >&5
a848cd7e
SC
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } &&
fb00f58d
JS
26786 { ac_try='test -z "$ac_c_werror_flag"
26787 || test ! -s conftest.err'
ac1cb8d3
VS
26788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26789 (eval $ac_try) 2>&5
26790 ac_status=$?
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); }; } &&
26793 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795 (eval $ac_try) 2>&5
26796 ac_status=$?
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); }; }; then
26799 ac_cv_func_gethostbyname=yes
26800else
26801 echo "$as_me: failed program was:" >&5
26802sed 's/^/| /' conftest.$ac_ext >&5
26803
26804ac_cv_func_gethostbyname=no
26805fi
ac1cb8d3
VS
26806rm -f conftest.err conftest.$ac_objext \
26807 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26808fi
26809echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26810echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26811
26812 if test $ac_cv_func_gethostbyname = no; then
26813 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26814echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26815if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26816 echo $ECHO_N "(cached) $ECHO_C" >&6
26817else
26818 ac_check_lib_save_LIBS=$LIBS
26819LIBS="-lnsl $LIBS"
26820cat >conftest.$ac_ext <<_ACEOF
26821/* confdefs.h. */
26822_ACEOF
26823cat confdefs.h >>conftest.$ac_ext
26824cat >>conftest.$ac_ext <<_ACEOF
26825/* end confdefs.h. */
26826
26827/* Override any gcc2 internal prototype to avoid an error. */
26828#ifdef __cplusplus
26829extern "C"
26830#endif
26831/* We use char because int might match the return type of a gcc2
26832 builtin and then its argument prototype would still apply. */
26833char gethostbyname ();
26834int
26835main ()
26836{
26837gethostbyname ();
26838 ;
26839 return 0;
26840}
26841_ACEOF
26842rm -f conftest.$ac_objext conftest$ac_exeext
26843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26844 (eval $ac_link) 2>conftest.er1
26845 ac_status=$?
26846 grep -v '^ *+' conftest.er1 >conftest.err
26847 rm -f conftest.er1
26848 cat conftest.err >&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); } &&
fb00f58d
JS
26851 { ac_try='test -z "$ac_c_werror_flag"
26852 || test ! -s conftest.err'
ac1cb8d3
VS
26853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854 (eval $ac_try) 2>&5
26855 ac_status=$?
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); }; } &&
26858 { ac_try='test -s conftest$ac_exeext'
26859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26860 (eval $ac_try) 2>&5
26861 ac_status=$?
26862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); }; }; then
26864 ac_cv_lib_nsl_gethostbyname=yes
26865else
26866 echo "$as_me: failed program was:" >&5
26867sed 's/^/| /' conftest.$ac_ext >&5
26868
26869ac_cv_lib_nsl_gethostbyname=no
26870fi
26871rm -f conftest.err conftest.$ac_objext \
26872 conftest$ac_exeext conftest.$ac_ext
26873LIBS=$ac_check_lib_save_LIBS
26874fi
26875echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26876echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26877if test $ac_cv_lib_nsl_gethostbyname = yes; then
26878 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26879fi
26880
26881 if test $ac_cv_lib_nsl_gethostbyname = no; then
26882 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26883echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26884if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26885 echo $ECHO_N "(cached) $ECHO_C" >&6
26886else
26887 ac_check_lib_save_LIBS=$LIBS
26888LIBS="-lbsd $LIBS"
26889cat >conftest.$ac_ext <<_ACEOF
26890/* confdefs.h. */
26891_ACEOF
26892cat confdefs.h >>conftest.$ac_ext
26893cat >>conftest.$ac_ext <<_ACEOF
26894/* end confdefs.h. */
26895
26896/* Override any gcc2 internal prototype to avoid an error. */
26897#ifdef __cplusplus
26898extern "C"
26899#endif
26900/* We use char because int might match the return type of a gcc2
26901 builtin and then its argument prototype would still apply. */
26902char gethostbyname ();
26903int
26904main ()
26905{
26906gethostbyname ();
26907 ;
26908 return 0;
26909}
26910_ACEOF
26911rm -f conftest.$ac_objext conftest$ac_exeext
26912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26913 (eval $ac_link) 2>conftest.er1
a848cd7e 26914 ac_status=$?
ac1cb8d3
VS
26915 grep -v '^ *+' conftest.er1 >conftest.err
26916 rm -f conftest.er1
26917 cat conftest.err >&5
a848cd7e
SC
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); } &&
fb00f58d
JS
26920 { ac_try='test -z "$ac_c_werror_flag"
26921 || test ! -s conftest.err'
a848cd7e
SC
26922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26923 (eval $ac_try) 2>&5
26924 ac_status=$?
26925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26926 (exit $ac_status); }; } &&
26927 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26929 (eval $ac_try) 2>&5
26930 ac_status=$?
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); }; }; then
26933 ac_cv_lib_bsd_gethostbyname=yes
26934else
26935 echo "$as_me: failed program was:" >&5
26936sed 's/^/| /' conftest.$ac_ext >&5
26937
26938ac_cv_lib_bsd_gethostbyname=no
26939fi
ac1cb8d3
VS
26940rm -f conftest.err conftest.$ac_objext \
26941 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26942LIBS=$ac_check_lib_save_LIBS
26943fi
26944echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26945echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26946if test $ac_cv_lib_bsd_gethostbyname = yes; then
26947 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26948fi
26949
26950 fi
26951 fi
26952
26953 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26954 # socket/setsockopt and other routines are undefined under SCO ODT
26955 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26956 # on later versions), says Simon Leinen: it contains gethostby*
26957 # variants that don't use the name server (or something). -lsocket
26958 # must be given before -lnsl if both are needed. We assume that
26959 # if connect needs -lnsl, so does gethostbyname.
26960 echo "$as_me:$LINENO: checking for connect" >&5
26961echo $ECHO_N "checking for connect... $ECHO_C" >&6
26962if test "${ac_cv_func_connect+set}" = set; then
26963 echo $ECHO_N "(cached) $ECHO_C" >&6
26964else
26965 cat >conftest.$ac_ext <<_ACEOF
26966/* confdefs.h. */
26967_ACEOF
26968cat confdefs.h >>conftest.$ac_ext
26969cat >>conftest.$ac_ext <<_ACEOF
26970/* end confdefs.h. */
ac1cb8d3
VS
26971/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26973#define connect innocuous_connect
26974
a848cd7e
SC
26975/* System header to define __stub macros and hopefully few prototypes,
26976 which can conflict with char connect (); below.
26977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26978 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26979
a848cd7e
SC
26980#ifdef __STDC__
26981# include <limits.h>
26982#else
26983# include <assert.h>
26984#endif
ac1cb8d3
VS
26985
26986#undef connect
26987
a848cd7e
SC
26988/* Override any gcc2 internal prototype to avoid an error. */
26989#ifdef __cplusplus
26990extern "C"
26991{
26992#endif
26993/* We use char because int might match the return type of a gcc2
26994 builtin and then its argument prototype would still apply. */
26995char connect ();
26996/* The GNU C library defines this for functions which it implements
26997 to always fail with ENOSYS. Some functions are actually named
26998 something starting with __ and the normal name is an alias. */
26999#if defined (__stub_connect) || defined (__stub___connect)
27000choke me
27001#else
27002char (*f) () = connect;
27003#endif
27004#ifdef __cplusplus
27005}
27006#endif
27007
27008int
27009main ()
27010{
27011return f != connect;
27012 ;
27013 return 0;
27014}
27015_ACEOF
27016rm -f conftest.$ac_objext conftest$ac_exeext
27017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27018 (eval $ac_link) 2>conftest.er1
a848cd7e 27019 ac_status=$?
ac1cb8d3
VS
27020 grep -v '^ *+' conftest.er1 >conftest.err
27021 rm -f conftest.er1
27022 cat conftest.err >&5
a848cd7e
SC
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); } &&
fb00f58d
JS
27025 { ac_try='test -z "$ac_c_werror_flag"
27026 || test ! -s conftest.err'
ac1cb8d3
VS
27027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028 (eval $ac_try) 2>&5
27029 ac_status=$?
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; } &&
27032 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034 (eval $ac_try) 2>&5
27035 ac_status=$?
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; }; then
27038 ac_cv_func_connect=yes
27039else
27040 echo "$as_me: failed program was:" >&5
27041sed 's/^/| /' conftest.$ac_ext >&5
27042
27043ac_cv_func_connect=no
27044fi
ac1cb8d3
VS
27045rm -f conftest.err conftest.$ac_objext \
27046 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27047fi
27048echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27049echo "${ECHO_T}$ac_cv_func_connect" >&6
27050
27051 if test $ac_cv_func_connect = no; then
27052 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27053echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27054if test "${ac_cv_lib_socket_connect+set}" = set; then
27055 echo $ECHO_N "(cached) $ECHO_C" >&6
27056else
27057 ac_check_lib_save_LIBS=$LIBS
27058LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27059cat >conftest.$ac_ext <<_ACEOF
27060/* confdefs.h. */
27061_ACEOF
27062cat confdefs.h >>conftest.$ac_ext
27063cat >>conftest.$ac_ext <<_ACEOF
27064/* end confdefs.h. */
27065
27066/* Override any gcc2 internal prototype to avoid an error. */
27067#ifdef __cplusplus
27068extern "C"
27069#endif
27070/* We use char because int might match the return type of a gcc2
27071 builtin and then its argument prototype would still apply. */
27072char connect ();
27073int
27074main ()
27075{
27076connect ();
27077 ;
27078 return 0;
27079}
27080_ACEOF
27081rm -f conftest.$ac_objext conftest$ac_exeext
27082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27083 (eval $ac_link) 2>conftest.er1
a848cd7e 27084 ac_status=$?
ac1cb8d3
VS
27085 grep -v '^ *+' conftest.er1 >conftest.err
27086 rm -f conftest.er1
27087 cat conftest.err >&5
a848cd7e
SC
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); } &&
fb00f58d
JS
27090 { ac_try='test -z "$ac_c_werror_flag"
27091 || test ! -s conftest.err'
ac1cb8d3
VS
27092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27093 (eval $ac_try) 2>&5
27094 ac_status=$?
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); }; } &&
27097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27099 (eval $ac_try) 2>&5
27100 ac_status=$?
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); }; }; then
27103 ac_cv_lib_socket_connect=yes
27104else
27105 echo "$as_me: failed program was:" >&5
27106sed 's/^/| /' conftest.$ac_ext >&5
27107
27108ac_cv_lib_socket_connect=no
27109fi
ac1cb8d3
VS
27110rm -f conftest.err conftest.$ac_objext \
27111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27112LIBS=$ac_check_lib_save_LIBS
27113fi
27114echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27115echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27116if test $ac_cv_lib_socket_connect = yes; then
27117 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27118fi
27119
27120 fi
27121
27122 # Guillermo Gomez says -lposix is necessary on A/UX.
27123 echo "$as_me:$LINENO: checking for remove" >&5
27124echo $ECHO_N "checking for remove... $ECHO_C" >&6
27125if test "${ac_cv_func_remove+set}" = set; then
27126 echo $ECHO_N "(cached) $ECHO_C" >&6
27127else
27128 cat >conftest.$ac_ext <<_ACEOF
27129/* confdefs.h. */
27130_ACEOF
27131cat confdefs.h >>conftest.$ac_ext
27132cat >>conftest.$ac_ext <<_ACEOF
27133/* end confdefs.h. */
ac1cb8d3
VS
27134/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27136#define remove innocuous_remove
27137
a848cd7e
SC
27138/* System header to define __stub macros and hopefully few prototypes,
27139 which can conflict with char remove (); below.
27140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27141 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27142
a848cd7e
SC
27143#ifdef __STDC__
27144# include <limits.h>
27145#else
27146# include <assert.h>
27147#endif
ac1cb8d3
VS
27148
27149#undef remove
27150
a848cd7e
SC
27151/* Override any gcc2 internal prototype to avoid an error. */
27152#ifdef __cplusplus
27153extern "C"
27154{
27155#endif
27156/* We use char because int might match the return type of a gcc2
27157 builtin and then its argument prototype would still apply. */
27158char remove ();
27159/* The GNU C library defines this for functions which it implements
27160 to always fail with ENOSYS. Some functions are actually named
27161 something starting with __ and the normal name is an alias. */
27162#if defined (__stub_remove) || defined (__stub___remove)
27163choke me
27164#else
27165char (*f) () = remove;
27166#endif
27167#ifdef __cplusplus
27168}
27169#endif
27170
27171int
27172main ()
27173{
27174return f != remove;
27175 ;
27176 return 0;
27177}
27178_ACEOF
27179rm -f conftest.$ac_objext conftest$ac_exeext
27180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27181 (eval $ac_link) 2>conftest.er1
a848cd7e 27182 ac_status=$?
ac1cb8d3
VS
27183 grep -v '^ *+' conftest.er1 >conftest.err
27184 rm -f conftest.er1
27185 cat conftest.err >&5
a848cd7e
SC
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); } &&
fb00f58d
JS
27188 { ac_try='test -z "$ac_c_werror_flag"
27189 || test ! -s conftest.err'
ac1cb8d3
VS
27190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27191 (eval $ac_try) 2>&5
27192 ac_status=$?
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); }; } &&
27195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27197 (eval $ac_try) 2>&5
27198 ac_status=$?
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); }; }; then
27201 ac_cv_func_remove=yes
27202else
27203 echo "$as_me: failed program was:" >&5
27204sed 's/^/| /' conftest.$ac_ext >&5
27205
27206ac_cv_func_remove=no
27207fi
ac1cb8d3
VS
27208rm -f conftest.err conftest.$ac_objext \
27209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27210fi
27211echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27212echo "${ECHO_T}$ac_cv_func_remove" >&6
27213
27214 if test $ac_cv_func_remove = no; then
27215 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27216echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27217if test "${ac_cv_lib_posix_remove+set}" = set; then
27218 echo $ECHO_N "(cached) $ECHO_C" >&6
27219else
27220 ac_check_lib_save_LIBS=$LIBS
27221LIBS="-lposix $LIBS"
27222cat >conftest.$ac_ext <<_ACEOF
27223/* confdefs.h. */
27224_ACEOF
27225cat confdefs.h >>conftest.$ac_ext
27226cat >>conftest.$ac_ext <<_ACEOF
27227/* end confdefs.h. */
27228
27229/* Override any gcc2 internal prototype to avoid an error. */
27230#ifdef __cplusplus
27231extern "C"
27232#endif
27233/* We use char because int might match the return type of a gcc2
27234 builtin and then its argument prototype would still apply. */
27235char remove ();
27236int
27237main ()
27238{
27239remove ();
27240 ;
27241 return 0;
27242}
27243_ACEOF
27244rm -f conftest.$ac_objext conftest$ac_exeext
27245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27246 (eval $ac_link) 2>conftest.er1
a848cd7e 27247 ac_status=$?
ac1cb8d3
VS
27248 grep -v '^ *+' conftest.er1 >conftest.err
27249 rm -f conftest.er1
27250 cat conftest.err >&5
a848cd7e
SC
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); } &&
fb00f58d
JS
27253 { ac_try='test -z "$ac_c_werror_flag"
27254 || test ! -s conftest.err'
ac1cb8d3
VS
27255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256 (eval $ac_try) 2>&5
27257 ac_status=$?
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); }; } &&
27260 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262 (eval $ac_try) 2>&5
27263 ac_status=$?
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); }; }; then
27266 ac_cv_lib_posix_remove=yes
27267else
27268 echo "$as_me: failed program was:" >&5
27269sed 's/^/| /' conftest.$ac_ext >&5
27270
27271ac_cv_lib_posix_remove=no
27272fi
ac1cb8d3
VS
27273rm -f conftest.err conftest.$ac_objext \
27274 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27275LIBS=$ac_check_lib_save_LIBS
27276fi
27277echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27278echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27279if test $ac_cv_lib_posix_remove = yes; then
27280 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27281fi
27282
27283 fi
27284
27285 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27286 echo "$as_me:$LINENO: checking for shmat" >&5
27287echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27288if test "${ac_cv_func_shmat+set}" = set; then
27289 echo $ECHO_N "(cached) $ECHO_C" >&6
27290else
27291 cat >conftest.$ac_ext <<_ACEOF
27292/* confdefs.h. */
27293_ACEOF
27294cat confdefs.h >>conftest.$ac_ext
27295cat >>conftest.$ac_ext <<_ACEOF
27296/* end confdefs.h. */
ac1cb8d3
VS
27297/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27299#define shmat innocuous_shmat
27300
a848cd7e
SC
27301/* System header to define __stub macros and hopefully few prototypes,
27302 which can conflict with char shmat (); below.
27303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27304 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27305
a848cd7e
SC
27306#ifdef __STDC__
27307# include <limits.h>
27308#else
27309# include <assert.h>
27310#endif
ac1cb8d3
VS
27311
27312#undef shmat
27313
a848cd7e
SC
27314/* Override any gcc2 internal prototype to avoid an error. */
27315#ifdef __cplusplus
27316extern "C"
27317{
27318#endif
27319/* We use char because int might match the return type of a gcc2
27320 builtin and then its argument prototype would still apply. */
27321char shmat ();
27322/* The GNU C library defines this for functions which it implements
27323 to always fail with ENOSYS. Some functions are actually named
27324 something starting with __ and the normal name is an alias. */
27325#if defined (__stub_shmat) || defined (__stub___shmat)
27326choke me
27327#else
27328char (*f) () = shmat;
27329#endif
27330#ifdef __cplusplus
27331}
27332#endif
27333
27334int
27335main ()
27336{
27337return f != shmat;
27338 ;
27339 return 0;
27340}
27341_ACEOF
27342rm -f conftest.$ac_objext conftest$ac_exeext
27343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27344 (eval $ac_link) 2>conftest.er1
a848cd7e 27345 ac_status=$?
ac1cb8d3
VS
27346 grep -v '^ *+' conftest.er1 >conftest.err
27347 rm -f conftest.er1
27348 cat conftest.err >&5
a848cd7e
SC
27349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 (exit $ac_status); } &&
fb00f58d
JS
27351 { ac_try='test -z "$ac_c_werror_flag"
27352 || test ! -s conftest.err'
ac1cb8d3
VS
27353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27354 (eval $ac_try) 2>&5
27355 ac_status=$?
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); }; } &&
27358 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27360 (eval $ac_try) 2>&5
27361 ac_status=$?
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); }; }; then
27364 ac_cv_func_shmat=yes
27365else
27366 echo "$as_me: failed program was:" >&5
27367sed 's/^/| /' conftest.$ac_ext >&5
27368
27369ac_cv_func_shmat=no
27370fi
ac1cb8d3
VS
27371rm -f conftest.err conftest.$ac_objext \
27372 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27373fi
27374echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27375echo "${ECHO_T}$ac_cv_func_shmat" >&6
27376
27377 if test $ac_cv_func_shmat = no; then
27378 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27379echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27380if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27381 echo $ECHO_N "(cached) $ECHO_C" >&6
27382else
27383 ac_check_lib_save_LIBS=$LIBS
27384LIBS="-lipc $LIBS"
27385cat >conftest.$ac_ext <<_ACEOF
27386/* confdefs.h. */
27387_ACEOF
27388cat confdefs.h >>conftest.$ac_ext
27389cat >>conftest.$ac_ext <<_ACEOF
27390/* end confdefs.h. */
27391
27392/* Override any gcc2 internal prototype to avoid an error. */
27393#ifdef __cplusplus
27394extern "C"
27395#endif
27396/* We use char because int might match the return type of a gcc2
27397 builtin and then its argument prototype would still apply. */
27398char shmat ();
27399int
27400main ()
27401{
27402shmat ();
27403 ;
27404 return 0;
27405}
27406_ACEOF
27407rm -f conftest.$ac_objext conftest$ac_exeext
27408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27409 (eval $ac_link) 2>conftest.er1
a848cd7e 27410 ac_status=$?
ac1cb8d3
VS
27411 grep -v '^ *+' conftest.er1 >conftest.err
27412 rm -f conftest.er1
27413 cat conftest.err >&5
a848cd7e
SC
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); } &&
fb00f58d
JS
27416 { ac_try='test -z "$ac_c_werror_flag"
27417 || test ! -s conftest.err'
ac1cb8d3
VS
27418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27419 (eval $ac_try) 2>&5
27420 ac_status=$?
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; } &&
27423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27425 (eval $ac_try) 2>&5
27426 ac_status=$?
27427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); }; }; then
27429 ac_cv_lib_ipc_shmat=yes
27430else
27431 echo "$as_me: failed program was:" >&5
27432sed 's/^/| /' conftest.$ac_ext >&5
27433
27434ac_cv_lib_ipc_shmat=no
27435fi
ac1cb8d3
VS
27436rm -f conftest.err conftest.$ac_objext \
27437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27438LIBS=$ac_check_lib_save_LIBS
27439fi
27440echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27441echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27442if test $ac_cv_lib_ipc_shmat = yes; then
27443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27444fi
27445
27446 fi
27447 fi
27448
27449 # Check for libraries that X11R6 Xt/Xaw programs need.
27450 ac_save_LDFLAGS=$LDFLAGS
27451 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27452 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27453 # check for ICE first), but we must link in the order -lSM -lICE or
27454 # we get undefined symbols. So assume we have SM if we have ICE.
27455 # These have to be linked with before -lX11, unlike the other
27456 # libraries we check for below, so use a different variable.
27457 # John Interrante, Karl Berry
27458 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27459echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27460if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27461 echo $ECHO_N "(cached) $ECHO_C" >&6
27462else
27463 ac_check_lib_save_LIBS=$LIBS
27464LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27465cat >conftest.$ac_ext <<_ACEOF
27466/* confdefs.h. */
27467_ACEOF
27468cat confdefs.h >>conftest.$ac_ext
27469cat >>conftest.$ac_ext <<_ACEOF
27470/* end confdefs.h. */
27471
27472/* Override any gcc2 internal prototype to avoid an error. */
27473#ifdef __cplusplus
27474extern "C"
27475#endif
27476/* We use char because int might match the return type of a gcc2
27477 builtin and then its argument prototype would still apply. */
27478char IceConnectionNumber ();
27479int
27480main ()
27481{
27482IceConnectionNumber ();
27483 ;
27484 return 0;
27485}
27486_ACEOF
27487rm -f conftest.$ac_objext conftest$ac_exeext
27488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27489 (eval $ac_link) 2>conftest.er1
a848cd7e 27490 ac_status=$?
ac1cb8d3
VS
27491 grep -v '^ *+' conftest.er1 >conftest.err
27492 rm -f conftest.er1
27493 cat conftest.err >&5
a848cd7e
SC
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); } &&
fb00f58d
JS
27496 { ac_try='test -z "$ac_c_werror_flag"
27497 || test ! -s conftest.err'
ac1cb8d3
VS
27498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27499 (eval $ac_try) 2>&5
27500 ac_status=$?
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); }; } &&
27503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27505 (eval $ac_try) 2>&5
27506 ac_status=$?
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); }; }; then
27509 ac_cv_lib_ICE_IceConnectionNumber=yes
27510else
27511 echo "$as_me: failed program was:" >&5
27512sed 's/^/| /' conftest.$ac_ext >&5
27513
27514ac_cv_lib_ICE_IceConnectionNumber=no
27515fi
ac1cb8d3
VS
27516rm -f conftest.err conftest.$ac_objext \
27517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27518LIBS=$ac_check_lib_save_LIBS
27519fi
27520echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27521echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27522if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27523 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27524fi
27525
27526 LDFLAGS=$ac_save_LDFLAGS
27527
27528fi
27529
27530
27531 if test "$no_x" = "yes"; then
27532 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27533echo "$as_me: error: X11 not found" >&2;}
27534 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27535 fi
27536
74b84332
VS
27537 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27538 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27539 AFMINSTALL=afminstall
27540 COMPILED_X_PROGRAM=0
27541
74b84332
VS
27542 fi
27543
27544 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27545 if test "$wxUSE_NANOX" = "yes"; then
27546 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27547echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27548 if test "x$MICROWIN" = x ; then
27549 echo "$as_me:$LINENO: result: not found" >&5
27550echo "${ECHO_T}not found" >&6
27551 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27552echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27553 { (exit 1); exit 1; }; }
27554 else
27555 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27556echo "${ECHO_T}$MICROWIN" >&6
27557 cat >>confdefs.h <<\_ACEOF
27558#define wxUSE_NANOX 1
27559_ACEOF
27560
27561 fi
27562 fi
27563
27564 if test "$wxUSE_UNICODE" = "yes"; then
27565
27566 succeeded=no
27567
27568 if test -z "$PKG_CONFIG"; then
27569 # Extract the first word of "pkg-config", so it can be a program name with args.
27570set dummy pkg-config; ac_word=$2
27571echo "$as_me:$LINENO: checking for $ac_word" >&5
27572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27573if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27574 echo $ECHO_N "(cached) $ECHO_C" >&6
27575else
27576 case $PKG_CONFIG in
27577 [\\/]* | ?:[\\/]*)
27578 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27579 ;;
27580 *)
27581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27582for as_dir in $PATH
27583do
27584 IFS=$as_save_IFS
27585 test -z "$as_dir" && as_dir=.
27586 for ac_exec_ext in '' $ac_executable_extensions; do
27587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27588 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27590 break 2
27591 fi
27592done
27593done
27594
27595 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27596 ;;
27597esac
27598fi
27599PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27600
27601if test -n "$PKG_CONFIG"; then
27602 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27603echo "${ECHO_T}$PKG_CONFIG" >&6
27604else
27605 echo "$as_me:$LINENO: result: no" >&5
27606echo "${ECHO_T}no" >&6
27607fi
27608
27609 fi
27610
27611 if test "$PKG_CONFIG" = "no" ; then
27612 echo "*** The pkg-config script could not be found. Make sure it is"
27613 echo "*** in your path, or set the PKG_CONFIG environment variable"
27614 echo "*** to the full path to pkg-config."
27615 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27616 else
27617 PKG_CONFIG_MIN_VERSION=0.9.0
27618 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27619 echo "$as_me:$LINENO: checking for pangox" >&5
27620echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27621
27622 if $PKG_CONFIG --exists "pangox" ; then
27623 echo "$as_me:$LINENO: result: yes" >&5
27624echo "${ECHO_T}yes" >&6
27625 succeeded=yes
27626
27627 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27628echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27629 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27630 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27631echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27632
27633 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27634echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27635 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27636 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27637echo "${ECHO_T}$PANGOX_LIBS" >&6
27638 else
27639 PANGOX_CFLAGS=""
27640 PANGOX_LIBS=""
27641 ## If we have a custom action on failure, don't print errors, but
27642 ## do set a variable so people can do so.
27643 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27644
27645 fi
27646
27647
27648
27649 else
27650 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27651 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27652 fi
27653 fi
27654
27655 if test $succeeded = yes; then
27656
27657 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27658 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27659
27660 else
27661
27662 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27663echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27664 { (exit 1); exit 1; }; }
27665
27666
27667 fi
27668
27669
27670 succeeded=no
27671
27672 if test -z "$PKG_CONFIG"; then
27673 # Extract the first word of "pkg-config", so it can be a program name with args.
27674set dummy pkg-config; ac_word=$2
27675echo "$as_me:$LINENO: checking for $ac_word" >&5
27676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27677if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27678 echo $ECHO_N "(cached) $ECHO_C" >&6
27679else
27680 case $PKG_CONFIG in
27681 [\\/]* | ?:[\\/]*)
27682 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27683 ;;
27684 *)
27685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27686for as_dir in $PATH
27687do
27688 IFS=$as_save_IFS
27689 test -z "$as_dir" && as_dir=.
27690 for ac_exec_ext in '' $ac_executable_extensions; do
27691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27692 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27694 break 2
27695 fi
27696done
27697done
27698
27699 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27700 ;;
27701esac
27702fi
27703PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27704
27705if test -n "$PKG_CONFIG"; then
27706 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27707echo "${ECHO_T}$PKG_CONFIG" >&6
27708else
27709 echo "$as_me:$LINENO: result: no" >&5
27710echo "${ECHO_T}no" >&6
27711fi
27712
27713 fi
27714
27715 if test "$PKG_CONFIG" = "no" ; then
27716 echo "*** The pkg-config script could not be found. Make sure it is"
27717 echo "*** in your path, or set the PKG_CONFIG environment variable"
27718 echo "*** to the full path to pkg-config."
27719 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27720 else
27721 PKG_CONFIG_MIN_VERSION=0.9.0
27722 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27723 echo "$as_me:$LINENO: checking for pangoft2" >&5
27724echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27725
27726 if $PKG_CONFIG --exists "pangoft2" ; then
27727 echo "$as_me:$LINENO: result: yes" >&5
27728echo "${ECHO_T}yes" >&6
27729 succeeded=yes
27730
27731 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27732echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27733 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27734 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27735echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27736
27737 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27738echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27739 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27740 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27741echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27742 else
27743 PANGOFT2_CFLAGS=""
27744 PANGOFT2_LIBS=""
27745 ## If we have a custom action on failure, don't print errors, but
27746 ## do set a variable so people can do so.
27747 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27748
27749 fi
27750
27751
27752
27753 else
27754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27756 fi
27757 fi
27758
27759 if test $succeeded = yes; then
27760
27761 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27762 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27763
27764 else
27765
27766 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27767echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27768 wxUSE_PRINTING_ARCHITECTURE="no"
27769
27770
27771 fi
27772
27773
27774 succeeded=no
27775
27776 if test -z "$PKG_CONFIG"; then
27777 # Extract the first word of "pkg-config", so it can be a program name with args.
27778set dummy pkg-config; ac_word=$2
27779echo "$as_me:$LINENO: checking for $ac_word" >&5
27780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27781if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27782 echo $ECHO_N "(cached) $ECHO_C" >&6
27783else
27784 case $PKG_CONFIG in
27785 [\\/]* | ?:[\\/]*)
27786 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27787 ;;
27788 *)
27789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27790for as_dir in $PATH
27791do
27792 IFS=$as_save_IFS
27793 test -z "$as_dir" && as_dir=.
27794 for ac_exec_ext in '' $ac_executable_extensions; do
27795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27796 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27798 break 2
27799 fi
27800done
27801done
27802
27803 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27804 ;;
27805esac
27806fi
27807PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27808
27809if test -n "$PKG_CONFIG"; then
27810 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27811echo "${ECHO_T}$PKG_CONFIG" >&6
27812else
27813 echo "$as_me:$LINENO: result: no" >&5
27814echo "${ECHO_T}no" >&6
27815fi
27816
27817 fi
27818
27819 if test "$PKG_CONFIG" = "no" ; then
27820 echo "*** The pkg-config script could not be found. Make sure it is"
27821 echo "*** in your path, or set the PKG_CONFIG environment variable"
27822 echo "*** to the full path to pkg-config."
27823 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27824 else
27825 PKG_CONFIG_MIN_VERSION=0.9.0
27826 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27827 echo "$as_me:$LINENO: checking for pangoxft" >&5
27828echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27829
27830 if $PKG_CONFIG --exists "pangoxft" ; then
27831 echo "$as_me:$LINENO: result: yes" >&5
27832echo "${ECHO_T}yes" >&6
27833 succeeded=yes
27834
27835 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27836echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27837 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27838 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27839echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27840
27841 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27842echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27843 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27844 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27845echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27846 else
27847 PANGOXFT_CFLAGS=""
27848 PANGOXFT_LIBS=""
27849 ## If we have a custom action on failure, don't print errors, but
27850 ## do set a variable so people can do so.
27851 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27852
27853 fi
27854
27855
27856
27857 else
27858 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27859 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27860 fi
27861 fi
27862
27863 if test $succeeded = yes; then
27864
4ae1af05
MB
27865 cat >>confdefs.h <<\_ACEOF
27866#define HAVE_PANGO_XFT 1
27867_ACEOF
27868
a848cd7e
SC
27869 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27870 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27871
27872 else
27873
27874 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27875echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27876
27877
27878 fi
27879
304205f1
VS
27880 save_CFLAGS="$CFLAGS"
27881 save_LIBS="$LIBS"
27882 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27883 LIBS="$LIBS $PANGOX_LIBS"
27884
27885for ac_func in pango_font_family_is_monospace
27886do
27887as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27888echo "$as_me:$LINENO: checking for $ac_func" >&5
27889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27890if eval "test \"\${$as_ac_var+set}\" = set"; then
27891 echo $ECHO_N "(cached) $ECHO_C" >&6
27892else
27893 cat >conftest.$ac_ext <<_ACEOF
27894/* confdefs.h. */
27895_ACEOF
27896cat confdefs.h >>conftest.$ac_ext
27897cat >>conftest.$ac_ext <<_ACEOF
27898/* end confdefs.h. */
27899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27901#define $ac_func innocuous_$ac_func
27902
27903/* System header to define __stub macros and hopefully few prototypes,
27904 which can conflict with char $ac_func (); below.
27905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27906 <limits.h> exists even on freestanding compilers. */
27907
27908#ifdef __STDC__
27909# include <limits.h>
27910#else
27911# include <assert.h>
27912#endif
27913
27914#undef $ac_func
27915
27916/* Override any gcc2 internal prototype to avoid an error. */
27917#ifdef __cplusplus
27918extern "C"
27919{
27920#endif
27921/* We use char because int might match the return type of a gcc2
27922 builtin and then its argument prototype would still apply. */
27923char $ac_func ();
27924/* The GNU C library defines this for functions which it implements
27925 to always fail with ENOSYS. Some functions are actually named
27926 something starting with __ and the normal name is an alias. */
27927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27928choke me
27929#else
27930char (*f) () = $ac_func;
27931#endif
27932#ifdef __cplusplus
27933}
27934#endif
27935
27936int
27937main ()
27938{
27939return f != $ac_func;
27940 ;
27941 return 0;
27942}
27943_ACEOF
27944rm -f conftest.$ac_objext conftest$ac_exeext
27945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27946 (eval $ac_link) 2>conftest.er1
27947 ac_status=$?
27948 grep -v '^ *+' conftest.er1 >conftest.err
27949 rm -f conftest.er1
27950 cat conftest.err >&5
27951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); } &&
fb00f58d
JS
27953 { ac_try='test -z "$ac_c_werror_flag"
27954 || test ! -s conftest.err'
304205f1
VS
27955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27956 (eval $ac_try) 2>&5
27957 ac_status=$?
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); }; } &&
27960 { ac_try='test -s conftest$ac_exeext'
27961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27962 (eval $ac_try) 2>&5
27963 ac_status=$?
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); }; }; then
27966 eval "$as_ac_var=yes"
27967else
27968 echo "$as_me: failed program was:" >&5
27969sed 's/^/| /' conftest.$ac_ext >&5
27970
27971eval "$as_ac_var=no"
27972fi
27973rm -f conftest.err conftest.$ac_objext \
27974 conftest$ac_exeext conftest.$ac_ext
27975fi
27976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27978if test `eval echo '${'$as_ac_var'}'` = yes; then
27979 cat >>confdefs.h <<_ACEOF
27980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27981_ACEOF
27982
27983fi
27984done
27985
27986 CFLAGS="$save_CFLAGS"
27987 LIBS="$save_LIBS"
a848cd7e
SC
27988 fi
27989
27990 wxUSE_UNIVERSAL="yes"
27991
27992 if test "$wxUSE_NANOX" = "yes"; then
27993 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27994 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"
27995 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27996 else
27997 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27998 fi
27999
a848cd7e
SC
28000 TOOLKIT=X11
28001 GUIDIST=X11_DIST
28002 fi
28003
28004 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28005 if test "$wxUSE_UNICODE" = "yes"; then
28006 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28007echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28008 { (exit 1); exit 1; }; }
28009 fi
28010
74b84332
VS
28011 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28012echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28013
74b84332
VS
28014ac_find_includes=
28015for ac_dir in $SEARCH_INCLUDE /usr/include;
28016 do
28017 if test -f "$ac_dir/Xm/Xm.h"; then
28018 ac_find_includes=$ac_dir
28019 break
28020 fi
28021 done
a848cd7e 28022
74b84332
VS
28023 if test "$ac_find_includes" != "" ; then
28024 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28025echo "${ECHO_T}found in $ac_find_includes" >&6
28026
28027 if test "x$ac_find_includes" = "x/usr/include"; then
28028 ac_path_to_include=""
28029 else
28030 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28031 result=$?
28032 if test $result = 0; then
28033 ac_path_to_include=""
28034 else
28035 ac_path_to_include=" -I$ac_find_includes"
28036 fi
a848cd7e
SC
28037 fi
28038
74b84332
VS
28039 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28040 else
28041 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28042/* confdefs.h. */
28043_ACEOF
28044cat confdefs.h >>conftest.$ac_ext
28045cat >>conftest.$ac_ext <<_ACEOF
28046/* end confdefs.h. */
28047
74b84332
VS
28048 #include <Xm/Xm.h>
28049
a848cd7e
SC
28050int
28051main ()
28052{
28053
74b84332
VS
28054 int version;
28055 version = xmUseVersion;
28056
a848cd7e
SC
28057 ;
28058 return 0;
28059}
28060_ACEOF
74b84332
VS
28061rm -f conftest.$ac_objext
28062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28063 (eval $ac_compile) 2>conftest.er1
a848cd7e 28064 ac_status=$?
ac1cb8d3
VS
28065 grep -v '^ *+' conftest.er1 >conftest.err
28066 rm -f conftest.er1
28067 cat conftest.err >&5
a848cd7e
SC
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); } &&
fb00f58d
JS
28070 { ac_try='test -z "$ac_c_werror_flag"
28071 || test ! -s conftest.err'
ac1cb8d3
VS
28072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28073 (eval $ac_try) 2>&5
28074 ac_status=$?
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); }; } &&
74b84332 28077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28079 (eval $ac_try) 2>&5
28080 ac_status=$?
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); }; }; then
74b84332
VS
28083
28084 echo "$as_me:$LINENO: result: found in default search path" >&5
28085echo "${ECHO_T}found in default search path" >&6
28086 COMPILED_X_PROGRAM=1
28087
a848cd7e
SC
28088else
28089 echo "$as_me: failed program was:" >&5
28090sed 's/^/| /' conftest.$ac_ext >&5
28091
a848cd7e 28092
74b84332
VS
28093 echo "$as_me:$LINENO: result: no" >&5
28094echo "${ECHO_T}no" >&6
28095 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
28096echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
28097 { (exit 1); exit 1; }; }
a848cd7e 28098
a848cd7e 28099
a848cd7e 28100fi
74b84332
VS
28101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28102 fi
28103
28104 if test "$COMPILED_X_PROGRAM" = 0; then
28105 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
28106echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28107
28108ac_find_libraries=
28109for ac_dir in $SEARCH_LIB /usr/lib;
28110 do
28111 for ac_extension in a so sl dylib; do
28112 if test -f "$ac_dir/libXm.$ac_extension"; then
28113 ac_find_libraries=$ac_dir
28114 break 2
a848cd7e 28115 fi
74b84332
VS
28116 done
28117 done
a848cd7e 28118
74b84332
VS
28119 if test "$ac_find_libraries" != "" ; then
28120 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28121echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 28122
74b84332
VS
28123
28124 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28125 result=$?
28126 if test $result = 0; then
28127 ac_path_to_link=""
a848cd7e 28128 else
74b84332
VS
28129 ac_path_to_link=" -L$ac_find_libraries"
28130 fi
28131
28132 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28133 else
28134 save_CFLAGS=$CFLAGS
28135 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28136
28137 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28138/* confdefs.h. */
28139_ACEOF
28140cat confdefs.h >>conftest.$ac_ext
28141cat >>conftest.$ac_ext <<_ACEOF
28142/* end confdefs.h. */
28143
74b84332
VS
28144 #include <Xm/Xm.h>
28145
a848cd7e
SC
28146int
28147main ()
28148{
74b84332
VS
28149
28150 int version;
28151 version = xmUseVersion;
28152
a848cd7e
SC
28153 ;
28154 return 0;
28155}
28156_ACEOF
74b84332
VS
28157rm -f conftest.$ac_objext
28158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28159 (eval $ac_compile) 2>conftest.er1
a848cd7e 28160 ac_status=$?
ac1cb8d3
VS
28161 grep -v '^ *+' conftest.er1 >conftest.err
28162 rm -f conftest.er1
28163 cat conftest.err >&5
a848cd7e
SC
28164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165 (exit $ac_status); } &&
fb00f58d
JS
28166 { ac_try='test -z "$ac_c_werror_flag"
28167 || test ! -s conftest.err'
ac1cb8d3
VS
28168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28169 (eval $ac_try) 2>&5
28170 ac_status=$?
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); }; } &&
74b84332 28173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28175 (eval $ac_try) 2>&5
28176 ac_status=$?
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); }; }; then
74b84332
VS
28179
28180 echo "$as_me:$LINENO: result: found in default search path" >&5
28181echo "${ECHO_T}found in default search path" >&6
28182 COMPILED_X_PROGRAM=1
28183
a848cd7e
SC
28184else
28185 echo "$as_me: failed program was:" >&5
28186sed 's/^/| /' conftest.$ac_ext >&5
28187
74b84332
VS
28188
28189 echo "$as_me:$LINENO: result: no" >&5
28190echo "${ECHO_T}no" >&6
28191 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28192echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28193 { (exit 1); exit 1; }; }
28194
28195
28196fi
28197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28198
28199 CFLAGS=$save_CFLAGS
28200 fi
28201 fi
28202
28203 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28204echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28205 libp_link=""
28206 libsm_ice_link=""
28207 libs_found=0
28208 for libp in "" " -lXp"; do
28209 if test "$libs_found" = "0"; then
28210 for libsm_ice in "" " -lSM -lICE"; do
28211 if test "$libs_found" = "0"; then
28212 save_LIBS="$LIBS"
28213 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28214 save_CFLAGS=$CFLAGS
28215 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28216
28217 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28218/* confdefs.h. */
28219_ACEOF
28220cat confdefs.h >>conftest.$ac_ext
28221cat >>conftest.$ac_ext <<_ACEOF
28222/* end confdefs.h. */
28223
74b84332
VS
28224 #include <Xm/Xm.h>
28225 #include <Xm/List.h>
28226
a848cd7e
SC
28227int
28228main ()
28229{
74b84332
VS
28230
28231 XmString string = NULL;
28232 Widget w = NULL;
28233 int position = 0;
28234 XmListAddItem(w, string, position);
28235
a848cd7e
SC
28236 ;
28237 return 0;
28238}
28239_ACEOF
28240rm -f conftest.$ac_objext conftest$ac_exeext
28241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28242 (eval $ac_link) 2>conftest.er1
a848cd7e 28243 ac_status=$?
ac1cb8d3
VS
28244 grep -v '^ *+' conftest.er1 >conftest.err
28245 rm -f conftest.er1
28246 cat conftest.err >&5
a848cd7e
SC
28247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248 (exit $ac_status); } &&
fb00f58d
JS
28249 { ac_try='test -z "$ac_c_werror_flag"
28250 || test ! -s conftest.err'
ac1cb8d3
VS
28251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28252 (eval $ac_try) 2>&5
28253 ac_status=$?
28254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); }; } &&
28256 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28258 (eval $ac_try) 2>&5
28259 ac_status=$?
28260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261 (exit $ac_status); }; }; then
28262
28263 libp_link="$libp"
28264 libsm_ice_link="$libsm_ice"
28265 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28266echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28267 libs_found=1
28268
28269else
28270 echo "$as_me: failed program was:" >&5
28271sed 's/^/| /' conftest.$ac_ext >&5
28272
28273
28274
28275fi
ac1cb8d3
VS
28276rm -f conftest.err conftest.$ac_objext \
28277 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28278
28279 LIBS="$save_LIBS"
28280 CFLAGS=$save_CFLAGS
28281 fi
28282 done
28283 fi
28284 done
28285
28286 if test "$libs_found" = "0"; then
28287 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28288echo "${ECHO_T}can't find the right libraries" >&6
28289 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28290echo "$as_me: error: can't link a simple motif program" >&2;}
28291 { (exit 1); exit 1; }; }
28292 fi
28293
28294 save_CFLAGS=$CFLAGS
28295 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28296 echo "$as_me:$LINENO: checking for Motif 2" >&5
28297echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28298 cat >conftest.$ac_ext <<_ACEOF
28299/* confdefs.h. */
28300_ACEOF
28301cat confdefs.h >>conftest.$ac_ext
28302cat >>conftest.$ac_ext <<_ACEOF
28303/* end confdefs.h. */
28304
28305 #include <Xm/Xm.h>
28306
28307int
28308main ()
28309{
28310
28311 #if XmVersion < 2000
28312 #error "Not Motif 2"
28313 #endif
28314
28315 ;
28316 return 0;
28317}
28318_ACEOF
28319rm -f conftest.$ac_objext
28320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28321 (eval $ac_compile) 2>conftest.er1
a848cd7e 28322 ac_status=$?
ac1cb8d3
VS
28323 grep -v '^ *+' conftest.er1 >conftest.err
28324 rm -f conftest.er1
28325 cat conftest.err >&5
a848cd7e
SC
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); } &&
fb00f58d
JS
28328 { ac_try='test -z "$ac_c_werror_flag"
28329 || test ! -s conftest.err'
ac1cb8d3
VS
28330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28331 (eval $ac_try) 2>&5
28332 ac_status=$?
28333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334 (exit $ac_status); }; } &&
28335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28337 (eval $ac_try) 2>&5
28338 ac_status=$?
28339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340 (exit $ac_status); }; }; then
28341
28342 cat >>confdefs.h <<\_ACEOF
28343#define __WXMOTIF20__ 1
28344_ACEOF
28345
28346 echo "$as_me:$LINENO: result: found" >&5
28347echo "${ECHO_T}found" >&6
28348
28349else
28350 echo "$as_me: failed program was:" >&5
28351sed 's/^/| /' conftest.$ac_ext >&5
28352
28353
28354 cat >>confdefs.h <<\_ACEOF
28355#define __WXMOTIF20__ 0
28356_ACEOF
28357
28358 echo "$as_me:$LINENO: result: not found" >&5
28359echo "${ECHO_T}not found" >&6
28360
28361fi
ac1cb8d3 28362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28363 CFLAGS=$save_CFLAGS
28364
28365 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28366 TOOLKIT=MOTIF
28367 GUIDIST=MOTIF_DIST
28368 fi
28369
74b84332 28370 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28371 if test "$wxUSE_LIBXPM" = "sys"; then
28372 echo "$as_me:$LINENO: checking for Xpm library" >&5
28373echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28374
28375ac_find_libraries=
28376for ac_dir in $SEARCH_LIB /usr/lib;
28377 do
28378 for ac_extension in a so sl dylib; do
28379 if test -f "$ac_dir/libXpm.$ac_extension"; then
28380 ac_find_libraries=$ac_dir
28381 break 2
28382 fi
28383 done
28384 done
28385
28386 if test "$ac_find_libraries" != "" ; then
28387
28388 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28389 result=$?
28390 if test $result = 0; then
28391 ac_path_to_link=""
28392 else
28393 ac_path_to_link=" -L$ac_find_libraries"
28394 fi
28395
28396 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28397 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28398echo "${ECHO_T}found at $ac_find_libraries" >&6
28399
28400 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28401echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28402if test "${wx_cv_x11_xpm_h+set}" = set; then
28403 echo $ECHO_N "(cached) $ECHO_C" >&6
28404else
28405
28406 save_CFLAGS=$CFLAGS
28407 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28408
28409 cat >conftest.$ac_ext <<_ACEOF
28410/* confdefs.h. */
28411_ACEOF
28412cat confdefs.h >>conftest.$ac_ext
28413cat >>conftest.$ac_ext <<_ACEOF
28414/* end confdefs.h. */
28415
28416 #include <X11/xpm.h>
28417
28418int
28419main ()
28420{
28421
28422 int version;
28423 version = XpmLibraryVersion();
28424
28425 ;
28426 return 0;
28427}
28428_ACEOF
28429rm -f conftest.$ac_objext
28430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28431 (eval $ac_compile) 2>conftest.er1
a848cd7e 28432 ac_status=$?
ac1cb8d3
VS
28433 grep -v '^ *+' conftest.er1 >conftest.err
28434 rm -f conftest.er1
28435 cat conftest.err >&5
a848cd7e
SC
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); } &&
fb00f58d
JS
28438 { ac_try='test -z "$ac_c_werror_flag"
28439 || test ! -s conftest.err'
ac1cb8d3
VS
28440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441 (eval $ac_try) 2>&5
28442 ac_status=$?
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); }; } &&
28445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447 (eval $ac_try) 2>&5
28448 ac_status=$?
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; }; then
28451 wx_cv_x11_xpm_h=yes
28452else
28453 echo "$as_me: failed program was:" >&5
28454sed 's/^/| /' conftest.$ac_ext >&5
28455
28456wx_cv_x11_xpm_h=no
28457
28458fi
ac1cb8d3 28459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28460
28461 CFLAGS=$save_CFLAGS
28462
28463
28464fi
28465echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28466echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28467
28468 if test $wx_cv_x11_xpm_h = "yes"; then
28469 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28470 cat >>confdefs.h <<\_ACEOF
28471#define wxHAVE_LIB_XPM 1
28472_ACEOF
28473
28474 else
28475 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28476echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28477 fi
28478 fi
28479
28480 fi
28481
28482 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28483echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28484if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28485 echo $ECHO_N "(cached) $ECHO_C" >&6
28486else
28487 ac_check_lib_save_LIBS=$LIBS
28488LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28489cat >conftest.$ac_ext <<_ACEOF
28490/* confdefs.h. */
28491_ACEOF
28492cat confdefs.h >>conftest.$ac_ext
28493cat >>conftest.$ac_ext <<_ACEOF
28494/* end confdefs.h. */
28495
28496/* Override any gcc2 internal prototype to avoid an error. */
28497#ifdef __cplusplus
28498extern "C"
28499#endif
28500/* We use char because int might match the return type of a gcc2
28501 builtin and then its argument prototype would still apply. */
28502char XShapeQueryExtension ();
28503int
28504main ()
28505{
28506XShapeQueryExtension ();
28507 ;
28508 return 0;
28509}
28510_ACEOF
28511rm -f conftest.$ac_objext conftest$ac_exeext
28512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28513 (eval $ac_link) 2>conftest.er1
a848cd7e 28514 ac_status=$?
ac1cb8d3
VS
28515 grep -v '^ *+' conftest.er1 >conftest.err
28516 rm -f conftest.er1
28517 cat conftest.err >&5
a848cd7e
SC
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); } &&
fb00f58d
JS
28520 { ac_try='test -z "$ac_c_werror_flag"
28521 || test ! -s conftest.err'
ac1cb8d3
VS
28522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28523 (eval $ac_try) 2>&5
28524 ac_status=$?
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); }; } &&
28527 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28530 ac_status=$?
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; }; then
28533 ac_cv_lib_Xext_XShapeQueryExtension=yes
28534else
28535 echo "$as_me: failed program was:" >&5
28536sed 's/^/| /' conftest.$ac_ext >&5
28537
28538ac_cv_lib_Xext_XShapeQueryExtension=no
28539fi
ac1cb8d3
VS
28540rm -f conftest.err conftest.$ac_objext \
28541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28542LIBS=$ac_check_lib_save_LIBS
28543fi
28544echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28545echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28546if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28547
28548 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28549 wxHAVE_XEXT_LIB=1
28550
28551fi
28552
28553
28554 if test "$wxHAVE_XEXT_LIB" = 1; then
28555 save_CFLAGS="$CFLAGS"
28556 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28557
28558 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28559echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28560 cat >conftest.$ac_ext <<_ACEOF
28561/* confdefs.h. */
28562_ACEOF
28563cat confdefs.h >>conftest.$ac_ext
28564cat >>conftest.$ac_ext <<_ACEOF
28565/* end confdefs.h. */
28566
28567 #include <X11/Xlib.h>
28568 #include <X11/extensions/shape.h>
28569
28570int
28571main ()
28572{
28573
28574 int dummy1, dummy2;
28575 XShapeQueryExtension((Display*)NULL,
28576 (int*)NULL, (int*)NULL);
28577
28578 ;
28579 return 0;
28580}
28581_ACEOF
28582rm -f conftest.$ac_objext
28583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28584 (eval $ac_compile) 2>conftest.er1
a848cd7e 28585 ac_status=$?
ac1cb8d3
VS
28586 grep -v '^ *+' conftest.er1 >conftest.err
28587 rm -f conftest.er1
28588 cat conftest.err >&5
a848cd7e
SC
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } &&
fb00f58d
JS
28591 { ac_try='test -z "$ac_c_werror_flag"
28592 || test ! -s conftest.err'
ac1cb8d3
VS
28593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594 (eval $ac_try) 2>&5
28595 ac_status=$?
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); }; } &&
28598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600 (eval $ac_try) 2>&5
28601 ac_status=$?
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); }; }; then
28604
28605 cat >>confdefs.h <<\_ACEOF
28606#define HAVE_XSHAPE 1
28607_ACEOF
28608
28609 echo "$as_me:$LINENO: result: found" >&5
28610echo "${ECHO_T}found" >&6
28611
28612else
28613 echo "$as_me: failed program was:" >&5
28614sed 's/^/| /' conftest.$ac_ext >&5
28615
28616
28617 echo "$as_me:$LINENO: result: not found" >&5
28618echo "${ECHO_T}not found" >&6
28619
28620fi
ac1cb8d3 28621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28622 CFLAGS="$save_CFLAGS"
28623
28624 fi
28625 fi
28626
28627 if test "$wxUSE_MAC" = 1; then
28628 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28629echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28630 if test "$GCC" = yes; then
28631 echo "$as_me:$LINENO: result: gcc" >&5
28632echo "${ECHO_T}gcc" >&6
28633 CPPFLAGS_PASCAL="-fpascal-strings"
28634 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28635 echo "$as_me:$LINENO: result: xlc" >&5
28636echo "${ECHO_T}xlc" >&6
28637 CPPFLAGS_PASCAL="-qmacpstr"
28638 else
28639 echo "$as_me:$LINENO: result: none" >&5
28640echo "${ECHO_T}none" >&6
28641 fi
28642
1e9e8aba
DE
28643 if test "x$wxUSE_UNIX" = "xyes"; then
28644 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28645 else
28646 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28647 fi
a848cd7e 28648
a848cd7e
SC
28649 TOOLKIT=MAC
28650 GUIDIST=MACX_DIST
dd21ced8 28651 WXBASEPORT="_carbon"
a848cd7e
SC
28652 fi
28653
28654 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28655 TOOLKIT=COCOA
28656 GUIDIST=COCOA_DIST
28657 fi
28658
28659 if test "$wxUSE_PM" = 1; then
28660 TOOLKIT=PM
de59c161
RD
28661 GUIDIST=PM_DIST
28662 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28663echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28664if test "${wx_cv_spbcdata+set}" = set; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28666else
28667
28668 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28669/* confdefs.h. */
28670_ACEOF
28671cat confdefs.h >>conftest.$ac_ext
28672cat >>conftest.$ac_ext <<_ACEOF
28673/* end confdefs.h. */
28674
28675 #define INCL_PM
28676 #include <os2.h>
28677
28678int
28679main ()
28680{
28681
28682 SPBCDATA test;
28683
28684 ;
28685 return 0;
28686}
28687_ACEOF
28688rm -f conftest.$ac_objext
28689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28690 (eval $ac_compile) 2>conftest.er1
de59c161 28691 ac_status=$?
ac1cb8d3
VS
28692 grep -v '^ *+' conftest.er1 >conftest.err
28693 rm -f conftest.er1
28694 cat conftest.err >&5
de59c161
RD
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); } &&
fb00f58d
JS
28697 { ac_try='test -z "$ac_c_werror_flag"
28698 || test ! -s conftest.err'
ac1cb8d3
VS
28699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28700 (eval $ac_try) 2>&5
28701 ac_status=$?
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); }; } &&
28704 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28706 (eval $ac_try) 2>&5
28707 ac_status=$?
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); }; }; then
28710 wx_cv_spbcdata=yes
28711else
28712 echo "$as_me: failed program was:" >&5
28713sed 's/^/| /' conftest.$ac_ext >&5
28714
28715wx_cv_spbcdata=no
28716
28717fi
ac1cb8d3 28718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28719
28720
28721fi
28722echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28723echo "${ECHO_T}$wx_cv_spbcdata" >&6
28724
28725 if test $wx_cv_spbcdata = "yes"; then
28726 cat >>confdefs.h <<\_ACEOF
28727#define HAVE_SPBCDATA 1
28728_ACEOF
28729
28730 fi
a848cd7e
SC
28731 fi
28732
28733 if test "$TOOLKIT" = "PM" ; then
28734 TOOLKIT_DIR="os2"
28735 else
28736 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28737 fi
28738
a848cd7e 28739 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28740 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28741 WIDGET_SET=univ
a848cd7e
SC
28742 fi
28743
28744 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28745 DISTDIR="wx\$(TOOLKIT)"
28746else
28747 USE_GUI=0
28748
28749 TOOLKIT_DIR="base"
28750
28751 if test "$USE_WIN32" = 1 ; then
a848cd7e 28752 TOOLKIT="MSW"
a848cd7e
SC
28753 fi
28754
a848cd7e
SC
28755 GUIDIST="BASE_DIST"
28756 DISTDIR="wxBase"
28757fi
28758
28759
28760
28761
28762IODBC_C_SRC=""
28763
28764
28765if test "$TOOLKIT" != "MSW" ; then
28766
28767 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28768
28769 if test "${ac_cv_header_sql_h+set}" = set; then
28770 echo "$as_me:$LINENO: checking for sql.h" >&5
28771echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28772if test "${ac_cv_header_sql_h+set}" = set; then
28773 echo $ECHO_N "(cached) $ECHO_C" >&6
28774fi
28775echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28776echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28777else
28778 # Is the header compilable?
28779echo "$as_me:$LINENO: checking sql.h usability" >&5
28780echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28781cat >conftest.$ac_ext <<_ACEOF
28782/* confdefs.h. */
28783_ACEOF
28784cat confdefs.h >>conftest.$ac_ext
28785cat >>conftest.$ac_ext <<_ACEOF
28786/* end confdefs.h. */
28787$ac_includes_default
28788#include <sql.h>
28789_ACEOF
28790rm -f conftest.$ac_objext
28791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28792 (eval $ac_compile) 2>conftest.er1
a848cd7e 28793 ac_status=$?
ac1cb8d3
VS
28794 grep -v '^ *+' conftest.er1 >conftest.err
28795 rm -f conftest.er1
28796 cat conftest.err >&5
a848cd7e
SC
28797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798 (exit $ac_status); } &&
fb00f58d
JS
28799 { ac_try='test -z "$ac_c_werror_flag"
28800 || test ! -s conftest.err'
ac1cb8d3
VS
28801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28802 (eval $ac_try) 2>&5
28803 ac_status=$?
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); }; } &&
28806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28808 (eval $ac_try) 2>&5
28809 ac_status=$?
28810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811 (exit $ac_status); }; }; then
28812 ac_header_compiler=yes
28813else
28814 echo "$as_me: failed program was:" >&5
28815sed 's/^/| /' conftest.$ac_ext >&5
28816
28817ac_header_compiler=no
28818fi
ac1cb8d3 28819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28820echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28821echo "${ECHO_T}$ac_header_compiler" >&6
28822
28823# Is the header present?
28824echo "$as_me:$LINENO: checking sql.h presence" >&5
28825echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28826cat >conftest.$ac_ext <<_ACEOF
28827/* confdefs.h. */
28828_ACEOF
28829cat confdefs.h >>conftest.$ac_ext
28830cat >>conftest.$ac_ext <<_ACEOF
28831/* end confdefs.h. */
28832#include <sql.h>
28833_ACEOF
28834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28836 ac_status=$?
28837 grep -v '^ *+' conftest.er1 >conftest.err
28838 rm -f conftest.er1
28839 cat conftest.err >&5
28840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841 (exit $ac_status); } >/dev/null; then
28842 if test -s conftest.err; then
28843 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28845 else
28846 ac_cpp_err=
28847 fi
28848else
28849 ac_cpp_err=yes
28850fi
28851if test -z "$ac_cpp_err"; then
28852 ac_header_preproc=yes
28853else
28854 echo "$as_me: failed program was:" >&5
28855sed 's/^/| /' conftest.$ac_ext >&5
28856
28857 ac_header_preproc=no
28858fi
28859rm -f conftest.err conftest.$ac_ext
28860echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28861echo "${ECHO_T}$ac_header_preproc" >&6
28862
28863# So? What about this header?
ac1cb8d3
VS
28864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28865 yes:no: )
a848cd7e
SC
28866 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28867echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28868 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28869echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28870 ac_header_preproc=yes
a848cd7e 28871 ;;
ac1cb8d3 28872 no:yes:* )
a848cd7e
SC
28873 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28874echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28875 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28876echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28877 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28878echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28879 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28880echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28881 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28882echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28883 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28884echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28885 (
28886 cat <<\_ASBOX
ac1cb8d3
VS
28887## ----------------------------------------- ##
28888## Report this to wx-dev@lists.wxwidgets.org ##
28889## ----------------------------------------- ##
a848cd7e
SC
28890_ASBOX
28891 ) |
28892 sed "s/^/$as_me: WARNING: /" >&2
28893 ;;
28894esac
28895echo "$as_me:$LINENO: checking for sql.h" >&5
28896echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28897if test "${ac_cv_header_sql_h+set}" = set; then
28898 echo $ECHO_N "(cached) $ECHO_C" >&6
28899else
28900 ac_cv_header_sql_h=$ac_header_preproc
28901fi
28902echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28903echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28904
28905fi
28906if test $ac_cv_header_sql_h = yes; then
28907 found_sql_h=1
28908fi
28909
28910
28911 if test "x$found_sql_h" = "x1" ; then
28912 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28913echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28914if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28915 echo $ECHO_N "(cached) $ECHO_C" >&6
28916else
28917 ac_check_lib_save_LIBS=$LIBS
28918LIBS="-liodbc $LIBS"
28919cat >conftest.$ac_ext <<_ACEOF
28920/* confdefs.h. */
28921_ACEOF
28922cat confdefs.h >>conftest.$ac_ext
28923cat >>conftest.$ac_ext <<_ACEOF
28924/* end confdefs.h. */
28925
28926/* Override any gcc2 internal prototype to avoid an error. */
28927#ifdef __cplusplus
28928extern "C"
28929#endif
28930/* We use char because int might match the return type of a gcc2
28931 builtin and then its argument prototype would still apply. */
28932char SQLAllocEnv ();
28933int
28934main ()
28935{
28936SQLAllocEnv ();
28937 ;
28938 return 0;
28939}
28940_ACEOF
28941rm -f conftest.$ac_objext conftest$ac_exeext
28942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28943 (eval $ac_link) 2>conftest.er1
a848cd7e 28944 ac_status=$?
ac1cb8d3
VS
28945 grep -v '^ *+' conftest.er1 >conftest.err
28946 rm -f conftest.er1
28947 cat conftest.err >&5
a848cd7e
SC
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); } &&
fb00f58d
JS
28950 { ac_try='test -z "$ac_c_werror_flag"
28951 || test ! -s conftest.err'
ac1cb8d3
VS
28952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28953 (eval $ac_try) 2>&5
28954 ac_status=$?
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); }; } &&
28957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959 (eval $ac_try) 2>&5
28960 ac_status=$?
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; }; then
28963 ac_cv_lib_iodbc_SQLAllocEnv=yes
28964else
28965 echo "$as_me: failed program was:" >&5
28966sed 's/^/| /' conftest.$ac_ext >&5
28967
28968ac_cv_lib_iodbc_SQLAllocEnv=no
28969fi
ac1cb8d3
VS
28970rm -f conftest.err conftest.$ac_objext \
28971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28972LIBS=$ac_check_lib_save_LIBS
28973fi
28974echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28975echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28976if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28977 ODBC_LINK=" -liodbc"
28978else
28979
28980 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28981echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28982if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28983 echo $ECHO_N "(cached) $ECHO_C" >&6
28984else
28985 ac_check_lib_save_LIBS=$LIBS
28986LIBS="-lunixodbc $LIBS"
28987cat >conftest.$ac_ext <<_ACEOF
28988/* confdefs.h. */
28989_ACEOF
28990cat confdefs.h >>conftest.$ac_ext
28991cat >>conftest.$ac_ext <<_ACEOF
28992/* end confdefs.h. */
28993
28994/* Override any gcc2 internal prototype to avoid an error. */
28995#ifdef __cplusplus
28996extern "C"
28997#endif
28998/* We use char because int might match the return type of a gcc2
28999 builtin and then its argument prototype would still apply. */
29000char SQLAllocEnv ();
29001int
29002main ()
29003{
29004SQLAllocEnv ();
29005 ;
29006 return 0;
29007}
29008_ACEOF
29009rm -f conftest.$ac_objext conftest$ac_exeext
29010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29011 (eval $ac_link) 2>conftest.er1
a848cd7e 29012 ac_status=$?
ac1cb8d3
VS
29013 grep -v '^ *+' conftest.er1 >conftest.err
29014 rm -f conftest.er1
29015 cat conftest.err >&5
a848cd7e
SC
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); } &&
fb00f58d
JS
29018 { ac_try='test -z "$ac_c_werror_flag"
29019 || test ! -s conftest.err'
ac1cb8d3
VS
29020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021 (eval $ac_try) 2>&5
29022 ac_status=$?
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; } &&
29025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29027 (eval $ac_try) 2>&5
29028 ac_status=$?
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; }; then
29031 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29032else
29033 echo "$as_me: failed program was:" >&5
29034sed 's/^/| /' conftest.$ac_ext >&5
29035
29036ac_cv_lib_unixodbc_SQLAllocEnv=no
29037fi
ac1cb8d3
VS
29038rm -f conftest.err conftest.$ac_objext \
29039 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29040LIBS=$ac_check_lib_save_LIBS
29041fi
29042echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29043echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29044if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29045 ODBC_LINK=" -lunixodbc"
29046else
29047
29048 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29049echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29050if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29052else
29053 ac_check_lib_save_LIBS=$LIBS
29054LIBS="-lodbc $LIBS"
29055cat >conftest.$ac_ext <<_ACEOF
29056/* confdefs.h. */
29057_ACEOF
29058cat confdefs.h >>conftest.$ac_ext
29059cat >>conftest.$ac_ext <<_ACEOF
29060/* end confdefs.h. */
29061
29062/* Override any gcc2 internal prototype to avoid an error. */
29063#ifdef __cplusplus
29064extern "C"
29065#endif
29066/* We use char because int might match the return type of a gcc2
29067 builtin and then its argument prototype would still apply. */
29068char SQLAllocEnv ();
29069int
29070main ()
29071{
29072SQLAllocEnv ();
29073 ;
29074 return 0;
29075}
29076_ACEOF
29077rm -f conftest.$ac_objext conftest$ac_exeext
29078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29079 (eval $ac_link) 2>conftest.er1
a848cd7e 29080 ac_status=$?
ac1cb8d3
VS
29081 grep -v '^ *+' conftest.er1 >conftest.err
29082 rm -f conftest.er1
29083 cat conftest.err >&5
a848cd7e
SC
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); } &&
fb00f58d
JS
29086 { ac_try='test -z "$ac_c_werror_flag"
29087 || test ! -s conftest.err'
ac1cb8d3
VS
29088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29089 (eval $ac_try) 2>&5
29090 ac_status=$?
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); }; } &&
29093 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29095 (eval $ac_try) 2>&5
29096 ac_status=$?
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); }; }; then
29099 ac_cv_lib_odbc_SQLAllocEnv=yes
29100else
29101 echo "$as_me: failed program was:" >&5
29102sed 's/^/| /' conftest.$ac_ext >&5
29103
29104ac_cv_lib_odbc_SQLAllocEnv=no
29105fi
ac1cb8d3
VS
29106rm -f conftest.err conftest.$ac_objext \
29107 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29108LIBS=$ac_check_lib_save_LIBS
29109fi
29110echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29111echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29112if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29113 ODBC_LINK=" -lodbc"
29114fi
29115
29116
29117fi
29118
29119
29120fi
29121
29122 fi
29123 if test "x$ODBC_LINK" = "x" ; then
29124 if test "$wxUSE_ODBC" = "sys" ; then
29125 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29126echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29127 { (exit 1); exit 1; }; }
29128 else
29129 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29130echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29131 wxUSE_ODBC=builtin
29132 fi
29133 else
29134 wxUSE_ODBC=sys
29135 fi
29136 fi
a848cd7e 29137
2da0c077
RD
29138 if test "$wxUSE_ODBC" = "builtin" ; then
29139 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29140#define wxUSE_BUILTIN_IODBC 1
29141_ACEOF
29142
a848cd7e
SC
29143 fi
29144fi
29145
2da0c077
RD
29146if test "$wxUSE_ODBC" != "no" ; then
29147 cat >>confdefs.h <<\_ACEOF
29148#define wxUSE_ODBC 1
29149_ACEOF
29150
29151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29152
29153 WXODBCFLAG="-D_IODBC_"
29154fi
a848cd7e 29155
01cb68df 29156
a848cd7e 29157if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29158 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29159 echo "$as_me:$LINENO: checking for Xinerama" >&5
29160echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29161
29162ac_find_libraries=
29163for ac_dir in $SEARCH_LIB /usr/lib;
29164 do
29165 for ac_extension in a so sl dylib; do
29166 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29167 ac_find_libraries=$ac_dir
29168 break 2
29169 fi
29170 done
29171 done
29172
29173 if test "$ac_find_libraries" != "" ; then
29174
29175 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29176 result=$?
29177 if test $result = 0; then
29178 ac_path_to_link=""
29179 else
29180 ac_path_to_link=" -L$ac_find_libraries"
29181 fi
29182
29183 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29184 LDFLAGS="$LDFLAGS $ac_path_to_link"
29185 fi
29186 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29187 echo "$as_me:$LINENO: result: yes" >&5
29188echo "${ECHO_T}yes" >&6
29189
29190 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29191echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29192
29193ac_find_libraries=
29194for ac_dir in $SEARCH_LIB /usr/lib;
29195 do
29196 for ac_extension in a so sl dylib; do
29197 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29198 ac_find_libraries=$ac_dir
29199 break 2
29200 fi
29201 done
29202 done
29203
29204 if test "$ac_find_libraries" != "" ; then
29205 echo "$as_me:$LINENO: result: yes" >&5
29206echo "${ECHO_T}yes" >&6
29207
29208for ac_header in X11/extensions/xf86vmode.h
29209do
29210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29211echo "$as_me:$LINENO: checking for $ac_header" >&5
29212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29213if eval "test \"\${$as_ac_Header+set}\" = set"; then
29214 echo $ECHO_N "(cached) $ECHO_C" >&6
29215else
29216 cat >conftest.$ac_ext <<_ACEOF
29217/* confdefs.h. */
29218_ACEOF
29219cat confdefs.h >>conftest.$ac_ext
29220cat >>conftest.$ac_ext <<_ACEOF
29221/* end confdefs.h. */
29222
29223 #if HAVE_X11_XLIB_H
29224 #include <X11/Xlib.h>
29225 #endif
29226
29227
29228#include <$ac_header>
29229_ACEOF
29230rm -f conftest.$ac_objext
29231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29232 (eval $ac_compile) 2>conftest.er1
a848cd7e 29233 ac_status=$?
ac1cb8d3
VS
29234 grep -v '^ *+' conftest.er1 >conftest.err
29235 rm -f conftest.er1
29236 cat conftest.err >&5
a848cd7e
SC
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } &&
fb00f58d
JS
29239 { ac_try='test -z "$ac_c_werror_flag"
29240 || test ! -s conftest.err'
ac1cb8d3
VS
29241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242 (eval $ac_try) 2>&5
29243 ac_status=$?
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; } &&
29246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29248 (eval $ac_try) 2>&5
29249 ac_status=$?
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); }; }; then
29252 eval "$as_ac_Header=yes"
29253else
29254 echo "$as_me: failed program was:" >&5
29255sed 's/^/| /' conftest.$ac_ext >&5
29256
29257eval "$as_ac_Header=no"
29258fi
ac1cb8d3 29259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29260fi
29261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29263if test `eval echo '${'$as_ac_Header'}'` = yes; then
29264 cat >>confdefs.h <<_ACEOF
29265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29266_ACEOF
29267
29268 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29269
29270fi
29271
29272done
29273
29274 else
29275 echo "$as_me:$LINENO: result: no" >&5
29276echo "${ECHO_T}no" >&6
29277 fi
29278
29279 else
29280 echo "$as_me:$LINENO: result: no" >&5
29281echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29282 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29283echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29284 wxUSE_DISPLAY="no"
29285 fi
01cb68df
RG
29286 elif test "$wxUSE_MSW" = 1; then
29287
29288
29289for ac_header in multimon.h ddraw.h
29290do
29291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29292echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29294if eval "test \"\${$as_ac_Header+set}\" = set"; then
29295 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29296else
5294a27e 29297 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29298/* confdefs.h. */
29299_ACEOF
29300cat confdefs.h >>conftest.$ac_ext
29301cat >>conftest.$ac_ext <<_ACEOF
29302/* end confdefs.h. */
5294a27e
VZ
29303#include <windows.h>
29304
01cb68df
RG
29305#include <$ac_header>
29306_ACEOF
29307rm -f conftest.$ac_objext
29308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29309 (eval $ac_compile) 2>conftest.er1
01cb68df 29310 ac_status=$?
ac1cb8d3
VS
29311 grep -v '^ *+' conftest.er1 >conftest.err
29312 rm -f conftest.er1
29313 cat conftest.err >&5
01cb68df
RG
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); } &&
fb00f58d
JS
29316 { ac_try='test -z "$ac_c_werror_flag"
29317 || test ! -s conftest.err'
ac1cb8d3
VS
29318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29319 (eval $ac_try) 2>&5
29320 ac_status=$?
29321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322 (exit $ac_status); }; } &&
29323 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29325 (eval $ac_try) 2>&5
29326 ac_status=$?
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); }; }; then
5294a27e 29329 eval "$as_ac_Header=yes"
01cb68df
RG
29330else
29331 echo "$as_me: failed program was:" >&5
29332sed 's/^/| /' conftest.$ac_ext >&5
29333
5294a27e 29334eval "$as_ac_Header=no"
01cb68df 29335fi
ac1cb8d3 29336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29337fi
29338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29340if test `eval echo '${'$as_ac_Header'}'` = yes; then
29341 cat >>confdefs.h <<_ACEOF
29342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29343_ACEOF
29344
29345else
29346
5294a27e
VZ
29347 wxUSE_DISPLAY="no"
29348 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29349echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29350
29351fi
29352
29353done
29354
a848cd7e
SC
29355 fi
29356fi
29357
29358
29359USE_OPENGL=0
29360if test "$wxUSE_OPENGL" = "yes"; then
29361 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29362 OPENGL_LIBS="-framework OpenGL -framework AGL"
29363 elif test "$wxUSE_MSW" = 1; then
29364 OPENGL_LIBS="-lopengl32 -lglu32"
29365 else
29366
29367
29368ac_find_includes=
29369for ac_dir in $SEARCH_INCLUDE /usr/include;
29370 do
29371 if test -f "$ac_dir/GL/gl.h"; then
29372 ac_find_includes=$ac_dir
29373 break
29374 fi
29375 done
29376
29377 if test "$ac_find_includes" != "" ; then
29378 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29379echo "${ECHO_T}found in $ac_find_includes" >&6
29380
29381 if test "x$ac_find_includes" = "x/usr/include"; then
29382 ac_path_to_include=""
29383 else
29384 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29385 result=$?
29386 if test $result = 0; then
29387 ac_path_to_include=""
29388 else
29389 ac_path_to_include=" -I$ac_find_includes"
29390 fi
29391 fi
29392
29393 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29394 fi
29395
29396 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29397 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29398echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29399if test "${ac_cv_header_GL_gl_h+set}" = set; then
29400 echo $ECHO_N "(cached) $ECHO_C" >&6
29401fi
29402echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29403echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29404else
29405 # Is the header compilable?
29406echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29407echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29408cat >conftest.$ac_ext <<_ACEOF
29409/* confdefs.h. */
29410_ACEOF
29411cat confdefs.h >>conftest.$ac_ext
29412cat >>conftest.$ac_ext <<_ACEOF
29413/* end confdefs.h. */
29414$ac_includes_default
29415#include <GL/gl.h>
29416_ACEOF
29417rm -f conftest.$ac_objext
29418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29419 (eval $ac_compile) 2>conftest.er1
a848cd7e 29420 ac_status=$?
ac1cb8d3
VS
29421 grep -v '^ *+' conftest.er1 >conftest.err
29422 rm -f conftest.er1
29423 cat conftest.err >&5
a848cd7e
SC
29424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); } &&
fb00f58d
JS
29426 { ac_try='test -z "$ac_c_werror_flag"
29427 || test ! -s conftest.err'
ac1cb8d3
VS
29428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29429 (eval $ac_try) 2>&5
29430 ac_status=$?
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); }; } &&
29433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29435 (eval $ac_try) 2>&5
29436 ac_status=$?
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); }; }; then
29439 ac_header_compiler=yes
29440else
29441 echo "$as_me: failed program was:" >&5
29442sed 's/^/| /' conftest.$ac_ext >&5
29443
29444ac_header_compiler=no
29445fi
ac1cb8d3 29446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29447echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29448echo "${ECHO_T}$ac_header_compiler" >&6
29449
29450# Is the header present?
29451echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29452echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29453cat >conftest.$ac_ext <<_ACEOF
29454/* confdefs.h. */
29455_ACEOF
29456cat confdefs.h >>conftest.$ac_ext
29457cat >>conftest.$ac_ext <<_ACEOF
29458/* end confdefs.h. */
29459#include <GL/gl.h>
29460_ACEOF
29461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29463 ac_status=$?
29464 grep -v '^ *+' conftest.er1 >conftest.err
29465 rm -f conftest.er1
29466 cat conftest.err >&5
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); } >/dev/null; then
29469 if test -s conftest.err; then
29470 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29472 else
29473 ac_cpp_err=
29474 fi
29475else
29476 ac_cpp_err=yes
29477fi
29478if test -z "$ac_cpp_err"; then
29479 ac_header_preproc=yes
29480else
29481 echo "$as_me: failed program was:" >&5
29482sed 's/^/| /' conftest.$ac_ext >&5
29483
29484 ac_header_preproc=no
29485fi
29486rm -f conftest.err conftest.$ac_ext
29487echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29488echo "${ECHO_T}$ac_header_preproc" >&6
29489
29490# So? What about this header?
ac1cb8d3
VS
29491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29492 yes:no: )
a848cd7e
SC
29493 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29494echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29495 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29496echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29497 ac_header_preproc=yes
a848cd7e 29498 ;;
ac1cb8d3 29499 no:yes:* )
a848cd7e
SC
29500 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29501echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29502 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29503echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29504 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29505echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29506 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29507echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29508 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29509echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29510 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29511echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29512 (
29513 cat <<\_ASBOX
ac1cb8d3
VS
29514## ----------------------------------------- ##
29515## Report this to wx-dev@lists.wxwidgets.org ##
29516## ----------------------------------------- ##
a848cd7e
SC
29517_ASBOX
29518 ) |
29519 sed "s/^/$as_me: WARNING: /" >&2
29520 ;;
29521esac
29522echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29523echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29524if test "${ac_cv_header_GL_gl_h+set}" = set; then
29525 echo $ECHO_N "(cached) $ECHO_C" >&6
29526else
29527 ac_cv_header_GL_gl_h=$ac_header_preproc
29528fi
29529echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29530echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29531
29532fi
29533if test $ac_cv_header_GL_gl_h = yes; then
29534
29535 found_gl=0
29536
29537 echo "$as_me:$LINENO: checking for -lGL" >&5
29538echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29539
29540ac_find_libraries=
29541for ac_dir in $SEARCH_LIB /usr/lib;
29542 do
29543 for ac_extension in a so sl dylib; do
29544 if test -f "$ac_dir/libGL.$ac_extension"; then
29545 ac_find_libraries=$ac_dir
29546 break 2
29547 fi
29548 done
29549 done
29550
29551 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29552 echo "$as_me:$LINENO: result: yes" >&5
29553echo "${ECHO_T}yes" >&6
29554
a848cd7e
SC
29555
29556 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29557 result=$?
29558 if test $result = 0; then
29559 ac_path_to_link=""
29560 else
29561 ac_path_to_link=" -L$ac_find_libraries"
29562 fi
29563
29564 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29565 LDFLAGS_GL="$ac_path_to_link"
29566 fi
29567
69120ee4
VZ
29568 echo "$as_me:$LINENO: checking for -lGLU" >&5
29569echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29570
29571ac_find_libraries=
29572for ac_dir in $SEARCH_LIB /usr/lib;
29573 do
29574 for ac_extension in a so sl dylib; do
29575 if test -f "$ac_dir/libGLU.$ac_extension"; then
29576 ac_find_libraries=$ac_dir
29577 break 2
29578 fi
29579 done
29580 done
29581
29582 if test "$ac_find_libraries" != "" ; then
29583
29584 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29585 result=$?
29586 if test $result = 0; then
29587 ac_path_to_link=""
29588 else
29589 ac_path_to_link=" -L$ac_find_libraries"
29590 fi
29591
29592 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29593 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29594 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29595 fi
29596
29597 found_gl=1
29598 OPENGL_LIBS="-lGL -lGLU"
29599 echo "$as_me:$LINENO: result: yes" >&5
29600echo "${ECHO_T}yes" >&6
69120ee4
VZ
29601 else
29602 echo "$as_me:$LINENO: result: no" >&5
29603echo "${ECHO_T}no" >&6
a848cd7e 29604 fi
69120ee4
VZ
29605 else
29606 echo "$as_me:$LINENO: result: no" >&5
29607echo "${ECHO_T}no" >&6
a848cd7e
SC
29608 fi
29609
29610 if test "$found_gl" != 1; then
a848cd7e
SC
29611 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29612echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29613
29614ac_find_libraries=
29615for ac_dir in $SEARCH_LIB /usr/lib;
29616 do
29617 for ac_extension in a so sl dylib; do
29618 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29619 ac_find_libraries=$ac_dir
29620 break 2
29621 fi
29622 done
29623 done
29624
29625 if test "$ac_find_libraries" != "" ; then
29626
29627 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29628 result=$?
29629 if test $result = 0; then
29630 ac_path_to_link=""
29631 else
29632 ac_path_to_link=" -L$ac_find_libraries"
29633 fi
29634
29635 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29636 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29637 echo "$as_me:$LINENO: result: yes" >&5
29638echo "${ECHO_T}yes" >&6
29639 else
29640 echo "$as_me:$LINENO: result: no" >&5
29641echo "${ECHO_T}no" >&6
29642 fi
29643 fi
29644
29645fi
29646
29647
29648
29649 if test "x$OPENGL_LIBS" = "x"; then
29650 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29651echo "$as_me: error: OpenGL libraries not available" >&2;}
29652 { (exit 1); exit 1; }; }
29653 fi
29654 fi
29655
29656 if test "$wxUSE_OPENGL" = "yes"; then
29657 USE_OPENGL=1
29658 cat >>confdefs.h <<\_ACEOF
29659#define wxUSE_OPENGL 1
29660_ACEOF
29661
29662 cat >>confdefs.h <<\_ACEOF
29663#define wxUSE_GLCANVAS 1
29664_ACEOF
29665
29666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29667 fi
29668fi
29669
a848cd7e
SC
29670
29671if test -n "$TOOLKIT" ; then
29672 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29673fi
29674
a848cd7e
SC
29675
29676
29677if test "$wxUSE_SHARED" = "yes"; then
29678 case "${host}" in
29679 *-pc-msdosdjgpp )
29680 wxUSE_SHARED=no
29681 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29682echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29683 ;;
29684 esac
29685fi
29686
a848cd7e 29687if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29688
29689
29690 found_versioning=no
29691
29692
29693 if test $found_versioning = no ; then
29694 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29695echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29696if test "${wx_cv_version_script+set}" = set; then
29697 echo $ECHO_N "(cached) $ECHO_C" >&6
29698else
29699
29700 echo "VER_1 { *; };" >conftest.sym
29701 echo "int main() { return 0; }" >conftest.cpp
29702
29703 if { ac_try='
29704 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29705 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29707 (eval $ac_try) 2>&5
29708 ac_status=$?
29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710 (exit $ac_status); }; } ; then
29711 if test -s conftest.stderr ; then
29712 wx_cv_version_script=no
29713 else
29714 wx_cv_version_script=yes
29715 fi
29716 else
29717 wx_cv_version_script=no
29718 fi
e5d4b470
MW
29719
29720 if test $wx_cv_version_script = yes
29721 then
29722 echo "struct B { virtual ~B() { } }; \
29723 struct D : public B { }; \
29724 void F() { D d; }" > conftest.cpp
29725
29726 if { ac_try='
29727 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29728 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730 (eval $ac_try) 2>&5
29731 ac_status=$?
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); }; } &&
29734 { ac_try='
29735 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29736 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738 (eval $ac_try) 2>&5
29739 ac_status=$?
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); }; }
29742 then
29743 if { ac_try='
29744 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29745 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29747 (eval $ac_try) 2>&5
29748 ac_status=$?
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); }; }
29751 then
29752 wx_cv_version_script=yes
29753 else
29754 wx_cv_version_script=no
29755 fi
29756 fi
29757 fi
29758
a848cd7e 29759 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29760 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29761
29762fi
29763echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29764echo "${ECHO_T}$wx_cv_version_script" >&6
29765 if test $wx_cv_version_script = yes ; then
29766 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29767 fi
29768 fi
29769
29770
29771 case "${host}" in
29772 *-*-linux* | *-*-gnu* )
29773 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29774 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29775 ;;
29776
29777 *-*-solaris2* )
29778 if test "$GCC" = yes ; then
29779 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29780
29781 saveLdflags="$LDFLAGS"
29782 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29783 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29784echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29785 cat >conftest.$ac_ext <<_ACEOF
29786/* confdefs.h. */
29787_ACEOF
29788cat confdefs.h >>conftest.$ac_ext
29789cat >>conftest.$ac_ext <<_ACEOF
29790/* end confdefs.h. */
29791
29792int
29793main ()
29794{
29795
29796 ;
29797 return 0;
29798}
29799_ACEOF
29800rm -f conftest.$ac_objext conftest$ac_exeext
29801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29802 (eval $ac_link) 2>conftest.er1
a848cd7e 29803 ac_status=$?
ac1cb8d3
VS
29804 grep -v '^ *+' conftest.er1 >conftest.err
29805 rm -f conftest.er1
29806 cat conftest.err >&5
a848cd7e
SC
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); } &&
fb00f58d
JS
29809 { ac_try='test -z "$ac_c_werror_flag"
29810 || test ! -s conftest.err'
ac1cb8d3
VS
29811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29812 (eval $ac_try) 2>&5
29813 ac_status=$?
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); }; } &&
29816 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818 (eval $ac_try) 2>&5
29819 ac_status=$?
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; }; then
29822
29823 echo "$as_me:$LINENO: result: yes" >&5
29824echo "${ECHO_T}yes" >&6
29825 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29826 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29827
29828else
29829 echo "$as_me: failed program was:" >&5
29830sed 's/^/| /' conftest.$ac_ext >&5
29831
29832
29833 echo "$as_me:$LINENO: result: no" >&5
29834echo "${ECHO_T}no" >&6
29835 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29836echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29837 LDFLAGS="$saveLdflags -Wl,-R,/"
29838 cat >conftest.$ac_ext <<_ACEOF
29839/* confdefs.h. */
29840_ACEOF
29841cat confdefs.h >>conftest.$ac_ext
29842cat >>conftest.$ac_ext <<_ACEOF
29843/* end confdefs.h. */
29844
29845int
29846main ()
29847{
29848
29849 ;
29850 return 0;
29851}
29852_ACEOF
29853rm -f conftest.$ac_objext conftest$ac_exeext
29854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29855 (eval $ac_link) 2>conftest.er1
a848cd7e 29856 ac_status=$?
ac1cb8d3
VS
29857 grep -v '^ *+' conftest.er1 >conftest.err
29858 rm -f conftest.er1
29859 cat conftest.err >&5
a848cd7e
SC
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); } &&
fb00f58d
JS
29862 { ac_try='test -z "$ac_c_werror_flag"
29863 || test ! -s conftest.err'
ac1cb8d3
VS
29864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29865 (eval $ac_try) 2>&5
29866 ac_status=$?
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); }; } &&
29869 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29871 (eval $ac_try) 2>&5
29872 ac_status=$?
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); }; }; then
29875
ffa0583f 29876 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29877echo "${ECHO_T}yes" >&6
ffa0583f
RL
29878 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29879 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29880
a848cd7e
SC
29881else
29882 echo "$as_me: failed program was:" >&5
29883sed 's/^/| /' conftest.$ac_ext >&5
29884
29885
29886 echo "$as_me:$LINENO: result: no" >&5
29887echo "${ECHO_T}no" >&6
29888
29889fi
ac1cb8d3
VS
29890rm -f conftest.err conftest.$ac_objext \
29891 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29892
29893fi
ac1cb8d3
VS
29894rm -f conftest.err conftest.$ac_objext \
29895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29896 LDFLAGS="$saveLdflags"
29897 else
a848cd7e 29898 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29899 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29900 fi
29901 ;;
29902
29903 powerpc-*-darwin* )
0caebc27
MW
29904 install_name_tool=`which install_name_tool`
29905 if test "$install_name_tool" -a -x "$install_name_tool"; then
29906 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29907 cat <<EOF >change-install-names
a848cd7e
SC
29908#!/bin/sh
29909libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29910inst_cmd="install_name_tool "
29911for i in \${libnames} ; do
29912 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29913done
29914\${inst_cmd} \${3}
29915EOF
0caebc27
MW
29916 chmod +x change-install-names
29917 fi
a848cd7e
SC
29918 ;;
29919
29920 *-*-cygwin* | *-*-mingw32* )
29921 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29922 ;;
29923
81f90336
MW
29924 *-*-hpux* )
29925 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29926 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29927 ;;
29928
a848cd7e 29929 esac
ceec2216 29930
ffa0583f
RL
29931 if test $wxUSE_RPATH = "no"; then
29932 SAMPLES_RPATH_FLAG=''
29933 SAMPLES_RPATH_POSTLINK=''
29934 WXCONFIG_RPATH=''
29935 fi
29936
29937 SHARED=1
29938
29939else
29940
ceec2216
RL
29941 config_linkage_component="-static"
29942 SHARED=0
ffa0583f 29943
ceec2216 29944fi
a848cd7e 29945
a848cd7e 29946
ceec2216
RL
29947UNICODE=0
29948lib_unicode_suffix=
29949WX_CHARTYPE="ansi"
29950if test "$wxUSE_UNICODE" = "yes"; then
29951 lib_unicode_suffix=u
29952 WX_CHARTYPE="unicode"
29953 UNICODE=1
a848cd7e
SC
29954fi
29955
ceec2216
RL
29956lib_debug_suffix=
29957WX_DEBUGTYPE="release"
29958DEBUG_FLAG=0
29959if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29960 lib_debug_suffix=d
29961 WX_DEBUGTYPE="debug"
29962 DEBUG_FLAG=1
29963fi
a848cd7e 29964
ceec2216
RL
29965WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29966WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29967
ceec2216
RL
29968DEBUG_INFO=0
29969if test "$wxUSE_DEBUG_INFO" = "yes"; then
29970 DEBUG_INFO=1
29971fi
a848cd7e 29972
ceec2216 29973WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29974
ceec2216 29975TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29976
ceec2216 29977TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29978
ceec2216
RL
29979if test "$cross_compiling" = "yes"; then
29980 HOST_SUFFIX="-$host_alias"
29981 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29982 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29983fi
29984
dd21ced8 29985WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29986WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29987
29988
29989
1d1af5ea
DE
29990if test "$wxUSE_COCOA" = 1; then
29991
29992
29993 ac_ext=c
29994ac_cpp='$CPP $CPPFLAGS'
29995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29997ac_compiler_gnu=$ac_cv_c_compiler_gnu
29998
29999ac_ext=m
30000
30001 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30002echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30003 cat >conftest.$ac_ext <<_ACEOF
30004/* confdefs.h. */
30005_ACEOF
30006cat confdefs.h >>conftest.$ac_ext
30007cat >>conftest.$ac_ext <<_ACEOF
30008/* end confdefs.h. */
30009#include <AppKit/NSEvent.h>
30010#include <CoreFoundation/CoreFoundation.h>
30011
30012int
30013main ()
30014{
30015
30016 ;
30017 return 0;
30018}
30019_ACEOF
30020rm -f conftest.$ac_objext
30021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30022 (eval $ac_compile) 2>conftest.er1
30023 ac_status=$?
30024 grep -v '^ *+' conftest.er1 >conftest.err
30025 rm -f conftest.er1
30026 cat conftest.err >&5
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); } &&
fb00f58d
JS
30029 { ac_try='test -z "$ac_c_werror_flag"
30030 || test ! -s conftest.err'
1d1af5ea
DE
30031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30032 (eval $ac_try) 2>&5
30033 ac_status=$?
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); }; } &&
30036 { ac_try='test -s conftest.$ac_objext'
30037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30038 (eval $ac_try) 2>&5
30039 ac_status=$?
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); }; }; then
30042 echo "$as_me:$LINENO: result: no" >&5
30043echo "${ECHO_T}no" >&6
30044else
30045 echo "$as_me: failed program was:" >&5
30046sed 's/^/| /' conftest.$ac_ext >&5
30047
30048echo "$as_me:$LINENO: result: yes" >&5
30049echo "${ECHO_T}yes" >&6
30050 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30051echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30052 cat >conftest.$ac_ext <<_ACEOF
30053/* confdefs.h. */
30054_ACEOF
30055cat confdefs.h >>conftest.$ac_ext
30056cat >>conftest.$ac_ext <<_ACEOF
30057/* end confdefs.h. */
30058#define __Point__ 1
30059#include <AppKit/NSEvent.h>
30060#include <CoreFoundation/CoreFoundation.h>
30061
30062int
30063main ()
30064{
30065
30066 ;
30067 return 0;
30068}
30069_ACEOF
30070rm -f conftest.$ac_objext
30071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30072 (eval $ac_compile) 2>conftest.er1
30073 ac_status=$?
30074 grep -v '^ *+' conftest.er1 >conftest.err
30075 rm -f conftest.er1
30076 cat conftest.err >&5
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); } &&
fb00f58d
JS
30079 { ac_try='test -z "$ac_c_werror_flag"
30080 || test ! -s conftest.err'
1d1af5ea
DE
30081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30082 (eval $ac_try) 2>&5
30083 ac_status=$?
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); }; } &&
30086 { ac_try='test -s conftest.$ac_objext'
30087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30088 (eval $ac_try) 2>&5
30089 ac_status=$?
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); }; }; then
30092 echo "$as_me:$LINENO: result: yes" >&5
30093echo "${ECHO_T}yes" >&6
30094 cat >>confdefs.h <<\_ACEOF
30095#define __Point__ 1
30096_ACEOF
30097
30098
30099else
30100 echo "$as_me: failed program was:" >&5
30101sed 's/^/| /' conftest.$ac_ext >&5
30102
30103{ { echo "$as_me:$LINENO: error: no
30104See \`config.log' for more details." >&5
30105echo "$as_me: error: no
30106See \`config.log' for more details." >&2;}
30107 { (exit 1); exit 1; }; }
30108
30109fi
30110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30111
30112fi
30113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30114 ac_ext=c
30115ac_cpp='$CPP $CPPFLAGS'
30116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30118ac_compiler_gnu=$ac_cv_c_compiler_gnu
30119
30120fi
30121
a848cd7e 30122if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30123 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30124 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30125
a848cd7e 30126 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30127
30128 # Extract the first word of "Rez", so it can be a program name with args.
30129set dummy Rez; ac_word=$2
30130echo "$as_me:$LINENO: checking for $ac_word" >&5
30131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30132if test "${ac_cv_prog_RESCOMP+set}" = set; then
30133 echo $ECHO_N "(cached) $ECHO_C" >&6
30134else
30135 if test -n "$RESCOMP"; then
30136 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30137else
30138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30139for as_dir in $PATH
30140do
30141 IFS=$as_save_IFS
30142 test -z "$as_dir" && as_dir=.
30143 for ac_exec_ext in '' $ac_executable_extensions; do
30144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30145 ac_cv_prog_RESCOMP="Rez"
30146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30147 break 2
30148 fi
30149done
30150done
30151
30152 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30153fi
30154fi
30155RESCOMP=$ac_cv_prog_RESCOMP
30156if test -n "$RESCOMP"; then
30157 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30158echo "${ECHO_T}$RESCOMP" >&6
30159else
30160 echo "$as_me:$LINENO: result: no" >&5
30161echo "${ECHO_T}no" >&6
30162fi
30163
30164 # Extract the first word of "DeRez", so it can be a program name with args.
30165set dummy DeRez; ac_word=$2
30166echo "$as_me:$LINENO: checking for $ac_word" >&5
30167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30168if test "${ac_cv_prog_DEREZ+set}" = set; then
30169 echo $ECHO_N "(cached) $ECHO_C" >&6
30170else
30171 if test -n "$DEREZ"; then
30172 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30173else
30174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30175for as_dir in $PATH
30176do
30177 IFS=$as_save_IFS
30178 test -z "$as_dir" && as_dir=.
30179 for ac_exec_ext in '' $ac_executable_extensions; do
30180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30181 ac_cv_prog_DEREZ="DeRez"
30182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30183 break 2
30184 fi
30185done
30186done
30187
30188 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30189fi
30190fi
30191DEREZ=$ac_cv_prog_DEREZ
30192if test -n "$DEREZ"; then
30193 echo "$as_me:$LINENO: result: $DEREZ" >&5
30194echo "${ECHO_T}$DEREZ" >&6
30195else
30196 echo "$as_me:$LINENO: result: no" >&5
30197echo "${ECHO_T}no" >&6
30198fi
30199
30200 # Extract the first word of "SetFile", so it can be a program name with args.
30201set dummy SetFile; ac_word=$2
30202echo "$as_me:$LINENO: checking for $ac_word" >&5
30203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30204if test "${ac_cv_prog_SETFILE+set}" = set; then
30205 echo $ECHO_N "(cached) $ECHO_C" >&6
30206else
30207 if test -n "$SETFILE"; then
30208 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30209else
30210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30211for as_dir in $PATH
30212do
30213 IFS=$as_save_IFS
30214 test -z "$as_dir" && as_dir=.
30215 for ac_exec_ext in '' $ac_executable_extensions; do
30216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30217 ac_cv_prog_SETFILE="SetFile"
30218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30219 break 2
30220 fi
30221done
30222done
30223
30224 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30225fi
30226fi
30227SETFILE=$ac_cv_prog_SETFILE
30228if test -n "$SETFILE"; then
30229 echo "$as_me:$LINENO: result: $SETFILE" >&5
30230echo "${ECHO_T}$SETFILE" >&6
30231else
30232 echo "$as_me:$LINENO: result: no" >&5
30233echo "${ECHO_T}no" >&6
30234fi
30235
30236
30237 MACSETFILE="\$(SETFILE)"
30238
30239 if test "$wxUSE_MAC" = 1; then
1a79f136 30240 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30241
1a79f136 30242 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30243 else
30244 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30245 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30246 fi
30247else
ffa0583f
RL
30248 MACSETFILE="@true"
30249 MACRESWXCONFIG="@true"
a848cd7e
SC
30250
30251 if test "$wxUSE_PM" = 1; then
30252 MACRESCOMP="emxbind -ep"
30253 else
ffa0583f 30254 MACRESCOMP="@true"
a848cd7e
SC
30255 fi
30256fi
30257
30258
30259
30260echo "$as_me:$LINENO: checking for mode_t" >&5
30261echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30262if test "${ac_cv_type_mode_t+set}" = set; then
30263 echo $ECHO_N "(cached) $ECHO_C" >&6
30264else
30265 cat >conftest.$ac_ext <<_ACEOF
30266/* confdefs.h. */
30267_ACEOF
30268cat confdefs.h >>conftest.$ac_ext
30269cat >>conftest.$ac_ext <<_ACEOF
30270/* end confdefs.h. */
30271$ac_includes_default
30272int
30273main ()
30274{
30275if ((mode_t *) 0)
30276 return 0;
30277if (sizeof (mode_t))
30278 return 0;
30279 ;
30280 return 0;
30281}
30282_ACEOF
30283rm -f conftest.$ac_objext
30284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30285 (eval $ac_compile) 2>conftest.er1
a848cd7e 30286 ac_status=$?
ac1cb8d3
VS
30287 grep -v '^ *+' conftest.er1 >conftest.err
30288 rm -f conftest.er1
30289 cat conftest.err >&5
a848cd7e
SC
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); } &&
fb00f58d
JS
30292 { ac_try='test -z "$ac_c_werror_flag"
30293 || test ! -s conftest.err'
ac1cb8d3
VS
30294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30295 (eval $ac_try) 2>&5
30296 ac_status=$?
30297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298 (exit $ac_status); }; } &&
30299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30301 (eval $ac_try) 2>&5
30302 ac_status=$?
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; }; then
30305 ac_cv_type_mode_t=yes
30306else
30307 echo "$as_me: failed program was:" >&5
30308sed 's/^/| /' conftest.$ac_ext >&5
30309
30310ac_cv_type_mode_t=no
30311fi
ac1cb8d3 30312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30313fi
30314echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30315echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30316if test $ac_cv_type_mode_t = yes; then
30317 :
30318else
30319
30320cat >>confdefs.h <<_ACEOF
30321#define mode_t int
30322_ACEOF
30323
30324fi
30325
30326echo "$as_me:$LINENO: checking for off_t" >&5
30327echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30328if test "${ac_cv_type_off_t+set}" = set; then
30329 echo $ECHO_N "(cached) $ECHO_C" >&6
30330else
30331 cat >conftest.$ac_ext <<_ACEOF
30332/* confdefs.h. */
30333_ACEOF
30334cat confdefs.h >>conftest.$ac_ext
30335cat >>conftest.$ac_ext <<_ACEOF
30336/* end confdefs.h. */
30337$ac_includes_default
30338int
30339main ()
30340{
30341if ((off_t *) 0)
30342 return 0;
30343if (sizeof (off_t))
30344 return 0;
30345 ;
30346 return 0;
30347}
30348_ACEOF
30349rm -f conftest.$ac_objext
30350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30351 (eval $ac_compile) 2>conftest.er1
a848cd7e 30352 ac_status=$?
ac1cb8d3
VS
30353 grep -v '^ *+' conftest.er1 >conftest.err
30354 rm -f conftest.er1
30355 cat conftest.err >&5
a848cd7e
SC
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); } &&
fb00f58d
JS
30358 { ac_try='test -z "$ac_c_werror_flag"
30359 || test ! -s conftest.err'
ac1cb8d3
VS
30360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30361 (eval $ac_try) 2>&5
30362 ac_status=$?
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; } &&
30365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30367 (eval $ac_try) 2>&5
30368 ac_status=$?
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); }; }; then
30371 ac_cv_type_off_t=yes
30372else
30373 echo "$as_me: failed program was:" >&5
30374sed 's/^/| /' conftest.$ac_ext >&5
30375
30376ac_cv_type_off_t=no
30377fi
ac1cb8d3 30378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30379fi
30380echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30381echo "${ECHO_T}$ac_cv_type_off_t" >&6
30382if test $ac_cv_type_off_t = yes; then
30383 :
30384else
30385
30386cat >>confdefs.h <<_ACEOF
30387#define off_t long
30388_ACEOF
30389
30390fi
30391
30392echo "$as_me:$LINENO: checking for pid_t" >&5
30393echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30394if test "${ac_cv_type_pid_t+set}" = set; then
30395 echo $ECHO_N "(cached) $ECHO_C" >&6
30396else
30397 cat >conftest.$ac_ext <<_ACEOF
30398/* confdefs.h. */
30399_ACEOF
30400cat confdefs.h >>conftest.$ac_ext
30401cat >>conftest.$ac_ext <<_ACEOF
30402/* end confdefs.h. */
30403$ac_includes_default
30404int
30405main ()
30406{
30407if ((pid_t *) 0)
30408 return 0;
30409if (sizeof (pid_t))
30410 return 0;
30411 ;
30412 return 0;
30413}
30414_ACEOF
30415rm -f conftest.$ac_objext
30416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30417 (eval $ac_compile) 2>conftest.er1
a848cd7e 30418 ac_status=$?
ac1cb8d3
VS
30419 grep -v '^ *+' conftest.er1 >conftest.err
30420 rm -f conftest.er1
30421 cat conftest.err >&5
a848cd7e
SC
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); } &&
fb00f58d
JS
30424 { ac_try='test -z "$ac_c_werror_flag"
30425 || test ! -s conftest.err'
ac1cb8d3
VS
30426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30427 (eval $ac_try) 2>&5
30428 ac_status=$?
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); }; } &&
30431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433 (eval $ac_try) 2>&5
30434 ac_status=$?
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); }; }; then
30437 ac_cv_type_pid_t=yes
30438else
30439 echo "$as_me: failed program was:" >&5
30440sed 's/^/| /' conftest.$ac_ext >&5
30441
30442ac_cv_type_pid_t=no
30443fi
ac1cb8d3 30444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30445fi
30446echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30447echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30448if test $ac_cv_type_pid_t = yes; then
30449 :
30450else
30451
30452cat >>confdefs.h <<_ACEOF
30453#define pid_t int
30454_ACEOF
30455
30456fi
30457
30458echo "$as_me:$LINENO: checking for size_t" >&5
30459echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30460if test "${ac_cv_type_size_t+set}" = set; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30462else
30463 cat >conftest.$ac_ext <<_ACEOF
30464/* confdefs.h. */
30465_ACEOF
30466cat confdefs.h >>conftest.$ac_ext
30467cat >>conftest.$ac_ext <<_ACEOF
30468/* end confdefs.h. */
30469$ac_includes_default
30470int
30471main ()
30472{
30473if ((size_t *) 0)
30474 return 0;
30475if (sizeof (size_t))
30476 return 0;
30477 ;
30478 return 0;
30479}
30480_ACEOF
30481rm -f conftest.$ac_objext
30482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30483 (eval $ac_compile) 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); } &&
fb00f58d
JS
30490 { ac_try='test -z "$ac_c_werror_flag"
30491 || test ! -s conftest.err'
ac1cb8d3
VS
30492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30493 (eval $ac_try) 2>&5
30494 ac_status=$?
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); }; } &&
30497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30499 (eval $ac_try) 2>&5
30500 ac_status=$?
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); }; }; then
30503 ac_cv_type_size_t=yes
30504else
30505 echo "$as_me: failed program was:" >&5
30506sed 's/^/| /' conftest.$ac_ext >&5
30507
30508ac_cv_type_size_t=no
30509fi
ac1cb8d3 30510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30511fi
30512echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30513echo "${ECHO_T}$ac_cv_type_size_t" >&6
30514if test $ac_cv_type_size_t = yes; then
30515 :
30516else
30517
30518cat >>confdefs.h <<_ACEOF
30519#define size_t unsigned
30520_ACEOF
30521
30522fi
30523
30524echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30525echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30526if test "${ac_cv_type_uid_t+set}" = set; then
30527 echo $ECHO_N "(cached) $ECHO_C" >&6
30528else
30529 cat >conftest.$ac_ext <<_ACEOF
30530/* confdefs.h. */
30531_ACEOF
30532cat confdefs.h >>conftest.$ac_ext
30533cat >>conftest.$ac_ext <<_ACEOF
30534/* end confdefs.h. */
30535#include <sys/types.h>
30536
30537_ACEOF
30538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30539 $EGREP "uid_t" >/dev/null 2>&1; then
30540 ac_cv_type_uid_t=yes
30541else
30542 ac_cv_type_uid_t=no
30543fi
30544rm -f conftest*
30545
30546fi
30547echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30548echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30549if test $ac_cv_type_uid_t = no; then
30550
30551cat >>confdefs.h <<\_ACEOF
30552#define uid_t int
30553_ACEOF
30554
30555
30556cat >>confdefs.h <<\_ACEOF
30557#define gid_t int
30558_ACEOF
30559
30560fi
30561
30562
d51253e8
RL
30563echo "$as_me:$LINENO: checking for ssize_t" >&5
30564echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30565if test "${ac_cv_type_ssize_t+set}" = set; then
30566 echo $ECHO_N "(cached) $ECHO_C" >&6
30567else
30568 cat >conftest.$ac_ext <<_ACEOF
30569/* confdefs.h. */
30570_ACEOF
30571cat confdefs.h >>conftest.$ac_ext
30572cat >>conftest.$ac_ext <<_ACEOF
30573/* end confdefs.h. */
30574$ac_includes_default
30575int
30576main ()
30577{
30578if ((ssize_t *) 0)
30579 return 0;
30580if (sizeof (ssize_t))
30581 return 0;
30582 ;
30583 return 0;
30584}
30585_ACEOF
30586rm -f conftest.$ac_objext
30587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30588 (eval $ac_compile) 2>conftest.er1
30589 ac_status=$?
30590 grep -v '^ *+' conftest.er1 >conftest.err
30591 rm -f conftest.er1
30592 cat conftest.err >&5
30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594 (exit $ac_status); } &&
fb00f58d
JS
30595 { ac_try='test -z "$ac_c_werror_flag"
30596 || test ! -s conftest.err'
d51253e8
RL
30597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30598 (eval $ac_try) 2>&5
30599 ac_status=$?
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); }; } &&
30602 { ac_try='test -s conftest.$ac_objext'
30603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30604 (eval $ac_try) 2>&5
30605 ac_status=$?
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); }; }; then
30608 ac_cv_type_ssize_t=yes
30609else
30610 echo "$as_me: failed program was:" >&5
30611sed 's/^/| /' conftest.$ac_ext >&5
30612
30613ac_cv_type_ssize_t=no
30614fi
30615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30616fi
30617echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30618echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30619if test $ac_cv_type_ssize_t = yes; then
30620
30621cat >>confdefs.h <<_ACEOF
30622#define HAVE_SSIZE_T 1
30623_ACEOF
30624
30625
30626fi
30627
30628
a848cd7e
SC
30629
30630
30631ac_ext=cc
30632ac_cpp='$CXXCPP $CPPFLAGS'
30633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30636
30637echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30638echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30639if test "${wx_cv_size_t_is_uint+set}" = set; then
30640 echo $ECHO_N "(cached) $ECHO_C" >&6
30641else
30642
30643 cat >conftest.$ac_ext <<_ACEOF
30644/* confdefs.h. */
30645_ACEOF
30646cat confdefs.h >>conftest.$ac_ext
30647cat >>conftest.$ac_ext <<_ACEOF
30648/* end confdefs.h. */
30649#include <stddef.h>
30650int
30651main ()
30652{
30653
30654 return 0; }
30655
30656 struct Foo { void foo(size_t); void foo(unsigned int); };
30657
30658 int bar() {
30659
30660 ;
30661 return 0;
30662}
30663_ACEOF
30664rm -f conftest.$ac_objext
30665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30666 (eval $ac_compile) 2>conftest.er1
a848cd7e 30667 ac_status=$?
ac1cb8d3
VS
30668 grep -v '^ *+' conftest.er1 >conftest.err
30669 rm -f conftest.er1
30670 cat conftest.err >&5
a848cd7e
SC
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); } &&
fb00f58d
JS
30673 { ac_try='test -z "$ac_cxx_werror_flag"
30674 || test ! -s conftest.err'
ac1cb8d3
VS
30675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30676 (eval $ac_try) 2>&5
30677 ac_status=$?
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; } &&
30680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30682 (eval $ac_try) 2>&5
30683 ac_status=$?
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); }; }; then
30686 wx_cv_size_t_is_uint=no
30687else
30688 echo "$as_me: failed program was:" >&5
30689sed 's/^/| /' conftest.$ac_ext >&5
30690
30691wx_cv_size_t_is_uint=yes
30692
30693fi
ac1cb8d3 30694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30695
30696
30697fi
30698echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30699echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30700
30701if test "$wx_cv_size_t_is_uint" = "yes"; then
30702 cat >>confdefs.h <<\_ACEOF
30703#define wxSIZE_T_IS_UINT 1
30704_ACEOF
30705
30706else
30707 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30708echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30709if test "${wx_cv_size_t_is_ulong+set}" = set; then
30710 echo $ECHO_N "(cached) $ECHO_C" >&6
30711else
30712 cat >conftest.$ac_ext <<_ACEOF
30713/* confdefs.h. */
30714_ACEOF
30715cat confdefs.h >>conftest.$ac_ext
30716cat >>conftest.$ac_ext <<_ACEOF
30717/* end confdefs.h. */
30718#include <stddef.h>
30719int
30720main ()
30721{
30722
30723 return 0; }
30724
30725 struct Foo { void foo(size_t); void foo(unsigned long); };
30726
30727 int bar() {
30728
30729 ;
30730 return 0;
30731}
30732_ACEOF
30733rm -f conftest.$ac_objext
30734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30735 (eval $ac_compile) 2>conftest.er1
a848cd7e 30736 ac_status=$?
ac1cb8d3
VS
30737 grep -v '^ *+' conftest.er1 >conftest.err
30738 rm -f conftest.er1
30739 cat conftest.err >&5
a848cd7e
SC
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); } &&
fb00f58d
JS
30742 { ac_try='test -z "$ac_cxx_werror_flag"
30743 || test ! -s conftest.err'
ac1cb8d3
VS
30744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30745 (eval $ac_try) 2>&5
30746 ac_status=$?
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); }; } &&
30749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751 (eval $ac_try) 2>&5
30752 ac_status=$?
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); }; }; then
30755 wx_cv_size_t_is_ulong=no
30756else
30757 echo "$as_me: failed program was:" >&5
30758sed 's/^/| /' conftest.$ac_ext >&5
30759
30760wx_cv_size_t_is_ulong=yes
30761
30762fi
ac1cb8d3 30763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30764
30765fi
30766echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30767echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30768
30769 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30770 cat >>confdefs.h <<\_ACEOF
30771#define wxSIZE_T_IS_ULONG 1
30772_ACEOF
30773
30774 fi
30775fi
30776
30777ac_ext=c
30778ac_cpp='$CPP $CPPFLAGS'
30779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30781ac_compiler_gnu=$ac_cv_c_compiler_gnu
30782
30783
30784
30785echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30786echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30787if test "${wx_cv_struct_pw_gecos+set}" = set; then
30788 echo $ECHO_N "(cached) $ECHO_C" >&6
30789else
30790
30791 cat >conftest.$ac_ext <<_ACEOF
30792/* confdefs.h. */
30793_ACEOF
30794cat confdefs.h >>conftest.$ac_ext
30795cat >>conftest.$ac_ext <<_ACEOF
30796/* end confdefs.h. */
30797#include <pwd.h>
30798int
30799main ()
30800{
30801
30802 char *p;
30803 struct passwd *pw;
30804 p = pw->pw_gecos;
30805
30806 ;
30807 return 0;
30808}
30809_ACEOF
30810rm -f conftest.$ac_objext
30811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30812 (eval $ac_compile) 2>conftest.er1
a848cd7e 30813 ac_status=$?
ac1cb8d3
VS
30814 grep -v '^ *+' conftest.er1 >conftest.err
30815 rm -f conftest.er1
30816 cat conftest.err >&5
a848cd7e
SC
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); } &&
fb00f58d
JS
30819 { ac_try='test -z "$ac_c_werror_flag"
30820 || test ! -s conftest.err'
ac1cb8d3
VS
30821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30822 (eval $ac_try) 2>&5
30823 ac_status=$?
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 (exit $ac_status); }; } &&
30826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30828 (eval $ac_try) 2>&5
30829 ac_status=$?
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; }; then
30832
30833 wx_cv_struct_pw_gecos=yes
30834
30835else
30836 echo "$as_me: failed program was:" >&5
30837sed 's/^/| /' conftest.$ac_ext >&5
30838
30839
30840 wx_cv_struct_pw_gecos=no
30841
30842
30843fi
ac1cb8d3 30844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30845
30846
30847fi
30848echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30849echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30850
30851if test "$wx_cv_struct_pw_gecos" = "yes"; then
30852 cat >>confdefs.h <<\_ACEOF
30853#define HAVE_PW_GECOS 1
30854_ACEOF
30855
30856fi
30857
30858
47a7e797 30859if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
30860 cat >>confdefs.h <<\_ACEOF
30861#define wxUSE_WCHAR_T 1
30862_ACEOF
30863
30864
30865 WCSLEN_FOUND=0
30866 WCHAR_LINK=
30867
30868for ac_func in wcslen
30869do
30870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30871echo "$as_me:$LINENO: checking for $ac_func" >&5
30872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30873if eval "test \"\${$as_ac_var+set}\" = set"; then
30874 echo $ECHO_N "(cached) $ECHO_C" >&6
30875else
30876 cat >conftest.$ac_ext <<_ACEOF
30877/* confdefs.h. */
30878_ACEOF
30879cat confdefs.h >>conftest.$ac_ext
30880cat >>conftest.$ac_ext <<_ACEOF
30881/* end confdefs.h. */
ac1cb8d3
VS
30882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30884#define $ac_func innocuous_$ac_func
30885
a848cd7e
SC
30886/* System header to define __stub macros and hopefully few prototypes,
30887 which can conflict with char $ac_func (); below.
30888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30889 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30890
a848cd7e
SC
30891#ifdef __STDC__
30892# include <limits.h>
30893#else
30894# include <assert.h>
30895#endif
ac1cb8d3
VS
30896
30897#undef $ac_func
30898
a848cd7e
SC
30899/* Override any gcc2 internal prototype to avoid an error. */
30900#ifdef __cplusplus
30901extern "C"
30902{
30903#endif
30904/* We use char because int might match the return type of a gcc2
30905 builtin and then its argument prototype would still apply. */
30906char $ac_func ();
30907/* The GNU C library defines this for functions which it implements
30908 to always fail with ENOSYS. Some functions are actually named
30909 something starting with __ and the normal name is an alias. */
30910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30911choke me
30912#else
30913char (*f) () = $ac_func;
30914#endif
30915#ifdef __cplusplus
30916}
30917#endif
30918
30919int
30920main ()
30921{
30922return f != $ac_func;
30923 ;
30924 return 0;
30925}
30926_ACEOF
30927rm -f conftest.$ac_objext conftest$ac_exeext
30928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30929 (eval $ac_link) 2>conftest.er1
a848cd7e 30930 ac_status=$?
ac1cb8d3
VS
30931 grep -v '^ *+' conftest.er1 >conftest.err
30932 rm -f conftest.er1
30933 cat conftest.err >&5
a848cd7e
SC
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); } &&
fb00f58d
JS
30936 { ac_try='test -z "$ac_c_werror_flag"
30937 || test ! -s conftest.err'
ac1cb8d3
VS
30938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30939 (eval $ac_try) 2>&5
30940 ac_status=$?
30941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942 (exit $ac_status); }; } &&
30943 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30945 (eval $ac_try) 2>&5
30946 ac_status=$?
30947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948 (exit $ac_status); }; }; then
30949 eval "$as_ac_var=yes"
30950else
30951 echo "$as_me: failed program was:" >&5
30952sed 's/^/| /' conftest.$ac_ext >&5
30953
30954eval "$as_ac_var=no"
30955fi
ac1cb8d3
VS
30956rm -f conftest.err conftest.$ac_objext \
30957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30958fi
30959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30960echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30961if test `eval echo '${'$as_ac_var'}'` = yes; then
30962 cat >>confdefs.h <<_ACEOF
30963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30964_ACEOF
30965 WCSLEN_FOUND=1
30966fi
30967done
30968
30969
30970 if test "$WCSLEN_FOUND" = 0; then
30971 if test "$TOOLKIT" = "MSW"; then
30972 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30973echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30974if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30975 echo $ECHO_N "(cached) $ECHO_C" >&6
30976else
30977 ac_check_lib_save_LIBS=$LIBS
30978LIBS="-lmsvcrt $LIBS"
30979cat >conftest.$ac_ext <<_ACEOF
30980/* confdefs.h. */
30981_ACEOF
30982cat confdefs.h >>conftest.$ac_ext
30983cat >>conftest.$ac_ext <<_ACEOF
30984/* end confdefs.h. */
30985
30986/* Override any gcc2 internal prototype to avoid an error. */
30987#ifdef __cplusplus
30988extern "C"
30989#endif
30990/* We use char because int might match the return type of a gcc2
30991 builtin and then its argument prototype would still apply. */
30992char wcslen ();
30993int
30994main ()
30995{
30996wcslen ();
30997 ;
30998 return 0;
30999}
31000_ACEOF
31001rm -f conftest.$ac_objext conftest$ac_exeext
31002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31003 (eval $ac_link) 2>conftest.er1
a848cd7e 31004 ac_status=$?
ac1cb8d3
VS
31005 grep -v '^ *+' conftest.er1 >conftest.err
31006 rm -f conftest.er1
31007 cat conftest.err >&5
a848cd7e
SC
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); } &&
fb00f58d
JS
31010 { ac_try='test -z "$ac_c_werror_flag"
31011 || test ! -s conftest.err'
ac1cb8d3
VS
31012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31013 (eval $ac_try) 2>&5
31014 ac_status=$?
31015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016 (exit $ac_status); }; } &&
31017 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31019 (eval $ac_try) 2>&5
31020 ac_status=$?
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); }; }; then
31023 ac_cv_lib_msvcrt_wcslen=yes
31024else
31025 echo "$as_me: failed program was:" >&5
31026sed 's/^/| /' conftest.$ac_ext >&5
31027
31028ac_cv_lib_msvcrt_wcslen=no
31029fi
ac1cb8d3
VS
31030rm -f conftest.err conftest.$ac_objext \
31031 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31032LIBS=$ac_check_lib_save_LIBS
31033fi
31034echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31035echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31036if test $ac_cv_lib_msvcrt_wcslen = yes; then
31037 WCHAR_OK=1
31038fi
31039
31040 else
31041 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31042echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31043if test "${ac_cv_lib_w_wcslen+set}" = set; then
31044 echo $ECHO_N "(cached) $ECHO_C" >&6
31045else
31046 ac_check_lib_save_LIBS=$LIBS
31047LIBS="-lw $LIBS"
31048cat >conftest.$ac_ext <<_ACEOF
31049/* confdefs.h. */
31050_ACEOF
31051cat confdefs.h >>conftest.$ac_ext
31052cat >>conftest.$ac_ext <<_ACEOF
31053/* end confdefs.h. */
31054
31055/* Override any gcc2 internal prototype to avoid an error. */
31056#ifdef __cplusplus
31057extern "C"
31058#endif
31059/* We use char because int might match the return type of a gcc2
31060 builtin and then its argument prototype would still apply. */
31061char wcslen ();
31062int
31063main ()
31064{
31065wcslen ();
31066 ;
31067 return 0;
31068}
31069_ACEOF
31070rm -f conftest.$ac_objext conftest$ac_exeext
31071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31072 (eval $ac_link) 2>conftest.er1
a848cd7e 31073 ac_status=$?
ac1cb8d3
VS
31074 grep -v '^ *+' conftest.er1 >conftest.err
31075 rm -f conftest.er1
31076 cat conftest.err >&5
a848cd7e
SC
31077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31078 (exit $ac_status); } &&
fb00f58d
JS
31079 { ac_try='test -z "$ac_c_werror_flag"
31080 || test ! -s conftest.err'
ac1cb8d3
VS
31081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31082 (eval $ac_try) 2>&5
31083 ac_status=$?
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); }; } &&
31086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31088 (eval $ac_try) 2>&5
31089 ac_status=$?
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); }; }; then
31092 ac_cv_lib_w_wcslen=yes
31093else
31094 echo "$as_me: failed program was:" >&5
31095sed 's/^/| /' conftest.$ac_ext >&5
31096
31097ac_cv_lib_w_wcslen=no
31098fi
ac1cb8d3
VS
31099rm -f conftest.err conftest.$ac_objext \
31100 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31101LIBS=$ac_check_lib_save_LIBS
31102fi
31103echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31104echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31105if test $ac_cv_lib_w_wcslen = yes; then
31106
31107 WCHAR_LINK=" -lw"
31108 WCSLEN_FOUND=1
31109
31110fi
31111
31112 fi
31113 fi
31114
31115 if test "$WCSLEN_FOUND" = 1; then
31116 cat >>confdefs.h <<\_ACEOF
31117#define HAVE_WCSLEN 1
31118_ACEOF
31119
31120 fi
31121
81f90336 31122 if test "$USE_HPUX" = 1; then
473276a9
VS
31123 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31124 fi
31125
a848cd7e
SC
31126
31127for ac_func in wcsrtombs
31128do
31129as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31130echo "$as_me:$LINENO: checking for $ac_func" >&5
31131echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31132if eval "test \"\${$as_ac_var+set}\" = set"; then
31133 echo $ECHO_N "(cached) $ECHO_C" >&6
31134else
31135 cat >conftest.$ac_ext <<_ACEOF
31136/* confdefs.h. */
31137_ACEOF
31138cat confdefs.h >>conftest.$ac_ext
31139cat >>conftest.$ac_ext <<_ACEOF
31140/* end confdefs.h. */
ac1cb8d3
VS
31141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31143#define $ac_func innocuous_$ac_func
31144
a848cd7e
SC
31145/* System header to define __stub macros and hopefully few prototypes,
31146 which can conflict with char $ac_func (); below.
31147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31148 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31149
a848cd7e
SC
31150#ifdef __STDC__
31151# include <limits.h>
31152#else
31153# include <assert.h>
31154#endif
ac1cb8d3
VS
31155
31156#undef $ac_func
31157
a848cd7e
SC
31158/* Override any gcc2 internal prototype to avoid an error. */
31159#ifdef __cplusplus
31160extern "C"
31161{
31162#endif
31163/* We use char because int might match the return type of a gcc2
31164 builtin and then its argument prototype would still apply. */
31165char $ac_func ();
31166/* The GNU C library defines this for functions which it implements
31167 to always fail with ENOSYS. Some functions are actually named
31168 something starting with __ and the normal name is an alias. */
31169#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31170choke me
31171#else
31172char (*f) () = $ac_func;
31173#endif
31174#ifdef __cplusplus
31175}
31176#endif
31177
31178int
31179main ()
31180{
31181return f != $ac_func;
31182 ;
31183 return 0;
31184}
31185_ACEOF
31186rm -f conftest.$ac_objext conftest$ac_exeext
31187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31188 (eval $ac_link) 2>conftest.er1
a848cd7e 31189 ac_status=$?
ac1cb8d3
VS
31190 grep -v '^ *+' conftest.er1 >conftest.err
31191 rm -f conftest.er1
31192 cat conftest.err >&5
a848cd7e
SC
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); } &&
fb00f58d
JS
31195 { ac_try='test -z "$ac_c_werror_flag"
31196 || test ! -s conftest.err'
ac1cb8d3
VS
31197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198 (eval $ac_try) 2>&5
31199 ac_status=$?
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); }; } &&
31202 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31204 (eval $ac_try) 2>&5
31205 ac_status=$?
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; }; then
31208 eval "$as_ac_var=yes"
31209else
31210 echo "$as_me: failed program was:" >&5
31211sed 's/^/| /' conftest.$ac_ext >&5
31212
31213eval "$as_ac_var=no"
31214fi
ac1cb8d3
VS
31215rm -f conftest.err conftest.$ac_objext \
31216 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31217fi
31218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31219echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31220if test `eval echo '${'$as_ac_var'}'` = yes; then
31221 cat >>confdefs.h <<_ACEOF
31222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31223_ACEOF
31224
31225fi
31226done
31227
31228else
31229 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31230echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31231fi
31232
31233
31234
31235ac_ext=cc
31236ac_cpp='$CXXCPP $CPPFLAGS'
31237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31240
31241
31242
31243for ac_func in vsnprintf
31244do
31245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31246echo "$as_me:$LINENO: checking for $ac_func" >&5
31247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31248if eval "test \"\${$as_ac_var+set}\" = set"; then
31249 echo $ECHO_N "(cached) $ECHO_C" >&6
31250else
31251 cat >conftest.$ac_ext <<_ACEOF
31252/* confdefs.h. */
31253_ACEOF
31254cat confdefs.h >>conftest.$ac_ext
31255cat >>conftest.$ac_ext <<_ACEOF
31256/* end confdefs.h. */
ac1cb8d3
VS
31257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31259#define $ac_func innocuous_$ac_func
31260
a848cd7e
SC
31261/* System header to define __stub macros and hopefully few prototypes,
31262 which can conflict with char $ac_func (); below.
31263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31264 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31265
a848cd7e
SC
31266#ifdef __STDC__
31267# include <limits.h>
31268#else
31269# include <assert.h>
31270#endif
ac1cb8d3
VS
31271
31272#undef $ac_func
31273
a848cd7e
SC
31274/* Override any gcc2 internal prototype to avoid an error. */
31275#ifdef __cplusplus
31276extern "C"
31277{
31278#endif
31279/* We use char because int might match the return type of a gcc2
31280 builtin and then its argument prototype would still apply. */
31281char $ac_func ();
31282/* The GNU C library defines this for functions which it implements
31283 to always fail with ENOSYS. Some functions are actually named
31284 something starting with __ and the normal name is an alias. */
31285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31286choke me
31287#else
31288char (*f) () = $ac_func;
31289#endif
31290#ifdef __cplusplus
31291}
31292#endif
31293
31294int
31295main ()
31296{
31297return f != $ac_func;
31298 ;
31299 return 0;
31300}
31301_ACEOF
31302rm -f conftest.$ac_objext conftest$ac_exeext
31303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31304 (eval $ac_link) 2>conftest.er1
a848cd7e 31305 ac_status=$?
ac1cb8d3
VS
31306 grep -v '^ *+' conftest.er1 >conftest.err
31307 rm -f conftest.er1
31308 cat conftest.err >&5
a848cd7e
SC
31309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); } &&
fb00f58d
JS
31311 { ac_try='test -z "$ac_cxx_werror_flag"
31312 || test ! -s conftest.err'
ac1cb8d3
VS
31313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314 (eval $ac_try) 2>&5
31315 ac_status=$?
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); }; } &&
31318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31320 (eval $ac_try) 2>&5
31321 ac_status=$?
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); }; }; then
31324 eval "$as_ac_var=yes"
31325else
31326 echo "$as_me: failed program was:" >&5
31327sed 's/^/| /' conftest.$ac_ext >&5
31328
31329eval "$as_ac_var=no"
31330fi
ac1cb8d3
VS
31331rm -f conftest.err conftest.$ac_objext \
31332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31333fi
31334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31336if test `eval echo '${'$as_ac_var'}'` = yes; then
31337 cat >>confdefs.h <<_ACEOF
31338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31339_ACEOF
31340
31341fi
31342done
31343
31344
31345if test "$ac_cv_func_vsnprintf" = "yes"; then
31346 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31347echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31348if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31349 echo $ECHO_N "(cached) $ECHO_C" >&6
31350else
31351
31352 cat >conftest.$ac_ext <<_ACEOF
31353/* confdefs.h. */
31354_ACEOF
31355cat confdefs.h >>conftest.$ac_ext
31356cat >>conftest.$ac_ext <<_ACEOF
31357/* end confdefs.h. */
31358
31359 #include <stdio.h>
31360 #include <stdarg.h>
31361
31362int
31363main ()
31364{
31365
31366 char *buf;
31367 va_list ap;
31368 vsnprintf(buf, 10u, "%s", ap);
31369
31370 ;
31371 return 0;
31372}
31373_ACEOF
31374rm -f conftest.$ac_objext
31375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31376 (eval $ac_compile) 2>conftest.er1
a848cd7e 31377 ac_status=$?
ac1cb8d3
VS
31378 grep -v '^ *+' conftest.er1 >conftest.err
31379 rm -f conftest.er1
31380 cat conftest.err >&5
a848cd7e
SC
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); } &&
fb00f58d
JS
31383 { ac_try='test -z "$ac_cxx_werror_flag"
31384 || test ! -s conftest.err'
ac1cb8d3
VS
31385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31386 (eval $ac_try) 2>&5
31387 ac_status=$?
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); }; } &&
31390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392 (eval $ac_try) 2>&5
31393 ac_status=$?
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; }; then
31396 wx_cv_func_vsnprintf_decl=yes
31397else
31398 echo "$as_me: failed program was:" >&5
31399sed 's/^/| /' conftest.$ac_ext >&5
31400
c122b164
DE
31401
31402 cat >conftest.$ac_ext <<_ACEOF
31403/* confdefs.h. */
31404_ACEOF
31405cat confdefs.h >>conftest.$ac_ext
31406cat >>conftest.$ac_ext <<_ACEOF
31407/* end confdefs.h. */
31408
31409 #include <stdio.h>
31410 #include <stdarg.h>
31411 using namespace std;
31412
31413int
31414main ()
31415{
31416
31417 char *buf;
31418 va_list ap;
31419 vsnprintf(buf, 10u, "%s", ap);
31420
31421 ;
31422 return 0;
31423}
31424_ACEOF
31425rm -f conftest.$ac_objext
31426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31427 (eval $ac_compile) 2>conftest.er1
31428 ac_status=$?
31429 grep -v '^ *+' conftest.er1 >conftest.err
31430 rm -f conftest.er1
31431 cat conftest.err >&5
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); } &&
fb00f58d
JS
31434 { ac_try='test -z "$ac_cxx_werror_flag"
31435 || test ! -s conftest.err'
c122b164
DE
31436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31437 (eval $ac_try) 2>&5
31438 ac_status=$?
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); }; } &&
31441 { ac_try='test -s conftest.$ac_objext'
31442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31443 (eval $ac_try) 2>&5
31444 ac_status=$?
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); }; }; then
31447 wx_cv_func_vsnprintf_decl=yes
31448else
31449 echo "$as_me: failed program was:" >&5
31450sed 's/^/| /' conftest.$ac_ext >&5
31451
a848cd7e
SC
31452wx_cv_func_vsnprintf_decl=no
31453
31454fi
ac1cb8d3 31455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31456
31457
c122b164
DE
31458fi
31459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31460
31461
a848cd7e
SC
31462fi
31463echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31464echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31465
31466 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31467 cat >>confdefs.h <<\_ACEOF
31468#define HAVE_VSNPRINTF_DECL 1
31469_ACEOF
31470
31471 fi
31472fi
31473
31474if test "$wxUSE_UNICODE" = yes; then
31475
31476
31477
fbe47c7b
VS
31478
31479
31480
31481for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31482do
31483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31484echo "$as_me:$LINENO: checking for $ac_func" >&5
31485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31486if eval "test \"\${$as_ac_var+set}\" = set"; then
31487 echo $ECHO_N "(cached) $ECHO_C" >&6
31488else
31489 cat >conftest.$ac_ext <<_ACEOF
31490/* confdefs.h. */
31491_ACEOF
31492cat confdefs.h >>conftest.$ac_ext
31493cat >>conftest.$ac_ext <<_ACEOF
31494/* end confdefs.h. */
ac1cb8d3
VS
31495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31497#define $ac_func innocuous_$ac_func
31498
a848cd7e
SC
31499/* System header to define __stub macros and hopefully few prototypes,
31500 which can conflict with char $ac_func (); below.
31501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31502 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31503
a848cd7e
SC
31504#ifdef __STDC__
31505# include <limits.h>
31506#else
31507# include <assert.h>
31508#endif
ac1cb8d3
VS
31509
31510#undef $ac_func
31511
a848cd7e
SC
31512/* Override any gcc2 internal prototype to avoid an error. */
31513#ifdef __cplusplus
31514extern "C"
31515{
31516#endif
31517/* We use char because int might match the return type of a gcc2
31518 builtin and then its argument prototype would still apply. */
31519char $ac_func ();
31520/* The GNU C library defines this for functions which it implements
31521 to always fail with ENOSYS. Some functions are actually named
31522 something starting with __ and the normal name is an alias. */
31523#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31524choke me
31525#else
31526char (*f) () = $ac_func;
31527#endif
31528#ifdef __cplusplus
31529}
31530#endif
31531
31532int
31533main ()
31534{
31535return f != $ac_func;
31536 ;
31537 return 0;
31538}
31539_ACEOF
31540rm -f conftest.$ac_objext conftest$ac_exeext
31541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31542 (eval $ac_link) 2>conftest.er1
a848cd7e 31543 ac_status=$?
ac1cb8d3
VS
31544 grep -v '^ *+' conftest.er1 >conftest.err
31545 rm -f conftest.er1
31546 cat conftest.err >&5
a848cd7e
SC
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); } &&
fb00f58d
JS
31549 { ac_try='test -z "$ac_cxx_werror_flag"
31550 || test ! -s conftest.err'
ac1cb8d3
VS
31551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31552 (eval $ac_try) 2>&5
31553 ac_status=$?
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); }; } &&
31556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31558 (eval $ac_try) 2>&5
31559 ac_status=$?
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); }; }; then
31562 eval "$as_ac_var=yes"
31563else
31564 echo "$as_me: failed program was:" >&5
31565sed 's/^/| /' conftest.$ac_ext >&5
31566
31567eval "$as_ac_var=no"
31568fi
ac1cb8d3
VS
31569rm -f conftest.err conftest.$ac_objext \
31570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31571fi
31572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31574if test `eval echo '${'$as_ac_var'}'` = yes; then
31575 cat >>confdefs.h <<_ACEOF
31576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31577_ACEOF
31578
31579fi
31580done
31581
31582
31583 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31584echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31585 cat >conftest.$ac_ext <<_ACEOF
31586/* confdefs.h. */
31587_ACEOF
31588cat confdefs.h >>conftest.$ac_ext
31589cat >>conftest.$ac_ext <<_ACEOF
31590/* end confdefs.h. */
31591#include <wchar.h>
31592int
31593main ()
31594{
31595&_vsnwprintf;
31596 ;
31597 return 0;
31598}
31599_ACEOF
31600rm -f conftest.$ac_objext
31601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31602 (eval $ac_compile) 2>conftest.er1
a848cd7e 31603 ac_status=$?
ac1cb8d3
VS
31604 grep -v '^ *+' conftest.er1 >conftest.err
31605 rm -f conftest.er1
31606 cat conftest.err >&5
a848cd7e
SC
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); } &&
fb00f58d
JS
31609 { ac_try='test -z "$ac_cxx_werror_flag"
31610 || test ! -s conftest.err'
ac1cb8d3
VS
31611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31612 (eval $ac_try) 2>&5
31613 ac_status=$?
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); }; } &&
31616 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31618 (eval $ac_try) 2>&5
31619 ac_status=$?
31620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621 (exit $ac_status); }; }; then
31622 echo "$as_me:$LINENO: result: yes" >&5
31623echo "${ECHO_T}yes" >&6
31624 cat >>confdefs.h <<\_ACEOF
31625#define HAVE__VSNWPRINTF 1
31626_ACEOF
31627
31628else
31629 echo "$as_me: failed program was:" >&5
31630sed 's/^/| /' conftest.$ac_ext >&5
31631
31632echo "$as_me:$LINENO: result: no" >&5
31633echo "${ECHO_T}no" >&6
31634fi
ac1cb8d3 31635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31636fi
31637
31638ac_ext=c
31639ac_cpp='$CPP $CPPFLAGS'
31640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31642ac_compiler_gnu=$ac_cv_c_compiler_gnu
31643
31644
31645
31646
31647if test "$TOOLKIT" != "MSW"; then
31648
31649
31650
31651
31652ac_ext=cc
31653ac_cpp='$CXXCPP $CPPFLAGS'
31654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31657
31658
31659
31660
31661# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31662if test "${with_libiconv_prefix+set}" = set; then
31663 withval="$with_libiconv_prefix"
31664
31665 for dir in `echo "$withval" | tr : ' '`; do
31666 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31667 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31668 done
31669
31670fi;
31671
31672 echo "$as_me:$LINENO: checking for iconv" >&5
31673echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31674if test "${am_cv_func_iconv+set}" = set; then
31675 echo $ECHO_N "(cached) $ECHO_C" >&6
31676else
31677
31678 am_cv_func_iconv="no, consider installing GNU libiconv"
31679 am_cv_lib_iconv=no
31680 cat >conftest.$ac_ext <<_ACEOF
31681/* confdefs.h. */
31682_ACEOF
31683cat confdefs.h >>conftest.$ac_ext
31684cat >>conftest.$ac_ext <<_ACEOF
31685/* end confdefs.h. */
31686#include <stdlib.h>
31687#include <iconv.h>
31688int
31689main ()
31690{
31691iconv_t cd = iconv_open("","");
31692 iconv(cd,NULL,NULL,NULL,NULL);
31693 iconv_close(cd);
31694 ;
31695 return 0;
31696}
31697_ACEOF
31698rm -f conftest.$ac_objext conftest$ac_exeext
31699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31700 (eval $ac_link) 2>conftest.er1
a848cd7e 31701 ac_status=$?
ac1cb8d3
VS
31702 grep -v '^ *+' conftest.er1 >conftest.err
31703 rm -f conftest.er1
31704 cat conftest.err >&5
a848cd7e
SC
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); } &&
fb00f58d
JS
31707 { ac_try='test -z "$ac_cxx_werror_flag"
31708 || test ! -s conftest.err'
ac1cb8d3
VS
31709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31710 (eval $ac_try) 2>&5
31711 ac_status=$?
31712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713 (exit $ac_status); }; } &&
31714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31716 (eval $ac_try) 2>&5
31717 ac_status=$?
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); }; }; then
31720 am_cv_func_iconv=yes
31721else
31722 echo "$as_me: failed program was:" >&5
31723sed 's/^/| /' conftest.$ac_ext >&5
31724
31725fi
ac1cb8d3
VS
31726rm -f conftest.err conftest.$ac_objext \
31727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31728 if test "$am_cv_func_iconv" != yes; then
31729 am_save_LIBS="$LIBS"
31730 LIBS="$LIBS -liconv"
31731 cat >conftest.$ac_ext <<_ACEOF
31732/* confdefs.h. */
31733_ACEOF
31734cat confdefs.h >>conftest.$ac_ext
31735cat >>conftest.$ac_ext <<_ACEOF
31736/* end confdefs.h. */
31737#include <stdlib.h>
31738#include <iconv.h>
31739int
31740main ()
31741{
31742iconv_t cd = iconv_open("","");
31743 iconv(cd,NULL,NULL,NULL,NULL);
31744 iconv_close(cd);
31745 ;
31746 return 0;
31747}
31748_ACEOF
31749rm -f conftest.$ac_objext conftest$ac_exeext
31750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31751 (eval $ac_link) 2>conftest.er1
a848cd7e 31752 ac_status=$?
ac1cb8d3
VS
31753 grep -v '^ *+' conftest.er1 >conftest.err
31754 rm -f conftest.er1
31755 cat conftest.err >&5
a848cd7e
SC
31756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757 (exit $ac_status); } &&
fb00f58d
JS
31758 { ac_try='test -z "$ac_cxx_werror_flag"
31759 || test ! -s conftest.err'
ac1cb8d3
VS
31760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31761 (eval $ac_try) 2>&5
31762 ac_status=$?
31763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764 (exit $ac_status); }; } &&
31765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31767 (eval $ac_try) 2>&5
31768 ac_status=$?
31769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770 (exit $ac_status); }; }; then
31771 am_cv_lib_iconv=yes
31772 am_cv_func_iconv=yes
31773else
31774 echo "$as_me: failed program was:" >&5
31775sed 's/^/| /' conftest.$ac_ext >&5
31776
31777fi
ac1cb8d3
VS
31778rm -f conftest.err conftest.$ac_objext \
31779 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31780 LIBS="$am_save_LIBS"
31781 fi
31782
31783fi
31784echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31785echo "${ECHO_T}$am_cv_func_iconv" >&6
31786 if test "$am_cv_func_iconv" = yes; then
31787
31788cat >>confdefs.h <<\_ACEOF
31789#define HAVE_ICONV 1
31790_ACEOF
31791
31792 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31793echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31794if test "${wx_cv_func_iconv_const+set}" = set; then
31795 echo $ECHO_N "(cached) $ECHO_C" >&6
31796else
31797 cat >conftest.$ac_ext <<_ACEOF
31798/* confdefs.h. */
31799_ACEOF
31800cat confdefs.h >>conftest.$ac_ext
31801cat >>conftest.$ac_ext <<_ACEOF
31802/* end confdefs.h. */
31803
31804#include <stdlib.h>
31805#include <iconv.h>
31806extern
31807#ifdef __cplusplus
31808"C"
31809#endif
31810#if defined(__STDC__) || defined(__cplusplus)
31811size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31812#else
31813size_t iconv();
31814#endif
31815
31816int
31817main ()
31818{
31819
31820 ;
31821 return 0;
31822}
31823_ACEOF
31824rm -f conftest.$ac_objext
31825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31826 (eval $ac_compile) 2>conftest.er1
a848cd7e 31827 ac_status=$?
ac1cb8d3
VS
31828 grep -v '^ *+' conftest.er1 >conftest.err
31829 rm -f conftest.er1
31830 cat conftest.err >&5
a848cd7e
SC
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); } &&
fb00f58d
JS
31833 { ac_try='test -z "$ac_cxx_werror_flag"
31834 || test ! -s conftest.err'
ac1cb8d3
VS
31835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31836 (eval $ac_try) 2>&5
31837 ac_status=$?
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); }; } &&
31840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
31846 wx_cv_func_iconv_const="no"
31847else
31848 echo "$as_me: failed program was:" >&5
31849sed 's/^/| /' conftest.$ac_ext >&5
31850
31851wx_cv_func_iconv_const="yes"
31852
31853fi
ac1cb8d3 31854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31855
31856fi
31857echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31858echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31859
31860 iconv_const=
31861 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31862 iconv_const="const"
31863 fi
31864
31865
31866cat >>confdefs.h <<_ACEOF
31867#define ICONV_CONST $iconv_const
31868_ACEOF
31869
31870 fi
31871 LIBICONV=
31872 if test "$am_cv_lib_iconv" = yes; then
31873 LIBICONV="-liconv"
31874 fi
31875
31876
31877LIBS="$LIBICONV $LIBS"
31878ac_ext=c
31879ac_cpp='$CPP $CPPFLAGS'
31880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31882ac_compiler_gnu=$ac_cv_c_compiler_gnu
31883
31884
31885if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31886
31887for ac_func in sigaction
31888do
31889as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31890echo "$as_me:$LINENO: checking for $ac_func" >&5
31891echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31892if eval "test \"\${$as_ac_var+set}\" = set"; then
31893 echo $ECHO_N "(cached) $ECHO_C" >&6
31894else
31895 cat >conftest.$ac_ext <<_ACEOF
31896/* confdefs.h. */
31897_ACEOF
31898cat confdefs.h >>conftest.$ac_ext
31899cat >>conftest.$ac_ext <<_ACEOF
31900/* end confdefs.h. */
ac1cb8d3
VS
31901/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31903#define $ac_func innocuous_$ac_func
31904
a848cd7e
SC
31905/* System header to define __stub macros and hopefully few prototypes,
31906 which can conflict with char $ac_func (); below.
31907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31908 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31909
a848cd7e
SC
31910#ifdef __STDC__
31911# include <limits.h>
31912#else
31913# include <assert.h>
31914#endif
ac1cb8d3
VS
31915
31916#undef $ac_func
31917
a848cd7e
SC
31918/* Override any gcc2 internal prototype to avoid an error. */
31919#ifdef __cplusplus
31920extern "C"
31921{
31922#endif
31923/* We use char because int might match the return type of a gcc2
31924 builtin and then its argument prototype would still apply. */
31925char $ac_func ();
31926/* The GNU C library defines this for functions which it implements
31927 to always fail with ENOSYS. Some functions are actually named
31928 something starting with __ and the normal name is an alias. */
31929#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31930choke me
31931#else
31932char (*f) () = $ac_func;
31933#endif
31934#ifdef __cplusplus
31935}
31936#endif
31937
31938int
31939main ()
31940{
31941return f != $ac_func;
31942 ;
31943 return 0;
31944}
31945_ACEOF
31946rm -f conftest.$ac_objext conftest$ac_exeext
31947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31948 (eval $ac_link) 2>conftest.er1
a848cd7e 31949 ac_status=$?
ac1cb8d3
VS
31950 grep -v '^ *+' conftest.er1 >conftest.err
31951 rm -f conftest.er1
31952 cat conftest.err >&5
a848cd7e
SC
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); } &&
fb00f58d
JS
31955 { ac_try='test -z "$ac_c_werror_flag"
31956 || test ! -s conftest.err'
ac1cb8d3
VS
31957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31958 (eval $ac_try) 2>&5
31959 ac_status=$?
31960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); }; } &&
31962 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31964 (eval $ac_try) 2>&5
31965 ac_status=$?
31966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967 (exit $ac_status); }; }; then
31968 eval "$as_ac_var=yes"
31969else
31970 echo "$as_me: failed program was:" >&5
31971sed 's/^/| /' conftest.$ac_ext >&5
31972
31973eval "$as_ac_var=no"
31974fi
ac1cb8d3
VS
31975rm -f conftest.err conftest.$ac_objext \
31976 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31977fi
31978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31979echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31980if test `eval echo '${'$as_ac_var'}'` = yes; then
31981 cat >>confdefs.h <<_ACEOF
31982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31983_ACEOF
31984
31985fi
31986done
31987
31988
31989 if test "$ac_cv_func_sigaction" = "no"; then
31990 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31991echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31992 wxUSE_ON_FATAL_EXCEPTION=no
31993 fi
31994
31995 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31996
31997
31998 ac_ext=cc
31999ac_cpp='$CXXCPP $CPPFLAGS'
32000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32003
32004
32005 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32006echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32007if test "${wx_cv_type_sa_handler+set}" = set; then
32008 echo $ECHO_N "(cached) $ECHO_C" >&6
32009else
32010
32011 cat >conftest.$ac_ext <<_ACEOF
32012/* confdefs.h. */
32013_ACEOF
32014cat confdefs.h >>conftest.$ac_ext
32015cat >>conftest.$ac_ext <<_ACEOF
32016/* end confdefs.h. */
32017#include <signal.h>
32018int
32019main ()
32020{
32021
32022 extern void testSigHandler(int);
32023
32024 struct sigaction sa;
32025 sa.sa_handler = testSigHandler;
32026
32027 ;
32028 return 0;
32029}
32030_ACEOF
32031rm -f conftest.$ac_objext
32032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32033 (eval $ac_compile) 2>conftest.er1
a848cd7e 32034 ac_status=$?
ac1cb8d3
VS
32035 grep -v '^ *+' conftest.er1 >conftest.err
32036 rm -f conftest.er1
32037 cat conftest.err >&5
a848cd7e
SC
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); } &&
fb00f58d
JS
32040 { ac_try='test -z "$ac_cxx_werror_flag"
32041 || test ! -s conftest.err'
ac1cb8d3
VS
32042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32043 (eval $ac_try) 2>&5
32044 ac_status=$?
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); }; } &&
32047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32049 (eval $ac_try) 2>&5
32050 ac_status=$?
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); }; }; then
32053
32054 wx_cv_type_sa_handler=int
32055
32056else
32057 echo "$as_me: failed program was:" >&5
32058sed 's/^/| /' conftest.$ac_ext >&5
32059
32060
32061 wx_cv_type_sa_handler=void
32062
32063fi
ac1cb8d3 32064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32065
32066fi
32067echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32068echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32069
32070 ac_ext=c
32071ac_cpp='$CPP $CPPFLAGS'
32072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32074ac_compiler_gnu=$ac_cv_c_compiler_gnu
32075
32076
32077 cat >>confdefs.h <<_ACEOF
32078#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32079_ACEOF
32080
32081 fi
32082fi
32083
eaff0f0d
VZ
32084if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32085
32086
32087 ac_ext=cc
32088ac_cpp='$CXXCPP $CPPFLAGS'
32089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32092
32093
32094 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32095echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32096if test "${wx_cv_func_backtrace+set}" = set; then
32097 echo $ECHO_N "(cached) $ECHO_C" >&6
32098else
32099
32100 cat >conftest.$ac_ext <<_ACEOF
32101/* confdefs.h. */
32102_ACEOF
32103cat confdefs.h >>conftest.$ac_ext
32104cat >>conftest.$ac_ext <<_ACEOF
32105/* end confdefs.h. */
32106#include <execinfo.h>
32107int
32108main ()
32109{
32110
32111 void *trace[1];
32112 char **messages;
32113
32114 backtrace(trace, 1);
32115 messages = backtrace_symbols(trace, 1);
32116
32117 ;
32118 return 0;
32119}
32120_ACEOF
32121rm -f conftest.$ac_objext
32122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32123 (eval $ac_compile) 2>conftest.er1
32124 ac_status=$?
32125 grep -v '^ *+' conftest.er1 >conftest.err
32126 rm -f conftest.er1
32127 cat conftest.err >&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); } &&
fb00f58d
JS
32130 { ac_try='test -z "$ac_cxx_werror_flag"
32131 || test ! -s conftest.err'
eaff0f0d
VZ
32132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32133 (eval $ac_try) 2>&5
32134 ac_status=$?
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); }; } &&
32137 { ac_try='test -s conftest.$ac_objext'
32138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32139 (eval $ac_try) 2>&5
32140 ac_status=$?
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); }; }; then
32143 wx_cv_func_backtrace=yes
32144else
32145 echo "$as_me: failed program was:" >&5
32146sed 's/^/| /' conftest.$ac_ext >&5
32147
32148wx_cv_func_backtrace=no
32149
32150fi
32151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32152
32153
32154fi
32155echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32156echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32157
32158
32159 if test "$wx_cv_func_backtrace" = "no"; then
32160 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32161echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32162 wxUSE_STACKWALKER=no
32163 else
32164 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32165echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32166if test "${wx_cv_func_cxa_demangle+set}" = set; then
32167 echo $ECHO_N "(cached) $ECHO_C" >&6
32168else
32169
32170 cat >conftest.$ac_ext <<_ACEOF
32171/* confdefs.h. */
32172_ACEOF
32173cat confdefs.h >>conftest.$ac_ext
32174cat >>conftest.$ac_ext <<_ACEOF
32175/* end confdefs.h. */
32176#include <cxxabi.h>
32177int
32178main ()
32179{
32180
32181 int rc;
32182 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32183
32184 ;
32185 return 0;
32186}
32187_ACEOF
dfe0c803
JS
32188rm -f conftest.$ac_objext conftest$ac_exeext
32189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32190 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32191 ac_status=$?
32192 grep -v '^ *+' conftest.er1 >conftest.err
32193 rm -f conftest.er1
32194 cat conftest.err >&5
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); } &&
fb00f58d
JS
32197 { ac_try='test -z "$ac_cxx_werror_flag"
32198 || test ! -s conftest.err'
eaff0f0d
VZ
32199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32200 (eval $ac_try) 2>&5
32201 ac_status=$?
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); }; } &&
dfe0c803 32204 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
32205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32206 (eval $ac_try) 2>&5
32207 ac_status=$?
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); }; }; then
32210 wx_cv_func_cxa_demangle=yes
32211else
32212 echo "$as_me: failed program was:" >&5
32213sed 's/^/| /' conftest.$ac_ext >&5
32214
32215wx_cv_func_cxa_demangle=no
32216
32217fi
dfe0c803
JS
32218rm -f conftest.err conftest.$ac_objext \
32219 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32220
32221
32222fi
32223echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32224echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32225
32226 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32227 cat >>confdefs.h <<\_ACEOF
32228#define HAVE_CXA_DEMANGLE 1
32229_ACEOF
32230
32231 fi
32232 fi
32233
32234 ac_ext=c
32235ac_cpp='$CPP $CPPFLAGS'
32236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32238ac_compiler_gnu=$ac_cv_c_compiler_gnu
32239
32240fi
32241
898beab1
DE
32242if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32243 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32244echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32245 wxUSE_STACKWALKER=no
32246fi
32247
32248
a848cd7e
SC
32249
32250
32251for ac_func in mkstemp mktemp
32252do
32253as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32254echo "$as_me:$LINENO: checking for $ac_func" >&5
32255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32256if eval "test \"\${$as_ac_var+set}\" = set"; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32258else
32259 cat >conftest.$ac_ext <<_ACEOF
32260/* confdefs.h. */
32261_ACEOF
32262cat confdefs.h >>conftest.$ac_ext
32263cat >>conftest.$ac_ext <<_ACEOF
32264/* end confdefs.h. */
ac1cb8d3
VS
32265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32267#define $ac_func innocuous_$ac_func
32268
a848cd7e
SC
32269/* System header to define __stub macros and hopefully few prototypes,
32270 which can conflict with char $ac_func (); below.
32271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32272 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32273
a848cd7e
SC
32274#ifdef __STDC__
32275# include <limits.h>
32276#else
32277# include <assert.h>
32278#endif
ac1cb8d3
VS
32279
32280#undef $ac_func
32281
a848cd7e
SC
32282/* Override any gcc2 internal prototype to avoid an error. */
32283#ifdef __cplusplus
32284extern "C"
32285{
32286#endif
32287/* We use char because int might match the return type of a gcc2
32288 builtin and then its argument prototype would still apply. */
32289char $ac_func ();
32290/* The GNU C library defines this for functions which it implements
32291 to always fail with ENOSYS. Some functions are actually named
32292 something starting with __ and the normal name is an alias. */
32293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32294choke me
32295#else
32296char (*f) () = $ac_func;
32297#endif
32298#ifdef __cplusplus
32299}
32300#endif
32301
32302int
32303main ()
32304{
32305return f != $ac_func;
32306 ;
32307 return 0;
32308}
32309_ACEOF
32310rm -f conftest.$ac_objext conftest$ac_exeext
32311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32312 (eval $ac_link) 2>conftest.er1
a848cd7e 32313 ac_status=$?
ac1cb8d3
VS
32314 grep -v '^ *+' conftest.er1 >conftest.err
32315 rm -f conftest.er1
32316 cat conftest.err >&5
a848cd7e
SC
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); } &&
fb00f58d
JS
32319 { ac_try='test -z "$ac_c_werror_flag"
32320 || test ! -s conftest.err'
ac1cb8d3
VS
32321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32322 (eval $ac_try) 2>&5
32323 ac_status=$?
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); }; } &&
32326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32328 (eval $ac_try) 2>&5
32329 ac_status=$?
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); }; }; then
32332 eval "$as_ac_var=yes"
32333else
32334 echo "$as_me: failed program was:" >&5
32335sed 's/^/| /' conftest.$ac_ext >&5
32336
32337eval "$as_ac_var=no"
32338fi
ac1cb8d3
VS
32339rm -f conftest.err conftest.$ac_objext \
32340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32341fi
32342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32343echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32344if test `eval echo '${'$as_ac_var'}'` = yes; then
32345 cat >>confdefs.h <<_ACEOF
32346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32347_ACEOF
32348 break
32349fi
32350done
32351
32352
32353echo "$as_me:$LINENO: checking for statfs" >&5
32354echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32355if test "${wx_cv_func_statfs+set}" = set; then
32356 echo $ECHO_N "(cached) $ECHO_C" >&6
32357else
32358 cat >conftest.$ac_ext <<_ACEOF
32359/* confdefs.h. */
32360_ACEOF
32361cat confdefs.h >>conftest.$ac_ext
32362cat >>conftest.$ac_ext <<_ACEOF
32363/* end confdefs.h. */
32364
32365 #if defined(__BSD__)
32366 #include <sys/param.h>
32367 #include <sys/mount.h>
32368 #else
32369 #include <sys/vfs.h>
32370 #endif
32371
32372int
32373main ()
32374{
32375
32376 long l;
32377 struct statfs fs;
32378 statfs("/", &fs);
32379 l = fs.f_bsize;
32380 l += fs.f_blocks;
32381 l += fs.f_bavail;
32382
32383 ;
32384 return 0;
32385}
32386_ACEOF
32387rm -f conftest.$ac_objext
32388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32389 (eval $ac_compile) 2>conftest.er1
a848cd7e 32390 ac_status=$?
ac1cb8d3
VS
32391 grep -v '^ *+' conftest.er1 >conftest.err
32392 rm -f conftest.er1
32393 cat conftest.err >&5
a848cd7e
SC
32394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395 (exit $ac_status); } &&
fb00f58d
JS
32396 { ac_try='test -z "$ac_c_werror_flag"
32397 || test ! -s conftest.err'
ac1cb8d3
VS
32398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32399 (eval $ac_try) 2>&5
32400 ac_status=$?
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); }; } &&
32403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32405 (eval $ac_try) 2>&5
32406 ac_status=$?
32407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408 (exit $ac_status); }; }; then
32409
32410 wx_cv_func_statfs=yes
32411
32412else
32413 echo "$as_me: failed program was:" >&5
32414sed 's/^/| /' conftest.$ac_ext >&5
32415
32416
32417 wx_cv_func_statfs=no
32418
32419
32420fi
ac1cb8d3 32421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32422
32423fi
32424echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32425echo "${ECHO_T}$wx_cv_func_statfs" >&6
32426
32427if test "$wx_cv_func_statfs" = "yes"; then
32428 wx_cv_type_statvfs_t="struct statfs"
32429 cat >>confdefs.h <<\_ACEOF
32430#define HAVE_STATFS 1
32431_ACEOF
32432
32433else
32434 echo "$as_me:$LINENO: checking for statvfs" >&5
32435echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32436if test "${wx_cv_func_statvfs+set}" = set; then
32437 echo $ECHO_N "(cached) $ECHO_C" >&6
32438else
32439 cat >conftest.$ac_ext <<_ACEOF
32440/* confdefs.h. */
32441_ACEOF
32442cat confdefs.h >>conftest.$ac_ext
32443cat >>conftest.$ac_ext <<_ACEOF
32444/* end confdefs.h. */
32445
32446 #include <stddef.h>
32447 #include <sys/statvfs.h>
32448
32449int
32450main ()
32451{
32452
32453 statvfs("/", NULL);
32454
32455 ;
32456 return 0;
32457}
32458_ACEOF
32459rm -f conftest.$ac_objext
32460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32461 (eval $ac_compile) 2>conftest.er1
a848cd7e 32462 ac_status=$?
ac1cb8d3
VS
32463 grep -v '^ *+' conftest.er1 >conftest.err
32464 rm -f conftest.er1
32465 cat conftest.err >&5
a848cd7e
SC
32466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32467 (exit $ac_status); } &&
fb00f58d
JS
32468 { ac_try='test -z "$ac_c_werror_flag"
32469 || test ! -s conftest.err'
ac1cb8d3
VS
32470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32471 (eval $ac_try) 2>&5
32472 ac_status=$?
32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474 (exit $ac_status); }; } &&
32475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32477 (eval $ac_try) 2>&5
32478 ac_status=$?
32479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; }; then
32481 wx_cv_func_statvfs=yes
32482else
32483 echo "$as_me: failed program was:" >&5
32484sed 's/^/| /' conftest.$ac_ext >&5
32485
32486wx_cv_func_statvfs=no
32487
32488fi
ac1cb8d3 32489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32490
32491fi
32492echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32493echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32494
32495 if test "$wx_cv_func_statvfs" = "yes"; then
32496
32497
32498 ac_ext=cc
32499ac_cpp='$CXXCPP $CPPFLAGS'
32500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32503
32504
32505 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32506echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32507if test "${wx_cv_type_statvfs_t+set}" = set; then
32508 echo $ECHO_N "(cached) $ECHO_C" >&6
32509else
32510 cat >conftest.$ac_ext <<_ACEOF
32511/* confdefs.h. */
32512_ACEOF
32513cat confdefs.h >>conftest.$ac_ext
32514cat >>conftest.$ac_ext <<_ACEOF
32515/* end confdefs.h. */
32516
32517 #include <sys/statvfs.h>
32518
32519int
32520main ()
32521{
32522
32523 long l;
32524 statvfs_t fs;
32525 statvfs("/", &fs);
32526 l = fs.f_bsize;
32527 l += fs.f_blocks;
32528 l += fs.f_bavail;
32529
32530 ;
32531 return 0;
32532}
32533_ACEOF
32534rm -f conftest.$ac_objext
32535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32536 (eval $ac_compile) 2>conftest.er1
a848cd7e 32537 ac_status=$?
ac1cb8d3
VS
32538 grep -v '^ *+' conftest.er1 >conftest.err
32539 rm -f conftest.er1
32540 cat conftest.err >&5
a848cd7e
SC
32541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542 (exit $ac_status); } &&
fb00f58d
JS
32543 { ac_try='test -z "$ac_cxx_werror_flag"
32544 || test ! -s conftest.err'
ac1cb8d3
VS
32545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546 (eval $ac_try) 2>&5
32547 ac_status=$?
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; } &&
32550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32552 (eval $ac_try) 2>&5
32553 ac_status=$?
32554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555 (exit $ac_status); }; }; then
32556 wx_cv_type_statvfs_t=statvfs_t
32557else
32558 echo "$as_me: failed program was:" >&5
32559sed 's/^/| /' conftest.$ac_ext >&5
32560
32561
32562 cat >conftest.$ac_ext <<_ACEOF
32563/* confdefs.h. */
32564_ACEOF
32565cat confdefs.h >>conftest.$ac_ext
32566cat >>conftest.$ac_ext <<_ACEOF
32567/* end confdefs.h. */
32568
32569 #include <sys/statvfs.h>
32570
32571int
32572main ()
32573{
32574
32575 long l;
32576 struct statvfs fs;
32577 statvfs("/", &fs);
32578 l = fs.f_bsize;
32579 l += fs.f_blocks;
32580 l += fs.f_bavail;
32581
32582 ;
32583 return 0;
32584}
32585_ACEOF
32586rm -f conftest.$ac_objext
32587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32588 (eval $ac_compile) 2>conftest.er1
a848cd7e 32589 ac_status=$?
ac1cb8d3
VS
32590 grep -v '^ *+' conftest.er1 >conftest.err
32591 rm -f conftest.er1
32592 cat conftest.err >&5
a848cd7e
SC
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); } &&
fb00f58d
JS
32595 { ac_try='test -z "$ac_cxx_werror_flag"
32596 || test ! -s conftest.err'
ac1cb8d3
VS
32597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32598 (eval $ac_try) 2>&5
32599 ac_status=$?
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); }; } &&
32602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32604 (eval $ac_try) 2>&5
32605 ac_status=$?
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); }; }; then
32608 wx_cv_type_statvfs_t="struct statvfs"
32609else
32610 echo "$as_me: failed program was:" >&5
32611sed 's/^/| /' conftest.$ac_ext >&5
32612
32613wx_cv_type_statvfs_t="unknown"
32614
32615fi
ac1cb8d3 32616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32617
32618
32619fi
ac1cb8d3 32620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32621
32622fi
32623echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32624echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32625
32626 ac_ext=c
32627ac_cpp='$CPP $CPPFLAGS'
32628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32630ac_compiler_gnu=$ac_cv_c_compiler_gnu
32631
32632
32633 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32634 cat >>confdefs.h <<\_ACEOF
32635#define HAVE_STATVFS 1
32636_ACEOF
32637
32638 fi
32639 else
32640 wx_cv_type_statvfs_t="unknown"
32641 fi
32642fi
32643
32644if test "$wx_cv_type_statvfs_t" != "unknown"; then
32645 cat >>confdefs.h <<_ACEOF
32646#define WX_STATFS_T $wx_cv_type_statvfs_t
32647_ACEOF
32648
32649else
32650 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32651echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32652fi
32653
32654if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32655
32656
32657for ac_func in fcntl flock
32658do
32659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32660echo "$as_me:$LINENO: checking for $ac_func" >&5
32661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32662if eval "test \"\${$as_ac_var+set}\" = set"; then
32663 echo $ECHO_N "(cached) $ECHO_C" >&6
32664else
32665 cat >conftest.$ac_ext <<_ACEOF
32666/* confdefs.h. */
32667_ACEOF
32668cat confdefs.h >>conftest.$ac_ext
32669cat >>conftest.$ac_ext <<_ACEOF
32670/* end confdefs.h. */
ac1cb8d3
VS
32671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32673#define $ac_func innocuous_$ac_func
32674
a848cd7e
SC
32675/* System header to define __stub macros and hopefully few prototypes,
32676 which can conflict with char $ac_func (); below.
32677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32678 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32679
a848cd7e
SC
32680#ifdef __STDC__
32681# include <limits.h>
32682#else
32683# include <assert.h>
32684#endif
ac1cb8d3
VS
32685
32686#undef $ac_func
32687
a848cd7e
SC
32688/* Override any gcc2 internal prototype to avoid an error. */
32689#ifdef __cplusplus
32690extern "C"
32691{
32692#endif
32693/* We use char because int might match the return type of a gcc2
32694 builtin and then its argument prototype would still apply. */
32695char $ac_func ();
32696/* The GNU C library defines this for functions which it implements
32697 to always fail with ENOSYS. Some functions are actually named
32698 something starting with __ and the normal name is an alias. */
32699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32700choke me
32701#else
32702char (*f) () = $ac_func;
32703#endif
32704#ifdef __cplusplus
32705}
32706#endif
32707
32708int
32709main ()
32710{
32711return f != $ac_func;
32712 ;
32713 return 0;
32714}
32715_ACEOF
32716rm -f conftest.$ac_objext conftest$ac_exeext
32717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32718 (eval $ac_link) 2>conftest.er1
a848cd7e 32719 ac_status=$?
ac1cb8d3
VS
32720 grep -v '^ *+' conftest.er1 >conftest.err
32721 rm -f conftest.er1
32722 cat conftest.err >&5
a848cd7e
SC
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); } &&
fb00f58d
JS
32725 { ac_try='test -z "$ac_c_werror_flag"
32726 || test ! -s conftest.err'
ac1cb8d3
VS
32727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32728 (eval $ac_try) 2>&5
32729 ac_status=$?
32730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731 (exit $ac_status); }; } &&
32732 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32734 (eval $ac_try) 2>&5
32735 ac_status=$?
32736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737 (exit $ac_status); }; }; then
32738 eval "$as_ac_var=yes"
32739else
32740 echo "$as_me: failed program was:" >&5
32741sed 's/^/| /' conftest.$ac_ext >&5
32742
32743eval "$as_ac_var=no"
32744fi
ac1cb8d3
VS
32745rm -f conftest.err conftest.$ac_objext \
32746 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32747fi
32748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32749echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32750if test `eval echo '${'$as_ac_var'}'` = yes; then
32751 cat >>confdefs.h <<_ACEOF
32752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32753_ACEOF
32754 break
32755fi
32756done
32757
32758
32759 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32760 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32761echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32762 wxUSE_SNGLINST_CHECKER=no
32763 fi
32764fi
32765
32766
32767for ac_func in timegm
32768do
32769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32770echo "$as_me:$LINENO: checking for $ac_func" >&5
32771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32772if eval "test \"\${$as_ac_var+set}\" = set"; then
32773 echo $ECHO_N "(cached) $ECHO_C" >&6
32774else
32775 cat >conftest.$ac_ext <<_ACEOF
32776/* confdefs.h. */
32777_ACEOF
32778cat confdefs.h >>conftest.$ac_ext
32779cat >>conftest.$ac_ext <<_ACEOF
32780/* end confdefs.h. */
ac1cb8d3
VS
32781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32783#define $ac_func innocuous_$ac_func
32784
a848cd7e
SC
32785/* System header to define __stub macros and hopefully few prototypes,
32786 which can conflict with char $ac_func (); below.
32787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32788 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32789
a848cd7e
SC
32790#ifdef __STDC__
32791# include <limits.h>
32792#else
32793# include <assert.h>
32794#endif
ac1cb8d3
VS
32795
32796#undef $ac_func
32797
a848cd7e
SC
32798/* Override any gcc2 internal prototype to avoid an error. */
32799#ifdef __cplusplus
32800extern "C"
32801{
32802#endif
32803/* We use char because int might match the return type of a gcc2
32804 builtin and then its argument prototype would still apply. */
32805char $ac_func ();
32806/* The GNU C library defines this for functions which it implements
32807 to always fail with ENOSYS. Some functions are actually named
32808 something starting with __ and the normal name is an alias. */
32809#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32810choke me
32811#else
32812char (*f) () = $ac_func;
32813#endif
32814#ifdef __cplusplus
32815}
32816#endif
32817
32818int
32819main ()
32820{
32821return f != $ac_func;
32822 ;
32823 return 0;
32824}
32825_ACEOF
32826rm -f conftest.$ac_objext conftest$ac_exeext
32827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32828 (eval $ac_link) 2>conftest.er1
a848cd7e 32829 ac_status=$?
ac1cb8d3
VS
32830 grep -v '^ *+' conftest.er1 >conftest.err
32831 rm -f conftest.er1
32832 cat conftest.err >&5
a848cd7e
SC
32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834 (exit $ac_status); } &&
fb00f58d
JS
32835 { ac_try='test -z "$ac_c_werror_flag"
32836 || test ! -s conftest.err'
ac1cb8d3
VS
32837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32838 (eval $ac_try) 2>&5
32839 ac_status=$?
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; } &&
32842 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32844 (eval $ac_try) 2>&5
32845 ac_status=$?
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); }; }; then
32848 eval "$as_ac_var=yes"
32849else
32850 echo "$as_me: failed program was:" >&5
32851sed 's/^/| /' conftest.$ac_ext >&5
32852
32853eval "$as_ac_var=no"
32854fi
ac1cb8d3
VS
32855rm -f conftest.err conftest.$ac_objext \
32856 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32857fi
32858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32859echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32860if test `eval echo '${'$as_ac_var'}'` = yes; then
32861 cat >>confdefs.h <<_ACEOF
32862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32863_ACEOF
32864
32865fi
32866done
32867
32868
32869
32870
32871for ac_func in putenv setenv
32872do
32873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32874echo "$as_me:$LINENO: checking for $ac_func" >&5
32875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32876if eval "test \"\${$as_ac_var+set}\" = set"; then
32877 echo $ECHO_N "(cached) $ECHO_C" >&6
32878else
32879 cat >conftest.$ac_ext <<_ACEOF
32880/* confdefs.h. */
32881_ACEOF
32882cat confdefs.h >>conftest.$ac_ext
32883cat >>conftest.$ac_ext <<_ACEOF
32884/* end confdefs.h. */
ac1cb8d3
VS
32885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32887#define $ac_func innocuous_$ac_func
32888
a848cd7e
SC
32889/* System header to define __stub macros and hopefully few prototypes,
32890 which can conflict with char $ac_func (); below.
32891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32892 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32893
a848cd7e
SC
32894#ifdef __STDC__
32895# include <limits.h>
32896#else
32897# include <assert.h>
32898#endif
ac1cb8d3
VS
32899
32900#undef $ac_func
32901
a848cd7e
SC
32902/* Override any gcc2 internal prototype to avoid an error. */
32903#ifdef __cplusplus
32904extern "C"
32905{
32906#endif
32907/* We use char because int might match the return type of a gcc2
32908 builtin and then its argument prototype would still apply. */
32909char $ac_func ();
32910/* The GNU C library defines this for functions which it implements
32911 to always fail with ENOSYS. Some functions are actually named
32912 something starting with __ and the normal name is an alias. */
32913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32914choke me
32915#else
32916char (*f) () = $ac_func;
32917#endif
32918#ifdef __cplusplus
32919}
32920#endif
32921
32922int
32923main ()
32924{
32925return f != $ac_func;
32926 ;
32927 return 0;
32928}
32929_ACEOF
32930rm -f conftest.$ac_objext conftest$ac_exeext
32931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32932 (eval $ac_link) 2>conftest.er1
a848cd7e 32933 ac_status=$?
ac1cb8d3
VS
32934 grep -v '^ *+' conftest.er1 >conftest.err
32935 rm -f conftest.er1
32936 cat conftest.err >&5
a848cd7e
SC
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } &&
fb00f58d
JS
32939 { ac_try='test -z "$ac_c_werror_flag"
32940 || test ! -s conftest.err'
ac1cb8d3
VS
32941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32942 (eval $ac_try) 2>&5
32943 ac_status=$?
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; } &&
32946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32948 (eval $ac_try) 2>&5
32949 ac_status=$?
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); }; }; then
32952 eval "$as_ac_var=yes"
32953else
32954 echo "$as_me: failed program was:" >&5
32955sed 's/^/| /' conftest.$ac_ext >&5
32956
32957eval "$as_ac_var=no"
32958fi
ac1cb8d3
VS
32959rm -f conftest.err conftest.$ac_objext \
32960 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32961fi
32962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32964if test `eval echo '${'$as_ac_var'}'` = yes; then
32965 cat >>confdefs.h <<_ACEOF
32966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32967_ACEOF
32968 break
32969fi
32970done
32971
32972
32973HAVE_SOME_SLEEP_FUNC=0
32974if test "$USE_BEOS" = 1; then
32975 cat >>confdefs.h <<\_ACEOF
32976#define HAVE_SLEEP 1
32977_ACEOF
32978
32979 HAVE_SOME_SLEEP_FUNC=1
32980fi
32981
32982if test "$USE_DARWIN" = 1; then
32983 cat >>confdefs.h <<\_ACEOF
32984#define HAVE_USLEEP 1
32985_ACEOF
32986
32987 HAVE_SOME_SLEEP_FUNC=1
32988fi
32989
32990if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32991 POSIX4_LINK=
32992
32993for ac_func in nanosleep
32994do
32995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32996echo "$as_me:$LINENO: checking for $ac_func" >&5
32997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32998if eval "test \"\${$as_ac_var+set}\" = set"; then
32999 echo $ECHO_N "(cached) $ECHO_C" >&6
33000else
33001 cat >conftest.$ac_ext <<_ACEOF
33002/* confdefs.h. */
33003_ACEOF
33004cat confdefs.h >>conftest.$ac_ext
33005cat >>conftest.$ac_ext <<_ACEOF
33006/* end confdefs.h. */
ac1cb8d3
VS
33007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33009#define $ac_func innocuous_$ac_func
33010
a848cd7e
SC
33011/* System header to define __stub macros and hopefully few prototypes,
33012 which can conflict with char $ac_func (); below.
33013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33014 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33015
a848cd7e
SC
33016#ifdef __STDC__
33017# include <limits.h>
33018#else
33019# include <assert.h>
33020#endif
ac1cb8d3
VS
33021
33022#undef $ac_func
33023
a848cd7e
SC
33024/* Override any gcc2 internal prototype to avoid an error. */
33025#ifdef __cplusplus
33026extern "C"
33027{
33028#endif
33029/* We use char because int might match the return type of a gcc2
33030 builtin and then its argument prototype would still apply. */
33031char $ac_func ();
33032/* The GNU C library defines this for functions which it implements
33033 to always fail with ENOSYS. Some functions are actually named
33034 something starting with __ and the normal name is an alias. */
33035#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33036choke me
33037#else
33038char (*f) () = $ac_func;
33039#endif
33040#ifdef __cplusplus
33041}
33042#endif
33043
33044int
33045main ()
33046{
33047return f != $ac_func;
33048 ;
33049 return 0;
33050}
33051_ACEOF
33052rm -f conftest.$ac_objext conftest$ac_exeext
33053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33054 (eval $ac_link) 2>conftest.er1
a848cd7e 33055 ac_status=$?
ac1cb8d3
VS
33056 grep -v '^ *+' conftest.er1 >conftest.err
33057 rm -f conftest.er1
33058 cat conftest.err >&5
a848cd7e
SC
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); } &&
fb00f58d
JS
33061 { ac_try='test -z "$ac_c_werror_flag"
33062 || test ! -s conftest.err'
ac1cb8d3
VS
33063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33064 (eval $ac_try) 2>&5
33065 ac_status=$?
33066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067 (exit $ac_status); }; } &&
33068 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33070 (eval $ac_try) 2>&5
33071 ac_status=$?
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); }; }; then
33074 eval "$as_ac_var=yes"
33075else
33076 echo "$as_me: failed program was:" >&5
33077sed 's/^/| /' conftest.$ac_ext >&5
33078
33079eval "$as_ac_var=no"
33080fi
ac1cb8d3
VS
33081rm -f conftest.err conftest.$ac_objext \
33082 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33083fi
33084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33085echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33086if test `eval echo '${'$as_ac_var'}'` = yes; then
33087 cat >>confdefs.h <<_ACEOF
33088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33089_ACEOF
33090 cat >>confdefs.h <<\_ACEOF
33091#define HAVE_NANOSLEEP 1
33092_ACEOF
33093
33094else
33095
33096 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33097echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33098if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33099 echo $ECHO_N "(cached) $ECHO_C" >&6
33100else
33101 ac_check_lib_save_LIBS=$LIBS
33102LIBS="-lposix4 $LIBS"
33103cat >conftest.$ac_ext <<_ACEOF
33104/* confdefs.h. */
33105_ACEOF
33106cat confdefs.h >>conftest.$ac_ext
33107cat >>conftest.$ac_ext <<_ACEOF
33108/* end confdefs.h. */
33109
33110/* Override any gcc2 internal prototype to avoid an error. */
33111#ifdef __cplusplus
33112extern "C"
33113#endif
33114/* We use char because int might match the return type of a gcc2
33115 builtin and then its argument prototype would still apply. */
33116char nanosleep ();
33117int
33118main ()
33119{
33120nanosleep ();
33121 ;
33122 return 0;
33123}
33124_ACEOF
33125rm -f conftest.$ac_objext conftest$ac_exeext
33126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33127 (eval $ac_link) 2>conftest.er1
a848cd7e 33128 ac_status=$?
ac1cb8d3
VS
33129 grep -v '^ *+' conftest.er1 >conftest.err
33130 rm -f conftest.er1
33131 cat conftest.err >&5
a848cd7e
SC
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); } &&
fb00f58d
JS
33134 { ac_try='test -z "$ac_c_werror_flag"
33135 || test ! -s conftest.err'
ac1cb8d3
VS
33136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33137 (eval $ac_try) 2>&5
33138 ac_status=$?
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); }; } &&
33141 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33143 (eval $ac_try) 2>&5
33144 ac_status=$?
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); }; }; then
33147 ac_cv_lib_posix4_nanosleep=yes
33148else
33149 echo "$as_me: failed program was:" >&5
33150sed 's/^/| /' conftest.$ac_ext >&5
33151
33152ac_cv_lib_posix4_nanosleep=no
33153fi
ac1cb8d3
VS
33154rm -f conftest.err conftest.$ac_objext \
33155 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33156LIBS=$ac_check_lib_save_LIBS
33157fi
33158echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33159echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33160if test $ac_cv_lib_posix4_nanosleep = yes; then
33161
33162 cat >>confdefs.h <<\_ACEOF
33163#define HAVE_NANOSLEEP 1
33164_ACEOF
33165
33166 POSIX4_LINK=" -lposix4"
33167
33168else
33169
33170
33171for ac_func in usleep
33172do
33173as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33174echo "$as_me:$LINENO: checking for $ac_func" >&5
33175echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33176if eval "test \"\${$as_ac_var+set}\" = set"; then
33177 echo $ECHO_N "(cached) $ECHO_C" >&6
33178else
33179 cat >conftest.$ac_ext <<_ACEOF
33180/* confdefs.h. */
33181_ACEOF
33182cat confdefs.h >>conftest.$ac_ext
33183cat >>conftest.$ac_ext <<_ACEOF
33184/* end confdefs.h. */
ac1cb8d3
VS
33185/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33187#define $ac_func innocuous_$ac_func
33188
a848cd7e
SC
33189/* System header to define __stub macros and hopefully few prototypes,
33190 which can conflict with char $ac_func (); below.
33191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33192 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33193
a848cd7e
SC
33194#ifdef __STDC__
33195# include <limits.h>
33196#else
33197# include <assert.h>
33198#endif
ac1cb8d3
VS
33199
33200#undef $ac_func
33201
a848cd7e
SC
33202/* Override any gcc2 internal prototype to avoid an error. */
33203#ifdef __cplusplus
33204extern "C"
33205{
33206#endif
33207/* We use char because int might match the return type of a gcc2
33208 builtin and then its argument prototype would still apply. */
33209char $ac_func ();
33210/* The GNU C library defines this for functions which it implements
33211 to always fail with ENOSYS. Some functions are actually named
33212 something starting with __ and the normal name is an alias. */
33213#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33214choke me
33215#else
33216char (*f) () = $ac_func;
33217#endif
33218#ifdef __cplusplus
33219}
33220#endif
33221
33222int
33223main ()
33224{
33225return f != $ac_func;
33226 ;
33227 return 0;
33228}
33229_ACEOF
33230rm -f conftest.$ac_objext conftest$ac_exeext
33231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33232 (eval $ac_link) 2>conftest.er1
a848cd7e 33233 ac_status=$?
ac1cb8d3
VS
33234 grep -v '^ *+' conftest.er1 >conftest.err
33235 rm -f conftest.er1
33236 cat conftest.err >&5
a848cd7e
SC
33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238 (exit $ac_status); } &&
fb00f58d
JS
33239 { ac_try='test -z "$ac_c_werror_flag"
33240 || test ! -s conftest.err'
ac1cb8d3
VS
33241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33242 (eval $ac_try) 2>&5
33243 ac_status=$?
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); }; } &&
33246 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33248 (eval $ac_try) 2>&5
33249 ac_status=$?
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); }; }; then
33252 eval "$as_ac_var=yes"
33253else
33254 echo "$as_me: failed program was:" >&5
33255sed 's/^/| /' conftest.$ac_ext >&5
33256
33257eval "$as_ac_var=no"
33258fi
ac1cb8d3
VS
33259rm -f conftest.err conftest.$ac_objext \
33260 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33261fi
33262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33263echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33264if test `eval echo '${'$as_ac_var'}'` = yes; then
33265 cat >>confdefs.h <<_ACEOF
33266#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33267_ACEOF
33268 cat >>confdefs.h <<\_ACEOF
33269#define HAVE_USLEEP 1
33270_ACEOF
33271
33272else
33273 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33274echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33275
33276fi
33277done
33278
33279
33280
33281fi
33282
33283
33284
33285fi
33286done
33287
33288fi
33289
33290
33291
33292for ac_func in uname gethostname
33293do
33294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33295echo "$as_me:$LINENO: checking for $ac_func" >&5
33296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33297if eval "test \"\${$as_ac_var+set}\" = set"; then
33298 echo $ECHO_N "(cached) $ECHO_C" >&6
33299else
33300 cat >conftest.$ac_ext <<_ACEOF
33301/* confdefs.h. */
33302_ACEOF
33303cat confdefs.h >>conftest.$ac_ext
33304cat >>conftest.$ac_ext <<_ACEOF
33305/* end confdefs.h. */
ac1cb8d3
VS
33306/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33308#define $ac_func innocuous_$ac_func
33309
a848cd7e
SC
33310/* System header to define __stub macros and hopefully few prototypes,
33311 which can conflict with char $ac_func (); below.
33312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33313 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33314
a848cd7e
SC
33315#ifdef __STDC__
33316# include <limits.h>
33317#else
33318# include <assert.h>
33319#endif
ac1cb8d3
VS
33320
33321#undef $ac_func
33322
a848cd7e
SC
33323/* Override any gcc2 internal prototype to avoid an error. */
33324#ifdef __cplusplus
33325extern "C"
33326{
33327#endif
33328/* We use char because int might match the return type of a gcc2
33329 builtin and then its argument prototype would still apply. */
33330char $ac_func ();
33331/* The GNU C library defines this for functions which it implements
33332 to always fail with ENOSYS. Some functions are actually named
33333 something starting with __ and the normal name is an alias. */
33334#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33335choke me
33336#else
33337char (*f) () = $ac_func;
33338#endif
33339#ifdef __cplusplus
33340}
33341#endif
33342
33343int
33344main ()
33345{
33346return f != $ac_func;
33347 ;
33348 return 0;
33349}
33350_ACEOF
33351rm -f conftest.$ac_objext conftest$ac_exeext
33352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33353 (eval $ac_link) 2>conftest.er1
a848cd7e 33354 ac_status=$?
ac1cb8d3
VS
33355 grep -v '^ *+' conftest.er1 >conftest.err
33356 rm -f conftest.er1
33357 cat conftest.err >&5
a848cd7e
SC
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); } &&
fb00f58d
JS
33360 { ac_try='test -z "$ac_c_werror_flag"
33361 || test ! -s conftest.err'
ac1cb8d3
VS
33362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33363 (eval $ac_try) 2>&5
33364 ac_status=$?
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); }; } &&
33367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33369 (eval $ac_try) 2>&5
33370 ac_status=$?
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; }; then
33373 eval "$as_ac_var=yes"
33374else
33375 echo "$as_me: failed program was:" >&5
33376sed 's/^/| /' conftest.$ac_ext >&5
33377
33378eval "$as_ac_var=no"
33379fi
ac1cb8d3
VS
33380rm -f conftest.err conftest.$ac_objext \
33381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33382fi
33383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33384echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33385if test `eval echo '${'$as_ac_var'}'` = yes; then
33386 cat >>confdefs.h <<_ACEOF
33387#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33388_ACEOF
33389 break
33390fi
33391done
33392
33393
33394
33395
33396ac_ext=cc
33397ac_cpp='$CXXCPP $CPPFLAGS'
33398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33401
33402
33403
33404for ac_func in strtok_r
33405do
33406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33407echo "$as_me:$LINENO: checking for $ac_func" >&5
33408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33409if eval "test \"\${$as_ac_var+set}\" = set"; then
33410 echo $ECHO_N "(cached) $ECHO_C" >&6
33411else
33412 cat >conftest.$ac_ext <<_ACEOF
33413/* confdefs.h. */
33414_ACEOF
33415cat confdefs.h >>conftest.$ac_ext
33416cat >>conftest.$ac_ext <<_ACEOF
33417/* end confdefs.h. */
ac1cb8d3
VS
33418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33420#define $ac_func innocuous_$ac_func
33421
a848cd7e
SC
33422/* System header to define __stub macros and hopefully few prototypes,
33423 which can conflict with char $ac_func (); below.
33424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33425 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33426
a848cd7e
SC
33427#ifdef __STDC__
33428# include <limits.h>
33429#else
33430# include <assert.h>
33431#endif
ac1cb8d3
VS
33432
33433#undef $ac_func
33434
a848cd7e
SC
33435/* Override any gcc2 internal prototype to avoid an error. */
33436#ifdef __cplusplus
33437extern "C"
33438{
33439#endif
33440/* We use char because int might match the return type of a gcc2
33441 builtin and then its argument prototype would still apply. */
33442char $ac_func ();
33443/* The GNU C library defines this for functions which it implements
33444 to always fail with ENOSYS. Some functions are actually named
33445 something starting with __ and the normal name is an alias. */
33446#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33447choke me
33448#else
33449char (*f) () = $ac_func;
33450#endif
33451#ifdef __cplusplus
33452}
33453#endif
33454
33455int
33456main ()
33457{
33458return f != $ac_func;
33459 ;
33460 return 0;
33461}
33462_ACEOF
33463rm -f conftest.$ac_objext conftest$ac_exeext
33464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33465 (eval $ac_link) 2>conftest.er1
a848cd7e 33466 ac_status=$?
ac1cb8d3
VS
33467 grep -v '^ *+' conftest.er1 >conftest.err
33468 rm -f conftest.er1
33469 cat conftest.err >&5
a848cd7e
SC
33470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471 (exit $ac_status); } &&
fb00f58d
JS
33472 { ac_try='test -z "$ac_cxx_werror_flag"
33473 || test ! -s conftest.err'
ac1cb8d3
VS
33474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33475 (eval $ac_try) 2>&5
33476 ac_status=$?
33477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478 (exit $ac_status); }; } &&
33479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33481 (eval $ac_try) 2>&5
33482 ac_status=$?
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; }; then
33485 eval "$as_ac_var=yes"
33486else
33487 echo "$as_me: failed program was:" >&5
33488sed 's/^/| /' conftest.$ac_ext >&5
33489
33490eval "$as_ac_var=no"
33491fi
ac1cb8d3
VS
33492rm -f conftest.err conftest.$ac_objext \
33493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33494fi
33495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33496echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33497if test `eval echo '${'$as_ac_var'}'` = yes; then
33498 cat >>confdefs.h <<_ACEOF
33499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33500_ACEOF
33501
33502fi
33503done
33504
33505
33506ac_ext=c
33507ac_cpp='$CPP $CPPFLAGS'
33508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33510ac_compiler_gnu=$ac_cv_c_compiler_gnu
33511
33512
33513INET_LINK=
33514
33515for ac_func in inet_addr
33516do
33517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33518echo "$as_me:$LINENO: checking for $ac_func" >&5
33519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33520if eval "test \"\${$as_ac_var+set}\" = set"; then
33521 echo $ECHO_N "(cached) $ECHO_C" >&6
33522else
33523 cat >conftest.$ac_ext <<_ACEOF
33524/* confdefs.h. */
33525_ACEOF
33526cat confdefs.h >>conftest.$ac_ext
33527cat >>conftest.$ac_ext <<_ACEOF
33528/* end confdefs.h. */
ac1cb8d3
VS
33529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33531#define $ac_func innocuous_$ac_func
33532
a848cd7e
SC
33533/* System header to define __stub macros and hopefully few prototypes,
33534 which can conflict with char $ac_func (); below.
33535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33536 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33537
a848cd7e
SC
33538#ifdef __STDC__
33539# include <limits.h>
33540#else
33541# include <assert.h>
33542#endif
ac1cb8d3
VS
33543
33544#undef $ac_func
33545
a848cd7e
SC
33546/* Override any gcc2 internal prototype to avoid an error. */
33547#ifdef __cplusplus
33548extern "C"
33549{
33550#endif
33551/* We use char because int might match the return type of a gcc2
33552 builtin and then its argument prototype would still apply. */
33553char $ac_func ();
33554/* The GNU C library defines this for functions which it implements
33555 to always fail with ENOSYS. Some functions are actually named
33556 something starting with __ and the normal name is an alias. */
33557#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33558choke me
33559#else
33560char (*f) () = $ac_func;
33561#endif
33562#ifdef __cplusplus
33563}
33564#endif
33565
33566int
33567main ()
33568{
33569return f != $ac_func;
33570 ;
33571 return 0;
33572}
33573_ACEOF
33574rm -f conftest.$ac_objext conftest$ac_exeext
33575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33576 (eval $ac_link) 2>conftest.er1
a848cd7e 33577 ac_status=$?
ac1cb8d3
VS
33578 grep -v '^ *+' conftest.er1 >conftest.err
33579 rm -f conftest.er1
33580 cat conftest.err >&5
a848cd7e
SC
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); } &&
fb00f58d
JS
33583 { ac_try='test -z "$ac_c_werror_flag"
33584 || test ! -s conftest.err'
ac1cb8d3
VS
33585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33586 (eval $ac_try) 2>&5
33587 ac_status=$?
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); }; } &&
33590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33592 (eval $ac_try) 2>&5
33593 ac_status=$?
33594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33595 (exit $ac_status); }; }; then
33596 eval "$as_ac_var=yes"
33597else
33598 echo "$as_me: failed program was:" >&5
33599sed 's/^/| /' conftest.$ac_ext >&5
33600
33601eval "$as_ac_var=no"
33602fi
ac1cb8d3
VS
33603rm -f conftest.err conftest.$ac_objext \
33604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33605fi
33606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33607echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33608if test `eval echo '${'$as_ac_var'}'` = yes; then
33609 cat >>confdefs.h <<_ACEOF
33610#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33611_ACEOF
33612 cat >>confdefs.h <<\_ACEOF
33613#define HAVE_INET_ADDR 1
33614_ACEOF
33615
33616else
33617
33618 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33619echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33620if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33621 echo $ECHO_N "(cached) $ECHO_C" >&6
33622else
33623 ac_check_lib_save_LIBS=$LIBS
33624LIBS="-lnsl $LIBS"
33625cat >conftest.$ac_ext <<_ACEOF
33626/* confdefs.h. */
33627_ACEOF
33628cat confdefs.h >>conftest.$ac_ext
33629cat >>conftest.$ac_ext <<_ACEOF
33630/* end confdefs.h. */
33631
33632/* Override any gcc2 internal prototype to avoid an error. */
33633#ifdef __cplusplus
33634extern "C"
33635#endif
33636/* We use char because int might match the return type of a gcc2
33637 builtin and then its argument prototype would still apply. */
33638char inet_addr ();
33639int
33640main ()
33641{
33642inet_addr ();
33643 ;
33644 return 0;
33645}
33646_ACEOF
33647rm -f conftest.$ac_objext conftest$ac_exeext
33648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33649 (eval $ac_link) 2>conftest.er1
a848cd7e 33650 ac_status=$?
ac1cb8d3
VS
33651 grep -v '^ *+' conftest.er1 >conftest.err
33652 rm -f conftest.er1
33653 cat conftest.err >&5
a848cd7e
SC
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); } &&
fb00f58d
JS
33656 { ac_try='test -z "$ac_c_werror_flag"
33657 || test ! -s conftest.err'
ac1cb8d3
VS
33658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33659 (eval $ac_try) 2>&5
33660 ac_status=$?
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); }; } &&
33663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33665 (eval $ac_try) 2>&5
33666 ac_status=$?
33667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668 (exit $ac_status); }; }; then
33669 ac_cv_lib_nsl_inet_addr=yes
33670else
33671 echo "$as_me: failed program was:" >&5
33672sed 's/^/| /' conftest.$ac_ext >&5
33673
33674ac_cv_lib_nsl_inet_addr=no
33675fi
ac1cb8d3
VS
33676rm -f conftest.err conftest.$ac_objext \
33677 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33678LIBS=$ac_check_lib_save_LIBS
33679fi
33680echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33681echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33682if test $ac_cv_lib_nsl_inet_addr = yes; then
33683 INET_LINK="nsl"
33684else
33685
33686 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33687echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33688if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33689 echo $ECHO_N "(cached) $ECHO_C" >&6
33690else
33691 ac_check_lib_save_LIBS=$LIBS
33692LIBS="-lresolv $LIBS"
33693cat >conftest.$ac_ext <<_ACEOF
33694/* confdefs.h. */
33695_ACEOF
33696cat confdefs.h >>conftest.$ac_ext
33697cat >>conftest.$ac_ext <<_ACEOF
33698/* end confdefs.h. */
33699
33700/* Override any gcc2 internal prototype to avoid an error. */
33701#ifdef __cplusplus
33702extern "C"
33703#endif
33704/* We use char because int might match the return type of a gcc2
33705 builtin and then its argument prototype would still apply. */
33706char inet_addr ();
33707int
33708main ()
33709{
33710inet_addr ();
33711 ;
33712 return 0;
33713}
33714_ACEOF
33715rm -f conftest.$ac_objext conftest$ac_exeext
33716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33717 (eval $ac_link) 2>conftest.er1
a848cd7e 33718 ac_status=$?
ac1cb8d3
VS
33719 grep -v '^ *+' conftest.er1 >conftest.err
33720 rm -f conftest.er1
33721 cat conftest.err >&5
a848cd7e
SC
33722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723 (exit $ac_status); } &&
fb00f58d
JS
33724 { ac_try='test -z "$ac_c_werror_flag"
33725 || test ! -s conftest.err'
ac1cb8d3
VS
33726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33727 (eval $ac_try) 2>&5
33728 ac_status=$?
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); }; } &&
33731 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33733 (eval $ac_try) 2>&5
33734 ac_status=$?
33735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736 (exit $ac_status); }; }; then
33737 ac_cv_lib_resolv_inet_addr=yes
33738else
33739 echo "$as_me: failed program was:" >&5
33740sed 's/^/| /' conftest.$ac_ext >&5
33741
33742ac_cv_lib_resolv_inet_addr=no
33743fi
ac1cb8d3
VS
33744rm -f conftest.err conftest.$ac_objext \
33745 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33746LIBS=$ac_check_lib_save_LIBS
33747fi
33748echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33749echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33750if test $ac_cv_lib_resolv_inet_addr = yes; then
33751 INET_LINK="resolv"
33752else
33753
33754 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33755echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33756if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33757 echo $ECHO_N "(cached) $ECHO_C" >&6
33758else
33759 ac_check_lib_save_LIBS=$LIBS
33760LIBS="-lsocket $LIBS"
33761cat >conftest.$ac_ext <<_ACEOF
33762/* confdefs.h. */
33763_ACEOF
33764cat confdefs.h >>conftest.$ac_ext
33765cat >>conftest.$ac_ext <<_ACEOF
33766/* end confdefs.h. */
33767
33768/* Override any gcc2 internal prototype to avoid an error. */
33769#ifdef __cplusplus
33770extern "C"
33771#endif
33772/* We use char because int might match the return type of a gcc2
33773 builtin and then its argument prototype would still apply. */
33774char inet_addr ();
33775int
33776main ()
33777{
33778inet_addr ();
33779 ;
33780 return 0;
33781}
33782_ACEOF
33783rm -f conftest.$ac_objext conftest$ac_exeext
33784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33785 (eval $ac_link) 2>conftest.er1
a848cd7e 33786 ac_status=$?
ac1cb8d3
VS
33787 grep -v '^ *+' conftest.er1 >conftest.err
33788 rm -f conftest.er1
33789 cat conftest.err >&5
a848cd7e
SC
33790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 (exit $ac_status); } &&
fb00f58d
JS
33792 { ac_try='test -z "$ac_c_werror_flag"
33793 || test ! -s conftest.err'
ac1cb8d3
VS
33794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33795 (eval $ac_try) 2>&5
33796 ac_status=$?
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); }; } &&
33799 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33801 (eval $ac_try) 2>&5
33802 ac_status=$?
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); }; }; then
33805 ac_cv_lib_socket_inet_addr=yes
33806else
33807 echo "$as_me: failed program was:" >&5
33808sed 's/^/| /' conftest.$ac_ext >&5
33809
33810ac_cv_lib_socket_inet_addr=no
33811fi
ac1cb8d3
VS
33812rm -f conftest.err conftest.$ac_objext \
33813 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33814LIBS=$ac_check_lib_save_LIBS
33815fi
33816echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33817echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33818if test $ac_cv_lib_socket_inet_addr = yes; then
33819 INET_LINK="socket"
33820
33821fi
33822
33823
33824
33825fi
33826
33827
33828
33829fi
33830
33831
33832
33833fi
33834done
33835
33836
33837
33838for ac_func in inet_aton
33839do
33840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33841echo "$as_me:$LINENO: checking for $ac_func" >&5
33842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33843if eval "test \"\${$as_ac_var+set}\" = set"; then
33844 echo $ECHO_N "(cached) $ECHO_C" >&6
33845else
33846 cat >conftest.$ac_ext <<_ACEOF
33847/* confdefs.h. */
33848_ACEOF
33849cat confdefs.h >>conftest.$ac_ext
33850cat >>conftest.$ac_ext <<_ACEOF
33851/* end confdefs.h. */
ac1cb8d3
VS
33852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33854#define $ac_func innocuous_$ac_func
33855
a848cd7e
SC
33856/* System header to define __stub macros and hopefully few prototypes,
33857 which can conflict with char $ac_func (); below.
33858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33859 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33860
a848cd7e
SC
33861#ifdef __STDC__
33862# include <limits.h>
33863#else
33864# include <assert.h>
33865#endif
ac1cb8d3
VS
33866
33867#undef $ac_func
33868
a848cd7e
SC
33869/* Override any gcc2 internal prototype to avoid an error. */
33870#ifdef __cplusplus
33871extern "C"
33872{
33873#endif
33874/* We use char because int might match the return type of a gcc2
33875 builtin and then its argument prototype would still apply. */
33876char $ac_func ();
33877/* The GNU C library defines this for functions which it implements
33878 to always fail with ENOSYS. Some functions are actually named
33879 something starting with __ and the normal name is an alias. */
33880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33881choke me
33882#else
33883char (*f) () = $ac_func;
33884#endif
33885#ifdef __cplusplus
33886}
33887#endif
33888
33889int
33890main ()
33891{
33892return f != $ac_func;
33893 ;
33894 return 0;
33895}
33896_ACEOF
33897rm -f conftest.$ac_objext conftest$ac_exeext
33898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33899 (eval $ac_link) 2>conftest.er1
a848cd7e 33900 ac_status=$?
ac1cb8d3
VS
33901 grep -v '^ *+' conftest.er1 >conftest.err
33902 rm -f conftest.er1
33903 cat conftest.err >&5
a848cd7e
SC
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); } &&
fb00f58d
JS
33906 { ac_try='test -z "$ac_c_werror_flag"
33907 || test ! -s conftest.err'
ac1cb8d3
VS
33908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33909 (eval $ac_try) 2>&5
33910 ac_status=$?
33911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912 (exit $ac_status); }; } &&
33913 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33915 (eval $ac_try) 2>&5
33916 ac_status=$?
33917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918 (exit $ac_status); }; }; then
33919 eval "$as_ac_var=yes"
33920else
33921 echo "$as_me: failed program was:" >&5
33922sed 's/^/| /' conftest.$ac_ext >&5
33923
33924eval "$as_ac_var=no"
33925fi
ac1cb8d3
VS
33926rm -f conftest.err conftest.$ac_objext \
33927 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33928fi
33929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33930echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33931if test `eval echo '${'$as_ac_var'}'` = yes; then
33932 cat >>confdefs.h <<_ACEOF
33933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33934_ACEOF
33935 cat >>confdefs.h <<\_ACEOF
33936#define HAVE_INET_ATON 1
33937_ACEOF
33938
33939else
33940
33941 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33942echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33943echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33944if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33945 echo $ECHO_N "(cached) $ECHO_C" >&6
33946else
33947 ac_check_lib_save_LIBS=$LIBS
33948LIBS="-l$INET_LINK $LIBS"
33949cat >conftest.$ac_ext <<_ACEOF
33950/* confdefs.h. */
33951_ACEOF
33952cat confdefs.h >>conftest.$ac_ext
33953cat >>conftest.$ac_ext <<_ACEOF
33954/* end confdefs.h. */
33955
33956/* Override any gcc2 internal prototype to avoid an error. */
33957#ifdef __cplusplus
33958extern "C"
33959#endif
33960/* We use char because int might match the return type of a gcc2
33961 builtin and then its argument prototype would still apply. */
33962char inet_aton ();
33963int
33964main ()
33965{
33966inet_aton ();
33967 ;
33968 return 0;
33969}
33970_ACEOF
33971rm -f conftest.$ac_objext conftest$ac_exeext
33972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33973 (eval $ac_link) 2>conftest.er1
a848cd7e 33974 ac_status=$?
ac1cb8d3
VS
33975 grep -v '^ *+' conftest.er1 >conftest.err
33976 rm -f conftest.er1
33977 cat conftest.err >&5
a848cd7e
SC
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979 (exit $ac_status); } &&
fb00f58d
JS
33980 { ac_try='test -z "$ac_c_werror_flag"
33981 || test ! -s conftest.err'
ac1cb8d3
VS
33982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33983 (eval $ac_try) 2>&5
33984 ac_status=$?
33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 (exit $ac_status); }; } &&
33987 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33989 (eval $ac_try) 2>&5
33990 ac_status=$?
33991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33992 (exit $ac_status); }; }; then
33993 eval "$as_ac_Lib=yes"
33994else
33995 echo "$as_me: failed program was:" >&5
33996sed 's/^/| /' conftest.$ac_ext >&5
33997
33998eval "$as_ac_Lib=no"
33999fi
ac1cb8d3
VS
34000rm -f conftest.err conftest.$ac_objext \
34001 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34002LIBS=$ac_check_lib_save_LIBS
34003fi
34004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34005echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34006if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34007 cat >>confdefs.h <<\_ACEOF
34008#define HAVE_INET_ATON 1
34009_ACEOF
34010
34011fi
34012
34013
34014fi
34015done
34016
34017
34018if test "x$INET_LINK" != "x"; then
34019 cat >>confdefs.h <<\_ACEOF
34020#define HAVE_INET_ADDR 1
34021_ACEOF
34022
34023 INET_LINK=" -l$INET_LINK"
34024fi
34025
34026fi
34027
34028
34029
34030EXTRALIBS_ESD=
34031echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34032echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34033if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34034 echo $ECHO_N "(cached) $ECHO_C" >&6
34035else
34036 ac_check_lib_save_LIBS=$LIBS
34037LIBS="-lesd $LIBS"
34038cat >conftest.$ac_ext <<_ACEOF
34039/* confdefs.h. */
34040_ACEOF
34041cat confdefs.h >>conftest.$ac_ext
34042cat >>conftest.$ac_ext <<_ACEOF
34043/* end confdefs.h. */
34044
34045/* Override any gcc2 internal prototype to avoid an error. */
34046#ifdef __cplusplus
34047extern "C"
34048#endif
34049/* We use char because int might match the return type of a gcc2
34050 builtin and then its argument prototype would still apply. */
34051char esd_close ();
34052int
34053main ()
34054{
34055esd_close ();
34056 ;
34057 return 0;
34058}
34059_ACEOF
34060rm -f conftest.$ac_objext conftest$ac_exeext
34061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34062 (eval $ac_link) 2>conftest.er1
a848cd7e 34063 ac_status=$?
ac1cb8d3
VS
34064 grep -v '^ *+' conftest.er1 >conftest.err
34065 rm -f conftest.er1
34066 cat conftest.err >&5
a848cd7e
SC
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); } &&
fb00f58d
JS
34069 { ac_try='test -z "$ac_c_werror_flag"
34070 || test ! -s conftest.err'
ac1cb8d3
VS
34071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072 (eval $ac_try) 2>&5
34073 ac_status=$?
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; } &&
34076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34078 (eval $ac_try) 2>&5
34079 ac_status=$?
34080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081 (exit $ac_status); }; }; then
34082 ac_cv_lib_esd_esd_close=yes
34083else
34084 echo "$as_me: failed program was:" >&5
34085sed 's/^/| /' conftest.$ac_ext >&5
34086
34087ac_cv_lib_esd_esd_close=no
34088fi
ac1cb8d3
VS
34089rm -f conftest.err conftest.$ac_objext \
34090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34091LIBS=$ac_check_lib_save_LIBS
34092fi
34093echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34094echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34095if test $ac_cv_lib_esd_esd_close = yes; then
34096
34097
34098for ac_header in esd.h
34099do
34100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34101if eval "test \"\${$as_ac_Header+set}\" = set"; then
34102 echo "$as_me:$LINENO: checking for $ac_header" >&5
34103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34104if eval "test \"\${$as_ac_Header+set}\" = set"; then
34105 echo $ECHO_N "(cached) $ECHO_C" >&6
34106fi
34107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34109else
34110 # Is the header compilable?
34111echo "$as_me:$LINENO: checking $ac_header usability" >&5
34112echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34113cat >conftest.$ac_ext <<_ACEOF
34114/* confdefs.h. */
34115_ACEOF
34116cat confdefs.h >>conftest.$ac_ext
34117cat >>conftest.$ac_ext <<_ACEOF
34118/* end confdefs.h. */
34119$ac_includes_default
34120#include <$ac_header>
34121_ACEOF
34122rm -f conftest.$ac_objext
34123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34124 (eval $ac_compile) 2>conftest.er1
a848cd7e 34125 ac_status=$?
ac1cb8d3
VS
34126 grep -v '^ *+' conftest.er1 >conftest.err
34127 rm -f conftest.er1
34128 cat conftest.err >&5
a848cd7e
SC
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); } &&
fb00f58d
JS
34131 { ac_try='test -z "$ac_c_werror_flag"
34132 || test ! -s conftest.err'
ac1cb8d3
VS
34133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34134 (eval $ac_try) 2>&5
34135 ac_status=$?
34136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137 (exit $ac_status); }; } &&
34138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34140 (eval $ac_try) 2>&5
34141 ac_status=$?
34142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143 (exit $ac_status); }; }; then
34144 ac_header_compiler=yes
34145else
34146 echo "$as_me: failed program was:" >&5
34147sed 's/^/| /' conftest.$ac_ext >&5
34148
34149ac_header_compiler=no
34150fi
ac1cb8d3 34151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34153echo "${ECHO_T}$ac_header_compiler" >&6
34154
34155# Is the header present?
34156echo "$as_me:$LINENO: checking $ac_header presence" >&5
34157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34158cat >conftest.$ac_ext <<_ACEOF
34159/* confdefs.h. */
34160_ACEOF
34161cat confdefs.h >>conftest.$ac_ext
34162cat >>conftest.$ac_ext <<_ACEOF
34163/* end confdefs.h. */
34164#include <$ac_header>
34165_ACEOF
34166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34168 ac_status=$?
34169 grep -v '^ *+' conftest.er1 >conftest.err
34170 rm -f conftest.er1
34171 cat conftest.err >&5
34172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173 (exit $ac_status); } >/dev/null; then
34174 if test -s conftest.err; then
34175 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34177 else
34178 ac_cpp_err=
34179 fi
34180else
34181 ac_cpp_err=yes
34182fi
34183if test -z "$ac_cpp_err"; then
34184 ac_header_preproc=yes
34185else
34186 echo "$as_me: failed program was:" >&5
34187sed 's/^/| /' conftest.$ac_ext >&5
34188
34189 ac_header_preproc=no
34190fi
34191rm -f conftest.err conftest.$ac_ext
34192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34193echo "${ECHO_T}$ac_header_preproc" >&6
34194
34195# So? What about this header?
ac1cb8d3
VS
34196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34197 yes:no: )
a848cd7e
SC
34198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34202 ac_header_preproc=yes
a848cd7e 34203 ;;
ac1cb8d3 34204 no:yes:* )
a848cd7e
SC
34205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34217 (
34218 cat <<\_ASBOX
ac1cb8d3
VS
34219## ----------------------------------------- ##
34220## Report this to wx-dev@lists.wxwidgets.org ##
34221## ----------------------------------------- ##
a848cd7e
SC
34222_ASBOX
34223 ) |
34224 sed "s/^/$as_me: WARNING: /" >&2
34225 ;;
34226esac
34227echo "$as_me:$LINENO: checking for $ac_header" >&5
34228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34229if eval "test \"\${$as_ac_Header+set}\" = set"; then
34230 echo $ECHO_N "(cached) $ECHO_C" >&6
34231else
ac1cb8d3 34232 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34233fi
34234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34236
34237fi
34238if test `eval echo '${'$as_ac_Header'}'` = yes; then
34239 cat >>confdefs.h <<_ACEOF
34240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34241_ACEOF
34242
34243 EXTRALIBS_ESD="-lesd"
34244
34245fi
34246
34247done
34248
34249
34250fi
34251
34252
34253
34254echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34255echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34256cat >conftest.$ac_ext <<_ACEOF
34257/* confdefs.h. */
34258_ACEOF
34259cat confdefs.h >>conftest.$ac_ext
34260cat >>conftest.$ac_ext <<_ACEOF
34261/* end confdefs.h. */
34262#ifdef __linux__
34263 #include <linux/cdrom.h>
34264 #else
34265 /* For Solaris */
34266 #include <sys/cdio.h>
34267 #endif
34268
34269int
34270main ()
34271{
34272struct cdrom_tocentry entry, old_entry;
34273 ;
34274 return 0;
34275}
34276_ACEOF
34277rm -f conftest.$ac_objext
34278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34279 (eval $ac_compile) 2>conftest.er1
a848cd7e 34280 ac_status=$?
ac1cb8d3
VS
34281 grep -v '^ *+' conftest.er1 >conftest.err
34282 rm -f conftest.er1
34283 cat conftest.err >&5
a848cd7e
SC
34284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34285 (exit $ac_status); } &&
fb00f58d
JS
34286 { ac_try='test -z "$ac_c_werror_flag"
34287 || test ! -s conftest.err'
ac1cb8d3
VS
34288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34289 (eval $ac_try) 2>&5
34290 ac_status=$?
34291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292 (exit $ac_status); }; } &&
34293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34295 (eval $ac_try) 2>&5
34296 ac_status=$?
34297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34298 (exit $ac_status); }; }; then
34299 echo "$as_me:$LINENO: result: yes" >&5
34300echo "${ECHO_T}yes" >&6
34301 cat >>confdefs.h <<\_ACEOF
34302#define HAVE_KNOWN_CDROM_INTERFACE 1
34303_ACEOF
34304
34305else
34306 echo "$as_me: failed program was:" >&5
34307sed 's/^/| /' conftest.$ac_ext >&5
34308
34309echo "$as_me:$LINENO: result: no" >&5
34310echo "${ECHO_T}no" >&6
34311fi
ac1cb8d3 34312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34313
34314
34315cat >confcache <<\_ACEOF
34316# This file is a shell script that caches the results of configure
34317# tests run on this system so they can be shared between configure
34318# scripts and configure runs, see configure's option --config-cache.
34319# It is not useful on other systems. If it contains results you don't
34320# want to keep, you may remove or edit it.
34321#
34322# config.status only pays attention to the cache file if you give it
34323# the --recheck option to rerun configure.
34324#
34325# `ac_cv_env_foo' variables (set or unset) will be overridden when
34326# loading this file, other *unset* `ac_cv_foo' will be assigned the
34327# following values.
34328
34329_ACEOF
34330
34331# The following way of writing the cache mishandles newlines in values,
34332# but we know of no workaround that is simple, portable, and efficient.
34333# So, don't put newlines in cache variables' values.
34334# Ultrix sh set writes to stderr and can't be redirected directly,
34335# and sets the high bit in the cache file unless we assign to the vars.
34336{
34337 (set) 2>&1 |
34338 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34339 *ac_space=\ *)
34340 # `set' does not quote correctly, so add quotes (double-quote
34341 # substitution turns \\\\ into \\, and sed turns \\ into \).
34342 sed -n \
ac1cb8d3
VS
34343 "s/'/'\\\\''/g;
34344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34345 ;;
34346 *)
34347 # `set' quotes correctly as required by POSIX, so do not add quotes.
34348 sed -n \
ac1cb8d3 34349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34350 ;;
34351 esac;
34352} |
34353 sed '
34354 t clear
34355 : clear
34356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34357 t end
34358 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34359 : end' >>confcache
34360if diff $cache_file confcache >/dev/null 2>&1; then :; else
34361 if test -w $cache_file; then
34362 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34363 cat confcache >$cache_file
34364 else
34365 echo "not updating unwritable cache $cache_file"
34366 fi
34367fi
34368rm -f confcache
34369
34370
34371CPP_MT_FLAG=
34372if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34373
34374
34375 THREADS_LINK=
34376 THREADS_CFLAGS=
34377
34378 if test "$wxUSE_THREADS" = "yes" ; then
34379 if test "$USE_BEOS" = 1; then
34380 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34381echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34382 wxUSE_THREADS="no"
34383 fi
34384 fi
34385
34386 if test "$wxUSE_THREADS" = "yes" ; then
34387
34388
34389 THREAD_OPTS="-pthread"
34390 case "${host}" in
34391 *-*-solaris2* | *-*-sunos4* )
34392 if test "x$GCC" = "xyes"; then
34393 THREAD_OPTS="-pthreads $THREAD_OPTS"
34394 else
34395 THREAD_OPTS="-mt $THREAD_OPTS"
34396 fi
34397 ;;
34398 *-*-freebsd*)
34399 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34400 ;;
34401 *-*-darwin* | *-*-cygwin* )
34402 THREAD_OPTS=""
34403 ;;
34404 *-*-aix*)
34405 THREAD_OPTS="pthreads"
34406 ;;
34407 *-hp-hpux* )
34408 if test "x$GCC" != "xyes"; then
34409 THREAD_OPTS=""
34410 fi
34411 ;;
34412
34413 *-*-irix* )
34414 if test "x$GCC" = "xyes"; then
34415 THREAD_OPTS=""
34416 fi
34417 ;;
34418
34419 *-*-*UnixWare*)
34420 if test "x$GCC" != "xyes"; then
34421 THREAD_OPTS="-Ethread"
34422 fi
34423 ;;
34424 esac
34425
34426 THREAD_OPTS="$THREAD_OPTS pthread none"
34427
34428 THREADS_OK=no
34429 for flag in $THREAD_OPTS; do
34430 case $flag in
34431 none)
34432 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34433echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34434 ;;
34435
34436 -*)
34437 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34438echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34439 THREADS_CFLAGS="$flag"
34440 ;;
34441
34442 *)
34443 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34444echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34445 THREADS_LINK="-l$flag"
34446 ;;
34447 esac
34448
34449 save_LIBS="$LIBS"
34450 save_CFLAGS="$CFLAGS"
34451 LIBS="$THREADS_LINK $LIBS"
34452 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34453
34454 cat >conftest.$ac_ext <<_ACEOF
34455/* confdefs.h. */
34456_ACEOF
34457cat confdefs.h >>conftest.$ac_ext
34458cat >>conftest.$ac_ext <<_ACEOF
34459/* end confdefs.h. */
34460#include <pthread.h>
34461int
34462main ()
34463{
34464pthread_create(0,0,0,0);
34465 ;
34466 return 0;
34467}
34468_ACEOF
34469rm -f conftest.$ac_objext conftest$ac_exeext
34470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34471 (eval $ac_link) 2>conftest.er1
a848cd7e 34472 ac_status=$?
ac1cb8d3
VS
34473 grep -v '^ *+' conftest.er1 >conftest.err
34474 rm -f conftest.er1
34475 cat conftest.err >&5
a848cd7e
SC
34476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477 (exit $ac_status); } &&
fb00f58d
JS
34478 { ac_try='test -z "$ac_c_werror_flag"
34479 || test ! -s conftest.err'
ac1cb8d3
VS
34480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481 (eval $ac_try) 2>&5
34482 ac_status=$?
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); }; } &&
34485 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34487 (eval $ac_try) 2>&5
34488 ac_status=$?
34489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490 (exit $ac_status); }; }; then
34491 THREADS_OK=yes
34492else
34493 echo "$as_me: failed program was:" >&5
34494sed 's/^/| /' conftest.$ac_ext >&5
34495
34496fi
ac1cb8d3
VS
34497rm -f conftest.err conftest.$ac_objext \
34498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34499
34500 LIBS="$save_LIBS"
34501 CFLAGS="$save_CFLAGS"
34502
34503 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34504echo "${ECHO_T}$THREADS_OK" >&6
34505 if test "x$THREADS_OK" = "xyes"; then
34506 break;
34507 fi
34508
34509 THREADS_LINK=""
34510 THREADS_CFLAGS=""
34511 done
34512
34513 if test "x$THREADS_OK" != "xyes"; then
34514 wxUSE_THREADS=no
34515 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34516echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34517 else
34518 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34519 LIBS="$THREADS_LINK $LIBS"
34520
34521 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34522echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34523 flag=no
34524 case "${host}" in
34525 *-aix*)
34526 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34527 flag="-D_THREAD_SAFE"
34528 ;;
34529 *-freebsd*)
34530 flag="-D_THREAD_SAFE"
34531 ;;
34532 *-hp-hpux* )
34533 flag="-D_REENTRANT"
34534 if test "x$GCC" != "xyes"; then
34535 flag="$flag -D_RWSTD_MULTI_THREAD"
34536 fi
34537 ;;
34538 *solaris* | alpha*-osf*)
34539 flag="-D_REENTRANT"
34540 ;;
34541 esac
34542 echo "$as_me:$LINENO: result: ${flag}" >&5
34543echo "${ECHO_T}${flag}" >&6
34544 if test "x$flag" != xno; then
34545 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34546 fi
34547
34548 if test "x$THREADS_CFLAGS" != "x"; then
34549 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34550 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34551 fi
34552 fi
34553 fi
34554
34555 if test "$wxUSE_THREADS" = "yes" ; then
34556
34557for ac_func in thr_setconcurrency
34558do
34559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34560echo "$as_me:$LINENO: checking for $ac_func" >&5
34561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34562if eval "test \"\${$as_ac_var+set}\" = set"; then
34563 echo $ECHO_N "(cached) $ECHO_C" >&6
34564else
34565 cat >conftest.$ac_ext <<_ACEOF
34566/* confdefs.h. */
34567_ACEOF
34568cat confdefs.h >>conftest.$ac_ext
34569cat >>conftest.$ac_ext <<_ACEOF
34570/* end confdefs.h. */
ac1cb8d3
VS
34571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34573#define $ac_func innocuous_$ac_func
34574
a848cd7e
SC
34575/* System header to define __stub macros and hopefully few prototypes,
34576 which can conflict with char $ac_func (); below.
34577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34578 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34579
a848cd7e
SC
34580#ifdef __STDC__
34581# include <limits.h>
34582#else
34583# include <assert.h>
34584#endif
ac1cb8d3
VS
34585
34586#undef $ac_func
34587
a848cd7e
SC
34588/* Override any gcc2 internal prototype to avoid an error. */
34589#ifdef __cplusplus
34590extern "C"
34591{
34592#endif
34593/* We use char because int might match the return type of a gcc2
34594 builtin and then its argument prototype would still apply. */
34595char $ac_func ();
34596/* The GNU C library defines this for functions which it implements
34597 to always fail with ENOSYS. Some functions are actually named
34598 something starting with __ and the normal name is an alias. */
34599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34600choke me
34601#else
34602char (*f) () = $ac_func;
34603#endif
34604#ifdef __cplusplus
34605}
34606#endif
34607
34608int
34609main ()
34610{
34611return f != $ac_func;
34612 ;
34613 return 0;
34614}
34615_ACEOF
34616rm -f conftest.$ac_objext conftest$ac_exeext
34617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34618 (eval $ac_link) 2>conftest.er1
a848cd7e 34619 ac_status=$?
ac1cb8d3
VS
34620 grep -v '^ *+' conftest.er1 >conftest.err
34621 rm -f conftest.er1
34622 cat conftest.err >&5
a848cd7e
SC
34623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624 (exit $ac_status); } &&
fb00f58d
JS
34625 { ac_try='test -z "$ac_c_werror_flag"
34626 || test ! -s conftest.err'
ac1cb8d3
VS
34627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34628 (eval $ac_try) 2>&5
34629 ac_status=$?
34630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631 (exit $ac_status); }; } &&
34632 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34634 (eval $ac_try) 2>&5
34635 ac_status=$?
34636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637 (exit $ac_status); }; }; then
34638 eval "$as_ac_var=yes"
34639else
34640 echo "$as_me: failed program was:" >&5
34641sed 's/^/| /' conftest.$ac_ext >&5
34642
34643eval "$as_ac_var=no"
34644fi
ac1cb8d3
VS
34645rm -f conftest.err conftest.$ac_objext \
34646 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34647fi
34648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34650if test `eval echo '${'$as_ac_var'}'` = yes; then
34651 cat >>confdefs.h <<_ACEOF
34652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34653_ACEOF
34654
34655fi
34656done
34657
34658
34659
34660for ac_header in sched.h
34661do
34662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34663if eval "test \"\${$as_ac_Header+set}\" = set"; then
34664 echo "$as_me:$LINENO: checking for $ac_header" >&5
34665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34666if eval "test \"\${$as_ac_Header+set}\" = set"; then
34667 echo $ECHO_N "(cached) $ECHO_C" >&6
34668fi
34669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34671else
34672 # Is the header compilable?
34673echo "$as_me:$LINENO: checking $ac_header usability" >&5
34674echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34675cat >conftest.$ac_ext <<_ACEOF
34676/* confdefs.h. */
34677_ACEOF
34678cat confdefs.h >>conftest.$ac_ext
34679cat >>conftest.$ac_ext <<_ACEOF
34680/* end confdefs.h. */
34681$ac_includes_default
34682#include <$ac_header>
34683_ACEOF
34684rm -f conftest.$ac_objext
34685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34686 (eval $ac_compile) 2>conftest.er1
a848cd7e 34687 ac_status=$?
ac1cb8d3
VS
34688 grep -v '^ *+' conftest.er1 >conftest.err
34689 rm -f conftest.er1
34690 cat conftest.err >&5
a848cd7e
SC
34691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692 (exit $ac_status); } &&
fb00f58d
JS
34693 { ac_try='test -z "$ac_c_werror_flag"
34694 || test ! -s conftest.err'
ac1cb8d3
VS
34695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34696 (eval $ac_try) 2>&5
34697 ac_status=$?
34698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699 (exit $ac_status); }; } &&
34700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34702 (eval $ac_try) 2>&5
34703 ac_status=$?
34704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705 (exit $ac_status); }; }; then
34706 ac_header_compiler=yes
34707else
34708 echo "$as_me: failed program was:" >&5
34709sed 's/^/| /' conftest.$ac_ext >&5
34710
34711ac_header_compiler=no
34712fi
ac1cb8d3 34713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34715echo "${ECHO_T}$ac_header_compiler" >&6
34716
34717# Is the header present?
34718echo "$as_me:$LINENO: checking $ac_header presence" >&5
34719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34720cat >conftest.$ac_ext <<_ACEOF
34721/* confdefs.h. */
34722_ACEOF
34723cat confdefs.h >>conftest.$ac_ext
34724cat >>conftest.$ac_ext <<_ACEOF
34725/* end confdefs.h. */
34726#include <$ac_header>
34727_ACEOF
34728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34730 ac_status=$?
34731 grep -v '^ *+' conftest.er1 >conftest.err
34732 rm -f conftest.er1
34733 cat conftest.err >&5
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); } >/dev/null; then
34736 if test -s conftest.err; then
34737 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34739 else
34740 ac_cpp_err=
34741 fi
34742else
34743 ac_cpp_err=yes
34744fi
34745if test -z "$ac_cpp_err"; then
34746 ac_header_preproc=yes
34747else
34748 echo "$as_me: failed program was:" >&5
34749sed 's/^/| /' conftest.$ac_ext >&5
34750
34751 ac_header_preproc=no
34752fi
34753rm -f conftest.err conftest.$ac_ext
34754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34755echo "${ECHO_T}$ac_header_preproc" >&6
34756
34757# So? What about this header?
ac1cb8d3
VS
34758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34759 yes:no: )
a848cd7e
SC
34760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34764 ac_header_preproc=yes
a848cd7e 34765 ;;
ac1cb8d3 34766 no:yes:* )
a848cd7e
SC
34767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34779 (
34780 cat <<\_ASBOX
ac1cb8d3
VS
34781## ----------------------------------------- ##
34782## Report this to wx-dev@lists.wxwidgets.org ##
34783## ----------------------------------------- ##
a848cd7e
SC
34784_ASBOX
34785 ) |
34786 sed "s/^/$as_me: WARNING: /" >&2
34787 ;;
34788esac
34789echo "$as_me:$LINENO: checking for $ac_header" >&5
34790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34791if eval "test \"\${$as_ac_Header+set}\" = set"; then
34792 echo $ECHO_N "(cached) $ECHO_C" >&6
34793else
ac1cb8d3 34794 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34795fi
34796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34798
34799fi
34800if test `eval echo '${'$as_ac_Header'}'` = yes; then
34801 cat >>confdefs.h <<_ACEOF
34802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34803_ACEOF
34804
34805fi
34806
34807done
34808
34809 if test "$ac_cv_header_sched_h" = "yes"; then
34810 echo "$as_me:$LINENO: checking for sched_yield" >&5
34811echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34812if test "${ac_cv_func_sched_yield+set}" = set; then
34813 echo $ECHO_N "(cached) $ECHO_C" >&6
34814else
34815 cat >conftest.$ac_ext <<_ACEOF
34816/* confdefs.h. */
34817_ACEOF
34818cat confdefs.h >>conftest.$ac_ext
34819cat >>conftest.$ac_ext <<_ACEOF
34820/* end confdefs.h. */
ac1cb8d3
VS
34821/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34823#define sched_yield innocuous_sched_yield
34824
a848cd7e
SC
34825/* System header to define __stub macros and hopefully few prototypes,
34826 which can conflict with char sched_yield (); below.
34827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34828 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34829
a848cd7e
SC
34830#ifdef __STDC__
34831# include <limits.h>
34832#else
34833# include <assert.h>
34834#endif
ac1cb8d3
VS
34835
34836#undef sched_yield
34837
a848cd7e
SC
34838/* Override any gcc2 internal prototype to avoid an error. */
34839#ifdef __cplusplus
34840extern "C"
34841{
34842#endif
34843/* We use char because int might match the return type of a gcc2
34844 builtin and then its argument prototype would still apply. */
34845char sched_yield ();
34846/* The GNU C library defines this for functions which it implements
34847 to always fail with ENOSYS. Some functions are actually named
34848 something starting with __ and the normal name is an alias. */
34849#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34850choke me
34851#else
34852char (*f) () = sched_yield;
34853#endif
34854#ifdef __cplusplus
34855}
34856#endif
34857
34858int
34859main ()
34860{
34861return f != sched_yield;
34862 ;
34863 return 0;
34864}
34865_ACEOF
34866rm -f conftest.$ac_objext conftest$ac_exeext
34867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34868 (eval $ac_link) 2>conftest.er1
a848cd7e 34869 ac_status=$?
ac1cb8d3
VS
34870 grep -v '^ *+' conftest.er1 >conftest.err
34871 rm -f conftest.er1
34872 cat conftest.err >&5
a848cd7e
SC
34873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34874 (exit $ac_status); } &&
fb00f58d
JS
34875 { ac_try='test -z "$ac_c_werror_flag"
34876 || test ! -s conftest.err'
ac1cb8d3
VS
34877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34878 (eval $ac_try) 2>&5
34879 ac_status=$?
34880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34881 (exit $ac_status); }; } &&
34882 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34884 (eval $ac_try) 2>&5
34885 ac_status=$?
34886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34887 (exit $ac_status); }; }; then
34888 ac_cv_func_sched_yield=yes
34889else
34890 echo "$as_me: failed program was:" >&5
34891sed 's/^/| /' conftest.$ac_ext >&5
34892
34893ac_cv_func_sched_yield=no
34894fi
ac1cb8d3
VS
34895rm -f conftest.err conftest.$ac_objext \
34896 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34897fi
34898echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34899echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34900if test $ac_cv_func_sched_yield = yes; then
34901 cat >>confdefs.h <<\_ACEOF
34902#define HAVE_SCHED_YIELD 1
34903_ACEOF
34904
34905else
34906
34907 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34908echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34909if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34910 echo $ECHO_N "(cached) $ECHO_C" >&6
34911else
34912 ac_check_lib_save_LIBS=$LIBS
34913LIBS="-lposix4 $LIBS"
34914cat >conftest.$ac_ext <<_ACEOF
34915/* confdefs.h. */
34916_ACEOF
34917cat confdefs.h >>conftest.$ac_ext
34918cat >>conftest.$ac_ext <<_ACEOF
34919/* end confdefs.h. */
34920
34921/* Override any gcc2 internal prototype to avoid an error. */
34922#ifdef __cplusplus
34923extern "C"
34924#endif
34925/* We use char because int might match the return type of a gcc2
34926 builtin and then its argument prototype would still apply. */
34927char sched_yield ();
34928int
34929main ()
34930{
34931sched_yield ();
34932 ;
34933 return 0;
34934}
34935_ACEOF
34936rm -f conftest.$ac_objext conftest$ac_exeext
34937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34938 (eval $ac_link) 2>conftest.er1
a848cd7e 34939 ac_status=$?
ac1cb8d3
VS
34940 grep -v '^ *+' conftest.er1 >conftest.err
34941 rm -f conftest.er1
34942 cat conftest.err >&5
a848cd7e
SC
34943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944 (exit $ac_status); } &&
fb00f58d
JS
34945 { ac_try='test -z "$ac_c_werror_flag"
34946 || test ! -s conftest.err'
ac1cb8d3
VS
34947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34948 (eval $ac_try) 2>&5
34949 ac_status=$?
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); }; } &&
34952 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34954 (eval $ac_try) 2>&5
34955 ac_status=$?
34956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957 (exit $ac_status); }; }; then
34958 ac_cv_lib_posix4_sched_yield=yes
34959else
34960 echo "$as_me: failed program was:" >&5
34961sed 's/^/| /' conftest.$ac_ext >&5
34962
34963ac_cv_lib_posix4_sched_yield=no
34964fi
ac1cb8d3
VS
34965rm -f conftest.err conftest.$ac_objext \
34966 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34967LIBS=$ac_check_lib_save_LIBS
34968fi
34969echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34970echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34971if test $ac_cv_lib_posix4_sched_yield = yes; then
34972 cat >>confdefs.h <<\_ACEOF
34973#define HAVE_SCHED_YIELD 1
34974_ACEOF
34975 POSIX4_LINK=" -lposix4"
34976else
34977 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34978echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34979
34980fi
34981
34982
34983
34984fi
34985
34986 fi
34987
34988 HAVE_PRIOR_FUNCS=0
34989 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34990echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34991if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34992 echo $ECHO_N "(cached) $ECHO_C" >&6
34993else
34994 cat >conftest.$ac_ext <<_ACEOF
34995/* confdefs.h. */
34996_ACEOF
34997cat confdefs.h >>conftest.$ac_ext
34998cat >>conftest.$ac_ext <<_ACEOF
34999/* end confdefs.h. */
ac1cb8d3
VS
35000/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
35001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35002#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
35003
a848cd7e
SC
35004/* System header to define __stub macros and hopefully few prototypes,
35005 which can conflict with char pthread_attr_getschedpolicy (); below.
35006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35007 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35008
a848cd7e
SC
35009#ifdef __STDC__
35010# include <limits.h>
35011#else
35012# include <assert.h>
35013#endif
ac1cb8d3
VS
35014
35015#undef pthread_attr_getschedpolicy
35016
a848cd7e
SC
35017/* Override any gcc2 internal prototype to avoid an error. */
35018#ifdef __cplusplus
35019extern "C"
35020{
35021#endif
35022/* We use char because int might match the return type of a gcc2
35023 builtin and then its argument prototype would still apply. */
35024char pthread_attr_getschedpolicy ();
35025/* The GNU C library defines this for functions which it implements
35026 to always fail with ENOSYS. Some functions are actually named
35027 something starting with __ and the normal name is an alias. */
35028#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35029choke me
35030#else
35031char (*f) () = pthread_attr_getschedpolicy;
35032#endif
35033#ifdef __cplusplus
35034}
35035#endif
35036
35037int
35038main ()
35039{
35040return f != pthread_attr_getschedpolicy;
35041 ;
35042 return 0;
35043}
35044_ACEOF
35045rm -f conftest.$ac_objext conftest$ac_exeext
35046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35047 (eval $ac_link) 2>conftest.er1
a848cd7e 35048 ac_status=$?
ac1cb8d3
VS
35049 grep -v '^ *+' conftest.er1 >conftest.err
35050 rm -f conftest.er1
35051 cat conftest.err >&5
a848cd7e
SC
35052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053 (exit $ac_status); } &&
fb00f58d
JS
35054 { ac_try='test -z "$ac_c_werror_flag"
35055 || test ! -s conftest.err'
ac1cb8d3
VS
35056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35057 (eval $ac_try) 2>&5
35058 ac_status=$?
35059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060 (exit $ac_status); }; } &&
35061 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35063 (eval $ac_try) 2>&5
35064 ac_status=$?
35065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066 (exit $ac_status); }; }; then
35067 ac_cv_func_pthread_attr_getschedpolicy=yes
35068else
35069 echo "$as_me: failed program was:" >&5
35070sed 's/^/| /' conftest.$ac_ext >&5
35071
35072ac_cv_func_pthread_attr_getschedpolicy=no
35073fi
ac1cb8d3
VS
35074rm -f conftest.err conftest.$ac_objext \
35075 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35076fi
35077echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35078echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35079if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35080 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35081echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35082if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35083 echo $ECHO_N "(cached) $ECHO_C" >&6
35084else
35085 cat >conftest.$ac_ext <<_ACEOF
35086/* confdefs.h. */
35087_ACEOF
35088cat confdefs.h >>conftest.$ac_ext
35089cat >>conftest.$ac_ext <<_ACEOF
35090/* end confdefs.h. */
ac1cb8d3
VS
35091/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35093#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35094
a848cd7e
SC
35095/* System header to define __stub macros and hopefully few prototypes,
35096 which can conflict with char pthread_attr_setschedparam (); below.
35097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35098 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35099
a848cd7e
SC
35100#ifdef __STDC__
35101# include <limits.h>
35102#else
35103# include <assert.h>
35104#endif
ac1cb8d3
VS
35105
35106#undef pthread_attr_setschedparam
35107
a848cd7e
SC
35108/* Override any gcc2 internal prototype to avoid an error. */
35109#ifdef __cplusplus
35110extern "C"
35111{
35112#endif
35113/* We use char because int might match the return type of a gcc2
35114 builtin and then its argument prototype would still apply. */
35115char pthread_attr_setschedparam ();
35116/* The GNU C library defines this for functions which it implements
35117 to always fail with ENOSYS. Some functions are actually named
35118 something starting with __ and the normal name is an alias. */
35119#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35120choke me
35121#else
35122char (*f) () = pthread_attr_setschedparam;
35123#endif
35124#ifdef __cplusplus
35125}
35126#endif
35127
35128int
35129main ()
35130{
35131return f != pthread_attr_setschedparam;
35132 ;
35133 return 0;
35134}
35135_ACEOF
35136rm -f conftest.$ac_objext conftest$ac_exeext
35137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35138 (eval $ac_link) 2>conftest.er1
a848cd7e 35139 ac_status=$?
ac1cb8d3
VS
35140 grep -v '^ *+' conftest.er1 >conftest.err
35141 rm -f conftest.er1
35142 cat conftest.err >&5
a848cd7e
SC
35143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35144 (exit $ac_status); } &&
fb00f58d
JS
35145 { ac_try='test -z "$ac_c_werror_flag"
35146 || test ! -s conftest.err'
ac1cb8d3
VS
35147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35148 (eval $ac_try) 2>&5
35149 ac_status=$?
35150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151 (exit $ac_status); }; } &&
35152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35154 (eval $ac_try) 2>&5
35155 ac_status=$?
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); }; }; then
35158 ac_cv_func_pthread_attr_setschedparam=yes
35159else
35160 echo "$as_me: failed program was:" >&5
35161sed 's/^/| /' conftest.$ac_ext >&5
35162
35163ac_cv_func_pthread_attr_setschedparam=no
35164fi
ac1cb8d3
VS
35165rm -f conftest.err conftest.$ac_objext \
35166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35167fi
35168echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35169echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35170if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35171 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35172echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35173if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35174 echo $ECHO_N "(cached) $ECHO_C" >&6
35175else
35176 cat >conftest.$ac_ext <<_ACEOF
35177/* confdefs.h. */
35178_ACEOF
35179cat confdefs.h >>conftest.$ac_ext
35180cat >>conftest.$ac_ext <<_ACEOF
35181/* end confdefs.h. */
ac1cb8d3
VS
35182/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35184#define sched_get_priority_max innocuous_sched_get_priority_max
35185
a848cd7e
SC
35186/* System header to define __stub macros and hopefully few prototypes,
35187 which can conflict with char sched_get_priority_max (); below.
35188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35189 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35190
a848cd7e
SC
35191#ifdef __STDC__
35192# include <limits.h>
35193#else
35194# include <assert.h>
35195#endif
ac1cb8d3
VS
35196
35197#undef sched_get_priority_max
35198
a848cd7e
SC
35199/* Override any gcc2 internal prototype to avoid an error. */
35200#ifdef __cplusplus
35201extern "C"
35202{
35203#endif
35204/* We use char because int might match the return type of a gcc2
35205 builtin and then its argument prototype would still apply. */
35206char sched_get_priority_max ();
35207/* The GNU C library defines this for functions which it implements
35208 to always fail with ENOSYS. Some functions are actually named
35209 something starting with __ and the normal name is an alias. */
35210#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35211choke me
35212#else
35213char (*f) () = sched_get_priority_max;
35214#endif
35215#ifdef __cplusplus
35216}
35217#endif
35218
35219int
35220main ()
35221{
35222return f != sched_get_priority_max;
35223 ;
35224 return 0;
35225}
35226_ACEOF
35227rm -f conftest.$ac_objext conftest$ac_exeext
35228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35229 (eval $ac_link) 2>conftest.er1
a848cd7e 35230 ac_status=$?
ac1cb8d3
VS
35231 grep -v '^ *+' conftest.er1 >conftest.err
35232 rm -f conftest.er1
35233 cat conftest.err >&5
a848cd7e
SC
35234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35235 (exit $ac_status); } &&
fb00f58d
JS
35236 { ac_try='test -z "$ac_c_werror_flag"
35237 || test ! -s conftest.err'
ac1cb8d3
VS
35238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35239 (eval $ac_try) 2>&5
35240 ac_status=$?
35241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35242 (exit $ac_status); }; } &&
35243 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35245 (eval $ac_try) 2>&5
35246 ac_status=$?
35247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); }; }; then
35249 ac_cv_func_sched_get_priority_max=yes
35250else
35251 echo "$as_me: failed program was:" >&5
35252sed 's/^/| /' conftest.$ac_ext >&5
35253
35254ac_cv_func_sched_get_priority_max=no
35255fi
ac1cb8d3
VS
35256rm -f conftest.err conftest.$ac_objext \
35257 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35258fi
35259echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35260echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35261if test $ac_cv_func_sched_get_priority_max = yes; then
35262 HAVE_PRIOR_FUNCS=1
35263else
35264 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35265echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35266if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35267 echo $ECHO_N "(cached) $ECHO_C" >&6
35268else
35269 ac_check_lib_save_LIBS=$LIBS
35270LIBS="-lposix4 $LIBS"
35271cat >conftest.$ac_ext <<_ACEOF
35272/* confdefs.h. */
35273_ACEOF
35274cat confdefs.h >>conftest.$ac_ext
35275cat >>conftest.$ac_ext <<_ACEOF
35276/* end confdefs.h. */
35277
35278/* Override any gcc2 internal prototype to avoid an error. */
35279#ifdef __cplusplus
35280extern "C"
35281#endif
35282/* We use char because int might match the return type of a gcc2
35283 builtin and then its argument prototype would still apply. */
35284char sched_get_priority_max ();
35285int
35286main ()
35287{
35288sched_get_priority_max ();
35289 ;
35290 return 0;
35291}
35292_ACEOF
35293rm -f conftest.$ac_objext conftest$ac_exeext
35294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35295 (eval $ac_link) 2>conftest.er1
a848cd7e 35296 ac_status=$?
ac1cb8d3
VS
35297 grep -v '^ *+' conftest.er1 >conftest.err
35298 rm -f conftest.er1
35299 cat conftest.err >&5
a848cd7e
SC
35300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301 (exit $ac_status); } &&
fb00f58d
JS
35302 { ac_try='test -z "$ac_c_werror_flag"
35303 || test ! -s conftest.err'
ac1cb8d3
VS
35304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35305 (eval $ac_try) 2>&5
35306 ac_status=$?
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); }; } &&
35309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35311 (eval $ac_try) 2>&5
35312 ac_status=$?
35313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314 (exit $ac_status); }; }; then
35315 ac_cv_lib_posix4_sched_get_priority_max=yes
35316else
35317 echo "$as_me: failed program was:" >&5
35318sed 's/^/| /' conftest.$ac_ext >&5
35319
35320ac_cv_lib_posix4_sched_get_priority_max=no
35321fi
ac1cb8d3
VS
35322rm -f conftest.err conftest.$ac_objext \
35323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35324LIBS=$ac_check_lib_save_LIBS
35325fi
35326echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35327echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35328if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35329
35330 HAVE_PRIOR_FUNCS=1
35331 POSIX4_LINK=" -lposix4"
35332
35333fi
35334
35335
35336fi
35337
35338
35339fi
35340
35341
35342fi
35343
35344
35345 if test "$HAVE_PRIOR_FUNCS" = 1; then
35346 cat >>confdefs.h <<\_ACEOF
35347#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35348_ACEOF
35349
35350 else
35351 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35352echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35353 fi
35354
35355 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35356echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35357if test "${ac_cv_func_pthread_cancel+set}" = set; then
35358 echo $ECHO_N "(cached) $ECHO_C" >&6
35359else
35360 cat >conftest.$ac_ext <<_ACEOF
35361/* confdefs.h. */
35362_ACEOF
35363cat confdefs.h >>conftest.$ac_ext
35364cat >>conftest.$ac_ext <<_ACEOF
35365/* end confdefs.h. */
ac1cb8d3
VS
35366/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35368#define pthread_cancel innocuous_pthread_cancel
35369
a848cd7e
SC
35370/* System header to define __stub macros and hopefully few prototypes,
35371 which can conflict with char pthread_cancel (); below.
35372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35373 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35374
a848cd7e
SC
35375#ifdef __STDC__
35376# include <limits.h>
35377#else
35378# include <assert.h>
35379#endif
ac1cb8d3
VS
35380
35381#undef pthread_cancel
35382
a848cd7e
SC
35383/* Override any gcc2 internal prototype to avoid an error. */
35384#ifdef __cplusplus
35385extern "C"
35386{
35387#endif
35388/* We use char because int might match the return type of a gcc2
35389 builtin and then its argument prototype would still apply. */
35390char pthread_cancel ();
35391/* The GNU C library defines this for functions which it implements
35392 to always fail with ENOSYS. Some functions are actually named
35393 something starting with __ and the normal name is an alias. */
35394#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35395choke me
35396#else
35397char (*f) () = pthread_cancel;
35398#endif
35399#ifdef __cplusplus
35400}
35401#endif
35402
35403int
35404main ()
35405{
35406return f != pthread_cancel;
35407 ;
35408 return 0;
35409}
35410_ACEOF
35411rm -f conftest.$ac_objext conftest$ac_exeext
35412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35413 (eval $ac_link) 2>conftest.er1
a848cd7e 35414 ac_status=$?
ac1cb8d3
VS
35415 grep -v '^ *+' conftest.er1 >conftest.err
35416 rm -f conftest.er1
35417 cat conftest.err >&5
a848cd7e
SC
35418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419 (exit $ac_status); } &&
fb00f58d
JS
35420 { ac_try='test -z "$ac_c_werror_flag"
35421 || test ! -s conftest.err'
ac1cb8d3
VS
35422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35423 (eval $ac_try) 2>&5
35424 ac_status=$?
35425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426 (exit $ac_status); }; } &&
35427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35429 (eval $ac_try) 2>&5
35430 ac_status=$?
35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); }; }; then
35433 ac_cv_func_pthread_cancel=yes
35434else
35435 echo "$as_me: failed program was:" >&5
35436sed 's/^/| /' conftest.$ac_ext >&5
35437
35438ac_cv_func_pthread_cancel=no
35439fi
ac1cb8d3
VS
35440rm -f conftest.err conftest.$ac_objext \
35441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35442fi
35443echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35444echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35445if test $ac_cv_func_pthread_cancel = yes; then
35446 cat >>confdefs.h <<\_ACEOF
35447#define HAVE_PTHREAD_CANCEL 1
35448_ACEOF
35449
35450else
35451 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35452echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35453fi
35454
35455
35456
35457
35458 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35459echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35460if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35461 echo $ECHO_N "(cached) $ECHO_C" >&6
35462else
35463
35464 cat >conftest.$ac_ext <<_ACEOF
35465/* confdefs.h. */
35466_ACEOF
35467cat confdefs.h >>conftest.$ac_ext
35468cat >>conftest.$ac_ext <<_ACEOF
35469/* end confdefs.h. */
35470#include <pthread.h>
35471int
35472main ()
35473{
35474
35475 pthread_mutexattr_t attr;
35476 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35477
35478 ;
35479 return 0;
35480}
35481_ACEOF
35482rm -f conftest.$ac_objext
35483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35484 (eval $ac_compile) 2>conftest.er1
a848cd7e 35485 ac_status=$?
ac1cb8d3
VS
35486 grep -v '^ *+' conftest.er1 >conftest.err
35487 rm -f conftest.er1
35488 cat conftest.err >&5
a848cd7e
SC
35489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490 (exit $ac_status); } &&
fb00f58d
JS
35491 { ac_try='test -z "$ac_c_werror_flag"
35492 || test ! -s conftest.err'
ac1cb8d3
VS
35493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35494 (eval $ac_try) 2>&5
35495 ac_status=$?
35496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497 (exit $ac_status); }; } &&
35498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35500 (eval $ac_try) 2>&5
35501 ac_status=$?
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); }; }; then
35504
35505 wx_cv_type_pthread_mutexattr_t=yes
35506
35507else
35508 echo "$as_me: failed program was:" >&5
35509sed 's/^/| /' conftest.$ac_ext >&5
35510
35511
35512 wx_cv_type_pthread_mutexattr_t=no
35513
35514
35515fi
ac1cb8d3 35516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35517
35518fi
35519echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35520echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35521
35522 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35523 cat >>confdefs.h <<\_ACEOF
35524#define HAVE_PTHREAD_MUTEXATTR_T 1
35525_ACEOF
35526
35527 else
35528 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35529echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35530if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35531 echo $ECHO_N "(cached) $ECHO_C" >&6
35532else
35533
35534 cat >conftest.$ac_ext <<_ACEOF
35535/* confdefs.h. */
35536_ACEOF
35537cat confdefs.h >>conftest.$ac_ext
35538cat >>conftest.$ac_ext <<_ACEOF
35539/* end confdefs.h. */
35540#include <pthread.h>
35541int
35542main ()
35543{
35544
35545 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35546
35547 ;
35548 return 0;
35549}
35550_ACEOF
35551rm -f conftest.$ac_objext
35552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35553 (eval $ac_compile) 2>conftest.er1
a848cd7e 35554 ac_status=$?
ac1cb8d3
VS
35555 grep -v '^ *+' conftest.er1 >conftest.err
35556 rm -f conftest.er1
35557 cat conftest.err >&5
a848cd7e
SC
35558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559 (exit $ac_status); } &&
fb00f58d
JS
35560 { ac_try='test -z "$ac_c_werror_flag"
35561 || test ! -s conftest.err'
ac1cb8d3
VS
35562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35563 (eval $ac_try) 2>&5
35564 ac_status=$?
35565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566 (exit $ac_status); }; } &&
35567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35569 (eval $ac_try) 2>&5
35570 ac_status=$?
35571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572 (exit $ac_status); }; }; then
35573
35574 wx_cv_type_pthread_rec_mutex_init=yes
35575
35576else
35577 echo "$as_me: failed program was:" >&5
35578sed 's/^/| /' conftest.$ac_ext >&5
35579
35580
35581 wx_cv_type_pthread_rec_mutex_init=no
35582
35583
35584fi
ac1cb8d3 35585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35586
35587fi
35588echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35589echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35590 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35591 cat >>confdefs.h <<\_ACEOF
35592#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35593_ACEOF
35594
35595 else
35596 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35597echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35598 fi
35599 fi
35600 fi
35601
35602else
35603 if test "$wxUSE_THREADS" = "yes" ; then
35604 case "${host}" in
35605 *-*-mingw32* )
35606 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35607echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35608if test "${wx_cv_cflags_mthread+set}" = set; then
35609 echo $ECHO_N "(cached) $ECHO_C" >&6
35610else
35611
35612 CFLAGS_OLD="$CFLAGS"
35613 CFLAGS="$CFLAGS -mthreads"
35614 cat >conftest.$ac_ext <<_ACEOF
35615/* confdefs.h. */
35616_ACEOF
35617cat confdefs.h >>conftest.$ac_ext
35618cat >>conftest.$ac_ext <<_ACEOF
35619/* end confdefs.h. */
35620
35621int
35622main ()
35623{
35624
35625 ;
35626 return 0;
35627}
35628_ACEOF
35629rm -f conftest.$ac_objext
35630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35631 (eval $ac_compile) 2>conftest.er1
a848cd7e 35632 ac_status=$?
ac1cb8d3
VS
35633 grep -v '^ *+' conftest.er1 >conftest.err
35634 rm -f conftest.er1
35635 cat conftest.err >&5
a848cd7e
SC
35636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35637 (exit $ac_status); } &&
fb00f58d
JS
35638 { ac_try='test -z "$ac_c_werror_flag"
35639 || test ! -s conftest.err'
ac1cb8d3
VS
35640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35641 (eval $ac_try) 2>&5
35642 ac_status=$?
35643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35644 (exit $ac_status); }; } &&
35645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35647 (eval $ac_try) 2>&5
35648 ac_status=$?
35649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650 (exit $ac_status); }; }; then
35651 wx_cv_cflags_mthread=yes
35652else
35653 echo "$as_me: failed program was:" >&5
35654sed 's/^/| /' conftest.$ac_ext >&5
35655
35656wx_cv_cflags_mthread=no
35657
35658fi
ac1cb8d3 35659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35660
35661
35662fi
35663echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35664echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35665
35666 if test "$wx_cv_cflags_mthread" = "yes"; then
35667 CXXFLAGS="$CXXFLAGS -mthreads"
35668 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35669 LDFLAGS="$LDFLAGS -mthreads"
35670 else
35671 CFLAGS="$CFLAGS_OLD"
35672 fi
35673 ;;
35674 *-pc-os2*emx )
35675 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35676 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35677 LDFLAGS="$LDFLAGS -Zmt"
35678 ;;
35679 esac
35680 fi
35681fi
35682
35683if test "$wxUSE_THREADS" = "yes"; then
35684 cat >>confdefs.h <<\_ACEOF
35685#define wxUSE_THREADS 1
35686_ACEOF
35687
35688
35689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35690else
35691 if test "$ac_cv_func_strtok_r" = "yes"; then
35692 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35693echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35694 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35695 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35696 echo "$as_me:$LINENO: result: yes" >&5
35697echo "${ECHO_T}yes" >&6
35698 else
35699 echo "$as_me:$LINENO: result: no" >&5
35700echo "${ECHO_T}no" >&6
35701 fi
35702 fi
35703fi
35704
35705if test "$WXGTK20" = 1 ; then
35706 cat >>confdefs.h <<_ACEOF
35707#define __WXGTK20__ $WXGTK20
35708_ACEOF
35709
35710 WXGTK12=1
35711fi
35712
35713if test "$WXGTK12" = 1 ; then
35714 cat >>confdefs.h <<_ACEOF
35715#define __WXGTK12__ $WXGTK12
35716_ACEOF
35717
35718fi
35719
35720if test "$WXGTK127" = 1 ; then
35721 cat >>confdefs.h <<_ACEOF
35722#define __WXGTK127__ $WXGTK127
35723_ACEOF
35724
35725fi
35726
35727if test "$WXGPE" = 1 ; then
35728 cat >>confdefs.h <<_ACEOF
35729#define __WXGPE__ $WXGPE
35730_ACEOF
35731
35732fi
35733
35734WXDEBUG=
35735
35736if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35737 WXDEBUG="-g"
35738 wxUSE_OPTIMISE=no
35739fi
35740
35741if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35742 wxUSE_DEBUG_INFO=yes
18228ab4
MW
35743 if test "$GCC" = yes; then
35744 WXDEBUG="-ggdb"
35745 fi
a848cd7e
SC
35746fi
35747
35748if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35749 cat >>confdefs.h <<\_ACEOF
35750#define WXDEBUG 1
35751_ACEOF
35752
35753 WXDEBUG_DEFINE="-D__WXDEBUG__"
35754else
35755 if test "$wxUSE_GTK" = 1 ; then
35756 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35757 fi
35758fi
35759
35760if test "$wxUSE_MEM_TRACING" = "yes" ; then
35761 cat >>confdefs.h <<\_ACEOF
35762#define wxUSE_MEMORY_TRACING 1
35763_ACEOF
35764
35765 cat >>confdefs.h <<\_ACEOF
35766#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35767_ACEOF
35768
35769 cat >>confdefs.h <<\_ACEOF
35770#define wxUSE_DEBUG_NEW_ALWAYS 1
35771_ACEOF
35772
35773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35774fi
35775
35776if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 35777 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
35778fi
35779
35780PROFILE=
35781if test "$wxUSE_PROFILE" = "yes" ; then
35782 PROFILE=" -pg"
35783fi
35784
35785CODE_GEN_FLAGS=
35786CODE_GEN_FLAGS_CXX=
35787if test "$GCC" = "yes" ; then
35788 if test "$wxUSE_NO_RTTI" = "yes" ; then
35789 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35790 fi
35791 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35792 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35793 fi
35794 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35795 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35796 fi
35797
35798 case "${host}" in
35799 powerpc*-*-aix* )
35800 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35801 ;;
35802 *-hppa* )
35803 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35804 ;;
35805 esac
35806fi
35807
35808OPTIMISE=
35809if test "$wxUSE_OPTIMISE" = "no" ; then
35810 if test "$GCC" = yes ; then
35811 OPTIMISE="-O0"
35812 fi
35813else
35814 if test "$GCC" = yes ; then
35815 OPTIMISE="-O2"
35816
35817 case "${host}" in
35818 i586-*-*|i686-*-* )
35819 OPTIMISE="${OPTIMISE} "
35820 ;;
35821 esac
35822 else
35823 OPTIMISE="-O"
35824 fi
35825fi
35826
35827
35828if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35829 cat >>confdefs.h <<\_ACEOF
35830#define WXWIN_COMPATIBILITY_2_2 1
35831_ACEOF
35832
35833
35834 WXWIN_COMPATIBILITY_2_4="yes"
35835fi
35836
35837if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35838 cat >>confdefs.h <<\_ACEOF
35839#define WXWIN_COMPATIBILITY_2_4 1
35840_ACEOF
35841
35842fi
35843
35844
35845if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35846 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35847#define wxUSE_GUI 1
35848_ACEOF
35849
35850
370fd4c2 35851 fi
a848cd7e
SC
35852
35853
35854if test "$wxUSE_UNIX" = "yes"; then
35855 cat >>confdefs.h <<\_ACEOF
35856#define wxUSE_UNIX 1
35857_ACEOF
35858
35859fi
35860
35861
35862if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35863
35864 HAVE_DL_FUNCS=0
35865 HAVE_SHL_FUNCS=0
35866 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35867 if test "$USE_DARWIN" = 1; then
35868 HAVE_DL_FUNCS=1
47a7e797
MW
35869 elif test "$USE_DOS" = 1; then
35870 HAVE_DL_FUNCS=0
a848cd7e
SC
35871 else
35872
35873for ac_func in dlopen
35874do
35875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35876echo "$as_me:$LINENO: checking for $ac_func" >&5
35877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35878if eval "test \"\${$as_ac_var+set}\" = set"; then
35879 echo $ECHO_N "(cached) $ECHO_C" >&6
35880else
35881 cat >conftest.$ac_ext <<_ACEOF
35882/* confdefs.h. */
35883_ACEOF
35884cat confdefs.h >>conftest.$ac_ext
35885cat >>conftest.$ac_ext <<_ACEOF
35886/* end confdefs.h. */
ac1cb8d3
VS
35887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35889#define $ac_func innocuous_$ac_func
35890
a848cd7e
SC
35891/* System header to define __stub macros and hopefully few prototypes,
35892 which can conflict with char $ac_func (); below.
35893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35894 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35895
a848cd7e
SC
35896#ifdef __STDC__
35897# include <limits.h>
35898#else
35899# include <assert.h>
35900#endif
ac1cb8d3
VS
35901
35902#undef $ac_func
35903
a848cd7e
SC
35904/* Override any gcc2 internal prototype to avoid an error. */
35905#ifdef __cplusplus
35906extern "C"
35907{
35908#endif
35909/* We use char because int might match the return type of a gcc2
35910 builtin and then its argument prototype would still apply. */
35911char $ac_func ();
35912/* The GNU C library defines this for functions which it implements
35913 to always fail with ENOSYS. Some functions are actually named
35914 something starting with __ and the normal name is an alias. */
35915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35916choke me
35917#else
35918char (*f) () = $ac_func;
35919#endif
35920#ifdef __cplusplus
35921}
35922#endif
35923
35924int
35925main ()
35926{
35927return f != $ac_func;
35928 ;
35929 return 0;
35930}
35931_ACEOF
35932rm -f conftest.$ac_objext conftest$ac_exeext
35933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35934 (eval $ac_link) 2>conftest.er1
a848cd7e 35935 ac_status=$?
ac1cb8d3
VS
35936 grep -v '^ *+' conftest.er1 >conftest.err
35937 rm -f conftest.er1
35938 cat conftest.err >&5
a848cd7e
SC
35939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940 (exit $ac_status); } &&
fb00f58d
JS
35941 { ac_try='test -z "$ac_c_werror_flag"
35942 || test ! -s conftest.err'
ac1cb8d3
VS
35943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35944 (eval $ac_try) 2>&5
35945 ac_status=$?
35946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947 (exit $ac_status); }; } &&
35948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35950 (eval $ac_try) 2>&5
35951 ac_status=$?
35952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953 (exit $ac_status); }; }; then
35954 eval "$as_ac_var=yes"
35955else
35956 echo "$as_me: failed program was:" >&5
35957sed 's/^/| /' conftest.$ac_ext >&5
35958
35959eval "$as_ac_var=no"
35960fi
ac1cb8d3
VS
35961rm -f conftest.err conftest.$ac_objext \
35962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35963fi
35964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35966if test `eval echo '${'$as_ac_var'}'` = yes; then
35967 cat >>confdefs.h <<_ACEOF
35968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35969_ACEOF
35970
35971 cat >>confdefs.h <<\_ACEOF
35972#define HAVE_DLOPEN 1
35973_ACEOF
35974
35975 HAVE_DL_FUNCS=1
35976
35977else
35978
35979 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35980echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35981if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35982 echo $ECHO_N "(cached) $ECHO_C" >&6
35983else
35984 ac_check_lib_save_LIBS=$LIBS
35985LIBS="-ldl $LIBS"
35986cat >conftest.$ac_ext <<_ACEOF
35987/* confdefs.h. */
35988_ACEOF
35989cat confdefs.h >>conftest.$ac_ext
35990cat >>conftest.$ac_ext <<_ACEOF
35991/* end confdefs.h. */
35992
35993/* Override any gcc2 internal prototype to avoid an error. */
35994#ifdef __cplusplus
35995extern "C"
35996#endif
35997/* We use char because int might match the return type of a gcc2
35998 builtin and then its argument prototype would still apply. */
35999char dlopen ();
36000int
36001main ()
36002{
36003dlopen ();
36004 ;
36005 return 0;
36006}
36007_ACEOF
36008rm -f conftest.$ac_objext conftest$ac_exeext
36009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36010 (eval $ac_link) 2>conftest.er1
a848cd7e 36011 ac_status=$?
ac1cb8d3
VS
36012 grep -v '^ *+' conftest.er1 >conftest.err
36013 rm -f conftest.er1
36014 cat conftest.err >&5
a848cd7e
SC
36015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36016 (exit $ac_status); } &&
fb00f58d
JS
36017 { ac_try='test -z "$ac_c_werror_flag"
36018 || test ! -s conftest.err'
ac1cb8d3
VS
36019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36020 (eval $ac_try) 2>&5
36021 ac_status=$?
36022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36023 (exit $ac_status); }; } &&
36024 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36026 (eval $ac_try) 2>&5
36027 ac_status=$?
36028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029 (exit $ac_status); }; }; then
36030 ac_cv_lib_dl_dlopen=yes
36031else
36032 echo "$as_me: failed program was:" >&5
36033sed 's/^/| /' conftest.$ac_ext >&5
36034
36035ac_cv_lib_dl_dlopen=no
36036fi
ac1cb8d3
VS
36037rm -f conftest.err conftest.$ac_objext \
36038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36039LIBS=$ac_check_lib_save_LIBS
36040fi
36041echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36042echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36043if test $ac_cv_lib_dl_dlopen = yes; then
36044
36045 cat >>confdefs.h <<\_ACEOF
36046#define HAVE_DLOPEN 1
36047_ACEOF
36048
36049 HAVE_DL_FUNCS=1
36050 DL_LINK=" -ldl$DL_LINK"
36051
36052else
36053
36054
36055for ac_func in shl_load
36056do
36057as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36058echo "$as_me:$LINENO: checking for $ac_func" >&5
36059echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36060if eval "test \"\${$as_ac_var+set}\" = set"; then
36061 echo $ECHO_N "(cached) $ECHO_C" >&6
36062else
36063 cat >conftest.$ac_ext <<_ACEOF
36064/* confdefs.h. */
36065_ACEOF
36066cat confdefs.h >>conftest.$ac_ext
36067cat >>conftest.$ac_ext <<_ACEOF
36068/* end confdefs.h. */
ac1cb8d3
VS
36069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36071#define $ac_func innocuous_$ac_func
36072
a848cd7e
SC
36073/* System header to define __stub macros and hopefully few prototypes,
36074 which can conflict with char $ac_func (); below.
36075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36076 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36077
a848cd7e
SC
36078#ifdef __STDC__
36079# include <limits.h>
36080#else
36081# include <assert.h>
36082#endif
ac1cb8d3
VS
36083
36084#undef $ac_func
36085
a848cd7e
SC
36086/* Override any gcc2 internal prototype to avoid an error. */
36087#ifdef __cplusplus
36088extern "C"
36089{
36090#endif
36091/* We use char because int might match the return type of a gcc2
36092 builtin and then its argument prototype would still apply. */
36093char $ac_func ();
36094/* The GNU C library defines this for functions which it implements
36095 to always fail with ENOSYS. Some functions are actually named
36096 something starting with __ and the normal name is an alias. */
36097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36098choke me
36099#else
36100char (*f) () = $ac_func;
36101#endif
36102#ifdef __cplusplus
36103}
36104#endif
36105
36106int
36107main ()
36108{
36109return f != $ac_func;
36110 ;
36111 return 0;
36112}
36113_ACEOF
36114rm -f conftest.$ac_objext conftest$ac_exeext
36115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36116 (eval $ac_link) 2>conftest.er1
a848cd7e 36117 ac_status=$?
ac1cb8d3
VS
36118 grep -v '^ *+' conftest.er1 >conftest.err
36119 rm -f conftest.er1
36120 cat conftest.err >&5
a848cd7e
SC
36121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36122 (exit $ac_status); } &&
fb00f58d
JS
36123 { ac_try='test -z "$ac_c_werror_flag"
36124 || test ! -s conftest.err'
ac1cb8d3
VS
36125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36126 (eval $ac_try) 2>&5
36127 ac_status=$?
36128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129 (exit $ac_status); }; } &&
36130 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36132 (eval $ac_try) 2>&5
36133 ac_status=$?
36134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135 (exit $ac_status); }; }; then
36136 eval "$as_ac_var=yes"
36137else
36138 echo "$as_me: failed program was:" >&5
36139sed 's/^/| /' conftest.$ac_ext >&5
36140
36141eval "$as_ac_var=no"
36142fi
ac1cb8d3
VS
36143rm -f conftest.err conftest.$ac_objext \
36144 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36145fi
36146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36147echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36148if test `eval echo '${'$as_ac_var'}'` = yes; then
36149 cat >>confdefs.h <<_ACEOF
36150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36151_ACEOF
36152
36153 cat >>confdefs.h <<\_ACEOF
36154#define HAVE_SHL_LOAD 1
36155_ACEOF
36156
36157 HAVE_SHL_FUNCS=1
36158
36159else
36160
36161 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36162echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36163if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36164 echo $ECHO_N "(cached) $ECHO_C" >&6
36165else
36166 ac_check_lib_save_LIBS=$LIBS
36167LIBS="-lshl_load $LIBS"
36168cat >conftest.$ac_ext <<_ACEOF
36169/* confdefs.h. */
36170_ACEOF
36171cat confdefs.h >>conftest.$ac_ext
36172cat >>conftest.$ac_ext <<_ACEOF
36173/* end confdefs.h. */
36174
36175/* Override any gcc2 internal prototype to avoid an error. */
36176#ifdef __cplusplus
36177extern "C"
36178#endif
36179/* We use char because int might match the return type of a gcc2
36180 builtin and then its argument prototype would still apply. */
36181char dld ();
36182int
36183main ()
36184{
36185dld ();
36186 ;
36187 return 0;
36188}
36189_ACEOF
36190rm -f conftest.$ac_objext conftest$ac_exeext
36191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36192 (eval $ac_link) 2>conftest.er1
a848cd7e 36193 ac_status=$?
ac1cb8d3
VS
36194 grep -v '^ *+' conftest.er1 >conftest.err
36195 rm -f conftest.er1
36196 cat conftest.err >&5
a848cd7e
SC
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); } &&
fb00f58d
JS
36199 { ac_try='test -z "$ac_c_werror_flag"
36200 || test ! -s conftest.err'
ac1cb8d3
VS
36201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36202 (eval $ac_try) 2>&5
36203 ac_status=$?
36204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205 (exit $ac_status); }; } &&
36206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36208 (eval $ac_try) 2>&5
36209 ac_status=$?
36210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211 (exit $ac_status); }; }; then
36212 ac_cv_lib_shl_load_dld=yes
36213else
36214 echo "$as_me: failed program was:" >&5
36215sed 's/^/| /' conftest.$ac_ext >&5
36216
36217ac_cv_lib_shl_load_dld=no
36218fi
ac1cb8d3
VS
36219rm -f conftest.err conftest.$ac_objext \
36220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36221LIBS=$ac_check_lib_save_LIBS
36222fi
36223echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
36224echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
36225if test $ac_cv_lib_shl_load_dld = yes; then
36226
36227 HAVE_SHL_FUNCS=1
36228 DL_LINK=" -ldld$DL_LINK"
36229
36230fi
36231
36232
36233fi
36234done
36235
36236
36237fi
36238
36239
36240fi
36241done
36242
36243
36244 if test "$HAVE_DL_FUNCS" = 1; then
36245
36246for ac_func in dlerror
36247do
36248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36249echo "$as_me:$LINENO: checking for $ac_func" >&5
36250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36251if eval "test \"\${$as_ac_var+set}\" = set"; then
36252 echo $ECHO_N "(cached) $ECHO_C" >&6
36253else
36254 cat >conftest.$ac_ext <<_ACEOF
36255/* confdefs.h. */
36256_ACEOF
36257cat confdefs.h >>conftest.$ac_ext
36258cat >>conftest.$ac_ext <<_ACEOF
36259/* end confdefs.h. */
ac1cb8d3
VS
36260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36262#define $ac_func innocuous_$ac_func
36263
a848cd7e
SC
36264/* System header to define __stub macros and hopefully few prototypes,
36265 which can conflict with char $ac_func (); below.
36266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36267 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36268
a848cd7e
SC
36269#ifdef __STDC__
36270# include <limits.h>
36271#else
36272# include <assert.h>
36273#endif
ac1cb8d3
VS
36274
36275#undef $ac_func
36276
a848cd7e
SC
36277/* Override any gcc2 internal prototype to avoid an error. */
36278#ifdef __cplusplus
36279extern "C"
36280{
36281#endif
36282/* We use char because int might match the return type of a gcc2
36283 builtin and then its argument prototype would still apply. */
36284char $ac_func ();
36285/* The GNU C library defines this for functions which it implements
36286 to always fail with ENOSYS. Some functions are actually named
36287 something starting with __ and the normal name is an alias. */
36288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36289choke me
36290#else
36291char (*f) () = $ac_func;
36292#endif
36293#ifdef __cplusplus
36294}
36295#endif
36296
36297int
36298main ()
36299{
36300return f != $ac_func;
36301 ;
36302 return 0;
36303}
36304_ACEOF
36305rm -f conftest.$ac_objext conftest$ac_exeext
36306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36307 (eval $ac_link) 2>conftest.er1
a848cd7e 36308 ac_status=$?
ac1cb8d3
VS
36309 grep -v '^ *+' conftest.er1 >conftest.err
36310 rm -f conftest.er1
36311 cat conftest.err >&5
a848cd7e
SC
36312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313 (exit $ac_status); } &&
fb00f58d
JS
36314 { ac_try='test -z "$ac_c_werror_flag"
36315 || test ! -s conftest.err'
ac1cb8d3
VS
36316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36317 (eval $ac_try) 2>&5
36318 ac_status=$?
36319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); }; } &&
36321 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36323 (eval $ac_try) 2>&5
36324 ac_status=$?
36325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36326 (exit $ac_status); }; }; then
36327 eval "$as_ac_var=yes"
36328else
36329 echo "$as_me: failed program was:" >&5
36330sed 's/^/| /' conftest.$ac_ext >&5
36331
36332eval "$as_ac_var=no"
36333fi
ac1cb8d3
VS
36334rm -f conftest.err conftest.$ac_objext \
36335 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36336fi
36337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36338echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36339if test `eval echo '${'$as_ac_var'}'` = yes; then
36340 cat >>confdefs.h <<_ACEOF
36341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36342_ACEOF
36343 cat >>confdefs.h <<\_ACEOF
36344#define HAVE_DLERROR 1
36345_ACEOF
36346
36347else
36348
36349 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36350echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36351if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36352 echo $ECHO_N "(cached) $ECHO_C" >&6
36353else
36354 ac_check_lib_save_LIBS=$LIBS
36355LIBS="-ldl $LIBS"
36356cat >conftest.$ac_ext <<_ACEOF
36357/* confdefs.h. */
36358_ACEOF
36359cat confdefs.h >>conftest.$ac_ext
36360cat >>conftest.$ac_ext <<_ACEOF
36361/* end confdefs.h. */
36362
36363/* Override any gcc2 internal prototype to avoid an error. */
36364#ifdef __cplusplus
36365extern "C"
36366#endif
36367/* We use char because int might match the return type of a gcc2
36368 builtin and then its argument prototype would still apply. */
36369char dlerror ();
36370int
36371main ()
36372{
36373dlerror ();
36374 ;
36375 return 0;
36376}
36377_ACEOF
36378rm -f conftest.$ac_objext conftest$ac_exeext
36379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36380 (eval $ac_link) 2>conftest.er1
a848cd7e 36381 ac_status=$?
ac1cb8d3
VS
36382 grep -v '^ *+' conftest.er1 >conftest.err
36383 rm -f conftest.er1
36384 cat conftest.err >&5
a848cd7e
SC
36385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386 (exit $ac_status); } &&
fb00f58d
JS
36387 { ac_try='test -z "$ac_c_werror_flag"
36388 || test ! -s conftest.err'
ac1cb8d3
VS
36389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390 (eval $ac_try) 2>&5
36391 ac_status=$?
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); }; } &&
36394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36396 (eval $ac_try) 2>&5
36397 ac_status=$?
36398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36399 (exit $ac_status); }; }; then
36400 ac_cv_lib_dl_dlerror=yes
36401else
36402 echo "$as_me: failed program was:" >&5
36403sed 's/^/| /' conftest.$ac_ext >&5
36404
36405ac_cv_lib_dl_dlerror=no
36406fi
ac1cb8d3
VS
36407rm -f conftest.err conftest.$ac_objext \
36408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36409LIBS=$ac_check_lib_save_LIBS
36410fi
36411echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36412echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36413if test $ac_cv_lib_dl_dlerror = yes; then
36414 cat >>confdefs.h <<\_ACEOF
36415#define HAVE_DLERROR 1
36416_ACEOF
36417
36418fi
36419
36420
36421
36422fi
36423done
36424
36425 fi
36426 fi
36427
36428 if test "$HAVE_DL_FUNCS" = 0; then
36429 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 36430 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
36431 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36432echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36433 wxUSE_DYNAMIC_LOADER=no
36434 wxUSE_DYNLIB_CLASS=no
36435 else
36436 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36437echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36438 fi
36439 fi
36440 fi
36441 fi
36442fi
36443
36444if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36445 cat >>confdefs.h <<\_ACEOF
36446#define wxUSE_DYNAMIC_LOADER 1
36447_ACEOF
36448
36449fi
36450if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36451 cat >>confdefs.h <<\_ACEOF
36452#define wxUSE_DYNLIB_CLASS 1
36453_ACEOF
36454
36455fi
36456
36457
36458
36459if test "$wxUSE_PLUGINS" = "yes" ; then
36460 if test "$wxUSE_SHARED" = "no" ; then
36461 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36462echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36463 wxUSE_PLUGINS=no
36464 fi
36465 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36466 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36467echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36468 wxUSE_PLUGINS=no
36469 fi
36470 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36471 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36472echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36473 wxUSE_PLUGINS=no
36474 fi
36475 if test "$wxUSE_PLUGINS" = "yes" ; then
36476 cat >>confdefs.h <<\_ACEOF
36477#define wxUSE_PLUGINS 1
36478_ACEOF
36479
36480 fi
36481fi
36482
36483
36484if test "$wxUSE_STL" = "yes"; then
36485 cat >>confdefs.h <<\_ACEOF
36486#define wxUSE_STL 1
36487_ACEOF
36488
36489fi
36490
36491if test "$wxUSE_APPLE_IEEE" = "yes"; then
36492 cat >>confdefs.h <<\_ACEOF
36493#define wxUSE_APPLE_IEEE 1
36494_ACEOF
36495
36496fi
36497
36498if test "$wxUSE_TIMER" = "yes"; then
36499 cat >>confdefs.h <<\_ACEOF
36500#define wxUSE_TIMER 1
36501_ACEOF
36502
36503fi
36504
9c112555 36505if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36506
36507for ac_header in sys/soundcard.h
36508do
36509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36510if eval "test \"\${$as_ac_Header+set}\" = set"; then
36511 echo "$as_me:$LINENO: checking for $ac_header" >&5
36512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36513if eval "test \"\${$as_ac_Header+set}\" = set"; then
36514 echo $ECHO_N "(cached) $ECHO_C" >&6
36515fi
36516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36518else
36519 # Is the header compilable?
36520echo "$as_me:$LINENO: checking $ac_header usability" >&5
36521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36522cat >conftest.$ac_ext <<_ACEOF
36523/* confdefs.h. */
36524_ACEOF
36525cat confdefs.h >>conftest.$ac_ext
36526cat >>conftest.$ac_ext <<_ACEOF
36527/* end confdefs.h. */
36528$ac_includes_default
36529#include <$ac_header>
36530_ACEOF
36531rm -f conftest.$ac_objext
36532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36533 (eval $ac_compile) 2>conftest.er1
a848cd7e 36534 ac_status=$?
ac1cb8d3
VS
36535 grep -v '^ *+' conftest.er1 >conftest.err
36536 rm -f conftest.er1
36537 cat conftest.err >&5
a848cd7e
SC
36538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539 (exit $ac_status); } &&
fb00f58d
JS
36540 { ac_try='test -z "$ac_c_werror_flag"
36541 || test ! -s conftest.err'
ac1cb8d3
VS
36542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36543 (eval $ac_try) 2>&5
36544 ac_status=$?
36545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); }; } &&
36547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36549 (eval $ac_try) 2>&5
36550 ac_status=$?
36551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36552 (exit $ac_status); }; }; then
36553 ac_header_compiler=yes
36554else
36555 echo "$as_me: failed program was:" >&5
36556sed 's/^/| /' conftest.$ac_ext >&5
36557
36558ac_header_compiler=no
36559fi
ac1cb8d3 36560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36561echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36562echo "${ECHO_T}$ac_header_compiler" >&6
36563
36564# Is the header present?
36565echo "$as_me:$LINENO: checking $ac_header presence" >&5
36566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36567cat >conftest.$ac_ext <<_ACEOF
36568/* confdefs.h. */
36569_ACEOF
36570cat confdefs.h >>conftest.$ac_ext
36571cat >>conftest.$ac_ext <<_ACEOF
36572/* end confdefs.h. */
36573#include <$ac_header>
36574_ACEOF
36575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36577 ac_status=$?
36578 grep -v '^ *+' conftest.er1 >conftest.err
36579 rm -f conftest.er1
36580 cat conftest.err >&5
36581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582 (exit $ac_status); } >/dev/null; then
36583 if test -s conftest.err; then
36584 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36586 else
36587 ac_cpp_err=
36588 fi
36589else
36590 ac_cpp_err=yes
36591fi
36592if test -z "$ac_cpp_err"; then
36593 ac_header_preproc=yes
36594else
36595 echo "$as_me: failed program was:" >&5
36596sed 's/^/| /' conftest.$ac_ext >&5
36597
36598 ac_header_preproc=no
36599fi
36600rm -f conftest.err conftest.$ac_ext
36601echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36602echo "${ECHO_T}$ac_header_preproc" >&6
36603
36604# So? What about this header?
ac1cb8d3
VS
36605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36606 yes:no: )
a848cd7e
SC
36607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36611 ac_header_preproc=yes
a848cd7e 36612 ;;
ac1cb8d3 36613 no:yes:* )
a848cd7e
SC
36614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36626 (
36627 cat <<\_ASBOX
ac1cb8d3
VS
36628## ----------------------------------------- ##
36629## Report this to wx-dev@lists.wxwidgets.org ##
36630## ----------------------------------------- ##
a848cd7e
SC
36631_ASBOX
36632 ) |
36633 sed "s/^/$as_me: WARNING: /" >&2
36634 ;;
36635esac
36636echo "$as_me:$LINENO: checking for $ac_header" >&5
36637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36638if eval "test \"\${$as_ac_Header+set}\" = set"; then
36639 echo $ECHO_N "(cached) $ECHO_C" >&6
36640else
ac1cb8d3 36641 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36642fi
36643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36645
36646fi
36647if test `eval echo '${'$as_ac_Header'}'` = yes; then
36648 cat >>confdefs.h <<_ACEOF
36649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36650_ACEOF
36651
9c112555
MW
36652else
36653 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
a848cd7e
SC
36654fi
36655
36656done
36657
9c112555
MW
36658fi
36659WITH_PLUGIN_SDL=0
36660if test "$wxUSE_SOUND" = "yes"; then
36661 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36662 if test "$wxUSE_LIBSDL" != "no"; then
36663
36664# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36665if test "${with_sdl_prefix+set}" = set; then
36666 withval="$with_sdl_prefix"
36667 sdl_prefix="$withval"
36668else
36669 sdl_prefix=""
36670fi;
36671
36672# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36673if test "${with_sdl_exec_prefix+set}" = set; then
36674 withval="$with_sdl_exec_prefix"
36675 sdl_exec_prefix="$withval"
36676else
36677 sdl_exec_prefix=""
36678fi;
36679# Check whether --enable-sdltest or --disable-sdltest was given.
36680if test "${enable_sdltest+set}" = set; then
36681 enableval="$enable_sdltest"
36682
36683else
36684 enable_sdltest=yes
36685fi;
36686
36687 if test x$sdl_exec_prefix != x ; then
36688 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36689 if test x${SDL_CONFIG+set} != xset ; then
36690 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36691 fi
36692 fi
36693 if test x$sdl_prefix != x ; then
36694 sdl_args="$sdl_args --prefix=$sdl_prefix"
36695 if test x${SDL_CONFIG+set} != xset ; then
36696 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36697 fi
36698 fi
36699
36700
36701 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36702 # Extract the first word of "sdl-config", so it can be a program name with args.
36703set dummy sdl-config; ac_word=$2
36704echo "$as_me:$LINENO: checking for $ac_word" >&5
36705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36706if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36707 echo $ECHO_N "(cached) $ECHO_C" >&6
36708else
36709 case $SDL_CONFIG in
36710 [\\/]* | ?:[\\/]*)
36711 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36712 ;;
36713 *)
36714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36715for as_dir in $PATH
36716do
36717 IFS=$as_save_IFS
36718 test -z "$as_dir" && as_dir=.
36719 for ac_exec_ext in '' $ac_executable_extensions; do
36720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36721 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36723 break 2
36724 fi
36725done
36726done
36727
36728 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36729 ;;
36730esac
36731fi
36732SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36733
36734if test -n "$SDL_CONFIG"; then
36735 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36736echo "${ECHO_T}$SDL_CONFIG" >&6
36737else
36738 echo "$as_me:$LINENO: result: no" >&5
36739echo "${ECHO_T}no" >&6
36740fi
36741
36742 min_sdl_version=1.2.0
36743 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36744echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36745 no_sdl=""
36746 if test "$SDL_CONFIG" = "no" ; then
36747 no_sdl=yes
36748 else
36749 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36750 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36751
36752 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36753 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36754 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36755 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36756 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36757 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36758 if test "x$enable_sdltest" = "xyes" ; then
36759 ac_save_CFLAGS="$CFLAGS"
94acd38e 36760 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36761 ac_save_LIBS="$LIBS"
36762 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36763 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36764 LIBS="$LIBS $SDL_LIBS"
36765 rm -f conf.sdltest
36766 if test "$cross_compiling" = yes; then
36767 echo $ac_n "cross compiling; assumed OK... $ac_c"
36768else
36769 cat >conftest.$ac_ext <<_ACEOF
36770/* confdefs.h. */
36771_ACEOF
36772cat confdefs.h >>conftest.$ac_ext
36773cat >>conftest.$ac_ext <<_ACEOF
36774/* end confdefs.h. */
36775
36776#include <stdio.h>
36777#include <stdlib.h>
36778#include <string.h>
36779#include "SDL.h"
36780
36781char*
36782my_strdup (char *str)
36783{
36784 char *new_str;
36785
36786 if (str)
36787 {
36788 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36789 strcpy (new_str, str);
36790 }
36791 else
36792 new_str = NULL;
36793
36794 return new_str;
36795}
36796
36797int main (int argc, char *argv[])
36798{
36799 int major, minor, micro;
36800 char *tmp_version;
36801
36802 /* This hangs on some systems (?)
36803 system ("touch conf.sdltest");
36804 */
36805 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36806
36807 /* HP/UX 9 (%@#!) writes to sscanf strings */
36808 tmp_version = my_strdup("$min_sdl_version");
36809 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36810 printf("%s, bad version string\n", "$min_sdl_version");
36811 exit(1);
36812 }
36813
36814 if (($sdl_major_version > major) ||
36815 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36816 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36817 {
36818 return 0;
36819 }
36820 else
36821 {
36822 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36823 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36824 printf("*** best to upgrade to the required version.\n");
36825 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36826 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36827 printf("*** config.cache before re-running configure\n");
36828 return 1;
36829 }
36830}
36831
36832
36833_ACEOF
36834rm -f conftest$ac_exeext
36835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36836 (eval $ac_link) 2>&5
36837 ac_status=$?
36838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36841 (eval $ac_try) 2>&5
36842 ac_status=$?
36843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36844 (exit $ac_status); }; }; then
36845 :
36846else
36847 echo "$as_me: program exited with status $ac_status" >&5
36848echo "$as_me: failed program was:" >&5
36849sed 's/^/| /' conftest.$ac_ext >&5
36850
36851( exit $ac_status )
36852no_sdl=yes
36853fi
ac1cb8d3 36854rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36855fi
36856 CFLAGS="$ac_save_CFLAGS"
94acd38e 36857 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36858 LIBS="$ac_save_LIBS"
36859 fi
36860 fi
36861 if test "x$no_sdl" = x ; then
36862 echo "$as_me:$LINENO: result: yes" >&5
36863echo "${ECHO_T}yes" >&6
36864
36865 EXTRALIBS_SDL="$SDL_LIBS"
36866 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36867 cat >>confdefs.h <<\_ACEOF
36868#define wxUSE_LIBSDL 1
36869_ACEOF
36870
36871
36872 else
36873 echo "$as_me:$LINENO: result: no" >&5
36874echo "${ECHO_T}no" >&6
36875 if test "$SDL_CONFIG" = "no" ; then
36876 echo "*** The sdl-config script installed by SDL could not be found"
36877 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36878 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36879 echo "*** full path to sdl-config."
36880 else
36881 if test -f conf.sdltest ; then
36882 :
36883 else
36884 echo "*** Could not run SDL test program, checking why..."
36885 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36886 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36887 LIBS="$LIBS $SDL_LIBS"
36888 cat >conftest.$ac_ext <<_ACEOF
36889/* confdefs.h. */
36890_ACEOF
36891cat confdefs.h >>conftest.$ac_ext
36892cat >>conftest.$ac_ext <<_ACEOF
36893/* end confdefs.h. */
36894
36895#include <stdio.h>
36896#include "SDL.h"
36897
36898int main(int argc, char *argv[])
36899{ return 0; }
36900#undef main
36901#define main K_and_R_C_main
36902
36903int
36904main ()
36905{
36906 return 0;
36907 ;
36908 return 0;
36909}
36910_ACEOF
36911rm -f conftest.$ac_objext conftest$ac_exeext
36912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36913 (eval $ac_link) 2>conftest.er1
a848cd7e 36914 ac_status=$?
ac1cb8d3
VS
36915 grep -v '^ *+' conftest.er1 >conftest.err
36916 rm -f conftest.er1
36917 cat conftest.err >&5
a848cd7e
SC
36918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36919 (exit $ac_status); } &&
fb00f58d
JS
36920 { ac_try='test -z "$ac_c_werror_flag"
36921 || test ! -s conftest.err'
ac1cb8d3
VS
36922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36923 (eval $ac_try) 2>&5
36924 ac_status=$?
36925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36926 (exit $ac_status); }; } &&
36927 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36929 (eval $ac_try) 2>&5
36930 ac_status=$?
36931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36932 (exit $ac_status); }; }; then
36933 echo "*** The test program compiled, but did not run. This usually means"
36934 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36935 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36936 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36937 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36938 echo "*** is required on your system"
36939 echo "***"
36940 echo "*** If you have an old version installed, it is best to remove it, although"
36941 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36942else
36943 echo "$as_me: failed program was:" >&5
36944sed 's/^/| /' conftest.$ac_ext >&5
36945
36946 echo "*** The test program failed to compile or link. See the file config.log for the"
36947 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36948 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36949 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36950fi
ac1cb8d3
VS
36951rm -f conftest.err conftest.$ac_objext \
36952 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36953 CFLAGS="$ac_save_CFLAGS"
94acd38e 36954 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36955 LIBS="$ac_save_LIBS"
36956 fi
36957 fi
36958 SDL_CFLAGS=""
36959 SDL_LIBS=""
36960 wxUSE_LIBSDL="no"
36961 fi
36962
36963
36964 rm -f conf.sdltest
36965
36966 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36967 WITH_PLUGIN_SDL=1
36968 fi
36969 fi
36970 fi
36971
36972 cat >>confdefs.h <<\_ACEOF
36973#define wxUSE_SOUND 1
36974_ACEOF
36975
36976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36977fi
36978
d1c38808
VZ
36979if test "$WXGTK20" = 1; then
36980 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36981 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36982
36983
36984 succeeded=no
36985
36986 if test -z "$PKG_CONFIG"; then
36987 # Extract the first word of "pkg-config", so it can be a program name with args.
36988set dummy pkg-config; ac_word=$2
36989echo "$as_me:$LINENO: checking for $ac_word" >&5
36990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36991if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36992 echo $ECHO_N "(cached) $ECHO_C" >&6
36993else
36994 case $PKG_CONFIG in
36995 [\\/]* | ?:[\\/]*)
36996 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36997 ;;
36998 *)
36999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37000for as_dir in $PATH
37001do
37002 IFS=$as_save_IFS
37003 test -z "$as_dir" && as_dir=.
37004 for ac_exec_ext in '' $ac_executable_extensions; do
37005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37006 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37008 break 2
37009 fi
37010done
37011done
37012
37013 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37014 ;;
37015esac
37016fi
37017PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37018
37019if test -n "$PKG_CONFIG"; then
37020 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37021echo "${ECHO_T}$PKG_CONFIG" >&6
37022else
37023 echo "$as_me:$LINENO: result: no" >&5
37024echo "${ECHO_T}no" >&6
37025fi
37026
37027 fi
37028
37029 if test "$PKG_CONFIG" = "no" ; then
37030 echo "*** The pkg-config script could not be found. Make sure it is"
37031 echo "*** in your path, or set the PKG_CONFIG environment variable"
37032 echo "*** to the full path to pkg-config."
37033 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37034 else
37035 PKG_CONFIG_MIN_VERSION=0.9.0
37036 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37037 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37038echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37039
ffa762ff 37040 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37041 echo "$as_me:$LINENO: result: yes" >&5
37042echo "${ECHO_T}yes" >&6
37043 succeeded=yes
37044
37045 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37046echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37047 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37048 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37049echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37050
37051 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37052echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37053 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37054 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37055echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37056 else
37057 LIBGNOMEPRINTUI_CFLAGS=""
37058 LIBGNOMEPRINTUI_LIBS=""
37059 ## If we have a custom action on failure, don't print errors, but
37060 ## do set a variable so people can do so.
ffa762ff 37061 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37062
37063 fi
37064
37065
37066
37067 else
37068 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37069 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37070 fi
37071 fi
37072
37073 if test $succeeded = yes; then
37074
d1c38808
VZ
37075 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37076 cat >>confdefs.h <<\_ACEOF
37077#define wxUSE_LIBGNOMEPRINT 1
37078_ACEOF
37079
37080
37081 else
37082
37083 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37084echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37085 wxUSE_LIBGNOMEPRINT="no"
37086
37087
37088 fi
37089
37090 fi
37091 fi
37092fi
37093
37094
a848cd7e
SC
37095if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37096 cat >>confdefs.h <<\_ACEOF
37097#define wxUSE_CMDLINE_PARSER 1
37098_ACEOF
37099
37100fi
37101
37102if test "$wxUSE_STOPWATCH" = "yes"; then
37103 cat >>confdefs.h <<\_ACEOF
37104#define wxUSE_STOPWATCH 1
37105_ACEOF
37106
37107fi
37108
37109if test "$wxUSE_DATETIME" = "yes"; then
37110 cat >>confdefs.h <<\_ACEOF
37111#define wxUSE_DATETIME 1
37112_ACEOF
37113
37114fi
37115
37116if test "$wxUSE_FILE" = "yes"; then
37117 cat >>confdefs.h <<\_ACEOF
37118#define wxUSE_FILE 1
37119_ACEOF
37120
37121fi
37122
37123if test "$wxUSE_FFILE" = "yes"; then
37124 cat >>confdefs.h <<\_ACEOF
37125#define wxUSE_FFILE 1
37126_ACEOF
37127
37128fi
37129
37130if test "$wxUSE_FILESYSTEM" = "yes"; then
37131 cat >>confdefs.h <<\_ACEOF
37132#define wxUSE_FILESYSTEM 1
37133_ACEOF
37134
37135fi
37136
37137if test "$wxUSE_FS_ZIP" = "yes"; then
37138 cat >>confdefs.h <<\_ACEOF
37139#define wxUSE_FS_ZIP 1
37140_ACEOF
37141
37142fi
37143
9e8e867f 37144if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37145 cat >>confdefs.h <<\_ACEOF
9e8e867f 37146#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37147_ACEOF
37148
37149fi
37150
37151if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37152 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37153 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37154echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37155 elif test "$wxUSE_ZLIB" = "no"; then
37156 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37157echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37158 else
37159 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37160#define wxUSE_ZIPSTREAM 1
37161_ACEOF
37162
81f90336 37163 fi
a848cd7e
SC
37164fi
37165
a848cd7e 37166if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
37167 if test "$USE_UNIX" != 1; then
37168 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
37169echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
37170 wxUSE_ON_FATAL_EXCEPTION=no
37171 else
37172 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37173#define wxUSE_ON_FATAL_EXCEPTION 1
37174_ACEOF
37175
18228ab4 37176 fi
a848cd7e
SC
37177fi
37178
eaff0f0d
VZ
37179if test "$wxUSE_STACKWALKER" = "yes"; then
37180 cat >>confdefs.h <<\_ACEOF
37181#define wxUSE_STACKWALKER 1
37182_ACEOF
37183
37184fi
37185
36b6448c 37186if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
37187 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
37188 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
37189echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
37190 wxUSE_DEBUGREPORT=no
37191 else
37192 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37193#define wxUSE_DEBUGREPORT 1
37194_ACEOF
37195
21dfc162
MW
37196 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37198 fi
dfe0c803 37199 fi
36b6448c
VZ
37200fi
37201
a848cd7e
SC
37202if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37203 cat >>confdefs.h <<\_ACEOF
37204#define wxUSE_SNGLINST_CHECKER 1
37205_ACEOF
37206
37207fi
37208
37209if test "$wxUSE_BUSYINFO" = "yes"; then
37210 cat >>confdefs.h <<\_ACEOF
37211#define wxUSE_BUSYINFO 1
37212_ACEOF
37213
37214fi
37215
37216if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37217 cat >>confdefs.h <<\_ACEOF
37218#define wxUSE_STD_IOSTREAM 1
37219_ACEOF
37220
37221fi
37222
59746b65
MW
37223if test "$wxUSE_STD_STRING" = "yes"; then
37224 cat >>confdefs.h <<\_ACEOF
37225#define wxUSE_STD_STRING 1
37226_ACEOF
37227
37228fi
37229
07158944
VZ
37230if test "$wxUSE_STDPATHS" = "yes"; then
37231 cat >>confdefs.h <<\_ACEOF
37232#define wxUSE_STDPATHS 1
37233_ACEOF
37234
37235fi
37236
a848cd7e
SC
37237if test "$wxUSE_TEXTBUFFER" = "yes"; then
37238 cat >>confdefs.h <<\_ACEOF
37239#define wxUSE_TEXTBUFFER 1
37240_ACEOF
37241
37242fi
37243
37244if test "$wxUSE_TEXTFILE" = "yes"; then
37245 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
37246 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
37247echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
37248 else
37249 cat >>confdefs.h <<\_ACEOF
37250#define wxUSE_TEXTFILE 1
37251_ACEOF
37252
37253 fi
37254fi
37255
37256if test "$wxUSE_CONFIG" = "yes" ; then
37257 if test "$wxUSE_TEXTFILE" != "yes"; then
37258 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
37259echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
37260 else
37261 cat >>confdefs.h <<\_ACEOF
37262#define wxUSE_CONFIG 1
89be85c2
VS
37263_ACEOF
37264
37265 cat >>confdefs.h <<\_ACEOF
37266#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
37267_ACEOF
37268
37269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37270 fi
37271fi
37272
37273if test "$wxUSE_INTL" = "yes" ; then
37274 if test "$wxUSE_FILE" != "yes"; then
37275 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37276echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37277 else
37278 cat >>confdefs.h <<\_ACEOF
37279#define wxUSE_INTL 1
37280_ACEOF
37281
37282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37283 GUIDIST="$GUIDIST INTL_DIST"
37284 fi
37285fi
37286
37287if test "$wxUSE_LOG" = "yes"; then
37288 cat >>confdefs.h <<\_ACEOF
37289#define wxUSE_LOG 1
37290_ACEOF
37291
37292
37293 if test "$wxUSE_LOGGUI" = "yes"; then
37294 cat >>confdefs.h <<\_ACEOF
37295#define wxUSE_LOGGUI 1
37296_ACEOF
37297
37298 fi
37299
37300 if test "$wxUSE_LOGWINDOW" = "yes"; then
37301 cat >>confdefs.h <<\_ACEOF
37302#define wxUSE_LOGWINDOW 1
37303_ACEOF
37304
37305 fi
37306
37307 if test "$wxUSE_LOGDIALOG" = "yes"; then
37308 cat >>confdefs.h <<\_ACEOF
37309#define wxUSE_LOG_DIALOG 1
37310_ACEOF
37311
37312 fi
0b78747f
MW
37313
37314 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37315fi
37316
37317if test "$wxUSE_LONGLONG" = "yes"; then
37318 cat >>confdefs.h <<\_ACEOF
37319#define wxUSE_LONGLONG 1
37320_ACEOF
37321
37322fi
37323
37324if test "$wxUSE_GEOMETRY" = "yes"; then
37325 cat >>confdefs.h <<\_ACEOF
37326#define wxUSE_GEOMETRY 1
37327_ACEOF
37328
37329fi
37330
a848cd7e
SC
37331if test "$wxUSE_STREAMS" = "yes" ; then
37332 cat >>confdefs.h <<\_ACEOF
37333#define wxUSE_STREAMS 1
37334_ACEOF
37335
37336fi
37337
37338
37339if test "$wxUSE_DATETIME" = "yes"; then
37340
37341for ac_func in strptime
37342do
37343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37344echo "$as_me:$LINENO: checking for $ac_func" >&5
37345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37346if eval "test \"\${$as_ac_var+set}\" = set"; then
37347 echo $ECHO_N "(cached) $ECHO_C" >&6
37348else
37349 cat >conftest.$ac_ext <<_ACEOF
37350/* confdefs.h. */
37351_ACEOF
37352cat confdefs.h >>conftest.$ac_ext
37353cat >>conftest.$ac_ext <<_ACEOF
37354/* end confdefs.h. */
ac1cb8d3
VS
37355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37357#define $ac_func innocuous_$ac_func
37358
a848cd7e
SC
37359/* System header to define __stub macros and hopefully few prototypes,
37360 which can conflict with char $ac_func (); below.
37361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37362 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37363
a848cd7e
SC
37364#ifdef __STDC__
37365# include <limits.h>
37366#else
37367# include <assert.h>
37368#endif
ac1cb8d3
VS
37369
37370#undef $ac_func
37371
a848cd7e
SC
37372/* Override any gcc2 internal prototype to avoid an error. */
37373#ifdef __cplusplus
37374extern "C"
37375{
37376#endif
37377/* We use char because int might match the return type of a gcc2
37378 builtin and then its argument prototype would still apply. */
37379char $ac_func ();
37380/* The GNU C library defines this for functions which it implements
37381 to always fail with ENOSYS. Some functions are actually named
37382 something starting with __ and the normal name is an alias. */
37383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37384choke me
37385#else
37386char (*f) () = $ac_func;
37387#endif
37388#ifdef __cplusplus
37389}
37390#endif
37391
37392int
37393main ()
37394{
37395return f != $ac_func;
37396 ;
37397 return 0;
37398}
37399_ACEOF
37400rm -f conftest.$ac_objext conftest$ac_exeext
37401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37402 (eval $ac_link) 2>conftest.er1
a848cd7e 37403 ac_status=$?
ac1cb8d3
VS
37404 grep -v '^ *+' conftest.er1 >conftest.err
37405 rm -f conftest.er1
37406 cat conftest.err >&5
a848cd7e
SC
37407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37408 (exit $ac_status); } &&
fb00f58d
JS
37409 { ac_try='test -z "$ac_c_werror_flag"
37410 || test ! -s conftest.err'
ac1cb8d3
VS
37411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37412 (eval $ac_try) 2>&5
37413 ac_status=$?
37414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415 (exit $ac_status); }; } &&
37416 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37418 (eval $ac_try) 2>&5
37419 ac_status=$?
37420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37421 (exit $ac_status); }; }; then
37422 eval "$as_ac_var=yes"
37423else
37424 echo "$as_me: failed program was:" >&5
37425sed 's/^/| /' conftest.$ac_ext >&5
37426
37427eval "$as_ac_var=no"
37428fi
ac1cb8d3
VS
37429rm -f conftest.err conftest.$ac_objext \
37430 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37431fi
37432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37433echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37434if test `eval echo '${'$as_ac_var'}'` = yes; then
37435 cat >>confdefs.h <<_ACEOF
37436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37437_ACEOF
37438
37439fi
37440done
37441
37442
37443 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37444echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37445if test "${wx_cv_var_timezone+set}" = set; then
37446 echo $ECHO_N "(cached) $ECHO_C" >&6
37447else
37448
37449 cat >conftest.$ac_ext <<_ACEOF
37450/* confdefs.h. */
37451_ACEOF
37452cat confdefs.h >>conftest.$ac_ext
37453cat >>conftest.$ac_ext <<_ACEOF
37454/* end confdefs.h. */
37455
37456 #include <time.h>
37457
37458int
37459main ()
37460{
37461
37462 int tz;
37463 tz = timezone;
37464
37465 ;
37466 return 0;
37467}
37468_ACEOF
37469rm -f conftest.$ac_objext
37470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37471 (eval $ac_compile) 2>conftest.er1
a848cd7e 37472 ac_status=$?
ac1cb8d3
VS
37473 grep -v '^ *+' conftest.er1 >conftest.err
37474 rm -f conftest.er1
37475 cat conftest.err >&5
a848cd7e
SC
37476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37477 (exit $ac_status); } &&
fb00f58d
JS
37478 { ac_try='test -z "$ac_c_werror_flag"
37479 || test ! -s conftest.err'
ac1cb8d3
VS
37480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37481 (eval $ac_try) 2>&5
37482 ac_status=$?
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); }; } &&
37485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37487 (eval $ac_try) 2>&5
37488 ac_status=$?
37489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37490 (exit $ac_status); }; }; then
37491
37492 wx_cv_var_timezone=timezone
37493
37494else
37495 echo "$as_me: failed program was:" >&5
37496sed 's/^/| /' conftest.$ac_ext >&5
37497
37498
37499 cat >conftest.$ac_ext <<_ACEOF
37500/* confdefs.h. */
37501_ACEOF
37502cat confdefs.h >>conftest.$ac_ext
37503cat >>conftest.$ac_ext <<_ACEOF
37504/* end confdefs.h. */
37505
37506 #include <time.h>
37507
37508int
37509main ()
37510{
37511
37512 int tz;
37513 tz = _timezone;
37514
37515 ;
37516 return 0;
37517}
37518_ACEOF
37519rm -f conftest.$ac_objext
37520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37521 (eval $ac_compile) 2>conftest.er1
a848cd7e 37522 ac_status=$?
ac1cb8d3
VS
37523 grep -v '^ *+' conftest.er1 >conftest.err
37524 rm -f conftest.er1
37525 cat conftest.err >&5
a848cd7e
SC
37526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527 (exit $ac_status); } &&
fb00f58d
JS
37528 { ac_try='test -z "$ac_c_werror_flag"
37529 || test ! -s conftest.err'
ac1cb8d3
VS
37530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37531 (eval $ac_try) 2>&5
37532 ac_status=$?
37533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37534 (exit $ac_status); }; } &&
37535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37537 (eval $ac_try) 2>&5
37538 ac_status=$?
37539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37540 (exit $ac_status); }; }; then
37541
37542 wx_cv_var_timezone=_timezone
37543
37544else
37545 echo "$as_me: failed program was:" >&5
37546sed 's/^/| /' conftest.$ac_ext >&5
37547
37548
37549 cat >conftest.$ac_ext <<_ACEOF
37550/* confdefs.h. */
37551_ACEOF
37552cat confdefs.h >>conftest.$ac_ext
37553cat >>conftest.$ac_ext <<_ACEOF
37554/* end confdefs.h. */
37555
37556 #include <time.h>
37557
37558int
37559main ()
37560{
37561
37562 int tz;
37563 tz = __timezone;
37564
37565 ;
37566 return 0;
37567}
37568_ACEOF
37569rm -f conftest.$ac_objext
37570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37571 (eval $ac_compile) 2>conftest.er1
a848cd7e 37572 ac_status=$?
ac1cb8d3
VS
37573 grep -v '^ *+' conftest.er1 >conftest.err
37574 rm -f conftest.er1
37575 cat conftest.err >&5
a848cd7e
SC
37576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577 (exit $ac_status); } &&
fb00f58d
JS
37578 { ac_try='test -z "$ac_c_werror_flag"
37579 || test ! -s conftest.err'
ac1cb8d3
VS
37580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37581 (eval $ac_try) 2>&5
37582 ac_status=$?
37583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584 (exit $ac_status); }; } &&
37585 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37587 (eval $ac_try) 2>&5
37588 ac_status=$?
37589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590 (exit $ac_status); }; }; then
37591
37592 wx_cv_var_timezone=__timezone
37593
37594else
37595 echo "$as_me: failed program was:" >&5
37596sed 's/^/| /' conftest.$ac_ext >&5
37597
37598
37599 if test "$USE_DOS" = 0 ; then
37600 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37601echo "$as_me: WARNING: no timezone variable" >&2;}
37602 fi
37603
37604
37605fi
ac1cb8d3 37606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37607
37608
37609fi
ac1cb8d3 37610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37611
37612
37613fi
ac1cb8d3 37614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37615
37616
37617fi
37618echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37619echo "${ECHO_T}$wx_cv_var_timezone" >&6
37620
37621 if test "x$wx_cv_var_timezone" != x ; then
37622 cat >>confdefs.h <<_ACEOF
37623#define WX_TIMEZONE $wx_cv_var_timezone
37624_ACEOF
37625
37626 fi
37627
37628
37629for ac_func in localtime
37630do
37631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37632echo "$as_me:$LINENO: checking for $ac_func" >&5
37633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37634if eval "test \"\${$as_ac_var+set}\" = set"; then
37635 echo $ECHO_N "(cached) $ECHO_C" >&6
37636else
37637 cat >conftest.$ac_ext <<_ACEOF
37638/* confdefs.h. */
37639_ACEOF
37640cat confdefs.h >>conftest.$ac_ext
37641cat >>conftest.$ac_ext <<_ACEOF
37642/* end confdefs.h. */
ac1cb8d3
VS
37643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37645#define $ac_func innocuous_$ac_func
37646
a848cd7e
SC
37647/* System header to define __stub macros and hopefully few prototypes,
37648 which can conflict with char $ac_func (); below.
37649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37650 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37651
a848cd7e
SC
37652#ifdef __STDC__
37653# include <limits.h>
37654#else
37655# include <assert.h>
37656#endif
ac1cb8d3
VS
37657
37658#undef $ac_func
37659
a848cd7e
SC
37660/* Override any gcc2 internal prototype to avoid an error. */
37661#ifdef __cplusplus
37662extern "C"
37663{
37664#endif
37665/* We use char because int might match the return type of a gcc2
37666 builtin and then its argument prototype would still apply. */
37667char $ac_func ();
37668/* The GNU C library defines this for functions which it implements
37669 to always fail with ENOSYS. Some functions are actually named
37670 something starting with __ and the normal name is an alias. */
37671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37672choke me
37673#else
37674char (*f) () = $ac_func;
37675#endif
37676#ifdef __cplusplus
37677}
37678#endif
37679
37680int
37681main ()
37682{
37683return f != $ac_func;
37684 ;
37685 return 0;
37686}
37687_ACEOF
37688rm -f conftest.$ac_objext conftest$ac_exeext
37689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37690 (eval $ac_link) 2>conftest.er1
a848cd7e 37691 ac_status=$?
ac1cb8d3
VS
37692 grep -v '^ *+' conftest.er1 >conftest.err
37693 rm -f conftest.er1
37694 cat conftest.err >&5
a848cd7e
SC
37695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37696 (exit $ac_status); } &&
fb00f58d
JS
37697 { ac_try='test -z "$ac_c_werror_flag"
37698 || test ! -s conftest.err'
ac1cb8d3
VS
37699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37700 (eval $ac_try) 2>&5
37701 ac_status=$?
37702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37703 (exit $ac_status); }; } &&
37704 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37706 (eval $ac_try) 2>&5
37707 ac_status=$?
37708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37709 (exit $ac_status); }; }; then
37710 eval "$as_ac_var=yes"
37711else
37712 echo "$as_me: failed program was:" >&5
37713sed 's/^/| /' conftest.$ac_ext >&5
37714
37715eval "$as_ac_var=no"
37716fi
ac1cb8d3
VS
37717rm -f conftest.err conftest.$ac_objext \
37718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37719fi
37720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37722if test `eval echo '${'$as_ac_var'}'` = yes; then
37723 cat >>confdefs.h <<_ACEOF
37724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37725_ACEOF
37726
37727fi
37728done
37729
37730
37731 if test "$ac_cv_func_localtime" = "yes"; then
37732 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37733echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37734if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37735 echo $ECHO_N "(cached) $ECHO_C" >&6
37736else
37737
37738 cat >conftest.$ac_ext <<_ACEOF
37739/* confdefs.h. */
37740_ACEOF
37741cat confdefs.h >>conftest.$ac_ext
37742cat >>conftest.$ac_ext <<_ACEOF
37743/* end confdefs.h. */
37744
37745 #include <time.h>
37746
37747int
37748main ()
37749{
37750
37751 struct tm tm;
37752 tm.tm_gmtoff++;
37753
37754 ;
37755 return 0;
37756}
37757_ACEOF
37758rm -f conftest.$ac_objext
37759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37760 (eval $ac_compile) 2>conftest.er1
a848cd7e 37761 ac_status=$?
ac1cb8d3
VS
37762 grep -v '^ *+' conftest.er1 >conftest.err
37763 rm -f conftest.er1
37764 cat conftest.err >&5
a848cd7e
SC
37765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37766 (exit $ac_status); } &&
fb00f58d
JS
37767 { ac_try='test -z "$ac_c_werror_flag"
37768 || test ! -s conftest.err'
ac1cb8d3
VS
37769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37770 (eval $ac_try) 2>&5
37771 ac_status=$?
37772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); }; } &&
37774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37776 (eval $ac_try) 2>&5
37777 ac_status=$?
37778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37779 (exit $ac_status); }; }; then
37780
37781 wx_cv_struct_tm_has_gmtoff=yes
37782
37783else
37784 echo "$as_me: failed program was:" >&5
37785sed 's/^/| /' conftest.$ac_ext >&5
37786
37787wx_cv_struct_tm_has_gmtoff=no
37788
37789fi
ac1cb8d3 37790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37791
37792fi
37793echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37794echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37795 fi
37796
37797 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37798 cat >>confdefs.h <<\_ACEOF
37799#define WX_GMTOFF_IN_TM 1
37800_ACEOF
37801
37802 fi
37803
37804
37805
37806for ac_func in gettimeofday ftime
37807do
37808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37809echo "$as_me:$LINENO: checking for $ac_func" >&5
37810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37811if eval "test \"\${$as_ac_var+set}\" = set"; then
37812 echo $ECHO_N "(cached) $ECHO_C" >&6
37813else
37814 cat >conftest.$ac_ext <<_ACEOF
37815/* confdefs.h. */
37816_ACEOF
37817cat confdefs.h >>conftest.$ac_ext
37818cat >>conftest.$ac_ext <<_ACEOF
37819/* end confdefs.h. */
ac1cb8d3
VS
37820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37822#define $ac_func innocuous_$ac_func
37823
a848cd7e
SC
37824/* System header to define __stub macros and hopefully few prototypes,
37825 which can conflict with char $ac_func (); below.
37826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37827 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37828
a848cd7e
SC
37829#ifdef __STDC__
37830# include <limits.h>
37831#else
37832# include <assert.h>
37833#endif
ac1cb8d3
VS
37834
37835#undef $ac_func
37836
a848cd7e
SC
37837/* Override any gcc2 internal prototype to avoid an error. */
37838#ifdef __cplusplus
37839extern "C"
37840{
37841#endif
37842/* We use char because int might match the return type of a gcc2
37843 builtin and then its argument prototype would still apply. */
37844char $ac_func ();
37845/* The GNU C library defines this for functions which it implements
37846 to always fail with ENOSYS. Some functions are actually named
37847 something starting with __ and the normal name is an alias. */
37848#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37849choke me
37850#else
37851char (*f) () = $ac_func;
37852#endif
37853#ifdef __cplusplus
37854}
37855#endif
37856
37857int
37858main ()
37859{
37860return f != $ac_func;
37861 ;
37862 return 0;
37863}
37864_ACEOF
37865rm -f conftest.$ac_objext conftest$ac_exeext
37866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37867 (eval $ac_link) 2>conftest.er1
a848cd7e 37868 ac_status=$?
ac1cb8d3
VS
37869 grep -v '^ *+' conftest.er1 >conftest.err
37870 rm -f conftest.er1
37871 cat conftest.err >&5
a848cd7e
SC
37872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37873 (exit $ac_status); } &&
fb00f58d
JS
37874 { ac_try='test -z "$ac_c_werror_flag"
37875 || test ! -s conftest.err'
ac1cb8d3
VS
37876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37877 (eval $ac_try) 2>&5
37878 ac_status=$?
37879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880 (exit $ac_status); }; } &&
37881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37883 (eval $ac_try) 2>&5
37884 ac_status=$?
37885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886 (exit $ac_status); }; }; then
37887 eval "$as_ac_var=yes"
37888else
37889 echo "$as_me: failed program was:" >&5
37890sed 's/^/| /' conftest.$ac_ext >&5
37891
37892eval "$as_ac_var=no"
37893fi
ac1cb8d3
VS
37894rm -f conftest.err conftest.$ac_objext \
37895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37896fi
37897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37898echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37899if test `eval echo '${'$as_ac_var'}'` = yes; then
37900 cat >>confdefs.h <<_ACEOF
37901#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37902_ACEOF
37903 break
37904fi
37905done
37906
37907
37908 if test "$ac_cv_func_gettimeofday" = "yes"; then
37909 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37910echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37911if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37912 echo $ECHO_N "(cached) $ECHO_C" >&6
37913else
37914
37915
37916
37917 ac_ext=cc
37918ac_cpp='$CXXCPP $CPPFLAGS'
37919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37922
37923
37924 cat >conftest.$ac_ext <<_ACEOF
37925/* confdefs.h. */
37926_ACEOF
37927cat confdefs.h >>conftest.$ac_ext
37928cat >>conftest.$ac_ext <<_ACEOF
37929/* end confdefs.h. */
37930
37931 #include <sys/time.h>
37932 #include <unistd.h>
37933
37934int
37935main ()
37936{
37937
37938 struct timeval tv;
37939 gettimeofday(&tv, NULL);
37940
37941 ;
37942 return 0;
37943}
37944_ACEOF
37945rm -f conftest.$ac_objext
37946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37947 (eval $ac_compile) 2>conftest.er1
a848cd7e 37948 ac_status=$?
ac1cb8d3
VS
37949 grep -v '^ *+' conftest.er1 >conftest.err
37950 rm -f conftest.er1
37951 cat conftest.err >&5
a848cd7e
SC
37952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953 (exit $ac_status); } &&
fb00f58d
JS
37954 { ac_try='test -z "$ac_cxx_werror_flag"
37955 || test ! -s conftest.err'
ac1cb8d3
VS
37956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37957 (eval $ac_try) 2>&5
37958 ac_status=$?
37959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37960 (exit $ac_status); }; } &&
37961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37963 (eval $ac_try) 2>&5
37964 ac_status=$?
37965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37966 (exit $ac_status); }; }; then
37967 wx_cv_func_gettimeofday_has_2_args=yes
37968else
37969 echo "$as_me: failed program was:" >&5
37970sed 's/^/| /' conftest.$ac_ext >&5
37971
37972cat >conftest.$ac_ext <<_ACEOF
37973/* confdefs.h. */
37974_ACEOF
37975cat confdefs.h >>conftest.$ac_ext
37976cat >>conftest.$ac_ext <<_ACEOF
37977/* end confdefs.h. */
37978
37979 #include <sys/time.h>
37980 #include <unistd.h>
37981
37982int
37983main ()
37984{
37985
37986 struct timeval tv;
37987 gettimeofday(&tv);
37988
37989 ;
37990 return 0;
37991}
37992_ACEOF
37993rm -f conftest.$ac_objext
37994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37995 (eval $ac_compile) 2>conftest.er1
a848cd7e 37996 ac_status=$?
ac1cb8d3
VS
37997 grep -v '^ *+' conftest.er1 >conftest.err
37998 rm -f conftest.er1
37999 cat conftest.err >&5
a848cd7e
SC
38000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001 (exit $ac_status); } &&
fb00f58d
JS
38002 { ac_try='test -z "$ac_cxx_werror_flag"
38003 || test ! -s conftest.err'
ac1cb8d3
VS
38004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38005 (eval $ac_try) 2>&5
38006 ac_status=$?
38007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38008 (exit $ac_status); }; } &&
38009 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38011 (eval $ac_try) 2>&5
38012 ac_status=$?
38013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38014 (exit $ac_status); }; }; then
38015 wx_cv_func_gettimeofday_has_2_args=no
38016else
38017 echo "$as_me: failed program was:" >&5
38018sed 's/^/| /' conftest.$ac_ext >&5
38019
38020
38021 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38022echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38023 wx_cv_func_gettimeofday_has_2_args=unknown
38024
38025
38026fi
ac1cb8d3 38027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38028
38029fi
ac1cb8d3 38030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38031 ac_ext=c
38032ac_cpp='$CPP $CPPFLAGS'
38033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38035ac_compiler_gnu=$ac_cv_c_compiler_gnu
38036
38037
38038fi
38039echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38040echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38041
38042 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38043 cat >>confdefs.h <<\_ACEOF
38044#define WX_GETTIMEOFDAY_NO_TZ 1
38045_ACEOF
38046
38047 fi
38048 fi
38049
38050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38051fi
38052
38053
38054if test "$wxUSE_SOCKETS" = "yes"; then
38055 if test "$wxUSE_MGL" = "1"; then
38056 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38057echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38058 wxUSE_SOCKETS="no"
38059 fi
38060fi
38061
38062if test "$wxUSE_SOCKETS" = "yes"; then
38063 if test "$TOOLKIT" != "MSW"; then
38064 echo "$as_me:$LINENO: checking for socket" >&5
38065echo $ECHO_N "checking for socket... $ECHO_C" >&6
38066if test "${ac_cv_func_socket+set}" = set; then
38067 echo $ECHO_N "(cached) $ECHO_C" >&6
38068else
38069 cat >conftest.$ac_ext <<_ACEOF
38070/* confdefs.h. */
38071_ACEOF
38072cat confdefs.h >>conftest.$ac_ext
38073cat >>conftest.$ac_ext <<_ACEOF
38074/* end confdefs.h. */
ac1cb8d3
VS
38075/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38077#define socket innocuous_socket
38078
a848cd7e
SC
38079/* System header to define __stub macros and hopefully few prototypes,
38080 which can conflict with char socket (); below.
38081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38082 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38083
a848cd7e
SC
38084#ifdef __STDC__
38085# include <limits.h>
38086#else
38087# include <assert.h>
38088#endif
ac1cb8d3
VS
38089
38090#undef socket
38091
a848cd7e
SC
38092/* Override any gcc2 internal prototype to avoid an error. */
38093#ifdef __cplusplus
38094extern "C"
38095{
38096#endif
38097/* We use char because int might match the return type of a gcc2
38098 builtin and then its argument prototype would still apply. */
38099char socket ();
38100/* The GNU C library defines this for functions which it implements
38101 to always fail with ENOSYS. Some functions are actually named
38102 something starting with __ and the normal name is an alias. */
38103#if defined (__stub_socket) || defined (__stub___socket)
38104choke me
38105#else
38106char (*f) () = socket;
38107#endif
38108#ifdef __cplusplus
38109}
38110#endif
38111
38112int
38113main ()
38114{
38115return f != socket;
38116 ;
38117 return 0;
38118}
38119_ACEOF
38120rm -f conftest.$ac_objext conftest$ac_exeext
38121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38122 (eval $ac_link) 2>conftest.er1
a848cd7e 38123 ac_status=$?
ac1cb8d3
VS
38124 grep -v '^ *+' conftest.er1 >conftest.err
38125 rm -f conftest.er1
38126 cat conftest.err >&5
a848cd7e
SC
38127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128 (exit $ac_status); } &&
fb00f58d
JS
38129 { ac_try='test -z "$ac_c_werror_flag"
38130 || test ! -s conftest.err'
ac1cb8d3
VS
38131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38132 (eval $ac_try) 2>&5
38133 ac_status=$?
38134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135 (exit $ac_status); }; } &&
38136 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
38142 ac_cv_func_socket=yes
38143else
38144 echo "$as_me: failed program was:" >&5
38145sed 's/^/| /' conftest.$ac_ext >&5
38146
38147ac_cv_func_socket=no
38148fi
ac1cb8d3
VS
38149rm -f conftest.err conftest.$ac_objext \
38150 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38151fi
38152echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38153echo "${ECHO_T}$ac_cv_func_socket" >&6
38154if test $ac_cv_func_socket = yes; then
38155 :
38156else
38157
38158 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38159echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38160if test "${ac_cv_lib_socket_socket+set}" = set; then
38161 echo $ECHO_N "(cached) $ECHO_C" >&6
38162else
38163 ac_check_lib_save_LIBS=$LIBS
38164LIBS="-lsocket $LIBS"
38165cat >conftest.$ac_ext <<_ACEOF
38166/* confdefs.h. */
38167_ACEOF
38168cat confdefs.h >>conftest.$ac_ext
38169cat >>conftest.$ac_ext <<_ACEOF
38170/* end confdefs.h. */
38171
38172/* Override any gcc2 internal prototype to avoid an error. */
38173#ifdef __cplusplus
38174extern "C"
38175#endif
38176/* We use char because int might match the return type of a gcc2
38177 builtin and then its argument prototype would still apply. */
38178char socket ();
38179int
38180main ()
38181{
38182socket ();
38183 ;
38184 return 0;
38185}
38186_ACEOF
38187rm -f conftest.$ac_objext conftest$ac_exeext
38188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38189 (eval $ac_link) 2>conftest.er1
a848cd7e 38190 ac_status=$?
ac1cb8d3
VS
38191 grep -v '^ *+' conftest.er1 >conftest.err
38192 rm -f conftest.er1
38193 cat conftest.err >&5
a848cd7e
SC
38194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38195 (exit $ac_status); } &&
fb00f58d
JS
38196 { ac_try='test -z "$ac_c_werror_flag"
38197 || test ! -s conftest.err'
ac1cb8d3
VS
38198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38199 (eval $ac_try) 2>&5
38200 ac_status=$?
38201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38202 (exit $ac_status); }; } &&
38203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38205 (eval $ac_try) 2>&5
38206 ac_status=$?
38207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38208 (exit $ac_status); }; }; then
38209 ac_cv_lib_socket_socket=yes
38210else
38211 echo "$as_me: failed program was:" >&5
38212sed 's/^/| /' conftest.$ac_ext >&5
38213
38214ac_cv_lib_socket_socket=no
38215fi
ac1cb8d3
VS
38216rm -f conftest.err conftest.$ac_objext \
38217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38218LIBS=$ac_check_lib_save_LIBS
38219fi
38220echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38221echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38222if test $ac_cv_lib_socket_socket = yes; then
38223 if test "$INET_LINK" != " -lsocket"; then
38224 INET_LINK="$INET_LINK -lsocket"
38225 fi
38226else
38227
38228 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38229echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38230 wxUSE_SOCKETS=no
38231
38232
38233fi
38234
38235
38236
38237fi
38238
38239 fi
38240fi
38241
38242if test "$wxUSE_SOCKETS" = "yes" ; then
38243 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38244 ac_ext=cc
38245ac_cpp='$CXXCPP $CPPFLAGS'
38246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38249
38250 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
38251echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
38252if test "${wx_cv_type_getsockname3+set}" = set; then
38253 echo $ECHO_N "(cached) $ECHO_C" >&6
38254else
38255
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. */
38262
38263 #include <sys/types.h>
38264 #include <sys/socket.h>
38265
38266int
38267main ()
38268{
38269
38270 socklen_t len;
38271 getsockname(0, 0, &len);
38272
38273 ;
38274 return 0;
38275}
38276_ACEOF
38277rm -f conftest.$ac_objext
38278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38279 (eval $ac_compile) 2>conftest.er1
a848cd7e 38280 ac_status=$?
ac1cb8d3
VS
38281 grep -v '^ *+' conftest.er1 >conftest.err
38282 rm -f conftest.er1
38283 cat conftest.err >&5
a848cd7e
SC
38284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38285 (exit $ac_status); } &&
fb00f58d
JS
38286 { ac_try='test -z "$ac_cxx_werror_flag"
38287 || test ! -s conftest.err'
ac1cb8d3
VS
38288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38289 (eval $ac_try) 2>&5
38290 ac_status=$?
38291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292 (exit $ac_status); }; } &&
38293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38295 (eval $ac_try) 2>&5
38296 ac_status=$?
38297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298 (exit $ac_status); }; }; then
38299 wx_cv_type_getsockname3=socklen_t
38300else
38301 echo "$as_me: failed program was:" >&5
38302sed 's/^/| /' conftest.$ac_ext >&5
38303
38304
38305 CFLAGS_OLD="$CFLAGS"
38306 if test "$GCC" = yes ; then
38307 CFLAGS="$CFLAGS -Werror"
38308 fi
38309
38310 cat >conftest.$ac_ext <<_ACEOF
38311/* confdefs.h. */
38312_ACEOF
38313cat confdefs.h >>conftest.$ac_ext
38314cat >>conftest.$ac_ext <<_ACEOF
38315/* end confdefs.h. */
38316
38317 #include <sys/types.h>
38318 #include <sys/socket.h>
38319
38320int
38321main ()
38322{
38323
38324 size_t len;
38325 getsockname(0, 0, &len);
38326
38327 ;
38328 return 0;
38329}
38330_ACEOF
38331rm -f conftest.$ac_objext
38332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38333 (eval $ac_compile) 2>conftest.er1
a848cd7e 38334 ac_status=$?
ac1cb8d3
VS
38335 grep -v '^ *+' conftest.er1 >conftest.err
38336 rm -f conftest.er1
38337 cat conftest.err >&5
a848cd7e
SC
38338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339 (exit $ac_status); } &&
fb00f58d
JS
38340 { ac_try='test -z "$ac_cxx_werror_flag"
38341 || test ! -s conftest.err'
ac1cb8d3
VS
38342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38343 (eval $ac_try) 2>&5
38344 ac_status=$?
38345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38346 (exit $ac_status); }; } &&
38347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38349 (eval $ac_try) 2>&5
38350 ac_status=$?
38351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38352 (exit $ac_status); }; }; then
38353 wx_cv_type_getsockname3=size_t
38354else
38355 echo "$as_me: failed program was:" >&5
38356sed 's/^/| /' conftest.$ac_ext >&5
38357
38358cat >conftest.$ac_ext <<_ACEOF
38359/* confdefs.h. */
38360_ACEOF
38361cat confdefs.h >>conftest.$ac_ext
38362cat >>conftest.$ac_ext <<_ACEOF
38363/* end confdefs.h. */
38364
38365 #include <sys/types.h>
38366 #include <sys/socket.h>
38367
38368int
38369main ()
38370{
38371
38372 int len;
38373 getsockname(0, 0, &len);
38374
38375 ;
38376 return 0;
38377}
38378_ACEOF
38379rm -f conftest.$ac_objext
38380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38381 (eval $ac_compile) 2>conftest.er1
a848cd7e 38382 ac_status=$?
ac1cb8d3
VS
38383 grep -v '^ *+' conftest.er1 >conftest.err
38384 rm -f conftest.er1
38385 cat conftest.err >&5
a848cd7e
SC
38386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38387 (exit $ac_status); } &&
fb00f58d
JS
38388 { ac_try='test -z "$ac_cxx_werror_flag"
38389 || test ! -s conftest.err'
ac1cb8d3
VS
38390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38391 (eval $ac_try) 2>&5
38392 ac_status=$?
38393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38394 (exit $ac_status); }; } &&
38395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38397 (eval $ac_try) 2>&5
38398 ac_status=$?
38399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400 (exit $ac_status); }; }; then
38401 wx_cv_type_getsockname3=int
38402else
38403 echo "$as_me: failed program was:" >&5
38404sed 's/^/| /' conftest.$ac_ext >&5
38405
38406wx_cv_type_getsockname3=unknown
38407
38408fi
ac1cb8d3 38409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38410
38411fi
ac1cb8d3 38412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38413
38414 CFLAGS="$CFLAGS_OLD"
38415
38416
38417fi
ac1cb8d3 38418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38419
38420fi
38421echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38422echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38423
38424 if test "$wx_cv_type_getsockname3" = "unknown"; then
38425 wxUSE_SOCKETS=no
38426 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38427echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38428 else
38429 cat >>confdefs.h <<_ACEOF
38430#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
38431_ACEOF
38432
38433 fi
38434 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38435echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38436if test "${wx_cv_type_getsockopt5+set}" = set; then
38437 echo $ECHO_N "(cached) $ECHO_C" >&6
38438else
38439
38440 cat >conftest.$ac_ext <<_ACEOF
38441/* confdefs.h. */
38442_ACEOF
38443cat confdefs.h >>conftest.$ac_ext
38444cat >>conftest.$ac_ext <<_ACEOF
38445/* end confdefs.h. */
38446
38447 #include <sys/types.h>
38448 #include <sys/socket.h>
38449
38450int
38451main ()
38452{
38453
38454 socklen_t len;
38455 getsockopt(0, 0, 0, 0, &len);
38456
38457 ;
38458 return 0;
38459}
38460_ACEOF
38461rm -f conftest.$ac_objext
38462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38463 (eval $ac_compile) 2>conftest.er1
38464 ac_status=$?
38465 grep -v '^ *+' conftest.er1 >conftest.err
38466 rm -f conftest.er1
38467 cat conftest.err >&5
38468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38469 (exit $ac_status); } &&
fb00f58d
JS
38470 { ac_try='test -z "$ac_cxx_werror_flag"
38471 || test ! -s conftest.err'
5b674b9d
DE
38472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38473 (eval $ac_try) 2>&5
38474 ac_status=$?
38475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38476 (exit $ac_status); }; } &&
38477 { ac_try='test -s conftest.$ac_objext'
38478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38479 (eval $ac_try) 2>&5
38480 ac_status=$?
38481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38482 (exit $ac_status); }; }; then
38483 wx_cv_type_getsockopt5=socklen_t
38484else
38485 echo "$as_me: failed program was:" >&5
38486sed 's/^/| /' conftest.$ac_ext >&5
38487
38488
38489 CFLAGS_OLD="$CFLAGS"
38490 if test "$GCC" = yes ; then
38491 CFLAGS="$CFLAGS -Werror"
38492 fi
38493
38494 cat >conftest.$ac_ext <<_ACEOF
38495/* confdefs.h. */
38496_ACEOF
38497cat confdefs.h >>conftest.$ac_ext
38498cat >>conftest.$ac_ext <<_ACEOF
38499/* end confdefs.h. */
38500
38501 #include <sys/types.h>
38502 #include <sys/socket.h>
38503
38504int
38505main ()
38506{
38507
38508 size_t len;
38509 getsockopt(0, 0, 0, 0, &len);
38510
38511 ;
38512 return 0;
38513}
38514_ACEOF
38515rm -f conftest.$ac_objext
38516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38517 (eval $ac_compile) 2>conftest.er1
38518 ac_status=$?
38519 grep -v '^ *+' conftest.er1 >conftest.err
38520 rm -f conftest.er1
38521 cat conftest.err >&5
38522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38523 (exit $ac_status); } &&
fb00f58d
JS
38524 { ac_try='test -z "$ac_cxx_werror_flag"
38525 || test ! -s conftest.err'
5b674b9d
DE
38526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38527 (eval $ac_try) 2>&5
38528 ac_status=$?
38529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38530 (exit $ac_status); }; } &&
38531 { ac_try='test -s conftest.$ac_objext'
38532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38533 (eval $ac_try) 2>&5
38534 ac_status=$?
38535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536 (exit $ac_status); }; }; then
38537 wx_cv_type_getsockopt5=size_t
38538else
38539 echo "$as_me: failed program was:" >&5
38540sed 's/^/| /' conftest.$ac_ext >&5
38541
38542cat >conftest.$ac_ext <<_ACEOF
38543/* confdefs.h. */
38544_ACEOF
38545cat confdefs.h >>conftest.$ac_ext
38546cat >>conftest.$ac_ext <<_ACEOF
38547/* end confdefs.h. */
38548
38549 #include <sys/types.h>
38550 #include <sys/socket.h>
38551
38552int
38553main ()
38554{
38555
38556 int len;
38557 getsockopt(0, 0, 0, 0, &len);
38558
38559 ;
38560 return 0;
38561}
38562_ACEOF
38563rm -f conftest.$ac_objext
38564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38565 (eval $ac_compile) 2>conftest.er1
38566 ac_status=$?
38567 grep -v '^ *+' conftest.er1 >conftest.err
38568 rm -f conftest.er1
38569 cat conftest.err >&5
38570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571 (exit $ac_status); } &&
fb00f58d
JS
38572 { ac_try='test -z "$ac_cxx_werror_flag"
38573 || test ! -s conftest.err'
5b674b9d
DE
38574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38575 (eval $ac_try) 2>&5
38576 ac_status=$?
38577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578 (exit $ac_status); }; } &&
38579 { ac_try='test -s conftest.$ac_objext'
38580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38581 (eval $ac_try) 2>&5
38582 ac_status=$?
38583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584 (exit $ac_status); }; }; then
38585 wx_cv_type_getsockopt5=int
38586else
38587 echo "$as_me: failed program was:" >&5
38588sed 's/^/| /' conftest.$ac_ext >&5
38589
38590wx_cv_type_getsockopt5=unknown
38591
38592fi
38593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38594
38595fi
38596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38597
38598 CFLAGS="$CFLAGS_OLD"
38599
38600
38601fi
38602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38603
38604fi
38605echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38606echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38607
38608 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38609 wxUSE_SOCKETS=no
38610 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38611echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38612 else
38613 cat >>confdefs.h <<_ACEOF
38614#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38615_ACEOF
38616
38617 fi
4d4ff94c
VZ
38618 ac_ext=c
38619ac_cpp='$CPP $CPPFLAGS'
38620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38622ac_compiler_gnu=$ac_cv_c_compiler_gnu
38623
a848cd7e
SC
38624 fi
38625fi
38626
38627if test "$wxUSE_SOCKETS" = "yes" ; then
38628 cat >>confdefs.h <<\_ACEOF
38629#define wxUSE_SOCKETS 1
38630_ACEOF
38631
38632 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38633fi
38634
38635if test "$wxUSE_PROTOCOL" = "yes"; then
38636 if test "$wxUSE_SOCKETS" != "yes"; then
38637 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38638echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38639 wxUSE_PROTOCOL=no
38640 fi
38641fi
38642
38643if test "$wxUSE_PROTOCOL" = "yes"; then
38644 cat >>confdefs.h <<\_ACEOF
38645#define wxUSE_PROTOCOL 1
38646_ACEOF
38647
38648
38649 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38650 cat >>confdefs.h <<\_ACEOF
38651#define wxUSE_PROTOCOL_HTTP 1
38652_ACEOF
38653
38654 fi
38655 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38656 cat >>confdefs.h <<\_ACEOF
38657#define wxUSE_PROTOCOL_FTP 1
38658_ACEOF
38659
38660 fi
38661 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38662 cat >>confdefs.h <<\_ACEOF
38663#define wxUSE_PROTOCOL_FILE 1
38664_ACEOF
38665
38666 fi
38667else
38668 if test "$wxUSE_FS_INET" = "yes"; then
38669 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38670echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38671 wxUSE_FS_INET="no"
38672 fi
38673fi
38674
38675if test "$wxUSE_URL" = "yes"; then
38676 if test "$wxUSE_PROTOCOL" != "yes"; then
38677 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38678echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38679 wxUSE_URL=no
38680 fi
38681 if test "$wxUSE_URL" = "yes"; then
38682 cat >>confdefs.h <<\_ACEOF
38683#define wxUSE_URL 1
38684_ACEOF
38685
38686 fi
38687fi
38688
38689if test "$wxUSE_FS_INET" = "yes"; then
38690 cat >>confdefs.h <<\_ACEOF
38691#define wxUSE_FS_INET 1
38692_ACEOF
38693
38694fi
38695
38696
38697if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 38698 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 38699
4cb1d3da 38700 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
38701
38702for ac_header in linux/joystick.h
38703do
38704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38705if eval "test \"\${$as_ac_Header+set}\" = set"; then
38706 echo "$as_me:$LINENO: checking for $ac_header" >&5
38707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38708if eval "test \"\${$as_ac_Header+set}\" = set"; then
38709 echo $ECHO_N "(cached) $ECHO_C" >&6
38710fi
38711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38713else
38714 # Is the header compilable?
38715echo "$as_me:$LINENO: checking $ac_header usability" >&5
38716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38717cat >conftest.$ac_ext <<_ACEOF
38718/* confdefs.h. */
38719_ACEOF
38720cat confdefs.h >>conftest.$ac_ext
38721cat >>conftest.$ac_ext <<_ACEOF
38722/* end confdefs.h. */
38723$ac_includes_default
38724#include <$ac_header>
38725_ACEOF
38726rm -f conftest.$ac_objext
38727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38728 (eval $ac_compile) 2>conftest.er1
a848cd7e 38729 ac_status=$?
ac1cb8d3
VS
38730 grep -v '^ *+' conftest.er1 >conftest.err
38731 rm -f conftest.er1
38732 cat conftest.err >&5
a848cd7e
SC
38733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734 (exit $ac_status); } &&
fb00f58d
JS
38735 { ac_try='test -z "$ac_c_werror_flag"
38736 || test ! -s conftest.err'
ac1cb8d3
VS
38737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38738 (eval $ac_try) 2>&5
38739 ac_status=$?
38740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38741 (exit $ac_status); }; } &&
38742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38744 (eval $ac_try) 2>&5
38745 ac_status=$?
38746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38747 (exit $ac_status); }; }; then
38748 ac_header_compiler=yes
38749else
38750 echo "$as_me: failed program was:" >&5
38751sed 's/^/| /' conftest.$ac_ext >&5
38752
38753ac_header_compiler=no
38754fi
ac1cb8d3 38755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38757echo "${ECHO_T}$ac_header_compiler" >&6
38758
38759# Is the header present?
38760echo "$as_me:$LINENO: checking $ac_header presence" >&5
38761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38762cat >conftest.$ac_ext <<_ACEOF
38763/* confdefs.h. */
38764_ACEOF
38765cat confdefs.h >>conftest.$ac_ext
38766cat >>conftest.$ac_ext <<_ACEOF
38767/* end confdefs.h. */
38768#include <$ac_header>
38769_ACEOF
38770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38772 ac_status=$?
38773 grep -v '^ *+' conftest.er1 >conftest.err
38774 rm -f conftest.er1
38775 cat conftest.err >&5
38776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38777 (exit $ac_status); } >/dev/null; then
38778 if test -s conftest.err; then
38779 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38781 else
38782 ac_cpp_err=
38783 fi
38784else
38785 ac_cpp_err=yes
38786fi
38787if test -z "$ac_cpp_err"; then
38788 ac_header_preproc=yes
38789else
38790 echo "$as_me: failed program was:" >&5
38791sed 's/^/| /' conftest.$ac_ext >&5
38792
38793 ac_header_preproc=no
38794fi
38795rm -f conftest.err conftest.$ac_ext
38796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38797echo "${ECHO_T}$ac_header_preproc" >&6
38798
38799# So? What about this header?
ac1cb8d3
VS
38800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38801 yes:no: )
a848cd7e
SC
38802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38803echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38805echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38806 ac_header_preproc=yes
a848cd7e 38807 ;;
ac1cb8d3 38808 no:yes:* )
a848cd7e
SC
38809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38810echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38812echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38814echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38816echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38820echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38821 (
38822 cat <<\_ASBOX
ac1cb8d3
VS
38823## ----------------------------------------- ##
38824## Report this to wx-dev@lists.wxwidgets.org ##
38825## ----------------------------------------- ##
a848cd7e
SC
38826_ASBOX
38827 ) |
38828 sed "s/^/$as_me: WARNING: /" >&2
38829 ;;
38830esac
38831echo "$as_me:$LINENO: checking for $ac_header" >&5
38832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38833if eval "test \"\${$as_ac_Header+set}\" = set"; then
38834 echo $ECHO_N "(cached) $ECHO_C" >&6
38835else
ac1cb8d3 38836 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38837fi
38838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38840
38841fi
38842if test `eval echo '${'$as_ac_Header'}'` = yes; then
38843 cat >>confdefs.h <<_ACEOF
38844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38845_ACEOF
38846
38847fi
38848
38849done
38850
38851 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38852 wxUSE_JOYSTICK=no
38853 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38854echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38855 fi
4cb1d3da
RN
38856 else
38857 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38858 wxUSE_JOYSTICK=no
38859 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38860echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38861 fi
a848cd7e 38862 fi
a848cd7e 38863
4cb1d3da
RN
38864
38865 if test "$wxUSE_JOYSTICK" = "yes"; then
38866 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38867#define wxUSE_JOYSTICK 1
38868_ACEOF
38869
4cb1d3da
RN
38870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38871 fi
a848cd7e
SC
38872 fi
38873fi
38874
38875
38876
38877if test "$wxUSE_FONTMAP" = "yes" ; then
38878 cat >>confdefs.h <<\_ACEOF
38879#define wxUSE_FONTMAP 1
38880_ACEOF
38881
38882fi
38883
38884if test "$wxUSE_UNICODE" = "yes" ; then
38885 cat >>confdefs.h <<\_ACEOF
38886#define wxUSE_UNICODE 1
38887_ACEOF
38888
38889
38890 if test "$USE_WIN32" != 1; then
38891 wxUSE_UNICODE_MSLU=no
38892 fi
38893
38894 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38895 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38896echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38897if test "${ac_cv_lib_unicows_main+set}" = set; then
38898 echo $ECHO_N "(cached) $ECHO_C" >&6
38899else
38900 ac_check_lib_save_LIBS=$LIBS
38901LIBS="-lunicows $LIBS"
38902cat >conftest.$ac_ext <<_ACEOF
38903/* confdefs.h. */
38904_ACEOF
38905cat confdefs.h >>conftest.$ac_ext
38906cat >>conftest.$ac_ext <<_ACEOF
38907/* end confdefs.h. */
38908
38909
38910int
38911main ()
38912{
38913main ();
38914 ;
38915 return 0;
38916}
38917_ACEOF
38918rm -f conftest.$ac_objext conftest$ac_exeext
38919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38920 (eval $ac_link) 2>conftest.er1
a848cd7e 38921 ac_status=$?
ac1cb8d3
VS
38922 grep -v '^ *+' conftest.er1 >conftest.err
38923 rm -f conftest.er1
38924 cat conftest.err >&5
a848cd7e
SC
38925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926 (exit $ac_status); } &&
fb00f58d
JS
38927 { ac_try='test -z "$ac_c_werror_flag"
38928 || test ! -s conftest.err'
ac1cb8d3
VS
38929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38930 (eval $ac_try) 2>&5
38931 ac_status=$?
38932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38933 (exit $ac_status); }; } &&
38934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38936 (eval $ac_try) 2>&5
38937 ac_status=$?
38938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38939 (exit $ac_status); }; }; then
38940 ac_cv_lib_unicows_main=yes
38941else
38942 echo "$as_me: failed program was:" >&5
38943sed 's/^/| /' conftest.$ac_ext >&5
38944
38945ac_cv_lib_unicows_main=no
38946fi
ac1cb8d3
VS
38947rm -f conftest.err conftest.$ac_objext \
38948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38949LIBS=$ac_check_lib_save_LIBS
38950fi
38951echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38952echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38953if test $ac_cv_lib_unicows_main = yes; then
38954
38955 cat >>confdefs.h <<\_ACEOF
38956#define wxUSE_UNICODE_MSLU 1
38957_ACEOF
38958
38959
38960else
38961
38962 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38963 Applications will only run on Windows NT/2000/XP!" >&5
38964echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38965 Applications will only run on Windows NT/2000/XP!" >&2;}
38966 wxUSE_UNICODE_MSLU=no
38967
38968fi
38969
38970 fi
38971fi
38972
38973if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38974 cat >>confdefs.h <<\_ACEOF
38975#define wxUSE_EXPERIMENTAL_PRINTF 1
38976_ACEOF
38977
38978fi
38979
38980
38981if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38982 cat >>confdefs.h <<\_ACEOF
38983#define wxUSE_POSTSCRIPT 1
38984_ACEOF
38985
38986fi
38987
38988cat >>confdefs.h <<\_ACEOF
38989#define wxUSE_AFM_FOR_POSTSCRIPT 1
38990_ACEOF
38991
38992
38993cat >>confdefs.h <<\_ACEOF
38994#define wxUSE_NORMALIZED_PS_FONTS 1
38995_ACEOF
38996
38997
38998
38999if test "$wxUSE_CONSTRAINTS" = "yes"; then
39000 cat >>confdefs.h <<\_ACEOF
39001#define wxUSE_CONSTRAINTS 1
39002_ACEOF
39003
39004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
39005fi
39006
8a7b1113
VZ
39007if test "$wxUSE_MDI" = "yes"; then
39008 cat >>confdefs.h <<\_ACEOF
39009#define wxUSE_MDI 1
39010_ACEOF
39011
39012
39013 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39014 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39015#define wxUSE_MDI_ARCHITECTURE 1
39016_ACEOF
39017
8a7b1113
VZ
39018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39019 fi
a848cd7e
SC
39020fi
39021
39022if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39023 cat >>confdefs.h <<\_ACEOF
39024#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39025_ACEOF
39026
39027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39028 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39030 fi
39031fi
39032
39033if test "$wxUSE_HELP" = "yes"; then
39034 cat >>confdefs.h <<\_ACEOF
39035#define wxUSE_HELP 1
39036_ACEOF
39037
39038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39039
39040 if test "$wxUSE_MSW" = 1; then
39041 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39042 cat >>confdefs.h <<\_ACEOF
39043#define wxUSE_MS_HTML_HELP 1
39044_ACEOF
39045
39046 fi
39047 fi
39048
39049 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39050 if test "$wxUSE_HTML" = "yes"; then
39051 cat >>confdefs.h <<\_ACEOF
39052#define wxUSE_WXHTML_HELP 1
39053_ACEOF
39054
39055 else
39056 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39057echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39058 wxUSE_WXHTML_HELP=no
39059 fi
39060 fi
39061fi
39062
39063if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39064 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39065 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39066echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39067 else
39068 cat >>confdefs.h <<\_ACEOF
39069#define wxUSE_PRINTING_ARCHITECTURE 1
39070_ACEOF
39071
39072 fi
39073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39074fi
39075
39076if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39077 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39078echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39079 { (exit 1); exit 1; }; }
39080fi
39081
39082
39083if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39084 -o "$wxUSE_CLIPBOARD" = "yes" \
39085 -o "$wxUSE_OLE" = "yes" \
39086 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39087
39088for ac_header in ole2.h
39089do
39090as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39091if eval "test \"\${$as_ac_Header+set}\" = set"; then
39092 echo "$as_me:$LINENO: checking for $ac_header" >&5
39093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39094if eval "test \"\${$as_ac_Header+set}\" = set"; then
39095 echo $ECHO_N "(cached) $ECHO_C" >&6
39096fi
39097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39099else
39100 # Is the header compilable?
39101echo "$as_me:$LINENO: checking $ac_header usability" >&5
39102echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39103cat >conftest.$ac_ext <<_ACEOF
39104/* confdefs.h. */
39105_ACEOF
39106cat confdefs.h >>conftest.$ac_ext
39107cat >>conftest.$ac_ext <<_ACEOF
39108/* end confdefs.h. */
39109$ac_includes_default
39110#include <$ac_header>
39111_ACEOF
39112rm -f conftest.$ac_objext
39113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39114 (eval $ac_compile) 2>conftest.er1
a848cd7e 39115 ac_status=$?
ac1cb8d3
VS
39116 grep -v '^ *+' conftest.er1 >conftest.err
39117 rm -f conftest.er1
39118 cat conftest.err >&5
a848cd7e
SC
39119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39120 (exit $ac_status); } &&
fb00f58d
JS
39121 { ac_try='test -z "$ac_c_werror_flag"
39122 || test ! -s conftest.err'
ac1cb8d3
VS
39123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39124 (eval $ac_try) 2>&5
39125 ac_status=$?
39126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127 (exit $ac_status); }; } &&
39128 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39130 (eval $ac_try) 2>&5
39131 ac_status=$?
39132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39133 (exit $ac_status); }; }; then
39134 ac_header_compiler=yes
39135else
39136 echo "$as_me: failed program was:" >&5
39137sed 's/^/| /' conftest.$ac_ext >&5
39138
39139ac_header_compiler=no
39140fi
ac1cb8d3 39141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39142echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39143echo "${ECHO_T}$ac_header_compiler" >&6
39144
39145# Is the header present?
39146echo "$as_me:$LINENO: checking $ac_header presence" >&5
39147echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39148cat >conftest.$ac_ext <<_ACEOF
39149/* confdefs.h. */
39150_ACEOF
39151cat confdefs.h >>conftest.$ac_ext
39152cat >>conftest.$ac_ext <<_ACEOF
39153/* end confdefs.h. */
39154#include <$ac_header>
39155_ACEOF
39156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39158 ac_status=$?
39159 grep -v '^ *+' conftest.er1 >conftest.err
39160 rm -f conftest.er1
39161 cat conftest.err >&5
39162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39163 (exit $ac_status); } >/dev/null; then
39164 if test -s conftest.err; then
39165 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39167 else
39168 ac_cpp_err=
39169 fi
39170else
39171 ac_cpp_err=yes
39172fi
39173if test -z "$ac_cpp_err"; then
39174 ac_header_preproc=yes
39175else
39176 echo "$as_me: failed program was:" >&5
39177sed 's/^/| /' conftest.$ac_ext >&5
39178
39179 ac_header_preproc=no
39180fi
39181rm -f conftest.err conftest.$ac_ext
39182echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39183echo "${ECHO_T}$ac_header_preproc" >&6
39184
39185# So? What about this header?
ac1cb8d3
VS
39186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39187 yes:no: )
a848cd7e
SC
39188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39191echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39192 ac_header_preproc=yes
a848cd7e 39193 ;;
ac1cb8d3 39194 no:yes:* )
a848cd7e
SC
39195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39200echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39202echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39204echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39206echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39207 (
39208 cat <<\_ASBOX
ac1cb8d3
VS
39209## ----------------------------------------- ##
39210## Report this to wx-dev@lists.wxwidgets.org ##
39211## ----------------------------------------- ##
a848cd7e
SC
39212_ASBOX
39213 ) |
39214 sed "s/^/$as_me: WARNING: /" >&2
39215 ;;
39216esac
39217echo "$as_me:$LINENO: checking for $ac_header" >&5
39218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39219if eval "test \"\${$as_ac_Header+set}\" = set"; then
39220 echo $ECHO_N "(cached) $ECHO_C" >&6
39221else
ac1cb8d3 39222 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39223fi
39224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39226
39227fi
39228if test `eval echo '${'$as_ac_Header'}'` = yes; then
39229 cat >>confdefs.h <<_ACEOF
39230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39231_ACEOF
39232
39233fi
39234
39235done
39236
39237
39238 if test "$ac_cv_header_ole2_h" = "yes" ; then
39239 if test "$GCC" = yes ; then
39240
39241
39242 ac_ext=cc
39243ac_cpp='$CXXCPP $CPPFLAGS'
39244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39247
39248
39249 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
39250echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
39251 cat >conftest.$ac_ext <<_ACEOF
39252/* confdefs.h. */
39253_ACEOF
39254cat confdefs.h >>conftest.$ac_ext
39255cat >>conftest.$ac_ext <<_ACEOF
39256/* end confdefs.h. */
39257#include <windows.h>
39258 #include <ole2.h>
39259int
39260main ()
39261{
39262
39263 ;
39264 return 0;
39265}
39266_ACEOF
39267rm -f conftest.$ac_objext
39268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39269 (eval $ac_compile) 2>conftest.er1
a848cd7e 39270 ac_status=$?
ac1cb8d3
VS
39271 grep -v '^ *+' conftest.er1 >conftest.err
39272 rm -f conftest.er1
39273 cat conftest.err >&5
a848cd7e
SC
39274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39275 (exit $ac_status); } &&
fb00f58d
JS
39276 { ac_try='test -z "$ac_cxx_werror_flag"
39277 || test ! -s conftest.err'
ac1cb8d3
VS
39278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39279 (eval $ac_try) 2>&5
39280 ac_status=$?
39281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39282 (exit $ac_status); }; } &&
39283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39285 (eval $ac_try) 2>&5
39286 ac_status=$?
39287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39288 (exit $ac_status); }; }; then
39289 echo "$as_me:$LINENO: result: no" >&5
39290echo "${ECHO_T}no" >&6
39291else
39292 echo "$as_me: failed program was:" >&5
39293sed 's/^/| /' conftest.$ac_ext >&5
39294
39295echo "$as_me:$LINENO: result: yes" >&5
39296echo "${ECHO_T}yes" >&6
39297 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
39298fi
ac1cb8d3 39299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39300 ac_ext=c
39301ac_cpp='$CPP $CPPFLAGS'
39302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39304ac_compiler_gnu=$ac_cv_c_compiler_gnu
39305
a848cd7e
SC
39306 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39307 if test "$wxUSE_OLE" = "yes" ; then
39308 cat >>confdefs.h <<\_ACEOF
39309#define wxUSE_OLE 1
39310_ACEOF
39311
0b78747f 39312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
39313 fi
39314 fi
39315
39316 if test "$wxUSE_DATAOBJ" = "yes" ; then
39317 cat >>confdefs.h <<\_ACEOF
39318#define wxUSE_DATAOBJ 1
39319_ACEOF
39320
39321 fi
39322 else
39323 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39324echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39325
39326 wxUSE_CLIPBOARD=no
39327 wxUSE_DRAG_AND_DROP=no
39328 wxUSE_DATAOBJ=no
39329 wxUSE_OLE=no
39330 fi
39331
39332 if test "$wxUSE_METAFILE" = "yes"; then
39333 cat >>confdefs.h <<\_ACEOF
39334#define wxUSE_METAFILE 1
39335_ACEOF
39336
39337
39338 cat >>confdefs.h <<\_ACEOF
39339#define wxUSE_ENH_METAFILE 1
39340_ACEOF
39341
39342 fi
39343fi
39344
39345if test "$wxUSE_IPC" = "yes"; then
0b78747f 39346 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
39347 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39348echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 39349 wxUSE_IPC=no
a848cd7e
SC
39350 fi
39351
0b78747f
MW
39352 if test "$wxUSE_IPC" = "yes"; then
39353 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39354#define wxUSE_IPC 1
39355_ACEOF
39356
0b78747f
MW
39357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39358 fi
a848cd7e
SC
39359fi
39360
39361if test "$wxUSE_CLIPBOARD" = "yes"; then
39362 if test "$wxUSE_MGL" = 1; then
39363 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39364echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39365 wxUSE_CLIPBOARD=no
39366 fi
39367
39368 if test "$wxUSE_CLIPBOARD" = "yes"; then
39369 cat >>confdefs.h <<\_ACEOF
39370#define wxUSE_CLIPBOARD 1
39371_ACEOF
39372
39373
39374 cat >>confdefs.h <<\_ACEOF
39375#define wxUSE_DATAOBJ 1
39376_ACEOF
39377
39378 fi
39379fi
39380
39381if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39382 if test "$wxUSE_GTK" = 1; then
39383 if test "$WXGTK12" != 1; then
39384 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39385echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39386 wxUSE_DRAG_AND_DROP=no
39387 fi
39388 fi
39389
39390 if test "$wxUSE_MOTIF" = 1; then
39391 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39392echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39393 wxUSE_DRAG_AND_DROP=no
39394 fi
39395
39396 if test "$wxUSE_X11" = 1; then
39397 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39398echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39399 wxUSE_DRAG_AND_DROP=no
39400 fi
39401
39402 if test "$wxUSE_MGL" = 1; then
39403 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39404echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39405 wxUSE_DRAG_AND_DROP=no
39406 fi
39407
39408 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
39409 cat >>confdefs.h <<\_ACEOF
39410#define wxUSE_DRAG_AND_DROP 1
39411_ACEOF
39412
39413 fi
39414
39415fi
39416
39417if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
39418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
39419fi
39420
39421if test "$wxUSE_SPLINES" = "yes" ; then
39422 cat >>confdefs.h <<\_ACEOF
39423#define wxUSE_SPLINES 1
39424_ACEOF
39425
39426fi
39427
fbe2ca43
SN
39428if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
39429 cat >>confdefs.h <<\_ACEOF
39430#define wxUSE_MOUSEWHEEL 1
39431_ACEOF
39432
39433fi
39434
a848cd7e
SC
39435
39436USES_CONTROLS=0
39437if test "$wxUSE_CONTROLS" = "yes"; then
39438 USES_CONTROLS=1
39439fi
39440
39441if test "$wxUSE_ACCEL" = "yes"; then
39442 cat >>confdefs.h <<\_ACEOF
39443#define wxUSE_ACCEL 1
39444_ACEOF
39445
39446 USES_CONTROLS=1
39447fi
39448
39449if test "$wxUSE_BUTTON" = "yes"; then
39450 cat >>confdefs.h <<\_ACEOF
39451#define wxUSE_BUTTON 1
39452_ACEOF
39453
39454 USES_CONTROLS=1
39455fi
39456
39457if test "$wxUSE_BMPBUTTON" = "yes"; then
39458 cat >>confdefs.h <<\_ACEOF
39459#define wxUSE_BMPBUTTON 1
39460_ACEOF
39461
39462 USES_CONTROLS=1
39463fi
39464
39465if test "$wxUSE_CALCTRL" = "yes"; then
39466 cat >>confdefs.h <<\_ACEOF
39467#define wxUSE_CALENDARCTRL 1
39468_ACEOF
39469
39470 USES_CONTROLS=1
39471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39472fi
39473
39474if test "$wxUSE_CARET" = "yes"; then
39475 cat >>confdefs.h <<\_ACEOF
39476#define wxUSE_CARET 1
39477_ACEOF
39478
39479 USES_CONTROLS=1
39480 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39481fi
39482
39483if test "$wxUSE_COMBOBOX" = "yes"; then
39484 cat >>confdefs.h <<\_ACEOF
39485#define wxUSE_COMBOBOX 1
39486_ACEOF
39487
39488 USES_CONTROLS=1
39489fi
39490
39491if test "$wxUSE_CHOICE" = "yes"; then
39492 cat >>confdefs.h <<\_ACEOF
39493#define wxUSE_CHOICE 1
39494_ACEOF
39495
39496 USES_CONTROLS=1
39497fi
39498
92bbdbcd
WS
39499if test "$wxUSE_CHOICEBOOK" = "yes"; then
39500 cat >>confdefs.h <<\_ACEOF
39501#define wxUSE_CHOICEBOOK 1
39502_ACEOF
39503
39504 USES_CONTROLS=1
39505fi
39506
a848cd7e
SC
39507if test "$wxUSE_CHECKBOX" = "yes"; then
39508 cat >>confdefs.h <<\_ACEOF
39509#define wxUSE_CHECKBOX 1
39510_ACEOF
39511
39512 USES_CONTROLS=1
39513fi
39514
39515if test "$wxUSE_CHECKLST" = "yes"; then
39516 cat >>confdefs.h <<\_ACEOF
39517#define wxUSE_CHECKLISTBOX 1
39518_ACEOF
39519
39520 USES_CONTROLS=1
39521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
39522fi
39523
da98e9be
VZ
39524if test "$wxUSE_DATEPICKCTRL" = "yes"; then
39525 cat >>confdefs.h <<\_ACEOF
39526#define wxUSE_DATEPICKCTRL 1
39527_ACEOF
39528
39529 USES_CONTROLS=1
39530fi
39531
a848cd7e
SC
39532if test "$wxUSE_DISPLAY" = "yes"; then
39533 cat >>confdefs.h <<\_ACEOF
39534#define wxUSE_DISPLAY 1
39535_ACEOF
39536
0b78747f 39537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
39538fi
39539
39540if test "$wxUSE_GAUGE" = "yes"; then
39541 cat >>confdefs.h <<\_ACEOF
39542#define wxUSE_GAUGE 1
39543_ACEOF
39544
39545 USES_CONTROLS=1
39546fi
39547
39548if test "$wxUSE_GRID" = "yes"; then
39549 cat >>confdefs.h <<\_ACEOF
39550#define wxUSE_GRID 1
39551_ACEOF
39552
39553 USES_CONTROLS=1
39554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39555fi
39556
39557if test "$wxUSE_IMAGLIST" = "yes"; then
39558 cat >>confdefs.h <<\_ACEOF
39559#define wxUSE_IMAGLIST 1
39560_ACEOF
39561
39562fi
39563
39564if test "$wxUSE_LISTBOOK" = "yes"; then
39565 cat >>confdefs.h <<\_ACEOF
39566#define wxUSE_LISTBOOK 1
39567_ACEOF
39568
39569 USES_CONTROLS=1
39570fi
39571
39572if test "$wxUSE_LISTBOX" = "yes"; then
39573 cat >>confdefs.h <<\_ACEOF
39574#define wxUSE_LISTBOX 1
39575_ACEOF
39576
39577 USES_CONTROLS=1
0b78747f 39578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39579fi
39580
39581if test "$wxUSE_LISTCTRL" = "yes"; then
39582 if test "$wxUSE_IMAGLIST" = "yes"; then
39583 cat >>confdefs.h <<\_ACEOF
39584#define wxUSE_LISTCTRL 1
39585_ACEOF
39586
39587 USES_CONTROLS=1
39588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39589 else
39590 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39591echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39592 fi
39593fi
39594
39595if test "$wxUSE_NOTEBOOK" = "yes"; then
39596 cat >>confdefs.h <<\_ACEOF
39597#define wxUSE_NOTEBOOK 1
39598_ACEOF
39599
39600 USES_CONTROLS=1
39601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39602fi
39603
39604
39605if test "$wxUSE_RADIOBOX" = "yes"; then
39606 cat >>confdefs.h <<\_ACEOF
39607#define wxUSE_RADIOBOX 1
39608_ACEOF
39609
39610 USES_CONTROLS=1
39611fi
39612
39613if test "$wxUSE_RADIOBTN" = "yes"; then
39614 cat >>confdefs.h <<\_ACEOF
39615#define wxUSE_RADIOBTN 1
39616_ACEOF
39617
39618 USES_CONTROLS=1
39619fi
39620
39621if test "$wxUSE_SASH" = "yes"; then
39622 cat >>confdefs.h <<\_ACEOF
39623#define wxUSE_SASH 1
39624_ACEOF
39625
39626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
39627fi
39628
39629if test "$wxUSE_SCROLLBAR" = "yes"; then
39630 cat >>confdefs.h <<\_ACEOF
39631#define wxUSE_SCROLLBAR 1
39632_ACEOF
39633
39634 USES_CONTROLS=1
39635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39636fi
39637
39638if test "$wxUSE_SLIDER" = "yes"; then
39639 cat >>confdefs.h <<\_ACEOF
39640#define wxUSE_SLIDER 1
39641_ACEOF
39642
39643 USES_CONTROLS=1
39644fi
39645
39646if test "$wxUSE_SPINBTN" = "yes"; then
39647 cat >>confdefs.h <<\_ACEOF
39648#define wxUSE_SPINBTN 1
39649_ACEOF
39650
39651 USES_CONTROLS=1
39652fi
39653
39654if test "$wxUSE_SPINCTRL" = "yes"; then
39655 cat >>confdefs.h <<\_ACEOF
39656#define wxUSE_SPINCTRL 1
39657_ACEOF
39658
39659 USES_CONTROLS=1
39660fi
39661
39662if test "$wxUSE_SPLITTER" = "yes"; then
39663 cat >>confdefs.h <<\_ACEOF
39664#define wxUSE_SPLITTER 1
39665_ACEOF
39666
39667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39668fi
39669
39670if test "$wxUSE_STATBMP" = "yes"; then
39671 cat >>confdefs.h <<\_ACEOF
39672#define wxUSE_STATBMP 1
39673_ACEOF
39674
39675 USES_CONTROLS=1
39676fi
39677
39678if test "$wxUSE_STATBOX" = "yes"; then
39679 cat >>confdefs.h <<\_ACEOF
39680#define wxUSE_STATBOX 1
39681_ACEOF
39682
39683 USES_CONTROLS=1
39684fi
39685
39686if test "$wxUSE_STATTEXT" = "yes"; then
39687 cat >>confdefs.h <<\_ACEOF
39688#define wxUSE_STATTEXT 1
39689_ACEOF
39690
39691 USES_CONTROLS=1
39692fi
39693
39694if test "$wxUSE_STATLINE" = "yes"; then
39695 cat >>confdefs.h <<\_ACEOF
39696#define wxUSE_STATLINE 1
39697_ACEOF
39698
39699 USES_CONTROLS=1
39700fi
39701
39702if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
39703 cat >>confdefs.h <<\_ACEOF
39704#define wxUSE_NATIVE_STATUSBAR 1
39705_ACEOF
39706
a848cd7e
SC
39707 cat >>confdefs.h <<\_ACEOF
39708#define wxUSE_STATUSBAR 1
39709_ACEOF
39710
39711 USES_CONTROLS=1
39712
39713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39714fi
39715
39716if test "$wxUSE_TABDIALOG" = "yes"; then
39717 cat >>confdefs.h <<\_ACEOF
39718#define wxUSE_TAB_DIALOG 1
39719_ACEOF
39720
a848cd7e
SC
39721fi
39722
39723if test "$wxUSE_TEXTCTRL" = "yes"; then
39724 cat >>confdefs.h <<\_ACEOF
39725#define wxUSE_TEXTCTRL 1
39726_ACEOF
39727
39728 USES_CONTROLS=1
39729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39730fi
39731
39732if test "$wxUSE_TOGGLEBTN" = "yes"; then
39733 if test "$wxUSE_COCOA" = 1 ; then
39734 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39735echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39736 wxUSE_TOGGLEBTN=no
39737 fi
39738 if test "$wxUSE_UNIVERSAL" = "yes"; then
39739 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39740echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39741 wxUSE_TOGGLEBTN=no
39742 fi
39743
39744 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39745 cat >>confdefs.h <<\_ACEOF
39746#define wxUSE_TOGGLEBTN 1
39747_ACEOF
39748
39749 USES_CONTROLS=1
39750 fi
39751fi
39752
39753if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39754 cat >>confdefs.h <<\_ACEOF
39755#define wxUSE_TOOLBAR_SIMPLE 1
39756_ACEOF
39757
39758 wxUSE_TOOLBAR="yes"
39759 USES_CONTROLS=1
39760fi
39761
39762if test "$wxUSE_TOOLBAR" = "yes"; then
39763 cat >>confdefs.h <<\_ACEOF
39764#define wxUSE_TOOLBAR 1
39765_ACEOF
39766
39767 USES_CONTROLS=1
39768
39769 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39770 wxUSE_TOOLBAR_NATIVE="yes"
39771 fi
39772
39773 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39774 cat >>confdefs.h <<\_ACEOF
39775#define wxUSE_TOOLBAR_NATIVE 1
39776_ACEOF
39777
39778 USES_CONTROLS=1
39779 fi
39780
39781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39782fi
39783
39784if test "$wxUSE_TOOLTIPS" = "yes"; then
39785 if test "$wxUSE_MOTIF" = 1; then
39786 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39787echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39788 else
39789 if test "$wxUSE_UNIVERSAL" = "yes"; then
39790 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39791echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39792 else
39793 cat >>confdefs.h <<\_ACEOF
39794#define wxUSE_TOOLTIPS 1
39795_ACEOF
39796
39797 fi
39798 fi
39799fi
39800
39801if test "$wxUSE_TREECTRL" = "yes"; then
39802 if test "$wxUSE_IMAGLIST" = "yes"; then
39803 cat >>confdefs.h <<\_ACEOF
39804#define wxUSE_TREECTRL 1
39805_ACEOF
39806
39807 USES_CONTROLS=1
39808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39809 else
39810 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39811echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39812 fi
39813fi
39814
39815if test "$wxUSE_POPUPWIN" = "yes"; then
39816 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39817 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39818echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39819 else
39820 if test "$wxUSE_PM" = 1; then
39821 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39822echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39823 else
39824 cat >>confdefs.h <<\_ACEOF
39825#define wxUSE_POPUPWIN 1
39826_ACEOF
39827
0b78747f 39828 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39829
39830 USES_CONTROLS=1
39831 fi
39832 fi
39833fi
39834
0dcd06dd 39835if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39836 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39837 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39838echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39839 else
39840 cat >>confdefs.h <<\_ACEOF
39841#define wxUSE_DIALUP_MANAGER 1
39842_ACEOF
39843
39844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39845 fi
39846fi
39847
a848cd7e
SC
39848if test "$wxUSE_TIPWINDOW" = "yes"; then
39849 if test "$wxUSE_PM" = 1; then
39850 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39851echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39852 else
39853 cat >>confdefs.h <<\_ACEOF
39854#define wxUSE_TIPWINDOW 1
39855_ACEOF
39856
39857 fi
39858fi
39859
39860if test "$USES_CONTROLS" = 1; then
39861 cat >>confdefs.h <<\_ACEOF
39862#define wxUSE_CONTROLS 1
39863_ACEOF
39864
39865fi
39866
39867
39868if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39869 cat >>confdefs.h <<\_ACEOF
39870#define wxUSE_ACCESSIBILITY 1
39871_ACEOF
39872
39873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39874fi
39875
39876if test "$wxUSE_DRAGIMAGE" = "yes"; then
39877 cat >>confdefs.h <<\_ACEOF
39878#define wxUSE_DRAGIMAGE 1
39879_ACEOF
39880
39881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39882fi
39883
39884if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39885 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39886 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39887echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39888 else
39889 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39890#define wxUSE_EXCEPTIONS 1
39891_ACEOF
39892
07bea8f0
VS
39893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39894 fi
a848cd7e
SC
39895fi
39896
39897USE_HTML=0
39898if test "$wxUSE_HTML" = "yes"; then
39899 cat >>confdefs.h <<\_ACEOF
39900#define wxUSE_HTML 1
39901_ACEOF
39902
39903 USE_HTML=1
39904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39905 if test "$wxUSE_MAC" = 1; then
39906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39907 fi
a848cd7e 39908fi
646b6ec1 39909if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39910 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39911 old_CPPFLAGS="$CPPFLAGS"
39912 CPPFLAGS="$CPPFLAGS -x objective-c++"
39913 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39914echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39915if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39916 echo $ECHO_N "(cached) $ECHO_C" >&6
39917else
39918 cat >conftest.$ac_ext <<_ACEOF
39919/* confdefs.h. */
39920_ACEOF
39921cat confdefs.h >>conftest.$ac_ext
39922cat >>conftest.$ac_ext <<_ACEOF
39923/* end confdefs.h. */
39924#include <Carbon/Carbon.h>
39925
39926#include <WebKit/HIWebView.h>
39927_ACEOF
39928rm -f conftest.$ac_objext
39929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39930 (eval $ac_compile) 2>conftest.er1
39931 ac_status=$?
39932 grep -v '^ *+' conftest.er1 >conftest.err
39933 rm -f conftest.er1
39934 cat conftest.err >&5
39935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39936 (exit $ac_status); } &&
fb00f58d
JS
39937 { ac_try='test -z "$ac_c_werror_flag"
39938 || test ! -s conftest.err'
07bea8f0
VS
39939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39940 (eval $ac_try) 2>&5
39941 ac_status=$?
39942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39943 (exit $ac_status); }; } &&
39944 { ac_try='test -s conftest.$ac_objext'
39945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39946 (eval $ac_try) 2>&5
39947 ac_status=$?
39948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39949 (exit $ac_status); }; }; then
39950 ac_cv_header_WebKit_HIWebView_h=yes
39951else
39952 echo "$as_me: failed program was:" >&5
39953sed 's/^/| /' conftest.$ac_ext >&5
39954
39955ac_cv_header_WebKit_HIWebView_h=no
39956fi
39957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39958fi
39959echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39960echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39961if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39962
39963 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39964#define wxUSE_WEBKIT 1
39965_ACEOF
39966
07bea8f0
VS
39967 WEBKIT_LINK="-framework WebKit"
39968
39969else
39970
39971 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39972echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39973 wxUSE_WEBKIT=no
39974
646b6ec1
VS
39975fi
39976
07bea8f0
VS
39977
39978 CPPFLAGS="$old_CPPFLAGS"
39979 elif test "$wxUSE_COCOA" = 1; then
39980 cat >>confdefs.h <<\_ACEOF
39981#define wxUSE_WEBKIT 1
39982_ACEOF
39983
39984 else
39985 wxUSE_WEBKIT=no
39986 fi
39987fi
39988
9a8f0513
VS
39989USE_XRC=0
39990if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39991 if test "$wxUSE_XML" != "yes"; then
39992 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39993echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39994 wxUSE_XRC=no
39995 else
39996 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39997#define wxUSE_XRC 1
39998_ACEOF
39999
d2ebf0b7
VS
40000 USE_XRC=1
40001 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
40002 fi
9a8f0513 40003fi
07bea8f0 40004
a848cd7e
SC
40005if test "$wxUSE_MENUS" = "yes"; then
40006 cat >>confdefs.h <<\_ACEOF
40007#define wxUSE_MENUS 1
40008_ACEOF
40009
40010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40011fi
40012
40013if test "$wxUSE_METAFILE" = "yes"; then
40014 cat >>confdefs.h <<\_ACEOF
40015#define wxUSE_METAFILE 1
40016_ACEOF
40017
40018fi
40019
40020if test "$wxUSE_MIMETYPE" = "yes"; then
40021 cat >>confdefs.h <<\_ACEOF
40022#define wxUSE_MIMETYPE 1
40023_ACEOF
40024
40025fi
40026
40027if test "$wxUSE_MINIFRAME" = "yes"; then
40028 cat >>confdefs.h <<\_ACEOF
40029#define wxUSE_MINIFRAME 1
40030_ACEOF
40031
40032 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40033fi
40034
40035if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40036 cat >>confdefs.h <<\_ACEOF
40037#define wxUSE_SYSTEM_OPTIONS 1
40038_ACEOF
40039
40040 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40041 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40043 fi
40044fi
40045
40046
40047if test "$wxUSE_VALIDATORS" = "yes"; then
40048 cat >>confdefs.h <<\_ACEOF
40049#define wxUSE_VALIDATORS 1
40050_ACEOF
40051
40052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40053fi
40054
40055if test "$wxUSE_PALETTE" = "yes" ; then
40056 cat >>confdefs.h <<\_ACEOF
40057#define wxUSE_PALETTE 1
40058_ACEOF
40059
40060fi
40061
40062if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40063 LIBS=" -lunicows $LIBS"
40064fi
40065
40066
40067if test "$wxUSE_IMAGE" = "yes" ; then
40068 cat >>confdefs.h <<\_ACEOF
40069#define wxUSE_IMAGE 1
40070_ACEOF
40071
40072
40073 if test "$wxUSE_GIF" = "yes" ; then
40074 cat >>confdefs.h <<\_ACEOF
40075#define wxUSE_GIF 1
40076_ACEOF
40077
40078 fi
40079
40080 if test "$wxUSE_PCX" = "yes" ; then
40081 cat >>confdefs.h <<\_ACEOF
40082#define wxUSE_PCX 1
40083_ACEOF
40084
40085 fi
40086
40087 if test "$wxUSE_IFF" = "yes" ; then
40088 cat >>confdefs.h <<\_ACEOF
40089#define wxUSE_IFF 1
40090_ACEOF
40091
40092 fi
40093
40094 if test "$wxUSE_PNM" = "yes" ; then
40095 cat >>confdefs.h <<\_ACEOF
40096#define wxUSE_PNM 1
40097_ACEOF
40098
40099 fi
40100
40101 if test "$wxUSE_XPM" = "yes" ; then
40102 cat >>confdefs.h <<\_ACEOF
40103#define wxUSE_XPM 1
40104_ACEOF
40105
40106 fi
40107
40108 if test "$wxUSE_ICO_CUR" = "yes" ; then
40109 cat >>confdefs.h <<\_ACEOF
40110#define wxUSE_ICO_CUR 1
40111_ACEOF
40112
40113 fi
40114fi
40115
40116
40117if test "$wxUSE_CHOICEDLG" = "yes"; then
40118 cat >>confdefs.h <<\_ACEOF
40119#define wxUSE_CHOICEDLG 1
40120_ACEOF
40121
40122fi
40123
40124if test "$wxUSE_COLOURDLG" = "yes"; then
40125 cat >>confdefs.h <<\_ACEOF
40126#define wxUSE_COLOURDLG 1
40127_ACEOF
40128
40129fi
40130
40131if test "$wxUSE_FILEDLG" = "yes"; then
40132 cat >>confdefs.h <<\_ACEOF
40133#define wxUSE_FILEDLG 1
40134_ACEOF
40135
40136fi
40137
40138if test "$wxUSE_FINDREPLDLG" = "yes"; then
40139 cat >>confdefs.h <<\_ACEOF
40140#define wxUSE_FINDREPLDLG 1
40141_ACEOF
40142
40143fi
40144
40145if test "$wxUSE_FONTDLG" = "yes"; then
40146 cat >>confdefs.h <<\_ACEOF
40147#define wxUSE_FONTDLG 1
40148_ACEOF
40149
40150fi
40151
40152if test "$wxUSE_DIRDLG" = "yes"; then
40153 if test "$wxUSE_TREECTRL" != "yes"; then
40154 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40155echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40156 else
40157 cat >>confdefs.h <<\_ACEOF
40158#define wxUSE_DIRDLG 1
40159_ACEOF
40160
40161 fi
40162fi
40163
40164if test "$wxUSE_MSGDLG" = "yes"; then
40165 cat >>confdefs.h <<\_ACEOF
40166#define wxUSE_MSGDLG 1
40167_ACEOF
40168
40169fi
40170
40171if test "$wxUSE_NUMBERDLG" = "yes"; then
40172 cat >>confdefs.h <<\_ACEOF
40173#define wxUSE_NUMBERDLG 1
40174_ACEOF
40175
40176fi
40177
40178if test "$wxUSE_PROGRESSDLG" = "yes"; then
40179 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40180 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
40181echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
40182 else
40183 cat >>confdefs.h <<\_ACEOF
40184#define wxUSE_PROGRESSDLG 1
40185_ACEOF
40186
40187 fi
40188fi
40189
40190if test "$wxUSE_SPLASH" = "yes"; then
40191 cat >>confdefs.h <<\_ACEOF
40192#define wxUSE_SPLASH 1
40193_ACEOF
40194
2057db16 40195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
40196fi
40197
40198if test "$wxUSE_STARTUP_TIPS" = "yes"; then
40199 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40200 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
40201echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
40202 else
40203 cat >>confdefs.h <<\_ACEOF
40204#define wxUSE_STARTUP_TIPS 1
40205_ACEOF
40206
40207 fi
40208fi
40209
40210if test "$wxUSE_TEXTDLG" = "yes"; then
40211 cat >>confdefs.h <<\_ACEOF
40212#define wxUSE_TEXTDLG 1
40213_ACEOF
40214
40215fi
40216
40217if test "$wxUSE_WIZARDDLG" = "yes"; then
40218 cat >>confdefs.h <<\_ACEOF
40219#define wxUSE_WIZARDDLG 1
40220_ACEOF
40221
40222 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
40223fi
40224
40225
ce756cb0 40226if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
40227 if test "$wxUSE_GTK" = 1; then
40228 wxUSE_GSTREAMER="yes"
40229
ce756cb0 40230
dae87f93 40231 succeeded=no
ce756cb0 40232
dae87f93
RN
40233 if test -z "$PKG_CONFIG"; then
40234 # Extract the first word of "pkg-config", so it can be a program name with args.
40235set dummy pkg-config; ac_word=$2
40236echo "$as_me:$LINENO: checking for $ac_word" >&5
40237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40238if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40239 echo $ECHO_N "(cached) $ECHO_C" >&6
40240else
40241 case $PKG_CONFIG in
40242 [\\/]* | ?:[\\/]*)
40243 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40244 ;;
40245 *)
40246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40247for as_dir in $PATH
40248do
40249 IFS=$as_save_IFS
40250 test -z "$as_dir" && as_dir=.
40251 for ac_exec_ext in '' $ac_executable_extensions; do
40252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40253 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40255 break 2
40256 fi
40257done
40258done
40259
40260 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40261 ;;
40262esac
40263fi
40264PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40265
40266if test -n "$PKG_CONFIG"; then
40267 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40268echo "${ECHO_T}$PKG_CONFIG" >&6
40269else
40270 echo "$as_me:$LINENO: result: no" >&5
40271echo "${ECHO_T}no" >&6
40272fi
40273
40274 fi
40275
40276 if test "$PKG_CONFIG" = "no" ; then
40277 echo "*** The pkg-config script could not be found. Make sure it is"
40278 echo "*** in your path, or set the PKG_CONFIG environment variable"
40279 echo "*** to the full path to pkg-config."
40280 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40281 else
40282 PKG_CONFIG_MIN_VERSION=0.9.0
40283 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40284 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40285echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40286
40287 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40288 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40289echo "${ECHO_T}yes" >&6
dae87f93 40290 succeeded=yes
ce756cb0 40291
dae87f93
RN
40292 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40293echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40294 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40295 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40296echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40297
40298 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40299echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40300 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40301 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40302echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40303 else
40304 GSTREAMER_CFLAGS=""
40305 GSTREAMER_LIBS=""
40306 ## If we have a custom action on failure, don't print errors, but
40307 ## do set a variable so people can do so.
40308 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 40309
dae87f93
RN
40310 fi
40311
40312
40313
40314 else
40315 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40316 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40317 fi
40318 fi
40319
40320 if test $succeeded = yes; then
40321
40322 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40323 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 40324
ce756cb0 40325 else
dae87f93
RN
40326
40327 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40328echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40329 wxUSE_GSTREAMER="no"
40330
40331 fi
40332
40333
40334
40335
40336
40337 if test "x$GST_INSPECT" == "x"; then
40338 # Extract the first word of "gst-inspect", so it can be a program name with args.
40339set dummy gst-inspect; ac_word=$2
40340echo "$as_me:$LINENO: checking for $ac_word" >&5
40341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40342if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40343 echo $ECHO_N "(cached) $ECHO_C" >&6
40344else
40345 if test -n "$GST_INSPECT"; then
40346 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40347else
40348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40349for as_dir in $PATH
40350do
40351 IFS=$as_save_IFS
40352 test -z "$as_dir" && as_dir=.
40353 for ac_exec_ext in '' $ac_executable_extensions; do
40354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40355 ac_cv_prog_GST_INSPECT="gst-inspect"
40356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40357 break 2
ce756cb0 40358 fi
dae87f93
RN
40359done
40360done
40361
40362fi
40363fi
40364GST_INSPECT=$ac_cv_prog_GST_INSPECT
40365if test -n "$GST_INSPECT"; then
40366 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40367echo "${ECHO_T}$GST_INSPECT" >&6
40368else
40369 echo "$as_me:$LINENO: result: no" >&5
40370echo "${ECHO_T}no" >&6
40371fi
40372
40373 fi
40374
40375 if test "x$GST_INSPECT" != "x"; then
40376 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40377echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40378 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40379 echo "$as_me:$LINENO: result: found." >&5
40380echo "${ECHO_T}found." >&6
ce756cb0 40381
ce756cb0 40382 else
dae87f93
RN
40383 echo "$as_me:$LINENO: result: not found." >&5
40384echo "${ECHO_T}not found." >&6
40385
40386 wxUSE_GSTREAMER="no"
40387 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40388echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40389
40390 fi
40391 fi
40392
40393
40394 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40395echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40396if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40397 echo $ECHO_N "(cached) $ECHO_C" >&6
40398else
40399 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40400/* confdefs.h. */
40401_ACEOF
40402cat confdefs.h >>conftest.$ac_ext
40403cat >>conftest.$ac_ext <<_ACEOF
40404/* end confdefs.h. */
dae87f93 40405#include <gst/gst.h>
ce756cb0 40406
dae87f93 40407#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40408_ACEOF
40409rm -f conftest.$ac_objext
40410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40411 (eval $ac_compile) 2>conftest.er1
40412 ac_status=$?
40413 grep -v '^ *+' conftest.er1 >conftest.err
40414 rm -f conftest.er1
40415 cat conftest.err >&5
40416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40417 (exit $ac_status); } &&
fb00f58d
JS
40418 { ac_try='test -z "$ac_c_werror_flag"
40419 || test ! -s conftest.err'
ce756cb0
RN
40420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40421 (eval $ac_try) 2>&5
40422 ac_status=$?
40423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40424 (exit $ac_status); }; } &&
40425 { ac_try='test -s conftest.$ac_objext'
40426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40427 (eval $ac_try) 2>&5
40428 ac_status=$?
40429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40430 (exit $ac_status); }; }; then
dae87f93 40431 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40432else
40433 echo "$as_me: failed program was:" >&5
40434sed 's/^/| /' conftest.$ac_ext >&5
40435
dae87f93 40436ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40437fi
40438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40439fi
40440echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40441echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40442if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40443 :
40444else
ce756cb0 40445
dae87f93
RN
40446 wxUSE_GSTREAMER="no"
40447 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40448echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40449
dae87f93 40450fi
ce756cb0 40451
dae87f93
RN
40452
40453
40454 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40455echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40456
40457ac_find_libraries=
40458for ac_dir in $SEARCH_LIB /usr/lib;
40459 do
40460 for ac_extension in a so sl dylib; do
40461 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40462 ac_find_libraries=$ac_dir
40463 break 2
40464 fi
40465 done
40466 done
40467
ce756cb0 40468
dae87f93
RN
40469 if test "$ac_find_libraries" = "" ; then
40470 echo "$as_me:$LINENO: result: no" >&5
40471echo "${ECHO_T}no" >&6
40472 wxUSE_GSTREAMER="no"
40473 else
40474 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40475echo "${ECHO_T}yes" >&6
dae87f93 40476 fi
ce756cb0 40477
dae87f93
RN
40478 if test "$wxUSE_GSTREAMER" = "yes"; then
40479 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40480#define wxUSE_GSTREAMER 1
40481_ACEOF
40482
dae87f93
RN
40483 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40484echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40485 fi
40486 fi
40487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40488 cat >>confdefs.h <<\_ACEOF
40489#define wxUSE_MEDIACTRL 1
40490_ACEOF
40491
40492fi
40493
40494
a848cd7e
SC
40495if test "$cross_compiling" = "yes"; then
40496 OSINFO="\"$host\""
40497else
40498 OSINFO=`uname -s -r -m`
40499 OSINFO="\"$OSINFO\""
40500fi
40501
40502cat >>confdefs.h <<_ACEOF
40503#define WXWIN_OS_DESCRIPTION $OSINFO
40504_ACEOF
40505
40506
40507
40508if test "x$prefix" != "xNONE"; then
40509 wxPREFIX=$prefix
40510else
40511 wxPREFIX=$ac_default_prefix
40512fi
40513
40514cat >>confdefs.h <<_ACEOF
40515#define wxINSTALL_PREFIX "$wxPREFIX"
40516_ACEOF
40517
40518
a848cd7e
SC
40519
40520
40521CORE_BASE_LIBS="net base"
40522CORE_GUI_LIBS="adv core"
40523
40524if test "$wxUSE_XML" = "yes" ; then
40525 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40526fi
40527if test "$wxUSE_ODBC" != "no" ; then
40528 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40529 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40530fi
40531if test "$wxUSE_HTML" = "yes" ; then
40532 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40533fi
61639efb
VZ
40534if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40535 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40536fi
9a8f0513
VS
40537if test "$wxUSE_XRC" = "yes" ; then
40538 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40539fi
a848cd7e
SC
40540
40541if test "$wxUSE_GUI" != "yes"; then
40542 CORE_GUI_LIBS=""
40543fi
40544
40545
40546
40547
40548
40549
40550
40551
40552if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40553 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40554 if test "$USE_DARWIN" = 1; then
40555 LDFLAGS="$LDFLAGS -framework QuickTime"
40556 else
40557 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40558 fi
07bea8f0 40559 fi
5dcf30a0 40560 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40561 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40562 else
40563 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40564 fi
a848cd7e
SC
40565fi
40566if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40567 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40568 if test "$wxUSE_MEDIACTRL" = "yes"; then
40569 LDFLAGS="$LDFLAGS -framework QuickTime"
40570 fi
a848cd7e 40571fi
19b27e78
MW
40572if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
40573 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
40574fi
a848cd7e
SC
40575
40576
40577LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40578
40579have_cos=0
40580have_floor=0
40581
40582for ac_func in cos
40583do
40584as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40585echo "$as_me:$LINENO: checking for $ac_func" >&5
40586echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40587if eval "test \"\${$as_ac_var+set}\" = set"; then
40588 echo $ECHO_N "(cached) $ECHO_C" >&6
40589else
40590 cat >conftest.$ac_ext <<_ACEOF
40591/* confdefs.h. */
40592_ACEOF
40593cat confdefs.h >>conftest.$ac_ext
40594cat >>conftest.$ac_ext <<_ACEOF
40595/* end confdefs.h. */
ac1cb8d3
VS
40596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40598#define $ac_func innocuous_$ac_func
40599
a848cd7e
SC
40600/* System header to define __stub macros and hopefully few prototypes,
40601 which can conflict with char $ac_func (); below.
40602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40603 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40604
a848cd7e
SC
40605#ifdef __STDC__
40606# include <limits.h>
40607#else
40608# include <assert.h>
40609#endif
ac1cb8d3
VS
40610
40611#undef $ac_func
40612
a848cd7e
SC
40613/* Override any gcc2 internal prototype to avoid an error. */
40614#ifdef __cplusplus
40615extern "C"
40616{
40617#endif
40618/* We use char because int might match the return type of a gcc2
40619 builtin and then its argument prototype would still apply. */
40620char $ac_func ();
40621/* The GNU C library defines this for functions which it implements
40622 to always fail with ENOSYS. Some functions are actually named
40623 something starting with __ and the normal name is an alias. */
40624#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40625choke me
40626#else
40627char (*f) () = $ac_func;
40628#endif
40629#ifdef __cplusplus
40630}
40631#endif
40632
40633int
40634main ()
40635{
40636return f != $ac_func;
40637 ;
40638 return 0;
40639}
40640_ACEOF
40641rm -f conftest.$ac_objext conftest$ac_exeext
40642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40643 (eval $ac_link) 2>conftest.er1
a848cd7e 40644 ac_status=$?
ac1cb8d3
VS
40645 grep -v '^ *+' conftest.er1 >conftest.err
40646 rm -f conftest.er1
40647 cat conftest.err >&5
a848cd7e
SC
40648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649 (exit $ac_status); } &&
fb00f58d
JS
40650 { ac_try='test -z "$ac_c_werror_flag"
40651 || test ! -s conftest.err'
ac1cb8d3
VS
40652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40653 (eval $ac_try) 2>&5
40654 ac_status=$?
40655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40656 (exit $ac_status); }; } &&
40657 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40659 (eval $ac_try) 2>&5
40660 ac_status=$?
40661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40662 (exit $ac_status); }; }; then
40663 eval "$as_ac_var=yes"
40664else
40665 echo "$as_me: failed program was:" >&5
40666sed 's/^/| /' conftest.$ac_ext >&5
40667
40668eval "$as_ac_var=no"
40669fi
ac1cb8d3
VS
40670rm -f conftest.err conftest.$ac_objext \
40671 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40672fi
40673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40674echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40675if test `eval echo '${'$as_ac_var'}'` = yes; then
40676 cat >>confdefs.h <<_ACEOF
40677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40678_ACEOF
40679 have_cos=1
40680fi
40681done
40682
40683
40684for ac_func in floor
40685do
40686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40687echo "$as_me:$LINENO: checking for $ac_func" >&5
40688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40689if eval "test \"\${$as_ac_var+set}\" = set"; then
40690 echo $ECHO_N "(cached) $ECHO_C" >&6
40691else
40692 cat >conftest.$ac_ext <<_ACEOF
40693/* confdefs.h. */
40694_ACEOF
40695cat confdefs.h >>conftest.$ac_ext
40696cat >>conftest.$ac_ext <<_ACEOF
40697/* end confdefs.h. */
ac1cb8d3
VS
40698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40700#define $ac_func innocuous_$ac_func
40701
a848cd7e
SC
40702/* System header to define __stub macros and hopefully few prototypes,
40703 which can conflict with char $ac_func (); below.
40704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40705 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40706
a848cd7e
SC
40707#ifdef __STDC__
40708# include <limits.h>
40709#else
40710# include <assert.h>
40711#endif
ac1cb8d3
VS
40712
40713#undef $ac_func
40714
a848cd7e
SC
40715/* Override any gcc2 internal prototype to avoid an error. */
40716#ifdef __cplusplus
40717extern "C"
40718{
40719#endif
40720/* We use char because int might match the return type of a gcc2
40721 builtin and then its argument prototype would still apply. */
40722char $ac_func ();
40723/* The GNU C library defines this for functions which it implements
40724 to always fail with ENOSYS. Some functions are actually named
40725 something starting with __ and the normal name is an alias. */
40726#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40727choke me
40728#else
40729char (*f) () = $ac_func;
40730#endif
40731#ifdef __cplusplus
40732}
40733#endif
40734
40735int
40736main ()
40737{
40738return f != $ac_func;
40739 ;
40740 return 0;
40741}
40742_ACEOF
40743rm -f conftest.$ac_objext conftest$ac_exeext
40744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40745 (eval $ac_link) 2>conftest.er1
a848cd7e 40746 ac_status=$?
ac1cb8d3
VS
40747 grep -v '^ *+' conftest.er1 >conftest.err
40748 rm -f conftest.er1
40749 cat conftest.err >&5
a848cd7e
SC
40750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751 (exit $ac_status); } &&
fb00f58d
JS
40752 { ac_try='test -z "$ac_c_werror_flag"
40753 || test ! -s conftest.err'
ac1cb8d3
VS
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_exeext'
a848cd7e
SC
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 eval "$as_ac_var=yes"
40766else
40767 echo "$as_me: failed program was:" >&5
40768sed 's/^/| /' conftest.$ac_ext >&5
40769
40770eval "$as_ac_var=no"
40771fi
ac1cb8d3
VS
40772rm -f conftest.err conftest.$ac_objext \
40773 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40774fi
40775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40776echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40777if test `eval echo '${'$as_ac_var'}'` = yes; then
40778 cat >>confdefs.h <<_ACEOF
40779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40780_ACEOF
40781 have_floor=1
40782fi
40783done
40784
40785echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40786echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40787if test "$have_cos" = 1 -a "$have_floor" = 1; then
40788 echo "$as_me:$LINENO: result: yes" >&5
40789echo "${ECHO_T}yes" >&6
40790else
40791 echo "$as_me:$LINENO: result: no" >&5
40792echo "${ECHO_T}no" >&6
40793 LIBS="$LIBS -lm"
40794 # use different functions to avoid configure caching
40795 have_sin=0
40796 have_ceil=0
40797
40798for ac_func in sin
40799do
40800as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40801echo "$as_me:$LINENO: checking for $ac_func" >&5
40802echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40803if eval "test \"\${$as_ac_var+set}\" = set"; then
40804 echo $ECHO_N "(cached) $ECHO_C" >&6
40805else
40806 cat >conftest.$ac_ext <<_ACEOF
40807/* confdefs.h. */
40808_ACEOF
40809cat confdefs.h >>conftest.$ac_ext
40810cat >>conftest.$ac_ext <<_ACEOF
40811/* end confdefs.h. */
ac1cb8d3
VS
40812/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40814#define $ac_func innocuous_$ac_func
40815
a848cd7e
SC
40816/* System header to define __stub macros and hopefully few prototypes,
40817 which can conflict with char $ac_func (); below.
40818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40819 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40820
a848cd7e
SC
40821#ifdef __STDC__
40822# include <limits.h>
40823#else
40824# include <assert.h>
40825#endif
ac1cb8d3
VS
40826
40827#undef $ac_func
40828
a848cd7e
SC
40829/* Override any gcc2 internal prototype to avoid an error. */
40830#ifdef __cplusplus
40831extern "C"
40832{
40833#endif
40834/* We use char because int might match the return type of a gcc2
40835 builtin and then its argument prototype would still apply. */
40836char $ac_func ();
40837/* The GNU C library defines this for functions which it implements
40838 to always fail with ENOSYS. Some functions are actually named
40839 something starting with __ and the normal name is an alias. */
40840#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40841choke me
40842#else
40843char (*f) () = $ac_func;
40844#endif
40845#ifdef __cplusplus
40846}
40847#endif
40848
40849int
40850main ()
40851{
40852return f != $ac_func;
40853 ;
40854 return 0;
40855}
40856_ACEOF
40857rm -f conftest.$ac_objext conftest$ac_exeext
40858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40859 (eval $ac_link) 2>conftest.er1
a848cd7e 40860 ac_status=$?
ac1cb8d3
VS
40861 grep -v '^ *+' conftest.er1 >conftest.err
40862 rm -f conftest.er1
40863 cat conftest.err >&5
a848cd7e
SC
40864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40865 (exit $ac_status); } &&
fb00f58d
JS
40866 { ac_try='test -z "$ac_c_werror_flag"
40867 || test ! -s conftest.err'
ac1cb8d3
VS
40868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40869 (eval $ac_try) 2>&5
40870 ac_status=$?
40871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872 (exit $ac_status); }; } &&
40873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40875 (eval $ac_try) 2>&5
40876 ac_status=$?
40877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40878 (exit $ac_status); }; }; then
40879 eval "$as_ac_var=yes"
40880else
40881 echo "$as_me: failed program was:" >&5
40882sed 's/^/| /' conftest.$ac_ext >&5
40883
40884eval "$as_ac_var=no"
40885fi
ac1cb8d3
VS
40886rm -f conftest.err conftest.$ac_objext \
40887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40888fi
40889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40890echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40891if test `eval echo '${'$as_ac_var'}'` = yes; then
40892 cat >>confdefs.h <<_ACEOF
40893#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40894_ACEOF
40895 have_sin=1
40896fi
40897done
40898
40899
40900for ac_func in ceil
40901do
40902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40903echo "$as_me:$LINENO: checking for $ac_func" >&5
40904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40905if eval "test \"\${$as_ac_var+set}\" = set"; then
40906 echo $ECHO_N "(cached) $ECHO_C" >&6
40907else
40908 cat >conftest.$ac_ext <<_ACEOF
40909/* confdefs.h. */
40910_ACEOF
40911cat confdefs.h >>conftest.$ac_ext
40912cat >>conftest.$ac_ext <<_ACEOF
40913/* end confdefs.h. */
ac1cb8d3
VS
40914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40916#define $ac_func innocuous_$ac_func
40917
a848cd7e
SC
40918/* System header to define __stub macros and hopefully few prototypes,
40919 which can conflict with char $ac_func (); below.
40920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40921 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40922
a848cd7e
SC
40923#ifdef __STDC__
40924# include <limits.h>
40925#else
40926# include <assert.h>
40927#endif
ac1cb8d3
VS
40928
40929#undef $ac_func
40930
a848cd7e
SC
40931/* Override any gcc2 internal prototype to avoid an error. */
40932#ifdef __cplusplus
40933extern "C"
40934{
40935#endif
40936/* We use char because int might match the return type of a gcc2
40937 builtin and then its argument prototype would still apply. */
40938char $ac_func ();
40939/* The GNU C library defines this for functions which it implements
40940 to always fail with ENOSYS. Some functions are actually named
40941 something starting with __ and the normal name is an alias. */
40942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40943choke me
40944#else
40945char (*f) () = $ac_func;
40946#endif
40947#ifdef __cplusplus
40948}
40949#endif
40950
40951int
40952main ()
40953{
40954return f != $ac_func;
40955 ;
40956 return 0;
40957}
40958_ACEOF
40959rm -f conftest.$ac_objext conftest$ac_exeext
40960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40961 (eval $ac_link) 2>conftest.er1
a848cd7e 40962 ac_status=$?
ac1cb8d3
VS
40963 grep -v '^ *+' conftest.er1 >conftest.err
40964 rm -f conftest.er1
40965 cat conftest.err >&5
a848cd7e
SC
40966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40967 (exit $ac_status); } &&
fb00f58d
JS
40968 { ac_try='test -z "$ac_c_werror_flag"
40969 || test ! -s conftest.err'
ac1cb8d3
VS
40970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40971 (eval $ac_try) 2>&5
40972 ac_status=$?
40973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974 (exit $ac_status); }; } &&
40975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40977 (eval $ac_try) 2>&5
40978 ac_status=$?
40979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40980 (exit $ac_status); }; }; then
40981 eval "$as_ac_var=yes"
40982else
40983 echo "$as_me: failed program was:" >&5
40984sed 's/^/| /' conftest.$ac_ext >&5
40985
40986eval "$as_ac_var=no"
40987fi
ac1cb8d3
VS
40988rm -f conftest.err conftest.$ac_objext \
40989 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40990fi
40991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40992echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40993if test `eval echo '${'$as_ac_var'}'` = yes; then
40994 cat >>confdefs.h <<_ACEOF
40995#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40996_ACEOF
40997 have_ceil=1
40998fi
40999done
41000
41001 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41002echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41003 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41004 echo "$as_me:$LINENO: result: yes" >&5
41005echo "${ECHO_T}yes" >&6
41006 else
41007 echo "$as_me:$LINENO: result: no" >&5
41008echo "${ECHO_T}no" >&6
41009 # not sure we should warn the user, crash, etc.
41010 fi
41011fi
41012
41013if test "$wxUSE_GUI" = "yes"; then
41014
41015
8bce5cda
MW
41016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41017 dynamic erase event exec font image minimal mobile \
41018 mobile/wxedit mobile/styles propsize render \
41019 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41020
41021 if test "$wxUSE_MONOLITHIC" != "yes"; then
41022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41023 fi
0b78747f 41024 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41026 if test "$wxUSE_UNIVERSAL" != "yes"; then
41027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41028 fi
41029 fi
41030 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41032 fi
a848cd7e
SC
41033else
41034 SAMPLES_SUBDIRS="console"
41035fi
41036
41037
ceec2216 41038INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41039-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41040
41041if test "$GXX" = yes ; then
5294a27e
VZ
41042 CWARNINGS="-Wall"
41043 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
41044 fi
41045
41046EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41047
0c3c69fc 41048CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41049CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41050CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41051
95986553
DE
41052if test "x$MWCC" = "xyes"; then
41053
41054 CC="$CC -cwd source -I-"
41055 CXX="$CXX -cwd source -I-"
41056fi
41057
a848cd7e 41058
0c3c69fc 41059LIBS=`echo $LIBS`
a848cd7e
SC
41060EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41061EXTRALIBS_XML="$EXPAT_LINK"
41062EXTRALIBS_HTML="$MSPACK_LINK"
41063EXTRALIBS_ODBC="$ODBC_LINK"
41064if test "$wxUSE_GUI" = "yes"; then
2e350179 41065 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41066fi
41067if test "$wxUSE_OPENGL" = "yes"; then
41068 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41069fi
41070
41071LDFLAGS="$LDFLAGS $PROFILE"
41072
41073if test "$wxUSE_GTK" = 1; then
41074 WXCONFIG_INCLUDE=
41075else
41076 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41077fi
41078
41079WXCONFIG_EXTRALIBS="$LIBS"
41080
41081if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41082 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41083fi
41084if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41085 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41086fi
41087if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41088 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41089fi
41090if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41091 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41092fi
41093if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41094 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41095fi
41096if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41097 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41098fi
41099if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41100 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41101fi
41102
41103for i in $wxconfig_3rdparty ; do
74802184 41104 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41105done
41106
41107
41108if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41109 WXUNIV=1
41110else
41111 WXUNIV=0
41112fi
41113
41114
41115
41116
41117
41118
41119
41120
41121
41122if test $wxUSE_MONOLITHIC = "yes" ; then
41123 MONOLITHIC=1
41124else
41125 MONOLITHIC=0
41126fi
41127
41128if test $wxUSE_PLUGINS = "yes" ; then
41129 USE_PLUGINS=1
41130else
41131 USE_PLUGINS=0
41132fi
41133
41134if test $wxUSE_ODBC != "no" ; then
41135 USE_ODBC=1
41136else
41137 USE_ODBC=0
41138fi
41139
16358932
VZ
41140if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41141 USE_QA=1
41142else
41143 USE_QA=0
41144fi
41145
a848cd7e
SC
41146if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41147 OFFICIAL_BUILD=1
41148else
41149 OFFICIAL_BUILD=0
41150fi
41151
41152
41153
41154
41155
41156
41157
41158
41159
41160
41161
41162
41163
41164
41165
41166
41167
41168
41169
ceec2216 41170
d1c38808 41171
a848cd7e
SC
41172
41173
41174TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41175
41176
41177
41178
41179
41180
41181
41182
4d4ff94c
VZ
41183case "$TOOLKIT" in
41184 GTK)
41185 TOOLKIT_USER="GTK+"
41186 if test "$WXGTK20" = 1; then
41187 TOOLKIT_USER="$TOOLKIT_USER 2"
41188 fi
9a8f0513 41189 ;;
4d4ff94c
VZ
41190
41191 *)
41192 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 41193 ;;
4d4ff94c 41194esac
a848cd7e 41195
fb00f58d
JS
41196if test "$wxUSE_WINE" = "yes"; then
41197 BAKEFILE_FORCE_PLATFORM=win32
41198fi
41199
9a8f0513 41200
1e9e8aba
DE
41201
41202
a848cd7e
SC
41203 if test "x$BAKEFILE_HOST" = "x"; then
41204 BAKEFILE_HOST="${host}"
41205 fi
41206
41207 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
41208
41209 if test -n "$ac_tool_prefix"; then
41210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
41211set dummy ${ac_tool_prefix}ranlib; ac_word=$2
41212echo "$as_me:$LINENO: checking for $ac_word" >&5
41213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41214if test "${ac_cv_prog_RANLIB+set}" = set; then
41215 echo $ECHO_N "(cached) $ECHO_C" >&6
41216else
41217 if test -n "$RANLIB"; then
41218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
41219else
41220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41221for as_dir in $PATH
41222do
41223 IFS=$as_save_IFS
41224 test -z "$as_dir" && as_dir=.
41225 for ac_exec_ext in '' $ac_executable_extensions; do
41226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41229 break 2
41230 fi
41231done
41232done
41233
41234fi
41235fi
41236RANLIB=$ac_cv_prog_RANLIB
41237if test -n "$RANLIB"; then
41238 echo "$as_me:$LINENO: result: $RANLIB" >&5
41239echo "${ECHO_T}$RANLIB" >&6
41240else
41241 echo "$as_me:$LINENO: result: no" >&5
41242echo "${ECHO_T}no" >&6
41243fi
41244
41245fi
41246if test -z "$ac_cv_prog_RANLIB"; then
41247 ac_ct_RANLIB=$RANLIB
41248 # Extract the first word of "ranlib", so it can be a program name with args.
41249set dummy ranlib; ac_word=$2
41250echo "$as_me:$LINENO: checking for $ac_word" >&5
41251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41252if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41253 echo $ECHO_N "(cached) $ECHO_C" >&6
41254else
41255 if test -n "$ac_ct_RANLIB"; then
41256 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41257else
41258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41259for as_dir in $PATH
41260do
41261 IFS=$as_save_IFS
41262 test -z "$as_dir" && as_dir=.
41263 for ac_exec_ext in '' $ac_executable_extensions; do
41264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41265 ac_cv_prog_ac_ct_RANLIB="ranlib"
41266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41267 break 2
41268 fi
41269done
41270done
41271
41272 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41273fi
41274fi
41275ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41276if test -n "$ac_ct_RANLIB"; then
41277 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41278echo "${ECHO_T}$ac_ct_RANLIB" >&6
41279else
41280 echo "$as_me:$LINENO: result: no" >&5
41281echo "${ECHO_T}no" >&6
41282fi
41283
41284 RANLIB=$ac_ct_RANLIB
41285else
41286 RANLIB="$ac_cv_prog_RANLIB"
41287fi
41288
41289 # Find a good install program. We prefer a C program (faster),
41290# so one script is as good as another. But avoid the broken or
41291# incompatible versions:
41292# SysV /etc/install, /usr/sbin/install
41293# SunOS /usr/etc/install
41294# IRIX /sbin/install
41295# AIX /bin/install
41296# AmigaOS /C/install, which installs bootblocks on floppy discs
41297# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41298# AFS /usr/afsws/bin/install, which mishandles nonexistent args
41299# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 41300# OS/2's system install, which has a completely different semantic
a848cd7e
SC
41301# ./install, which can be erroneously created by make from ./install.sh.
41302echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41303echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41304if test -z "$INSTALL"; then
41305if test "${ac_cv_path_install+set}" = set; then
41306 echo $ECHO_N "(cached) $ECHO_C" >&6
41307else
41308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41309for as_dir in $PATH
41310do
41311 IFS=$as_save_IFS
41312 test -z "$as_dir" && as_dir=.
41313 # Account for people who put trailing slashes in PATH elements.
41314case $as_dir/ in
41315 ./ | .// | /cC/* | \
41316 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 41317 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
41318 /usr/ucb/* ) ;;
41319 *)
41320 # OSF1 and SCO ODT 3.0 have their own names for install.
41321 # Don't use installbsd from OSF since it installs stuff as root
41322 # by default.
41323 for ac_prog in ginstall scoinst install; do
41324 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
41325 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41326 if test $ac_prog = install &&
41327 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41328 # AIX install. It has an incompatible calling convention.
41329 :
41330 elif test $ac_prog = install &&
41331 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41332 # program-specific install script used by HP pwplus--don't use.
41333 :
41334 else
41335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41336 break 3
41337 fi
41338 fi
a848cd7e
SC
41339 done
41340 done
41341 ;;
41342esac
41343done
41344
41345
41346fi
41347 if test "${ac_cv_path_install+set}" = set; then
41348 INSTALL=$ac_cv_path_install
41349 else
41350 # As a last resort, use the slow shell script. We don't cache a
41351 # path for INSTALL within a source directory, because that will
41352 # break other packages using the cache if that directory is
41353 # removed, or if the path is relative.
41354 INSTALL=$ac_install_sh
41355 fi
41356fi
41357echo "$as_me:$LINENO: result: $INSTALL" >&5
41358echo "${ECHO_T}$INSTALL" >&6
41359
41360# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41361# It thinks the first close brace ends the variable substitution.
41362test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41363
41364test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41365
41366test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41367
41368 echo "$as_me:$LINENO: checking whether ln -s works" >&5
41369echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41370LN_S=$as_ln_s
41371if test "$LN_S" = "ln -s"; then
41372 echo "$as_me:$LINENO: result: yes" >&5
41373echo "${ECHO_T}yes" >&6
41374else
41375 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41376echo "${ECHO_T}no, using $LN_S" >&6
41377fi
41378
41379
41380 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41381echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41382set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41383if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41384 echo $ECHO_N "(cached) $ECHO_C" >&6
41385else
41386 cat >conftest.make <<\_ACEOF
41387all:
41388 @echo 'ac_maketemp="$(MAKE)"'
41389_ACEOF
41390# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41391eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41392if test -n "$ac_maketemp"; then
41393 eval ac_cv_prog_make_${ac_make}_set=yes
41394else
41395 eval ac_cv_prog_make_${ac_make}_set=no
41396fi
41397rm -f conftest.make
41398fi
41399if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41400 echo "$as_me:$LINENO: result: yes" >&5
41401echo "${ECHO_T}yes" >&6
41402 SET_MAKE=
41403else
41404 echo "$as_me:$LINENO: result: no" >&5
41405echo "${ECHO_T}no" >&6
41406 SET_MAKE="MAKE=${MAKE-make}"
41407fi
41408
41409
41410
41411 if test -n "$ac_tool_prefix"; then
41412 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41413set dummy ${ac_tool_prefix}ar; ac_word=$2
41414echo "$as_me:$LINENO: checking for $ac_word" >&5
41415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41416if test "${ac_cv_prog_AR+set}" = set; then
41417 echo $ECHO_N "(cached) $ECHO_C" >&6
41418else
41419 if test -n "$AR"; then
41420 ac_cv_prog_AR="$AR" # Let the user override the test.
41421else
41422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41423for as_dir in $PATH
41424do
41425 IFS=$as_save_IFS
41426 test -z "$as_dir" && as_dir=.
41427 for ac_exec_ext in '' $ac_executable_extensions; do
41428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41429 ac_cv_prog_AR="${ac_tool_prefix}ar"
41430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41431 break 2
41432 fi
41433done
41434done
41435
41436fi
41437fi
41438AR=$ac_cv_prog_AR
41439if test -n "$AR"; then
41440 echo "$as_me:$LINENO: result: $AR" >&5
41441echo "${ECHO_T}$AR" >&6
41442else
41443 echo "$as_me:$LINENO: result: no" >&5
41444echo "${ECHO_T}no" >&6
41445fi
41446
41447fi
41448if test -z "$ac_cv_prog_AR"; then
41449 ac_ct_AR=$AR
41450 # Extract the first word of "ar", so it can be a program name with args.
41451set dummy ar; ac_word=$2
41452echo "$as_me:$LINENO: checking for $ac_word" >&5
41453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41454if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41455 echo $ECHO_N "(cached) $ECHO_C" >&6
41456else
41457 if test -n "$ac_ct_AR"; then
41458 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41459else
41460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41461for as_dir in $PATH
41462do
41463 IFS=$as_save_IFS
41464 test -z "$as_dir" && as_dir=.
41465 for ac_exec_ext in '' $ac_executable_extensions; do
41466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41467 ac_cv_prog_ac_ct_AR="ar"
41468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41469 break 2
41470 fi
41471done
41472done
41473
41474 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41475fi
41476fi
41477ac_ct_AR=$ac_cv_prog_ac_ct_AR
41478if test -n "$ac_ct_AR"; then
41479 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41480echo "${ECHO_T}$ac_ct_AR" >&6
41481else
41482 echo "$as_me:$LINENO: result: no" >&5
41483echo "${ECHO_T}no" >&6
41484fi
41485
41486 AR=$ac_ct_AR
41487else
41488 AR="$ac_cv_prog_AR"
41489fi
41490
41491 if test -n "$ac_tool_prefix"; then
41492 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41493set dummy ${ac_tool_prefix}strip; ac_word=$2
41494echo "$as_me:$LINENO: checking for $ac_word" >&5
41495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41496if test "${ac_cv_prog_STRIP+set}" = set; then
41497 echo $ECHO_N "(cached) $ECHO_C" >&6
41498else
41499 if test -n "$STRIP"; then
41500 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41501else
41502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41503for as_dir in $PATH
41504do
41505 IFS=$as_save_IFS
41506 test -z "$as_dir" && as_dir=.
41507 for ac_exec_ext in '' $ac_executable_extensions; do
41508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41509 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41511 break 2
41512 fi
41513done
41514done
41515
41516fi
41517fi
41518STRIP=$ac_cv_prog_STRIP
41519if test -n "$STRIP"; then
41520 echo "$as_me:$LINENO: result: $STRIP" >&5
41521echo "${ECHO_T}$STRIP" >&6
41522else
41523 echo "$as_me:$LINENO: result: no" >&5
41524echo "${ECHO_T}no" >&6
41525fi
41526
41527fi
41528if test -z "$ac_cv_prog_STRIP"; then
41529 ac_ct_STRIP=$STRIP
41530 # Extract the first word of "strip", so it can be a program name with args.
41531set dummy strip; ac_word=$2
41532echo "$as_me:$LINENO: checking for $ac_word" >&5
41533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41534if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41535 echo $ECHO_N "(cached) $ECHO_C" >&6
41536else
41537 if test -n "$ac_ct_STRIP"; then
41538 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41539else
41540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41541for as_dir in $PATH
41542do
41543 IFS=$as_save_IFS
41544 test -z "$as_dir" && as_dir=.
41545 for ac_exec_ext in '' $ac_executable_extensions; do
41546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41547 ac_cv_prog_ac_ct_STRIP="strip"
41548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41549 break 2
41550 fi
41551done
41552done
41553
41554 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41555fi
41556fi
41557ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41558if test -n "$ac_ct_STRIP"; then
41559 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41560echo "${ECHO_T}$ac_ct_STRIP" >&6
41561else
41562 echo "$as_me:$LINENO: result: no" >&5
41563echo "${ECHO_T}no" >&6
41564fi
41565
41566 STRIP=$ac_ct_STRIP
41567else
41568 STRIP="$ac_cv_prog_STRIP"
41569fi
41570
41571 if test -n "$ac_tool_prefix"; then
41572 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41573set dummy ${ac_tool_prefix}nm; ac_word=$2
41574echo "$as_me:$LINENO: checking for $ac_word" >&5
41575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41576if test "${ac_cv_prog_NM+set}" = set; then
41577 echo $ECHO_N "(cached) $ECHO_C" >&6
41578else
41579 if test -n "$NM"; then
41580 ac_cv_prog_NM="$NM" # Let the user override the test.
41581else
41582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41583for as_dir in $PATH
41584do
41585 IFS=$as_save_IFS
41586 test -z "$as_dir" && as_dir=.
41587 for ac_exec_ext in '' $ac_executable_extensions; do
41588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41589 ac_cv_prog_NM="${ac_tool_prefix}nm"
41590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41591 break 2
41592 fi
41593done
41594done
41595
41596fi
41597fi
41598NM=$ac_cv_prog_NM
41599if test -n "$NM"; then
41600 echo "$as_me:$LINENO: result: $NM" >&5
41601echo "${ECHO_T}$NM" >&6
41602else
41603 echo "$as_me:$LINENO: result: no" >&5
41604echo "${ECHO_T}no" >&6
41605fi
41606
41607fi
41608if test -z "$ac_cv_prog_NM"; then
41609 ac_ct_NM=$NM
41610 # Extract the first word of "nm", so it can be a program name with args.
41611set dummy nm; ac_word=$2
41612echo "$as_me:$LINENO: checking for $ac_word" >&5
41613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41614if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41615 echo $ECHO_N "(cached) $ECHO_C" >&6
41616else
41617 if test -n "$ac_ct_NM"; then
41618 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41619else
41620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41621for as_dir in $PATH
41622do
41623 IFS=$as_save_IFS
41624 test -z "$as_dir" && as_dir=.
41625 for ac_exec_ext in '' $ac_executable_extensions; do
41626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41627 ac_cv_prog_ac_ct_NM="nm"
41628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41629 break 2
41630 fi
41631done
41632done
41633
41634 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41635fi
41636fi
41637ac_ct_NM=$ac_cv_prog_ac_ct_NM
41638if test -n "$ac_ct_NM"; then
41639 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41640echo "${ECHO_T}$ac_ct_NM" >&6
41641else
41642 echo "$as_me:$LINENO: result: no" >&5
41643echo "${ECHO_T}no" >&6
41644fi
41645
41646 NM=$ac_ct_NM
41647else
41648 NM="$ac_cv_prog_NM"
41649fi
41650
41651
41652 case ${BAKEFILE_HOST} in
41653 *-hp-hpux* )
1e9e8aba 41654 INSTALL_DIR="mkdir -p"
a848cd7e
SC
41655 ;;
41656 *) INSTALL_DIR="$INSTALL -d"
41657 ;;
41658 esac
41659
41660
41661 LDFLAGS_GUI=
41662 case ${BAKEFILE_HOST} in
41663 *-*-cygwin* | *-*-mingw32* )
41664 LDFLAGS_GUI="-mwindows"
41665 esac
41666
41667
41668 fi
41669
41670 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41671echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41672if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41673 echo $ECHO_N "(cached) $ECHO_C" >&6
41674else
41675
41676 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41677 egrep -s GNU > /dev/null); then
41678 bakefile_cv_prog_makeisgnu="yes"
41679 else
41680 bakefile_cv_prog_makeisgnu="no"
41681 fi
41682
41683fi
41684echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41685echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41686
41687 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41688 IF_GNU_MAKE=""
41689 else
41690 IF_GNU_MAKE="#"
41691 fi
41692
41693
41694
41695 PLATFORM_UNIX=0
41696 PLATFORM_WIN32=0
41697 PLATFORM_MSDOS=0
41698 PLATFORM_MAC=0
1e9e8aba 41699 PLATFORM_MACOS=0
a848cd7e
SC
41700 PLATFORM_MACOSX=0
41701 PLATFORM_OS2=0
1e9e8aba 41702 PLATFORM_BEOS=0
a848cd7e
SC
41703
41704 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41705 case "${BAKEFILE_HOST}" in
41706 *-*-cygwin* | *-*-mingw32* )
41707 PLATFORM_WIN32=1
41708 ;;
41709 *-pc-msdosdjgpp )
41710 PLATFORM_MSDOS=1
41711 ;;
41712 *-pc-os2_emx | *-pc-os2-emx )
41713 PLATFORM_OS2=1
41714 ;;
41715 powerpc-*-darwin* )
41716 PLATFORM_MAC=1
41717 PLATFORM_MACOSX=1
41718 ;;
1e9e8aba
DE
41719 *-*-beos* )
41720 PLATFORM_BEOS=1
41721 ;;
41722 powerpc-apple-macos* )
41723 PLATFORM_MAC=1
41724 PLATFORM_MACOS=1
41725 ;;
a848cd7e
SC
41726 * )
41727 PLATFORM_UNIX=1
41728 ;;
41729 esac
41730 else
41731 case "$BAKEFILE_FORCE_PLATFORM" in
41732 win32 )
41733 PLATFORM_WIN32=1
41734 ;;
41735 msdos )
41736 PLATFORM_MSDOS=1
41737 ;;
41738 os2 )
41739 PLATFORM_OS2=1
41740 ;;
41741 darwin )
41742 PLATFORM_MAC=1
41743 PLATFORM_MACOSX=1
41744 ;;
41745 unix )
41746 PLATFORM_UNIX=1
41747 ;;
1e9e8aba
DE
41748 beos )
41749 PLATFORM_BEOS=1
41750 ;;
a848cd7e
SC
41751 * )
41752 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41753echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41754 { (exit 1); exit 1; }; }
41755 ;;
41756 esac
41757 fi
41758
41759
41760
41761
41762
41763
41764
41765
41766
1e9e8aba
DE
41767
41768
a848cd7e
SC
41769 # Check whether --enable-omf or --disable-omf was given.
41770if test "${enable_omf+set}" = set; then
41771 enableval="$enable_omf"
41772 bk_os2_use_omf="$enableval"
41773fi;
41774
41775 case "${BAKEFILE_HOST}" in
41776 *-*-darwin* )
41777 CFLAGS="$CFLAGS -fno-common"
41778 CXXFLAGS="$CXXFLAGS -fno-common"
41779 ;;
41780
41781 *-pc-os2_emx | *-pc-os2-emx )
41782 if test "x$bk_os2_use_omf" = "xyes" ; then
41783 AR=emxomfar
41784 RANLIB=:
41785 LDFLAGS="-Zomf $LDFLAGS"
41786 CFLAGS="-Zomf $CFLAGS"
41787 CXXFLAGS="-Zomf $CXXFLAGS"
41788 OS2_LIBEXT="lib"
41789 else
41790 OS2_LIBEXT="a"
41791 fi
41792 ;;
1e9e8aba
DE
41793
41794 i*86-*-beos* )
41795 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41796 ;;
a848cd7e
SC
41797 esac
41798
41799
41800 SO_SUFFIX="so"
41801 SO_SUFFIX_MODULE="so"
41802 EXEEXT=""
41803 LIBPREFIX="lib"
41804 LIBEXT=".a"
41805 DLLPREFIX="lib"
41806 DLLPREFIX_MODULE=""
41807 DLLIMP_SUFFIX=""
41808
41809 case "${BAKEFILE_HOST}" in
41810 *-hp-hpux* )
41811 SO_SUFFIX="sl"
41812 SO_SUFFIX_MODULE="sl"
41813 ;;
41814 *-*-aix* )
41815 SO_SUFFIX="a"
41816 SO_SUFFIX_MODULE="a"
41817 ;;
41818 *-*-cygwin* | *-*-mingw32* )
41819 SO_SUFFIX="dll"
41820 SO_SUFFIX_MODULE="dll"
41821 DLLIMP_SUFFIX="dll.a"
41822 EXEEXT=".exe"
41823 DLLPREFIX=""
41824 ;;
41825 *-pc-msdosdjgpp )
41826 EXEEXT=".exe"
41827 DLLPREFIX=""
41828 ;;
41829 *-pc-os2_emx | *-pc-os2-emx )
41830 SO_SUFFIX="dll"
41831 SO_SUFFIX_MODULE="dll"
41832 DLLIMP_SUFFIX=$OS2_LIBEXT
41833 EXEEXT=".exe"
41834 DLLPREFIX=""
41835 LIBPREFIX=""
41836 LIBEXT=".$OS2_LIBEXT"
41837 ;;
41838 powerpc-*-darwin* )
41839 SO_SUFFIX="dylib"
41840 SO_SUFFIX_MODULE="bundle"
41841 ;;
41842 esac
41843
41844 if test "x$DLLIMP_SUFFIX" = "x" ; then
41845 DLLIMP_SUFFIX="$SO_SUFFIX"
41846 fi
41847
41848
41849
41850
41851
41852
41853
41854
41855
41856
41857
1e9e8aba
DE
41858 PIC_FLAG=""
41859 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41860 PIC_FLAG="-fPIC"
41861 fi
41862
1e9e8aba
DE
41863 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41864 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41865
a848cd7e
SC
41866 case "${BAKEFILE_HOST}" in
41867 *-hp-hpux* )
1e9e8aba 41868 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41869 LDFLAGS="$LDFLAGS -L/usr/lib"
41870
41871 SHARED_LD_CC="${CC} -b -o"
41872 SHARED_LD_CXX="${CXX} -b -o"
41873 PIC_FLAG="+Z"
41874 fi
41875 ;;
41876
41877 *-*-linux* )
41878 if test "x$GCC" != "xyes"; then
41879 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41880echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41881if test "${bakefile_cv_prog_icc+set}" = set; then
41882 echo $ECHO_N "(cached) $ECHO_C" >&6
41883else
41884
41885 cat >conftest.$ac_ext <<_ACEOF
41886/* confdefs.h. */
41887_ACEOF
41888cat confdefs.h >>conftest.$ac_ext
41889cat >>conftest.$ac_ext <<_ACEOF
41890/* end confdefs.h. */
41891
41892int
41893main ()
41894{
41895
41896 #ifndef __INTEL_COMPILER
41897 #error Not icc
41898 #endif
41899
41900 ;
41901 return 0;
41902}
41903_ACEOF
41904rm -f conftest.$ac_objext
41905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41906 (eval $ac_compile) 2>conftest.er1
a848cd7e 41907 ac_status=$?
ac1cb8d3
VS
41908 grep -v '^ *+' conftest.er1 >conftest.err
41909 rm -f conftest.er1
41910 cat conftest.err >&5
a848cd7e
SC
41911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41912 (exit $ac_status); } &&
fb00f58d
JS
41913 { ac_try='test -z "$ac_c_werror_flag"
41914 || test ! -s conftest.err'
ac1cb8d3
VS
41915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41916 (eval $ac_try) 2>&5
41917 ac_status=$?
41918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41919 (exit $ac_status); }; } &&
41920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41922 (eval $ac_try) 2>&5
41923 ac_status=$?
41924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41925 (exit $ac_status); }; }; then
41926 bakefile_cv_prog_icc=yes
41927else
41928 echo "$as_me: failed program was:" >&5
41929sed 's/^/| /' conftest.$ac_ext >&5
41930
41931bakefile_cv_prog_icc=no
41932
41933fi
ac1cb8d3 41934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41935
41936fi
41937echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41938echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41939 if test "$bakefile_cv_prog_icc" = "yes"; then
41940 PIC_FLAG="-KPIC"
41941 fi
41942 fi
41943 ;;
41944
41945 *-*-solaris2* )
41946 if test "x$GCC" != xyes ; then
41947 SHARED_LD_CC="${CC} -G -o"
41948 SHARED_LD_CXX="${CXX} -G -o"
41949 PIC_FLAG="-KPIC"
41950 fi
41951 ;;
41952
41953 *-*-darwin* )
41954
41955 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41956echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41957if test "${wx_cv_gcc31+set}" = set; then
41958 echo $ECHO_N "(cached) $ECHO_C" >&6
41959else
41960
41961 cat >conftest.$ac_ext <<_ACEOF
41962/* confdefs.h. */
41963_ACEOF
41964cat confdefs.h >>conftest.$ac_ext
41965cat >>conftest.$ac_ext <<_ACEOF
41966/* end confdefs.h. */
41967
41968int
41969main ()
41970{
41971
41972 #if (__GNUC__ < 3) || \
41973 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41974 #error old gcc
41975 #endif
41976
41977 ;
41978 return 0;
41979}
41980_ACEOF
41981rm -f conftest.$ac_objext
41982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41983 (eval $ac_compile) 2>conftest.er1
a848cd7e 41984 ac_status=$?
ac1cb8d3
VS
41985 grep -v '^ *+' conftest.er1 >conftest.err
41986 rm -f conftest.er1
41987 cat conftest.err >&5
a848cd7e
SC
41988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41989 (exit $ac_status); } &&
fb00f58d
JS
41990 { ac_try='test -z "$ac_c_werror_flag"
41991 || test ! -s conftest.err'
ac1cb8d3
VS
41992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41993 (eval $ac_try) 2>&5
41994 ac_status=$?
41995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41996 (exit $ac_status); }; } &&
41997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41999 (eval $ac_try) 2>&5
42000 ac_status=$?
42001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42002 (exit $ac_status); }; }; then
42003
42004 wx_cv_gcc31=yes
42005
42006else
42007 echo "$as_me: failed program was:" >&5
42008sed 's/^/| /' conftest.$ac_ext >&5
42009
42010
42011 wx_cv_gcc31=no
42012
42013
42014fi
ac1cb8d3 42015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42016
42017fi
42018echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42019echo "${ECHO_T}$wx_cv_gcc31" >&6
42020 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42021
42022D='$'
42023cat <<EOF >shared-ld-sh
a848cd7e
SC
42024#!/bin/sh
42025#-----------------------------------------------------------------------------
42026#-- Name: distrib/mac/shared-ld-sh
42027#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42028#-- Author: Gilles Depeyrot
42029#-- Copyright: (c) 2002 Gilles Depeyrot
42030#-- Licence: any use permitted
42031#-----------------------------------------------------------------------------
42032
42033verbose=0
42034args=""
42035objects=""
42036linking_flag="-dynamiclib"
42037
473276a9
VS
42038while test ${D}# -gt 0; do
42039 case ${D}1 in
a848cd7e
SC
42040
42041 -v)
42042 verbose=1
42043 ;;
42044
42045 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42046 # collect these options and values
473276a9 42047 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42048 shift
42049 ;;
42050
df1b269d 42051 -l*|-L*|-Wl,*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42052 # collect these options
473276a9 42053 args="${D}{args} ${D}1"
a848cd7e
SC
42054 ;;
42055
42056 -dynamiclib|-bundle)
473276a9 42057 linking_flag="${D}1"
a848cd7e
SC
42058 ;;
42059
42060 -*)
473276a9 42061 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42062 exit 1
42063 ;;
42064
42065 *.o | *.a | *.dylib)
42066 # collect object files
473276a9 42067 objects="${D}{objects} ${D}1"
a848cd7e
SC
42068 ;;
42069
42070 *)
473276a9 42071 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42072 exit 1
42073 ;;
42074
42075 esac
42076 shift
42077done
42078
42079#
42080# Link one module containing all the others
42081#
473276a9
VS
42082if test ${D}{verbose} = 1; then
42083 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42084fi
473276a9
VS
42085c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
42086status=${D}?
42087if test ${D}{status} != 0; then
42088 exit ${D}{status}
a848cd7e
SC
42089fi
42090
42091#
42092# Link the shared library from the single module created
42093#
473276a9
VS
42094if test ${D}{verbose} = 1; then
42095 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 42096fi
473276a9
VS
42097c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42098status=${D}?
42099if test ${D}{status} != 0; then
42100 exit ${D}{status}
a848cd7e
SC
42101fi
42102
42103#
42104# Remove intermediate module
42105#
473276a9 42106rm -f master.${D}${D}.o
a848cd7e
SC
42107
42108exit 0
42109EOF
473276a9 42110
a848cd7e
SC
42111 chmod +x shared-ld-sh
42112
42113 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42114 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42115 SHARED_LD_CXX="$SHARED_LD_CC"
42116 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42117 else
42118 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42119 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42120 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42121 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42122 fi
42123
42124 PIC_FLAG="-dynamic -fPIC"
42125 ;;
42126
42127 *-*-aix* )
42128 if test "x$GCC" != "xyes"; then
42129 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42130set dummy makeC++SharedLib; ac_word=$2
42131echo "$as_me:$LINENO: checking for $ac_word" >&5
42132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42133if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42134 echo $ECHO_N "(cached) $ECHO_C" >&6
42135else
42136 if test -n "$AIX_CXX_LD"; then
42137 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42138else
42139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42140for as_dir in $PATH
42141do
42142 IFS=$as_save_IFS
42143 test -z "$as_dir" && as_dir=.
42144 for ac_exec_ext in '' $ac_executable_extensions; do
42145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42146 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42148 break 2
42149 fi
42150done
42151done
42152
42153 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
42154fi
42155fi
42156AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
42157if test -n "$AIX_CXX_LD"; then
42158 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
42159echo "${ECHO_T}$AIX_CXX_LD" >&6
42160else
42161 echo "$as_me:$LINENO: result: no" >&5
42162echo "${ECHO_T}no" >&6
42163fi
42164
42165 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
42166 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
42167 fi
42168 ;;
42169
42170 *-*-beos* )
1e9e8aba
DE
42171 SHARED_LD_CC="${LD} -nostart -o"
42172 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
42173 ;;
42174
42175 *-*-irix* )
42176 if test "x$GCC" != "xyes"; then
42177 PIC_FLAG="-KPIC"
42178 fi
42179 ;;
42180
42181 *-*-cygwin* | *-*-mingw32* )
42182 PIC_FLAG=""
1e9e8aba
DE
42183 SHARED_LD_CC="\$(CC) -shared -o"
42184 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
42185 ;;
42186
42187 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
42188 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42189 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 42190 PIC_FLAG=""
473276a9
VS
42191
42192D='$'
42193cat <<EOF >dllar.sh
42194#!/bin/sh
42195#
42196# dllar - a tool to build both a .dll and an .a file
42197# from a set of object (.o) files for EMX/OS2.
42198#
42199# Written by Andrew Zabolotny, bit@freya.etu.ru
42200# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
42201#
42202# This script will accept a set of files on the command line.
42203# All the public symbols from the .o files will be exported into
42204# a .DEF file, then linker will be run (through gcc) against them to
42205# build a shared library consisting of all given .o files. All libraries
42206# (.a) will be first decompressed into component .o files then act as
42207# described above. You can optionally give a description (-d "description")
42208# which will be put into .DLL. To see the list of accepted options (as well
42209# as command-line format) simply run this program without options. The .DLL
42210# is built to be imported by name (there is no guarantee that new versions
42211# of the library you build will have same ordinals for same symbols).
42212#
42213# dllar is free software; you can redistribute it and/or modify
42214# it under the terms of the GNU General Public License as published by
42215# the Free Software Foundation; either version 2, or (at your option)
42216# any later version.
42217#
42218# dllar is distributed in the hope that it will be useful,
42219# but WITHOUT ANY WARRANTY; without even the implied warranty of
42220# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42221# GNU General Public License for more details.
42222#
42223# You should have received a copy of the GNU General Public License
42224# along with dllar; see the file COPYING. If not, write to the Free
42225# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42226# 02111-1307, USA.
42227
42228# To successfuly run this program you will need:
42229# - Current drive should have LFN support (HPFS, ext2, network, etc)
42230# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42231# - gcc
42232# (used to build the .dll)
42233# - emxexp
42234# (used to create .def file from .o files)
42235# - emximp
42236# (used to create .a file from .def file)
42237# - GNU text utilites (cat, sort, uniq)
42238# used to process emxexp output
42239# - GNU file utilities (mv, rm)
42240# - GNU sed
42241# - lxlite (optional, see flag below)
42242# (used for general .dll cleanup)
42243#
42244
42245flag_USE_LXLITE=1;
42246
42247#
42248# helper functions
42249# basnam, variant of basename, which does _not_ remove the path, _iff_
42250# second argument (suffix to remove) is given
42251basnam(){
42252 case ${D}# in
42253 1)
1e9e8aba 42254 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
42255 ;;
42256 2)
42257 echo ${D}1 | sed 's/'${D}2'${D}//'
42258 ;;
42259 *)
42260 echo "error in basnam ${D}*"
42261 exit 8
42262 ;;
42263 esac
42264}
42265
42266# Cleanup temporary files and output
42267CleanUp() {
42268 cd ${D}curDir
42269 for i in ${D}inputFiles ; do
42270 case ${D}i in
42271 *!)
42272 rm -rf \`basnam ${D}i !\`
42273 ;;
42274 *)
42275 ;;
42276 esac
42277 done
42278
42279 # Kill result in case of failure as there is just to many stupid make/nmake
42280 # things out there which doesn't do this.
1e9e8aba 42281 if [ ${D}# -eq 0 ]; then
473276a9
VS
42282 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42283 fi
42284}
42285
42286# Print usage and exit script with rc=1.
42287PrintHelp() {
b1d22ded
DE
42288 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42289 echo ' [-name-mangler-script script.sh]'
42290 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42291 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
42292 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 42293 echo ' [*.o] [*.a]'
473276a9
VS
42294 echo '*> "output_file" should have no extension.'
42295 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
42296 echo ' The import library name is derived from this and is set to "name".a,'
42297 echo ' unless overridden by -import'
42298 echo '*> "importlib_name" should have no extension.'
42299 echo ' If it has the .o, or .a extension, it is automatically removed.'
42300 echo ' This name is used as the import library name and may be longer and'
42301 echo ' more descriptive than the DLL name which has to follow the old '
42302 echo ' 8.3 convention of FAT.'
b1d22ded
DE
42303 echo '*> "script.sh may be given to override the output_file name by a'
42304 echo ' different name. It is mainly useful if the regular make process'
42305 echo ' of some package does not take into account OS/2 restriction of'
42306 echo ' DLL name lengths. It takes the importlib name as input and is'
42307 echo ' supposed to procude a shorter name as output. The script should'
42308 echo ' expect to get importlib_name without extension and should produce'
42309 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
42310 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
42311 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42312 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
42313 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42314 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
42315 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42316 echo ' If the last character of a symbol is "*", all symbols beginning'
42317 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 42318 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 42319 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 42320 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 42321 echo ' C runtime DLLs.'
b1d22ded 42322 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
42323 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42324 echo ' unchanged to GCC at the end of command line.'
42325 echo '*> If you create a DLL from a library and you do not specify -o,'
42326 echo ' the basename for DLL and import library will be set to library name,'
42327 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
42328 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42329 echo ' library will be renamed into gcc_s.a.'
42330 echo '--------'
42331 echo 'Example:'
42332 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42333 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42334 CleanUp
42335 exit 1
42336}
42337
42338# Execute a command.
42339# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42340# @Uses Whatever CleanUp() uses.
42341doCommand() {
42342 echo "${D}*"
42343 eval ${D}*
42344 rcCmd=${D}?
42345
1e9e8aba 42346 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
42347 echo "command failed, exit code="${D}rcCmd
42348 CleanUp
42349 exit ${D}rcCmd
42350 fi
42351}
42352
42353# main routine
42354# setup globals
42355cmdLine=${D}*
42356outFile=""
42357outimpFile=""
42358inputFiles=""
b1d22ded 42359renameScript=""
473276a9
VS
42360description=""
42361CC=gcc.exe
42362CFLAGS="-s -Zcrtdll"
42363EXTRA_CFLAGS=""
42364EXPORT_BY_ORDINALS=0
42365exclude_symbols=""
42366library_flags=""
42367curDir=\`pwd\`
42368curDirS=curDir
42369case ${D}curDirS in
42370*/)
42371 ;;
42372*)
42373 curDirS=${D}{curDirS}"/"
42374 ;;
42375esac
42376# Parse commandline
42377libsToLink=0
b1d22ded 42378omfLinking=0
1e9e8aba 42379while [ ${D}1 ]; do
473276a9
VS
42380 case ${D}1 in
42381 -ord*)
42382 EXPORT_BY_ORDINALS=1;
42383 ;;
42384 -o*)
42385 shift
42386 outFile=${D}1
42387 ;;
42388 -i*)
42389 shift
42390 outimpFile=${D}1
42391 ;;
b1d22ded
DE
42392 -name-mangler-script)
42393 shift
42394 renameScript=${D}1
42395 ;;
473276a9
VS
42396 -d*)
42397 shift
42398 description=${D}1
42399 ;;
42400 -f*)
42401 shift
42402 CFLAGS=${D}1
42403 ;;
42404 -c*)
42405 shift
42406 CC=${D}1
42407 ;;
42408 -h*)
42409 PrintHelp
42410 ;;
42411 -ex*)
42412 shift
42413 exclude_symbols=${D}{exclude_symbols}${D}1" "
42414 ;;
42415 -libf*)
42416 shift
42417 library_flags=${D}{library_flags}${D}1" "
42418 ;;
42419 -nocrt*)
42420 CFLAGS="-s"
42421 ;;
42422 -nolxl*)
42423 flag_USE_LXLITE=0
42424 ;;
42425 -* | /*)
42426 case ${D}1 in
42427 -L* | -l*)
42428 libsToLink=1
42429 ;;
b1d22ded
DE
42430 -Zomf)
42431 omfLinking=1
42432 ;;
473276a9
VS
42433 *)
42434 ;;
42435 esac
42436 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42437 ;;
b1d22ded
DE
42438 *.dll)
42439 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42440 if [ ${D}omfLinking -eq 1 ]; then
42441 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42442 else
42443 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42444 fi
42445 ;;
473276a9
VS
42446 *)
42447 found=0;
1e9e8aba 42448 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42449 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42450 else
42451 for file in ${D}1 ; do
1e9e8aba 42452 if [ -f ${D}file ]; then
473276a9
VS
42453 inputFiles="${D}{inputFiles} ${D}file"
42454 found=1
42455 fi
42456 done
1e9e8aba 42457 if [ ${D}found -eq 0 ]; then
473276a9
VS
42458 echo "ERROR: No file(s) found: "${D}1
42459 exit 8
42460 fi
42461 fi
42462 ;;
42463 esac
42464 shift
42465done # iterate cmdline words
42466
42467#
1e9e8aba 42468if [ -z "${D}inputFiles" ]; then
473276a9
VS
42469 echo "dllar: no input files"
42470 PrintHelp
42471fi
42472
42473# Now extract all .o files from .a files
42474newInputFiles=""
42475for file in ${D}inputFiles ; do
42476 case ${D}file in
42477 *.a | *.lib)
42478 case ${D}file in
42479 *.a)
42480 suffix=".a"
42481 AR="ar"
42482 ;;
42483 *.lib)
42484 suffix=".lib"
42485 AR="emxomfar"
42486 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42487 ;;
42488 *)
42489 ;;
42490 esac
42491 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42492 mkdir ${D}dirname
1e9e8aba 42493 if [ ${D}? -ne 0 ]; then
473276a9
VS
42494 echo "Failed to create subdirectory ./${D}dirname"
42495 CleanUp
42496 exit 8;
42497 fi
42498 # Append '!' to indicate archive
42499 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42500 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42501 cd ${D}curDir
42502 found=0;
42503 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42504 if [ -f ${D}subfile ]; then
473276a9 42505 found=1
1e9e8aba 42506 if [ -s ${D}subfile ]; then
473276a9
VS
42507 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42508 newInputFiles="${D}newInputFiles ${D}subfile"
42509 fi
42510 fi
42511 done
1e9e8aba
DE
42512 if [ ${D}found -eq 0 ]; then
42513 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42514 fi
42515 ;;
42516 *)
42517 newInputFiles="${D}{newInputFiles} ${D}file"
42518 ;;
42519 esac
42520done
42521inputFiles="${D}newInputFiles"
42522
42523# Output filename(s).
42524do_backup=0;
1e9e8aba 42525if [ -z ${D}outFile ]; then
473276a9
VS
42526 do_backup=1;
42527 set outFile ${D}inputFiles; outFile=${D}2
42528fi
42529
42530# If it is an archive, remove the '!' and the '_%' suffixes
42531case ${D}outFile in
42532*_%!)
42533 outFile=\`basnam ${D}outFile _%!\`
42534 ;;
42535*)
42536 ;;
42537esac
42538case ${D}outFile in
42539*.dll)
42540 outFile=\`basnam ${D}outFile .dll\`
42541 ;;
42542*.DLL)
42543 outFile=\`basnam ${D}outFile .DLL\`
42544 ;;
42545*.o)
42546 outFile=\`basnam ${D}outFile .o\`
42547 ;;
42548*.obj)
42549 outFile=\`basnam ${D}outFile .obj\`
42550 ;;
42551*.a)
42552 outFile=\`basnam ${D}outFile .a\`
42553 ;;
42554*.lib)
42555 outFile=\`basnam ${D}outFile .lib\`
42556 ;;
42557*)
42558 ;;
42559esac
42560case ${D}outimpFile in
42561*.a)
42562 outimpFile=\`basnam ${D}outimpFile .a\`
42563 ;;
42564*.lib)
42565 outimpFile=\`basnam ${D}outimpFile .lib\`
42566 ;;
42567*)
42568 ;;
42569esac
1e9e8aba 42570if [ -z ${D}outimpFile ]; then
473276a9
VS
42571 outimpFile=${D}outFile
42572fi
42573defFile="${D}{outFile}.def"
42574arcFile="${D}{outimpFile}.a"
42575arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42576
42577#create ${D}dllFile as something matching 8.3 restrictions,
42578if [ -z ${D}renameScript ] ; then
42579 dllFile="${D}outFile"
42580else
42581 dllFile=\`${D}renameScript ${D}outimpFile\`
42582fi
473276a9 42583
1e9e8aba
DE
42584if [ ${D}do_backup -ne 0 ] ; then
42585 if [ -f ${D}arcFile ] ; then
473276a9
VS
42586 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42587 fi
1e9e8aba 42588 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42589 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42590 fi
42591fi
42592
42593# Extract public symbols from all the object files.
42594tmpdefFile=${D}{defFile}_%
42595rm -f ${D}tmpdefFile
42596for file in ${D}inputFiles ; do
42597 case ${D}file in
42598 *!)
42599 ;;
42600 *)
42601 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42602 ;;
42603 esac
42604done
42605
42606# Create the def file.
42607rm -f ${D}defFile
42608echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
42609dllFile="${D}{dllFile}.dll"
42610if [ ! -z ${D}description ]; then
1e9e8aba 42611 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
42612fi
42613echo "EXPORTS" >> ${D}defFile
42614
42615doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42616grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42617
42618# Checks if the export is ok or not.
42619for word in ${D}exclude_symbols; do
42620 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42621 mv ${D}{tmpdefFile}% ${D}tmpdefFile
42622done
42623
42624
1e9e8aba
DE
42625if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42626 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
42627 sed '
42628 N
42629 : loop
1e9e8aba 42630 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
42631 t loop
42632 ' > ${D}{tmpdefFile}%
42633 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42634else
42635 rm -f ${D}{tmpdefFile}%
42636fi
42637cat ${D}tmpdefFile >> ${D}defFile
42638rm -f ${D}tmpdefFile
42639
42640# Do linking, create implib, and apply lxlite.
42641gccCmdl="";
42642for file in ${D}inputFiles ; do
42643 case ${D}file in
42644 *!)
42645 ;;
42646 *)
42647 gccCmdl="${D}gccCmdl ${D}file"
42648 ;;
42649 esac
42650done
42651doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42652touch "${D}{outFile}.dll"
42653
42654doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 42655if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 42656 add_flags="";
1e9e8aba 42657 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
42658 add_flags="-ynd"
42659 fi
42660 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42661fi
42662doCommand "emxomf -s -l ${D}arcFile"
42663
42664# Successful exit.
42665CleanUp 1
42666exit 0
42667EOF
42668
42669 chmod +x dllar.sh
a848cd7e
SC
42670 ;;
42671
1e9e8aba 42672 powerpc-apple-macos* | \
a848cd7e
SC
42673 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42674 *-*-sunos4* | \
42675 *-*-osf* | \
42676 *-*-dgux5* | \
47a7e797
MW
42677 *-*-sysv5* | \
42678 *-pc-msdosdjgpp )
a848cd7e
SC
42679 ;;
42680
42681 *)
42682 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42683echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42684 { (exit 1); exit 1; }; }
42685 esac
42686
2057db16
VS
42687 if test "x$PIC_FLAG" != "x" ; then
42688 PIC_FLAG="$PIC_FLAG -DPIC"
42689 fi
42690
a848cd7e
SC
42691 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42692 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42693 fi
42694 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42695 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42696 fi
42697
42698
42699
42700
42701
42702
42703
42704
42705 USE_SOVERSION=0
42706 USE_SOVERLINUX=0
42707 USE_SOVERSOLARIS=0
42708 USE_SOSYMLINKS=0
42709 USE_MACVERSION=0
42710 SONAME_FLAG=
42711
42712 case "${BAKEFILE_HOST}" in
b1d22ded 42713 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42714 SONAME_FLAG="-Wl,-soname,"
42715 USE_SOVERSION=1
42716 USE_SOVERLINUX=1
42717 USE_SOSYMLINKS=1
42718 ;;
42719
a848cd7e
SC
42720 *-*-solaris2* )
42721 SONAME_FLAG="-h "
42722 USE_SOVERSION=1
42723 USE_SOVERSOLARIS=1
42724 USE_SOSYMLINKS=1
42725 ;;
42726
42727 *-*-darwin* )
42728 USE_MACVERSION=1
42729 USE_SOVERSION=1
42730 USE_SOSYMLINKS=1
42731 ;;
42732 esac
42733
42734
42735
42736
42737
42738
42739
42740
42741
42742 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42743echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42744 DEPS_TRACKING=0
42745
42746 if test "x$GCC" = "xyes"; then
42747 DEPSMODE=gcc
42748 DEPS_TRACKING=1
42749 case "${BAKEFILE_HOST}" in
42750 powerpc-*-darwin* )
42751 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42752 ;;
42753 * )
42754 DEPSFLAG_GCC="-MMD"
42755 ;;
42756 esac
42757 echo "$as_me:$LINENO: result: gcc" >&5
42758echo "${ECHO_T}gcc" >&6
b1d22ded 42759 elif test "x$MWCC" = "xyes"; then
81f90336 42760 DEPSMODE=mwcc
b1d22ded 42761 DEPS_TRACKING=1
81f90336 42762 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42763 echo "$as_me:$LINENO: result: mwcc" >&5
42764echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42765 else
42766 echo "$as_me:$LINENO: result: none" >&5
42767echo "${ECHO_T}none" >&6
42768 fi
42769
42770 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42771
42772D='$'
42773cat <<EOF >bk-deps
a848cd7e
SC
42774#!/bin/sh
42775
42776# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42777# script. It is used to track C/C++ files dependencies in portable way.
42778#
42779# Permission is given to use this file in any way.
42780
473276a9 42781DEPSMODE=${DEPSMODE}
a848cd7e 42782DEPSDIR=.deps
473276a9 42783DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42784DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42785
473276a9 42786mkdir -p ${D}DEPSDIR
a848cd7e 42787
473276a9
VS
42788if test ${D}DEPSMODE = gcc ; then
42789 ${D}* ${D}{DEPSFLAG_GCC}
42790 status=${D}?
42791 if test ${D}{status} != 0 ; then
42792 exit ${D}{status}
a848cd7e
SC
42793 fi
42794 # move created file to the location we want it in:
473276a9
VS
42795 while test ${D}# -gt 0; do
42796 case "${D}1" in
a848cd7e
SC
42797 -o )
42798 shift
473276a9 42799 objfile=${D}1
a848cd7e
SC
42800 ;;
42801 -* )
42802 ;;
42803 * )
473276a9 42804 srcfile=${D}1
a848cd7e
SC
42805 ;;
42806 esac
42807 shift
42808 done
1e9e8aba
DE
42809 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42810 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42811 if test -f ${D}depfile ; then
42812 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42813 rm -f ${D}depfile
a848cd7e 42814 else
1e9e8aba 42815 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42816 if test -f ${D}depfile ; then
42817 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42818 rm -f ${D}depfile
a848cd7e
SC
42819 fi
42820 fi
42821 exit 0
81f90336
MW
42822elif test ${D}DEPSMODE = mwcc ; then
42823 ${D}*
42824 status=${D}?
42825 if test ${D}{status} != 0 ; then
42826 exit ${D}{status}
42827 fi
42828 # Run mwcc again with -MM and redirect into the dep file we want
42829 # NOTE: We can't use shift here because we need ${D}* to be valid
42830 prevarg=
42831 for arg in ${D}* ; do
42832 if test "${D}prevarg" = "-o"; then
42833 objfile=${D}arg
42834 else
42835 case "${D}arg" in
42836 -* )
42837 ;;
42838 * )
42839 srcfile=${D}arg
42840 ;;
42841 esac
42842 fi
42843 prevarg="${D}arg"
42844 done
42845 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42846 exit 0
a848cd7e 42847else
473276a9
VS
42848 ${D}*
42849 exit ${D}?
a848cd7e
SC
42850fi
42851EOF
473276a9 42852
a848cd7e
SC
42853 chmod +x bk-deps
42854 fi
42855
42856
42857
42858
42859 RESCOMP=
42860 SETFILE=
42861
42862 case ${BAKEFILE_HOST} in
42863 *-*-cygwin* | *-*-mingw32* )
42864 if test "$build" != "$host" ; then
42865 RESCOMP=$host_alias-windres
42866 else
42867 # Extract the first word of "windres", so it can be a program name with args.
42868set dummy windres; ac_word=$2
42869echo "$as_me:$LINENO: checking for $ac_word" >&5
42870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42871if test "${ac_cv_prog_RESCOMP+set}" = set; then
42872 echo $ECHO_N "(cached) $ECHO_C" >&6
42873else
42874 if test -n "$RESCOMP"; then
42875 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42876else
42877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42878for as_dir in $PATH
42879do
42880 IFS=$as_save_IFS
42881 test -z "$as_dir" && as_dir=.
42882 for ac_exec_ext in '' $ac_executable_extensions; do
42883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42884 ac_cv_prog_RESCOMP="windres"
42885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42886 break 2
42887 fi
42888done
42889done
42890
42891 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42892fi
42893fi
42894RESCOMP=$ac_cv_prog_RESCOMP
42895if test -n "$RESCOMP"; then
42896 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42897echo "${ECHO_T}$RESCOMP" >&6
42898else
42899 echo "$as_me:$LINENO: result: no" >&5
42900echo "${ECHO_T}no" >&6
42901fi
42902
42903 fi
42904 ;;
42905
1e9e8aba 42906 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42907 # Extract the first word of "Rez", so it can be a program name with args.
42908set dummy Rez; ac_word=$2
42909echo "$as_me:$LINENO: checking for $ac_word" >&5
42910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42911if test "${ac_cv_prog_RESCOMP+set}" = set; then
42912 echo $ECHO_N "(cached) $ECHO_C" >&6
42913else
42914 if test -n "$RESCOMP"; then
42915 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42916else
42917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42918for as_dir in $PATH
42919do
42920 IFS=$as_save_IFS
42921 test -z "$as_dir" && as_dir=.
42922 for ac_exec_ext in '' $ac_executable_extensions; do
42923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42924 ac_cv_prog_RESCOMP="Rez"
42925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42926 break 2
42927 fi
42928done
42929done
42930
42931 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42932fi
42933fi
42934RESCOMP=$ac_cv_prog_RESCOMP
42935if test -n "$RESCOMP"; then
42936 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42937echo "${ECHO_T}$RESCOMP" >&6
42938else
42939 echo "$as_me:$LINENO: result: no" >&5
42940echo "${ECHO_T}no" >&6
42941fi
42942
42943 # Extract the first word of "SetFile", so it can be a program name with args.
42944set dummy SetFile; ac_word=$2
42945echo "$as_me:$LINENO: checking for $ac_word" >&5
42946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42947if test "${ac_cv_prog_SETFILE+set}" = set; then
42948 echo $ECHO_N "(cached) $ECHO_C" >&6
42949else
42950 if test -n "$SETFILE"; then
42951 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42952else
42953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42954for as_dir in $PATH
42955do
42956 IFS=$as_save_IFS
42957 test -z "$as_dir" && as_dir=.
42958 for ac_exec_ext in '' $ac_executable_extensions; do
42959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42960 ac_cv_prog_SETFILE="SetFile"
42961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42962 break 2
42963 fi
42964done
42965done
42966
42967 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42968fi
42969fi
42970SETFILE=$ac_cv_prog_SETFILE
42971if test -n "$SETFILE"; then
42972 echo "$as_me:$LINENO: result: $SETFILE" >&5
42973echo "${ECHO_T}$SETFILE" >&6
42974else
42975 echo "$as_me:$LINENO: result: no" >&5
42976echo "${ECHO_T}no" >&6
42977fi
42978
42979 ;;
42980 esac
42981
42982
42983
42984
42985
fbb7dfff 42986 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 42987
dcc1b6ad 42988
fbb7dfff 42989BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 42990
646b6ec1 42991
74b84332 42992
a848cd7e
SC
42993 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42994if test "${enable_precomp_headers+set}" = set; then
42995 enableval="$enable_precomp_headers"
42996 bk_use_pch="$enableval"
42997fi;
42998
42999 GCC_PCH=0
43000
43001 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43002 if test "x$GCC" = "xyes"; then
43003 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43004echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43005 cat >conftest.$ac_ext <<_ACEOF
43006/* confdefs.h. */
43007_ACEOF
43008cat confdefs.h >>conftest.$ac_ext
43009cat >>conftest.$ac_ext <<_ACEOF
43010/* end confdefs.h. */
43011
43012int
43013main ()
43014{
43015
43016 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43017 #error "no pch support"
43018 #endif
43019 #if (__GNUC__ < 3)
43020 #error "no pch support"
43021 #endif
43022 #if (__GNUC__ == 3) && \
43023 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43024 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43025 #error "no pch support"
43026 #endif
43027
43028 ;
43029 return 0;
43030}
43031_ACEOF
43032rm -f conftest.$ac_objext
43033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43034 (eval $ac_compile) 2>conftest.er1
a848cd7e 43035 ac_status=$?
ac1cb8d3
VS
43036 grep -v '^ *+' conftest.er1 >conftest.err
43037 rm -f conftest.er1
43038 cat conftest.err >&5
a848cd7e
SC
43039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43040 (exit $ac_status); } &&
fb00f58d
JS
43041 { ac_try='test -z "$ac_c_werror_flag"
43042 || test ! -s conftest.err'
ac1cb8d3
VS
43043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43044 (eval $ac_try) 2>&5
43045 ac_status=$?
43046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43047 (exit $ac_status); }; } &&
43048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43050 (eval $ac_try) 2>&5
43051 ac_status=$?
43052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43053 (exit $ac_status); }; }; then
43054
43055 echo "$as_me:$LINENO: result: yes" >&5
43056echo "${ECHO_T}yes" >&6
a848cd7e
SC
43057 GCC_PCH=1
43058
43059else
43060 echo "$as_me: failed program was:" >&5
43061sed 's/^/| /' conftest.$ac_ext >&5
43062
43063
43064 echo "$as_me:$LINENO: result: no" >&5
43065echo "${ECHO_T}no" >&6
43066
43067fi
ac1cb8d3 43068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43069 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43070
43071D='$'
43072cat <<EOF >bk-make-pch
a848cd7e
SC
43073#!/bin/sh
43074
43075# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43076# script. It is used to generated precompiled headers.
43077#
43078# Permission is given to use this file in any way.
43079
1e9e8aba
DE
43080outfile="${D}{1}"
43081header="${D}{2}"
a848cd7e
SC
43082shift
43083shift
43084
43085compiler=
43086headerfile=
1e9e8aba
DE
43087while test ${D}{#} -gt 0; do
43088 case "${D}{1}" in
a848cd7e 43089 -I* )
1e9e8aba
DE
43090 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43091 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43092 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43093 fi
43094 ;;
43095 esac
1e9e8aba 43096 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43097 shift
43098done
43099
1e9e8aba
DE
43100if test "x${D}{headerfile}" = "x" ; then
43101 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43102else
1e9e8aba
DE
43103 if test -f ${D}{outfile} ; then
43104 rm -f ${D}{outfile}
a848cd7e 43105 else
1e9e8aba 43106 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43107 fi
1e9e8aba 43108 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43109 mkdir -p .deps
43110 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43111 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43112 exit ${D}{?}
a848cd7e
SC
43113fi
43114EOF
1e9e8aba 43115
a848cd7e
SC
43116 chmod +x bk-make-pch
43117 fi
43118 fi
43119 fi
43120
43121
43122
a848cd7e
SC
43123 COND_BUILD_DEBUG="#"
43124 if test "x$BUILD" = "xdebug" ; then
43125 COND_BUILD_DEBUG=""
43126 fi
43127
43128 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
43129 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
43130 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
43131 fi
43132
43133 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
43134 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
43135 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
43136 fi
43137
43138 COND_BUILD_DEBUG_UNICODE_0="#"
43139 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
43140 COND_BUILD_DEBUG_UNICODE_0=""
43141 fi
43142
43143 COND_BUILD_DEBUG_UNICODE_1="#"
43144 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
43145 COND_BUILD_DEBUG_UNICODE_1=""
43146 fi
43147
43148 COND_BUILD_RELEASE="#"
43149 if test "x$BUILD" = "xrelease" ; then
43150 COND_BUILD_RELEASE=""
43151 fi
43152
43153 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
43154 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
43155 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
43156 fi
43157
43158 COND_BUILD_RELEASE_UNICODE_0="#"
43159 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
43160 COND_BUILD_RELEASE_UNICODE_0=""
43161 fi
43162
43163 COND_BUILD_RELEASE_UNICODE_1="#"
43164 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
43165 COND_BUILD_RELEASE_UNICODE_1=""
43166 fi
43167
43168 COND_DEBUG_FLAG_1="#"
43169 if test "x$DEBUG_FLAG" = "x1" ; then
43170 COND_DEBUG_FLAG_1=""
43171 fi
43172
43173 COND_DEBUG_INFO_0="#"
43174 if test "x$DEBUG_INFO" = "x0" ; then
43175 COND_DEBUG_INFO_0=""
43176 fi
43177
43178 COND_DEBUG_INFO_1="#"
43179 if test "x$DEBUG_INFO" = "x1" ; then
43180 COND_DEBUG_INFO_1=""
43181 fi
43182
43183 COND_DEPS_TRACKING_0="#"
43184 if test "x$DEPS_TRACKING" = "x0" ; then
43185 COND_DEPS_TRACKING_0=""
43186 fi
43187
43188 COND_DEPS_TRACKING_1="#"
43189 if test "x$DEPS_TRACKING" = "x1" ; then
43190 COND_DEPS_TRACKING_1=""
43191 fi
43192
43193 COND_GCC_PCH_1="#"
43194 if test "x$GCC_PCH" = "x1" ; then
43195 COND_GCC_PCH_1=""
43196 fi
43197
43198 COND_MONOLITHIC_0="#"
43199 if test "x$MONOLITHIC" = "x0" ; then
43200 COND_MONOLITHIC_0=""
43201 fi
43202
43203 COND_MONOLITHIC_0_SHARED_0="#"
43204 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
43205 COND_MONOLITHIC_0_SHARED_0=""
43206 fi
43207
43208 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
43209 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
43210 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
43211 fi
43212
90970d69
DE
43213 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
43214 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43215 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
43216 fi
43217
a848cd7e
SC
43218 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
43219 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43220 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
43221 fi
43222
6671c68b
VZ
43223 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
43224 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43225 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
43226 fi
43227
a848cd7e
SC
43228 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
43229 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
43230 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
43231 fi
43232
ceec2216
RL
43233 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
43234 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43235 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
43236 fi
43237
a848cd7e
SC
43238 COND_MONOLITHIC_0_SHARED_1="#"
43239 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43240 COND_MONOLITHIC_0_SHARED_1=""
43241 fi
43242
43243 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43244 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43245 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43246 fi
43247
90970d69
DE
43248 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43249 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43250 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43251 fi
43252
a848cd7e
SC
43253 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43254 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43255 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43256 fi
43257
6671c68b
VZ
43258 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43259 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43260 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43261 fi
43262
a848cd7e
SC
43263 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43264 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43265 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43266 fi
43267
ceec2216
RL
43268 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43269 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43270 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43271 fi
43272
a848cd7e
SC
43273 COND_MONOLITHIC_0_USE_ODBC_1="#"
43274 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43275 COND_MONOLITHIC_0_USE_ODBC_1=""
43276 fi
43277
43278 COND_MONOLITHIC_1="#"
43279 if test "x$MONOLITHIC" = "x1" ; then
43280 COND_MONOLITHIC_1=""
43281 fi
43282
43283 COND_MONOLITHIC_1_SHARED_0="#"
43284 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43285 COND_MONOLITHIC_1_SHARED_0=""
43286 fi
43287
43288 COND_MONOLITHIC_1_SHARED_1="#"
43289 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43290 COND_MONOLITHIC_1_SHARED_1=""
43291 fi
43292
43293 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43294 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43295 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43296 fi
43297
43298 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43299 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43300 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43301 fi
43302
43303 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43304 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43305 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43306 fi
43307
43308 COND_PLATFORM_MACOSX_1="#"
43309 if test "x$PLATFORM_MACOSX" = "x1" ; then
43310 COND_PLATFORM_MACOSX_1=""
43311 fi
43312
a30f955f
VS
43313 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43314 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43315 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43316 fi
43317
a848cd7e
SC
43318 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43319 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43320 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43321 fi
43322
43323 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43324 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43325 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43326 fi
43327
43328 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43329 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43330 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43331 fi
43332
fc480dc1
DE
43333 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43334 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43335 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43336 fi
43337
1e9e8aba
DE
43338 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43339 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43340 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43341 fi
43342
ebee3cd0
VS
43343 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
43344 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
43345 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
43346 fi
43347
43348 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
43349 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
43350 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
43351 fi
43352
a848cd7e
SC
43353 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
43354 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
43355 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
43356 fi
43357
43358 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
43359 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
43360 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
43361 fi
43362
b48a2016
DE
43363 COND_PLATFORM_MACOS_1="#"
43364 if test "x$PLATFORM_MACOS" = "x1" ; then
43365 COND_PLATFORM_MACOS_1=""
43366 fi
43367
a848cd7e
SC
43368 COND_PLATFORM_MAC_1="#"
43369 if test "x$PLATFORM_MAC" = "x1" ; then
43370 COND_PLATFORM_MAC_1=""
43371 fi
43372
83d8eb47
MW
43373 COND_PLATFORM_MSDOS_1="#"
43374 if test "x$PLATFORM_MSDOS" = "x1" ; then
43375 COND_PLATFORM_MSDOS_1=""
43376 fi
43377
a848cd7e
SC
43378 COND_PLATFORM_OS2_1="#"
43379 if test "x$PLATFORM_OS2" = "x1" ; then
43380 COND_PLATFORM_OS2_1=""
43381 fi
43382
43383 COND_PLATFORM_UNIX_0="#"
43384 if test "x$PLATFORM_UNIX" = "x0" ; then
43385 COND_PLATFORM_UNIX_0=""
43386 fi
43387
43388 COND_PLATFORM_UNIX_1="#"
43389 if test "x$PLATFORM_UNIX" = "x1" ; then
43390 COND_PLATFORM_UNIX_1=""
43391 fi
43392
43393 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
43394 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
43395 COND_PLATFORM_UNIX_1_USE_GUI_1=""
43396 fi
43397
43398 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
43399 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
43400 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
43401 fi
43402
43403 COND_PLATFORM_WIN32_0="#"
43404 if test "x$PLATFORM_WIN32" = "x0" ; then
43405 COND_PLATFORM_WIN32_0=""
43406 fi
43407
43408 COND_PLATFORM_WIN32_1="#"
43409 if test "x$PLATFORM_WIN32" = "x1" ; then
43410 COND_PLATFORM_WIN32_1=""
43411 fi
43412
43413 COND_SHARED_0="#"
43414 if test "x$SHARED" = "x0" ; then
43415 COND_SHARED_0=""
43416 fi
43417
ceec2216
RL
43418 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43419 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43420 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43421 fi
43422
43423 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43424 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43425 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43426 fi
43427
43428 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43429 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43430 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43431 fi
43432
a848cd7e
SC
43433 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43434 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43435 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43436 fi
43437
43438 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43439 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43440 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43441 fi
43442
43443 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43444 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43445 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43446 fi
43447
43448 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43449 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43450 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43451 fi
43452
52ada004
RL
43453 COND_SHARED_0_USE_XRC_1="#"
43454 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43455 COND_SHARED_0_USE_XRC_1=""
43456 fi
43457
a848cd7e
SC
43458 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
43459 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
43460 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
43461 fi
43462
43463 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
43464 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
43465 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
43466 fi
43467
43468 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
43469 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
43470 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
43471 fi
43472
43473 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
43474 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43475 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43476 fi
43477
43478 COND_SHARED_1="#"
43479 if test "x$SHARED" = "x1" ; then
43480 COND_SHARED_1=""
43481 fi
43482
43483 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43484 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43485 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43486 fi
43487
52ada004
RL
43488 COND_SHARED_1_USE_XRC_1="#"
43489 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43490 COND_SHARED_1_USE_XRC_1=""
43491 fi
43492
a30f955f
VS
43493 COND_TOOLKIT_="#"
43494 if test "x$TOOLKIT" = "x" ; then
43495 COND_TOOLKIT_=""
43496 fi
43497
a848cd7e
SC
43498 COND_TOOLKIT_COCOA="#"
43499 if test "x$TOOLKIT" = "xCOCOA" ; then
43500 COND_TOOLKIT_COCOA=""
43501 fi
43502
a49baeab
DE
43503 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43504 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43505 COND_TOOLKIT_COCOA_USE_GUI_1=""
43506 fi
43507
a848cd7e
SC
43508 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43509 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43510 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43511 fi
43512
43513 COND_TOOLKIT_GTK="#"
43514 if test "x$TOOLKIT" = "xGTK" ; then
43515 COND_TOOLKIT_GTK=""
43516 fi
43517
43518 COND_TOOLKIT_GTK_USE_GUI_1="#"
43519 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43520 COND_TOOLKIT_GTK_USE_GUI_1=""
43521 fi
43522
43523 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43524 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43525 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43526 fi
43527
43528 COND_TOOLKIT_MAC="#"
43529 if test "x$TOOLKIT" = "xMAC" ; then
43530 COND_TOOLKIT_MAC=""
43531 fi
43532
43533 COND_TOOLKIT_MAC_USE_GUI_1="#"
43534 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43535 COND_TOOLKIT_MAC_USE_GUI_1=""
43536 fi
43537
43538 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43539 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43540 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43541 fi
43542
43543 COND_TOOLKIT_MGL="#"
43544 if test "x$TOOLKIT" = "xMGL" ; then
43545 COND_TOOLKIT_MGL=""
43546 fi
43547
43548 COND_TOOLKIT_MGL_USE_GUI_1="#"
43549 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43550 COND_TOOLKIT_MGL_USE_GUI_1=""
43551 fi
43552
43553 COND_TOOLKIT_MOTIF="#"
43554 if test "x$TOOLKIT" = "xMOTIF" ; then
43555 COND_TOOLKIT_MOTIF=""
43556 fi
43557
43558 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43559 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43560 COND_TOOLKIT_MOTIF_USE_GUI_1=""
43561 fi
43562
43563 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43564 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43565 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43566 fi
43567
43568 COND_TOOLKIT_MSW="#"
43569 if test "x$TOOLKIT" = "xMSW" ; then
43570 COND_TOOLKIT_MSW=""
43571 fi
43572
43573 COND_TOOLKIT_MSW_USE_GUI_1="#"
43574 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43575 COND_TOOLKIT_MSW_USE_GUI_1=""
43576 fi
43577
43578 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43579 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43580 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43581 fi
43582
43583 COND_TOOLKIT_PM="#"
43584 if test "x$TOOLKIT" = "xPM" ; then
43585 COND_TOOLKIT_PM=""
43586 fi
43587
43588 COND_TOOLKIT_PM_USE_GUI_1="#"
43589 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43590 COND_TOOLKIT_PM_USE_GUI_1=""
43591 fi
43592
43593 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43594 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43595 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43596 fi
43597
3fd9c298
DE
43598 COND_TOOLKIT_WINCE="#"
43599 if test "x$TOOLKIT" = "xWINCE" ; then
43600 COND_TOOLKIT_WINCE=""
43601 fi
43602
43603 COND_TOOLKIT_WINCE_USE_GUI_1="#"
43604 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43605 COND_TOOLKIT_WINCE_USE_GUI_1=""
43606 fi
43607
43608 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43609 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43610 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43611 fi
43612
a848cd7e
SC
43613 COND_TOOLKIT_X11="#"
43614 if test "x$TOOLKIT" = "xX11" ; then
43615 COND_TOOLKIT_X11=""
43616 fi
43617
43618 COND_TOOLKIT_X11_USE_GUI_1="#"
43619 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43620 COND_TOOLKIT_X11_USE_GUI_1=""
43621 fi
43622
43623 COND_UNICODE_1="#"
43624 if test "x$UNICODE" = "x1" ; then
43625 COND_UNICODE_1=""
43626 fi
43627
43628 COND_USE_EXCEPTIONS_0="#"
43629 if test "x$USE_EXCEPTIONS" = "x0" ; then
43630 COND_USE_EXCEPTIONS_0=""
43631 fi
43632
43633 COND_USE_EXCEPTIONS_1="#"
43634 if test "x$USE_EXCEPTIONS" = "x1" ; then
43635 COND_USE_EXCEPTIONS_1=""
43636 fi
43637
43638 COND_USE_GUI_0="#"
43639 if test "x$USE_GUI" = "x0" ; then
43640 COND_USE_GUI_0=""
43641 fi
43642
43643 COND_USE_GUI_1="#"
43644 if test "x$USE_GUI" = "x1" ; then
43645 COND_USE_GUI_1=""
43646 fi
43647
43648 COND_USE_GUI_1_WXUNIV_0="#"
43649 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43650 COND_USE_GUI_1_WXUNIV_0=""
43651 fi
43652
43653 COND_USE_GUI_1_WXUNIV_1="#"
43654 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43655 COND_USE_GUI_1_WXUNIV_1=""
43656 fi
43657
43658 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43659 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43660 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43661 fi
43662
43663 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43664 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43665 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43666 fi
43667
43668 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43669 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43670 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43671 fi
43672
ceec2216
RL
43673 COND_USE_ODBC_1="#"
43674 if test "x$USE_ODBC" = "x1" ; then
43675 COND_USE_ODBC_1=""
43676 fi
43677
ffa0583f
RL
43678 COND_USE_OPENGL_1="#"
43679 if test "x$USE_OPENGL" = "x1" ; then
43680 COND_USE_OPENGL_1=""
43681 fi
43682
a848cd7e
SC
43683 COND_USE_PLUGINS_0="#"
43684 if test "x$USE_PLUGINS" = "x0" ; then
43685 COND_USE_PLUGINS_0=""
43686 fi
43687
0b78747f
MW
43688 COND_USE_RTTI_0="#"
43689 if test "x$USE_RTTI" = "x0" ; then
43690 COND_USE_RTTI_0=""
43691 fi
43692
43693 COND_USE_RTTI_1="#"
43694 if test "x$USE_RTTI" = "x1" ; then
43695 COND_USE_RTTI_1=""
43696 fi
43697
a848cd7e
SC
43698 COND_USE_SOSYMLINKS_1="#"
43699 if test "x$USE_SOSYMLINKS" = "x1" ; then
43700 COND_USE_SOSYMLINKS_1=""
43701 fi
43702
43703 COND_USE_SOVERLINUX_1="#"
43704 if test "x$USE_SOVERLINUX" = "x1" ; then
43705 COND_USE_SOVERLINUX_1=""
43706 fi
43707
43708 COND_USE_SOVERSION_0="#"
43709 if test "x$USE_SOVERSION" = "x0" ; then
43710 COND_USE_SOVERSION_0=""
43711 fi
43712
43713 COND_USE_SOVERSOLARIS_1="#"
43714 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43715 COND_USE_SOVERSOLARIS_1=""
43716 fi
43717
0b78747f
MW
43718 COND_USE_THREADS_0="#"
43719 if test "x$USE_THREADS" = "x0" ; then
43720 COND_USE_THREADS_0=""
43721 fi
43722
43723 COND_USE_THREADS_1="#"
43724 if test "x$USE_THREADS" = "x1" ; then
43725 COND_USE_THREADS_1=""
43726 fi
43727
a13a7f89
RL
43728 COND_USE_XRC_1="#"
43729 if test "x$USE_XRC" = "x1" ; then
43730 COND_USE_XRC_1=""
43731 fi
43732
a848cd7e
SC
43733 COND_WITH_PLUGIN_SDL_1="#"
43734 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43735 COND_WITH_PLUGIN_SDL_1=""
43736 fi
43737
1e6eb025
VZ
43738 COND_WXUNIV_0="#"
43739 if test "x$WXUNIV" = "x0" ; then
43740 COND_WXUNIV_0=""
43741 fi
43742
a848cd7e
SC
43743 COND_WXUNIV_1="#"
43744 if test "x$WXUNIV" = "x1" ; then
43745 COND_WXUNIV_1=""
43746 fi
43747
43748 COND_WXUSE_EXPAT_BUILTIN="#"
43749 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43750 COND_WXUSE_EXPAT_BUILTIN=""
43751 fi
43752
43753 COND_WXUSE_LIBJPEG_BUILTIN="#"
43754 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43755 COND_WXUSE_LIBJPEG_BUILTIN=""
43756 fi
43757
43758 COND_WXUSE_LIBPNG_BUILTIN="#"
43759 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43760 COND_WXUSE_LIBPNG_BUILTIN=""
43761 fi
43762
43763 COND_WXUSE_LIBTIFF_BUILTIN="#"
43764 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43765 COND_WXUSE_LIBTIFF_BUILTIN=""
43766 fi
43767
43768 COND_WXUSE_ODBC_BUILTIN="#"
43769 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43770 COND_WXUSE_ODBC_BUILTIN=""
43771 fi
43772
43773 COND_WXUSE_REGEX_BUILTIN="#"
43774 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43775 COND_WXUSE_REGEX_BUILTIN=""
43776 fi
43777
43778 COND_WXUSE_ZLIB_BUILTIN="#"
43779 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43780 COND_WXUSE_ZLIB_BUILTIN=""
43781 fi
43782
43783
43784
2057db16
VS
43785 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43786 { { 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
43787echo "$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;}
43788 { (exit 1); exit 1; }; }
43789 fi
43790
a848cd7e 43791
fb00f58d
JS
43792if test "$wxUSE_WINE" = "yes"; then
43793 RESCOMP=wrc
43794fi
43795
ceec2216
RL
43796if test "$wxUSE_SHARED" = "yes"; then
43797
43798 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43799 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43800
5b674b9d
DE
43801 case "${host}" in
43802 *-pc-os2_emx | *-pc-os2-emx )
43803 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43804 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43805 cp -p ${srcdir}/src/os2/dllnames.sh .
43806 cp -p ${srcdir}/src/os2/dllar.sh .
43807 ;;
43808 esac
ceec2216
RL
43809else
43810
43811 EXE_LINKER="$CXX -o"
43812
43813fi
69120ee4
VZ
43814if test "$wxUSE_OMF" = "yes"; then
43815 case "${host}" in
43816 *-pc-os2_emx | *-pc-os2-emx )
43817 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43818 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43819 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43820 ;;
43821 esac
43822fi
a848cd7e 43823
74b84332 43824GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43825PCH_FLAGS=""
43826if test $GCC_PCH = 1 ; then
43827 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43828 PCH_FLAGS="-DWX_PRECOMP"
43829else
a848cd7e
SC
43830 case "${host}" in
43831 powerpc-*-darwin* )
74b84332 43832 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43833 ;;
bea8e651 43834 *-*-mingw32* )
1f344abf
VS
43835 if test "$wxUSE_STL" = "yes" -o \
43836 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43837 "$wxUSE_NO_RTTI" != "yes"; then
43838 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43839echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43840 cat >conftest.$ac_ext <<_ACEOF
43841/* confdefs.h. */
43842_ACEOF
43843cat confdefs.h >>conftest.$ac_ext
43844cat >>conftest.$ac_ext <<_ACEOF
43845/* end confdefs.h. */
43846
3314e67b
RR
43847int
43848main ()
43849{
43850#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43851 #error "Not GCC 3.2 or greater"
43852 #endif
43853
43854 ;
43855 return 0;
43856}
43857_ACEOF
43858rm -f conftest.$ac_objext
43859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43860 (eval $ac_compile) 2>conftest.er1
43861 ac_status=$?
43862 grep -v '^ *+' conftest.er1 >conftest.err
43863 rm -f conftest.er1
43864 cat conftest.err >&5
43865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43866 (exit $ac_status); } &&
fb00f58d
JS
43867 { ac_try='test -z "$ac_c_werror_flag"
43868 || test ! -s conftest.err'
3314e67b
RR
43869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43870 (eval $ac_try) 2>&5
43871 ac_status=$?
43872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43873 (exit $ac_status); }; } &&
43874 { ac_try='test -s conftest.$ac_objext'
43875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43876 (eval $ac_try) 2>&5
43877 ac_status=$?
43878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43879 (exit $ac_status); }; }; then
43880 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43881 echo "$as_me:$LINENO: result: yes" >&5
43882echo "${ECHO_T}yes" >&6
43883else
43884 echo "$as_me: failed program was:" >&5
43885sed 's/^/| /' conftest.$ac_ext >&5
43886
43887echo "$as_me:$LINENO: result: no" >&5
43888echo "${ECHO_T}no" >&6
43889fi
43890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43891 fi
43892 ;;
43893 *-pc-os2_emx | *-pc-os2-emx )
43894 if test "$wxUSE_STL" = "yes"; then
43895 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43896echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43897 cat >conftest.$ac_ext <<_ACEOF
43898/* confdefs.h. */
43899_ACEOF
43900cat confdefs.h >>conftest.$ac_ext
43901cat >>conftest.$ac_ext <<_ACEOF
43902/* end confdefs.h. */
43903
bea8e651
MB
43904int
43905main ()
43906{
1f344abf 43907#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43908 #error "Not GCC 3.2 or greater"
43909 #endif
43910
43911 ;
43912 return 0;
43913}
43914_ACEOF
43915rm -f conftest.$ac_objext
43916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43917 (eval $ac_compile) 2>conftest.er1
bea8e651 43918 ac_status=$?
ac1cb8d3
VS
43919 grep -v '^ *+' conftest.er1 >conftest.err
43920 rm -f conftest.er1
43921 cat conftest.err >&5
bea8e651
MB
43922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43923 (exit $ac_status); } &&
fb00f58d
JS
43924 { ac_try='test -z "$ac_c_werror_flag"
43925 || test ! -s conftest.err'
ac1cb8d3
VS
43926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43927 (eval $ac_try) 2>&5
43928 ac_status=$?
43929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43930 (exit $ac_status); }; } &&
43931 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43933 (eval $ac_try) 2>&5
43934 ac_status=$?
43935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43936 (exit $ac_status); }; }; then
74b84332 43937 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43938 echo "$as_me:$LINENO: result: yes" >&5
43939echo "${ECHO_T}yes" >&6
43940else
43941 echo "$as_me: failed program was:" >&5
43942sed 's/^/| /' conftest.$ac_ext >&5
43943
43944echo "$as_me:$LINENO: result: no" >&5
43945echo "${ECHO_T}no" >&6
43946fi
ac1cb8d3 43947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43948 fi
43949 ;;
a848cd7e
SC
43950 esac
43951fi
d2083416 43952CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43953
43954
43955SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43956
43957
43958
43959
43960
43961
43962
43963
43964
43965
43966
43967
43968
43969
43970
43971
43972
43973
43974
43975
43976
43977
43978
43979
43980
43981
43982
43983
43984
43985
43986
43987
43988
43989
43990
43991
43992
43993
43994
43995
43996
43997
a848cd7e
SC
43998
43999
44000
44001
44002
44003
44004
44005
44006
44007
44008
44009
44010
44011
44012
44013
44014
44015
74b84332 44016
a848cd7e
SC
44017
44018
44019echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44020echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44021set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44022if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44023 echo $ECHO_N "(cached) $ECHO_C" >&6
44024else
44025 cat >conftest.make <<\_ACEOF
44026all:
44027 @echo 'ac_maketemp="$(MAKE)"'
44028_ACEOF
44029# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44030eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44031if test -n "$ac_maketemp"; then
44032 eval ac_cv_prog_make_${ac_make}_set=yes
44033else
44034 eval ac_cv_prog_make_${ac_make}_set=no
44035fi
44036rm -f conftest.make
44037fi
44038if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44039 echo "$as_me:$LINENO: result: yes" >&5
44040echo "${ECHO_T}yes" >&6
44041 SET_MAKE=
44042else
44043 echo "$as_me:$LINENO: result: no" >&5
44044echo "${ECHO_T}no" >&6
44045 SET_MAKE="MAKE=${MAKE-make}"
44046fi
44047
44048
a848cd7e 44049
ceec2216
RL
44050 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
44051
a848cd7e 44052
ceec2216 44053 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 44054
a848cd7e 44055
ceec2216 44056 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 44057
ceec2216
RL
44058
44059 ac_config_files="$ac_config_files version-script Makefile"
44060
44061
44062 ac_config_commands="$ac_config_commands wx-config
44063 "
a848cd7e
SC
44064
44065
9103d280
RL
44066
44067
a848cd7e
SC
44068if test "$wxUSE_GUI" = "yes"; then
44069 SUBDIRS="samples demos utils contrib"
44070else SUBDIRS="samples utils"
44071fi
44072
44073
44074
44075# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
44076if test "${with_cppunit_prefix+set}" = set; then
44077 withval="$with_cppunit_prefix"
44078 cppunit_config_prefix="$withval"
44079else
44080 cppunit_config_prefix=""
44081fi;
44082
44083# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
44084if test "${with_cppunit_exec_prefix+set}" = set; then
44085 withval="$with_cppunit_exec_prefix"
44086 cppunit_config_exec_prefix="$withval"
44087else
44088 cppunit_config_exec_prefix=""
44089fi;
44090
44091 if test x$cppunit_config_exec_prefix != x ; then
44092 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
44093 if test x${CPPUNIT_CONFIG+set} != xset ; then
44094 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
44095 fi
44096 fi
44097 if test x$cppunit_config_prefix != x ; then
44098 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
44099 if test x${CPPUNIT_CONFIG+set} != xset ; then
44100 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
44101 fi
44102 fi
44103
44104 # Extract the first word of "cppunit-config", so it can be a program name with args.
44105set dummy cppunit-config; ac_word=$2
44106echo "$as_me:$LINENO: checking for $ac_word" >&5
44107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44108if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
44109 echo $ECHO_N "(cached) $ECHO_C" >&6
44110else
44111 case $CPPUNIT_CONFIG in
44112 [\\/]* | ?:[\\/]*)
44113 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
44114 ;;
44115 *)
44116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44117for as_dir in $PATH
44118do
44119 IFS=$as_save_IFS
44120 test -z "$as_dir" && as_dir=.
44121 for ac_exec_ext in '' $ac_executable_extensions; do
44122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44123 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44125 break 2
44126 fi
44127done
44128done
44129
44130 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
44131 ;;
44132esac
44133fi
44134CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
44135
44136if test -n "$CPPUNIT_CONFIG"; then
44137 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
44138echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
44139else
44140 echo "$as_me:$LINENO: result: no" >&5
44141echo "${ECHO_T}no" >&6
44142fi
44143
44144 cppunit_version_min=1.8.0
44145
44146 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
44147echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
44148 no_cppunit=""
44149 if test "$CPPUNIT_CONFIG" = "no" ; then
44150 no_cppunit=yes
44151 else
44152 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
44153 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
44154 cppunit_version=`$CPPUNIT_CONFIG --version`
44155
44156 cppunit_major_version=`echo $cppunit_version | \
44157 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44158 cppunit_minor_version=`echo $cppunit_version | \
44159 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44160 cppunit_micro_version=`echo $cppunit_version | \
44161 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44162
44163 cppunit_major_min=`echo $cppunit_version_min | \
44164 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44165 cppunit_minor_min=`echo $cppunit_version_min | \
44166 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44167 cppunit_micro_min=`echo $cppunit_version_min | \
44168 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44169
44170 cppunit_version_proper=`expr \
44171 $cppunit_major_version \> $cppunit_major_min \| \
44172 $cppunit_major_version \= $cppunit_major_min \& \
44173 $cppunit_minor_version \> $cppunit_minor_min \| \
44174 $cppunit_major_version \= $cppunit_major_min \& \
44175 $cppunit_minor_version \= $cppunit_minor_min \& \
44176 $cppunit_micro_version \>= $cppunit_micro_min `
44177
44178 if test "$cppunit_version_proper" = "1" ; then
44179 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
44180echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
44181 else
44182 echo "$as_me:$LINENO: result: no" >&5
44183echo "${ECHO_T}no" >&6
44184 no_cppunit=yes
44185 fi
44186 fi
44187
44188 if test "x$no_cppunit" = x ; then
c2218763 44189 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
44190 else
44191 CPPUNIT_CFLAGS=""
44192 CPPUNIT_LIBS=""
c2218763 44193 :
a848cd7e
SC
44194 fi
44195
44196
44197
44198
44199
44200for subdir in `echo $SUBDIRS`; do
44201 if test -d ${srcdir}/${subdir} ; then
44202 if test "$wxUSE_GUI" = "yes"; then
44203 if test ${subdir} = "samples"; then
44204 makefiles="samples/Makefile.in $makefiles"
44205 for sample in `echo $SAMPLES_SUBDIRS`; do
44206 if test -d $srcdir/samples/$sample; then
44207 makefiles="samples/$sample/Makefile.in $makefiles"
44208 fi
44209 done
9c112555
MW
44210 else
44211 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
44212 eval "disabled=\$$disabled_var"
44213 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
44214 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
44215 fi
44216 else if test ${subdir} = "samples"; then
44217 makefiles="samples/Makefile.in samples/console/Makefile.in"
44218 elif test ${subdir} = "utils"; then
6537ccf8
VS
44219 makefiles=""
44220 for util in HelpGen tex2rtf ; do
44221 if test -d $srcdir/utils/$util ; then
44222 makefiles="utils/$util/Makefile.in \
44223 utils/$util/src/Makefile.in \
44224 $makefiles"
44225 fi
44226 done
a848cd7e
SC
44227 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
44228 fi
44229 fi
44230
44231 for mkin in $makefiles ; do
44232 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
44233 ac_config_files="$ac_config_files $mk"
44234
44235 done
44236 fi
44237done
44238
44239
44240cat >confcache <<\_ACEOF
44241# This file is a shell script that caches the results of configure
44242# tests run on this system so they can be shared between configure
44243# scripts and configure runs, see configure's option --config-cache.
44244# It is not useful on other systems. If it contains results you don't
44245# want to keep, you may remove or edit it.
44246#
44247# config.status only pays attention to the cache file if you give it
44248# the --recheck option to rerun configure.
44249#
44250# `ac_cv_env_foo' variables (set or unset) will be overridden when
44251# loading this file, other *unset* `ac_cv_foo' will be assigned the
44252# following values.
44253
44254_ACEOF
44255
44256# The following way of writing the cache mishandles newlines in values,
44257# but we know of no workaround that is simple, portable, and efficient.
44258# So, don't put newlines in cache variables' values.
44259# Ultrix sh set writes to stderr and can't be redirected directly,
44260# and sets the high bit in the cache file unless we assign to the vars.
44261{
44262 (set) 2>&1 |
44263 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44264 *ac_space=\ *)
44265 # `set' does not quote correctly, so add quotes (double-quote
44266 # substitution turns \\\\ into \\, and sed turns \\ into \).
44267 sed -n \
ac1cb8d3
VS
44268 "s/'/'\\\\''/g;
44269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
44270 ;;
44271 *)
44272 # `set' quotes correctly as required by POSIX, so do not add quotes.
44273 sed -n \
ac1cb8d3 44274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
44275 ;;
44276 esac;
44277} |
44278 sed '
44279 t clear
44280 : clear
44281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44282 t end
44283 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44284 : end' >>confcache
44285if diff $cache_file confcache >/dev/null 2>&1; then :; else
44286 if test -w $cache_file; then
44287 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44288 cat confcache >$cache_file
44289 else
44290 echo "not updating unwritable cache $cache_file"
44291 fi
44292fi
44293rm -f confcache
44294
44295test "x$prefix" = xNONE && prefix=$ac_default_prefix
44296# Let make expand exec_prefix.
44297test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44298
44299# VPATH may cause trouble with some makes, so we remove $(srcdir),
44300# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44301# trailing colons and then remove the whole line if VPATH becomes empty
44302# (actually we leave an empty line to preserve line numbers).
44303if test "x$srcdir" = x.; then
ac1cb8d3 44304 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
44305s/:*\$(srcdir):*/:/;
44306s/:*\${srcdir}:*/:/;
44307s/:*@srcdir@:*/:/;
ac1cb8d3 44308s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 44309s/:*$//;
ac1cb8d3 44310s/^[^=]*=[ ]*$//;
a848cd7e
SC
44311}'
44312fi
44313
44314DEFS=-DHAVE_CONFIG_H
44315
44316ac_libobjs=
44317ac_ltlibobjs=
44318for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44319 # 1. Remove the extension, and $U if already installed.
44320 ac_i=`echo "$ac_i" |
ac1cb8d3 44321 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
44322 # 2. Add them.
44323 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44324 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44325done
44326LIBOBJS=$ac_libobjs
44327
44328LTLIBOBJS=$ac_ltlibobjs
44329
44330
44331
44332: ${CONFIG_STATUS=./config.status}
44333ac_clean_files_save=$ac_clean_files
44334ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44335{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44336echo "$as_me: creating $CONFIG_STATUS" >&6;}
44337cat >$CONFIG_STATUS <<_ACEOF
44338#! $SHELL
44339# Generated by $as_me.
44340# Run this file to recreate the current configuration.
44341# Compiler output produced by configure, useful for debugging
44342# configure, is in config.log if it exists.
44343
44344debug=false
44345ac_cs_recheck=false
44346ac_cs_silent=false
44347SHELL=\${CONFIG_SHELL-$SHELL}
44348_ACEOF
44349
44350cat >>$CONFIG_STATUS <<\_ACEOF
44351## --------------------- ##
44352## M4sh Initialization. ##
44353## --------------------- ##
44354
44355# Be Bourne compatible
44356if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44357 emulate sh
44358 NULLCMD=:
44359 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44360 # is contrary to our usage. Disable this feature.
44361 alias -g '${1+"$@"}'='"$@"'
44362elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44363 set -o posix
44364fi
ac1cb8d3 44365DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
44366
44367# Support unset when possible.
ac1cb8d3 44368if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
44369 as_unset=unset
44370else
44371 as_unset=false
44372fi
44373
44374
44375# Work around bugs in pre-3.0 UWIN ksh.
44376$as_unset ENV MAIL MAILPATH
44377PS1='$ '
44378PS2='> '
44379PS4='+ '
44380
44381# NLS nuisances.
44382for as_var in \
44383 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44384 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44385 LC_TELEPHONE LC_TIME
44386do
ac1cb8d3 44387 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
44388 eval $as_var=C; export $as_var
44389 else
44390 $as_unset $as_var
44391 fi
44392done
44393
44394# Required to use basename.
44395if expr a : '\(a\)' >/dev/null 2>&1; then
44396 as_expr=expr
44397else
44398 as_expr=false
44399fi
44400
44401if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44402 as_basename=basename
44403else
44404 as_basename=false
44405fi
44406
44407
44408# Name of the executable.
44409as_me=`$as_basename "$0" ||
44410$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44411 X"$0" : 'X\(//\)$' \| \
44412 X"$0" : 'X\(/\)$' \| \
44413 . : '\(.\)' 2>/dev/null ||
44414echo X/"$0" |
44415 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44416 /^X\/\(\/\/\)$/{ s//\1/; q; }
44417 /^X\/\(\/\).*/{ s//\1/; q; }
44418 s/.*/./; q'`
44419
44420
44421# PATH needs CR, and LINENO needs CR and PATH.
44422# Avoid depending upon Character Ranges.
44423as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44424as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44425as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44426as_cr_digits='0123456789'
44427as_cr_alnum=$as_cr_Letters$as_cr_digits
44428
44429# The user is always right.
44430if test "${PATH_SEPARATOR+set}" != set; then
44431 echo "#! /bin/sh" >conf$$.sh
44432 echo "exit 0" >>conf$$.sh
44433 chmod +x conf$$.sh
44434 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44435 PATH_SEPARATOR=';'
44436 else
44437 PATH_SEPARATOR=:
44438 fi
44439 rm -f conf$$.sh
44440fi
44441
44442
44443 as_lineno_1=$LINENO
44444 as_lineno_2=$LINENO
44445 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44446 test "x$as_lineno_1" != "x$as_lineno_2" &&
44447 test "x$as_lineno_3" = "x$as_lineno_2" || {
44448 # Find who we are. Look in the path if we contain no path at all
44449 # relative or not.
44450 case $0 in
44451 *[\\/]* ) as_myself=$0 ;;
44452 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44453for as_dir in $PATH
44454do
44455 IFS=$as_save_IFS
44456 test -z "$as_dir" && as_dir=.
44457 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44458done
44459
44460 ;;
44461 esac
44462 # We did not find ourselves, most probably we were run as `sh COMMAND'
44463 # in which case we are not to be found in the path.
44464 if test "x$as_myself" = x; then
44465 as_myself=$0
44466 fi
44467 if test ! -f "$as_myself"; then
44468 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44469echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44470 { (exit 1); exit 1; }; }
44471 fi
44472 case $CONFIG_SHELL in
44473 '')
44474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44475for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44476do
44477 IFS=$as_save_IFS
44478 test -z "$as_dir" && as_dir=.
44479 for as_base in sh bash ksh sh5; do
44480 case $as_dir in
44481 /*)
44482 if ("$as_dir/$as_base" -c '
44483 as_lineno_1=$LINENO
44484 as_lineno_2=$LINENO
44485 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44486 test "x$as_lineno_1" != "x$as_lineno_2" &&
44487 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44488 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44489 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44490 CONFIG_SHELL=$as_dir/$as_base
44491 export CONFIG_SHELL
44492 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44493 fi;;
44494 esac
44495 done
44496done
44497;;
44498 esac
44499
44500 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44501 # uniformly replaced by the line number. The first 'sed' inserts a
44502 # line-number line before each line; the second 'sed' does the real
44503 # work. The second script uses 'N' to pair each line-number line
44504 # with the numbered line, and appends trailing '-' during
44505 # substitution so that $LINENO is not a special case at line end.
44506 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44507 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44508 sed '=' <$as_myself |
44509 sed '
44510 N
44511 s,$,-,
44512 : loop
44513 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44514 t loop
44515 s,-$,,
44516 s,^['$as_cr_digits']*\n,,
44517 ' >$as_me.lineno &&
44518 chmod +x $as_me.lineno ||
44519 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44520echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44521 { (exit 1); exit 1; }; }
44522
44523 # Don't try to exec as it changes $[0], causing all sort of problems
44524 # (the dirname of $[0] is not the place where we might find the
44525 # original and so on. Autoconf is especially sensible to this).
44526 . ./$as_me.lineno
44527 # Exit status is that of the last command.
44528 exit
44529}
44530
44531
44532case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44533 *c*,-n*) ECHO_N= ECHO_C='
44534' ECHO_T=' ' ;;
44535 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44536 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44537esac
44538
44539if expr a : '\(a\)' >/dev/null 2>&1; then
44540 as_expr=expr
44541else
44542 as_expr=false
44543fi
44544
44545rm -f conf$$ conf$$.exe conf$$.file
44546echo >conf$$.file
44547if ln -s conf$$.file conf$$ 2>/dev/null; then
44548 # We could just check for DJGPP; but this test a) works b) is more generic
44549 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44550 if test -f conf$$.exe; then
44551 # Don't use ln at all; we don't have any links
44552 as_ln_s='cp -p'
44553 else
44554 as_ln_s='ln -s'
44555 fi
44556elif ln conf$$.file conf$$ 2>/dev/null; then
44557 as_ln_s=ln
44558else
44559 as_ln_s='cp -p'
44560fi
44561rm -f conf$$ conf$$.exe conf$$.file
44562
44563if mkdir -p . 2>/dev/null; then
44564 as_mkdir_p=:
44565else
ac1cb8d3 44566 test -d ./-p && rmdir ./-p
a848cd7e
SC
44567 as_mkdir_p=false
44568fi
44569
44570as_executable_p="test -f"
44571
44572# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 44573as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44574
44575# Sed expression to map a string onto a valid variable name.
ac1cb8d3 44576as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44577
44578
44579# IFS
44580# We need space, tab and new line, in precisely that order.
44581as_nl='
44582'
44583IFS=" $as_nl"
44584
44585# CDPATH.
44586$as_unset CDPATH
44587
44588exec 6>&1
44589
44590# Open the log real soon, to keep \$[0] and so on meaningful, and to
44591# report actual input values of CONFIG_FILES etc. instead of their
44592# values after options handling. Logging --version etc. is OK.
44593exec 5>>config.log
44594{
44595 echo
44596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44597## Running $as_me. ##
44598_ASBOX
44599} >&5
44600cat >&5 <<_CSEOF
44601
e0d84535 44602This file was extended by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 44603generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
44604
44605 CONFIG_FILES = $CONFIG_FILES
44606 CONFIG_HEADERS = $CONFIG_HEADERS
44607 CONFIG_LINKS = $CONFIG_LINKS
44608 CONFIG_COMMANDS = $CONFIG_COMMANDS
44609 $ $0 $@
44610
44611_CSEOF
44612echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44613echo >&5
44614_ACEOF
44615
44616# Files that config.status was made for.
44617if test -n "$ac_config_files"; then
44618 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44619fi
44620
44621if test -n "$ac_config_headers"; then
44622 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44623fi
44624
44625if test -n "$ac_config_links"; then
44626 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44627fi
44628
44629if test -n "$ac_config_commands"; then
44630 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44631fi
44632
44633cat >>$CONFIG_STATUS <<\_ACEOF
44634
44635ac_cs_usage="\
44636\`$as_me' instantiates files from templates according to the
44637current configuration.
44638
44639Usage: $0 [OPTIONS] [FILE]...
44640
44641 -h, --help print this help, then exit
44642 -V, --version print version number, then exit
44643 -q, --quiet do not print progress messages
44644 -d, --debug don't remove temporary files
44645 --recheck update $as_me by reconfiguring in the same conditions
44646 --file=FILE[:TEMPLATE]
ac1cb8d3 44647 instantiate the configuration file FILE
a848cd7e 44648 --header=FILE[:TEMPLATE]
ac1cb8d3 44649 instantiate the configuration header FILE
a848cd7e
SC
44650
44651Configuration files:
44652$config_files
44653
44654Configuration headers:
44655$config_headers
44656
44657Configuration commands:
44658$config_commands
44659
44660Report bugs to <bug-autoconf@gnu.org>."
44661_ACEOF
44662
44663cat >>$CONFIG_STATUS <<_ACEOF
44664ac_cs_version="\\
e0d84535 44665wxWidgets config.status 2.6.0
ac1cb8d3 44666configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
44667 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44668
ac1cb8d3 44669Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
44670This config.status script is free software; the Free Software Foundation
44671gives unlimited permission to copy, distribute and modify it."
44672srcdir=$srcdir
44673INSTALL="$INSTALL"
44674_ACEOF
44675
44676cat >>$CONFIG_STATUS <<\_ACEOF
44677# If no file are specified by the user, then we need to provide default
44678# value. By we need to know if files were specified by the user.
44679ac_need_defaults=:
44680while test $# != 0
44681do
44682 case $1 in
44683 --*=*)
44684 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44685 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44686 ac_shift=:
44687 ;;
44688 -*)
44689 ac_option=$1
44690 ac_optarg=$2
44691 ac_shift=shift
44692 ;;
44693 *) # This is not an option, so the user has probably given explicit
44694 # arguments.
44695 ac_option=$1
44696 ac_need_defaults=false;;
44697 esac
44698
44699 case $ac_option in
44700 # Handling of the options.
44701_ACEOF
44702cat >>$CONFIG_STATUS <<\_ACEOF
44703 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44704 ac_cs_recheck=: ;;
44705 --version | --vers* | -V )
44706 echo "$ac_cs_version"; exit 0 ;;
44707 --he | --h)
44708 # Conflict between --help and --header
44709 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44710Try \`$0 --help' for more information." >&5
44711echo "$as_me: error: ambiguous option: $1
44712Try \`$0 --help' for more information." >&2;}
44713 { (exit 1); exit 1; }; };;
44714 --help | --hel | -h )
44715 echo "$ac_cs_usage"; exit 0 ;;
44716 --debug | --d* | -d )
44717 debug=: ;;
44718 --file | --fil | --fi | --f )
44719 $ac_shift
44720 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44721 ac_need_defaults=false;;
44722 --header | --heade | --head | --hea )
44723 $ac_shift
44724 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44725 ac_need_defaults=false;;
44726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44727 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44728 ac_cs_silent=: ;;
44729
44730 # This is an error.
44731 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44732Try \`$0 --help' for more information." >&5
44733echo "$as_me: error: unrecognized option: $1
44734Try \`$0 --help' for more information." >&2;}
44735 { (exit 1); exit 1; }; } ;;
44736
44737 *) ac_config_targets="$ac_config_targets $1" ;;
44738
44739 esac
44740 shift
44741done
44742
44743ac_configure_extra_args=
44744
44745if $ac_cs_silent; then
44746 exec 6>/dev/null
44747 ac_configure_extra_args="$ac_configure_extra_args --silent"
44748fi
44749
44750_ACEOF
44751cat >>$CONFIG_STATUS <<_ACEOF
44752if \$ac_cs_recheck; then
44753 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44754 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44755fi
44756
44757_ACEOF
44758
44759cat >>$CONFIG_STATUS <<_ACEOF
44760#
44761# INIT-COMMANDS section.
44762#
44763
ceec2216
RL
44764 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44765 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44766 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44767 LN_S="${LN_S}"
a848cd7e
SC
44768
44769
44770_ACEOF
44771
44772
44773
44774cat >>$CONFIG_STATUS <<\_ACEOF
44775for ac_config_target in $ac_config_targets
44776do
44777 case "$ac_config_target" in
44778 # Handling of arguments.
ceec2216
RL
44779 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44780 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44781 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44782 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44783 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44784 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44785 "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
44786 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44787echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44788 { (exit 1); exit 1; }; };;
44789 esac
44790done
44791
44792# If the user did not use the arguments to specify the items to instantiate,
44793# then the envvar interface is used. Set only those that are not.
44794# We use the long form for the default assignment because of an extremely
44795# bizarre bug on SunOS 4.1.3.
44796if $ac_need_defaults; then
44797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44798 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44800fi
44801
44802# Have a temporary directory for convenience. Make it in the build tree
44803# simply because there is no reason to put it here, and in addition,
44804# creating and moving files from /tmp can sometimes cause problems.
44805# Create a temporary directory, and hook for its removal unless debugging.
44806$debug ||
44807{
44808 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44809 trap '{ (exit 1); exit 1; }' 1 2 13 15
44810}
44811
44812# Create a (secure) tmp directory for tmp files.
44813
44814{
44815 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44816 test -n "$tmp" && test -d "$tmp"
44817} ||
44818{
44819 tmp=./confstat$$-$RANDOM
44820 (umask 077 && mkdir $tmp)
44821} ||
44822{
44823 echo "$me: cannot create a temporary directory in ." >&2
44824 { (exit 1); exit 1; }
44825}
44826
44827_ACEOF
44828
44829cat >>$CONFIG_STATUS <<_ACEOF
44830
44831#
44832# CONFIG_FILES section.
44833#
44834
44835# No need to generate the scripts if there are no CONFIG_FILES.
44836# This happens for instance when ./config.status config.h
44837if test -n "\$CONFIG_FILES"; then
44838 # Protect against being on the right side of a sed subst in config.status.
44839 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44840 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44841s,@SHELL@,$SHELL,;t t
44842s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44843s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44844s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44845s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44846s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44847s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44848s,@exec_prefix@,$exec_prefix,;t t
44849s,@prefix@,$prefix,;t t
44850s,@program_transform_name@,$program_transform_name,;t t
44851s,@bindir@,$bindir,;t t
44852s,@sbindir@,$sbindir,;t t
44853s,@libexecdir@,$libexecdir,;t t
44854s,@datadir@,$datadir,;t t
44855s,@sysconfdir@,$sysconfdir,;t t
44856s,@sharedstatedir@,$sharedstatedir,;t t
44857s,@localstatedir@,$localstatedir,;t t
44858s,@libdir@,$libdir,;t t
44859s,@includedir@,$includedir,;t t
44860s,@oldincludedir@,$oldincludedir,;t t
44861s,@infodir@,$infodir,;t t
44862s,@mandir@,$mandir,;t t
44863s,@build_alias@,$build_alias,;t t
44864s,@host_alias@,$host_alias,;t t
44865s,@target_alias@,$target_alias,;t t
44866s,@DEFS@,$DEFS,;t t
44867s,@ECHO_C@,$ECHO_C,;t t
44868s,@ECHO_N@,$ECHO_N,;t t
44869s,@ECHO_T@,$ECHO_T,;t t
44870s,@LIBS@,$LIBS,;t t
44871s,@build@,$build,;t t
44872s,@build_cpu@,$build_cpu,;t t
44873s,@build_vendor@,$build_vendor,;t t
44874s,@build_os@,$build_os,;t t
44875s,@host@,$host,;t t
44876s,@host_cpu@,$host_cpu,;t t
44877s,@host_vendor@,$host_vendor,;t t
44878s,@host_os@,$host_os,;t t
44879s,@target@,$target,;t t
44880s,@target_cpu@,$target_cpu,;t t
44881s,@target_vendor@,$target_vendor,;t t
44882s,@target_os@,$target_os,;t t
44883s,@CC@,$CC,;t t
44884s,@CFLAGS@,$CFLAGS,;t t
44885s,@LDFLAGS@,$LDFLAGS,;t t
44886s,@CPPFLAGS@,$CPPFLAGS,;t t
44887s,@ac_ct_CC@,$ac_ct_CC,;t t
44888s,@EXEEXT@,$EXEEXT,;t t
44889s,@OBJEXT@,$OBJEXT,;t t
44890s,@CPP@,$CPP,;t t
44891s,@EGREP@,$EGREP,;t t
44892s,@CXX@,$CXX,;t t
44893s,@CXXFLAGS@,$CXXFLAGS,;t t
44894s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44895s,@RANLIB@,$RANLIB,;t t
44896s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44897s,@AR@,$AR,;t t
44898s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44899s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44900s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44901s,@STRIP@,$STRIP,;t t
44902s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44903s,@LN_S@,$LN_S,;t t
44904s,@CXXCPP@,$CXXCPP,;t t
44905s,@subdirs@,$subdirs,;t t
44906s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44907s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44908s,@GTK_LIBS@,$GTK_LIBS,;t t
44909s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44910s,@X_CFLAGS@,$X_CFLAGS,;t t
44911s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44912s,@X_LIBS@,$X_LIBS,;t t
44913s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44914s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44915s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44916s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44917s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44918s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44919s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44920s,@RESCOMP@,$RESCOMP,;t t
44921s,@DEREZ@,$DEREZ,;t t
44922s,@SETFILE@,$SETFILE,;t t
44923s,@LIBICONV@,$LIBICONV,;t t
44924s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44925s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44926s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44927s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44928s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44929s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44930s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44931s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44932s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44933s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44934s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44935s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44936s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44937s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44938s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44939s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44940s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44941s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44942s,@VENDOR@,$VENDOR,;t t
44943s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44944s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44945s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44946s,@WXUNIV@,$WXUNIV,;t t
44947s,@MONOLITHIC@,$MONOLITHIC,;t t
44948s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44949s,@EXTRALIBS@,$EXTRALIBS,;t t
44950s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44951s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44952s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44953s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44954s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44955s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44956s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44957s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44958s,@UNICODE@,$UNICODE,;t t
44959s,@BUILD@,$BUILD,;t t
44960s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44961s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44962s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44963s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44964s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44965s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44966s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44967s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44968s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44969s,@SET_MAKE@,$SET_MAKE,;t t
44970s,@MAKE_SET@,$MAKE_SET,;t t
44971s,@ac_ct_AR@,$ac_ct_AR,;t t
44972s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44973s,@NM@,$NM,;t t
44974s,@ac_ct_NM@,$ac_ct_NM,;t t
44975s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44976s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44977s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44978s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44979s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44980s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44981s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44982s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44983s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44984s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44985s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44986s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44987s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44988s,@LIBPREFIX@,$LIBPREFIX,;t t
44989s,@LIBEXT@,$LIBEXT,;t t
44990s,@DLLPREFIX@,$DLLPREFIX,;t t
44991s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44992s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44993s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44994s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44995s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44996s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44997s,@PIC_FLAG@,$PIC_FLAG,;t t
44998s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44999s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
45000s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
45001s,@USE_MACVERSION@,$USE_MACVERSION,;t t
45002s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
45003s,@SONAME_FLAG@,$SONAME_FLAG,;t t
45004s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45005s,@GCC_PCH@,$GCC_PCH,;t t
45006s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45007s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45008s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45009s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45010s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45011s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45012s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45013s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45014s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45015s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45016s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45017s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45018s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45019s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45020s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45021s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45022s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45023s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45024s,@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 45025s,@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 45026s,@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 45027s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45028s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45029s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45030s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45031s,@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 45032s,@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 45033s,@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 45034s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45035s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
45036s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
45037s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
45038s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
45039s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
45040s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
45041s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
45042s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
45043s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 45044s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
45045s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
45046s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
45047s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 45048s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 45049s,@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
45050s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
45051s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
45052s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
45053s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 45054s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e 45055s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 45056s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
45057s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
45058s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
45059s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
45060s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
45061s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
45062s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
45063s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45064s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
45065s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
45066s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
45067s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
45068s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45069s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45070s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45071s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52ada004 45072s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45073s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
45074s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
45075s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
45076s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45077s,@COND_SHARED_1@,$COND_SHARED_1,;t t
45078s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
52ada004 45079s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 45080s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 45081s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 45082s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
45083s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
45084s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
45085s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
45086s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
45087s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
45088s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
45089s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
45090s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
45091s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
45092s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
45093s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
45094s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
45095s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
45096s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
45097s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
45098s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
45099s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
45100s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
45101s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
45102s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
45103s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
45104s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
45105s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
45106s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
45107s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
45108s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
45109s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
45110s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
45111s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
45112s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
45113s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45114s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45115s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 45116s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 45117s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 45118s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
45119s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
45120s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
45121s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
45122s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
45123s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
45124s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
45125s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
45126s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 45127s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 45128s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 45129s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
45130s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
45131s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
45132s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
45133s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
45134s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
45135s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
45136s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
45137s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 45138s,@SHARED@,$SHARED,;t t
a848cd7e
SC
45139s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
45140s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
45141s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
45142s,@USE_GUI@,$USE_GUI,;t t
45143s,@AFMINSTALL@,$AFMINSTALL,;t t
45144s,@WIN32INSTALL@,$WIN32INSTALL,;t t
45145s,@TOOLKIT@,$TOOLKIT,;t t
45146s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 45147s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 45148s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
45149s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
45150s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 45151s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
45152s,@WIDGET_SET@,$WIDGET_SET,;t t
45153s,@WX_RELEASE@,$WX_RELEASE,;t t
45154s,@WX_VERSION@,$WX_VERSION,;t t
45155s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
45156s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
45157s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 45158s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
45159s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
45160s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
45161s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
45162s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 45163s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
45164s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
45165s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 45166s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 45167s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
45168s,@DISTDIR@,$DISTDIR,;t t
45169s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
45170s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
45171s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
45172s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
45173s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
45174s,@RESFLAGS@,$RESFLAGS,;t t
45175s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
45176s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
45177s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
45178s,@LIBWXMACRES@,$LIBWXMACRES,;t t
45179s,@MACRESCOMP@,$MACRESCOMP,;t t
45180s,@MACSETFILE@,$MACSETFILE,;t t
45181s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
45182s,@GCC@,$GCC,;t t
a848cd7e 45183s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
45184s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
45185s,@LIBOBJS@,$LIBOBJS,;t t
45186s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45187CEOF
45188
45189_ACEOF
45190
45191 cat >>$CONFIG_STATUS <<\_ACEOF
45192 # Split the substitutions into bite-sized pieces for seds with
45193 # small command number limits, like on Digital OSF/1 and HP-UX.
45194 ac_max_sed_lines=48
45195 ac_sed_frag=1 # Number of current file.
45196 ac_beg=1 # First line for current file.
45197 ac_end=$ac_max_sed_lines # Line after last line for current file.
45198 ac_more_lines=:
45199 ac_sed_cmds=
45200 while $ac_more_lines; do
45201 if test $ac_beg -gt 1; then
45202 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45203 else
45204 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45205 fi
45206 if test ! -s $tmp/subs.frag; then
45207 ac_more_lines=false
45208 else
45209 # The purpose of the label and of the branching condition is to
45210 # speed up the sed processing (if there are no `@' at all, there
45211 # is no need to browse any of the substitutions).
45212 # These are the two extra sed commands mentioned above.
45213 (echo ':t
45214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45215 if test -z "$ac_sed_cmds"; then
ac1cb8d3 45216 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 45217 else
ac1cb8d3 45218 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
45219 fi
45220 ac_sed_frag=`expr $ac_sed_frag + 1`
45221 ac_beg=$ac_end
45222 ac_end=`expr $ac_end + $ac_max_sed_lines`
45223 fi
45224 done
45225 if test -z "$ac_sed_cmds"; then
45226 ac_sed_cmds=cat
45227 fi
45228fi # test -n "$CONFIG_FILES"
45229
45230_ACEOF
45231cat >>$CONFIG_STATUS <<\_ACEOF
45232for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45234 case $ac_file in
45235 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45236 cat >$tmp/stdin
45237 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45239 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45240 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45241 * ) ac_file_in=$ac_file.in ;;
45242 esac
45243
45244 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45245 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45246$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45247 X"$ac_file" : 'X\(//\)[^/]' \| \
45248 X"$ac_file" : 'X\(//\)$' \| \
45249 X"$ac_file" : 'X\(/\)' \| \
45250 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45251echo X"$ac_file" |
45252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45253 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45254 /^X\(\/\/\)$/{ s//\1/; q; }
45255 /^X\(\/\).*/{ s//\1/; q; }
45256 s/.*/./; q'`
45257 { if $as_mkdir_p; then
45258 mkdir -p "$ac_dir"
45259 else
45260 as_dir="$ac_dir"
45261 as_dirs=
45262 while test ! -d "$as_dir"; do
45263 as_dirs="$as_dir $as_dirs"
45264 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45265$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45266 X"$as_dir" : 'X\(//\)[^/]' \| \
45267 X"$as_dir" : 'X\(//\)$' \| \
45268 X"$as_dir" : 'X\(/\)' \| \
45269 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45270echo X"$as_dir" |
45271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45273 /^X\(\/\/\)$/{ s//\1/; q; }
45274 /^X\(\/\).*/{ s//\1/; q; }
45275 s/.*/./; q'`
45276 done
45277 test ! -n "$as_dirs" || mkdir $as_dirs
45278 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45279echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45280 { (exit 1); exit 1; }; }; }
45281
45282 ac_builddir=.
45283
45284if test "$ac_dir" != .; then
45285 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45286 # A "../" for each directory in $ac_dir_suffix.
45287 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45288else
45289 ac_dir_suffix= ac_top_builddir=
45290fi
45291
45292case $srcdir in
45293 .) # No --srcdir option. We are building in place.
45294 ac_srcdir=.
45295 if test -z "$ac_top_builddir"; then
45296 ac_top_srcdir=.
45297 else
45298 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45299 fi ;;
45300 [\\/]* | ?:[\\/]* ) # Absolute path.
45301 ac_srcdir=$srcdir$ac_dir_suffix;
45302 ac_top_srcdir=$srcdir ;;
45303 *) # Relative path.
45304 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45305 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45306esac
ac1cb8d3
VS
45307
45308# Do not use `cd foo && pwd` to compute absolute paths, because
45309# the directories may not exist.
45310case `pwd` in
45311.) ac_abs_builddir="$ac_dir";;
45312*)
45313 case "$ac_dir" in
45314 .) ac_abs_builddir=`pwd`;;
45315 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45316 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45317 esac;;
45318esac
45319case $ac_abs_builddir in
45320.) ac_abs_top_builddir=${ac_top_builddir}.;;
45321*)
45322 case ${ac_top_builddir}. in
45323 .) ac_abs_top_builddir=$ac_abs_builddir;;
45324 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45325 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45326 esac;;
45327esac
45328case $ac_abs_builddir in
45329.) ac_abs_srcdir=$ac_srcdir;;
45330*)
45331 case $ac_srcdir in
45332 .) ac_abs_srcdir=$ac_abs_builddir;;
45333 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45334 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45335 esac;;
45336esac
45337case $ac_abs_builddir in
45338.) ac_abs_top_srcdir=$ac_top_srcdir;;
45339*)
45340 case $ac_top_srcdir in
45341 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45342 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45343 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45344 esac;;
45345esac
a848cd7e
SC
45346
45347
45348 case $INSTALL in
45349 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45350 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45351 esac
45352
fb00f58d
JS
45353 if test x"$ac_file" != x-; then
45354 { echo "$as_me:$LINENO: creating $ac_file" >&5
45355echo "$as_me: creating $ac_file" >&6;}
45356 rm -f "$ac_file"
45357 fi
a848cd7e
SC
45358 # Let's still pretend it is `configure' which instantiates (i.e., don't
45359 # use $as_me), people would be surprised to read:
45360 # /* config.h. Generated by config.status. */
45361 if test x"$ac_file" = x-; then
45362 configure_input=
45363 else
45364 configure_input="$ac_file. "
45365 fi
45366 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 45367 sed 's,.*/,,'` by configure."
a848cd7e
SC
45368
45369 # First look for the input files in the build tree, otherwise in the
45370 # src tree.
45371 ac_file_inputs=`IFS=:
45372 for f in $ac_file_in; do
45373 case $f in
45374 -) echo $tmp/stdin ;;
45375 [\\/$]*)
ac1cb8d3
VS
45376 # Absolute (can't be DOS-style, as IFS=:)
45377 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45378echo "$as_me: error: cannot find input file: $f" >&2;}
45379 { (exit 1); exit 1; }; }
ac1cb8d3 45380 echo "$f";;
a848cd7e 45381 *) # Relative
ac1cb8d3
VS
45382 if test -f "$f"; then
45383 # Build tree
45384 echo "$f"
45385 elif test -f "$srcdir/$f"; then
45386 # Source tree
45387 echo "$srcdir/$f"
45388 else
45389 # /dev/null tree
45390 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45391echo "$as_me: error: cannot find input file: $f" >&2;}
45392 { (exit 1); exit 1; }; }
ac1cb8d3 45393 fi;;
a848cd7e
SC
45394 esac
45395 done` || { (exit 1); exit 1; }
45396_ACEOF
45397cat >>$CONFIG_STATUS <<_ACEOF
45398 sed "$ac_vpsub
45399$extrasub
45400_ACEOF
45401cat >>$CONFIG_STATUS <<\_ACEOF
45402:t
45403/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45404s,@configure_input@,$configure_input,;t t
45405s,@srcdir@,$ac_srcdir,;t t
45406s,@abs_srcdir@,$ac_abs_srcdir,;t t
45407s,@top_srcdir@,$ac_top_srcdir,;t t
45408s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45409s,@builddir@,$ac_builddir,;t t
45410s,@abs_builddir@,$ac_abs_builddir,;t t
45411s,@top_builddir@,$ac_top_builddir,;t t
45412s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45413s,@INSTALL@,$ac_INSTALL,;t t
45414" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45415 rm -f $tmp/stdin
45416 if test x"$ac_file" != x-; then
45417 mv $tmp/out $ac_file
45418 else
45419 cat $tmp/out
45420 rm -f $tmp/out
45421 fi
45422
ceec2216
RL
45423 # Run the commands associated with the file.
45424 case $ac_file in
45425 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
45426 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
45427 esac
a848cd7e
SC
45428done
45429_ACEOF
45430cat >>$CONFIG_STATUS <<\_ACEOF
45431
45432#
45433# CONFIG_HEADER section.
45434#
45435
45436# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45437# NAME is the cpp macro being defined and VALUE is the value it is being given.
45438#
45439# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
45440ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45441ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
45442ac_dC=' '
45443ac_dD=',;t'
45444# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 45445ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
45446ac_uB='$,\1#\2define\3'
45447ac_uC=' '
45448ac_uD=',;t'
45449
45450for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45451 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45452 case $ac_file in
45453 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45454 cat >$tmp/stdin
45455 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45457 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45459 * ) ac_file_in=$ac_file.in ;;
45460 esac
45461
45462 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45463echo "$as_me: creating $ac_file" >&6;}
45464
45465 # First look for the input files in the build tree, otherwise in the
45466 # src tree.
45467 ac_file_inputs=`IFS=:
45468 for f in $ac_file_in; do
45469 case $f in
45470 -) echo $tmp/stdin ;;
45471 [\\/$]*)
ac1cb8d3
VS
45472 # Absolute (can't be DOS-style, as IFS=:)
45473 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45474echo "$as_me: error: cannot find input file: $f" >&2;}
45475 { (exit 1); exit 1; }; }
ac1cb8d3
VS
45476 # Do quote $f, to prevent DOS paths from being IFS'd.
45477 echo "$f";;
a848cd7e 45478 *) # Relative
ac1cb8d3
VS
45479 if test -f "$f"; then
45480 # Build tree
45481 echo "$f"
45482 elif test -f "$srcdir/$f"; then
45483 # Source tree
45484 echo "$srcdir/$f"
45485 else
45486 # /dev/null tree
45487 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45488echo "$as_me: error: cannot find input file: $f" >&2;}
45489 { (exit 1); exit 1; }; }
ac1cb8d3 45490 fi;;
a848cd7e
SC
45491 esac
45492 done` || { (exit 1); exit 1; }
45493 # Remove the trailing spaces.
ac1cb8d3 45494 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
45495
45496_ACEOF
45497
45498# Transform confdefs.h into two sed scripts, `conftest.defines' and
45499# `conftest.undefs', that substitutes the proper values into
45500# config.h.in to produce config.h. The first handles `#define'
45501# templates, and the second `#undef' templates.
45502# And first: Protect against being on the right side of a sed subst in
45503# config.status. Protect against being in an unquoted here document
45504# in config.status.
45505rm -f conftest.defines conftest.undefs
45506# Using a here document instead of a string reduces the quoting nightmare.
45507# Putting comments in sed scripts is not portable.
45508#
45509# `end' is used to avoid that the second main sed command (meant for
45510# 0-ary CPP macros) applies to n-ary macro definitions.
45511# See the Autoconf documentation for `clear'.
45512cat >confdef2sed.sed <<\_ACEOF
45513s/[\\&,]/\\&/g
45514s,[\\$`],\\&,g
45515t clear
45516: clear
ac1cb8d3 45517s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 45518t end
ac1cb8d3 45519s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
45520: end
45521_ACEOF
45522# If some macros were called several times there might be several times
45523# the same #defines, which is useless. Nevertheless, we may not want to
45524# sort them, since we want the *last* AC-DEFINE to be honored.
45525uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45526sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45527rm -f confdef2sed.sed
45528
45529# This sed command replaces #undef with comments. This is necessary, for
45530# example, in the case of _POSIX_SOURCE, which is predefined and required
45531# on some systems where configure will not decide to define it.
45532cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 45533s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
45534_ACEOF
45535
45536# Break up conftest.defines because some shells have a limit on the size
45537# of here documents, and old seds have small limits too (100 cmds).
45538echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 45539echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
45540echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45541echo ' :' >>$CONFIG_STATUS
45542rm -f conftest.tail
45543while grep . conftest.defines >/dev/null
45544do
45545 # Write a limited-size here document to $tmp/defines.sed.
45546 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45547 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 45548 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
45549 # Work around the forget-to-reset-the-flag bug.
45550 echo 't clr' >>$CONFIG_STATUS
45551 echo ': clr' >>$CONFIG_STATUS
45552 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45553 echo 'CEOF
45554 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45555 rm -f $tmp/in
45556 mv $tmp/out $tmp/in
45557' >>$CONFIG_STATUS
45558 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45559 rm -f conftest.defines
45560 mv conftest.tail conftest.defines
45561done
45562rm -f conftest.defines
45563echo ' fi # grep' >>$CONFIG_STATUS
45564echo >>$CONFIG_STATUS
45565
45566# Break up conftest.undefs because some shells have a limit on the size
45567# of here documents, and old seds have small limits too (100 cmds).
45568echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45569rm -f conftest.tail
45570while grep . conftest.undefs >/dev/null
45571do
45572 # Write a limited-size here document to $tmp/undefs.sed.
45573 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45574 # Speed up: don't consider the non `#undef'
ac1cb8d3 45575 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
45576 # Work around the forget-to-reset-the-flag bug.
45577 echo 't clr' >>$CONFIG_STATUS
45578 echo ': clr' >>$CONFIG_STATUS
45579 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45580 echo 'CEOF
45581 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45582 rm -f $tmp/in
45583 mv $tmp/out $tmp/in
45584' >>$CONFIG_STATUS
45585 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45586 rm -f conftest.undefs
45587 mv conftest.tail conftest.undefs
45588done
45589rm -f conftest.undefs
45590
45591cat >>$CONFIG_STATUS <<\_ACEOF
45592 # Let's still pretend it is `configure' which instantiates (i.e., don't
45593 # use $as_me), people would be surprised to read:
45594 # /* config.h. Generated by config.status. */
45595 if test x"$ac_file" = x-; then
45596 echo "/* Generated by configure. */" >$tmp/config.h
45597 else
45598 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45599 fi
45600 cat $tmp/in >>$tmp/config.h
45601 rm -f $tmp/in
45602 if test x"$ac_file" != x-; then
45603 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45604 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45605echo "$as_me: $ac_file is unchanged" >&6;}
45606 else
45607 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45608$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45609 X"$ac_file" : 'X\(//\)[^/]' \| \
45610 X"$ac_file" : 'X\(//\)$' \| \
45611 X"$ac_file" : 'X\(/\)' \| \
45612 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45613echo X"$ac_file" |
45614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45616 /^X\(\/\/\)$/{ s//\1/; q; }
45617 /^X\(\/\).*/{ s//\1/; q; }
45618 s/.*/./; q'`
45619 { if $as_mkdir_p; then
45620 mkdir -p "$ac_dir"
45621 else
45622 as_dir="$ac_dir"
45623 as_dirs=
45624 while test ! -d "$as_dir"; do
45625 as_dirs="$as_dir $as_dirs"
45626 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45627$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45628 X"$as_dir" : 'X\(//\)[^/]' \| \
45629 X"$as_dir" : 'X\(//\)$' \| \
45630 X"$as_dir" : 'X\(/\)' \| \
45631 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45632echo X"$as_dir" |
45633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45635 /^X\(\/\/\)$/{ s//\1/; q; }
45636 /^X\(\/\).*/{ s//\1/; q; }
45637 s/.*/./; q'`
45638 done
45639 test ! -n "$as_dirs" || mkdir $as_dirs
45640 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45641echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45642 { (exit 1); exit 1; }; }; }
45643
45644 rm -f $ac_file
45645 mv $tmp/config.h $ac_file
45646 fi
45647 else
45648 cat $tmp/config.h
45649 rm -f $tmp/config.h
45650 fi
45651done
45652_ACEOF
45653cat >>$CONFIG_STATUS <<\_ACEOF
45654
45655#
45656# CONFIG_COMMANDS section.
45657#
45658for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45659 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45660 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45661 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45662$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45663 X"$ac_dest" : 'X\(//\)[^/]' \| \
45664 X"$ac_dest" : 'X\(//\)$' \| \
45665 X"$ac_dest" : 'X\(/\)' \| \
45666 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45667echo X"$ac_dest" |
45668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45670 /^X\(\/\/\)$/{ s//\1/; q; }
45671 /^X\(\/\).*/{ s//\1/; q; }
45672 s/.*/./; q'`
ac1cb8d3
VS
45673 { if $as_mkdir_p; then
45674 mkdir -p "$ac_dir"
45675 else
45676 as_dir="$ac_dir"
45677 as_dirs=
45678 while test ! -d "$as_dir"; do
45679 as_dirs="$as_dir $as_dirs"
45680 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45681$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45682 X"$as_dir" : 'X\(//\)[^/]' \| \
45683 X"$as_dir" : 'X\(//\)$' \| \
45684 X"$as_dir" : 'X\(/\)' \| \
45685 . : '\(.\)' 2>/dev/null ||
45686echo X"$as_dir" |
45687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45689 /^X\(\/\/\)$/{ s//\1/; q; }
45690 /^X\(\/\).*/{ s//\1/; q; }
45691 s/.*/./; q'`
45692 done
45693 test ! -n "$as_dirs" || mkdir $as_dirs
45694 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45695echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45696 { (exit 1); exit 1; }; }; }
45697
a848cd7e
SC
45698 ac_builddir=.
45699
45700if test "$ac_dir" != .; then
45701 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45702 # A "../" for each directory in $ac_dir_suffix.
45703 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45704else
45705 ac_dir_suffix= ac_top_builddir=
45706fi
45707
45708case $srcdir in
45709 .) # No --srcdir option. We are building in place.
45710 ac_srcdir=.
45711 if test -z "$ac_top_builddir"; then
45712 ac_top_srcdir=.
45713 else
45714 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45715 fi ;;
45716 [\\/]* | ?:[\\/]* ) # Absolute path.
45717 ac_srcdir=$srcdir$ac_dir_suffix;
45718 ac_top_srcdir=$srcdir ;;
45719 *) # Relative path.
45720 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45721 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45722esac
ac1cb8d3
VS
45723
45724# Do not use `cd foo && pwd` to compute absolute paths, because
45725# the directories may not exist.
45726case `pwd` in
45727.) ac_abs_builddir="$ac_dir";;
45728*)
45729 case "$ac_dir" in
45730 .) ac_abs_builddir=`pwd`;;
45731 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45732 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45733 esac;;
45734esac
45735case $ac_abs_builddir in
45736.) ac_abs_top_builddir=${ac_top_builddir}.;;
45737*)
45738 case ${ac_top_builddir}. in
45739 .) ac_abs_top_builddir=$ac_abs_builddir;;
45740 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45741 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45742 esac;;
45743esac
45744case $ac_abs_builddir in
45745.) ac_abs_srcdir=$ac_srcdir;;
45746*)
45747 case $ac_srcdir in
45748 .) ac_abs_srcdir=$ac_abs_builddir;;
45749 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45750 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45751 esac;;
45752esac
45753case $ac_abs_builddir in
45754.) ac_abs_top_srcdir=$ac_top_srcdir;;
45755*)
45756 case $ac_top_srcdir in
45757 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45758 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45759 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45760 esac;;
45761esac
a848cd7e
SC
45762
45763
45764 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45765echo "$as_me: executing $ac_dest commands" >&6;}
45766 case $ac_dest in
ceec2216
RL
45767 wx-config ) rm -f wx-config
45768 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45769 ;;
a848cd7e
SC
45770 esac
45771done
45772_ACEOF
45773
45774cat >>$CONFIG_STATUS <<\_ACEOF
45775
45776{ (exit 0); exit 0; }
45777_ACEOF
45778chmod +x $CONFIG_STATUS
45779ac_clean_files=$ac_clean_files_save
45780
45781
45782# configure is writing to config.log, and then calls config.status.
45783# config.status does its own redirection, appending to config.log.
45784# Unfortunately, on DOS this fails, as config.log is still kept open
45785# by configure, so config.status won't be able to write to it; its
45786# output is simply discarded. So we exec the FD to /dev/null,
45787# effectively closing config.log, so it can be properly (re)opened and
45788# appended to by config.status. When coming back to configure, we
45789# need to make the FD available again.
45790if test "$no_create" != yes; then
45791 ac_cs_success=:
45792 ac_config_status_args=
45793 test "$silent" = yes &&
45794 ac_config_status_args="$ac_config_status_args --quiet"
45795 exec 5>/dev/null
45796 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45797 exec 5>>config.log
45798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45799 # would make configure fail if this is the last instruction.
45800 $ac_cs_success || { (exit 1); exit 1; }
45801fi
45802
45803#
45804# CONFIG_SUBDIRS section.
45805#
45806if test "$no_recursion" != yes; then
45807
45808 # Remove --cache-file and --srcdir arguments so they do not pile up.
45809 ac_sub_configure_args=
45810 ac_prev=
45811 for ac_arg in $ac_configure_args; do
45812 if test -n "$ac_prev"; then
45813 ac_prev=
45814 continue
45815 fi
45816 case $ac_arg in
45817 -cache-file | --cache-file | --cache-fil | --cache-fi \
45818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45819 ac_prev=cache_file ;;
45820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45822 | --c=*)
45823 ;;
45824 --config-cache | -C)
45825 ;;
45826 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45827 ac_prev=srcdir ;;
45828 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45829 ;;
45830 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45831 ac_prev=prefix ;;
45832 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45833 ;;
45834 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45835 esac
45836 done
45837
45838 # Always prepend --prefix to ensure using the same prefix
45839 # in subdir configurations.
45840 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45841
45842 ac_popdir=`pwd`
45843 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45844
45845 # Do not complain, so a configure script can configure whichever
45846 # parts of a large source tree are present.
45847 test -d $srcdir/$ac_dir || continue
45848
45849 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45850echo "$as_me: configuring in $ac_dir" >&6;}
45851 { if $as_mkdir_p; then
45852 mkdir -p "$ac_dir"
45853 else
45854 as_dir="$ac_dir"
45855 as_dirs=
45856 while test ! -d "$as_dir"; do
45857 as_dirs="$as_dir $as_dirs"
45858 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45859$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45860 X"$as_dir" : 'X\(//\)[^/]' \| \
45861 X"$as_dir" : 'X\(//\)$' \| \
45862 X"$as_dir" : 'X\(/\)' \| \
45863 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45864echo X"$as_dir" |
45865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45867 /^X\(\/\/\)$/{ s//\1/; q; }
45868 /^X\(\/\).*/{ s//\1/; q; }
45869 s/.*/./; q'`
45870 done
45871 test ! -n "$as_dirs" || mkdir $as_dirs
45872 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45873echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45874 { (exit 1); exit 1; }; }; }
45875
45876 ac_builddir=.
45877
45878if test "$ac_dir" != .; then
45879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45880 # A "../" for each directory in $ac_dir_suffix.
45881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45882else
45883 ac_dir_suffix= ac_top_builddir=
45884fi
45885
45886case $srcdir in
45887 .) # No --srcdir option. We are building in place.
45888 ac_srcdir=.
45889 if test -z "$ac_top_builddir"; then
45890 ac_top_srcdir=.
45891 else
45892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45893 fi ;;
45894 [\\/]* | ?:[\\/]* ) # Absolute path.
45895 ac_srcdir=$srcdir$ac_dir_suffix;
45896 ac_top_srcdir=$srcdir ;;
45897 *) # Relative path.
45898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45900esac
ac1cb8d3
VS
45901
45902# Do not use `cd foo && pwd` to compute absolute paths, because
45903# the directories may not exist.
45904case `pwd` in
45905.) ac_abs_builddir="$ac_dir";;
45906*)
45907 case "$ac_dir" in
45908 .) ac_abs_builddir=`pwd`;;
45909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45910 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45911 esac;;
45912esac
45913case $ac_abs_builddir in
45914.) ac_abs_top_builddir=${ac_top_builddir}.;;
45915*)
45916 case ${ac_top_builddir}. in
45917 .) ac_abs_top_builddir=$ac_abs_builddir;;
45918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45920 esac;;
45921esac
45922case $ac_abs_builddir in
45923.) ac_abs_srcdir=$ac_srcdir;;
45924*)
45925 case $ac_srcdir in
45926 .) ac_abs_srcdir=$ac_abs_builddir;;
45927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45929 esac;;
45930esac
45931case $ac_abs_builddir in
45932.) ac_abs_top_srcdir=$ac_top_srcdir;;
45933*)
45934 case $ac_top_srcdir in
45935 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45938 esac;;
45939esac
a848cd7e
SC
45940
45941
45942 cd $ac_dir
45943
45944 # Check for guested configure; otherwise get Cygnus style configure.
45945 if test -f $ac_srcdir/configure.gnu; then
45946 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45947 elif test -f $ac_srcdir/configure; then
45948 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45949 elif test -f $ac_srcdir/configure.in; then
45950 ac_sub_configure=$ac_configure
45951 else
45952 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45953echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45954 ac_sub_configure=
45955 fi
45956
45957 # The recursion is here.
45958 if test -n "$ac_sub_configure"; then
45959 # Make the cache file name correct relative to the subdirectory.
45960 case $cache_file in
45961 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45962 *) # Relative path.
ac1cb8d3 45963 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45964 esac
45965
45966 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45967echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45968 # The eval makes quoting arguments work.
45969 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45970 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45971 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45972echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45973 { (exit 1); exit 1; }; }
45974 fi
45975
fb00f58d 45976 cd $ac_popdir
a848cd7e
SC
45977 done
45978fi
45979
45980
45981echo
77ffb593 45982echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45983echo ""
4d4ff94c 45984echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45985echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45986
77ffb593
JS
45987echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45988echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45989echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45990
77ffb593
JS
45991echo " What level of wxWidgets compatibility should be enabled?"
45992echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45993echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45994
77ffb593 45995echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45996echo " jpeg ${wxUSE_LIBJPEG-none}"
45997echo " png ${wxUSE_LIBPNG-none}"
45998echo " regex ${wxUSE_REGEX}"
45999echo " tiff ${wxUSE_LIBTIFF-none}"
46000if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
46001echo " xpm ${wxUSE_LIBXPM-none}"
46002fi
46003echo " zlib ${wxUSE_ZLIB}"
46004echo " odbc ${wxUSE_ODBC}"
46005echo " expat ${wxUSE_EXPAT}"
46006echo " libmspack ${wxUSE_LIBMSPACK}"
46007echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46008echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46009
46010echo ""
46011