]> git.saurik.com Git - wxWidgets.git/blame - configure
at least not crash in case of TIFF warnings/errors in Unicode build (but we still...
[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.
d230c01b 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.1.
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'
d230c01b
JS
273PACKAGE_VERSION='2.6.1'
274PACKAGE_STRING='wxWidgets 2.6.1'
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"
8c539582 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 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
d230c01b 797\`configure' configures wxWidgets 2.6.1 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
d230c01b 863 short | recursive ) echo "Configuration of wxWidgets 2.6.1:";;
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
8c539582 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
d230c01b 1200wxWidgets configure 2.6.1
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
d230c01b 1214It was created by wxWidgets $as_me 2.6.1, 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 1665wx_release_number=1
063c96c1 1666wx_subrelease_number=1
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
31b34ada
RL
1674WX_CURRENT=1
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
7275146d 10565 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10566 else
10567 doesnt_want_win32=1
10568 fi
10569 ;;
10570 *-*-mingw*)
10571 wants_win32=1
10572 ;;
10573esac
10574
10575if test "$wxUSE_WINE" = "yes"; then
10576 wants_win32=1
10577 CC=winegcc
10578 CXX=wineg++
10579 RESCOMP=wrc
10580 LDFLAGS_GUI="-mwindows"
10581fi
10582
10583if test "$wants_win32" = 1 ; then
10584 USE_UNIX=0
10585 USE_WIN32=1
10586 cat >>confdefs.h <<\_ACEOF
10587#define __WIN32__ 1
10588_ACEOF
10589
10590 cat >>confdefs.h <<\_ACEOF
10591#define __WIN95__ 1
10592_ACEOF
10593
10594 cat >>confdefs.h <<\_ACEOF
10595#define __WINDOWS__ 1
10596_ACEOF
10597
10598 cat >>confdefs.h <<\_ACEOF
10599#define __GNUWIN32__ 1
10600_ACEOF
10601
10602 cat >>confdefs.h <<\_ACEOF
10603#define STRICT 1
10604_ACEOF
10605
10606 cat >>confdefs.h <<\_ACEOF
10607#define WINVER 0x0400
10608_ACEOF
10609
10610fi
10611if test "$doesnt_want_win32" = 1 ; then
10612 USE_UNIX=1
10613 USE_WIN32=0
10614fi
10615
10616if test "$USE_UNIX" = 1 ; then
10617 wxUSE_UNIX=yes
10618 cat >>confdefs.h <<\_ACEOF
10619#define __UNIX__ 1
10620_ACEOF
10621
10622fi
10623
10624
10625cat >confcache <<\_ACEOF
10626# This file is a shell script that caches the results of configure
10627# tests run on this system so they can be shared between configure
10628# scripts and configure runs, see configure's option --config-cache.
10629# It is not useful on other systems. If it contains results you don't
10630# want to keep, you may remove or edit it.
10631#
10632# config.status only pays attention to the cache file if you give it
10633# the --recheck option to rerun configure.
10634#
10635# `ac_cv_env_foo' variables (set or unset) will be overridden when
10636# loading this file, other *unset* `ac_cv_foo' will be assigned the
10637# following values.
10638
10639_ACEOF
10640
10641# The following way of writing the cache mishandles newlines in values,
10642# but we know of no workaround that is simple, portable, and efficient.
10643# So, don't put newlines in cache variables' values.
10644# Ultrix sh set writes to stderr and can't be redirected directly,
10645# and sets the high bit in the cache file unless we assign to the vars.
10646{
10647 (set) 2>&1 |
10648 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10649 *ac_space=\ *)
10650 # `set' does not quote correctly, so add quotes (double-quote
10651 # substitution turns \\\\ into \\, and sed turns \\ into \).
10652 sed -n \
ac1cb8d3
VS
10653 "s/'/'\\\\''/g;
10654 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10655 ;;
10656 *)
10657 # `set' quotes correctly as required by POSIX, so do not add quotes.
10658 sed -n \
ac1cb8d3 10659 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10660 ;;
10661 esac;
10662} |
10663 sed '
10664 t clear
10665 : clear
10666 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10667 t end
10668 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10669 : end' >>confcache
10670if diff $cache_file confcache >/dev/null 2>&1; then :; else
10671 if test -w $cache_file; then
10672 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10673 cat confcache >$cache_file
10674 else
10675 echo "not updating unwritable cache $cache_file"
10676 fi
10677fi
10678rm -f confcache
10679
10680if test "$build" != "$host" ; then
1e9e8aba 10681 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10682 CC=$host_alias-gcc
10683 CXX=$host_alias-c++
10684 AR=$host_alias-ar
10685 RANLIB=$host_alias-ranlib
10686 DLLTOOL=$host_alias-dlltool
10687 RESCOMP=$host_alias-windres
a848cd7e 10688 STRIP=$host_alias-strip
1e9e8aba
DE
10689 elif test "x$CC" '!=' "x"; then
10690 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10691 else
10692 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10693echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10694 { (exit 1); exit 1; }; }
10695 fi
10696fi
10697
10698CFLAGS=${CFLAGS:=}
6dcfc289
DE
10699
10700
10701 ac_ext=c
a848cd7e
SC
10702ac_cpp='$CPP $CPPFLAGS'
10703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10705ac_compiler_gnu=$ac_cv_c_compiler_gnu
10706if test -n "$ac_tool_prefix"; then
10707 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10708set dummy ${ac_tool_prefix}gcc; ac_word=$2
10709echo "$as_me:$LINENO: checking for $ac_word" >&5
10710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10711if test "${ac_cv_prog_CC+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713else
10714 if test -n "$CC"; then
10715 ac_cv_prog_CC="$CC" # Let the user override the test.
10716else
10717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $PATH
10719do
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10727 fi
10728done
10729done
10730
10731fi
10732fi
10733CC=$ac_cv_prog_CC
10734if test -n "$CC"; then
10735 echo "$as_me:$LINENO: result: $CC" >&5
10736echo "${ECHO_T}$CC" >&6
10737else
10738 echo "$as_me:$LINENO: result: no" >&5
10739echo "${ECHO_T}no" >&6
10740fi
10741
10742fi
10743if test -z "$ac_cv_prog_CC"; then
10744 ac_ct_CC=$CC
10745 # Extract the first word of "gcc", so it can be a program name with args.
10746set dummy gcc; ac_word=$2
10747echo "$as_me:$LINENO: checking for $ac_word" >&5
10748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10749if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751else
10752 if test -n "$ac_ct_CC"; then
10753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10754else
10755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756for as_dir in $PATH
10757do
10758 IFS=$as_save_IFS
10759 test -z "$as_dir" && as_dir=.
10760 for ac_exec_ext in '' $ac_executable_extensions; do
10761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10762 ac_cv_prog_ac_ct_CC="gcc"
10763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10764 break 2
10765 fi
10766done
10767done
10768
10769fi
10770fi
10771ac_ct_CC=$ac_cv_prog_ac_ct_CC
10772if test -n "$ac_ct_CC"; then
10773 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10774echo "${ECHO_T}$ac_ct_CC" >&6
10775else
10776 echo "$as_me:$LINENO: result: no" >&5
10777echo "${ECHO_T}no" >&6
10778fi
10779
10780 CC=$ac_ct_CC
10781else
10782 CC="$ac_cv_prog_CC"
10783fi
10784
10785if test -z "$CC"; then
10786 if test -n "$ac_tool_prefix"; then
10787 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10788set dummy ${ac_tool_prefix}cc; ac_word=$2
10789echo "$as_me:$LINENO: checking for $ac_word" >&5
10790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10791if test "${ac_cv_prog_CC+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793else
10794 if test -n "$CC"; then
10795 ac_cv_prog_CC="$CC" # Let the user override the test.
10796else
10797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798for as_dir in $PATH
10799do
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804 ac_cv_prog_CC="${ac_tool_prefix}cc"
10805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10806 break 2
10807 fi
10808done
10809done
10810
10811fi
10812fi
10813CC=$ac_cv_prog_CC
10814if test -n "$CC"; then
10815 echo "$as_me:$LINENO: result: $CC" >&5
10816echo "${ECHO_T}$CC" >&6
10817else
10818 echo "$as_me:$LINENO: result: no" >&5
10819echo "${ECHO_T}no" >&6
10820fi
10821
10822fi
10823if test -z "$ac_cv_prog_CC"; then
10824 ac_ct_CC=$CC
10825 # Extract the first word of "cc", so it can be a program name with args.
10826set dummy cc; ac_word=$2
10827echo "$as_me:$LINENO: checking for $ac_word" >&5
10828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10829if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831else
10832 if test -n "$ac_ct_CC"; then
10833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10834else
10835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836for as_dir in $PATH
10837do
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842 ac_cv_prog_ac_ct_CC="cc"
10843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10844 break 2
10845 fi
10846done
10847done
10848
10849fi
10850fi
10851ac_ct_CC=$ac_cv_prog_ac_ct_CC
10852if test -n "$ac_ct_CC"; then
10853 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10854echo "${ECHO_T}$ac_ct_CC" >&6
10855else
10856 echo "$as_me:$LINENO: result: no" >&5
10857echo "${ECHO_T}no" >&6
10858fi
10859
10860 CC=$ac_ct_CC
10861else
10862 CC="$ac_cv_prog_CC"
10863fi
10864
10865fi
10866if test -z "$CC"; then
10867 # Extract the first word of "cc", so it can be a program name with args.
10868set dummy cc; ac_word=$2
10869echo "$as_me:$LINENO: checking for $ac_word" >&5
10870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10871if test "${ac_cv_prog_CC+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874 if test -n "$CC"; then
10875 ac_cv_prog_CC="$CC" # Let the user override the test.
10876else
10877 ac_prog_rejected=no
10878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879for as_dir in $PATH
10880do
10881 IFS=$as_save_IFS
10882 test -z "$as_dir" && as_dir=.
10883 for ac_exec_ext in '' $ac_executable_extensions; do
10884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10886 ac_prog_rejected=yes
10887 continue
10888 fi
10889 ac_cv_prog_CC="cc"
10890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10891 break 2
10892 fi
10893done
10894done
10895
10896if test $ac_prog_rejected = yes; then
10897 # We found a bogon in the path, so make sure we never use it.
10898 set dummy $ac_cv_prog_CC
10899 shift
10900 if test $# != 0; then
10901 # We chose a different compiler from the bogus one.
10902 # However, it has the same basename, so the bogon will be chosen
10903 # first if we set CC to just the basename; use the full file name.
10904 shift
10905 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10906 fi
10907fi
10908fi
10909fi
10910CC=$ac_cv_prog_CC
10911if test -n "$CC"; then
10912 echo "$as_me:$LINENO: result: $CC" >&5
10913echo "${ECHO_T}$CC" >&6
10914else
10915 echo "$as_me:$LINENO: result: no" >&5
10916echo "${ECHO_T}no" >&6
10917fi
10918
10919fi
10920if test -z "$CC"; then
10921 if test -n "$ac_tool_prefix"; then
10922 for ac_prog in cl
10923 do
10924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10925set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10926echo "$as_me:$LINENO: checking for $ac_word" >&5
10927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10928if test "${ac_cv_prog_CC+set}" = set; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6
10930else
10931 if test -n "$CC"; then
10932 ac_cv_prog_CC="$CC" # Let the user override the test.
10933else
10934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935for as_dir in $PATH
10936do
10937 IFS=$as_save_IFS
10938 test -z "$as_dir" && as_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10941 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 break 2
10944 fi
10945done
10946done
10947
10948fi
10949fi
10950CC=$ac_cv_prog_CC
10951if test -n "$CC"; then
10952 echo "$as_me:$LINENO: result: $CC" >&5
10953echo "${ECHO_T}$CC" >&6
10954else
10955 echo "$as_me:$LINENO: result: no" >&5
10956echo "${ECHO_T}no" >&6
10957fi
10958
10959 test -n "$CC" && break
10960 done
10961fi
10962if test -z "$CC"; then
10963 ac_ct_CC=$CC
10964 for ac_prog in cl
10965do
10966 # Extract the first word of "$ac_prog", so it can be a program name with args.
10967set dummy $ac_prog; ac_word=$2
10968echo "$as_me:$LINENO: checking for $ac_word" >&5
10969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10970if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972else
10973 if test -n "$ac_ct_CC"; then
10974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10975else
10976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $PATH
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10983 ac_cv_prog_ac_ct_CC="$ac_prog"
10984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10986 fi
10987done
10988done
10989
10990fi
10991fi
10992ac_ct_CC=$ac_cv_prog_ac_ct_CC
10993if test -n "$ac_ct_CC"; then
10994 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10995echo "${ECHO_T}$ac_ct_CC" >&6
10996else
10997 echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6
10999fi
11000
11001 test -n "$ac_ct_CC" && break
11002done
11003
11004 CC=$ac_ct_CC
11005fi
11006
11007fi
11008
11009
11010test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11011See \`config.log' for more details." >&5
11012echo "$as_me: error: no acceptable C compiler found in \$PATH
11013See \`config.log' for more details." >&2;}
11014 { (exit 1); exit 1; }; }
11015
11016# Provide some information about the compiler.
11017echo "$as_me:$LINENO:" \
11018 "checking for C compiler version" >&5
11019ac_compiler=`set X $ac_compile; echo $2`
11020{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11021 (eval $ac_compiler --version </dev/null >&5) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }
11025{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11026 (eval $ac_compiler -v </dev/null >&5) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }
11030{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11031 (eval $ac_compiler -V </dev/null >&5) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }
11035
11036cat >conftest.$ac_ext <<_ACEOF
11037/* confdefs.h. */
11038_ACEOF
11039cat confdefs.h >>conftest.$ac_ext
11040cat >>conftest.$ac_ext <<_ACEOF
11041/* end confdefs.h. */
11042
11043int
11044main ()
11045{
11046
11047 ;
11048 return 0;
11049}
11050_ACEOF
11051ac_clean_files_save=$ac_clean_files
11052ac_clean_files="$ac_clean_files a.out a.exe b.out"
11053# Try to create an executable without -o first, disregard a.out.
11054# It will help us diagnose broken compilers, and finding out an intuition
11055# of exeext.
ac1cb8d3
VS
11056echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11057echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11058ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11059if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11060 (eval $ac_link_default) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; then
11064 # Find the output, starting from the most likely. This scheme is
11065# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11066# resort.
11067
11068# Be careful to initialize this variable, since it used to be cached.
11069# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11070ac_cv_exeext=
11071# b.out is created by i960 compilers.
11072for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11073do
11074 test -f "$ac_file" || continue
11075 case $ac_file in
11076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11077 ;;
a848cd7e 11078 conftest.$ac_ext )
ac1cb8d3
VS
11079 # This is the source file.
11080 ;;
a848cd7e 11081 [ab].out )
ac1cb8d3
VS
11082 # We found the default executable, but exeext='' is most
11083 # certainly right.
11084 break;;
a848cd7e 11085 *.* )
ac1cb8d3
VS
11086 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11087 # FIXME: I believe we export ac_cv_exeext for Libtool,
11088 # but it would be cool to find out if it's true. Does anybody
11089 # maintain Libtool? --akim.
11090 export ac_cv_exeext
11091 break;;
a848cd7e 11092 * )
ac1cb8d3 11093 break;;
a848cd7e
SC
11094 esac
11095done
11096else
11097 echo "$as_me: failed program was:" >&5
11098sed 's/^/| /' conftest.$ac_ext >&5
11099
11100{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11101See \`config.log' for more details." >&5
11102echo "$as_me: error: C compiler cannot create executables
11103See \`config.log' for more details." >&2;}
11104 { (exit 77); exit 77; }; }
11105fi
11106
11107ac_exeext=$ac_cv_exeext
11108echo "$as_me:$LINENO: result: $ac_file" >&5
11109echo "${ECHO_T}$ac_file" >&6
11110
11111# Check the compiler produces executables we can run. If not, either
11112# the compiler is broken, or we cross compile.
11113echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11114echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11115# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11116# If not cross compiling, check that we can run a simple program.
11117if test "$cross_compiling" != yes; then
11118 if { ac_try='./$ac_file'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 cross_compiling=no
11125 else
11126 if test "$cross_compiling" = maybe; then
11127 cross_compiling=yes
11128 else
11129 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11130If you meant to cross compile, use \`--host'.
11131See \`config.log' for more details." >&5
11132echo "$as_me: error: cannot run C compiled programs.
11133If you meant to cross compile, use \`--host'.
11134See \`config.log' for more details." >&2;}
11135 { (exit 1); exit 1; }; }
11136 fi
11137 fi
11138fi
11139echo "$as_me:$LINENO: result: yes" >&5
11140echo "${ECHO_T}yes" >&6
11141
11142rm -f a.out a.exe conftest$ac_cv_exeext b.out
11143ac_clean_files=$ac_clean_files_save
11144# Check the compiler produces executables we can run. If not, either
11145# the compiler is broken, or we cross compile.
11146echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11147echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11148echo "$as_me:$LINENO: result: $cross_compiling" >&5
11149echo "${ECHO_T}$cross_compiling" >&6
11150
11151echo "$as_me:$LINENO: checking for suffix of executables" >&5
11152echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11154 (eval $ac_link) 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; then
11158 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11159# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11160# work properly (i.e., refer to `conftest.exe'), while it won't with
11161# `rm'.
11162for ac_file in conftest.exe conftest conftest.*; do
11163 test -f "$ac_file" || continue
11164 case $ac_file in
11165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11166 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11167 export ac_cv_exeext
11168 break;;
a848cd7e
SC
11169 * ) break;;
11170 esac
11171done
11172else
11173 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11174See \`config.log' for more details." >&5
11175echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11176See \`config.log' for more details." >&2;}
11177 { (exit 1); exit 1; }; }
11178fi
11179
11180rm -f conftest$ac_cv_exeext
11181echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11182echo "${ECHO_T}$ac_cv_exeext" >&6
11183
11184rm -f conftest.$ac_ext
11185EXEEXT=$ac_cv_exeext
11186ac_exeext=$EXEEXT
11187echo "$as_me:$LINENO: checking for suffix of object files" >&5
11188echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11189if test "${ac_cv_objext+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11191else
11192 cat >conftest.$ac_ext <<_ACEOF
11193/* confdefs.h. */
11194_ACEOF
11195cat confdefs.h >>conftest.$ac_ext
11196cat >>conftest.$ac_ext <<_ACEOF
11197/* end confdefs.h. */
11198
11199int
11200main ()
11201{
11202
11203 ;
11204 return 0;
11205}
11206_ACEOF
11207rm -f conftest.o conftest.obj
11208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11209 (eval $ac_compile) 2>&5
11210 ac_status=$?
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; then
11213 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11214 case $ac_file in
11215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11216 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11217 break;;
11218 esac
11219done
11220else
11221 echo "$as_me: failed program was:" >&5
11222sed 's/^/| /' conftest.$ac_ext >&5
11223
11224{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11225See \`config.log' for more details." >&5
11226echo "$as_me: error: cannot compute suffix of object files: cannot compile
11227See \`config.log' for more details." >&2;}
11228 { (exit 1); exit 1; }; }
11229fi
11230
11231rm -f conftest.$ac_cv_objext conftest.$ac_ext
11232fi
11233echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11234echo "${ECHO_T}$ac_cv_objext" >&6
11235OBJEXT=$ac_cv_objext
11236ac_objext=$OBJEXT
11237echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11238echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11239if test "${ac_cv_c_compiler_gnu+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11241else
11242 cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248
11249int
11250main ()
11251{
11252#ifndef __GNUC__
11253 choke me
11254#endif
11255
11256 ;
11257 return 0;
11258}
11259_ACEOF
11260rm -f conftest.$ac_objext
11261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11262 (eval $ac_compile) 2>conftest.er1
a848cd7e 11263 ac_status=$?
ac1cb8d3
VS
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
a848cd7e
SC
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
8c539582 11269 { ac_try='test -z "$ac_c_werror_flag" || 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); } &&
8c539582 11327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_cv_prog_cc_g=yes
11340else
11341 echo "$as_me: failed program was:" >&5
11342sed 's/^/| /' conftest.$ac_ext >&5
11343
11344ac_cv_prog_cc_g=no
11345fi
ac1cb8d3 11346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11347fi
11348echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11349echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11350if test "$ac_test_CFLAGS" = set; then
11351 CFLAGS=$ac_save_CFLAGS
11352elif test $ac_cv_prog_cc_g = yes; then
11353 if test "$GCC" = yes; then
11354 CFLAGS="-g -O2"
11355 else
11356 CFLAGS="-g"
11357 fi
11358else
11359 if test "$GCC" = yes; then
11360 CFLAGS="-O2"
11361 else
11362 CFLAGS=
11363 fi
11364fi
11365echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11366echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11367if test "${ac_cv_prog_cc_stdc+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369else
11370 ac_cv_prog_cc_stdc=no
11371ac_save_CC=$CC
11372cat >conftest.$ac_ext <<_ACEOF
11373/* confdefs.h. */
11374_ACEOF
11375cat confdefs.h >>conftest.$ac_ext
11376cat >>conftest.$ac_ext <<_ACEOF
11377/* end confdefs.h. */
11378#include <stdarg.h>
11379#include <stdio.h>
11380#include <sys/types.h>
11381#include <sys/stat.h>
11382/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11383struct buf { int x; };
11384FILE * (*rcsopen) (struct buf *, struct stat *, int);
11385static char *e (p, i)
11386 char **p;
11387 int i;
11388{
11389 return p[i];
11390}
11391static char *f (char * (*g) (char **, int), char **p, ...)
11392{
11393 char *s;
11394 va_list v;
11395 va_start (v,p);
11396 s = g (p, va_arg (v,int));
11397 va_end (v);
11398 return s;
11399}
ac1cb8d3
VS
11400
11401/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11402 function prototypes and stuff, but not '\xHH' hex character constants.
11403 These don't provoke an error unfortunately, instead are silently treated
11404 as 'x'. The following induces an error, until -std1 is added to get
11405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11406 array size at least. It's necessary to write '\x00'==0 to get something
11407 that's true only with -std1. */
11408int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11409
a848cd7e
SC
11410int test (int i, double x);
11411struct s1 {int (*f) (int a);};
11412struct s2 {int (*f) (double a);};
11413int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11414int argc;
11415char **argv;
11416int
11417main ()
11418{
11419return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11420 ;
11421 return 0;
11422}
11423_ACEOF
11424# Don't try gcc -ansi; that turns off useful extensions and
11425# breaks some systems' header files.
11426# AIX -qlanglvl=ansi
11427# Ultrix and OSF/1 -std1
11428# HP-UX 10.20 and later -Ae
11429# HP-UX older versions -Aa -D_HPUX_SOURCE
11430# SVR4 -Xc -D__EXTENSIONS__
11431for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11432do
11433 CC="$ac_save_CC $ac_arg"
11434 rm -f conftest.$ac_objext
11435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11436 (eval $ac_compile) 2>conftest.er1
a848cd7e 11437 ac_status=$?
ac1cb8d3
VS
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
a848cd7e
SC
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
8c539582 11443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 ac_cv_prog_cc_stdc=$ac_arg
11456break
11457else
11458 echo "$as_me: failed program was:" >&5
11459sed 's/^/| /' conftest.$ac_ext >&5
11460
11461fi
ac1cb8d3 11462rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11463done
11464rm -f conftest.$ac_ext conftest.$ac_objext
11465CC=$ac_save_CC
11466
11467fi
11468
11469case "x$ac_cv_prog_cc_stdc" in
11470 x|xno)
11471 echo "$as_me:$LINENO: result: none needed" >&5
11472echo "${ECHO_T}none needed" >&6 ;;
11473 *)
11474 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11475echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11476 CC="$CC $ac_cv_prog_cc_stdc" ;;
11477esac
11478
11479# Some people use a C++ compiler to compile C. Since we use `exit',
11480# in C++ we need to declare it. In case someone uses the same compiler
11481# for both compiling C and C++ we need to have the C++ compiler decide
11482# the declaration of exit, since it's the most demanding environment.
11483cat >conftest.$ac_ext <<_ACEOF
11484#ifndef __cplusplus
11485 choke me
11486#endif
11487_ACEOF
11488rm -f conftest.$ac_objext
11489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11490 (eval $ac_compile) 2>conftest.er1
a848cd7e 11491 ac_status=$?
ac1cb8d3
VS
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
a848cd7e
SC
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
8c539582 11497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 for ac_declaration in \
ac1cb8d3 11510 '' \
a848cd7e
SC
11511 'extern "C" void std::exit (int) throw (); using std::exit;' \
11512 'extern "C" void std::exit (int); using std::exit;' \
11513 'extern "C" void exit (int) throw ();' \
11514 'extern "C" void exit (int);' \
11515 'void exit (int);'
11516do
11517 cat >conftest.$ac_ext <<_ACEOF
11518/* confdefs.h. */
11519_ACEOF
11520cat confdefs.h >>conftest.$ac_ext
11521cat >>conftest.$ac_ext <<_ACEOF
11522/* end confdefs.h. */
de59c161 11523$ac_declaration
ac1cb8d3 11524#include <stdlib.h>
a848cd7e
SC
11525int
11526main ()
11527{
11528exit (42);
11529 ;
11530 return 0;
11531}
11532_ACEOF
11533rm -f conftest.$ac_objext
11534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11535 (eval $ac_compile) 2>conftest.er1
a848cd7e 11536 ac_status=$?
ac1cb8d3
VS
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
a848cd7e
SC
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } &&
8c539582 11542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11545 ac_status=$?
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; } &&
11548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
11554 :
11555else
11556 echo "$as_me: failed program was:" >&5
11557sed 's/^/| /' conftest.$ac_ext >&5
11558
11559continue
11560fi
ac1cb8d3 11561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11562 cat >conftest.$ac_ext <<_ACEOF
11563/* confdefs.h. */
11564_ACEOF
11565cat confdefs.h >>conftest.$ac_ext
11566cat >>conftest.$ac_ext <<_ACEOF
11567/* end confdefs.h. */
11568$ac_declaration
11569int
11570main ()
11571{
11572exit (42);
11573 ;
11574 return 0;
11575}
11576_ACEOF
11577rm -f conftest.$ac_objext
11578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11579 (eval $ac_compile) 2>conftest.er1
a848cd7e 11580 ac_status=$?
ac1cb8d3
VS
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
a848cd7e
SC
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
8c539582 11586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 break
11599else
11600 echo "$as_me: failed program was:" >&5
11601sed 's/^/| /' conftest.$ac_ext >&5
11602
11603fi
ac1cb8d3 11604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11605done
11606rm -f conftest*
11607if test -n "$ac_declaration"; then
11608 echo '#ifdef __cplusplus' >>confdefs.h
11609 echo $ac_declaration >>confdefs.h
11610 echo '#endif' >>confdefs.h
11611fi
11612
11613else
11614 echo "$as_me: failed program was:" >&5
11615sed 's/^/| /' conftest.$ac_ext >&5
11616
11617fi
ac1cb8d3 11618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11619ac_ext=c
11620ac_cpp='$CPP $CPPFLAGS'
11621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11623ac_compiler_gnu=$ac_cv_c_compiler_gnu
11624
6dcfc289 11625 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11626echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11627if test "${wx_cv_c_exto+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629else
11630 cat >conftest.$ac_ext <<_ACEOF
11631/* confdefs.h. */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h. */
11636
11637int
11638main ()
11639{
11640
11641 ;
11642 return 0;
11643}
11644_ACEOF
11645rm -f conftest.$ac_objext conftest.$ac_ext.o
11646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11647 (eval $ac_compile) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; then
11651 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11652 case $ac_file in
11653 conftest.$ac_ext.o)
11654 wx_cv_c_exto="-ext o"
11655 ;;
11656 *)
11657 ;;
11658 esac
11659done
11660else
11661 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11662See \`config.log' for more details." >&5
11663echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11664See \`config.log' for more details." >&2;}
11665 { (exit 1); exit 1; }; }
11666
11667fi
11668
11669rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11670
11671fi
11672echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11673echo "${ECHO_T}$wx_cv_c_exto" >&6
11674if test "x$wx_cv_c_exto" '!=' "x"; then
11675 if test "c" = "c"; then
11676 CFLAGS="$wx_cv_c_exto $CFLAGS"
11677 fi
11678 if test "c" = "cxx"; then
11679 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11680 fi
11681fi
11682
6dcfc289
DE
11683 if test "x$wx_cv_c_exto" '!=' "x"; then
11684 unset ac_cv_prog_cc_g
11685 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11686ac_save_CFLAGS=$CFLAGS
52ada004 11687CFLAGS="-g"
480ccd21
DE
11688echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11689echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11690if test "${ac_cv_prog_cc_g+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692else
11693 cat >conftest.$ac_ext <<_ACEOF
11694/* confdefs.h. */
11695_ACEOF
11696cat confdefs.h >>conftest.$ac_ext
11697cat >>conftest.$ac_ext <<_ACEOF
11698/* end confdefs.h. */
11699
11700int
11701main ()
11702{
11703
11704 ;
11705 return 0;
11706}
11707_ACEOF
11708rm -f conftest.$ac_objext
11709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11710 (eval $ac_compile) 2>conftest.er1
11711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
8c539582 11717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11729 ac_cv_prog_cc_g=yes
11730else
11731 echo "$as_me: failed program was:" >&5
11732sed 's/^/| /' conftest.$ac_ext >&5
11733
11734ac_cv_prog_cc_g=no
11735fi
11736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11737fi
11738echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11739echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11740if test "$ac_test_CFLAGS" = set; then
11741 CFLAGS=$ac_save_CFLAGS
11742elif test $ac_cv_prog_cc_g = yes; then
11743 if test "$GCC" = yes; then
11744 CFLAGS="-g -O2"
11745 else
11746 CFLAGS="-g"
11747 fi
11748else
11749 if test "$GCC" = yes; then
11750 CFLAGS="-O2"
11751 else
11752 CFLAGS=
11753 fi
11754fi
6dcfc289
DE
11755 fi
11756 ac_ext=c
95986553
DE
11757ac_cpp='$CPP $CPPFLAGS'
11758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760ac_compiler_gnu=$ac_cv_c_compiler_gnu
11761
11762echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11763echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11764if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11766else
11767 cat >conftest.$ac_ext <<_ACEOF
11768/* confdefs.h. */
11769_ACEOF
11770cat confdefs.h >>conftest.$ac_ext
11771cat >>conftest.$ac_ext <<_ACEOF
11772/* end confdefs.h. */
11773
11774int
11775main ()
11776{
11777#ifndef __MWERKS__
11778 choke me
11779#endif
11780
11781 ;
11782 return 0;
11783}
11784_ACEOF
11785rm -f conftest.$ac_objext
11786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787 (eval $ac_compile) 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
8c539582 11794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; } &&
11800 { ac_try='test -s conftest.$ac_objext'
11801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802 (eval $ac_try) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; }; then
11806 bakefile_compiler_mwerks=yes
11807else
11808 echo "$as_me: failed program was:" >&5
11809sed 's/^/| /' conftest.$ac_ext >&5
11810
11811bakefile_compiler_mwerks=no
11812fi
11813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11814 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11815
11816fi
11817echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11818echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11819
0e6fa1d9 11820MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11821ac_ext=c
11822ac_cpp='$CPP $CPPFLAGS'
11823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11825ac_compiler_gnu=$ac_cv_c_compiler_gnu
11826
11827
6dcfc289 11828 ac_ext=c
9273ffba
DE
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
11834echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11835echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11836if test "${wx_cv_c_compiler_xlc+set}" = set; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11838else
11839 cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h. */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h. */
11845
11846int
11847main ()
11848{
11849#ifndef __xlC__
11850 choke me
11851#endif
11852
11853 ;
11854 return 0;
11855}
11856_ACEOF
11857rm -f conftest.$ac_objext
11858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11859 (eval $ac_compile) 2>conftest.er1
11860 ac_status=$?
11861 grep -v '^ *+' conftest.er1 >conftest.err
11862 rm -f conftest.er1
11863 cat conftest.err >&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } &&
8c539582 11866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; } &&
11872 { ac_try='test -s conftest.$ac_objext'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 wx_compiler_xlc=yes
11879else
11880 echo "$as_me: failed program was:" >&5
11881sed 's/^/| /' conftest.$ac_ext >&5
11882
11883wx_compiler_xlc=no
11884fi
11885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11886 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11887
11888fi
11889echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11890echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11891
0e6fa1d9 11892XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11893ac_ext=c
11894ac_cpp='$CPP $CPPFLAGS'
11895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11897ac_compiler_gnu=$ac_cv_c_compiler_gnu
11898
11899
a848cd7e 11900
6dcfc289 11901
a9e5b1f0
MW
11902 ac_ext=c
11903ac_cpp='$CPP $CPPFLAGS'
11904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11906ac_compiler_gnu=$ac_cv_c_compiler_gnu
11907
11908 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
11909echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
11910if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912else
11913 cat >conftest.$ac_ext <<_ACEOF
11914/* confdefs.h. */
11915_ACEOF
11916cat confdefs.h >>conftest.$ac_ext
11917cat >>conftest.$ac_ext <<_ACEOF
11918/* end confdefs.h. */
11919
11920int
11921main ()
11922{
11923
11924 #ifndef __SUNPRO_C
11925 choke me
11926 #endif
11927
11928 ;
11929 return 0;
11930}
11931_ACEOF
11932rm -f conftest.$ac_objext
11933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11934 (eval $ac_compile) 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
8c539582 11941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest.$ac_objext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 bakefile_cv_c_compiler___SUNPRO_C=yes
11954else
11955 echo "$as_me: failed program was:" >&5
11956sed 's/^/| /' conftest.$ac_ext >&5
11957
11958bakefile_cv_c_compiler___SUNPRO_C=no
11959
11960fi
11961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11962
11963
11964fi
11965echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
11966echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
11967 ac_ext=c
11968ac_cpp='$CPP $CPPFLAGS'
11969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11971ac_compiler_gnu=$ac_cv_c_compiler_gnu
11972
11973 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
11974 :; SUNCC=yes
11975 else
11976 :;
11977 fi
11978
11979
11980
11981
a848cd7e
SC
11982ac_ext=c
11983ac_cpp='$CPP $CPPFLAGS'
11984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11986ac_compiler_gnu=$ac_cv_c_compiler_gnu
11987echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11988echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11989# On Suns, sometimes $CPP names a directory.
11990if test -n "$CPP" && test -d "$CPP"; then
11991 CPP=
11992fi
11993if test -z "$CPP"; then
11994 if test "${ac_cv_prog_CPP+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996else
11997 # Double quotes because CPP needs to be expanded
11998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11999 do
12000 ac_preproc_ok=false
12001for ac_c_preproc_warn_flag in '' yes
12002do
12003 # Use a header file that comes with gcc, so configuring glibc
12004 # with a fresh cross-compiler works.
12005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12006 # <limits.h> exists even on freestanding compilers.
12007 # On the NeXT, cc -E runs the code through the compiler's parser,
12008 # not just through cpp. "Syntax error" is here to catch this case.
12009 cat >conftest.$ac_ext <<_ACEOF
12010/* confdefs.h. */
12011_ACEOF
12012cat confdefs.h >>conftest.$ac_ext
12013cat >>conftest.$ac_ext <<_ACEOF
12014/* end confdefs.h. */
12015#ifdef __STDC__
12016# include <limits.h>
12017#else
12018# include <assert.h>
12019#endif
ac1cb8d3 12020 Syntax error
a848cd7e
SC
12021_ACEOF
12022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } >/dev/null; then
12030 if test -s conftest.err; then
12031 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12033 else
12034 ac_cpp_err=
12035 fi
12036else
12037 ac_cpp_err=yes
12038fi
12039if test -z "$ac_cpp_err"; then
12040 :
12041else
12042 echo "$as_me: failed program was:" >&5
12043sed 's/^/| /' conftest.$ac_ext >&5
12044
12045 # Broken: fails on valid input.
12046continue
12047fi
12048rm -f conftest.err conftest.$ac_ext
12049
12050 # OK, works on sane cases. Now check whether non-existent headers
12051 # can be detected and how.
12052 cat >conftest.$ac_ext <<_ACEOF
12053/* confdefs.h. */
12054_ACEOF
12055cat confdefs.h >>conftest.$ac_ext
12056cat >>conftest.$ac_ext <<_ACEOF
12057/* end confdefs.h. */
12058#include <ac_nonexistent.h>
12059_ACEOF
12060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } >/dev/null; then
12068 if test -s conftest.err; then
12069 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12071 else
12072 ac_cpp_err=
12073 fi
12074else
12075 ac_cpp_err=yes
12076fi
12077if test -z "$ac_cpp_err"; then
12078 # Broken: success on invalid input.
12079continue
12080else
12081 echo "$as_me: failed program was:" >&5
12082sed 's/^/| /' conftest.$ac_ext >&5
12083
12084 # Passes both tests.
12085ac_preproc_ok=:
12086break
12087fi
12088rm -f conftest.err conftest.$ac_ext
12089
12090done
12091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12092rm -f conftest.err conftest.$ac_ext
12093if $ac_preproc_ok; then
12094 break
12095fi
12096
12097 done
12098 ac_cv_prog_CPP=$CPP
12099
12100fi
12101 CPP=$ac_cv_prog_CPP
12102else
12103 ac_cv_prog_CPP=$CPP
12104fi
12105echo "$as_me:$LINENO: result: $CPP" >&5
12106echo "${ECHO_T}$CPP" >&6
12107ac_preproc_ok=false
12108for ac_c_preproc_warn_flag in '' yes
12109do
12110 # Use a header file that comes with gcc, so configuring glibc
12111 # with a fresh cross-compiler works.
12112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12113 # <limits.h> exists even on freestanding compilers.
12114 # On the NeXT, cc -E runs the code through the compiler's parser,
12115 # not just through cpp. "Syntax error" is here to catch this case.
12116 cat >conftest.$ac_ext <<_ACEOF
12117/* confdefs.h. */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h. */
12122#ifdef __STDC__
12123# include <limits.h>
12124#else
12125# include <assert.h>
12126#endif
ac1cb8d3 12127 Syntax error
a848cd7e
SC
12128_ACEOF
12129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } >/dev/null; then
12137 if test -s conftest.err; then
12138 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12140 else
12141 ac_cpp_err=
12142 fi
12143else
12144 ac_cpp_err=yes
12145fi
12146if test -z "$ac_cpp_err"; then
12147 :
12148else
12149 echo "$as_me: failed program was:" >&5
12150sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 # Broken: fails on valid input.
12153continue
12154fi
12155rm -f conftest.err conftest.$ac_ext
12156
12157 # OK, works on sane cases. Now check whether non-existent headers
12158 # can be detected and how.
12159 cat >conftest.$ac_ext <<_ACEOF
12160/* confdefs.h. */
12161_ACEOF
12162cat confdefs.h >>conftest.$ac_ext
12163cat >>conftest.$ac_ext <<_ACEOF
12164/* end confdefs.h. */
12165#include <ac_nonexistent.h>
12166_ACEOF
12167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } >/dev/null; then
12175 if test -s conftest.err; then
12176 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12178 else
12179 ac_cpp_err=
12180 fi
12181else
12182 ac_cpp_err=yes
12183fi
12184if test -z "$ac_cpp_err"; then
12185 # Broken: success on invalid input.
12186continue
12187else
12188 echo "$as_me: failed program was:" >&5
12189sed 's/^/| /' conftest.$ac_ext >&5
12190
12191 # Passes both tests.
12192ac_preproc_ok=:
12193break
12194fi
12195rm -f conftest.err conftest.$ac_ext
12196
12197done
12198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12199rm -f conftest.err conftest.$ac_ext
12200if $ac_preproc_ok; then
12201 :
12202else
12203 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12204See \`config.log' for more details." >&5
12205echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12206See \`config.log' for more details." >&2;}
12207 { (exit 1); exit 1; }; }
12208fi
12209
12210ac_ext=c
12211ac_cpp='$CPP $CPPFLAGS'
12212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12214ac_compiler_gnu=$ac_cv_c_compiler_gnu
12215
12216
12217echo "$as_me:$LINENO: checking for egrep" >&5
12218echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12219if test "${ac_cv_prog_egrep+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12221else
12222 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12223 then ac_cv_prog_egrep='grep -E'
12224 else ac_cv_prog_egrep='egrep'
12225 fi
12226fi
12227echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12228echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12229 EGREP=$ac_cv_prog_egrep
12230
12231
12232if test $ac_cv_c_compiler_gnu = yes; then
12233 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12234echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12235if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237else
12238 ac_pattern="Autoconf.*'x'"
12239 cat >conftest.$ac_ext <<_ACEOF
12240/* confdefs.h. */
12241_ACEOF
12242cat confdefs.h >>conftest.$ac_ext
12243cat >>conftest.$ac_ext <<_ACEOF
12244/* end confdefs.h. */
12245#include <sgtty.h>
12246Autoconf TIOCGETP
12247_ACEOF
12248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12249 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12250 ac_cv_prog_gcc_traditional=yes
12251else
12252 ac_cv_prog_gcc_traditional=no
12253fi
12254rm -f conftest*
12255
12256
12257 if test $ac_cv_prog_gcc_traditional = no; then
12258 cat >conftest.$ac_ext <<_ACEOF
12259/* confdefs.h. */
12260_ACEOF
12261cat confdefs.h >>conftest.$ac_ext
12262cat >>conftest.$ac_ext <<_ACEOF
12263/* end confdefs.h. */
12264#include <termio.h>
12265Autoconf TCGETA
12266_ACEOF
12267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12268 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12269 ac_cv_prog_gcc_traditional=yes
12270fi
12271rm -f conftest*
12272
12273 fi
12274fi
12275echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12276echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12277 if test $ac_cv_prog_gcc_traditional = yes; then
12278 CC="$CC -traditional"
12279 fi
12280fi
12281
12282
12283
12284
12285ac_ext=cc
12286ac_cpp='$CXXCPP $CPPFLAGS'
12287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12290
12291
12292CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12293
12294
12295 ac_ext=cc
a848cd7e
SC
12296ac_cpp='$CXXCPP $CPPFLAGS'
12297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12300if test -n "$ac_tool_prefix"; then
12301 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12302 do
12303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12305echo "$as_me:$LINENO: checking for $ac_word" >&5
12306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12307if test "${ac_cv_prog_CXX+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309else
12310 if test -n "$CXX"; then
12311 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12312else
12313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314for as_dir in $PATH
12315do
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
12318 for ac_exec_ext in '' $ac_executable_extensions; do
12319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12320 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 break 2
12323 fi
12324done
12325done
12326
12327fi
12328fi
12329CXX=$ac_cv_prog_CXX
12330if test -n "$CXX"; then
12331 echo "$as_me:$LINENO: result: $CXX" >&5
12332echo "${ECHO_T}$CXX" >&6
12333else
12334 echo "$as_me:$LINENO: result: no" >&5
12335echo "${ECHO_T}no" >&6
12336fi
12337
12338 test -n "$CXX" && break
12339 done
12340fi
12341if test -z "$CXX"; then
12342 ac_ct_CXX=$CXX
12343 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12344do
12345 # Extract the first word of "$ac_prog", so it can be a program name with args.
12346set dummy $ac_prog; ac_word=$2
12347echo "$as_me:$LINENO: checking for $ac_word" >&5
12348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12349if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12351else
12352 if test -n "$ac_ct_CXX"; then
12353 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12354else
12355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356for as_dir in $PATH
12357do
12358 IFS=$as_save_IFS
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362 ac_cv_prog_ac_ct_CXX="$ac_prog"
12363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 break 2
12365 fi
12366done
12367done
12368
12369fi
12370fi
12371ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12372if test -n "$ac_ct_CXX"; then
12373 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12374echo "${ECHO_T}$ac_ct_CXX" >&6
12375else
12376 echo "$as_me:$LINENO: result: no" >&5
12377echo "${ECHO_T}no" >&6
12378fi
12379
12380 test -n "$ac_ct_CXX" && break
12381done
12382test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12383
12384 CXX=$ac_ct_CXX
12385fi
12386
12387
12388# Provide some information about the compiler.
12389echo "$as_me:$LINENO:" \
12390 "checking for C++ compiler version" >&5
12391ac_compiler=`set X $ac_compile; echo $2`
12392{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12393 (eval $ac_compiler --version </dev/null >&5) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }
12397{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12398 (eval $ac_compiler -v </dev/null >&5) 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }
12402{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12403 (eval $ac_compiler -V </dev/null >&5) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }
12407
12408echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12409echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12410if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12412else
12413 cat >conftest.$ac_ext <<_ACEOF
12414/* confdefs.h. */
12415_ACEOF
12416cat confdefs.h >>conftest.$ac_ext
12417cat >>conftest.$ac_ext <<_ACEOF
12418/* end confdefs.h. */
12419
12420int
12421main ()
12422{
12423#ifndef __GNUC__
12424 choke me
12425#endif
12426
12427 ;
12428 return 0;
12429}
12430_ACEOF
12431rm -f conftest.$ac_objext
12432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12433 (eval $ac_compile) 2>conftest.er1
a848cd7e 12434 ac_status=$?
ac1cb8d3
VS
12435 grep -v '^ *+' conftest.er1 >conftest.err
12436 rm -f conftest.er1
12437 cat conftest.err >&5
a848cd7e
SC
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } &&
8c539582 12440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; } &&
12446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 ac_compiler_gnu=yes
12453else
12454 echo "$as_me: failed program was:" >&5
12455sed 's/^/| /' conftest.$ac_ext >&5
12456
12457ac_compiler_gnu=no
12458fi
ac1cb8d3 12459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12460ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12461
12462fi
12463echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12464echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12465GXX=`test $ac_compiler_gnu = yes && echo yes`
12466ac_test_CXXFLAGS=${CXXFLAGS+set}
12467ac_save_CXXFLAGS=$CXXFLAGS
12468CXXFLAGS="-g"
12469echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12470echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12471if test "${ac_cv_prog_cxx_g+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12473else
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. */
12480
12481int
12482main ()
12483{
12484
12485 ;
12486 return 0;
12487}
12488_ACEOF
12489rm -f conftest.$ac_objext
12490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12491 (eval $ac_compile) 2>conftest.er1
a848cd7e 12492 ac_status=$?
ac1cb8d3
VS
12493 grep -v '^ *+' conftest.er1 >conftest.err
12494 rm -f conftest.er1
12495 cat conftest.err >&5
a848cd7e
SC
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } &&
8c539582 12498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_prog_cxx_g=yes
12511else
12512 echo "$as_me: failed program was:" >&5
12513sed 's/^/| /' conftest.$ac_ext >&5
12514
12515ac_cv_prog_cxx_g=no
12516fi
ac1cb8d3 12517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12518fi
12519echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12520echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12521if test "$ac_test_CXXFLAGS" = set; then
12522 CXXFLAGS=$ac_save_CXXFLAGS
12523elif test $ac_cv_prog_cxx_g = yes; then
12524 if test "$GXX" = yes; then
52ada004 12525 CXXFLAGS="-g -O2"
a848cd7e 12526 else
52ada004 12527 CXXFLAGS="-g"
a848cd7e
SC
12528 fi
12529else
12530 if test "$GXX" = yes; then
12531 CXXFLAGS="-O2"
12532 else
12533 CXXFLAGS=
12534 fi
12535fi
12536for ac_declaration in \
ac1cb8d3 12537 '' \
a848cd7e
SC
12538 'extern "C" void std::exit (int) throw (); using std::exit;' \
12539 'extern "C" void std::exit (int); using std::exit;' \
12540 'extern "C" void exit (int) throw ();' \
12541 'extern "C" void exit (int);' \
12542 'void exit (int);'
12543do
12544 cat >conftest.$ac_ext <<_ACEOF
12545/* confdefs.h. */
12546_ACEOF
12547cat confdefs.h >>conftest.$ac_ext
12548cat >>conftest.$ac_ext <<_ACEOF
12549/* end confdefs.h. */
de59c161 12550$ac_declaration
ac1cb8d3 12551#include <stdlib.h>
a848cd7e
SC
12552int
12553main ()
12554{
12555exit (42);
12556 ;
12557 return 0;
12558}
12559_ACEOF
12560rm -f conftest.$ac_objext
12561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12562 (eval $ac_compile) 2>conftest.er1
a848cd7e 12563 ac_status=$?
ac1cb8d3
VS
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
a848cd7e
SC
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
8c539582 12569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 :
12582else
12583 echo "$as_me: failed program was:" >&5
12584sed 's/^/| /' conftest.$ac_ext >&5
12585
12586continue
12587fi
ac1cb8d3 12588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12589 cat >conftest.$ac_ext <<_ACEOF
12590/* confdefs.h. */
12591_ACEOF
12592cat confdefs.h >>conftest.$ac_ext
12593cat >>conftest.$ac_ext <<_ACEOF
12594/* end confdefs.h. */
12595$ac_declaration
12596int
12597main ()
12598{
12599exit (42);
12600 ;
12601 return 0;
12602}
12603_ACEOF
12604rm -f conftest.$ac_objext
12605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12606 (eval $ac_compile) 2>conftest.er1
a848cd7e 12607 ac_status=$?
ac1cb8d3
VS
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
a848cd7e
SC
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
8c539582 12613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; } &&
12619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 break
12626else
12627 echo "$as_me: failed program was:" >&5
12628sed 's/^/| /' conftest.$ac_ext >&5
12629
12630fi
ac1cb8d3 12631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12632done
12633rm -f conftest*
12634if test -n "$ac_declaration"; then
12635 echo '#ifdef __cplusplus' >>confdefs.h
12636 echo $ac_declaration >>confdefs.h
12637 echo '#endif' >>confdefs.h
12638fi
12639
12640ac_ext=cc
12641ac_cpp='$CXXCPP $CPPFLAGS'
12642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12645
6dcfc289 12646 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12647echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12648if test "${wx_cv_cxx_exto+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650else
12651 cat >conftest.$ac_ext <<_ACEOF
12652/* confdefs.h. */
12653_ACEOF
12654cat confdefs.h >>conftest.$ac_ext
12655cat >>conftest.$ac_ext <<_ACEOF
12656/* end confdefs.h. */
12657
12658int
12659main ()
12660{
12661
12662 ;
12663 return 0;
12664}
12665_ACEOF
12666rm -f conftest.$ac_objext conftest.$ac_ext.o
12667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; then
12672 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12673 case $ac_file in
12674 conftest.$ac_ext.o)
12675 wx_cv_cxx_exto="-ext o"
12676 ;;
12677 *)
12678 ;;
12679 esac
12680done
12681else
12682 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12683See \`config.log' for more details." >&5
12684echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12685See \`config.log' for more details." >&2;}
12686 { (exit 1); exit 1; }; }
12687
12688fi
12689
12690rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12691
12692fi
12693echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12694echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12695if test "x$wx_cv_cxx_exto" '!=' "x"; then
12696 if test "cxx" = "c"; then
12697 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12698 fi
12699 if test "cxx" = "cxx"; then
12700 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12701 fi
12702fi
12703
6dcfc289
DE
12704 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12705 unset ac_cv_prog_cxx_g
12706 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12707ac_save_CXXFLAGS=$CXXFLAGS
12708CXXFLAGS="-g"
12709echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12710echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12711if test "${ac_cv_prog_cxx_g+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713else
12714 cat >conftest.$ac_ext <<_ACEOF
12715/* confdefs.h. */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h. */
12720
12721int
12722main ()
12723{
12724
12725 ;
12726 return 0;
12727}
12728_ACEOF
12729rm -f conftest.$ac_objext
12730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12731 (eval $ac_compile) 2>conftest.er1
12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
8c539582 12738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; } &&
12744 { ac_try='test -s conftest.$ac_objext'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 ac_cv_prog_cxx_g=yes
12751else
12752 echo "$as_me: failed program was:" >&5
12753sed 's/^/| /' conftest.$ac_ext >&5
12754
12755ac_cv_prog_cxx_g=no
12756fi
12757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12758fi
12759echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12760echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12761if test "$ac_test_CXXFLAGS" = set; then
12762 CXXFLAGS=$ac_save_CXXFLAGS
12763elif test $ac_cv_prog_cxx_g = yes; then
12764 if test "$GXX" = yes; then
52ada004 12765 CXXFLAGS="-g -O2"
480ccd21 12766 else
52ada004 12767 CXXFLAGS="-g"
480ccd21
DE
12768 fi
12769else
12770 if test "$GXX" = yes; then
12771 CXXFLAGS="-O2"
12772 else
12773 CXXFLAGS=
12774 fi
12775fi
6dcfc289
DE
12776 fi
12777 ac_ext=cc
95986553
DE
12778ac_cpp='$CXXCPP $CPPFLAGS'
12779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12782
12783echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12784echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12785if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787else
12788 cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
12794
12795int
12796main ()
12797{
12798#ifndef __MWERKS__
12799 choke me
12800#endif
12801
12802 ;
12803 return 0;
12804}
12805_ACEOF
12806rm -f conftest.$ac_objext
12807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
8c539582 12815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; } &&
12821 { ac_try='test -s conftest.$ac_objext'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; }; then
12827 bakefile_compiler_mwerks=yes
12828else
12829 echo "$as_me: failed program was:" >&5
12830sed 's/^/| /' conftest.$ac_ext >&5
12831
12832bakefile_compiler_mwerks=no
12833fi
12834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12835 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12836
12837fi
12838echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12839echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12840
0e6fa1d9 12841MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12842ac_ext=cc
12843ac_cpp='$CXXCPP $CPPFLAGS'
12844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12847
12848
6dcfc289 12849 ac_ext=cc
9273ffba
DE
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
12855echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12856echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12857if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12859else
12860 cat >conftest.$ac_ext <<_ACEOF
12861/* confdefs.h. */
12862_ACEOF
12863cat confdefs.h >>conftest.$ac_ext
12864cat >>conftest.$ac_ext <<_ACEOF
12865/* end confdefs.h. */
12866
12867int
12868main ()
12869{
12870#ifndef __xlC__
12871 choke me
12872#endif
12873
12874 ;
12875 return 0;
12876}
12877_ACEOF
12878rm -f conftest.$ac_objext
12879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880 (eval $ac_compile) 2>conftest.er1
12881 ac_status=$?
12882 grep -v '^ *+' conftest.er1 >conftest.err
12883 rm -f conftest.er1
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
8c539582 12887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest.$ac_objext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 wx_compiler_xlc=yes
12900else
12901 echo "$as_me: failed program was:" >&5
12902sed 's/^/| /' conftest.$ac_ext >&5
12903
12904wx_compiler_xlc=no
12905fi
12906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12907 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12908
12909fi
12910echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12911echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12912
0e6fa1d9 12913XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12914ac_ext=cc
12915ac_cpp='$CXXCPP $CPPFLAGS'
12916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12919
12920
95986553 12921
6dcfc289 12922
a9e5b1f0
MW
12923 ac_ext=cc
12924ac_cpp='$CXXCPP $CPPFLAGS'
12925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12928
12929 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
12930echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
12931if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12933else
12934 cat >conftest.$ac_ext <<_ACEOF
12935/* confdefs.h. */
12936_ACEOF
12937cat confdefs.h >>conftest.$ac_ext
12938cat >>conftest.$ac_ext <<_ACEOF
12939/* end confdefs.h. */
12940
12941int
12942main ()
12943{
12944
12945 #ifndef __SUNPRO_CC
12946 choke me
12947 #endif
12948
12949 ;
12950 return 0;
12951}
12952_ACEOF
12953rm -f conftest.$ac_objext
12954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12955 (eval $ac_compile) 2>conftest.er1
12956 ac_status=$?
12957 grep -v '^ *+' conftest.er1 >conftest.err
12958 rm -f conftest.er1
12959 cat conftest.err >&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); } &&
8c539582 12962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try='test -s conftest.$ac_objext'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12971 ac_status=$?
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
12974 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
12975else
12976 echo "$as_me: failed program was:" >&5
12977sed 's/^/| /' conftest.$ac_ext >&5
12978
12979bakefile_cv_cxx_compiler___SUNPRO_CC=no
12980
12981fi
12982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12983
12984
12985fi
12986echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
12987echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
12988 ac_ext=cc
12989ac_cpp='$CXXCPP $CPPFLAGS'
12990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12993
12994 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
12995 :; SUNCXX=yes
12996 else
12997 :;
12998 fi
12999
13000
13001
13002
a848cd7e
SC
13003ac_ext=c
13004ac_cpp='$CPP $CPPFLAGS'
13005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13007ac_compiler_gnu=$ac_cv_c_compiler_gnu
13008
13009
a848cd7e
SC
13010if test -n "$ac_tool_prefix"; then
13011 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13012set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13013echo "$as_me:$LINENO: checking for $ac_word" >&5
13014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13015if test "${ac_cv_prog_RANLIB+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13017else
13018 if test -n "$RANLIB"; then
13019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13020else
13021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022for as_dir in $PATH
13023do
13024 IFS=$as_save_IFS
13025 test -z "$as_dir" && as_dir=.
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13028 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13030 break 2
13031 fi
13032done
13033done
13034
13035fi
13036fi
13037RANLIB=$ac_cv_prog_RANLIB
13038if test -n "$RANLIB"; then
13039 echo "$as_me:$LINENO: result: $RANLIB" >&5
13040echo "${ECHO_T}$RANLIB" >&6
13041else
13042 echo "$as_me:$LINENO: result: no" >&5
13043echo "${ECHO_T}no" >&6
13044fi
13045
13046fi
13047if test -z "$ac_cv_prog_RANLIB"; then
13048 ac_ct_RANLIB=$RANLIB
13049 # Extract the first word of "ranlib", so it can be a program name with args.
13050set dummy ranlib; ac_word=$2
13051echo "$as_me:$LINENO: checking for $ac_word" >&5
13052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13053if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13055else
13056 if test -n "$ac_ct_RANLIB"; then
13057 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13058else
13059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060for as_dir in $PATH
13061do
13062 IFS=$as_save_IFS
13063 test -z "$as_dir" && as_dir=.
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13066 ac_cv_prog_ac_ct_RANLIB="ranlib"
13067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13068 break 2
13069 fi
13070done
13071done
13072
13073 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13074fi
13075fi
13076ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13077if test -n "$ac_ct_RANLIB"; then
13078 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13079echo "${ECHO_T}$ac_ct_RANLIB" >&6
13080else
13081 echo "$as_me:$LINENO: result: no" >&5
13082echo "${ECHO_T}no" >&6
13083fi
13084
13085 RANLIB=$ac_ct_RANLIB
13086else
13087 RANLIB="$ac_cv_prog_RANLIB"
13088fi
13089
13090
13091# Extract the first word of "ar", so it can be a program name with args.
13092set dummy ar; ac_word=$2
13093echo "$as_me:$LINENO: checking for $ac_word" >&5
13094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13095if test "${ac_cv_prog_AR+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097else
13098 if test -n "$AR"; then
13099 ac_cv_prog_AR="$AR" # Let the user override the test.
13100else
13101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102for as_dir in $PATH
13103do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13108 ac_cv_prog_AR="ar"
13109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112done
13113done
13114
13115fi
13116fi
13117AR=$ac_cv_prog_AR
13118if test -n "$AR"; then
13119 echo "$as_me:$LINENO: result: $AR" >&5
13120echo "${ECHO_T}$AR" >&6
13121else
13122 echo "$as_me:$LINENO: result: no" >&5
13123echo "${ECHO_T}no" >&6
13124fi
13125
13126if test "x$AR" = "x" ; then
77ffb593
JS
13127 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13128echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13129 { (exit 1); exit 1; }; }
13130fi
13131
13132# Find a good install program. We prefer a C program (faster),
13133# so one script is as good as another. But avoid the broken or
13134# incompatible versions:
13135# SysV /etc/install, /usr/sbin/install
13136# SunOS /usr/etc/install
13137# IRIX /sbin/install
13138# AIX /bin/install
13139# AmigaOS /C/install, which installs bootblocks on floppy discs
13140# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13141# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13142# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13143# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13144# ./install, which can be erroneously created by make from ./install.sh.
13145echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13146echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13147if test -z "$INSTALL"; then
13148if test "${ac_cv_path_install+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13150else
13151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152for as_dir in $PATH
13153do
13154 IFS=$as_save_IFS
13155 test -z "$as_dir" && as_dir=.
13156 # Account for people who put trailing slashes in PATH elements.
13157case $as_dir/ in
13158 ./ | .// | /cC/* | \
13159 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13160 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13161 /usr/ucb/* ) ;;
13162 *)
13163 # OSF1 and SCO ODT 3.0 have their own names for install.
13164 # Don't use installbsd from OSF since it installs stuff as root
13165 # by default.
13166 for ac_prog in ginstall scoinst install; do
13167 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13168 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13169 if test $ac_prog = install &&
13170 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13171 # AIX install. It has an incompatible calling convention.
13172 :
13173 elif test $ac_prog = install &&
13174 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13175 # program-specific install script used by HP pwplus--don't use.
13176 :
13177 else
13178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13179 break 3
13180 fi
13181 fi
a848cd7e
SC
13182 done
13183 done
13184 ;;
13185esac
13186done
13187
13188
13189fi
13190 if test "${ac_cv_path_install+set}" = set; then
13191 INSTALL=$ac_cv_path_install
13192 else
13193 # As a last resort, use the slow shell script. We don't cache a
13194 # path for INSTALL within a source directory, because that will
13195 # break other packages using the cache if that directory is
13196 # removed, or if the path is relative.
13197 INSTALL=$ac_install_sh
13198 fi
13199fi
13200echo "$as_me:$LINENO: result: $INSTALL" >&5
13201echo "${ECHO_T}$INSTALL" >&6
13202
13203# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13204# It thinks the first close brace ends the variable substitution.
13205test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13206
13207test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13208
13209test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13210
13211
13212case ${INSTALL} in
13213 /* ) # Absolute
13214 ;;
13215 ?:* ) # Drive letter, considered as absolute.
13216 ;;
13217 *)
13218 INSTALL=`pwd`/${INSTALL} ;;
13219esac
13220
a848cd7e
SC
13221
13222case "${host}" in
13223
13224 powerpc-*-darwin* )
13225 INSTALL_PROGRAM="cp -fp"
13226 INSTALL_DATA="cp -fp"
13227 ;;
13228 *)
13229 ;;
13230esac
13231
13232# Extract the first word of "strip", so it can be a program name with args.
13233set dummy strip; ac_word=$2
13234echo "$as_me:$LINENO: checking for $ac_word" >&5
13235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13236if test "${ac_cv_prog_STRIP+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13238else
13239 if test -n "$STRIP"; then
13240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13241else
13242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243for as_dir in $PATH
13244do
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13249 ac_cv_prog_STRIP="strip"
13250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 break 2
13252 fi
13253done
13254done
13255
13256 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13257fi
13258fi
13259STRIP=$ac_cv_prog_STRIP
13260if test -n "$STRIP"; then
13261 echo "$as_me:$LINENO: result: $STRIP" >&5
13262echo "${ECHO_T}$STRIP" >&6
13263else
13264 echo "$as_me:$LINENO: result: no" >&5
13265echo "${ECHO_T}no" >&6
13266fi
13267
13268
13269echo "$as_me:$LINENO: checking if make is GNU make" >&5
13270echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13271if test "${wx_cv_prog_makeisgnu+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273else
13274
13275 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13276 egrep -s GNU > /dev/null); then
13277 wx_cv_prog_makeisgnu="yes"
13278 else
13279 wx_cv_prog_makeisgnu="no"
13280 fi
13281
13282fi
13283echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13284echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13285
13286if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13287 IF_GNU_MAKE=""
13288else
13289 IF_GNU_MAKE="#"
13290fi
13291
13292
13293
13294if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13295echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13296echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13297if test "${wx_cv_prog_makevpath+set}" = set; then
13298 echo $ECHO_N "(cached) $ECHO_C" >&6
13299else
13300
13301cat - << EOF > confMake
13302check : file
13303 cp \$? \$@
13304 cp \$? final_file
13305EOF
13306
13307if test ! -d sub ; then
13308 mkdir sub
13309fi
13310echo dummy > sub/file
13311${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13312RESULT=$?
13313rm -f sub/file check final_file confMake
13314rmdir sub
13315if test "$RESULT" = 0; then
13316 wx_cv_prog_makevpath="yes"
13317else
13318 wx_cv_prog_makevpath="no"
13319fi
13320
13321fi
13322echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13323echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13324
13325if test "x$wx_cv_prog_makevpath" != "xyes"; then
13326{ { echo "$as_me:$LINENO: error:
13327You need a make-utility that is able to use the variable
13328VPATH correctly.
13329If your version of make does not support VPATH correctly,
13330please install GNU-make (possibly as gmake), and start
13331configure with the following command:
13332export MAKE=gmake; ./configure for sh-type shells
13333setenv MAKE gmake; ./configure for csh-type shells
13334Also please do remember to use gmake in this case every time
13335you are trying to compile.
13336" >&5
13337echo "$as_me: error:
13338You need a make-utility that is able to use the variable
13339VPATH correctly.
13340If your version of make does not support VPATH correctly,
13341please install GNU-make (possibly as gmake), and start
13342configure with the following command:
13343export MAKE=gmake; ./configure for sh-type shells
13344setenv MAKE gmake; ./configure for csh-type shells
13345Also please do remember to use gmake in this case every time
13346you are trying to compile.
13347" >&2;}
13348 { (exit 1); exit 1; }; }
13349fi fi
13350echo "$as_me:$LINENO: checking whether ln -s works" >&5
13351echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13352LN_S=$as_ln_s
13353if test "$LN_S" = "ln -s"; then
13354 echo "$as_me:$LINENO: result: yes" >&5
13355echo "${ECHO_T}yes" >&6
13356else
13357 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13358echo "${ECHO_T}no, using $LN_S" >&6
13359fi
13360
13361
13362
9273ffba
DE
13363if test "x$XLCXX" = "xyes"; then
13364 CXXFLAGS="$CXXFLAGS -qunique"
13365fi
13366
13367
4d7ec9f1
DE
13368case "${host}" in
13369 powerpc-*-darwin* )
13370 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13371echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13372 cat >conftest.$ac_ext <<_ACEOF
13373/* confdefs.h. */
13374_ACEOF
13375cat confdefs.h >>conftest.$ac_ext
13376cat >>conftest.$ac_ext <<_ACEOF
13377/* end confdefs.h. */
13378
13379int
13380main ()
13381{
13382#ifndef __POWERPC__
13383 choke me for lack of PowerPC
13384#endif
13385
13386 ;
13387 return 0;
13388}
13389_ACEOF
13390rm -f conftest.$ac_objext
13391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13392 (eval $ac_compile) 2>conftest.er1
13393 ac_status=$?
13394 grep -v '^ *+' conftest.er1 >conftest.err
13395 rm -f conftest.er1
13396 cat conftest.err >&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } &&
8c539582 13399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; } &&
13405 { ac_try='test -s conftest.$ac_objext'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }; then
13411 echo "$as_me:$LINENO: result: yes" >&5
13412echo "${ECHO_T}yes" >&6
13413else
13414 echo "$as_me: failed program was:" >&5
13415sed 's/^/| /' conftest.$ac_ext >&5
13416
13417echo "$as_me:$LINENO: result: no" >&5
13418echo "${ECHO_T}no" >&6
13419 cat >>confdefs.h <<\_ACEOF
13420#define __POWERPC__ 1
13421_ACEOF
13422
13423
13424fi
13425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13426 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13427echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13428 cat >conftest.$ac_ext <<_ACEOF
13429/* confdefs.h. */
13430_ACEOF
13431cat confdefs.h >>conftest.$ac_ext
13432cat >>conftest.$ac_ext <<_ACEOF
13433/* end confdefs.h. */
13434#include <CoreFoundation/CFBase.h>
13435
13436int
13437main ()
13438{
13439
13440 ;
13441 return 0;
13442}
13443_ACEOF
13444rm -f conftest.$ac_objext
13445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13446 (eval $ac_compile) 2>conftest.er1
13447 ac_status=$?
13448 grep -v '^ *+' conftest.er1 >conftest.err
13449 rm -f conftest.er1
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
8c539582 13453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; } &&
13459 { ac_try='test -s conftest.$ac_objext'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
13465 echo "$as_me:$LINENO: result: yes" >&5
13466echo "${ECHO_T}yes" >&6
13467else
13468 echo "$as_me: failed program was:" >&5
13469sed 's/^/| /' conftest.$ac_ext >&5
13470
13471echo "$as_me:$LINENO: result: no" >&5
13472echo "${ECHO_T}no" >&6
13473 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13474echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13475 cat >conftest.$ac_ext <<_ACEOF
13476/* confdefs.h. */
13477_ACEOF
13478cat confdefs.h >>conftest.$ac_ext
13479cat >>conftest.$ac_ext <<_ACEOF
13480/* end confdefs.h. */
13481#define __CF_USE_FRAMEWORK_INCLUDES__
13482#include <CoreFoundation/CFBase.h>
13483
13484int
13485main ()
13486{
13487
13488 ;
13489 return 0;
13490}
13491_ACEOF
13492rm -f conftest.$ac_objext
13493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13494 (eval $ac_compile) 2>conftest.er1
13495 ac_status=$?
13496 grep -v '^ *+' conftest.er1 >conftest.err
13497 rm -f conftest.er1
13498 cat conftest.err >&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); } &&
8c539582 13501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest.$ac_objext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513 echo "$as_me:$LINENO: result: yes" >&5
13514echo "${ECHO_T}yes" >&6
13515 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13516else
13517 echo "$as_me: failed program was:" >&5
13518sed 's/^/| /' conftest.$ac_ext >&5
13519
13520{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13521See \`config.log' for more details." >&5
13522echo "$as_me: error: no. CoreFoundation not available.
13523See \`config.log' for more details." >&2;}
13524 { (exit 1); exit 1; }; }
13525
13526fi
13527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13528
13529
13530fi
13531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13532 ;;
13533esac
13534
a848cd7e
SC
13535case "${host}" in
13536 *-pc-os2_emx | *-pc-os2-emx )
13537 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13538 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13539echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13540if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13542else
13543 ac_check_lib_save_LIBS=$LIBS
13544LIBS="-lcExt $LIBS"
13545cat >conftest.$ac_ext <<_ACEOF
13546/* confdefs.h. */
13547_ACEOF
13548cat confdefs.h >>conftest.$ac_ext
13549cat >>conftest.$ac_ext <<_ACEOF
13550/* end confdefs.h. */
13551
13552/* Override any gcc2 internal prototype to avoid an error. */
13553#ifdef __cplusplus
13554extern "C"
13555#endif
13556/* We use char because int might match the return type of a gcc2
13557 builtin and then its argument prototype would still apply. */
13558char drand48 ();
13559int
13560main ()
13561{
13562drand48 ();
13563 ;
13564 return 0;
13565}
13566_ACEOF
13567rm -f conftest.$ac_objext conftest$ac_exeext
13568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13569 (eval $ac_link) 2>conftest.er1
a848cd7e 13570 ac_status=$?
ac1cb8d3
VS
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
a848cd7e
SC
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
8c539582 13576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; } &&
13582 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; }; then
13588 ac_cv_lib_cExt_drand48=yes
13589else
13590 echo "$as_me: failed program was:" >&5
13591sed 's/^/| /' conftest.$ac_ext >&5
13592
13593ac_cv_lib_cExt_drand48=no
13594fi
ac1cb8d3
VS
13595rm -f conftest.err conftest.$ac_objext \
13596 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13597LIBS=$ac_check_lib_save_LIBS
13598fi
13599echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13600echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13601if test $ac_cv_lib_cExt_drand48 = yes; then
13602 LIBS="$LIBS -lcExt"
13603fi
13604
13605 else
13606 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13607 fi
69120ee4
VZ
13608 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13609echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13610if test "${wx_cv_gccversion+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612else
13613
391a765e
VS
13614 if test "$cross_compiling" = yes; then
13615 wx_cv_gccversion="EMX2"
13616
13617else
13618 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13619/* confdefs.h. */
13620_ACEOF
13621cat confdefs.h >>conftest.$ac_ext
13622cat >>conftest.$ac_ext <<_ACEOF
13623/* end confdefs.h. */
13624
391a765e 13625 #include <stdio.h>
a848cd7e 13626
391a765e
VS
13627 int main()
13628 {
13629 FILE *f=fopen("conftestval", "w");
13630 if (!f) exit(1);
13631 fprintf(f,
a848cd7e 13632 #if (__GNUC__ < 3)
391a765e
VS
13633 "EMX2"
13634 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13635 "EMX3"
13636 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13637 "Innotek5"
13638 #else
13639 "Innotek6"
a848cd7e 13640 #endif
391a765e
VS
13641 );
13642 exit(0);
13643 }
a848cd7e 13644
a848cd7e 13645_ACEOF
391a765e
VS
13646rm -f conftest$ac_exeext
13647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13648 (eval $ac_link) 2>&5
ac1cb8d3
VS
13649 ac_status=$?
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
391a765e 13657 wx_cv_gccversion=`cat conftestval`
a848cd7e 13658else
391a765e
VS
13659 echo "$as_me: program exited with status $ac_status" >&5
13660echo "$as_me: failed program was:" >&5
a848cd7e
SC
13661sed 's/^/| /' conftest.$ac_ext >&5
13662
391a765e
VS
13663( exit $ac_status )
13664wx_cv_gccversion="EMX2"
a848cd7e 13665fi
391a765e 13666rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13667fi
a848cd7e
SC
13668
13669fi
13670echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13671echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13672 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13673 LIBS="$LIBS -lstdcpp"
13674 LDFLAGS="$LDFLAGS -Zsysv-signals"
13675 else
391a765e 13676 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13677 LIBS="$LIBS -lstdcxx"
13678 LDFLAGS="$LDFLAGS -Zsysv-signals"
13679 else
13680 LIBS="$LIBS -lstdc++"
13681 fi
13682 fi
94acd38e
DE
13683 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13684 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13685echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13686 wxUSE_OMF=yes
2da0c077 13687 enable_omf=yes
a848cd7e
SC
13688 fi
13689 ;;
13690 *)
13691
13692
13693
13694 ac_ext=cc
13695ac_cpp='$CXXCPP $CPPFLAGS'
13696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13699
13700
95986553 13701 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13702echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13703if test "${ac_cv_string_strcasecmp+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13705else
13706
13707 cat >conftest.$ac_ext <<_ACEOF
13708/* confdefs.h. */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h. */
13713
13714 #include <string.h>
13715
13716int
13717main ()
13718{
13719
13720 strcasecmp("foo", "bar");
13721
13722 ;
13723 return 0;
13724}
13725_ACEOF
13726rm -f conftest.$ac_objext conftest$ac_exeext
13727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13728 (eval $ac_link) 2>conftest.er1
a848cd7e 13729 ac_status=$?
ac1cb8d3
VS
13730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
a848cd7e
SC
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } &&
8c539582 13735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; } &&
13741 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_cv_string_strcasecmp=yes
13748else
13749 echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
13752ac_cv_string_strcasecmp=no
13753
13754fi
ac1cb8d3
VS
13755rm -f conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13757
13758fi
13759echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13760echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13761
13762 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13763 cat >>confdefs.h <<\_ACEOF
13764#define HAVE_STRCASECMP_IN_STRING_H 1
13765_ACEOF
13766
13767 else
13768 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13769echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13770if test "${ac_cv_strings_strcasecmp+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772else
13773
13774 cat >conftest.$ac_ext <<_ACEOF
13775/* confdefs.h. */
13776_ACEOF
13777cat confdefs.h >>conftest.$ac_ext
13778cat >>conftest.$ac_ext <<_ACEOF
13779/* end confdefs.h. */
13780
13781 #include <strings.h>
13782
13783int
13784main ()
13785{
13786
13787 strcasecmp("foo", "bar");
13788
13789 ;
13790 return 0;
13791}
13792_ACEOF
13793rm -f conftest.$ac_objext conftest$ac_exeext
13794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13795 (eval $ac_link) 2>conftest.er1
a848cd7e 13796 ac_status=$?
ac1cb8d3
VS
13797 grep -v '^ *+' conftest.er1 >conftest.err
13798 rm -f conftest.er1
13799 cat conftest.err >&5
a848cd7e
SC
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
8c539582 13802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_cv_strings_strcasecmp=yes
13815else
13816 echo "$as_me: failed program was:" >&5
13817sed 's/^/| /' conftest.$ac_ext >&5
13818
13819ac_cv_strings_strcasecmp=no
13820
13821fi
ac1cb8d3
VS
13822rm -f conftest.err conftest.$ac_objext \
13823 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13824
13825fi
13826echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13827echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13828
0c3c69fc 13829 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13830 cat >>confdefs.h <<\_ACEOF
13831#define HAVE_STRCASECMP_IN_STRINGS_H 1
13832_ACEOF
13833
13834 else
13835 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13836echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13837 { (exit 1); exit 1; }; }
13838 fi
13839 fi
13840
13841 ac_ext=c
13842ac_cpp='$CPP $CPPFLAGS'
13843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13845ac_compiler_gnu=$ac_cv_c_compiler_gnu
13846
13847 ;;
13848esac
13849
13850
13851echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13852echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13853if test "${ac_cv_header_stdc+set}" = set; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13855else
13856 cat >conftest.$ac_ext <<_ACEOF
13857/* confdefs.h. */
13858_ACEOF
13859cat confdefs.h >>conftest.$ac_ext
13860cat >>conftest.$ac_ext <<_ACEOF
13861/* end confdefs.h. */
13862#include <stdlib.h>
13863#include <stdarg.h>
13864#include <string.h>
13865#include <float.h>
13866
13867int
13868main ()
13869{
13870
13871 ;
13872 return 0;
13873}
13874_ACEOF
13875rm -f conftest.$ac_objext
13876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13877 (eval $ac_compile) 2>conftest.er1
a848cd7e 13878 ac_status=$?
ac1cb8d3
VS
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
a848cd7e
SC
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
8c539582 13884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; } &&
13890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
13896 ac_cv_header_stdc=yes
13897else
13898 echo "$as_me: failed program was:" >&5
13899sed 's/^/| /' conftest.$ac_ext >&5
13900
13901ac_cv_header_stdc=no
13902fi
ac1cb8d3 13903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13904
13905if test $ac_cv_header_stdc = yes; then
13906 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13907 cat >conftest.$ac_ext <<_ACEOF
13908/* confdefs.h. */
13909_ACEOF
13910cat confdefs.h >>conftest.$ac_ext
13911cat >>conftest.$ac_ext <<_ACEOF
13912/* end confdefs.h. */
13913#include <string.h>
13914
13915_ACEOF
13916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13917 $EGREP "memchr" >/dev/null 2>&1; then
13918 :
13919else
13920 ac_cv_header_stdc=no
13921fi
13922rm -f conftest*
13923
13924fi
13925
13926if test $ac_cv_header_stdc = yes; then
13927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13928 cat >conftest.$ac_ext <<_ACEOF
13929/* confdefs.h. */
13930_ACEOF
13931cat confdefs.h >>conftest.$ac_ext
13932cat >>conftest.$ac_ext <<_ACEOF
13933/* end confdefs.h. */
13934#include <stdlib.h>
13935
13936_ACEOF
13937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13938 $EGREP "free" >/dev/null 2>&1; then
13939 :
13940else
13941 ac_cv_header_stdc=no
13942fi
13943rm -f conftest*
13944
13945fi
13946
13947if test $ac_cv_header_stdc = yes; then
13948 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13949 if test "$cross_compiling" = yes; then
13950 :
13951else
13952 cat >conftest.$ac_ext <<_ACEOF
13953/* confdefs.h. */
13954_ACEOF
13955cat confdefs.h >>conftest.$ac_ext
13956cat >>conftest.$ac_ext <<_ACEOF
13957/* end confdefs.h. */
13958#include <ctype.h>
13959#if ((' ' & 0x0FF) == 0x020)
13960# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13961# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13962#else
13963# define ISLOWER(c) \
ac1cb8d3
VS
13964 (('a' <= (c) && (c) <= 'i') \
13965 || ('j' <= (c) && (c) <= 'r') \
13966 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13967# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13968#endif
13969
13970#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13971int
13972main ()
13973{
13974 int i;
13975 for (i = 0; i < 256; i++)
13976 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13977 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13978 exit(2);
13979 exit (0);
13980}
13981_ACEOF
13982rm -f conftest$ac_exeext
13983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13984 (eval $ac_link) 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 :
13994else
13995 echo "$as_me: program exited with status $ac_status" >&5
13996echo "$as_me: failed program was:" >&5
13997sed 's/^/| /' conftest.$ac_ext >&5
13998
13999( exit $ac_status )
14000ac_cv_header_stdc=no
14001fi
ac1cb8d3 14002rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14003fi
14004fi
14005fi
14006echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14007echo "${ECHO_T}$ac_cv_header_stdc" >&6
14008if test $ac_cv_header_stdc = yes; then
14009
14010cat >>confdefs.h <<\_ACEOF
14011#define STDC_HEADERS 1
14012_ACEOF
14013
14014fi
14015
14016# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14027 inttypes.h stdint.h unistd.h
a848cd7e
SC
14028do
14029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14030echo "$as_me:$LINENO: checking for $ac_header" >&5
14031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14032if eval "test \"\${$as_ac_Header+set}\" = set"; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034else
14035 cat >conftest.$ac_ext <<_ACEOF
14036/* confdefs.h. */
14037_ACEOF
14038cat confdefs.h >>conftest.$ac_ext
14039cat >>conftest.$ac_ext <<_ACEOF
14040/* end confdefs.h. */
14041$ac_includes_default
14042
14043#include <$ac_header>
14044_ACEOF
14045rm -f conftest.$ac_objext
14046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14047 (eval $ac_compile) 2>conftest.er1
a848cd7e 14048 ac_status=$?
ac1cb8d3
VS
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
a848cd7e
SC
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
8c539582 14054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; } &&
14060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 eval "$as_ac_Header=yes"
14067else
14068 echo "$as_me: failed program was:" >&5
14069sed 's/^/| /' conftest.$ac_ext >&5
14070
14071eval "$as_ac_Header=no"
14072fi
ac1cb8d3 14073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14074fi
14075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14077if test `eval echo '${'$as_ac_Header'}'` = yes; then
14078 cat >>confdefs.h <<_ACEOF
14079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14080_ACEOF
14081
14082fi
14083
14084done
14085
14086
14087
14088for ac_header in stdlib.h
14089do
14090as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14091if eval "test \"\${$as_ac_Header+set}\" = set"; then
14092 echo "$as_me:$LINENO: checking for $ac_header" >&5
14093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14094if eval "test \"\${$as_ac_Header+set}\" = set"; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14096fi
14097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14099else
14100 # Is the header compilable?
14101echo "$as_me:$LINENO: checking $ac_header usability" >&5
14102echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14103cat >conftest.$ac_ext <<_ACEOF
14104/* confdefs.h. */
14105_ACEOF
14106cat confdefs.h >>conftest.$ac_ext
14107cat >>conftest.$ac_ext <<_ACEOF
14108/* end confdefs.h. */
14109$ac_includes_default
14110#include <$ac_header>
14111_ACEOF
14112rm -f conftest.$ac_objext
14113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14114 (eval $ac_compile) 2>conftest.er1
a848cd7e 14115 ac_status=$?
ac1cb8d3
VS
14116 grep -v '^ *+' conftest.er1 >conftest.err
14117 rm -f conftest.er1
14118 cat conftest.err >&5
a848cd7e
SC
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); } &&
8c539582 14121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; } &&
14127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129 (eval $ac_try) 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; }; then
14133 ac_header_compiler=yes
14134else
14135 echo "$as_me: failed program was:" >&5
14136sed 's/^/| /' conftest.$ac_ext >&5
14137
14138ac_header_compiler=no
14139fi
ac1cb8d3 14140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14141echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14142echo "${ECHO_T}$ac_header_compiler" >&6
14143
14144# Is the header present?
14145echo "$as_me:$LINENO: checking $ac_header presence" >&5
14146echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14147cat >conftest.$ac_ext <<_ACEOF
14148/* confdefs.h. */
14149_ACEOF
14150cat confdefs.h >>conftest.$ac_ext
14151cat >>conftest.$ac_ext <<_ACEOF
14152/* end confdefs.h. */
14153#include <$ac_header>
14154_ACEOF
14155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14157 ac_status=$?
14158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } >/dev/null; then
14163 if test -s conftest.err; then
14164 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14166 else
14167 ac_cpp_err=
14168 fi
14169else
14170 ac_cpp_err=yes
14171fi
14172if test -z "$ac_cpp_err"; then
14173 ac_header_preproc=yes
14174else
14175 echo "$as_me: failed program was:" >&5
14176sed 's/^/| /' conftest.$ac_ext >&5
14177
14178 ac_header_preproc=no
14179fi
14180rm -f conftest.err conftest.$ac_ext
14181echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14182echo "${ECHO_T}$ac_header_preproc" >&6
14183
14184# So? What about this header?
ac1cb8d3
VS
14185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14186 yes:no: )
a848cd7e
SC
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14188echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14190echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14191 ac_header_preproc=yes
a848cd7e 14192 ;;
ac1cb8d3 14193 no:yes:* )
a848cd7e
SC
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14195echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14197echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14199echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14201echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14205echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14206 (
14207 cat <<\_ASBOX
ac1cb8d3
VS
14208## ----------------------------------------- ##
14209## Report this to wx-dev@lists.wxwidgets.org ##
14210## ----------------------------------------- ##
a848cd7e
SC
14211_ASBOX
14212 ) |
14213 sed "s/^/$as_me: WARNING: /" >&2
14214 ;;
14215esac
14216echo "$as_me:$LINENO: checking for $ac_header" >&5
14217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14218if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14220else
ac1cb8d3 14221 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14222fi
14223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14225
14226fi
14227if test `eval echo '${'$as_ac_Header'}'` = yes; then
14228 cat >>confdefs.h <<_ACEOF
14229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14230_ACEOF
14231
14232fi
14233
14234done
14235
14236
14237for ac_header in malloc.h
14238do
14239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14240if eval "test \"\${$as_ac_Header+set}\" = set"; then
14241 echo "$as_me:$LINENO: checking for $ac_header" >&5
14242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14243if eval "test \"\${$as_ac_Header+set}\" = set"; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14245fi
14246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14247echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14248else
14249 # Is the header compilable?
14250echo "$as_me:$LINENO: checking $ac_header usability" >&5
14251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14252cat >conftest.$ac_ext <<_ACEOF
14253/* confdefs.h. */
14254_ACEOF
14255cat confdefs.h >>conftest.$ac_ext
14256cat >>conftest.$ac_ext <<_ACEOF
14257/* end confdefs.h. */
14258$ac_includes_default
14259#include <$ac_header>
14260_ACEOF
14261rm -f conftest.$ac_objext
14262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14263 (eval $ac_compile) 2>conftest.er1
a848cd7e 14264 ac_status=$?
ac1cb8d3
VS
14265 grep -v '^ *+' conftest.er1 >conftest.err
14266 rm -f conftest.er1
14267 cat conftest.err >&5
a848cd7e
SC
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } &&
8c539582 14270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 ac_header_compiler=yes
14283else
14284 echo "$as_me: failed program was:" >&5
14285sed 's/^/| /' conftest.$ac_ext >&5
14286
14287ac_header_compiler=no
14288fi
ac1cb8d3 14289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14290echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14291echo "${ECHO_T}$ac_header_compiler" >&6
14292
14293# Is the header present?
14294echo "$as_me:$LINENO: checking $ac_header presence" >&5
14295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14296cat >conftest.$ac_ext <<_ACEOF
14297/* confdefs.h. */
14298_ACEOF
14299cat confdefs.h >>conftest.$ac_ext
14300cat >>conftest.$ac_ext <<_ACEOF
14301/* end confdefs.h. */
14302#include <$ac_header>
14303_ACEOF
14304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14306 ac_status=$?
14307 grep -v '^ *+' conftest.er1 >conftest.err
14308 rm -f conftest.er1
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } >/dev/null; then
14312 if test -s conftest.err; then
14313 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14315 else
14316 ac_cpp_err=
14317 fi
14318else
14319 ac_cpp_err=yes
14320fi
14321if test -z "$ac_cpp_err"; then
14322 ac_header_preproc=yes
14323else
14324 echo "$as_me: failed program was:" >&5
14325sed 's/^/| /' conftest.$ac_ext >&5
14326
14327 ac_header_preproc=no
14328fi
14329rm -f conftest.err conftest.$ac_ext
14330echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14331echo "${ECHO_T}$ac_header_preproc" >&6
14332
14333# So? What about this header?
ac1cb8d3
VS
14334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14335 yes:no: )
a848cd7e
SC
14336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14340 ac_header_preproc=yes
a848cd7e 14341 ;;
ac1cb8d3 14342 no:yes:* )
a848cd7e
SC
14343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14355 (
14356 cat <<\_ASBOX
ac1cb8d3
VS
14357## ----------------------------------------- ##
14358## Report this to wx-dev@lists.wxwidgets.org ##
14359## ----------------------------------------- ##
a848cd7e
SC
14360_ASBOX
14361 ) |
14362 sed "s/^/$as_me: WARNING: /" >&2
14363 ;;
14364esac
14365echo "$as_me:$LINENO: checking for $ac_header" >&5
14366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14367if eval "test \"\${$as_ac_Header+set}\" = set"; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14369else
ac1cb8d3 14370 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14371fi
14372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14374
14375fi
14376if test `eval echo '${'$as_ac_Header'}'` = yes; then
14377 cat >>confdefs.h <<_ACEOF
14378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14379_ACEOF
14380
14381fi
14382
14383done
14384
14385
14386for ac_header in unistd.h
14387do
14388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14389if eval "test \"\${$as_ac_Header+set}\" = set"; then
14390 echo "$as_me:$LINENO: checking for $ac_header" >&5
14391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14392if eval "test \"\${$as_ac_Header+set}\" = set"; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394fi
14395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14397else
14398 # Is the header compilable?
14399echo "$as_me:$LINENO: checking $ac_header usability" >&5
14400echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14401cat >conftest.$ac_ext <<_ACEOF
14402/* confdefs.h. */
14403_ACEOF
14404cat confdefs.h >>conftest.$ac_ext
14405cat >>conftest.$ac_ext <<_ACEOF
14406/* end confdefs.h. */
14407$ac_includes_default
14408#include <$ac_header>
14409_ACEOF
14410rm -f conftest.$ac_objext
14411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14412 (eval $ac_compile) 2>conftest.er1
a848cd7e 14413 ac_status=$?
ac1cb8d3
VS
14414 grep -v '^ *+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
a848cd7e
SC
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
8c539582 14419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 ac_header_compiler=yes
14432else
14433 echo "$as_me: failed program was:" >&5
14434sed 's/^/| /' conftest.$ac_ext >&5
14435
14436ac_header_compiler=no
14437fi
ac1cb8d3 14438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14440echo "${ECHO_T}$ac_header_compiler" >&6
14441
14442# Is the header present?
14443echo "$as_me:$LINENO: checking $ac_header presence" >&5
14444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14445cat >conftest.$ac_ext <<_ACEOF
14446/* confdefs.h. */
14447_ACEOF
14448cat confdefs.h >>conftest.$ac_ext
14449cat >>conftest.$ac_ext <<_ACEOF
14450/* end confdefs.h. */
14451#include <$ac_header>
14452_ACEOF
14453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14455 ac_status=$?
14456 grep -v '^ *+' conftest.er1 >conftest.err
14457 rm -f conftest.er1
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } >/dev/null; then
14461 if test -s conftest.err; then
14462 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14464 else
14465 ac_cpp_err=
14466 fi
14467else
14468 ac_cpp_err=yes
14469fi
14470if test -z "$ac_cpp_err"; then
14471 ac_header_preproc=yes
14472else
14473 echo "$as_me: failed program was:" >&5
14474sed 's/^/| /' conftest.$ac_ext >&5
14475
14476 ac_header_preproc=no
14477fi
14478rm -f conftest.err conftest.$ac_ext
14479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14480echo "${ECHO_T}$ac_header_preproc" >&6
14481
14482# So? What about this header?
ac1cb8d3
VS
14483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14484 yes:no: )
a848cd7e
SC
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14489 ac_header_preproc=yes
a848cd7e 14490 ;;
ac1cb8d3 14491 no:yes:* )
a848cd7e
SC
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14495echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14499echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14504 (
14505 cat <<\_ASBOX
ac1cb8d3
VS
14506## ----------------------------------------- ##
14507## Report this to wx-dev@lists.wxwidgets.org ##
14508## ----------------------------------------- ##
a848cd7e
SC
14509_ASBOX
14510 ) |
14511 sed "s/^/$as_me: WARNING: /" >&2
14512 ;;
14513esac
14514echo "$as_me:$LINENO: checking for $ac_header" >&5
14515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14516if eval "test \"\${$as_ac_Header+set}\" = set"; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518else
ac1cb8d3 14519 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14520fi
14521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14523
14524fi
14525if test `eval echo '${'$as_ac_Header'}'` = yes; then
14526 cat >>confdefs.h <<_ACEOF
14527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14528_ACEOF
14529
14530fi
14531
14532done
14533
14534
14535for ac_header in wchar.h
14536do
14537as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14538if eval "test \"\${$as_ac_Header+set}\" = set"; then
14539 echo "$as_me:$LINENO: checking for $ac_header" >&5
14540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14541if eval "test \"\${$as_ac_Header+set}\" = set"; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14543fi
14544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14546else
14547 # Is the header compilable?
14548echo "$as_me:$LINENO: checking $ac_header usability" >&5
14549echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14550cat >conftest.$ac_ext <<_ACEOF
14551/* confdefs.h. */
14552_ACEOF
14553cat confdefs.h >>conftest.$ac_ext
14554cat >>conftest.$ac_ext <<_ACEOF
14555/* end confdefs.h. */
14556$ac_includes_default
14557#include <$ac_header>
14558_ACEOF
14559rm -f conftest.$ac_objext
14560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14561 (eval $ac_compile) 2>conftest.er1
a848cd7e 14562 ac_status=$?
ac1cb8d3
VS
14563 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1
14565 cat conftest.err >&5
a848cd7e
SC
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
8c539582 14568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } &&
14574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_header_compiler=yes
14581else
14582 echo "$as_me: failed program was:" >&5
14583sed 's/^/| /' conftest.$ac_ext >&5
14584
14585ac_header_compiler=no
14586fi
ac1cb8d3 14587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14588echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14589echo "${ECHO_T}$ac_header_compiler" >&6
14590
14591# Is the header present?
14592echo "$as_me:$LINENO: checking $ac_header presence" >&5
14593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14594cat >conftest.$ac_ext <<_ACEOF
14595/* confdefs.h. */
14596_ACEOF
14597cat confdefs.h >>conftest.$ac_ext
14598cat >>conftest.$ac_ext <<_ACEOF
14599/* end confdefs.h. */
14600#include <$ac_header>
14601_ACEOF
14602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14604 ac_status=$?
14605 grep -v '^ *+' conftest.er1 >conftest.err
14606 rm -f conftest.er1
14607 cat conftest.err >&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } >/dev/null; then
14610 if test -s conftest.err; then
14611 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14613 else
14614 ac_cpp_err=
14615 fi
14616else
14617 ac_cpp_err=yes
14618fi
14619if test -z "$ac_cpp_err"; then
14620 ac_header_preproc=yes
14621else
14622 echo "$as_me: failed program was:" >&5
14623sed 's/^/| /' conftest.$ac_ext >&5
14624
14625 ac_header_preproc=no
14626fi
14627rm -f conftest.err conftest.$ac_ext
14628echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14629echo "${ECHO_T}$ac_header_preproc" >&6
14630
14631# So? What about this header?
ac1cb8d3
VS
14632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14633 yes:no: )
a848cd7e
SC
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14635echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14637echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14638 ac_header_preproc=yes
a848cd7e 14639 ;;
ac1cb8d3 14640 no:yes:* )
a848cd7e
SC
14641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14642echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14644echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14646echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14648echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14652echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14653 (
14654 cat <<\_ASBOX
ac1cb8d3
VS
14655## ----------------------------------------- ##
14656## Report this to wx-dev@lists.wxwidgets.org ##
14657## ----------------------------------------- ##
a848cd7e
SC
14658_ASBOX
14659 ) |
14660 sed "s/^/$as_me: WARNING: /" >&2
14661 ;;
14662esac
14663echo "$as_me:$LINENO: checking for $ac_header" >&5
14664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14665if eval "test \"\${$as_ac_Header+set}\" = set"; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14667else
ac1cb8d3 14668 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14669fi
14670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14672
14673fi
14674if test `eval echo '${'$as_ac_Header'}'` = yes; then
14675 cat >>confdefs.h <<_ACEOF
14676#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14677_ACEOF
14678
14679fi
14680
14681done
14682
14683
14684if test "$ac_cv_header_wchar_h" != "yes"; then
14685
14686for ac_header in wcstr.h
14687do
14688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14689if eval "test \"\${$as_ac_Header+set}\" = set"; then
14690 echo "$as_me:$LINENO: checking for $ac_header" >&5
14691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14692if eval "test \"\${$as_ac_Header+set}\" = set"; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14694fi
14695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14697else
14698 # Is the header compilable?
14699echo "$as_me:$LINENO: checking $ac_header usability" >&5
14700echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14701cat >conftest.$ac_ext <<_ACEOF
14702/* confdefs.h. */
14703_ACEOF
14704cat confdefs.h >>conftest.$ac_ext
14705cat >>conftest.$ac_ext <<_ACEOF
14706/* end confdefs.h. */
14707$ac_includes_default
14708#include <$ac_header>
14709_ACEOF
14710rm -f conftest.$ac_objext
14711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14712 (eval $ac_compile) 2>conftest.er1
a848cd7e 14713 ac_status=$?
ac1cb8d3
VS
14714 grep -v '^ *+' conftest.er1 >conftest.err
14715 rm -f conftest.er1
14716 cat conftest.err >&5
a848cd7e
SC
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); } &&
8c539582 14719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; } &&
14725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 ac_header_compiler=yes
14732else
14733 echo "$as_me: failed program was:" >&5
14734sed 's/^/| /' conftest.$ac_ext >&5
14735
14736ac_header_compiler=no
14737fi
ac1cb8d3 14738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14739echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14740echo "${ECHO_T}$ac_header_compiler" >&6
14741
14742# Is the header present?
14743echo "$as_me:$LINENO: checking $ac_header presence" >&5
14744echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14745cat >conftest.$ac_ext <<_ACEOF
14746/* confdefs.h. */
14747_ACEOF
14748cat confdefs.h >>conftest.$ac_ext
14749cat >>conftest.$ac_ext <<_ACEOF
14750/* end confdefs.h. */
14751#include <$ac_header>
14752_ACEOF
14753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14755 ac_status=$?
14756 grep -v '^ *+' conftest.er1 >conftest.err
14757 rm -f conftest.er1
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } >/dev/null; then
14761 if test -s conftest.err; then
14762 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14764 else
14765 ac_cpp_err=
14766 fi
14767else
14768 ac_cpp_err=yes
14769fi
14770if test -z "$ac_cpp_err"; then
14771 ac_header_preproc=yes
14772else
14773 echo "$as_me: failed program was:" >&5
14774sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 ac_header_preproc=no
14777fi
14778rm -f conftest.err conftest.$ac_ext
14779echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14780echo "${ECHO_T}$ac_header_preproc" >&6
14781
14782# So? What about this header?
ac1cb8d3
VS
14783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14784 yes:no: )
a848cd7e
SC
14785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14788echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14789 ac_header_preproc=yes
a848cd7e 14790 ;;
ac1cb8d3 14791 no:yes:* )
a848cd7e
SC
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14793echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14795echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14797echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14799echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14803echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14804 (
14805 cat <<\_ASBOX
ac1cb8d3
VS
14806## ----------------------------------------- ##
14807## Report this to wx-dev@lists.wxwidgets.org ##
14808## ----------------------------------------- ##
a848cd7e
SC
14809_ASBOX
14810 ) |
14811 sed "s/^/$as_me: WARNING: /" >&2
14812 ;;
14813esac
14814echo "$as_me:$LINENO: checking for $ac_header" >&5
14815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14816if eval "test \"\${$as_ac_Header+set}\" = set"; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14818else
ac1cb8d3 14819 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14820fi
14821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14823
14824fi
14825if test `eval echo '${'$as_ac_Header'}'` = yes; then
14826 cat >>confdefs.h <<_ACEOF
14827#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14828_ACEOF
14829
14830fi
14831
14832done
14833
14834fi
14835
14836
14837for ac_header in fnmatch.h
14838do
14839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14840if eval "test \"\${$as_ac_Header+set}\" = set"; then
14841 echo "$as_me:$LINENO: checking for $ac_header" >&5
14842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14843if eval "test \"\${$as_ac_Header+set}\" = set"; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14845fi
14846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14848else
14849 # Is the header compilable?
14850echo "$as_me:$LINENO: checking $ac_header usability" >&5
14851echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14852cat >conftest.$ac_ext <<_ACEOF
14853/* confdefs.h. */
14854_ACEOF
14855cat confdefs.h >>conftest.$ac_ext
14856cat >>conftest.$ac_ext <<_ACEOF
14857/* end confdefs.h. */
14858$ac_includes_default
14859#include <$ac_header>
14860_ACEOF
14861rm -f conftest.$ac_objext
14862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14863 (eval $ac_compile) 2>conftest.er1
a848cd7e 14864 ac_status=$?
ac1cb8d3
VS
14865 grep -v '^ *+' conftest.er1 >conftest.err
14866 rm -f conftest.er1
14867 cat conftest.err >&5
a848cd7e
SC
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } &&
8c539582 14870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; } &&
14876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_header_compiler=yes
14883else
14884 echo "$as_me: failed program was:" >&5
14885sed 's/^/| /' conftest.$ac_ext >&5
14886
14887ac_header_compiler=no
14888fi
ac1cb8d3 14889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14891echo "${ECHO_T}$ac_header_compiler" >&6
14892
14893# Is the header present?
14894echo "$as_me:$LINENO: checking $ac_header presence" >&5
14895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14896cat >conftest.$ac_ext <<_ACEOF
14897/* confdefs.h. */
14898_ACEOF
14899cat confdefs.h >>conftest.$ac_ext
14900cat >>conftest.$ac_ext <<_ACEOF
14901/* end confdefs.h. */
14902#include <$ac_header>
14903_ACEOF
14904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14906 ac_status=$?
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } >/dev/null; then
14912 if test -s conftest.err; then
14913 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14915 else
14916 ac_cpp_err=
14917 fi
14918else
14919 ac_cpp_err=yes
14920fi
14921if test -z "$ac_cpp_err"; then
14922 ac_header_preproc=yes
14923else
14924 echo "$as_me: failed program was:" >&5
14925sed 's/^/| /' conftest.$ac_ext >&5
14926
14927 ac_header_preproc=no
14928fi
14929rm -f conftest.err conftest.$ac_ext
14930echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14931echo "${ECHO_T}$ac_header_preproc" >&6
14932
14933# So? What about this header?
ac1cb8d3
VS
14934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14935 yes:no: )
a848cd7e
SC
14936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14939echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14940 ac_header_preproc=yes
a848cd7e 14941 ;;
ac1cb8d3 14942 no:yes:* )
a848cd7e
SC
14943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14946echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14948echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14950echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14954echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14955 (
14956 cat <<\_ASBOX
ac1cb8d3
VS
14957## ----------------------------------------- ##
14958## Report this to wx-dev@lists.wxwidgets.org ##
14959## ----------------------------------------- ##
a848cd7e
SC
14960_ASBOX
14961 ) |
14962 sed "s/^/$as_me: WARNING: /" >&2
14963 ;;
14964esac
14965echo "$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
14969else
ac1cb8d3 14970 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14971fi
14972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14974
14975fi
14976if test `eval echo '${'$as_ac_Header'}'` = yes; then
14977 cat >>confdefs.h <<_ACEOF
14978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14979_ACEOF
14980
14981fi
14982
14983done
14984
14985
14986if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14987
14988for ac_func in fnmatch
14989do
14990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14991echo "$as_me:$LINENO: checking for $ac_func" >&5
14992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14993if eval "test \"\${$as_ac_var+set}\" = set"; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14995else
14996 cat >conftest.$ac_ext <<_ACEOF
14997/* confdefs.h. */
14998_ACEOF
14999cat confdefs.h >>conftest.$ac_ext
15000cat >>conftest.$ac_ext <<_ACEOF
15001/* end confdefs.h. */
ac1cb8d3
VS
15002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15004#define $ac_func innocuous_$ac_func
15005
a848cd7e
SC
15006/* System header to define __stub macros and hopefully few prototypes,
15007 which can conflict with char $ac_func (); below.
15008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15009 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 15010
a848cd7e
SC
15011#ifdef __STDC__
15012# include <limits.h>
15013#else
15014# include <assert.h>
15015#endif
ac1cb8d3
VS
15016
15017#undef $ac_func
15018
a848cd7e
SC
15019/* Override any gcc2 internal prototype to avoid an error. */
15020#ifdef __cplusplus
15021extern "C"
15022{
15023#endif
15024/* We use char because int might match the return type of a gcc2
15025 builtin and then its argument prototype would still apply. */
15026char $ac_func ();
15027/* The GNU C library defines this for functions which it implements
15028 to always fail with ENOSYS. Some functions are actually named
15029 something starting with __ and the normal name is an alias. */
15030#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15031choke me
15032#else
15033char (*f) () = $ac_func;
15034#endif
15035#ifdef __cplusplus
15036}
15037#endif
15038
15039int
15040main ()
15041{
15042return f != $ac_func;
15043 ;
15044 return 0;
15045}
15046_ACEOF
15047rm -f conftest.$ac_objext conftest$ac_exeext
15048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15049 (eval $ac_link) 2>conftest.er1
a848cd7e 15050 ac_status=$?
ac1cb8d3
VS
15051 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1
15053 cat conftest.err >&5
a848cd7e
SC
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
8c539582 15056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; } &&
15062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 eval "$as_ac_var=yes"
15069else
15070 echo "$as_me: failed program was:" >&5
15071sed 's/^/| /' conftest.$ac_ext >&5
15072
15073eval "$as_ac_var=no"
15074fi
ac1cb8d3
VS
15075rm -f conftest.err conftest.$ac_objext \
15076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15077fi
15078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15079echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15080if test `eval echo '${'$as_ac_var'}'` = yes; then
15081 cat >>confdefs.h <<_ACEOF
15082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15083_ACEOF
15084
15085fi
15086done
15087
15088fi
15089
15090
15091for ac_header in langinfo.h
15092do
15093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15094if eval "test \"\${$as_ac_Header+set}\" = set"; then
15095 echo "$as_me:$LINENO: checking for $ac_header" >&5
15096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15097if eval "test \"\${$as_ac_Header+set}\" = set"; then
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15099fi
15100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15102else
15103 # Is the header compilable?
15104echo "$as_me:$LINENO: checking $ac_header usability" >&5
15105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15106cat >conftest.$ac_ext <<_ACEOF
15107/* confdefs.h. */
15108_ACEOF
15109cat confdefs.h >>conftest.$ac_ext
15110cat >>conftest.$ac_ext <<_ACEOF
15111/* end confdefs.h. */
15112$ac_includes_default
15113#include <$ac_header>
15114_ACEOF
15115rm -f conftest.$ac_objext
15116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15117 (eval $ac_compile) 2>conftest.er1
a848cd7e 15118 ac_status=$?
ac1cb8d3
VS
15119 grep -v '^ *+' conftest.er1 >conftest.err
15120 rm -f conftest.er1
15121 cat conftest.err >&5
a848cd7e
SC
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } &&
8c539582 15124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; } &&
15130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136 ac_header_compiler=yes
15137else
15138 echo "$as_me: failed program was:" >&5
15139sed 's/^/| /' conftest.$ac_ext >&5
15140
15141ac_header_compiler=no
15142fi
ac1cb8d3 15143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15145echo "${ECHO_T}$ac_header_compiler" >&6
15146
15147# Is the header present?
15148echo "$as_me:$LINENO: checking $ac_header presence" >&5
15149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15150cat >conftest.$ac_ext <<_ACEOF
15151/* confdefs.h. */
15152_ACEOF
15153cat confdefs.h >>conftest.$ac_ext
15154cat >>conftest.$ac_ext <<_ACEOF
15155/* end confdefs.h. */
15156#include <$ac_header>
15157_ACEOF
15158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15160 ac_status=$?
15161 grep -v '^ *+' conftest.er1 >conftest.err
15162 rm -f conftest.er1
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } >/dev/null; then
15166 if test -s conftest.err; then
15167 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15169 else
15170 ac_cpp_err=
15171 fi
15172else
15173 ac_cpp_err=yes
15174fi
15175if test -z "$ac_cpp_err"; then
15176 ac_header_preproc=yes
15177else
15178 echo "$as_me: failed program was:" >&5
15179sed 's/^/| /' conftest.$ac_ext >&5
15180
15181 ac_header_preproc=no
15182fi
15183rm -f conftest.err conftest.$ac_ext
15184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15185echo "${ECHO_T}$ac_header_preproc" >&6
15186
15187# So? What about this header?
ac1cb8d3
VS
15188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15189 yes:no: )
a848cd7e
SC
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15194 ac_header_preproc=yes
a848cd7e 15195 ;;
ac1cb8d3 15196 no:yes:* )
a848cd7e
SC
15197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15209 (
15210 cat <<\_ASBOX
ac1cb8d3
VS
15211## ----------------------------------------- ##
15212## Report this to wx-dev@lists.wxwidgets.org ##
15213## ----------------------------------------- ##
a848cd7e
SC
15214_ASBOX
15215 ) |
15216 sed "s/^/$as_me: WARNING: /" >&2
15217 ;;
15218esac
15219echo "$as_me:$LINENO: checking for $ac_header" >&5
15220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15221if eval "test \"\${$as_ac_Header+set}\" = set"; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15223else
ac1cb8d3 15224 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15225fi
15226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15228
15229fi
15230if test `eval echo '${'$as_ac_Header'}'` = yes; then
15231 cat >>confdefs.h <<_ACEOF
15232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15233_ACEOF
15234
15235fi
15236
15237done
15238
15239
15240case "${host}" in
15241 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15242 if test $ac_cv_header_langinfo_h = "yes" \
15243 -a \( "$wx_cv_gccversion" = "EMX2" \
15244 -o "$wx_cv_gccversion" = "EMX3" \
15245 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15246 LIBS="$LIBS -lintl"
15247 fi
15248 ;;
15249esac
15250
15251if test "$wxUSE_GUI" = "yes"; then
15252 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15253
15254for ac_header in X11/Xlib.h
15255do
15256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15257if eval "test \"\${$as_ac_Header+set}\" = set"; then
15258 echo "$as_me:$LINENO: checking for $ac_header" >&5
15259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15260if eval "test \"\${$as_ac_Header+set}\" = set"; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15262fi
15263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15265else
15266 # Is the header compilable?
15267echo "$as_me:$LINENO: checking $ac_header usability" >&5
15268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15269cat >conftest.$ac_ext <<_ACEOF
15270/* confdefs.h. */
15271_ACEOF
15272cat confdefs.h >>conftest.$ac_ext
15273cat >>conftest.$ac_ext <<_ACEOF
15274/* end confdefs.h. */
15275$ac_includes_default
15276#include <$ac_header>
15277_ACEOF
15278rm -f conftest.$ac_objext
15279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15280 (eval $ac_compile) 2>conftest.er1
a848cd7e 15281 ac_status=$?
ac1cb8d3
VS
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
a848cd7e
SC
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
8c539582 15287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; } &&
15293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15296 ac_status=$?
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; }; then
15299 ac_header_compiler=yes
15300else
15301 echo "$as_me: failed program was:" >&5
15302sed 's/^/| /' conftest.$ac_ext >&5
15303
15304ac_header_compiler=no
15305fi
ac1cb8d3 15306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15308echo "${ECHO_T}$ac_header_compiler" >&6
15309
15310# Is the header present?
15311echo "$as_me:$LINENO: checking $ac_header presence" >&5
15312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15313cat >conftest.$ac_ext <<_ACEOF
15314/* confdefs.h. */
15315_ACEOF
15316cat confdefs.h >>conftest.$ac_ext
15317cat >>conftest.$ac_ext <<_ACEOF
15318/* end confdefs.h. */
15319#include <$ac_header>
15320_ACEOF
15321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15323 ac_status=$?
15324 grep -v '^ *+' conftest.er1 >conftest.err
15325 rm -f conftest.er1
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } >/dev/null; then
15329 if test -s conftest.err; then
15330 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15332 else
15333 ac_cpp_err=
15334 fi
15335else
15336 ac_cpp_err=yes
15337fi
15338if test -z "$ac_cpp_err"; then
15339 ac_header_preproc=yes
15340else
15341 echo "$as_me: failed program was:" >&5
15342sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 ac_header_preproc=no
15345fi
15346rm -f conftest.err conftest.$ac_ext
15347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15348echo "${ECHO_T}$ac_header_preproc" >&6
15349
15350# So? What about this header?
ac1cb8d3
VS
15351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15352 yes:no: )
a848cd7e
SC
15353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15357 ac_header_preproc=yes
a848cd7e 15358 ;;
ac1cb8d3 15359 no:yes:* )
a848cd7e
SC
15360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15372 (
15373 cat <<\_ASBOX
ac1cb8d3
VS
15374## ----------------------------------------- ##
15375## Report this to wx-dev@lists.wxwidgets.org ##
15376## ----------------------------------------- ##
a848cd7e
SC
15377_ASBOX
15378 ) |
15379 sed "s/^/$as_me: WARNING: /" >&2
15380 ;;
15381esac
15382echo "$as_me:$LINENO: checking for $ac_header" >&5
15383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15384if eval "test \"\${$as_ac_Header+set}\" = set"; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386else
ac1cb8d3 15387 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15388fi
15389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15391
15392fi
15393if test `eval echo '${'$as_ac_Header'}'` = yes; then
15394 cat >>confdefs.h <<_ACEOF
15395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15396_ACEOF
15397
15398fi
15399
15400done
15401
15402
15403for ac_header in X11/XKBlib.h
15404do
15405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15406echo "$as_me:$LINENO: checking for $ac_header" >&5
15407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15408if eval "test \"\${$as_ac_Header+set}\" = set"; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15410else
15411 cat >conftest.$ac_ext <<_ACEOF
15412/* confdefs.h. */
15413_ACEOF
15414cat confdefs.h >>conftest.$ac_ext
15415cat >>conftest.$ac_ext <<_ACEOF
15416/* end confdefs.h. */
15417
15418 #if HAVE_X11_XLIB_H
15419 #include <X11/Xlib.h>
15420 #endif
15421
15422
15423#include <$ac_header>
15424_ACEOF
15425rm -f conftest.$ac_objext
15426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15427 (eval $ac_compile) 2>conftest.er1
a848cd7e 15428 ac_status=$?
ac1cb8d3
VS
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
a848cd7e
SC
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
8c539582 15434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15446 eval "$as_ac_Header=yes"
15447else
15448 echo "$as_me: failed program was:" >&5
15449sed 's/^/| /' conftest.$ac_ext >&5
15450
15451eval "$as_ac_Header=no"
15452fi
ac1cb8d3 15453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15454fi
15455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15457if test `eval echo '${'$as_ac_Header'}'` = yes; then
15458 cat >>confdefs.h <<_ACEOF
15459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15460_ACEOF
15461
15462fi
15463
15464done
15465
15466 fi
15467fi
15468
15469
15470echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15471echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15472if test "${ac_cv_c_const+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474else
15475 cat >conftest.$ac_ext <<_ACEOF
15476/* confdefs.h. */
15477_ACEOF
15478cat confdefs.h >>conftest.$ac_ext
15479cat >>conftest.$ac_ext <<_ACEOF
15480/* end confdefs.h. */
15481
15482int
15483main ()
15484{
15485/* FIXME: Include the comments suggested by Paul. */
15486#ifndef __cplusplus
15487 /* Ultrix mips cc rejects this. */
15488 typedef int charset[2];
15489 const charset x;
15490 /* SunOS 4.1.1 cc rejects this. */
15491 char const *const *ccp;
15492 char **p;
15493 /* NEC SVR4.0.2 mips cc rejects this. */
15494 struct point {int x, y;};
15495 static struct point const zero = {0,0};
15496 /* AIX XL C 1.02.0.0 rejects this.
15497 It does not let you subtract one const X* pointer from another in
15498 an arm of an if-expression whose if-part is not a constant
15499 expression */
15500 const char *g = "string";
15501 ccp = &g + (g ? g-g : 0);
15502 /* HPUX 7.0 cc rejects these. */
15503 ++ccp;
15504 p = (char**) ccp;
15505 ccp = (char const *const *) p;
15506 { /* SCO 3.2v4 cc rejects this. */
15507 char *t;
15508 char const *s = 0 ? (char *) 0 : (char const *) 0;
15509
15510 *t++ = 0;
15511 }
15512 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15513 int x[] = {25, 17};
15514 const int *foo = &x[0];
15515 ++foo;
15516 }
15517 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15518 typedef const int *iptr;
15519 iptr p = 0;
15520 ++p;
15521 }
15522 { /* AIX XL C 1.02.0.0 rejects this saying
15523 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15524 struct s { int j; const int *ap[3]; };
15525 struct s *b; b->j = 5;
15526 }
15527 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15528 const int foo = 10;
15529 }
15530#endif
15531
15532 ;
15533 return 0;
15534}
15535_ACEOF
15536rm -f conftest.$ac_objext
15537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15538 (eval $ac_compile) 2>conftest.er1
a848cd7e 15539 ac_status=$?
ac1cb8d3
VS
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
a848cd7e
SC
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
8c539582 15545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15548 ac_status=$?
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; } &&
15551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15557 ac_cv_c_const=yes
15558else
15559 echo "$as_me: failed program was:" >&5
15560sed 's/^/| /' conftest.$ac_ext >&5
15561
15562ac_cv_c_const=no
15563fi
ac1cb8d3 15564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15565fi
15566echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15567echo "${ECHO_T}$ac_cv_c_const" >&6
15568if test $ac_cv_c_const = no; then
15569
15570cat >>confdefs.h <<\_ACEOF
15571#define const
15572_ACEOF
15573
15574fi
15575
15576echo "$as_me:$LINENO: checking for inline" >&5
15577echo $ECHO_N "checking for inline... $ECHO_C" >&6
15578if test "${ac_cv_c_inline+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15580else
15581 ac_cv_c_inline=no
15582for ac_kw in inline __inline__ __inline; do
15583 cat >conftest.$ac_ext <<_ACEOF
15584/* confdefs.h. */
15585_ACEOF
15586cat confdefs.h >>conftest.$ac_ext
15587cat >>conftest.$ac_ext <<_ACEOF
15588/* end confdefs.h. */
15589#ifndef __cplusplus
15590typedef int foo_t;
15591static $ac_kw foo_t static_foo () {return 0; }
15592$ac_kw foo_t foo () {return 0; }
15593#endif
15594
15595_ACEOF
15596rm -f conftest.$ac_objext
15597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15598 (eval $ac_compile) 2>conftest.er1
a848cd7e 15599 ac_status=$?
ac1cb8d3
VS
15600 grep -v '^ *+' conftest.er1 >conftest.err
15601 rm -f conftest.er1
15602 cat conftest.err >&5
a848cd7e
SC
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } &&
8c539582 15605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; } &&
15611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15613 (eval $ac_try) 2>&5
15614 ac_status=$?
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 ac_cv_c_inline=$ac_kw; break
15618else
15619 echo "$as_me: failed program was:" >&5
15620sed 's/^/| /' conftest.$ac_ext >&5
15621
15622fi
ac1cb8d3 15623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15624done
15625
15626fi
15627echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15628echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15629
15630
a848cd7e
SC
15631case $ac_cv_c_inline in
15632 inline | yes) ;;
ac1cb8d3
VS
15633 *)
15634 case $ac_cv_c_inline in
15635 no) ac_val=;;
15636 *) ac_val=$ac_cv_c_inline;;
15637 esac
15638 cat >>confdefs.h <<_ACEOF
15639#ifndef __cplusplus
15640#define inline $ac_val
15641#endif
de59c161 15642_ACEOF
ac1cb8d3 15643 ;;
a848cd7e
SC
15644esac
15645
15646
15647echo "$as_me:$LINENO: checking for char" >&5
15648echo $ECHO_N "checking for char... $ECHO_C" >&6
15649if test "${ac_cv_type_char+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15651else
15652 cat >conftest.$ac_ext <<_ACEOF
15653/* confdefs.h. */
15654_ACEOF
15655cat confdefs.h >>conftest.$ac_ext
15656cat >>conftest.$ac_ext <<_ACEOF
15657/* end confdefs.h. */
15658$ac_includes_default
15659int
15660main ()
15661{
15662if ((char *) 0)
15663 return 0;
15664if (sizeof (char))
15665 return 0;
15666 ;
15667 return 0;
15668}
15669_ACEOF
15670rm -f conftest.$ac_objext
15671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15672 (eval $ac_compile) 2>conftest.er1
a848cd7e 15673 ac_status=$?
ac1cb8d3
VS
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
a848cd7e
SC
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
8c539582 15679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691 ac_cv_type_char=yes
15692else
15693 echo "$as_me: failed program was:" >&5
15694sed 's/^/| /' conftest.$ac_ext >&5
15695
15696ac_cv_type_char=no
15697fi
ac1cb8d3 15698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15699fi
15700echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15701echo "${ECHO_T}$ac_cv_type_char" >&6
15702
15703echo "$as_me:$LINENO: checking size of char" >&5
15704echo $ECHO_N "checking size of char... $ECHO_C" >&6
15705if test "${ac_cv_sizeof_char+set}" = set; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15707else
15708 if test "$ac_cv_type_char" = yes; then
15709 # The cast to unsigned long works around a bug in the HP C Compiler
15710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15712 # This bug is HP SR number 8606223364.
15713 if test "$cross_compiling" = yes; then
15714 # Depending upon the size, compute the lo and hi bounds.
15715cat >conftest.$ac_ext <<_ACEOF
15716/* confdefs.h. */
15717_ACEOF
15718cat confdefs.h >>conftest.$ac_ext
15719cat >>conftest.$ac_ext <<_ACEOF
15720/* end confdefs.h. */
15721$ac_includes_default
15722int
15723main ()
15724{
15725static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15726test_array [0] = 0
15727
15728 ;
15729 return 0;
15730}
15731_ACEOF
15732rm -f conftest.$ac_objext
15733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15734 (eval $ac_compile) 2>conftest.er1
a848cd7e 15735 ac_status=$?
ac1cb8d3
VS
15736 grep -v '^ *+' conftest.er1 >conftest.err
15737 rm -f conftest.er1
15738 cat conftest.err >&5
a848cd7e
SC
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } &&
8c539582 15741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 ac_lo=0 ac_mid=0
15754 while :; do
15755 cat >conftest.$ac_ext <<_ACEOF
15756/* confdefs.h. */
15757_ACEOF
15758cat confdefs.h >>conftest.$ac_ext
15759cat >>conftest.$ac_ext <<_ACEOF
15760/* end confdefs.h. */
15761$ac_includes_default
15762int
15763main ()
15764{
15765static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15766test_array [0] = 0
15767
15768 ;
15769 return 0;
15770}
15771_ACEOF
15772rm -f conftest.$ac_objext
15773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15774 (eval $ac_compile) 2>conftest.er1
a848cd7e 15775 ac_status=$?
ac1cb8d3
VS
15776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
a848cd7e
SC
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
8c539582 15781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; } &&
15787 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 ac_hi=$ac_mid; break
15794else
15795 echo "$as_me: failed program was:" >&5
15796sed 's/^/| /' conftest.$ac_ext >&5
15797
15798ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15799 if test $ac_lo -le $ac_mid; then
15800 ac_lo= ac_hi=
15801 break
15802 fi
15803 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15804fi
ac1cb8d3 15805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15806 done
15807else
15808 echo "$as_me: failed program was:" >&5
15809sed 's/^/| /' conftest.$ac_ext >&5
15810
15811cat >conftest.$ac_ext <<_ACEOF
15812/* confdefs.h. */
15813_ACEOF
15814cat confdefs.h >>conftest.$ac_ext
15815cat >>conftest.$ac_ext <<_ACEOF
15816/* end confdefs.h. */
15817$ac_includes_default
15818int
15819main ()
15820{
15821static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15822test_array [0] = 0
15823
15824 ;
15825 return 0;
15826}
15827_ACEOF
15828rm -f conftest.$ac_objext
15829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15830 (eval $ac_compile) 2>conftest.er1
a848cd7e 15831 ac_status=$?
ac1cb8d3
VS
15832 grep -v '^ *+' conftest.er1 >conftest.err
15833 rm -f conftest.er1
15834 cat conftest.err >&5
a848cd7e
SC
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); } &&
8c539582 15837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_hi=-1 ac_mid=-1
15850 while :; do
15851 cat >conftest.$ac_ext <<_ACEOF
15852/* confdefs.h. */
15853_ACEOF
15854cat confdefs.h >>conftest.$ac_ext
15855cat >>conftest.$ac_ext <<_ACEOF
15856/* end confdefs.h. */
15857$ac_includes_default
15858int
15859main ()
15860{
15861static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15862test_array [0] = 0
15863
15864 ;
15865 return 0;
15866}
15867_ACEOF
15868rm -f conftest.$ac_objext
15869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15870 (eval $ac_compile) 2>conftest.er1
a848cd7e 15871 ac_status=$?
ac1cb8d3
VS
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
a848cd7e
SC
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } &&
8c539582 15877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15880 ac_status=$?
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; } &&
15883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; }; then
15889 ac_lo=$ac_mid; break
15890else
15891 echo "$as_me: failed program was:" >&5
15892sed 's/^/| /' conftest.$ac_ext >&5
15893
15894ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15895 if test $ac_mid -le $ac_hi; then
15896 ac_lo= ac_hi=
15897 break
15898 fi
15899 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15900fi
ac1cb8d3 15901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15902 done
15903else
15904 echo "$as_me: failed program was:" >&5
15905sed 's/^/| /' conftest.$ac_ext >&5
15906
15907ac_lo= ac_hi=
15908fi
ac1cb8d3 15909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15910fi
ac1cb8d3 15911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15912# Binary search between lo and hi bounds.
15913while test "x$ac_lo" != "x$ac_hi"; do
15914 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15915 cat >conftest.$ac_ext <<_ACEOF
15916/* confdefs.h. */
15917_ACEOF
15918cat confdefs.h >>conftest.$ac_ext
15919cat >>conftest.$ac_ext <<_ACEOF
15920/* end confdefs.h. */
15921$ac_includes_default
15922int
15923main ()
15924{
15925static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15926test_array [0] = 0
15927
15928 ;
15929 return 0;
15930}
15931_ACEOF
15932rm -f conftest.$ac_objext
15933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15934 (eval $ac_compile) 2>conftest.er1
a848cd7e 15935 ac_status=$?
ac1cb8d3
VS
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
a848cd7e
SC
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
8c539582 15941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; } &&
15947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 ac_hi=$ac_mid
15954else
15955 echo "$as_me: failed program was:" >&5
15956sed 's/^/| /' conftest.$ac_ext >&5
15957
15958ac_lo=`expr '(' $ac_mid ')' + 1`
15959fi
ac1cb8d3 15960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15961done
15962case $ac_lo in
15963?*) ac_cv_sizeof_char=$ac_lo;;
15964'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15965See \`config.log' for more details." >&5
15966echo "$as_me: error: cannot compute sizeof (char), 77
15967See \`config.log' for more details." >&2;}
15968 { (exit 1); exit 1; }; } ;;
15969esac
15970else
15971 if test "$cross_compiling" = yes; then
8c539582
RL
15972 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15973echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15974 { (exit 1); exit 1; }; }
15975else
15976 cat >conftest.$ac_ext <<_ACEOF
15977/* confdefs.h. */
15978_ACEOF
15979cat confdefs.h >>conftest.$ac_ext
15980cat >>conftest.$ac_ext <<_ACEOF
15981/* end confdefs.h. */
15982$ac_includes_default
15983long longval () { return (long) (sizeof (char)); }
15984unsigned long ulongval () { return (long) (sizeof (char)); }
15985#include <stdio.h>
15986#include <stdlib.h>
15987int
15988main ()
15989{
15990
15991 FILE *f = fopen ("conftest.val", "w");
15992 if (! f)
15993 exit (1);
15994 if (((long) (sizeof (char))) < 0)
15995 {
15996 long i = longval ();
15997 if (i != ((long) (sizeof (char))))
15998 exit (1);
15999 fprintf (f, "%ld\n", i);
16000 }
16001 else
16002 {
16003 unsigned long i = ulongval ();
16004 if (i != ((long) (sizeof (char))))
16005 exit (1);
16006 fprintf (f, "%lu\n", i);
16007 }
16008 exit (ferror (f) || fclose (f) != 0);
16009
16010 ;
16011 return 0;
16012}
16013_ACEOF
16014rm -f conftest$ac_exeext
16015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16016 (eval $ac_link) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; }; then
16025 ac_cv_sizeof_char=`cat conftest.val`
16026else
16027 echo "$as_me: program exited with status $ac_status" >&5
16028echo "$as_me: failed program was:" >&5
16029sed 's/^/| /' conftest.$ac_ext >&5
16030
16031( exit $ac_status )
16032{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16033See \`config.log' for more details." >&5
16034echo "$as_me: error: cannot compute sizeof (char), 77
16035See \`config.log' for more details." >&2;}
16036 { (exit 1); exit 1; }; }
16037fi
ac1cb8d3 16038rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16039fi
16040fi
16041rm -f conftest.val
16042else
16043 ac_cv_sizeof_char=0
16044fi
16045fi
16046echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16047echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16048cat >>confdefs.h <<_ACEOF
16049#define SIZEOF_CHAR $ac_cv_sizeof_char
16050_ACEOF
16051
16052
16053echo "$as_me:$LINENO: checking for short" >&5
16054echo $ECHO_N "checking for short... $ECHO_C" >&6
16055if test "${ac_cv_type_short+set}" = set; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16057else
16058 cat >conftest.$ac_ext <<_ACEOF
16059/* confdefs.h. */
16060_ACEOF
16061cat confdefs.h >>conftest.$ac_ext
16062cat >>conftest.$ac_ext <<_ACEOF
16063/* end confdefs.h. */
16064$ac_includes_default
16065int
16066main ()
16067{
16068if ((short *) 0)
16069 return 0;
16070if (sizeof (short))
16071 return 0;
16072 ;
16073 return 0;
16074}
16075_ACEOF
16076rm -f conftest.$ac_objext
16077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16078 (eval $ac_compile) 2>conftest.er1
a848cd7e 16079 ac_status=$?
ac1cb8d3
VS
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
a848cd7e
SC
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } &&
8c539582 16085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 ac_cv_type_short=yes
16098else
16099 echo "$as_me: failed program was:" >&5
16100sed 's/^/| /' conftest.$ac_ext >&5
16101
16102ac_cv_type_short=no
16103fi
ac1cb8d3 16104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16105fi
16106echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16107echo "${ECHO_T}$ac_cv_type_short" >&6
16108
16109echo "$as_me:$LINENO: checking size of short" >&5
16110echo $ECHO_N "checking size of short... $ECHO_C" >&6
16111if test "${ac_cv_sizeof_short+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16113else
16114 if test "$ac_cv_type_short" = yes; then
16115 # The cast to unsigned long works around a bug in the HP C Compiler
16116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16118 # This bug is HP SR number 8606223364.
16119 if test "$cross_compiling" = yes; then
16120 # Depending upon the size, compute the lo and hi bounds.
16121cat >conftest.$ac_ext <<_ACEOF
16122/* confdefs.h. */
16123_ACEOF
16124cat confdefs.h >>conftest.$ac_ext
16125cat >>conftest.$ac_ext <<_ACEOF
16126/* end confdefs.h. */
16127$ac_includes_default
16128int
16129main ()
16130{
16131static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16132test_array [0] = 0
16133
16134 ;
16135 return 0;
16136}
16137_ACEOF
16138rm -f conftest.$ac_objext
16139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16140 (eval $ac_compile) 2>conftest.er1
a848cd7e 16141 ac_status=$?
ac1cb8d3
VS
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
a848cd7e
SC
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
8c539582 16147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; } &&
16153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; }; then
16159 ac_lo=0 ac_mid=0
16160 while :; do
16161 cat >conftest.$ac_ext <<_ACEOF
16162/* confdefs.h. */
16163_ACEOF
16164cat confdefs.h >>conftest.$ac_ext
16165cat >>conftest.$ac_ext <<_ACEOF
16166/* end confdefs.h. */
16167$ac_includes_default
16168int
16169main ()
16170{
16171static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16172test_array [0] = 0
16173
16174 ;
16175 return 0;
16176}
16177_ACEOF
16178rm -f conftest.$ac_objext
16179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16180 (eval $ac_compile) 2>conftest.er1
a848cd7e 16181 ac_status=$?
ac1cb8d3
VS
16182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
a848cd7e
SC
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
8c539582 16187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 ac_hi=$ac_mid; break
16200else
16201 echo "$as_me: failed program was:" >&5
16202sed 's/^/| /' conftest.$ac_ext >&5
16203
16204ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16205 if test $ac_lo -le $ac_mid; then
16206 ac_lo= ac_hi=
16207 break
16208 fi
16209 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16210fi
ac1cb8d3 16211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16212 done
16213else
16214 echo "$as_me: failed program was:" >&5
16215sed 's/^/| /' conftest.$ac_ext >&5
16216
16217cat >conftest.$ac_ext <<_ACEOF
16218/* confdefs.h. */
16219_ACEOF
16220cat confdefs.h >>conftest.$ac_ext
16221cat >>conftest.$ac_ext <<_ACEOF
16222/* end confdefs.h. */
16223$ac_includes_default
16224int
16225main ()
16226{
16227static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16228test_array [0] = 0
16229
16230 ;
16231 return 0;
16232}
16233_ACEOF
16234rm -f conftest.$ac_objext
16235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16236 (eval $ac_compile) 2>conftest.er1
a848cd7e 16237 ac_status=$?
ac1cb8d3
VS
16238 grep -v '^ *+' conftest.er1 >conftest.err
16239 rm -f conftest.er1
16240 cat conftest.err >&5
a848cd7e
SC
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } &&
8c539582 16243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; } &&
16249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_hi=-1 ac_mid=-1
16256 while :; do
16257 cat >conftest.$ac_ext <<_ACEOF
16258/* confdefs.h. */
16259_ACEOF
16260cat confdefs.h >>conftest.$ac_ext
16261cat >>conftest.$ac_ext <<_ACEOF
16262/* end confdefs.h. */
16263$ac_includes_default
16264int
16265main ()
16266{
16267static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16268test_array [0] = 0
16269
16270 ;
16271 return 0;
16272}
16273_ACEOF
16274rm -f conftest.$ac_objext
16275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16276 (eval $ac_compile) 2>conftest.er1
a848cd7e 16277 ac_status=$?
ac1cb8d3
VS
16278 grep -v '^ *+' conftest.er1 >conftest.err
16279 rm -f conftest.er1
16280 cat conftest.err >&5
a848cd7e
SC
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } &&
8c539582 16283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 ac_lo=$ac_mid; break
16296else
16297 echo "$as_me: failed program was:" >&5
16298sed 's/^/| /' conftest.$ac_ext >&5
16299
16300ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16301 if test $ac_mid -le $ac_hi; then
16302 ac_lo= ac_hi=
16303 break
16304 fi
16305 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16306fi
ac1cb8d3 16307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16308 done
16309else
16310 echo "$as_me: failed program was:" >&5
16311sed 's/^/| /' conftest.$ac_ext >&5
16312
16313ac_lo= ac_hi=
16314fi
ac1cb8d3 16315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16316fi
ac1cb8d3 16317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16318# Binary search between lo and hi bounds.
16319while test "x$ac_lo" != "x$ac_hi"; do
16320 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16321 cat >conftest.$ac_ext <<_ACEOF
16322/* confdefs.h. */
16323_ACEOF
16324cat confdefs.h >>conftest.$ac_ext
16325cat >>conftest.$ac_ext <<_ACEOF
16326/* end confdefs.h. */
16327$ac_includes_default
16328int
16329main ()
16330{
16331static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16332test_array [0] = 0
16333
16334 ;
16335 return 0;
16336}
16337_ACEOF
16338rm -f conftest.$ac_objext
16339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16340 (eval $ac_compile) 2>conftest.er1
a848cd7e 16341 ac_status=$?
ac1cb8d3
VS
16342 grep -v '^ *+' conftest.er1 >conftest.err
16343 rm -f conftest.er1
16344 cat conftest.err >&5
a848cd7e
SC
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } &&
8c539582 16347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; } &&
16353 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; }; then
16359 ac_hi=$ac_mid
16360else
16361 echo "$as_me: failed program was:" >&5
16362sed 's/^/| /' conftest.$ac_ext >&5
16363
16364ac_lo=`expr '(' $ac_mid ')' + 1`
16365fi
ac1cb8d3 16366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16367done
16368case $ac_lo in
16369?*) ac_cv_sizeof_short=$ac_lo;;
16370'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16371See \`config.log' for more details." >&5
16372echo "$as_me: error: cannot compute sizeof (short), 77
16373See \`config.log' for more details." >&2;}
16374 { (exit 1); exit 1; }; } ;;
16375esac
16376else
16377 if test "$cross_compiling" = yes; then
8c539582
RL
16378 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16379echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16380 { (exit 1); exit 1; }; }
16381else
16382 cat >conftest.$ac_ext <<_ACEOF
16383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
16388$ac_includes_default
16389long longval () { return (long) (sizeof (short)); }
16390unsigned long ulongval () { return (long) (sizeof (short)); }
16391#include <stdio.h>
16392#include <stdlib.h>
16393int
16394main ()
16395{
16396
16397 FILE *f = fopen ("conftest.val", "w");
16398 if (! f)
16399 exit (1);
16400 if (((long) (sizeof (short))) < 0)
16401 {
16402 long i = longval ();
16403 if (i != ((long) (sizeof (short))))
16404 exit (1);
16405 fprintf (f, "%ld\n", i);
16406 }
16407 else
16408 {
16409 unsigned long i = ulongval ();
16410 if (i != ((long) (sizeof (short))))
16411 exit (1);
16412 fprintf (f, "%lu\n", i);
16413 }
16414 exit (ferror (f) || fclose (f) != 0);
16415
16416 ;
16417 return 0;
16418}
16419_ACEOF
16420rm -f conftest$ac_exeext
16421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16422 (eval $ac_link) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427 (eval $ac_try) 2>&5
16428 ac_status=$?
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; }; then
16431 ac_cv_sizeof_short=`cat conftest.val`
16432else
16433 echo "$as_me: program exited with status $ac_status" >&5
16434echo "$as_me: failed program was:" >&5
16435sed 's/^/| /' conftest.$ac_ext >&5
16436
16437( exit $ac_status )
16438{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16439See \`config.log' for more details." >&5
16440echo "$as_me: error: cannot compute sizeof (short), 77
16441See \`config.log' for more details." >&2;}
16442 { (exit 1); exit 1; }; }
16443fi
ac1cb8d3 16444rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16445fi
16446fi
16447rm -f conftest.val
16448else
16449 ac_cv_sizeof_short=0
16450fi
16451fi
16452echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16453echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16454cat >>confdefs.h <<_ACEOF
16455#define SIZEOF_SHORT $ac_cv_sizeof_short
16456_ACEOF
16457
16458
16459echo "$as_me:$LINENO: checking for void *" >&5
16460echo $ECHO_N "checking for void *... $ECHO_C" >&6
16461if test "${ac_cv_type_void_p+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16463else
16464 cat >conftest.$ac_ext <<_ACEOF
16465/* confdefs.h. */
16466_ACEOF
16467cat confdefs.h >>conftest.$ac_ext
16468cat >>conftest.$ac_ext <<_ACEOF
16469/* end confdefs.h. */
16470$ac_includes_default
16471int
16472main ()
16473{
16474if ((void * *) 0)
16475 return 0;
16476if (sizeof (void *))
16477 return 0;
16478 ;
16479 return 0;
16480}
16481_ACEOF
16482rm -f conftest.$ac_objext
16483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16484 (eval $ac_compile) 2>conftest.er1
a848cd7e 16485 ac_status=$?
ac1cb8d3
VS
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
a848cd7e
SC
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
8c539582 16491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } &&
16497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_cv_type_void_p=yes
16504else
16505 echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
16508ac_cv_type_void_p=no
16509fi
ac1cb8d3 16510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16511fi
16512echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16513echo "${ECHO_T}$ac_cv_type_void_p" >&6
16514
16515echo "$as_me:$LINENO: checking size of void *" >&5
16516echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16517if test "${ac_cv_sizeof_void_p+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16519else
16520 if test "$ac_cv_type_void_p" = yes; then
16521 # The cast to unsigned long works around a bug in the HP C Compiler
16522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16524 # This bug is HP SR number 8606223364.
16525 if test "$cross_compiling" = yes; then
16526 # Depending upon the size, compute the lo and hi bounds.
16527cat >conftest.$ac_ext <<_ACEOF
16528/* confdefs.h. */
16529_ACEOF
16530cat confdefs.h >>conftest.$ac_ext
16531cat >>conftest.$ac_ext <<_ACEOF
16532/* end confdefs.h. */
16533$ac_includes_default
16534int
16535main ()
16536{
16537static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16538test_array [0] = 0
16539
16540 ;
16541 return 0;
16542}
16543_ACEOF
16544rm -f conftest.$ac_objext
16545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16546 (eval $ac_compile) 2>conftest.er1
a848cd7e 16547 ac_status=$?
ac1cb8d3
VS
16548 grep -v '^ *+' conftest.er1 >conftest.err
16549 rm -f conftest.er1
16550 cat conftest.err >&5
a848cd7e
SC
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
8c539582 16553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_lo=0 ac_mid=0
16566 while :; do
16567 cat >conftest.$ac_ext <<_ACEOF
16568/* confdefs.h. */
16569_ACEOF
16570cat confdefs.h >>conftest.$ac_ext
16571cat >>conftest.$ac_ext <<_ACEOF
16572/* end confdefs.h. */
16573$ac_includes_default
16574int
16575main ()
16576{
16577static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16578test_array [0] = 0
16579
16580 ;
16581 return 0;
16582}
16583_ACEOF
16584rm -f conftest.$ac_objext
16585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16586 (eval $ac_compile) 2>conftest.er1
a848cd7e 16587 ac_status=$?
ac1cb8d3
VS
16588 grep -v '^ *+' conftest.er1 >conftest.err
16589 rm -f conftest.er1
16590 cat conftest.err >&5
a848cd7e
SC
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } &&
8c539582 16593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; } &&
16599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_hi=$ac_mid; break
16606else
16607 echo "$as_me: failed program was:" >&5
16608sed 's/^/| /' conftest.$ac_ext >&5
16609
16610ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16611 if test $ac_lo -le $ac_mid; then
16612 ac_lo= ac_hi=
16613 break
16614 fi
16615 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16616fi
ac1cb8d3 16617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16618 done
16619else
16620 echo "$as_me: failed program was:" >&5
16621sed 's/^/| /' conftest.$ac_ext >&5
16622
16623cat >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 *))) < 0)];
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); } &&
8c539582 16649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 ac_hi=-1 ac_mid=-1
16662 while :; do
16663 cat >conftest.$ac_ext <<_ACEOF
16664/* confdefs.h. */
16665_ACEOF
16666cat confdefs.h >>conftest.$ac_ext
16667cat >>conftest.$ac_ext <<_ACEOF
16668/* end confdefs.h. */
16669$ac_includes_default
16670int
16671main ()
16672{
16673static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16674test_array [0] = 0
16675
16676 ;
16677 return 0;
16678}
16679_ACEOF
16680rm -f conftest.$ac_objext
16681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16682 (eval $ac_compile) 2>conftest.er1
a848cd7e 16683 ac_status=$?
ac1cb8d3
VS
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
a848cd7e
SC
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
8c539582 16689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_lo=$ac_mid; break
16702else
16703 echo "$as_me: failed program was:" >&5
16704sed 's/^/| /' conftest.$ac_ext >&5
16705
16706ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16707 if test $ac_mid -le $ac_hi; then
16708 ac_lo= ac_hi=
16709 break
16710 fi
16711 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16712fi
ac1cb8d3 16713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16714 done
16715else
16716 echo "$as_me: failed program was:" >&5
16717sed 's/^/| /' conftest.$ac_ext >&5
16718
16719ac_lo= ac_hi=
16720fi
ac1cb8d3 16721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16722fi
ac1cb8d3 16723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16724# Binary search between lo and hi bounds.
16725while test "x$ac_lo" != "x$ac_hi"; do
16726 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16727 cat >conftest.$ac_ext <<_ACEOF
16728/* confdefs.h. */
16729_ACEOF
16730cat confdefs.h >>conftest.$ac_ext
16731cat >>conftest.$ac_ext <<_ACEOF
16732/* end confdefs.h. */
16733$ac_includes_default
16734int
16735main ()
16736{
16737static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16738test_array [0] = 0
16739
16740 ;
16741 return 0;
16742}
16743_ACEOF
16744rm -f conftest.$ac_objext
16745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16746 (eval $ac_compile) 2>conftest.er1
a848cd7e 16747 ac_status=$?
ac1cb8d3
VS
16748 grep -v '^ *+' conftest.er1 >conftest.err
16749 rm -f conftest.er1
16750 cat conftest.err >&5
a848cd7e
SC
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } &&
8c539582 16753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16765 ac_hi=$ac_mid
16766else
16767 echo "$as_me: failed program was:" >&5
16768sed 's/^/| /' conftest.$ac_ext >&5
16769
16770ac_lo=`expr '(' $ac_mid ')' + 1`
16771fi
ac1cb8d3 16772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16773done
16774case $ac_lo in
16775?*) ac_cv_sizeof_void_p=$ac_lo;;
16776'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16777See \`config.log' for more details." >&5
16778echo "$as_me: error: cannot compute sizeof (void *), 77
16779See \`config.log' for more details." >&2;}
16780 { (exit 1); exit 1; }; } ;;
16781esac
16782else
16783 if test "$cross_compiling" = yes; then
8c539582
RL
16784 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16785echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16786 { (exit 1); exit 1; }; }
16787else
16788 cat >conftest.$ac_ext <<_ACEOF
16789/* confdefs.h. */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h. */
16794$ac_includes_default
16795long longval () { return (long) (sizeof (void *)); }
16796unsigned long ulongval () { return (long) (sizeof (void *)); }
16797#include <stdio.h>
16798#include <stdlib.h>
16799int
16800main ()
16801{
16802
16803 FILE *f = fopen ("conftest.val", "w");
16804 if (! f)
16805 exit (1);
16806 if (((long) (sizeof (void *))) < 0)
16807 {
16808 long i = longval ();
16809 if (i != ((long) (sizeof (void *))))
16810 exit (1);
16811 fprintf (f, "%ld\n", i);
16812 }
16813 else
16814 {
16815 unsigned long i = ulongval ();
16816 if (i != ((long) (sizeof (void *))))
16817 exit (1);
16818 fprintf (f, "%lu\n", i);
16819 }
16820 exit (ferror (f) || fclose (f) != 0);
16821
16822 ;
16823 return 0;
16824}
16825_ACEOF
16826rm -f conftest$ac_exeext
16827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16828 (eval $ac_link) 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_cv_sizeof_void_p=`cat conftest.val`
16838else
16839 echo "$as_me: program exited with status $ac_status" >&5
16840echo "$as_me: failed program was:" >&5
16841sed 's/^/| /' conftest.$ac_ext >&5
16842
16843( exit $ac_status )
16844{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16845See \`config.log' for more details." >&5
16846echo "$as_me: error: cannot compute sizeof (void *), 77
16847See \`config.log' for more details." >&2;}
16848 { (exit 1); exit 1; }; }
16849fi
ac1cb8d3 16850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16851fi
16852fi
16853rm -f conftest.val
16854else
16855 ac_cv_sizeof_void_p=0
16856fi
16857fi
16858echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16859echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16860cat >>confdefs.h <<_ACEOF
16861#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16862_ACEOF
16863
16864
16865echo "$as_me:$LINENO: checking for int" >&5
16866echo $ECHO_N "checking for int... $ECHO_C" >&6
16867if test "${ac_cv_type_int+set}" = set; then
16868 echo $ECHO_N "(cached) $ECHO_C" >&6
16869else
16870 cat >conftest.$ac_ext <<_ACEOF
16871/* confdefs.h. */
16872_ACEOF
16873cat confdefs.h >>conftest.$ac_ext
16874cat >>conftest.$ac_ext <<_ACEOF
16875/* end confdefs.h. */
16876$ac_includes_default
16877int
16878main ()
16879{
16880if ((int *) 0)
16881 return 0;
16882if (sizeof (int))
16883 return 0;
16884 ;
16885 return 0;
16886}
16887_ACEOF
16888rm -f conftest.$ac_objext
16889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16890 (eval $ac_compile) 2>conftest.er1
a848cd7e 16891 ac_status=$?
ac1cb8d3
VS
16892 grep -v '^ *+' conftest.er1 >conftest.err
16893 rm -f conftest.er1
16894 cat conftest.err >&5
a848cd7e
SC
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); } &&
8c539582 16897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905 (eval $ac_try) 2>&5
16906 ac_status=$?
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; }; then
16909 ac_cv_type_int=yes
16910else
16911 echo "$as_me: failed program was:" >&5
16912sed 's/^/| /' conftest.$ac_ext >&5
16913
16914ac_cv_type_int=no
16915fi
ac1cb8d3 16916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16917fi
16918echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16919echo "${ECHO_T}$ac_cv_type_int" >&6
16920
16921echo "$as_me:$LINENO: checking size of int" >&5
16922echo $ECHO_N "checking size of int... $ECHO_C" >&6
16923if test "${ac_cv_sizeof_int+set}" = set; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16925else
16926 if test "$ac_cv_type_int" = yes; then
16927 # The cast to unsigned long works around a bug in the HP C Compiler
16928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16930 # This bug is HP SR number 8606223364.
16931 if test "$cross_compiling" = yes; then
16932 # Depending upon the size, compute the lo and hi bounds.
16933cat >conftest.$ac_ext <<_ACEOF
16934/* confdefs.h. */
16935_ACEOF
16936cat confdefs.h >>conftest.$ac_ext
16937cat >>conftest.$ac_ext <<_ACEOF
16938/* end confdefs.h. */
16939$ac_includes_default
16940int
16941main ()
16942{
16943static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16944test_array [0] = 0
16945
16946 ;
16947 return 0;
16948}
16949_ACEOF
16950rm -f conftest.$ac_objext
16951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16952 (eval $ac_compile) 2>conftest.er1
a848cd7e 16953 ac_status=$?
ac1cb8d3
VS
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
a848cd7e
SC
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } &&
8c539582 16959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; } &&
16965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16968 ac_status=$?
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; }; then
16971 ac_lo=0 ac_mid=0
16972 while :; do
16973 cat >conftest.$ac_ext <<_ACEOF
16974/* confdefs.h. */
16975_ACEOF
16976cat confdefs.h >>conftest.$ac_ext
16977cat >>conftest.$ac_ext <<_ACEOF
16978/* end confdefs.h. */
16979$ac_includes_default
16980int
16981main ()
16982{
16983static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16984test_array [0] = 0
16985
16986 ;
16987 return 0;
16988}
16989_ACEOF
16990rm -f conftest.$ac_objext
16991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16992 (eval $ac_compile) 2>conftest.er1
a848cd7e 16993 ac_status=$?
ac1cb8d3
VS
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
a848cd7e
SC
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
8c539582 16999 { ac_try='test -z "$ac_c_werror_flag" || 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_hi=$ac_mid; break
17012else
17013 echo "$as_me: failed program was:" >&5
17014sed 's/^/| /' conftest.$ac_ext >&5
17015
17016ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17017 if test $ac_lo -le $ac_mid; then
17018 ac_lo= ac_hi=
17019 break
17020 fi
17021 ac_mid=`expr 2 '*' $ac_mid + 1`
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
17029cat >conftest.$ac_ext <<_ACEOF
17030/* confdefs.h. */
17031_ACEOF
17032cat confdefs.h >>conftest.$ac_ext
17033cat >>conftest.$ac_ext <<_ACEOF
17034/* end confdefs.h. */
17035$ac_includes_default
17036int
17037main ()
17038{
17039static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17040test_array [0] = 0
17041
17042 ;
17043 return 0;
17044}
17045_ACEOF
17046rm -f conftest.$ac_objext
17047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17048 (eval $ac_compile) 2>conftest.er1
a848cd7e 17049 ac_status=$?
ac1cb8d3
VS
17050 grep -v '^ *+' conftest.er1 >conftest.err
17051 rm -f conftest.er1
17052 cat conftest.err >&5
a848cd7e
SC
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } &&
8c539582 17055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 ac_hi=-1 ac_mid=-1
17068 while :; do
17069 cat >conftest.$ac_ext <<_ACEOF
17070/* confdefs.h. */
17071_ACEOF
17072cat confdefs.h >>conftest.$ac_ext
17073cat >>conftest.$ac_ext <<_ACEOF
17074/* end confdefs.h. */
17075$ac_includes_default
17076int
17077main ()
17078{
17079static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17080test_array [0] = 0
17081
17082 ;
17083 return 0;
17084}
17085_ACEOF
17086rm -f conftest.$ac_objext
17087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17088 (eval $ac_compile) 2>conftest.er1
a848cd7e 17089 ac_status=$?
ac1cb8d3
VS
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
a848cd7e
SC
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
8c539582 17095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; }; then
17107 ac_lo=$ac_mid; break
17108else
17109 echo "$as_me: failed program was:" >&5
17110sed 's/^/| /' conftest.$ac_ext >&5
17111
17112ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17113 if test $ac_mid -le $ac_hi; then
17114 ac_lo= ac_hi=
17115 break
17116 fi
17117 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17118fi
ac1cb8d3 17119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17120 done
17121else
17122 echo "$as_me: failed program was:" >&5
17123sed 's/^/| /' conftest.$ac_ext >&5
17124
17125ac_lo= ac_hi=
17126fi
ac1cb8d3 17127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17128fi
ac1cb8d3 17129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17130# Binary search between lo and hi bounds.
17131while test "x$ac_lo" != "x$ac_hi"; do
17132 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17133 cat >conftest.$ac_ext <<_ACEOF
17134/* confdefs.h. */
17135_ACEOF
17136cat confdefs.h >>conftest.$ac_ext
17137cat >>conftest.$ac_ext <<_ACEOF
17138/* end confdefs.h. */
17139$ac_includes_default
17140int
17141main ()
17142{
17143static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17144test_array [0] = 0
17145
17146 ;
17147 return 0;
17148}
17149_ACEOF
17150rm -f conftest.$ac_objext
17151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17152 (eval $ac_compile) 2>conftest.er1
a848cd7e 17153 ac_status=$?
ac1cb8d3
VS
17154 grep -v '^ *+' conftest.er1 >conftest.err
17155 rm -f conftest.er1
17156 cat conftest.err >&5
a848cd7e
SC
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } &&
8c539582 17159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17171 ac_hi=$ac_mid
17172else
17173 echo "$as_me: failed program was:" >&5
17174sed 's/^/| /' conftest.$ac_ext >&5
17175
17176ac_lo=`expr '(' $ac_mid ')' + 1`
17177fi
ac1cb8d3 17178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17179done
17180case $ac_lo in
17181?*) ac_cv_sizeof_int=$ac_lo;;
17182'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17183See \`config.log' for more details." >&5
17184echo "$as_me: error: cannot compute sizeof (int), 77
17185See \`config.log' for more details." >&2;}
17186 { (exit 1); exit 1; }; } ;;
17187esac
17188else
17189 if test "$cross_compiling" = yes; then
8c539582
RL
17190 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17191echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17192 { (exit 1); exit 1; }; }
17193else
17194 cat >conftest.$ac_ext <<_ACEOF
17195/* confdefs.h. */
17196_ACEOF
17197cat confdefs.h >>conftest.$ac_ext
17198cat >>conftest.$ac_ext <<_ACEOF
17199/* end confdefs.h. */
17200$ac_includes_default
17201long longval () { return (long) (sizeof (int)); }
17202unsigned long ulongval () { return (long) (sizeof (int)); }
17203#include <stdio.h>
17204#include <stdlib.h>
17205int
17206main ()
17207{
17208
17209 FILE *f = fopen ("conftest.val", "w");
17210 if (! f)
17211 exit (1);
17212 if (((long) (sizeof (int))) < 0)
17213 {
17214 long i = longval ();
17215 if (i != ((long) (sizeof (int))))
17216 exit (1);
17217 fprintf (f, "%ld\n", i);
17218 }
17219 else
17220 {
17221 unsigned long i = ulongval ();
17222 if (i != ((long) (sizeof (int))))
17223 exit (1);
17224 fprintf (f, "%lu\n", i);
17225 }
17226 exit (ferror (f) || fclose (f) != 0);
17227
17228 ;
17229 return 0;
17230}
17231_ACEOF
17232rm -f conftest$ac_exeext
17233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17234 (eval $ac_link) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; }; then
17243 ac_cv_sizeof_int=`cat conftest.val`
17244else
17245 echo "$as_me: program exited with status $ac_status" >&5
17246echo "$as_me: failed program was:" >&5
17247sed 's/^/| /' conftest.$ac_ext >&5
17248
17249( exit $ac_status )
17250{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17251See \`config.log' for more details." >&5
17252echo "$as_me: error: cannot compute sizeof (int), 77
17253See \`config.log' for more details." >&2;}
17254 { (exit 1); exit 1; }; }
17255fi
ac1cb8d3 17256rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17257fi
17258fi
17259rm -f conftest.val
17260else
17261 ac_cv_sizeof_int=0
17262fi
17263fi
17264echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17265echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17266cat >>confdefs.h <<_ACEOF
17267#define SIZEOF_INT $ac_cv_sizeof_int
17268_ACEOF
17269
17270
17271echo "$as_me:$LINENO: checking for long" >&5
17272echo $ECHO_N "checking for long... $ECHO_C" >&6
17273if test "${ac_cv_type_long+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17275else
17276 cat >conftest.$ac_ext <<_ACEOF
17277/* confdefs.h. */
17278_ACEOF
17279cat confdefs.h >>conftest.$ac_ext
17280cat >>conftest.$ac_ext <<_ACEOF
17281/* end confdefs.h. */
17282$ac_includes_default
17283int
17284main ()
17285{
17286if ((long *) 0)
17287 return 0;
17288if (sizeof (long))
17289 return 0;
17290 ;
17291 return 0;
17292}
17293_ACEOF
17294rm -f conftest.$ac_objext
17295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17296 (eval $ac_compile) 2>conftest.er1
a848cd7e 17297 ac_status=$?
ac1cb8d3
VS
17298 grep -v '^ *+' conftest.er1 >conftest.err
17299 rm -f conftest.er1
17300 cat conftest.err >&5
a848cd7e
SC
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } &&
8c539582 17303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; } &&
17309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; }; then
17315 ac_cv_type_long=yes
17316else
17317 echo "$as_me: failed program was:" >&5
17318sed 's/^/| /' conftest.$ac_ext >&5
17319
17320ac_cv_type_long=no
17321fi
ac1cb8d3 17322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17323fi
17324echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17325echo "${ECHO_T}$ac_cv_type_long" >&6
17326
17327echo "$as_me:$LINENO: checking size of long" >&5
17328echo $ECHO_N "checking size of long... $ECHO_C" >&6
17329if test "${ac_cv_sizeof_long+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17331else
17332 if test "$ac_cv_type_long" = yes; then
17333 # The cast to unsigned long works around a bug in the HP C Compiler
17334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17336 # This bug is HP SR number 8606223364.
17337 if test "$cross_compiling" = yes; then
17338 # Depending upon the size, compute the lo and hi bounds.
17339cat >conftest.$ac_ext <<_ACEOF
17340/* confdefs.h. */
17341_ACEOF
17342cat confdefs.h >>conftest.$ac_ext
17343cat >>conftest.$ac_ext <<_ACEOF
17344/* end confdefs.h. */
17345$ac_includes_default
17346int
17347main ()
17348{
17349static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17350test_array [0] = 0
17351
17352 ;
17353 return 0;
17354}
17355_ACEOF
17356rm -f conftest.$ac_objext
17357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17358 (eval $ac_compile) 2>conftest.er1
a848cd7e 17359 ac_status=$?
ac1cb8d3
VS
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
a848cd7e
SC
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
8c539582 17365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17368 ac_status=$?
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_lo=0 ac_mid=0
17378 while :; do
17379 cat >conftest.$ac_ext <<_ACEOF
17380/* confdefs.h. */
17381_ACEOF
17382cat confdefs.h >>conftest.$ac_ext
17383cat >>conftest.$ac_ext <<_ACEOF
17384/* end confdefs.h. */
17385$ac_includes_default
17386int
17387main ()
17388{
17389static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17390test_array [0] = 0
17391
17392 ;
17393 return 0;
17394}
17395_ACEOF
17396rm -f conftest.$ac_objext
17397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17398 (eval $ac_compile) 2>conftest.er1
a848cd7e 17399 ac_status=$?
ac1cb8d3
VS
17400 grep -v '^ *+' conftest.er1 >conftest.err
17401 rm -f conftest.er1
17402 cat conftest.err >&5
a848cd7e
SC
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } &&
8c539582 17405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; } &&
17411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 ac_hi=$ac_mid; break
17418else
17419 echo "$as_me: failed program was:" >&5
17420sed 's/^/| /' conftest.$ac_ext >&5
17421
17422ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17423 if test $ac_lo -le $ac_mid; then
17424 ac_lo= ac_hi=
17425 break
17426 fi
17427 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17428fi
ac1cb8d3 17429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17430 done
17431else
17432 echo "$as_me: failed program was:" >&5
17433sed 's/^/| /' conftest.$ac_ext >&5
17434
17435cat >conftest.$ac_ext <<_ACEOF
17436/* confdefs.h. */
17437_ACEOF
17438cat confdefs.h >>conftest.$ac_ext
17439cat >>conftest.$ac_ext <<_ACEOF
17440/* end confdefs.h. */
17441$ac_includes_default
17442int
17443main ()
17444{
17445static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17446test_array [0] = 0
17447
17448 ;
17449 return 0;
17450}
17451_ACEOF
17452rm -f conftest.$ac_objext
17453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17454 (eval $ac_compile) 2>conftest.er1
a848cd7e 17455 ac_status=$?
ac1cb8d3
VS
17456 grep -v '^ *+' conftest.er1 >conftest.err
17457 rm -f conftest.er1
17458 cat conftest.err >&5
a848cd7e
SC
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
8c539582 17461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; } &&
17467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; }; then
17473 ac_hi=-1 ac_mid=-1
17474 while :; do
17475 cat >conftest.$ac_ext <<_ACEOF
17476/* confdefs.h. */
17477_ACEOF
17478cat confdefs.h >>conftest.$ac_ext
17479cat >>conftest.$ac_ext <<_ACEOF
17480/* end confdefs.h. */
17481$ac_includes_default
17482int
17483main ()
17484{
17485static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17486test_array [0] = 0
17487
17488 ;
17489 return 0;
17490}
17491_ACEOF
17492rm -f conftest.$ac_objext
17493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17494 (eval $ac_compile) 2>conftest.er1
a848cd7e 17495 ac_status=$?
ac1cb8d3
VS
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
a848cd7e
SC
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
8c539582 17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ac_lo=$ac_mid; break
17514else
17515 echo "$as_me: failed program was:" >&5
17516sed 's/^/| /' conftest.$ac_ext >&5
17517
17518ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17519 if test $ac_mid -le $ac_hi; then
17520 ac_lo= ac_hi=
17521 break
17522 fi
17523 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17524fi
ac1cb8d3 17525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17526 done
17527else
17528 echo "$as_me: failed program was:" >&5
17529sed 's/^/| /' conftest.$ac_ext >&5
17530
17531ac_lo= ac_hi=
17532fi
ac1cb8d3 17533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17534fi
ac1cb8d3 17535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17536# Binary search between lo and hi bounds.
17537while test "x$ac_lo" != "x$ac_hi"; do
17538 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17539 cat >conftest.$ac_ext <<_ACEOF
17540/* confdefs.h. */
17541_ACEOF
17542cat confdefs.h >>conftest.$ac_ext
17543cat >>conftest.$ac_ext <<_ACEOF
17544/* end confdefs.h. */
17545$ac_includes_default
17546int
17547main ()
17548{
17549static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17550test_array [0] = 0
17551
17552 ;
17553 return 0;
17554}
17555_ACEOF
17556rm -f conftest.$ac_objext
17557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17558 (eval $ac_compile) 2>conftest.er1
a848cd7e 17559 ac_status=$?
ac1cb8d3
VS
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
a848cd7e
SC
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
8c539582 17565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 ac_hi=$ac_mid
17578else
17579 echo "$as_me: failed program was:" >&5
17580sed 's/^/| /' conftest.$ac_ext >&5
17581
17582ac_lo=`expr '(' $ac_mid ')' + 1`
17583fi
ac1cb8d3 17584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17585done
17586case $ac_lo in
17587?*) ac_cv_sizeof_long=$ac_lo;;
17588'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17589See \`config.log' for more details." >&5
17590echo "$as_me: error: cannot compute sizeof (long), 77
17591See \`config.log' for more details." >&2;}
17592 { (exit 1); exit 1; }; } ;;
17593esac
17594else
17595 if test "$cross_compiling" = yes; then
8c539582
RL
17596 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17597echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17598 { (exit 1); exit 1; }; }
17599else
17600 cat >conftest.$ac_ext <<_ACEOF
17601/* confdefs.h. */
17602_ACEOF
17603cat confdefs.h >>conftest.$ac_ext
17604cat >>conftest.$ac_ext <<_ACEOF
17605/* end confdefs.h. */
17606$ac_includes_default
17607long longval () { return (long) (sizeof (long)); }
17608unsigned long ulongval () { return (long) (sizeof (long)); }
17609#include <stdio.h>
17610#include <stdlib.h>
17611int
17612main ()
17613{
17614
17615 FILE *f = fopen ("conftest.val", "w");
17616 if (! f)
17617 exit (1);
17618 if (((long) (sizeof (long))) < 0)
17619 {
17620 long i = longval ();
17621 if (i != ((long) (sizeof (long))))
17622 exit (1);
17623 fprintf (f, "%ld\n", i);
17624 }
17625 else
17626 {
17627 unsigned long i = ulongval ();
17628 if (i != ((long) (sizeof (long))))
17629 exit (1);
17630 fprintf (f, "%lu\n", i);
17631 }
17632 exit (ferror (f) || fclose (f) != 0);
17633
17634 ;
17635 return 0;
17636}
17637_ACEOF
17638rm -f conftest$ac_exeext
17639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17640 (eval $ac_link) 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 ac_cv_sizeof_long=`cat conftest.val`
17650else
17651 echo "$as_me: program exited with status $ac_status" >&5
17652echo "$as_me: failed program was:" >&5
17653sed 's/^/| /' conftest.$ac_ext >&5
17654
17655( exit $ac_status )
17656{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17657See \`config.log' for more details." >&5
17658echo "$as_me: error: cannot compute sizeof (long), 77
17659See \`config.log' for more details." >&2;}
17660 { (exit 1); exit 1; }; }
17661fi
ac1cb8d3 17662rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17663fi
17664fi
17665rm -f conftest.val
17666else
17667 ac_cv_sizeof_long=0
17668fi
17669fi
17670echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17671echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17672cat >>confdefs.h <<_ACEOF
17673#define SIZEOF_LONG $ac_cv_sizeof_long
17674_ACEOF
17675
17676
17677echo "$as_me:$LINENO: checking for size_t" >&5
17678echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17679if test "${ac_cv_type_size_t+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681else
17682 cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
17688$ac_includes_default
17689int
17690main ()
17691{
17692if ((size_t *) 0)
17693 return 0;
17694if (sizeof (size_t))
17695 return 0;
17696 ;
17697 return 0;
17698}
17699_ACEOF
17700rm -f conftest.$ac_objext
17701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17702 (eval $ac_compile) 2>conftest.er1
a848cd7e 17703 ac_status=$?
ac1cb8d3
VS
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
a848cd7e
SC
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
8c539582 17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_cv_type_size_t=yes
17722else
17723 echo "$as_me: failed program was:" >&5
17724sed 's/^/| /' conftest.$ac_ext >&5
17725
17726ac_cv_type_size_t=no
17727fi
ac1cb8d3 17728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17729fi
17730echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17731echo "${ECHO_T}$ac_cv_type_size_t" >&6
17732
17733echo "$as_me:$LINENO: checking size of size_t" >&5
17734echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17735if test "${ac_cv_sizeof_size_t+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17737else
17738 if test "$ac_cv_type_size_t" = yes; then
17739 # The cast to unsigned long works around a bug in the HP C Compiler
17740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17742 # This bug is HP SR number 8606223364.
17743 if test "$cross_compiling" = yes; then
17744 # Depending upon the size, compute the lo and hi bounds.
17745cat >conftest.$ac_ext <<_ACEOF
17746/* confdefs.h. */
17747_ACEOF
17748cat confdefs.h >>conftest.$ac_ext
17749cat >>conftest.$ac_ext <<_ACEOF
17750/* end confdefs.h. */
17751$ac_includes_default
17752int
17753main ()
17754{
17755static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17756test_array [0] = 0
17757
17758 ;
17759 return 0;
17760}
17761_ACEOF
17762rm -f conftest.$ac_objext
17763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17764 (eval $ac_compile) 2>conftest.er1
a848cd7e 17765 ac_status=$?
ac1cb8d3
VS
17766 grep -v '^ *+' conftest.er1 >conftest.err
17767 rm -f conftest.er1
17768 cat conftest.err >&5
a848cd7e
SC
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
8c539582 17771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 ac_lo=0 ac_mid=0
17784 while :; do
17785 cat >conftest.$ac_ext <<_ACEOF
17786/* confdefs.h. */
17787_ACEOF
17788cat confdefs.h >>conftest.$ac_ext
17789cat >>conftest.$ac_ext <<_ACEOF
17790/* end confdefs.h. */
17791$ac_includes_default
17792int
17793main ()
17794{
17795static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17796test_array [0] = 0
17797
17798 ;
17799 return 0;
17800}
17801_ACEOF
17802rm -f conftest.$ac_objext
17803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17804 (eval $ac_compile) 2>conftest.er1
a848cd7e 17805 ac_status=$?
ac1cb8d3
VS
17806 grep -v '^ *+' conftest.er1 >conftest.err
17807 rm -f conftest.er1
17808 cat conftest.err >&5
a848cd7e
SC
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
8c539582 17811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 ac_hi=$ac_mid; break
17824else
17825 echo "$as_me: failed program was:" >&5
17826sed 's/^/| /' conftest.$ac_ext >&5
17827
17828ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17829 if test $ac_lo -le $ac_mid; then
17830 ac_lo= ac_hi=
17831 break
17832 fi
17833 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17834fi
ac1cb8d3 17835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17836 done
17837else
17838 echo "$as_me: failed program was:" >&5
17839sed 's/^/| /' conftest.$ac_ext >&5
17840
17841cat >conftest.$ac_ext <<_ACEOF
17842/* confdefs.h. */
17843_ACEOF
17844cat confdefs.h >>conftest.$ac_ext
17845cat >>conftest.$ac_ext <<_ACEOF
17846/* end confdefs.h. */
17847$ac_includes_default
17848int
17849main ()
17850{
17851static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17852test_array [0] = 0
17853
17854 ;
17855 return 0;
17856}
17857_ACEOF
17858rm -f conftest.$ac_objext
17859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17860 (eval $ac_compile) 2>conftest.er1
a848cd7e 17861 ac_status=$?
ac1cb8d3
VS
17862 grep -v '^ *+' conftest.er1 >conftest.err
17863 rm -f conftest.er1
17864 cat conftest.err >&5
a848cd7e
SC
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } &&
8c539582 17867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17870 ac_status=$?
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; } &&
17873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17876 ac_status=$?
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; }; then
17879 ac_hi=-1 ac_mid=-1
17880 while :; do
17881 cat >conftest.$ac_ext <<_ACEOF
17882/* confdefs.h. */
17883_ACEOF
17884cat confdefs.h >>conftest.$ac_ext
17885cat >>conftest.$ac_ext <<_ACEOF
17886/* end confdefs.h. */
17887$ac_includes_default
17888int
17889main ()
17890{
17891static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17892test_array [0] = 0
17893
17894 ;
17895 return 0;
17896}
17897_ACEOF
17898rm -f conftest.$ac_objext
17899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17900 (eval $ac_compile) 2>conftest.er1
a848cd7e 17901 ac_status=$?
ac1cb8d3
VS
17902 grep -v '^ *+' conftest.er1 >conftest.err
17903 rm -f conftest.er1
17904 cat conftest.err >&5
a848cd7e
SC
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
8c539582 17907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; } &&
17913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; }; then
17919 ac_lo=$ac_mid; break
17920else
17921 echo "$as_me: failed program was:" >&5
17922sed 's/^/| /' conftest.$ac_ext >&5
17923
17924ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17925 if test $ac_mid -le $ac_hi; then
17926 ac_lo= ac_hi=
17927 break
17928 fi
17929 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17930fi
ac1cb8d3 17931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17932 done
17933else
17934 echo "$as_me: failed program was:" >&5
17935sed 's/^/| /' conftest.$ac_ext >&5
17936
17937ac_lo= ac_hi=
17938fi
ac1cb8d3 17939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17940fi
ac1cb8d3 17941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17942# Binary search between lo and hi bounds.
17943while test "x$ac_lo" != "x$ac_hi"; do
17944 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17945 cat >conftest.$ac_ext <<_ACEOF
17946/* confdefs.h. */
17947_ACEOF
17948cat confdefs.h >>conftest.$ac_ext
17949cat >>conftest.$ac_ext <<_ACEOF
17950/* end confdefs.h. */
17951$ac_includes_default
17952int
17953main ()
17954{
17955static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17956test_array [0] = 0
17957
17958 ;
17959 return 0;
17960}
17961_ACEOF
17962rm -f conftest.$ac_objext
17963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17964 (eval $ac_compile) 2>conftest.er1
a848cd7e 17965 ac_status=$?
ac1cb8d3
VS
17966 grep -v '^ *+' conftest.er1 >conftest.err
17967 rm -f conftest.er1
17968 cat conftest.err >&5
a848cd7e
SC
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } &&
8c539582 17971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; } &&
17977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17980 ac_status=$?
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17983 ac_hi=$ac_mid
17984else
17985 echo "$as_me: failed program was:" >&5
17986sed 's/^/| /' conftest.$ac_ext >&5
17987
17988ac_lo=`expr '(' $ac_mid ')' + 1`
17989fi
ac1cb8d3 17990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17991done
17992case $ac_lo in
17993?*) ac_cv_sizeof_size_t=$ac_lo;;
17994'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17995See \`config.log' for more details." >&5
17996echo "$as_me: error: cannot compute sizeof (size_t), 77
17997See \`config.log' for more details." >&2;}
17998 { (exit 1); exit 1; }; } ;;
17999esac
18000else
18001 if test "$cross_compiling" = yes; then
8c539582
RL
18002 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18003echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18004 { (exit 1); exit 1; }; }
18005else
18006 cat >conftest.$ac_ext <<_ACEOF
18007/* confdefs.h. */
18008_ACEOF
18009cat confdefs.h >>conftest.$ac_ext
18010cat >>conftest.$ac_ext <<_ACEOF
18011/* end confdefs.h. */
18012$ac_includes_default
18013long longval () { return (long) (sizeof (size_t)); }
18014unsigned long ulongval () { return (long) (sizeof (size_t)); }
18015#include <stdio.h>
18016#include <stdlib.h>
18017int
18018main ()
18019{
18020
18021 FILE *f = fopen ("conftest.val", "w");
18022 if (! f)
18023 exit (1);
18024 if (((long) (sizeof (size_t))) < 0)
18025 {
18026 long i = longval ();
18027 if (i != ((long) (sizeof (size_t))))
18028 exit (1);
18029 fprintf (f, "%ld\n", i);
18030 }
18031 else
18032 {
18033 unsigned long i = ulongval ();
18034 if (i != ((long) (sizeof (size_t))))
18035 exit (1);
18036 fprintf (f, "%lu\n", i);
18037 }
18038 exit (ferror (f) || fclose (f) != 0);
18039
18040 ;
18041 return 0;
18042}
18043_ACEOF
18044rm -f conftest$ac_exeext
18045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18046 (eval $ac_link) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 ac_cv_sizeof_size_t=`cat conftest.val`
18056else
18057 echo "$as_me: program exited with status $ac_status" >&5
18058echo "$as_me: failed program was:" >&5
18059sed 's/^/| /' conftest.$ac_ext >&5
18060
18061( exit $ac_status )
18062{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18063See \`config.log' for more details." >&5
18064echo "$as_me: error: cannot compute sizeof (size_t), 77
18065See \`config.log' for more details." >&2;}
18066 { (exit 1); exit 1; }; }
18067fi
ac1cb8d3 18068rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18069fi
18070fi
18071rm -f conftest.val
18072else
18073 ac_cv_sizeof_size_t=0
18074fi
18075fi
18076echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18077echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18078cat >>confdefs.h <<_ACEOF
18079#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18080_ACEOF
18081
18082
18083
18084case "${host}" in
18085 arm-*-linux* )
18086 echo "$as_me:$LINENO: checking for long long" >&5
18087echo $ECHO_N "checking for long long... $ECHO_C" >&6
18088if test "${ac_cv_type_long_long+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18090else
18091 cat >conftest.$ac_ext <<_ACEOF
18092/* confdefs.h. */
18093_ACEOF
18094cat confdefs.h >>conftest.$ac_ext
18095cat >>conftest.$ac_ext <<_ACEOF
18096/* end confdefs.h. */
18097$ac_includes_default
18098int
18099main ()
18100{
18101if ((long long *) 0)
18102 return 0;
18103if (sizeof (long long))
18104 return 0;
18105 ;
18106 return 0;
18107}
18108_ACEOF
18109rm -f conftest.$ac_objext
18110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18111 (eval $ac_compile) 2>conftest.er1
a848cd7e 18112 ac_status=$?
ac1cb8d3
VS
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
a848cd7e
SC
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
8c539582 18118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; } &&
18124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 ac_cv_type_long_long=yes
18131else
18132 echo "$as_me: failed program was:" >&5
18133sed 's/^/| /' conftest.$ac_ext >&5
18134
18135ac_cv_type_long_long=no
18136fi
ac1cb8d3 18137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18138fi
18139echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18140echo "${ECHO_T}$ac_cv_type_long_long" >&6
18141
18142echo "$as_me:$LINENO: checking size of long long" >&5
18143echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18144if test "${ac_cv_sizeof_long_long+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18146else
18147 if test "$ac_cv_type_long_long" = yes; then
18148 # The cast to unsigned long works around a bug in the HP C Compiler
18149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18151 # This bug is HP SR number 8606223364.
18152 if test "$cross_compiling" = yes; then
18153 # Depending upon the size, compute the lo and hi bounds.
18154cat >conftest.$ac_ext <<_ACEOF
18155/* confdefs.h. */
18156_ACEOF
18157cat confdefs.h >>conftest.$ac_ext
18158cat >>conftest.$ac_ext <<_ACEOF
18159/* end confdefs.h. */
18160$ac_includes_default
18161int
18162main ()
18163{
18164static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18165test_array [0] = 0
18166
18167 ;
18168 return 0;
18169}
18170_ACEOF
18171rm -f conftest.$ac_objext
18172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18173 (eval $ac_compile) 2>conftest.er1
a848cd7e 18174 ac_status=$?
ac1cb8d3
VS
18175 grep -v '^ *+' conftest.er1 >conftest.err
18176 rm -f conftest.er1
18177 cat conftest.err >&5
a848cd7e
SC
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } &&
8c539582 18180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182 (eval $ac_try) 2>&5
18183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 ac_lo=0 ac_mid=0
18193 while :; do
18194 cat >conftest.$ac_ext <<_ACEOF
18195/* confdefs.h. */
18196_ACEOF
18197cat confdefs.h >>conftest.$ac_ext
18198cat >>conftest.$ac_ext <<_ACEOF
18199/* end confdefs.h. */
18200$ac_includes_default
18201int
18202main ()
18203{
18204static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18205test_array [0] = 0
18206
18207 ;
18208 return 0;
18209}
18210_ACEOF
18211rm -f conftest.$ac_objext
18212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18213 (eval $ac_compile) 2>conftest.er1
a848cd7e 18214 ac_status=$?
ac1cb8d3
VS
18215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
a848cd7e
SC
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } &&
8c539582 18220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222 (eval $ac_try) 2>&5
18223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; } &&
18226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
18232 ac_hi=$ac_mid; break
18233else
18234 echo "$as_me: failed program was:" >&5
18235sed 's/^/| /' conftest.$ac_ext >&5
18236
18237ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18238 if test $ac_lo -le $ac_mid; then
18239 ac_lo= ac_hi=
18240 break
18241 fi
18242 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18243fi
ac1cb8d3 18244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18245 done
18246else
18247 echo "$as_me: failed program was:" >&5
18248sed 's/^/| /' conftest.$ac_ext >&5
18249
18250cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
18256$ac_includes_default
18257int
18258main ()
18259{
18260static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18261test_array [0] = 0
18262
18263 ;
18264 return 0;
18265}
18266_ACEOF
18267rm -f conftest.$ac_objext
18268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18269 (eval $ac_compile) 2>conftest.er1
a848cd7e 18270 ac_status=$?
ac1cb8d3
VS
18271 grep -v '^ *+' conftest.er1 >conftest.err
18272 rm -f conftest.er1
18273 cat conftest.err >&5
a848cd7e
SC
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
8c539582 18276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
18282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
18288 ac_hi=-1 ac_mid=-1
18289 while :; do
18290 cat >conftest.$ac_ext <<_ACEOF
18291/* confdefs.h. */
18292_ACEOF
18293cat confdefs.h >>conftest.$ac_ext
18294cat >>conftest.$ac_ext <<_ACEOF
18295/* end confdefs.h. */
18296$ac_includes_default
18297int
18298main ()
18299{
18300static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18301test_array [0] = 0
18302
18303 ;
18304 return 0;
18305}
18306_ACEOF
18307rm -f conftest.$ac_objext
18308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18309 (eval $ac_compile) 2>conftest.er1
a848cd7e 18310 ac_status=$?
ac1cb8d3
VS
18311 grep -v '^ *+' conftest.er1 >conftest.err
18312 rm -f conftest.er1
18313 cat conftest.err >&5
a848cd7e
SC
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
8c539582 18316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; } &&
18322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; }; then
18328 ac_lo=$ac_mid; break
18329else
18330 echo "$as_me: failed program was:" >&5
18331sed 's/^/| /' conftest.$ac_ext >&5
18332
18333ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18334 if test $ac_mid -le $ac_hi; then
18335 ac_lo= ac_hi=
18336 break
18337 fi
18338 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18339fi
ac1cb8d3 18340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18341 done
18342else
18343 echo "$as_me: failed program was:" >&5
18344sed 's/^/| /' conftest.$ac_ext >&5
18345
18346ac_lo= ac_hi=
18347fi
ac1cb8d3 18348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18349fi
ac1cb8d3 18350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18351# Binary search between lo and hi bounds.
18352while test "x$ac_lo" != "x$ac_hi"; do
18353 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18354 cat >conftest.$ac_ext <<_ACEOF
18355/* confdefs.h. */
18356_ACEOF
18357cat confdefs.h >>conftest.$ac_ext
18358cat >>conftest.$ac_ext <<_ACEOF
18359/* end confdefs.h. */
18360$ac_includes_default
18361int
18362main ()
18363{
18364static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18365test_array [0] = 0
18366
18367 ;
18368 return 0;
18369}
18370_ACEOF
18371rm -f conftest.$ac_objext
18372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18373 (eval $ac_compile) 2>conftest.er1
a848cd7e 18374 ac_status=$?
ac1cb8d3
VS
18375 grep -v '^ *+' conftest.er1 >conftest.err
18376 rm -f conftest.er1
18377 cat conftest.err >&5
a848cd7e
SC
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
8c539582 18380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
18392 ac_hi=$ac_mid
18393else
18394 echo "$as_me: failed program was:" >&5
18395sed 's/^/| /' conftest.$ac_ext >&5
18396
18397ac_lo=`expr '(' $ac_mid ')' + 1`
18398fi
ac1cb8d3 18399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18400done
18401case $ac_lo in
18402?*) ac_cv_sizeof_long_long=$ac_lo;;
18403'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18404See \`config.log' for more details." >&5
18405echo "$as_me: error: cannot compute sizeof (long long), 77
18406See \`config.log' for more details." >&2;}
18407 { (exit 1); exit 1; }; } ;;
18408esac
18409else
18410 if test "$cross_compiling" = yes; then
8c539582
RL
18411 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18412echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18413 { (exit 1); exit 1; }; }
18414else
18415 cat >conftest.$ac_ext <<_ACEOF
18416/* confdefs.h. */
18417_ACEOF
18418cat confdefs.h >>conftest.$ac_ext
18419cat >>conftest.$ac_ext <<_ACEOF
18420/* end confdefs.h. */
18421$ac_includes_default
18422long longval () { return (long) (sizeof (long long)); }
18423unsigned long ulongval () { return (long) (sizeof (long long)); }
18424#include <stdio.h>
18425#include <stdlib.h>
18426int
18427main ()
18428{
18429
18430 FILE *f = fopen ("conftest.val", "w");
18431 if (! f)
18432 exit (1);
18433 if (((long) (sizeof (long long))) < 0)
18434 {
18435 long i = longval ();
18436 if (i != ((long) (sizeof (long long))))
18437 exit (1);
18438 fprintf (f, "%ld\n", i);
18439 }
18440 else
18441 {
18442 unsigned long i = ulongval ();
18443 if (i != ((long) (sizeof (long long))))
18444 exit (1);
18445 fprintf (f, "%lu\n", i);
18446 }
18447 exit (ferror (f) || fclose (f) != 0);
18448
18449 ;
18450 return 0;
18451}
18452_ACEOF
18453rm -f conftest$ac_exeext
18454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18455 (eval $ac_link) 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
18464 ac_cv_sizeof_long_long=`cat conftest.val`
18465else
18466 echo "$as_me: program exited with status $ac_status" >&5
18467echo "$as_me: failed program was:" >&5
18468sed 's/^/| /' conftest.$ac_ext >&5
18469
18470( exit $ac_status )
18471{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18472See \`config.log' for more details." >&5
18473echo "$as_me: error: cannot compute sizeof (long long), 77
18474See \`config.log' for more details." >&2;}
18475 { (exit 1); exit 1; }; }
18476fi
ac1cb8d3 18477rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18478fi
18479fi
18480rm -f conftest.val
18481else
18482 ac_cv_sizeof_long_long=0
18483fi
18484fi
18485echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18486echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18487cat >>confdefs.h <<_ACEOF
18488#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18489_ACEOF
18490
18491
18492 ;;
18493 *-hp-hpux* )
18494 echo "$as_me:$LINENO: checking for long long" >&5
18495echo $ECHO_N "checking for long long... $ECHO_C" >&6
18496if test "${ac_cv_type_long_long+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18498else
18499 cat >conftest.$ac_ext <<_ACEOF
18500/* confdefs.h. */
18501_ACEOF
18502cat confdefs.h >>conftest.$ac_ext
18503cat >>conftest.$ac_ext <<_ACEOF
18504/* end confdefs.h. */
18505$ac_includes_default
18506int
18507main ()
18508{
18509if ((long long *) 0)
18510 return 0;
18511if (sizeof (long long))
18512 return 0;
18513 ;
18514 return 0;
18515}
18516_ACEOF
18517rm -f conftest.$ac_objext
18518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18519 (eval $ac_compile) 2>conftest.er1
a848cd7e 18520 ac_status=$?
ac1cb8d3
VS
18521 grep -v '^ *+' conftest.er1 >conftest.err
18522 rm -f conftest.er1
18523 cat conftest.err >&5
a848cd7e
SC
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
8c539582 18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_cv_type_long_long=yes
18539else
18540 echo "$as_me: failed program was:" >&5
18541sed 's/^/| /' conftest.$ac_ext >&5
18542
18543ac_cv_type_long_long=no
18544fi
ac1cb8d3 18545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18546fi
18547echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18548echo "${ECHO_T}$ac_cv_type_long_long" >&6
18549
18550echo "$as_me:$LINENO: checking size of long long" >&5
18551echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18552if test "${ac_cv_sizeof_long_long+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18554else
18555 if test "$ac_cv_type_long_long" = yes; then
18556 # The cast to unsigned long works around a bug in the HP C Compiler
18557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18559 # This bug is HP SR number 8606223364.
18560 if test "$cross_compiling" = yes; then
18561 # Depending upon the size, compute the lo and hi bounds.
18562cat >conftest.$ac_ext <<_ACEOF
18563/* confdefs.h. */
18564_ACEOF
18565cat confdefs.h >>conftest.$ac_ext
18566cat >>conftest.$ac_ext <<_ACEOF
18567/* end confdefs.h. */
18568$ac_includes_default
18569int
18570main ()
18571{
18572static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18573test_array [0] = 0
18574
18575 ;
18576 return 0;
18577}
18578_ACEOF
18579rm -f conftest.$ac_objext
18580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18581 (eval $ac_compile) 2>conftest.er1
a848cd7e 18582 ac_status=$?
ac1cb8d3
VS
18583 grep -v '^ *+' conftest.er1 >conftest.err
18584 rm -f conftest.er1
18585 cat conftest.err >&5
a848cd7e
SC
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
8c539582 18588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18591 ac_status=$?
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18597 ac_status=$?
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18600 ac_lo=0 ac_mid=0
18601 while :; do
18602 cat >conftest.$ac_ext <<_ACEOF
18603/* confdefs.h. */
18604_ACEOF
18605cat confdefs.h >>conftest.$ac_ext
18606cat >>conftest.$ac_ext <<_ACEOF
18607/* end confdefs.h. */
18608$ac_includes_default
18609int
18610main ()
18611{
18612static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18613test_array [0] = 0
18614
18615 ;
18616 return 0;
18617}
18618_ACEOF
18619rm -f conftest.$ac_objext
18620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18621 (eval $ac_compile) 2>conftest.er1
a848cd7e 18622 ac_status=$?
ac1cb8d3
VS
18623 grep -v '^ *+' conftest.er1 >conftest.err
18624 rm -f conftest.er1
18625 cat conftest.err >&5
a848cd7e
SC
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } &&
8c539582 18628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; }; then
18640 ac_hi=$ac_mid; break
18641else
18642 echo "$as_me: failed program was:" >&5
18643sed 's/^/| /' conftest.$ac_ext >&5
18644
18645ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18646 if test $ac_lo -le $ac_mid; then
18647 ac_lo= ac_hi=
18648 break
18649 fi
18650 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18651fi
ac1cb8d3 18652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18653 done
18654else
18655 echo "$as_me: failed program was:" >&5
18656sed 's/^/| /' conftest.$ac_ext >&5
18657
18658cat >conftest.$ac_ext <<_ACEOF
18659/* confdefs.h. */
18660_ACEOF
18661cat confdefs.h >>conftest.$ac_ext
18662cat >>conftest.$ac_ext <<_ACEOF
18663/* end confdefs.h. */
18664$ac_includes_default
18665int
18666main ()
18667{
18668static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18669test_array [0] = 0
18670
18671 ;
18672 return 0;
18673}
18674_ACEOF
18675rm -f conftest.$ac_objext
18676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18677 (eval $ac_compile) 2>conftest.er1
a848cd7e 18678 ac_status=$?
ac1cb8d3
VS
18679 grep -v '^ *+' conftest.er1 >conftest.err
18680 rm -f conftest.er1
18681 cat conftest.err >&5
a848cd7e
SC
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } &&
8c539582 18684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; } &&
18690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18693 ac_status=$?
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; }; then
18696 ac_hi=-1 ac_mid=-1
18697 while :; do
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); } &&
8c539582 18724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; } &&
18730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18736 ac_lo=$ac_mid; break
18737else
18738 echo "$as_me: failed program was:" >&5
18739sed 's/^/| /' conftest.$ac_ext >&5
18740
18741ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18742 if test $ac_mid -le $ac_hi; then
18743 ac_lo= ac_hi=
18744 break
18745 fi
18746 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18747fi
ac1cb8d3 18748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18749 done
18750else
18751 echo "$as_me: failed program was:" >&5
18752sed 's/^/| /' conftest.$ac_ext >&5
18753
18754ac_lo= ac_hi=
18755fi
ac1cb8d3 18756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18757fi
ac1cb8d3 18758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18759# Binary search between lo and hi bounds.
18760while test "x$ac_lo" != "x$ac_hi"; do
18761 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
18769int
18770main ()
18771{
18772static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18773test_array [0] = 0
18774
18775 ;
18776 return 0;
18777}
18778_ACEOF
18779rm -f conftest.$ac_objext
18780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18781 (eval $ac_compile) 2>conftest.er1
a848cd7e 18782 ac_status=$?
ac1cb8d3
VS
18783 grep -v '^ *+' conftest.er1 >conftest.err
18784 rm -f conftest.er1
18785 cat conftest.err >&5
a848cd7e
SC
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } &&
8c539582 18788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 ac_hi=$ac_mid
18801else
18802 echo "$as_me: failed program was:" >&5
18803sed 's/^/| /' conftest.$ac_ext >&5
18804
18805ac_lo=`expr '(' $ac_mid ')' + 1`
18806fi
ac1cb8d3 18807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18808done
18809case $ac_lo in
18810?*) ac_cv_sizeof_long_long=$ac_lo;;
18811'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18812See \`config.log' for more details." >&5
18813echo "$as_me: error: cannot compute sizeof (long long), 77
18814See \`config.log' for more details." >&2;}
18815 { (exit 1); exit 1; }; } ;;
18816esac
18817else
18818 if test "$cross_compiling" = yes; then
8c539582
RL
18819 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18820echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18821 { (exit 1); exit 1; }; }
18822else
18823 cat >conftest.$ac_ext <<_ACEOF
18824/* confdefs.h. */
18825_ACEOF
18826cat confdefs.h >>conftest.$ac_ext
18827cat >>conftest.$ac_ext <<_ACEOF
18828/* end confdefs.h. */
18829$ac_includes_default
18830long longval () { return (long) (sizeof (long long)); }
18831unsigned long ulongval () { return (long) (sizeof (long long)); }
18832#include <stdio.h>
18833#include <stdlib.h>
18834int
18835main ()
18836{
18837
18838 FILE *f = fopen ("conftest.val", "w");
18839 if (! f)
18840 exit (1);
18841 if (((long) (sizeof (long long))) < 0)
18842 {
18843 long i = longval ();
18844 if (i != ((long) (sizeof (long long))))
18845 exit (1);
18846 fprintf (f, "%ld\n", i);
18847 }
18848 else
18849 {
18850 unsigned long i = ulongval ();
18851 if (i != ((long) (sizeof (long long))))
18852 exit (1);
18853 fprintf (f, "%lu\n", i);
18854 }
18855 exit (ferror (f) || fclose (f) != 0);
18856
18857 ;
18858 return 0;
18859}
18860_ACEOF
18861rm -f conftest$ac_exeext
18862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18863 (eval $ac_link) 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18872 ac_cv_sizeof_long_long=`cat conftest.val`
18873else
18874 echo "$as_me: program exited with status $ac_status" >&5
18875echo "$as_me: failed program was:" >&5
18876sed 's/^/| /' conftest.$ac_ext >&5
18877
18878( exit $ac_status )
18879{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18880See \`config.log' for more details." >&5
18881echo "$as_me: error: cannot compute sizeof (long long), 77
18882See \`config.log' for more details." >&2;}
18883 { (exit 1); exit 1; }; }
18884fi
ac1cb8d3 18885rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18886fi
18887fi
18888rm -f conftest.val
18889else
18890 ac_cv_sizeof_long_long=0
18891fi
18892fi
18893echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18894echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18895cat >>confdefs.h <<_ACEOF
18896#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18897_ACEOF
18898
18899
18900 if test "$ac_cv_sizeof_long_long" != "0"; then
18901 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18902 fi
18903 ;;
18904 * )
18905 echo "$as_me:$LINENO: checking for long long" >&5
18906echo $ECHO_N "checking for long long... $ECHO_C" >&6
18907if test "${ac_cv_type_long_long+set}" = set; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18909else
18910 cat >conftest.$ac_ext <<_ACEOF
18911/* confdefs.h. */
18912_ACEOF
18913cat confdefs.h >>conftest.$ac_ext
18914cat >>conftest.$ac_ext <<_ACEOF
18915/* end confdefs.h. */
18916$ac_includes_default
18917int
18918main ()
18919{
18920if ((long long *) 0)
18921 return 0;
18922if (sizeof (long long))
18923 return 0;
18924 ;
18925 return 0;
18926}
18927_ACEOF
18928rm -f conftest.$ac_objext
18929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18930 (eval $ac_compile) 2>conftest.er1
a848cd7e 18931 ac_status=$?
ac1cb8d3
VS
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
a848cd7e
SC
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } &&
8c539582 18937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; } &&
18943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 ac_cv_type_long_long=yes
18950else
18951 echo "$as_me: failed program was:" >&5
18952sed 's/^/| /' conftest.$ac_ext >&5
18953
18954ac_cv_type_long_long=no
18955fi
ac1cb8d3 18956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18957fi
18958echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18959echo "${ECHO_T}$ac_cv_type_long_long" >&6
18960
18961echo "$as_me:$LINENO: checking size of long long" >&5
18962echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18963if test "${ac_cv_sizeof_long_long+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18965else
18966 if test "$ac_cv_type_long_long" = yes; then
18967 # The cast to unsigned long works around a bug in the HP C Compiler
18968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18970 # This bug is HP SR number 8606223364.
18971 if test "$cross_compiling" = yes; then
18972 # Depending upon the size, compute the lo and hi bounds.
18973cat >conftest.$ac_ext <<_ACEOF
18974/* confdefs.h. */
18975_ACEOF
18976cat confdefs.h >>conftest.$ac_ext
18977cat >>conftest.$ac_ext <<_ACEOF
18978/* end confdefs.h. */
18979$ac_includes_default
18980int
18981main ()
18982{
18983static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18984test_array [0] = 0
18985
18986 ;
18987 return 0;
18988}
18989_ACEOF
18990rm -f conftest.$ac_objext
18991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18992 (eval $ac_compile) 2>conftest.er1
a848cd7e 18993 ac_status=$?
ac1cb8d3
VS
18994 grep -v '^ *+' conftest.er1 >conftest.err
18995 rm -f conftest.er1
18996 cat conftest.err >&5
a848cd7e
SC
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } &&
8c539582 18999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19011 ac_lo=0 ac_mid=0
19012 while :; do
19013 cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h. */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h. */
19019$ac_includes_default
19020int
19021main ()
19022{
19023static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19024test_array [0] = 0
19025
19026 ;
19027 return 0;
19028}
19029_ACEOF
19030rm -f conftest.$ac_objext
19031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19032 (eval $ac_compile) 2>conftest.er1
a848cd7e 19033 ac_status=$?
ac1cb8d3
VS
19034 grep -v '^ *+' conftest.er1 >conftest.err
19035 rm -f conftest.er1
19036 cat conftest.err >&5
a848cd7e
SC
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
8c539582 19039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; } &&
19045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051 ac_hi=$ac_mid; break
19052else
19053 echo "$as_me: failed program was:" >&5
19054sed 's/^/| /' conftest.$ac_ext >&5
19055
19056ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19057 if test $ac_lo -le $ac_mid; then
19058 ac_lo= ac_hi=
19059 break
19060 fi
19061 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19062fi
ac1cb8d3 19063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19064 done
19065else
19066 echo "$as_me: failed program was:" >&5
19067sed 's/^/| /' conftest.$ac_ext >&5
19068
19069cat >conftest.$ac_ext <<_ACEOF
19070/* confdefs.h. */
19071_ACEOF
19072cat confdefs.h >>conftest.$ac_ext
19073cat >>conftest.$ac_ext <<_ACEOF
19074/* end confdefs.h. */
19075$ac_includes_default
19076int
19077main ()
19078{
19079static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19080test_array [0] = 0
19081
19082 ;
19083 return 0;
19084}
19085_ACEOF
19086rm -f conftest.$ac_objext
19087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19088 (eval $ac_compile) 2>conftest.er1
a848cd7e 19089 ac_status=$?
ac1cb8d3
VS
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
a848cd7e
SC
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } &&
8c539582 19095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; } &&
19101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; }; then
19107 ac_hi=-1 ac_mid=-1
19108 while :; do
19109 cat >conftest.$ac_ext <<_ACEOF
19110/* confdefs.h. */
19111_ACEOF
19112cat confdefs.h >>conftest.$ac_ext
19113cat >>conftest.$ac_ext <<_ACEOF
19114/* end confdefs.h. */
19115$ac_includes_default
19116int
19117main ()
19118{
19119static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19120test_array [0] = 0
19121
19122 ;
19123 return 0;
19124}
19125_ACEOF
19126rm -f conftest.$ac_objext
19127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19128 (eval $ac_compile) 2>conftest.er1
a848cd7e 19129 ac_status=$?
ac1cb8d3
VS
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
a848cd7e
SC
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
8c539582 19135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; } &&
19141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 ac_lo=$ac_mid; break
19148else
19149 echo "$as_me: failed program was:" >&5
19150sed 's/^/| /' conftest.$ac_ext >&5
19151
19152ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19153 if test $ac_mid -le $ac_hi; then
19154 ac_lo= ac_hi=
19155 break
19156 fi
19157 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19158fi
ac1cb8d3 19159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19160 done
19161else
19162 echo "$as_me: failed program was:" >&5
19163sed 's/^/| /' conftest.$ac_ext >&5
19164
19165ac_lo= ac_hi=
19166fi
ac1cb8d3 19167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19168fi
ac1cb8d3 19169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19170# Binary search between lo and hi bounds.
19171while test "x$ac_lo" != "x$ac_hi"; do
19172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19173 cat >conftest.$ac_ext <<_ACEOF
19174/* confdefs.h. */
19175_ACEOF
19176cat confdefs.h >>conftest.$ac_ext
19177cat >>conftest.$ac_ext <<_ACEOF
19178/* end confdefs.h. */
19179$ac_includes_default
19180int
19181main ()
19182{
19183static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19184test_array [0] = 0
19185
19186 ;
19187 return 0;
19188}
19189_ACEOF
19190rm -f conftest.$ac_objext
19191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19192 (eval $ac_compile) 2>conftest.er1
a848cd7e 19193 ac_status=$?
ac1cb8d3
VS
19194 grep -v '^ *+' conftest.er1 >conftest.err
19195 rm -f conftest.er1
19196 cat conftest.err >&5
a848cd7e
SC
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
8c539582 19199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; } &&
19205 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 ac_hi=$ac_mid
19212else
19213 echo "$as_me: failed program was:" >&5
19214sed 's/^/| /' conftest.$ac_ext >&5
19215
19216ac_lo=`expr '(' $ac_mid ')' + 1`
19217fi
ac1cb8d3 19218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19219done
19220case $ac_lo in
19221?*) ac_cv_sizeof_long_long=$ac_lo;;
19222'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19223See \`config.log' for more details." >&5
19224echo "$as_me: error: cannot compute sizeof (long long), 77
19225See \`config.log' for more details." >&2;}
19226 { (exit 1); exit 1; }; } ;;
19227esac
19228else
19229 if test "$cross_compiling" = yes; then
8c539582
RL
19230 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19231echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19232 { (exit 1); exit 1; }; }
19233else
19234 cat >conftest.$ac_ext <<_ACEOF
19235/* confdefs.h. */
19236_ACEOF
19237cat confdefs.h >>conftest.$ac_ext
19238cat >>conftest.$ac_ext <<_ACEOF
19239/* end confdefs.h. */
19240$ac_includes_default
19241long longval () { return (long) (sizeof (long long)); }
19242unsigned long ulongval () { return (long) (sizeof (long long)); }
19243#include <stdio.h>
19244#include <stdlib.h>
19245int
19246main ()
19247{
19248
19249 FILE *f = fopen ("conftest.val", "w");
19250 if (! f)
19251 exit (1);
19252 if (((long) (sizeof (long long))) < 0)
19253 {
19254 long i = longval ();
19255 if (i != ((long) (sizeof (long long))))
19256 exit (1);
19257 fprintf (f, "%ld\n", i);
19258 }
19259 else
19260 {
19261 unsigned long i = ulongval ();
19262 if (i != ((long) (sizeof (long long))))
19263 exit (1);
19264 fprintf (f, "%lu\n", i);
19265 }
19266 exit (ferror (f) || fclose (f) != 0);
19267
19268 ;
19269 return 0;
19270}
19271_ACEOF
19272rm -f conftest$ac_exeext
19273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19274 (eval $ac_link) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; }; then
19283 ac_cv_sizeof_long_long=`cat conftest.val`
19284else
19285 echo "$as_me: program exited with status $ac_status" >&5
19286echo "$as_me: failed program was:" >&5
19287sed 's/^/| /' conftest.$ac_ext >&5
19288
19289( exit $ac_status )
19290{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19291See \`config.log' for more details." >&5
19292echo "$as_me: error: cannot compute sizeof (long long), 77
19293See \`config.log' for more details." >&2;}
19294 { (exit 1); exit 1; }; }
19295fi
ac1cb8d3 19296rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19297fi
19298fi
19299rm -f conftest.val
19300else
19301 ac_cv_sizeof_long_long=0
19302fi
19303fi
19304echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19305echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19306cat >>confdefs.h <<_ACEOF
19307#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19308_ACEOF
19309
19310
19311esac
19312
238ecede
MW
19313echo "$as_me:$LINENO: checking for wchar_t" >&5
19314echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19315if test "${ac_cv_type_wchar_t+set}" = set; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19317else
19318 cat >conftest.$ac_ext <<_ACEOF
19319/* confdefs.h. */
19320_ACEOF
19321cat confdefs.h >>conftest.$ac_ext
19322cat >>conftest.$ac_ext <<_ACEOF
19323/* end confdefs.h. */
19324
83d8eb47
MW
19325 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19326 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19327 # error "fake wchar_t"
19328 #endif
19329 #ifdef HAVE_WCHAR_H
19330 # ifdef __CYGWIN__
19331 # include <stddef.h>
19332 # endif
19333 # include <wchar.h>
19334 #endif
19335 #ifdef HAVE_STDLIB_H
19336 # include <stdlib.h>
19337 #endif
19338 #include <stdio.h>
19339
19340
19341
19342int
19343main ()
19344{
19345if ((wchar_t *) 0)
19346 return 0;
19347if (sizeof (wchar_t))
19348 return 0;
19349 ;
19350 return 0;
19351}
19352_ACEOF
19353rm -f conftest.$ac_objext
19354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19355 (eval $ac_compile) 2>conftest.er1
19356 ac_status=$?
19357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
8c539582 19362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest.$ac_objext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_type_wchar_t=yes
19375else
19376 echo "$as_me: failed program was:" >&5
19377sed 's/^/| /' conftest.$ac_ext >&5
19378
19379ac_cv_type_wchar_t=no
19380fi
19381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19382fi
19383echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19384echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19385
a848cd7e
SC
19386echo "$as_me:$LINENO: checking size of wchar_t" >&5
19387echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19388if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19390else
238ecede
MW
19391 if test "$ac_cv_type_wchar_t" = yes; then
19392 # The cast to unsigned long works around a bug in the HP C Compiler
19393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19395 # This bug is HP SR number 8606223364.
19396 if test "$cross_compiling" = yes; then
19397 # Depending upon the size, compute the lo and hi bounds.
19398cat >conftest.$ac_ext <<_ACEOF
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
19404
83d8eb47
MW
19405 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19406 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19407 # error "fake wchar_t"
19408 #endif
19409 #ifdef HAVE_WCHAR_H
19410 # ifdef __CYGWIN__
19411 # include <stddef.h>
19412 # endif
19413 # include <wchar.h>
19414 #endif
19415 #ifdef HAVE_STDLIB_H
19416 # include <stdlib.h>
19417 #endif
19418 #include <stdio.h>
19419
19420
19421
19422int
19423main ()
19424{
19425static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19426test_array [0] = 0
19427
19428 ;
19429 return 0;
19430}
19431_ACEOF
19432rm -f conftest.$ac_objext
19433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19434 (eval $ac_compile) 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
8c539582 19441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; } &&
19447 { ac_try='test -s conftest.$ac_objext'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_lo=0 ac_mid=0
19454 while :; do
19455 cat >conftest.$ac_ext <<_ACEOF
19456/* confdefs.h. */
19457_ACEOF
19458cat confdefs.h >>conftest.$ac_ext
19459cat >>conftest.$ac_ext <<_ACEOF
19460/* end confdefs.h. */
19461
83d8eb47
MW
19462 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19463 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19464 # error "fake wchar_t"
19465 #endif
19466 #ifdef HAVE_WCHAR_H
19467 # ifdef __CYGWIN__
19468 # include <stddef.h>
19469 # endif
19470 # include <wchar.h>
19471 #endif
19472 #ifdef HAVE_STDLIB_H
19473 # include <stdlib.h>
19474 #endif
19475 #include <stdio.h>
19476
19477
19478
19479int
19480main ()
19481{
19482static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19483test_array [0] = 0
19484
19485 ;
19486 return 0;
19487}
19488_ACEOF
19489rm -f conftest.$ac_objext
19490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19491 (eval $ac_compile) 2>conftest.er1
19492 ac_status=$?
19493 grep -v '^ *+' conftest.er1 >conftest.err
19494 rm -f conftest.er1
19495 cat conftest.err >&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } &&
8c539582 19498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; } &&
19504 { ac_try='test -s conftest.$ac_objext'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 ac_hi=$ac_mid; break
19511else
19512 echo "$as_me: failed program was:" >&5
19513sed 's/^/| /' conftest.$ac_ext >&5
19514
19515ac_lo=`expr $ac_mid + 1`
19516 if test $ac_lo -le $ac_mid; then
19517 ac_lo= ac_hi=
19518 break
19519 fi
19520 ac_mid=`expr 2 '*' $ac_mid + 1`
19521fi
19522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19523 done
19524else
19525 echo "$as_me: failed program was:" >&5
19526sed 's/^/| /' conftest.$ac_ext >&5
19527
19528cat >conftest.$ac_ext <<_ACEOF
19529/* confdefs.h. */
19530_ACEOF
19531cat confdefs.h >>conftest.$ac_ext
19532cat >>conftest.$ac_ext <<_ACEOF
19533/* end confdefs.h. */
19534
83d8eb47
MW
19535 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19536 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19537 # error "fake wchar_t"
19538 #endif
19539 #ifdef HAVE_WCHAR_H
19540 # ifdef __CYGWIN__
19541 # include <stddef.h>
19542 # endif
19543 # include <wchar.h>
19544 #endif
19545 #ifdef HAVE_STDLIB_H
19546 # include <stdlib.h>
19547 #endif
19548 #include <stdio.h>
19549
19550
19551
19552int
19553main ()
19554{
19555static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19556test_array [0] = 0
19557
19558 ;
19559 return 0;
19560}
19561_ACEOF
19562rm -f conftest.$ac_objext
19563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564 (eval $ac_compile) 2>conftest.er1
19565 ac_status=$?
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
8c539582 19571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19574 ac_status=$?
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; } &&
19577 { ac_try='test -s conftest.$ac_objext'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; }; then
19583 ac_hi=-1 ac_mid=-1
19584 while :; do
19585 cat >conftest.$ac_ext <<_ACEOF
19586/* confdefs.h. */
19587_ACEOF
19588cat confdefs.h >>conftest.$ac_ext
19589cat >>conftest.$ac_ext <<_ACEOF
19590/* end confdefs.h. */
19591
83d8eb47
MW
19592 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19593 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19594 # error "fake wchar_t"
19595 #endif
19596 #ifdef HAVE_WCHAR_H
19597 # ifdef __CYGWIN__
19598 # include <stddef.h>
19599 # endif
19600 # include <wchar.h>
19601 #endif
19602 #ifdef HAVE_STDLIB_H
19603 # include <stdlib.h>
19604 #endif
19605 #include <stdio.h>
19606
19607
19608
19609int
19610main ()
19611{
19612static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19613test_array [0] = 0
19614
19615 ;
19616 return 0;
19617}
19618_ACEOF
19619rm -f conftest.$ac_objext
19620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19621 (eval $ac_compile) 2>conftest.er1
19622 ac_status=$?
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
8c539582 19628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest.$ac_objext'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_lo=$ac_mid; break
19641else
19642 echo "$as_me: failed program was:" >&5
19643sed 's/^/| /' conftest.$ac_ext >&5
19644
19645ac_hi=`expr '(' $ac_mid ')' - 1`
19646 if test $ac_mid -le $ac_hi; then
19647 ac_lo= ac_hi=
19648 break
19649 fi
19650 ac_mid=`expr 2 '*' $ac_mid`
19651fi
19652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19653 done
19654else
19655 echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658ac_lo= ac_hi=
19659fi
19660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19661fi
19662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19663# Binary search between lo and hi bounds.
19664while test "x$ac_lo" != "x$ac_hi"; do
19665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19666 cat >conftest.$ac_ext <<_ACEOF
19667/* confdefs.h. */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h. */
19672
83d8eb47
MW
19673 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19674 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19675 # error "fake wchar_t"
19676 #endif
19677 #ifdef HAVE_WCHAR_H
19678 # ifdef __CYGWIN__
19679 # include <stddef.h>
19680 # endif
19681 # include <wchar.h>
19682 #endif
19683 #ifdef HAVE_STDLIB_H
19684 # include <stdlib.h>
19685 #endif
19686 #include <stdio.h>
a848cd7e 19687
a848cd7e 19688
a848cd7e 19689
238ecede
MW
19690int
19691main ()
19692{
19693static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19694test_array [0] = 0
a848cd7e 19695
238ecede
MW
19696 ;
19697 return 0;
19698}
19699_ACEOF
19700rm -f conftest.$ac_objext
19701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19702 (eval $ac_compile) 2>conftest.er1
19703 ac_status=$?
19704 grep -v '^ *+' conftest.er1 >conftest.err
19705 rm -f conftest.er1
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } &&
8c539582 19709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711 (eval $ac_try) 2>&5
19712 ac_status=$?
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; } &&
19715 { ac_try='test -s conftest.$ac_objext'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; }; then
19721 ac_hi=$ac_mid
19722else
19723 echo "$as_me: failed program was:" >&5
19724sed 's/^/| /' conftest.$ac_ext >&5
19725
19726ac_lo=`expr '(' $ac_mid ')' + 1`
19727fi
19728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19729done
19730case $ac_lo in
19731?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19732'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19733See \`config.log' for more details." >&5
19734echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19735See \`config.log' for more details." >&2;}
19736 { (exit 1); exit 1; }; } ;;
19737esac
19738else
19739 if test "$cross_compiling" = yes; then
8c539582
RL
19740 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19741echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19742 { (exit 1); exit 1; }; }
a848cd7e
SC
19743else
19744 cat >conftest.$ac_ext <<_ACEOF
19745/* confdefs.h. */
19746_ACEOF
19747cat confdefs.h >>conftest.$ac_ext
19748cat >>conftest.$ac_ext <<_ACEOF
19749/* end confdefs.h. */
19750
83d8eb47
MW
19751 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19752 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19753 # error "fake wchar_t"
19754 #endif
19755 #ifdef HAVE_WCHAR_H
19756 # ifdef __CYGWIN__
19757 # include <stddef.h>
19758 # endif
19759 # include <wchar.h>
19760 #endif
19761 #ifdef HAVE_STDLIB_H
19762 # include <stdlib.h>
19763 #endif
19764 #include <stdio.h>
19765
19766
19767
19768long longval () { return (long) (sizeof (wchar_t)); }
19769unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19770#include <stdio.h>
19771#include <stdlib.h>
19772int
19773main ()
19774{
a848cd7e 19775
238ecede
MW
19776 FILE *f = fopen ("conftest.val", "w");
19777 if (! f)
19778 exit (1);
19779 if (((long) (sizeof (wchar_t))) < 0)
19780 {
19781 long i = longval ();
19782 if (i != ((long) (sizeof (wchar_t))))
19783 exit (1);
19784 fprintf (f, "%ld\n", i);
19785 }
19786 else
19787 {
19788 unsigned long i = ulongval ();
19789 if (i != ((long) (sizeof (wchar_t))))
19790 exit (1);
19791 fprintf (f, "%lu\n", i);
19792 }
19793 exit (ferror (f) || fclose (f) != 0);
19794
19795 ;
19796 return 0;
19797}
a848cd7e
SC
19798_ACEOF
19799rm -f conftest$ac_exeext
19800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19801 (eval $ac_link) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
238ecede 19810 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19811else
19812 echo "$as_me: program exited with status $ac_status" >&5
19813echo "$as_me: failed program was:" >&5
19814sed 's/^/| /' conftest.$ac_ext >&5
19815
19816( exit $ac_status )
238ecede
MW
19817{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19818See \`config.log' for more details." >&5
19819echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19820See \`config.log' for more details." >&2;}
19821 { (exit 1); exit 1; }; }
a848cd7e 19822fi
ac1cb8d3 19823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19824fi
a848cd7e 19825fi
238ecede
MW
19826rm -f conftest.val
19827else
19828 ac_cv_sizeof_wchar_t=0
19829fi
19830fi
19831echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19832echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19833cat >>confdefs.h <<_ACEOF
238ecede 19834#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19835_ACEOF
19836
19837
47a7e797
MW
19838if test "$ac_cv_sizeof_wchar_t" != "0"; then
19839 wxUSE_WCHAR_T=yes
19840else
19841 wxUSE_WCHAR_T=no
19842fi
238ecede 19843
ba3d13e1
VZ
19844echo "$as_me:$LINENO: checking for va_copy" >&5
19845echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19846if test "${wx_cv_func_va_copy+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19848else
19849
19850 cat >conftest.$ac_ext <<_ACEOF
19851
19852 #include <stdarg.h>
19853 void foo(char *f, ...)
19854 {
19855 va_list ap1, ap2;
19856 va_start(ap1, f);
19857 va_copy(ap2, ap1);
19858 va_end(ap2);
19859 va_end(ap1);
19860 }
5886b072
VZ
19861 int main()
19862 {
b902e639
VZ
19863 foo("hi", 17);
19864 return 0;
5886b072 19865 }
ba3d13e1
VZ
19866_ACEOF
19867rm -f conftest.$ac_objext conftest$ac_exeext
19868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19869 (eval $ac_link) 2>conftest.er1
19870 ac_status=$?
19871 grep -v '^ *+' conftest.er1 >conftest.err
19872 rm -f conftest.er1
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } &&
8c539582 19876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest$ac_exeext'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 wx_cv_func_va_copy=yes
19889else
19890 echo "$as_me: failed program was:" >&5
19891sed 's/^/| /' conftest.$ac_ext >&5
19892
19893wx_cv_func_va_copy=no
19894
19895fi
19896rm -f conftest.err conftest.$ac_objext \
19897 conftest$ac_exeext conftest.$ac_ext
19898
19899
19900fi
19901echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19902echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19903
19904if test $wx_cv_func_va_copy = "yes"; then
19905 cat >>confdefs.h <<\_ACEOF
19906#define HAVE_VA_COPY 1
19907_ACEOF
19908
19909else
19910 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19911echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19912if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19914else
19915
19916 if test "$cross_compiling" = yes; then
19917 wx_cv_type_va_list_lvalue=yes
19918
19919else
19920 cat >conftest.$ac_ext <<_ACEOF
19921
19922 #include <stdarg.h>
19923 int foo(char *f, ...)
19924 {
19925 va_list ap1, ap2;
19926 va_start(ap1, f);
19927 ap2 = ap1;
19928 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19929 return 1;
19930 va_end(ap2);
19931 va_end(ap1);
19932 return 0;
19933 }
19934 int main()
19935 {
19936 return foo("hi", 17);
19937 }
19938_ACEOF
19939rm -f conftest$ac_exeext
19940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19941 (eval $ac_link) 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
19950 wx_cv_type_va_list_lvalue=yes
19951else
19952 echo "$as_me: program exited with status $ac_status" >&5
19953echo "$as_me: failed program was:" >&5
19954sed 's/^/| /' conftest.$ac_ext >&5
19955
19956( exit $ac_status )
19957wx_cv_type_va_list_lvalue=no
19958fi
19959rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19960fi
19961
19962
19963fi
19964echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19965echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19966
19967 if test $wx_cv_type_va_list_lvalue != "yes"; then
19968 cat >>confdefs.h <<\_ACEOF
19969#define VA_LIST_IS_ARRAY 1
19970_ACEOF
19971
19972 fi
19973fi
19974
a848cd7e
SC
19975# Check whether --enable-largefile or --disable-largefile was given.
19976if test "${enable_largefile+set}" = set; then
19977 enableval="$enable_largefile"
19978
19979fi;
19980if test "$enable_largefile" != no; then
19981 wx_largefile=no
19982
19983 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19984echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19985if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19987else
19988
19989 cat >conftest.$ac_ext <<_ACEOF
19990/* confdefs.h. */
19991_ACEOF
19992cat confdefs.h >>conftest.$ac_ext
19993cat >>conftest.$ac_ext <<_ACEOF
19994/* end confdefs.h. */
19995#define _FILE_OFFSET_BITS 64
19996 #include <sys/types.h>
19997int
19998main ()
19999{
20000typedef struct {
20001 unsigned int field: sizeof(off_t) == 8;
20002} wxlf;
20003
20004 ;
20005 return 0;
20006}
20007_ACEOF
20008rm -f conftest.$ac_objext
20009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20010 (eval $ac_compile) 2>conftest.er1
a848cd7e 20011 ac_status=$?
ac1cb8d3
VS
20012 grep -v '^ *+' conftest.er1 >conftest.err
20013 rm -f conftest.er1
20014 cat conftest.err >&5
a848cd7e
SC
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } &&
8c539582 20017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019 (eval $ac_try) 2>&5
20020 ac_status=$?
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; } &&
20023 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025 (eval $ac_try) 2>&5
20026 ac_status=$?
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; }; then
20029 ac_cv_sys_file_offset_bits=64
20030else
20031 echo "$as_me: failed program was:" >&5
20032sed 's/^/| /' conftest.$ac_ext >&5
20033
20034ac_cv_sys_file_offset_bits=no
20035fi
ac1cb8d3 20036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20037
20038
20039fi
20040echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20041echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20042
20043 if test "$ac_cv_sys_file_offset_bits" != no; then
20044 wx_largefile=yes
20045 cat >>confdefs.h <<_ACEOF
20046#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20047_ACEOF
20048
20049 fi
20050
20051 if test "x$wx_largefile" != "xyes"; then
20052
20053 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20054echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20055if test "${ac_cv_sys_large_files+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20057else
20058
20059 cat >conftest.$ac_ext <<_ACEOF
20060/* confdefs.h. */
20061_ACEOF
20062cat confdefs.h >>conftest.$ac_ext
20063cat >>conftest.$ac_ext <<_ACEOF
20064/* end confdefs.h. */
20065#define _LARGE_FILES 1
20066 #include <sys/types.h>
20067int
20068main ()
20069{
20070typedef struct {
20071 unsigned int field: sizeof(off_t) == 8;
20072} wxlf;
20073
20074 ;
20075 return 0;
20076}
20077_ACEOF
20078rm -f conftest.$ac_objext
20079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20080 (eval $ac_compile) 2>conftest.er1
a848cd7e 20081 ac_status=$?
ac1cb8d3
VS
20082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
a848cd7e
SC
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
8c539582 20087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } &&
20093 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 ac_cv_sys_large_files=1
20100else
20101 echo "$as_me: failed program was:" >&5
20102sed 's/^/| /' conftest.$ac_ext >&5
20103
20104ac_cv_sys_large_files=no
20105fi
ac1cb8d3 20106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20107
20108
20109fi
20110echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20111echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20112
20113 if test "$ac_cv_sys_large_files" != no; then
20114 wx_largefile=yes
20115 cat >>confdefs.h <<_ACEOF
20116#define _LARGE_FILES $ac_cv_sys_large_files
20117_ACEOF
20118
20119 fi
20120
20121 fi
20122
20123 echo "$as_me:$LINENO: checking if large file support is available" >&5
20124echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20125 if test "x$wx_largefile" = "xyes"; then
20126 cat >>confdefs.h <<\_ACEOF
20127#define HAVE_LARGEFILE_SUPPORT 1
20128_ACEOF
20129
20130 fi
20131 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20132echo "${ECHO_T}$wx_largefile" >&6
20133fi
20134
5b674b9d
DE
20135
20136if test "x$wx_largefile" = "xyes"; then
20137 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20138 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
20139 else
20140 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20141 fi
20142 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20143echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20144if test "${ac_cv_sys_largefile_source+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20146else
20147 while :; do
20148 ac_cv_sys_largefile_source=no
20149 cat >conftest.$ac_ext <<_ACEOF
20150/* confdefs.h. */
20151_ACEOF
20152cat confdefs.h >>conftest.$ac_ext
20153cat >>conftest.$ac_ext <<_ACEOF
20154/* end confdefs.h. */
20155#include <stdio.h>
20156int
20157main ()
20158{
20159return !fseeko;
20160 ;
20161 return 0;
20162}
20163_ACEOF
20164rm -f conftest.$ac_objext
20165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20166 (eval $ac_compile) 2>conftest.er1
20167 ac_status=$?
20168 grep -v '^ *+' conftest.er1 >conftest.err
20169 rm -f conftest.er1
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } &&
8c539582 20173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20176 ac_status=$?
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; } &&
20179 { ac_try='test -s conftest.$ac_objext'
20180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20182 ac_status=$?
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; }; then
20185 break
20186else
20187 echo "$as_me: failed program was:" >&5
20188sed 's/^/| /' conftest.$ac_ext >&5
20189
20190fi
20191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20192 cat >conftest.$ac_ext <<_ACEOF
20193/* confdefs.h. */
20194_ACEOF
20195cat confdefs.h >>conftest.$ac_ext
20196cat >>conftest.$ac_ext <<_ACEOF
20197/* end confdefs.h. */
20198#define _LARGEFILE_SOURCE 1
20199#include <stdio.h>
20200int
20201main ()
20202{
20203return !fseeko;
20204 ;
20205 return 0;
20206}
20207_ACEOF
20208rm -f conftest.$ac_objext
20209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20210 (eval $ac_compile) 2>conftest.er1
20211 ac_status=$?
20212 grep -v '^ *+' conftest.er1 >conftest.err
20213 rm -f conftest.er1
20214 cat conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } &&
8c539582 20217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20220 ac_status=$?
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; } &&
20223 { ac_try='test -s conftest.$ac_objext'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
20229 ac_cv_sys_largefile_source=1; break
20230else
20231 echo "$as_me: failed program was:" >&5
20232sed 's/^/| /' conftest.$ac_ext >&5
20233
20234fi
20235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20236 break
20237done
20238fi
20239echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20240echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20241if test "$ac_cv_sys_largefile_source" != no; then
20242
20243cat >>confdefs.h <<_ACEOF
20244#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20245_ACEOF
20246
20247fi
20248rm -f conftest*
20249
20250# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20251# in glibc 2.1.3, but that breaks too many other things.
20252# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20253echo "$as_me:$LINENO: checking for fseeko" >&5
20254echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20255if test "${ac_cv_func_fseeko+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20257else
20258 cat >conftest.$ac_ext <<_ACEOF
20259/* confdefs.h. */
20260_ACEOF
20261cat confdefs.h >>conftest.$ac_ext
20262cat >>conftest.$ac_ext <<_ACEOF
20263/* end confdefs.h. */
20264#include <stdio.h>
20265int
20266main ()
20267{
20268return fseeko && fseeko (stdin, 0, 0);
20269 ;
20270 return 0;
20271}
20272_ACEOF
20273rm -f conftest.$ac_objext conftest$ac_exeext
20274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20275 (eval $ac_link) 2>conftest.er1
20276 ac_status=$?
20277 grep -v '^ *+' conftest.er1 >conftest.err
20278 rm -f conftest.er1
20279 cat conftest.err >&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } &&
8c539582 20282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; } &&
20288 { ac_try='test -s conftest$ac_exeext'
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_cv_func_fseeko=yes
20295else
20296 echo "$as_me: failed program was:" >&5
20297sed 's/^/| /' conftest.$ac_ext >&5
20298
20299ac_cv_func_fseeko=no
20300fi
20301rm -f conftest.err conftest.$ac_objext \
20302 conftest$ac_exeext conftest.$ac_ext
20303fi
20304echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20305echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20306if test $ac_cv_func_fseeko = yes; then
20307
20308cat >>confdefs.h <<\_ACEOF
20309#define HAVE_FSEEKO 1
20310_ACEOF
20311
20312fi
20313
5b674b9d
DE
20314 if test "$ac_cv_sys_largefile_source" != no; then
20315 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20316 fi
20317 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20318fi
20319
20320echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20321echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20322if test "${ac_cv_c_bigendian+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20324else
20325 ac_cv_c_bigendian=unknown
20326# See if sys/param.h defines the BYTE_ORDER macro.
20327cat >conftest.$ac_ext <<_ACEOF
20328/* confdefs.h. */
20329_ACEOF
20330cat confdefs.h >>conftest.$ac_ext
20331cat >>conftest.$ac_ext <<_ACEOF
20332/* end confdefs.h. */
20333#include <sys/types.h>
20334#include <sys/param.h>
20335int
20336main ()
20337{
20338
20339#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20340 bogus endian macros
20341#endif
20342 ;
20343 return 0;
20344}
20345_ACEOF
20346rm -f conftest.$ac_objext
20347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20348 (eval $ac_compile) 2>conftest.er1
a848cd7e 20349 ac_status=$?
ac1cb8d3
VS
20350 grep -v '^ *+' conftest.er1 >conftest.err
20351 rm -f conftest.er1
20352 cat conftest.err >&5
a848cd7e
SC
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } &&
8c539582 20355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357 (eval $ac_try) 2>&5
20358 ac_status=$?
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; } &&
20361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20364 ac_status=$?
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; }; then
20367 # It does; now see whether it defined to BIG_ENDIAN or not.
20368cat >conftest.$ac_ext <<_ACEOF
20369/* confdefs.h. */
20370_ACEOF
20371cat confdefs.h >>conftest.$ac_ext
20372cat >>conftest.$ac_ext <<_ACEOF
20373/* end confdefs.h. */
20374#include <sys/types.h>
20375#include <sys/param.h>
20376int
20377main ()
20378{
20379
20380#if BYTE_ORDER != BIG_ENDIAN
20381 not big endian
20382#endif
20383 ;
20384 return 0;
20385}
20386_ACEOF
20387rm -f conftest.$ac_objext
20388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20389 (eval $ac_compile) 2>conftest.er1
a848cd7e 20390 ac_status=$?
ac1cb8d3
VS
20391 grep -v '^ *+' conftest.er1 >conftest.err
20392 rm -f conftest.er1
20393 cat conftest.err >&5
a848cd7e
SC
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } &&
8c539582 20396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; } &&
20402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20408 ac_cv_c_bigendian=yes
20409else
20410 echo "$as_me: failed program was:" >&5
20411sed 's/^/| /' conftest.$ac_ext >&5
20412
20413ac_cv_c_bigendian=no
20414fi
ac1cb8d3 20415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20416else
20417 echo "$as_me: failed program was:" >&5
20418sed 's/^/| /' conftest.$ac_ext >&5
20419
20420fi
ac1cb8d3 20421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20422if test $ac_cv_c_bigendian = unknown; then
20423if test "$cross_compiling" = yes; then
20424 ac_cv_c_bigendian=unknown
20425else
20426 cat >conftest.$ac_ext <<_ACEOF
20427/* confdefs.h. */
20428_ACEOF
20429cat confdefs.h >>conftest.$ac_ext
20430cat >>conftest.$ac_ext <<_ACEOF
20431/* end confdefs.h. */
20432main () {
20433 /* Are we little or big endian? From Harbison&Steele. */
20434 union
20435 {
20436 long l;
20437 char c[sizeof (long)];
20438 } u;
20439 u.l = 1;
20440 exit (u.c[sizeof (long) - 1] == 1);
20441}
20442_ACEOF
20443rm -f conftest$ac_exeext
20444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20445 (eval $ac_link) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 ac_cv_c_bigendian=no
20455else
20456 echo "$as_me: program exited with status $ac_status" >&5
20457echo "$as_me: failed program was:" >&5
20458sed 's/^/| /' conftest.$ac_ext >&5
20459
20460( exit $ac_status )
20461ac_cv_c_bigendian=yes
20462fi
ac1cb8d3 20463rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20464fi
20465fi
20466fi
20467echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20468echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20469if test $ac_cv_c_bigendian = unknown; then
20470 { 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
20471echo "$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;}
20472fi
20473if test $ac_cv_c_bigendian = yes; then
20474 cat >>confdefs.h <<\_ACEOF
20475#define WORDS_BIGENDIAN 1
20476_ACEOF
20477
20478fi
20479
20480
20481ac_ext=cc
20482ac_cpp='$CXXCPP $CPPFLAGS'
20483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20486echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20487echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20488if test -z "$CXXCPP"; then
20489 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20491else
20492 # Double quotes because CXXCPP needs to be expanded
20493 for CXXCPP in "$CXX -E" "/lib/cpp"
20494 do
20495 ac_preproc_ok=false
20496for ac_cxx_preproc_warn_flag in '' yes
20497do
20498 # Use a header file that comes with gcc, so configuring glibc
20499 # with a fresh cross-compiler works.
20500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20501 # <limits.h> exists even on freestanding compilers.
20502 # On the NeXT, cc -E runs the code through the compiler's parser,
20503 # not just through cpp. "Syntax error" is here to catch this case.
20504 cat >conftest.$ac_ext <<_ACEOF
20505/* confdefs.h. */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h. */
20510#ifdef __STDC__
20511# include <limits.h>
20512#else
20513# include <assert.h>
20514#endif
ac1cb8d3 20515 Syntax error
a848cd7e
SC
20516_ACEOF
20517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20519 ac_status=$?
20520 grep -v '^ *+' conftest.er1 >conftest.err
20521 rm -f conftest.er1
20522 cat conftest.err >&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } >/dev/null; then
20525 if test -s conftest.err; then
20526 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20527 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20528 else
20529 ac_cpp_err=
20530 fi
20531else
20532 ac_cpp_err=yes
20533fi
20534if test -z "$ac_cpp_err"; then
20535 :
20536else
20537 echo "$as_me: failed program was:" >&5
20538sed 's/^/| /' conftest.$ac_ext >&5
20539
20540 # Broken: fails on valid input.
20541continue
20542fi
20543rm -f conftest.err conftest.$ac_ext
20544
20545 # OK, works on sane cases. Now check whether non-existent headers
20546 # can be detected and how.
20547 cat >conftest.$ac_ext <<_ACEOF
20548/* confdefs.h. */
20549_ACEOF
20550cat confdefs.h >>conftest.$ac_ext
20551cat >>conftest.$ac_ext <<_ACEOF
20552/* end confdefs.h. */
20553#include <ac_nonexistent.h>
20554_ACEOF
20555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20557 ac_status=$?
20558 grep -v '^ *+' conftest.er1 >conftest.err
20559 rm -f conftest.er1
20560 cat conftest.err >&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } >/dev/null; then
20563 if test -s conftest.err; then
20564 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20565 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20566 else
20567 ac_cpp_err=
20568 fi
20569else
20570 ac_cpp_err=yes
20571fi
20572if test -z "$ac_cpp_err"; then
20573 # Broken: success on invalid input.
20574continue
20575else
20576 echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 # Passes both tests.
20580ac_preproc_ok=:
20581break
20582fi
20583rm -f conftest.err conftest.$ac_ext
20584
20585done
20586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20587rm -f conftest.err conftest.$ac_ext
20588if $ac_preproc_ok; then
20589 break
20590fi
20591
20592 done
20593 ac_cv_prog_CXXCPP=$CXXCPP
20594
20595fi
20596 CXXCPP=$ac_cv_prog_CXXCPP
20597else
20598 ac_cv_prog_CXXCPP=$CXXCPP
20599fi
20600echo "$as_me:$LINENO: result: $CXXCPP" >&5
20601echo "${ECHO_T}$CXXCPP" >&6
20602ac_preproc_ok=false
20603for ac_cxx_preproc_warn_flag in '' yes
20604do
20605 # Use a header file that comes with gcc, so configuring glibc
20606 # with a fresh cross-compiler works.
20607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20608 # <limits.h> exists even on freestanding compilers.
20609 # On the NeXT, cc -E runs the code through the compiler's parser,
20610 # not just through cpp. "Syntax error" is here to catch this case.
20611 cat >conftest.$ac_ext <<_ACEOF
20612/* confdefs.h. */
20613_ACEOF
20614cat confdefs.h >>conftest.$ac_ext
20615cat >>conftest.$ac_ext <<_ACEOF
20616/* end confdefs.h. */
20617#ifdef __STDC__
20618# include <limits.h>
20619#else
20620# include <assert.h>
20621#endif
ac1cb8d3 20622 Syntax error
a848cd7e
SC
20623_ACEOF
20624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20626 ac_status=$?
20627 grep -v '^ *+' conftest.er1 >conftest.err
20628 rm -f conftest.er1
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } >/dev/null; then
20632 if test -s conftest.err; then
20633 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20634 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20635 else
20636 ac_cpp_err=
20637 fi
20638else
20639 ac_cpp_err=yes
20640fi
20641if test -z "$ac_cpp_err"; then
20642 :
20643else
20644 echo "$as_me: failed program was:" >&5
20645sed 's/^/| /' conftest.$ac_ext >&5
20646
20647 # Broken: fails on valid input.
20648continue
20649fi
20650rm -f conftest.err conftest.$ac_ext
20651
20652 # OK, works on sane cases. Now check whether non-existent headers
20653 # can be detected and how.
20654 cat >conftest.$ac_ext <<_ACEOF
20655/* confdefs.h. */
20656_ACEOF
20657cat confdefs.h >>conftest.$ac_ext
20658cat >>conftest.$ac_ext <<_ACEOF
20659/* end confdefs.h. */
20660#include <ac_nonexistent.h>
20661_ACEOF
20662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } >/dev/null; then
20670 if test -s conftest.err; then
20671 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20672 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20673 else
20674 ac_cpp_err=
20675 fi
20676else
20677 ac_cpp_err=yes
20678fi
20679if test -z "$ac_cpp_err"; then
20680 # Broken: success on invalid input.
20681continue
20682else
20683 echo "$as_me: failed program was:" >&5
20684sed 's/^/| /' conftest.$ac_ext >&5
20685
20686 # Passes both tests.
20687ac_preproc_ok=:
20688break
20689fi
20690rm -f conftest.err conftest.$ac_ext
20691
20692done
20693# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20694rm -f conftest.err conftest.$ac_ext
20695if $ac_preproc_ok; then
20696 :
20697else
20698 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20699See \`config.log' for more details." >&5
20700echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20701See \`config.log' for more details." >&2;}
20702 { (exit 1); exit 1; }; }
20703fi
20704
20705ac_ext=cc
20706ac_cpp='$CXXCPP $CPPFLAGS'
20707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20710
20711
20712
20713
20714
20715 ac_ext=cc
20716ac_cpp='$CXXCPP $CPPFLAGS'
20717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20720
20721
20722
20723for ac_header in iostream
20724do
20725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20726if eval "test \"\${$as_ac_Header+set}\" = set"; then
20727 echo "$as_me:$LINENO: checking for $ac_header" >&5
20728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20729if eval "test \"\${$as_ac_Header+set}\" = set"; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20731fi
20732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20734else
20735 # Is the header compilable?
20736echo "$as_me:$LINENO: checking $ac_header usability" >&5
20737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20738cat >conftest.$ac_ext <<_ACEOF
20739/* confdefs.h. */
20740_ACEOF
20741cat confdefs.h >>conftest.$ac_ext
20742cat >>conftest.$ac_ext <<_ACEOF
20743/* end confdefs.h. */
20744$ac_includes_default
20745#include <$ac_header>
20746_ACEOF
20747rm -f conftest.$ac_objext
20748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20749 (eval $ac_compile) 2>conftest.er1
a848cd7e 20750 ac_status=$?
ac1cb8d3
VS
20751 grep -v '^ *+' conftest.er1 >conftest.err
20752 rm -f conftest.er1
20753 cat conftest.err >&5
a848cd7e
SC
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } &&
8c539582 20756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20759 ac_status=$?
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
20768 ac_header_compiler=yes
20769else
20770 echo "$as_me: failed program was:" >&5
20771sed 's/^/| /' conftest.$ac_ext >&5
20772
20773ac_header_compiler=no
20774fi
ac1cb8d3 20775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20776echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777echo "${ECHO_T}$ac_header_compiler" >&6
20778
20779# Is the header present?
20780echo "$as_me:$LINENO: checking $ac_header presence" >&5
20781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20782cat >conftest.$ac_ext <<_ACEOF
20783/* confdefs.h. */
20784_ACEOF
20785cat confdefs.h >>conftest.$ac_ext
20786cat >>conftest.$ac_ext <<_ACEOF
20787/* end confdefs.h. */
20788#include <$ac_header>
20789_ACEOF
20790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20792 ac_status=$?
20793 grep -v '^ *+' conftest.er1 >conftest.err
20794 rm -f conftest.er1
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } >/dev/null; then
20798 if test -s conftest.err; then
20799 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20800 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20801 else
20802 ac_cpp_err=
20803 fi
20804else
20805 ac_cpp_err=yes
20806fi
20807if test -z "$ac_cpp_err"; then
20808 ac_header_preproc=yes
20809else
20810 echo "$as_me: failed program was:" >&5
20811sed 's/^/| /' conftest.$ac_ext >&5
20812
20813 ac_header_preproc=no
20814fi
20815rm -f conftest.err conftest.$ac_ext
20816echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20817echo "${ECHO_T}$ac_header_preproc" >&6
20818
20819# So? What about this header?
ac1cb8d3
VS
20820case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20821 yes:no: )
a848cd7e
SC
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20823echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20825echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20826 ac_header_preproc=yes
a848cd7e 20827 ;;
ac1cb8d3 20828 no:yes:* )
a848cd7e
SC
20829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20830echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20832echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20834echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20836echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20840echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20841 (
20842 cat <<\_ASBOX
ac1cb8d3
VS
20843## ----------------------------------------- ##
20844## Report this to wx-dev@lists.wxwidgets.org ##
20845## ----------------------------------------- ##
a848cd7e
SC
20846_ASBOX
20847 ) |
20848 sed "s/^/$as_me: WARNING: /" >&2
20849 ;;
20850esac
20851echo "$as_me:$LINENO: checking for $ac_header" >&5
20852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20853if eval "test \"\${$as_ac_Header+set}\" = set"; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20855else
ac1cb8d3 20856 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20857fi
20858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20860
20861fi
20862if test `eval echo '${'$as_ac_Header'}'` = yes; then
20863 cat >>confdefs.h <<_ACEOF
20864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20865_ACEOF
20866
20867fi
20868
20869done
20870
20871
20872 if test "$ac_cv_header_iostream" = "yes" ; then
20873 :
20874 else
20875 cat >>confdefs.h <<\_ACEOF
20876#define wxUSE_IOSTREAMH 1
20877_ACEOF
20878
20879 fi
20880
20881 ac_ext=c
20882ac_cpp='$CPP $CPPFLAGS'
20883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885ac_compiler_gnu=$ac_cv_c_compiler_gnu
20886
20887
20888
20889
20890 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20891echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20892if test "${wx_cv_cpp_bool+set}" = set; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20894else
20895
20896
20897
20898 ac_ext=cc
20899ac_cpp='$CXXCPP $CPPFLAGS'
20900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20903
20904
20905 cat >conftest.$ac_ext <<_ACEOF
20906/* confdefs.h. */
20907_ACEOF
20908cat confdefs.h >>conftest.$ac_ext
20909cat >>conftest.$ac_ext <<_ACEOF
20910/* end confdefs.h. */
20911
20912
20913int
20914main ()
20915{
20916
20917 bool b = true;
20918
20919 return 0;
20920
20921 ;
20922 return 0;
20923}
20924_ACEOF
20925rm -f conftest.$ac_objext
20926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20927 (eval $ac_compile) 2>conftest.er1
a848cd7e 20928 ac_status=$?
ac1cb8d3
VS
20929 grep -v '^ *+' conftest.er1 >conftest.err
20930 rm -f conftest.er1
20931 cat conftest.err >&5
a848cd7e
SC
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } &&
8c539582 20934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20937 ac_status=$?
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; } &&
20940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); }; }; then
20946
20947 wx_cv_cpp_bool=yes
20948
20949else
20950 echo "$as_me: failed program was:" >&5
20951sed 's/^/| /' conftest.$ac_ext >&5
20952
20953
20954 wx_cv_cpp_bool=no
20955
20956
20957fi
ac1cb8d3 20958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20959
20960 ac_ext=c
20961ac_cpp='$CPP $CPPFLAGS'
20962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20964ac_compiler_gnu=$ac_cv_c_compiler_gnu
20965
20966
20967fi
20968echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20969echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20970
20971 if test "$wx_cv_cpp_bool" = "yes"; then
20972 cat >>confdefs.h <<\_ACEOF
20973#define HAVE_BOOL 1
20974_ACEOF
20975
20976 fi
20977
20978
20979
20980 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20981echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20982if test "${wx_cv_explicit+set}" = set; then
20983 echo $ECHO_N "(cached) $ECHO_C" >&6
20984else
20985
20986
20987
20988 ac_ext=cc
20989ac_cpp='$CXXCPP $CPPFLAGS'
20990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20993
20994
20995 cat >conftest.$ac_ext <<_ACEOF
20996/* confdefs.h. */
20997_ACEOF
20998cat confdefs.h >>conftest.$ac_ext
20999cat >>conftest.$ac_ext <<_ACEOF
21000/* end confdefs.h. */
21001
21002 class Foo { public: explicit Foo(int) {} };
21003
21004int
21005main ()
21006{
21007
21008 return 0;
21009
21010 ;
21011 return 0;
21012}
21013_ACEOF
21014rm -f conftest.$ac_objext
21015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21016 (eval $ac_compile) 2>conftest.er1
a848cd7e 21017 ac_status=$?
ac1cb8d3
VS
21018 grep -v '^ *+' conftest.er1 >conftest.err
21019 rm -f conftest.er1
21020 cat conftest.err >&5
a848cd7e
SC
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } &&
8c539582 21023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21032 ac_status=$?
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035
21036 cat >conftest.$ac_ext <<_ACEOF
21037/* confdefs.h. */
21038_ACEOF
21039cat confdefs.h >>conftest.$ac_ext
21040cat >>conftest.$ac_ext <<_ACEOF
21041/* end confdefs.h. */
21042
21043 class Foo { public: explicit Foo(int) {} };
21044 static void TakeFoo(const Foo& foo) { }
21045
21046int
21047main ()
21048{
21049
21050 TakeFoo(17);
21051 return 0;
21052
21053 ;
21054 return 0;
21055}
21056_ACEOF
21057rm -f conftest.$ac_objext
21058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21059 (eval $ac_compile) 2>conftest.er1
a848cd7e 21060 ac_status=$?
ac1cb8d3
VS
21061 grep -v '^ *+' conftest.er1 >conftest.err
21062 rm -f conftest.er1
21063 cat conftest.err >&5
a848cd7e
SC
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } &&
8c539582 21066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068 (eval $ac_try) 2>&5
21069 ac_status=$?
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; } &&
21072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; }; then
21078 wx_cv_explicit=no
21079else
21080 echo "$as_me: failed program was:" >&5
21081sed 's/^/| /' conftest.$ac_ext >&5
21082
21083wx_cv_explicit=yes
21084
21085fi
ac1cb8d3 21086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21087
21088else
21089 echo "$as_me: failed program was:" >&5
21090sed 's/^/| /' conftest.$ac_ext >&5
21091
21092wx_cv_explicit=no
21093
21094fi
ac1cb8d3 21095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21096
21097 ac_ext=c
21098ac_cpp='$CPP $CPPFLAGS'
21099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21101ac_compiler_gnu=$ac_cv_c_compiler_gnu
21102
21103
21104fi
21105echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21106echo "${ECHO_T}$wx_cv_explicit" >&6
21107
21108 if test "$wx_cv_explicit" = "yes"; then
21109 cat >>confdefs.h <<\_ACEOF
21110#define HAVE_EXPLICIT 1
21111_ACEOF
21112
21113 fi
21114
21115
21116echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21117echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21118if test "${ac_cv_cxx_const_cast+set}" = set; then
21119 echo $ECHO_N "(cached) $ECHO_C" >&6
21120else
21121
21122
21123 ac_ext=cc
21124ac_cpp='$CXXCPP $CPPFLAGS'
21125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21128
21129 cat >conftest.$ac_ext <<_ACEOF
21130/* confdefs.h. */
21131_ACEOF
21132cat confdefs.h >>conftest.$ac_ext
21133cat >>conftest.$ac_ext <<_ACEOF
21134/* end confdefs.h. */
21135
21136int
21137main ()
21138{
21139int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21140 ;
21141 return 0;
21142}
21143_ACEOF
21144rm -f conftest.$ac_objext
21145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21146 (eval $ac_compile) 2>conftest.er1
a848cd7e 21147 ac_status=$?
ac1cb8d3
VS
21148 grep -v '^ *+' conftest.er1 >conftest.err
21149 rm -f conftest.er1
21150 cat conftest.err >&5
a848cd7e
SC
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } &&
8c539582 21153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155 (eval $ac_try) 2>&5
21156 ac_status=$?
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; } &&
21159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21162 ac_status=$?
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; }; then
21165 ac_cv_cxx_const_cast=yes
21166else
21167 echo "$as_me: failed program was:" >&5
21168sed 's/^/| /' conftest.$ac_ext >&5
21169
21170ac_cv_cxx_const_cast=no
21171fi
ac1cb8d3 21172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21173 ac_ext=c
21174ac_cpp='$CPP $CPPFLAGS'
21175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21177ac_compiler_gnu=$ac_cv_c_compiler_gnu
21178
21179
21180fi
21181echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21182echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21183if test "$ac_cv_cxx_const_cast" = yes; then
21184
21185cat >>confdefs.h <<\_ACEOF
21186#define HAVE_CONST_CAST
21187_ACEOF
21188
21189fi
21190
7714864e
RL
21191echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21192echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21193if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21195else
21196
21197
21198 ac_ext=cc
21199ac_cpp='$CXXCPP $CPPFLAGS'
21200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21203
21204 cat >conftest.$ac_ext <<_ACEOF
21205/* confdefs.h. */
21206_ACEOF
21207cat confdefs.h >>conftest.$ac_ext
21208cat >>conftest.$ac_ext <<_ACEOF
21209/* end confdefs.h. */
21210#include <typeinfo>
21211class Base { public : Base () {} virtual void f () = 0;};
21212class Derived : public Base { public : Derived () {} virtual void f () {} };
21213class Unrelated { public : Unrelated () {} };
21214int g (Unrelated&) { return 0; }
21215int
21216main ()
21217{
21218
21219Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21220 ;
21221 return 0;
21222}
21223_ACEOF
21224rm -f conftest.$ac_objext
21225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21226 (eval $ac_compile) 2>conftest.er1
21227 ac_status=$?
21228 grep -v '^ *+' conftest.er1 >conftest.err
21229 rm -f conftest.er1
21230 cat conftest.err >&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } &&
8c539582 21233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21236 ac_status=$?
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; } &&
21239 { ac_try='test -s conftest.$ac_objext'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
21245 ac_cv_cxx_reinterpret_cast=yes
21246else
21247 echo "$as_me: failed program was:" >&5
21248sed 's/^/| /' conftest.$ac_ext >&5
21249
21250ac_cv_cxx_reinterpret_cast=no
21251fi
21252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21253 ac_ext=c
21254ac_cpp='$CPP $CPPFLAGS'
21255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257ac_compiler_gnu=$ac_cv_c_compiler_gnu
21258
21259
21260fi
21261echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21262echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21263if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21264
21265cat >>confdefs.h <<\_ACEOF
21266#define HAVE_REINTERPRET_CAST
21267_ACEOF
21268
21269fi
21270
a848cd7e
SC
21271echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21272echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21273if test "${ac_cv_cxx_static_cast+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275else
21276
21277
21278 ac_ext=cc
21279ac_cpp='$CXXCPP $CPPFLAGS'
21280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21283
21284 cat >conftest.$ac_ext <<_ACEOF
21285/* confdefs.h. */
21286_ACEOF
21287cat confdefs.h >>conftest.$ac_ext
21288cat >>conftest.$ac_ext <<_ACEOF
21289/* end confdefs.h. */
21290#include <typeinfo>
21291class Base { public : Base () {} virtual void f () = 0; };
21292class Derived : public Base { public : Derived () {} virtual void f () {} };
21293int g (Derived&) { return 0; }
21294int
21295main ()
21296{
21297
21298Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21299 ;
21300 return 0;
21301}
21302_ACEOF
21303rm -f conftest.$ac_objext
21304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21305 (eval $ac_compile) 2>conftest.er1
a848cd7e 21306 ac_status=$?
ac1cb8d3
VS
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
a848cd7e
SC
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
8c539582 21312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; } &&
21318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21321 ac_status=$?
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
21324 ac_cv_cxx_static_cast=yes
21325else
21326 echo "$as_me: failed program was:" >&5
21327sed 's/^/| /' conftest.$ac_ext >&5
21328
21329ac_cv_cxx_static_cast=no
21330fi
ac1cb8d3 21331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21332 ac_ext=c
21333ac_cpp='$CPP $CPPFLAGS'
21334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336ac_compiler_gnu=$ac_cv_c_compiler_gnu
21337
21338
21339fi
21340echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21341echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21342if test "$ac_cv_cxx_static_cast" = yes; then
21343
21344cat >>confdefs.h <<\_ACEOF
21345#define HAVE_STATIC_CAST
21346_ACEOF
21347
21348fi
21349
21350
f56c22b4 21351if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21352 ac_ext=cc
21353ac_cpp='$CXXCPP $CPPFLAGS'
21354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21357
21358
f56c22b4
MW
21359 if test "$wxUSE_UNICODE" = "yes"; then
21360 std_string="std::wstring"
21361 char_type="wchar_t"
21362 else
21363 std_string="std::string"
21364 char_type="char"
21365 fi
21366
21367 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21368echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21369 cat >conftest.$ac_ext <<_ACEOF
21370/* confdefs.h. */
21371_ACEOF
21372cat confdefs.h >>conftest.$ac_ext
21373cat >>conftest.$ac_ext <<_ACEOF
21374/* end confdefs.h. */
21375#include <string>
a848cd7e
SC
21376int
21377main ()
21378{
f56c22b4 21379$std_string foo;
a848cd7e
SC
21380 ;
21381 return 0;
21382}
21383_ACEOF
21384rm -f conftest.$ac_objext
21385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21386 (eval $ac_compile) 2>conftest.er1
a848cd7e 21387 ac_status=$?
ac1cb8d3
VS
21388 grep -v '^ *+' conftest.er1 >conftest.err
21389 rm -f conftest.er1
21390 cat conftest.err >&5
a848cd7e
SC
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } &&
8c539582 21393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395 (eval $ac_try) 2>&5
21396 ac_status=$?
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; } &&
21399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401 (eval $ac_try) 2>&5
21402 ac_status=$?
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; }; then
21405 echo "$as_me:$LINENO: result: yes" >&5
21406echo "${ECHO_T}yes" >&6
0a08f02a
MB
21407 cat >>confdefs.h <<\_ACEOF
21408#define HAVE_STD_WSTRING 1
21409_ACEOF
21410
a848cd7e
SC
21411else
21412 echo "$as_me: failed program was:" >&5
21413sed 's/^/| /' conftest.$ac_ext >&5
21414
21415echo "$as_me:$LINENO: result: no" >&5
21416echo "${ECHO_T}no" >&6
f56c22b4
MW
21417 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21418echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21419 cat >conftest.$ac_ext <<_ACEOF
21420/* confdefs.h. */
21421_ACEOF
21422cat confdefs.h >>conftest.$ac_ext
21423cat >>conftest.$ac_ext <<_ACEOF
21424/* end confdefs.h. */
21425
21426 #ifdef HAVE_WCHAR_H
21427 # ifdef __CYGWIN__
21428 # include <stddef.h>
21429 # endif
21430 # include <wchar.h>
21431 #endif
21432 #ifdef HAVE_STDLIB_H
21433 # include <stdlib.h>
21434 #endif
21435 #include <stdio.h>
21436 #include <string>
21437
21438int
21439main ()
21440{
f56c22b4
MW
21441std::basic_string<$char_type> foo;
21442 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21443 ;
21444 return 0;
21445}
21446_ACEOF
21447rm -f conftest.$ac_objext
21448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21449 (eval $ac_compile) 2>conftest.er1
21450 ac_status=$?
21451 grep -v '^ *+' conftest.er1 >conftest.err
21452 rm -f conftest.er1
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } &&
8c539582 21456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458 (eval $ac_try) 2>&5
21459 ac_status=$?
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); }; } &&
21462 { ac_try='test -s conftest.$ac_objext'
21463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464 (eval $ac_try) 2>&5
21465 ac_status=$?
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; }; then
21468 echo "$as_me:$LINENO: result: yes" >&5
21469echo "${ECHO_T}yes" >&6
21470else
21471 echo "$as_me: failed program was:" >&5
21472sed 's/^/| /' conftest.$ac_ext >&5
21473
21474echo "$as_me:$LINENO: result: no" >&5
21475echo "${ECHO_T}no" >&6
f56c22b4 21476 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21477 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21478echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21479 { (exit 1); exit 1; }; }
21480 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21481 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21482echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21483 { (exit 1); exit 1; }; }
f56c22b4
MW
21484 else
21485 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21486echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21487 wxUSE_STD_STRING=no
21488 fi
21489
0a08f02a 21490
a848cd7e 21491fi
ac1cb8d3 21492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21493
0a08f02a
MB
21494fi
21495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21496
21497 ac_ext=c
21498ac_cpp='$CPP $CPPFLAGS'
21499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21501ac_compiler_gnu=$ac_cv_c_compiler_gnu
21502
21503fi
21504
21505if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21506 ac_ext=cc
21507ac_cpp='$CXXCPP $CPPFLAGS'
21508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21511
21512
21513 echo "$as_me:$LINENO: checking for std::istream" >&5
21514echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21515if test "${ac_cv_type_std__istream+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517else
21518 cat >conftest.$ac_ext <<_ACEOF
21519/* confdefs.h. */
21520_ACEOF
21521cat confdefs.h >>conftest.$ac_ext
21522cat >>conftest.$ac_ext <<_ACEOF
21523/* end confdefs.h. */
21524#include <iostream>
21525
21526int
21527main ()
21528{
21529if ((std::istream *) 0)
21530 return 0;
21531if (sizeof (std::istream))
21532 return 0;
21533 ;
21534 return 0;
21535}
21536_ACEOF
21537rm -f conftest.$ac_objext
21538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21539 (eval $ac_compile) 2>conftest.er1
21540 ac_status=$?
21541 grep -v '^ *+' conftest.er1 >conftest.err
21542 rm -f conftest.er1
21543 cat conftest.err >&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); } &&
8c539582 21546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21548 (eval $ac_try) 2>&5
21549 ac_status=$?
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); }; } &&
21552 { ac_try='test -s conftest.$ac_objext'
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; }; then
21558 ac_cv_type_std__istream=yes
21559else
21560 echo "$as_me: failed program was:" >&5
21561sed 's/^/| /' conftest.$ac_ext >&5
21562
21563ac_cv_type_std__istream=no
21564fi
21565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21566fi
21567echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21568echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21569if test $ac_cv_type_std__istream = yes; then
21570
21571cat >>confdefs.h <<_ACEOF
21572#define HAVE_STD__ISTREAM 1
21573_ACEOF
21574
21575
21576else
21577 wxUSE_STD_IOSTREAM=no
21578fi
21579echo "$as_me:$LINENO: checking for std::ostream" >&5
21580echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21581if test "${ac_cv_type_std__ostream+set}" = set; then
21582 echo $ECHO_N "(cached) $ECHO_C" >&6
21583else
21584 cat >conftest.$ac_ext <<_ACEOF
21585/* confdefs.h. */
21586_ACEOF
21587cat confdefs.h >>conftest.$ac_ext
21588cat >>conftest.$ac_ext <<_ACEOF
21589/* end confdefs.h. */
21590#include <iostream>
21591
21592int
21593main ()
21594{
21595if ((std::ostream *) 0)
21596 return 0;
21597if (sizeof (std::ostream))
21598 return 0;
21599 ;
21600 return 0;
21601}
21602_ACEOF
21603rm -f conftest.$ac_objext
21604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21605 (eval $ac_compile) 2>conftest.er1
21606 ac_status=$?
21607 grep -v '^ *+' conftest.er1 >conftest.err
21608 rm -f conftest.er1
21609 cat conftest.err >&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); } &&
8c539582 21612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614 (eval $ac_try) 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; } &&
21618 { ac_try='test -s conftest.$ac_objext'
21619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21620 (eval $ac_try) 2>&5
21621 ac_status=$?
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); }; }; then
21624 ac_cv_type_std__ostream=yes
21625else
21626 echo "$as_me: failed program was:" >&5
21627sed 's/^/| /' conftest.$ac_ext >&5
21628
21629ac_cv_type_std__ostream=no
21630fi
21631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21632fi
21633echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21634echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21635if test $ac_cv_type_std__ostream = yes; then
21636
21637cat >>confdefs.h <<_ACEOF
21638#define HAVE_STD__OSTREAM 1
21639_ACEOF
21640
21641
21642else
21643 wxUSE_STD_IOSTREAM=no
21644fi
21645
21646
21647 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21648 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21649 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21650echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21651 { (exit 1); exit 1; }; }
21652 else
21653 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21654echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21655 fi
f56c22b4
MW
21656 fi
21657
21658 ac_ext=c
21659ac_cpp='$CPP $CPPFLAGS'
21660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21662ac_compiler_gnu=$ac_cv_c_compiler_gnu
21663
21664fi
21665
21666if test "$wxUSE_STL" = "yes"; then
21667 ac_ext=cc
21668ac_cpp='$CXXCPP $CPPFLAGS'
21669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21672
21673
21674 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21675echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21676 cat >conftest.$ac_ext <<_ACEOF
21677/* confdefs.h. */
21678_ACEOF
21679cat confdefs.h >>conftest.$ac_ext
21680cat >>conftest.$ac_ext <<_ACEOF
21681/* end confdefs.h. */
21682#include <string>
0a08f02a
MB
21683 #include <functional>
21684 #include <algorithm>
21685 #include <vector>
21686 #include <list>
a848cd7e
SC
21687int
21688main ()
21689{
0a08f02a
MB
21690std::vector<int> moo;
21691 std::list<int> foo;
21692 std::vector<int>::iterator it =
21693 std::find_if(moo.begin(), moo.end(),
21694 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21695 ;
21696 return 0;
21697}
21698_ACEOF
21699rm -f conftest.$ac_objext
21700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21701 (eval $ac_compile) 2>conftest.er1
a848cd7e 21702 ac_status=$?
ac1cb8d3
VS
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
a848cd7e
SC
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
8c539582 21708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710 (eval $ac_try) 2>&5
21711 ac_status=$?
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; } &&
21714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716 (eval $ac_try) 2>&5
21717 ac_status=$?
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); }; }; then
21720 echo "$as_me:$LINENO: result: yes" >&5
21721echo "${ECHO_T}yes" >&6
a848cd7e
SC
21722else
21723 echo "$as_me: failed program was:" >&5
21724sed 's/^/| /' conftest.$ac_ext >&5
21725
21726echo "$as_me:$LINENO: result: no" >&5
21727echo "${ECHO_T}no" >&6
0a08f02a
MB
21728 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21729echo "$as_me: error: Basic STL functionality missing" >&2;}
21730 { (exit 1); exit 1; }; }
a848cd7e 21731fi
ac1cb8d3 21732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21733
21734 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21735echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21736 cat >conftest.$ac_ext <<_ACEOF
21737/* confdefs.h. */
21738_ACEOF
21739cat confdefs.h >>conftest.$ac_ext
21740cat >>conftest.$ac_ext <<_ACEOF
21741/* end confdefs.h. */
21742#include <string>
21743int
21744main ()
21745{
21746std::string foo, bar;
21747 foo.compare(bar);
21748 foo.compare(1, 1, bar);
21749 foo.compare(1, 1, bar, 1, 1);
21750 foo.compare("");
21751 foo.compare(1, 1, "");
21752 foo.compare(1, 1, "", 2);
21753 ;
21754 return 0;
21755}
21756_ACEOF
21757rm -f conftest.$ac_objext
21758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21759 (eval $ac_compile) 2>conftest.er1
a848cd7e 21760 ac_status=$?
ac1cb8d3
VS
21761 grep -v '^ *+' conftest.er1 >conftest.err
21762 rm -f conftest.er1
21763 cat conftest.err >&5
a848cd7e
SC
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } &&
8c539582 21766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21769 ac_status=$?
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; } &&
21772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21775 ac_status=$?
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; }; then
21778 echo "$as_me:$LINENO: result: yes" >&5
21779echo "${ECHO_T}yes" >&6
21780 cat >>confdefs.h <<\_ACEOF
21781#define HAVE_STD_STRING_COMPARE 1
21782_ACEOF
21783
21784else
21785 echo "$as_me: failed program was:" >&5
21786sed 's/^/| /' conftest.$ac_ext >&5
21787
21788echo "$as_me:$LINENO: result: no" >&5
21789echo "${ECHO_T}no" >&6
21790fi
ac1cb8d3 21791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21792
21793 if test "${ac_cv_header_hash_map+set}" = set; then
21794 echo "$as_me:$LINENO: checking for hash_map" >&5
21795echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21796if test "${ac_cv_header_hash_map+set}" = set; then
21797 echo $ECHO_N "(cached) $ECHO_C" >&6
21798fi
21799echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21800echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21801else
21802 # Is the header compilable?
21803echo "$as_me:$LINENO: checking hash_map usability" >&5
21804echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21805cat >conftest.$ac_ext <<_ACEOF
21806/* confdefs.h. */
21807_ACEOF
21808cat confdefs.h >>conftest.$ac_ext
21809cat >>conftest.$ac_ext <<_ACEOF
21810/* end confdefs.h. */
21811$ac_includes_default
21812#include <hash_map>
21813_ACEOF
21814rm -f conftest.$ac_objext
21815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21816 (eval $ac_compile) 2>conftest.er1
bdcade0a 21817 ac_status=$?
ac1cb8d3
VS
21818 grep -v '^ *+' conftest.er1 >conftest.err
21819 rm -f conftest.er1
21820 cat conftest.err >&5
bdcade0a
MB
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } &&
8c539582 21823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; } &&
21829 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; }; then
21835 ac_header_compiler=yes
21836else
21837 echo "$as_me: failed program was:" >&5
21838sed 's/^/| /' conftest.$ac_ext >&5
21839
21840ac_header_compiler=no
21841fi
ac1cb8d3 21842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21843echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21844echo "${ECHO_T}$ac_header_compiler" >&6
21845
21846# Is the header present?
21847echo "$as_me:$LINENO: checking hash_map presence" >&5
21848echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21849cat >conftest.$ac_ext <<_ACEOF
21850/* confdefs.h. */
21851_ACEOF
21852cat confdefs.h >>conftest.$ac_ext
21853cat >>conftest.$ac_ext <<_ACEOF
21854/* end confdefs.h. */
21855#include <hash_map>
21856_ACEOF
21857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21859 ac_status=$?
21860 grep -v '^ *+' conftest.er1 >conftest.err
21861 rm -f conftest.er1
21862 cat conftest.err >&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); } >/dev/null; then
21865 if test -s conftest.err; then
21866 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21867 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21868 else
21869 ac_cpp_err=
21870 fi
21871else
21872 ac_cpp_err=yes
21873fi
21874if test -z "$ac_cpp_err"; then
21875 ac_header_preproc=yes
21876else
21877 echo "$as_me: failed program was:" >&5
21878sed 's/^/| /' conftest.$ac_ext >&5
21879
21880 ac_header_preproc=no
21881fi
21882rm -f conftest.err conftest.$ac_ext
21883echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21884echo "${ECHO_T}$ac_header_preproc" >&6
21885
21886# So? What about this header?
ac1cb8d3
VS
21887case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21888 yes:no: )
bdcade0a
MB
21889 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21890echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21891 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21892echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21893 ac_header_preproc=yes
bdcade0a 21894 ;;
ac1cb8d3 21895 no:yes:* )
bdcade0a
MB
21896 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21897echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21898 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21899echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21901echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21902 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21903echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21904 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21905echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21906 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21907echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21908 (
21909 cat <<\_ASBOX
ac1cb8d3
VS
21910## ----------------------------------------- ##
21911## Report this to wx-dev@lists.wxwidgets.org ##
21912## ----------------------------------------- ##
bdcade0a
MB
21913_ASBOX
21914 ) |
21915 sed "s/^/$as_me: WARNING: /" >&2
21916 ;;
21917esac
21918echo "$as_me:$LINENO: checking for hash_map" >&5
21919echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21920if test "${ac_cv_header_hash_map+set}" = set; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6
21922else
21923 ac_cv_header_hash_map=$ac_header_preproc
21924fi
21925echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21926echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21927
21928fi
21929if test $ac_cv_header_hash_map = yes; then
21930 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21931echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21932 cat >conftest.$ac_ext <<_ACEOF
21933/* confdefs.h. */
21934_ACEOF
21935cat confdefs.h >>conftest.$ac_ext
21936cat >>conftest.$ac_ext <<_ACEOF
21937/* end confdefs.h. */
21938#include <hash_map>
21939 #include <hash_set>
21940int
21941main ()
21942{
21943std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21944 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21945 ;
21946 return 0;
21947}
21948_ACEOF
21949rm -f conftest.$ac_objext
21950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21951 (eval $ac_compile) 2>conftest.er1
bdcade0a 21952 ac_status=$?
ac1cb8d3
VS
21953 grep -v '^ *+' conftest.er1 >conftest.err
21954 rm -f conftest.er1
21955 cat conftest.err >&5
bdcade0a
MB
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } &&
8c539582 21958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21961 ac_status=$?
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; } &&
21964 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21967 ac_status=$?
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21970 echo "$as_me:$LINENO: result: yes" >&5
21971echo "${ECHO_T}yes" >&6
21972 cat >>confdefs.h <<\_ACEOF
21973#define HAVE_HASH_MAP 1
21974_ACEOF
21975
21976 cat >>confdefs.h <<\_ACEOF
21977#define HAVE_STD_HASH_MAP 1
21978_ACEOF
21979
21980else
21981 echo "$as_me: failed program was:" >&5
21982sed 's/^/| /' conftest.$ac_ext >&5
21983
21984echo "$as_me:$LINENO: result: no" >&5
21985echo "${ECHO_T}no" >&6
21986fi
ac1cb8d3 21987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21988
21989fi
21990
21991
21992
21993 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21994 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21995echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21996if test "${ac_cv_header_ext_hash_map+set}" = set; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21998fi
21999echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22000echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22001else
22002 # Is the header compilable?
22003echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
22004echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
22005cat >conftest.$ac_ext <<_ACEOF
22006/* confdefs.h. */
22007_ACEOF
22008cat confdefs.h >>conftest.$ac_ext
22009cat >>conftest.$ac_ext <<_ACEOF
22010/* end confdefs.h. */
22011$ac_includes_default
22012#include <ext/hash_map>
22013_ACEOF
22014rm -f conftest.$ac_objext
22015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22016 (eval $ac_compile) 2>conftest.er1
bdcade0a 22017 ac_status=$?
ac1cb8d3
VS
22018 grep -v '^ *+' conftest.er1 >conftest.err
22019 rm -f conftest.er1
22020 cat conftest.err >&5
bdcade0a
MB
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } &&
8c539582 22023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22026 ac_status=$?
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; } &&
22029 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031 (eval $ac_try) 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 ac_header_compiler=yes
22036else
22037 echo "$as_me: failed program was:" >&5
22038sed 's/^/| /' conftest.$ac_ext >&5
22039
22040ac_header_compiler=no
22041fi
ac1cb8d3 22042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22044echo "${ECHO_T}$ac_header_compiler" >&6
22045
22046# Is the header present?
22047echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22048echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22049cat >conftest.$ac_ext <<_ACEOF
22050/* confdefs.h. */
22051_ACEOF
22052cat confdefs.h >>conftest.$ac_ext
22053cat >>conftest.$ac_ext <<_ACEOF
22054/* end confdefs.h. */
22055#include <ext/hash_map>
22056_ACEOF
22057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22059 ac_status=$?
22060 grep -v '^ *+' conftest.er1 >conftest.err
22061 rm -f conftest.er1
22062 cat conftest.err >&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } >/dev/null; then
22065 if test -s conftest.err; then
22066 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22067 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22068 else
22069 ac_cpp_err=
22070 fi
22071else
22072 ac_cpp_err=yes
22073fi
22074if test -z "$ac_cpp_err"; then
22075 ac_header_preproc=yes
22076else
22077 echo "$as_me: failed program was:" >&5
22078sed 's/^/| /' conftest.$ac_ext >&5
22079
22080 ac_header_preproc=no
22081fi
22082rm -f conftest.err conftest.$ac_ext
22083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22084echo "${ECHO_T}$ac_header_preproc" >&6
22085
22086# So? What about this header?
ac1cb8d3
VS
22087case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22088 yes:no: )
bdcade0a
MB
22089 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22090echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22091 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22092echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22093 ac_header_preproc=yes
bdcade0a 22094 ;;
ac1cb8d3 22095 no:yes:* )
bdcade0a
MB
22096 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22097echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22098 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22099echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22101echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22103echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22104 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22105echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22106 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22107echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22108 (
22109 cat <<\_ASBOX
ac1cb8d3
VS
22110## ----------------------------------------- ##
22111## Report this to wx-dev@lists.wxwidgets.org ##
22112## ----------------------------------------- ##
bdcade0a
MB
22113_ASBOX
22114 ) |
22115 sed "s/^/$as_me: WARNING: /" >&2
22116 ;;
22117esac
22118echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22119echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22120if test "${ac_cv_header_ext_hash_map+set}" = set; then
22121 echo $ECHO_N "(cached) $ECHO_C" >&6
22122else
22123 ac_cv_header_ext_hash_map=$ac_header_preproc
22124fi
22125echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22126echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22127
22128fi
22129if test $ac_cv_header_ext_hash_map = yes; then
22130 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22131echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22132 cat >conftest.$ac_ext <<_ACEOF
22133/* confdefs.h. */
22134_ACEOF
22135cat confdefs.h >>conftest.$ac_ext
22136cat >>conftest.$ac_ext <<_ACEOF
22137/* end confdefs.h. */
22138#include <ext/hash_map>
22139 #include <ext/hash_set>
22140int
22141main ()
22142{
22143__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22144 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22145 ;
22146 return 0;
22147}
22148_ACEOF
22149rm -f conftest.$ac_objext
22150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22151 (eval $ac_compile) 2>conftest.er1
bdcade0a 22152 ac_status=$?
ac1cb8d3
VS
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
bdcade0a
MB
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } &&
8c539582 22158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160 (eval $ac_try) 2>&5
22161 ac_status=$?
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; } &&
22164 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22166 (eval $ac_try) 2>&5
22167 ac_status=$?
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); }; }; then
22170 echo "$as_me:$LINENO: result: yes" >&5
22171echo "${ECHO_T}yes" >&6
22172 cat >>confdefs.h <<\_ACEOF
22173#define HAVE_EXT_HASH_MAP 1
22174_ACEOF
22175
22176 cat >>confdefs.h <<\_ACEOF
22177#define HAVE_GNU_CXX_HASH_MAP 1
22178_ACEOF
22179
22180else
22181 echo "$as_me: failed program was:" >&5
22182sed 's/^/| /' conftest.$ac_ext >&5
22183
22184echo "$as_me:$LINENO: result: no" >&5
22185echo "${ECHO_T}no" >&6
22186fi
ac1cb8d3 22187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22188
22189fi
22190
22191
a848cd7e
SC
22192
22193 ac_ext=c
22194ac_cpp='$CPP $CPPFLAGS'
22195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22197ac_compiler_gnu=$ac_cv_c_compiler_gnu
22198
22199fi
22200
22201
22202SEARCH_INCLUDE="\
22203 /usr/local/include \
22204 \
22205 /usr/Motif-2.1/include \
22206 /usr/Motif-1.2/include \
22207 /usr/include/Motif1.2 \
22208 /opt/xpm/include/X11 \
22209 /opt/GBxpm/include/ \
22210 /opt/GBxpm/X11/include/ \
22211 \
22212 /usr/dt/include \
22213 /usr/openwin/include \
22214 \
22215 /usr/include/Xm \
22216 \
22217 /usr/X11R6/include \
22218 /usr/X11R6.4/include \
22219 /usr/X11R5/include \
22220 /usr/X11R4/include \
22221 \
22222 /usr/include/X11R6 \
22223 /usr/include/X11R5 \
22224 /usr/include/X11R4 \
22225 \
22226 /usr/local/X11R6/include \
22227 /usr/local/X11R5/include \
22228 /usr/local/X11R4/include \
22229 \
22230 /usr/local/include/X11R6 \
22231 /usr/local/include/X11R5 \
22232 /usr/local/include/X11R4 \
22233 \
22234 /usr/X11/include \
22235 /usr/include/X11 \
22236 /usr/local/X11/include \
22237 /usr/local/include/X11 \
22238 \
22239 /usr/X386/include \
22240 /usr/x386/include \
22241 /usr/XFree86/include/X11 \
22242 \
22243 X:/XFree86/include \
22244 X:/XFree86/include/X11 \
22245 \
22246 /usr/include/gtk \
22247 /usr/local/include/gtk \
22248 /usr/include/glib \
22249 /usr/local/include/glib \
22250 \
22251 /usr/include/qt \
22252 /usr/local/include/qt \
22253 \
22254 /usr/local/arm/3.3.2/include \
22255 \
22256 /usr/include/windows \
22257 /usr/include/wine \
22258 /usr/local/include/wine \
22259 \
22260 /usr/unsupported/include \
22261 /usr/athena/include \
22262 /usr/local/x11r5/include \
22263 /usr/lpp/Xamples/include \
22264 \
22265 /usr/openwin/share/include"
22266
07158944 22267SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
22268
22269
22270cat >confcache <<\_ACEOF
22271# This file is a shell script that caches the results of configure
22272# tests run on this system so they can be shared between configure
22273# scripts and configure runs, see configure's option --config-cache.
22274# It is not useful on other systems. If it contains results you don't
22275# want to keep, you may remove or edit it.
22276#
22277# config.status only pays attention to the cache file if you give it
22278# the --recheck option to rerun configure.
22279#
22280# `ac_cv_env_foo' variables (set or unset) will be overridden when
22281# loading this file, other *unset* `ac_cv_foo' will be assigned the
22282# following values.
22283
22284_ACEOF
22285
22286# The following way of writing the cache mishandles newlines in values,
22287# but we know of no workaround that is simple, portable, and efficient.
22288# So, don't put newlines in cache variables' values.
22289# Ultrix sh set writes to stderr and can't be redirected directly,
22290# and sets the high bit in the cache file unless we assign to the vars.
22291{
22292 (set) 2>&1 |
22293 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22294 *ac_space=\ *)
22295 # `set' does not quote correctly, so add quotes (double-quote
22296 # substitution turns \\\\ into \\, and sed turns \\ into \).
22297 sed -n \
ac1cb8d3
VS
22298 "s/'/'\\\\''/g;
22299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22300 ;;
22301 *)
22302 # `set' quotes correctly as required by POSIX, so do not add quotes.
22303 sed -n \
ac1cb8d3 22304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22305 ;;
22306 esac;
22307} |
22308 sed '
22309 t clear
22310 : clear
22311 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22312 t end
22313 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22314 : end' >>confcache
22315if diff $cache_file confcache >/dev/null 2>&1; then :; else
22316 if test -w $cache_file; then
22317 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22318 cat confcache >$cache_file
22319 else
22320 echo "not updating unwritable cache $cache_file"
22321 fi
22322fi
22323rm -f confcache
22324
22325if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22326 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22327echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22328if test "${wx_cv_lib_glibc21+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22330else
22331
22332 cat >conftest.$ac_ext <<_ACEOF
22333/* confdefs.h. */
22334_ACEOF
22335cat confdefs.h >>conftest.$ac_ext
22336cat >>conftest.$ac_ext <<_ACEOF
22337/* end confdefs.h. */
22338#include <features.h>
22339int
22340main ()
22341{
22342
22343 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22344 #error not glibc2.1
22345 #endif
22346
22347 ;
22348 return 0;
22349}
22350_ACEOF
22351rm -f conftest.$ac_objext
22352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22353 (eval $ac_compile) 2>conftest.er1
a848cd7e 22354 ac_status=$?
ac1cb8d3
VS
22355 grep -v '^ *+' conftest.er1 >conftest.err
22356 rm -f conftest.er1
22357 cat conftest.err >&5
a848cd7e
SC
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } &&
8c539582 22360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22363 ac_status=$?
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; } &&
22366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368 (eval $ac_try) 2>&5
22369 ac_status=$?
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; }; then
22372
22373 wx_cv_lib_glibc21=yes
22374
22375else
22376 echo "$as_me: failed program was:" >&5
22377sed 's/^/| /' conftest.$ac_ext >&5
22378
22379
22380 wx_cv_lib_glibc21=no
22381
22382
22383fi
ac1cb8d3 22384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22385
22386fi
22387echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22388echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22389 if test "$wx_cv_lib_glibc21" = "yes"; then
22390 cat >>confdefs.h <<\_ACEOF
22391#define wxHAVE_GLIBC2 1
22392_ACEOF
22393
22394 fi
22395fi
22396
22397if test "x$wx_cv_lib_glibc21" = "xyes"; then
22398 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22399 cat >>confdefs.h <<\_ACEOF
22400#define _GNU_SOURCE 1
22401_ACEOF
22402
22403 fi
22404fi
22405
22406
22407
22408if test "$wxUSE_REGEX" != "no"; then
22409 cat >>confdefs.h <<\_ACEOF
22410#define wxUSE_REGEX 1
22411_ACEOF
22412
22413
22414 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22415 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22416echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22417 wxUSE_REGEX=builtin
22418 fi
22419
22420 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22421 if test "${ac_cv_header_regex_h+set}" = set; then
22422 echo "$as_me:$LINENO: checking for regex.h" >&5
22423echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22424if test "${ac_cv_header_regex_h+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22426fi
22427echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22428echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22429else
22430 # Is the header compilable?
22431echo "$as_me:$LINENO: checking regex.h usability" >&5
22432echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22433cat >conftest.$ac_ext <<_ACEOF
22434/* confdefs.h. */
22435_ACEOF
22436cat confdefs.h >>conftest.$ac_ext
22437cat >>conftest.$ac_ext <<_ACEOF
22438/* end confdefs.h. */
22439$ac_includes_default
22440#include <regex.h>
22441_ACEOF
22442rm -f conftest.$ac_objext
22443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22444 (eval $ac_compile) 2>conftest.er1
a848cd7e 22445 ac_status=$?
ac1cb8d3
VS
22446 grep -v '^ *+' conftest.er1 >conftest.err
22447 rm -f conftest.er1
22448 cat conftest.err >&5
a848cd7e
SC
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); } &&
8c539582 22451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453 (eval $ac_try) 2>&5
22454 ac_status=$?
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); }; } &&
22457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22463 ac_header_compiler=yes
22464else
22465 echo "$as_me: failed program was:" >&5
22466sed 's/^/| /' conftest.$ac_ext >&5
22467
22468ac_header_compiler=no
22469fi
ac1cb8d3 22470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22472echo "${ECHO_T}$ac_header_compiler" >&6
22473
22474# Is the header present?
22475echo "$as_me:$LINENO: checking regex.h presence" >&5
22476echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22477cat >conftest.$ac_ext <<_ACEOF
22478/* confdefs.h. */
22479_ACEOF
22480cat confdefs.h >>conftest.$ac_ext
22481cat >>conftest.$ac_ext <<_ACEOF
22482/* end confdefs.h. */
22483#include <regex.h>
22484_ACEOF
22485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22487 ac_status=$?
22488 grep -v '^ *+' conftest.er1 >conftest.err
22489 rm -f conftest.er1
22490 cat conftest.err >&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); } >/dev/null; then
22493 if test -s conftest.err; then
22494 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22496 else
22497 ac_cpp_err=
22498 fi
22499else
22500 ac_cpp_err=yes
22501fi
22502if test -z "$ac_cpp_err"; then
22503 ac_header_preproc=yes
22504else
22505 echo "$as_me: failed program was:" >&5
22506sed 's/^/| /' conftest.$ac_ext >&5
22507
22508 ac_header_preproc=no
22509fi
22510rm -f conftest.err conftest.$ac_ext
22511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22512echo "${ECHO_T}$ac_header_preproc" >&6
22513
22514# So? What about this header?
ac1cb8d3
VS
22515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22516 yes:no: )
a848cd7e
SC
22517 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22518echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22519 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22520echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22521 ac_header_preproc=yes
a848cd7e 22522 ;;
ac1cb8d3 22523 no:yes:* )
a848cd7e
SC
22524 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22525echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22526 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22527echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22528 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22529echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22530 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22531echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22532 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22533echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22534 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22535echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22536 (
22537 cat <<\_ASBOX
ac1cb8d3
VS
22538## ----------------------------------------- ##
22539## Report this to wx-dev@lists.wxwidgets.org ##
22540## ----------------------------------------- ##
a848cd7e
SC
22541_ASBOX
22542 ) |
22543 sed "s/^/$as_me: WARNING: /" >&2
22544 ;;
22545esac
22546echo "$as_me:$LINENO: checking for regex.h" >&5
22547echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22548if test "${ac_cv_header_regex_h+set}" = set; then
22549 echo $ECHO_N "(cached) $ECHO_C" >&6
22550else
22551 ac_cv_header_regex_h=$ac_header_preproc
22552fi
22553echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22554echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22555
22556fi
22557if test $ac_cv_header_regex_h = yes; then
22558
22559for ac_func in regcomp
22560do
22561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22562echo "$as_me:$LINENO: checking for $ac_func" >&5
22563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22564if eval "test \"\${$as_ac_var+set}\" = set"; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22566else
22567 cat >conftest.$ac_ext <<_ACEOF
22568/* confdefs.h. */
22569_ACEOF
22570cat confdefs.h >>conftest.$ac_ext
22571cat >>conftest.$ac_ext <<_ACEOF
22572/* end confdefs.h. */
ac1cb8d3
VS
22573/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22575#define $ac_func innocuous_$ac_func
22576
a848cd7e
SC
22577/* System header to define __stub macros and hopefully few prototypes,
22578 which can conflict with char $ac_func (); below.
22579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22580 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22581
a848cd7e
SC
22582#ifdef __STDC__
22583# include <limits.h>
22584#else
22585# include <assert.h>
22586#endif
ac1cb8d3
VS
22587
22588#undef $ac_func
22589
a848cd7e
SC
22590/* Override any gcc2 internal prototype to avoid an error. */
22591#ifdef __cplusplus
22592extern "C"
22593{
22594#endif
22595/* We use char because int might match the return type of a gcc2
22596 builtin and then its argument prototype would still apply. */
22597char $ac_func ();
22598/* The GNU C library defines this for functions which it implements
22599 to always fail with ENOSYS. Some functions are actually named
22600 something starting with __ and the normal name is an alias. */
22601#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22602choke me
22603#else
22604char (*f) () = $ac_func;
22605#endif
22606#ifdef __cplusplus
22607}
22608#endif
22609
22610int
22611main ()
22612{
22613return f != $ac_func;
22614 ;
22615 return 0;
22616}
22617_ACEOF
22618rm -f conftest.$ac_objext conftest$ac_exeext
22619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22620 (eval $ac_link) 2>conftest.er1
a848cd7e 22621 ac_status=$?
ac1cb8d3
VS
22622 grep -v '^ *+' conftest.er1 >conftest.err
22623 rm -f conftest.er1
22624 cat conftest.err >&5
a848cd7e
SC
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } &&
8c539582 22627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; } &&
22633 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635 (eval $ac_try) 2>&5
22636 ac_status=$?
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; }; then
22639 eval "$as_ac_var=yes"
22640else
22641 echo "$as_me: failed program was:" >&5
22642sed 's/^/| /' conftest.$ac_ext >&5
22643
22644eval "$as_ac_var=no"
22645fi
ac1cb8d3
VS
22646rm -f conftest.err conftest.$ac_objext \
22647 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22648fi
22649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22651if test `eval echo '${'$as_ac_var'}'` = yes; then
22652 cat >>confdefs.h <<_ACEOF
22653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22654_ACEOF
22655
22656fi
22657done
22658
22659fi
22660
22661
22662
22663 if test "x$ac_cv_func_regcomp" != "xyes"; then
22664 if test "$wxUSE_REGEX" = "sys" ; then
22665 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22666echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22667 { (exit 1); exit 1; }; }
22668 else
22669 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22670echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22671 wxUSE_REGEX=builtin
22672 fi
22673 else
22674 wxUSE_REGEX=sys
22675 cat >>confdefs.h <<\_ACEOF
22676#define WX_NO_REGEX_ADVANCED 1
22677_ACEOF
22678
22679 fi
22680 fi
22681fi
22682
22683
22684ZLIB_LINK=
22685if test "$wxUSE_ZLIB" != "no" ; then
22686 cat >>confdefs.h <<\_ACEOF
22687#define wxUSE_ZLIB 1
22688_ACEOF
22689
22690
22691 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22692 if test "$USE_DARWIN" = 1; then
22693 system_zlib_h_ok="yes"
22694 else
22695 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22696echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22697if test "${ac_cv_header_zlib_h+set}" = set; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22699else
22700 if test "$cross_compiling" = yes; then
22701 unset ac_cv_header_zlib_h
22702
22703else
22704 cat >conftest.$ac_ext <<_ACEOF
22705/* confdefs.h. */
22706_ACEOF
22707cat confdefs.h >>conftest.$ac_ext
22708cat >>conftest.$ac_ext <<_ACEOF
22709/* end confdefs.h. */
22710
22711 #include <zlib.h>
22712 #include <stdio.h>
22713
22714 int main()
22715 {
22716 FILE *f=fopen("conftestval", "w");
22717 if (!f) exit(1);
22718 fprintf(f, "%s",
22719 ZLIB_VERSION[0] == '1' &&
22720 (ZLIB_VERSION[2] > '1' ||
22721 (ZLIB_VERSION[2] == '1' &&
22722 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22723 exit(0);
22724 }
22725
22726_ACEOF
22727rm -f conftest$ac_exeext
22728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22729 (eval $ac_link) 2>&5
22730 ac_status=$?
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22735 ac_status=$?
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; }; then
22738 ac_cv_header_zlib_h=`cat conftestval`
22739else
22740 echo "$as_me: program exited with status $ac_status" >&5
22741echo "$as_me: failed program was:" >&5
22742sed 's/^/| /' conftest.$ac_ext >&5
22743
22744( exit $ac_status )
22745ac_cv_header_zlib_h=no
22746fi
ac1cb8d3 22747rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22748fi
22749
22750fi
22751echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22752echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22753 if test "${ac_cv_header_zlib_h+set}" = set; then
22754 echo "$as_me:$LINENO: checking for zlib.h" >&5
22755echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22756if test "${ac_cv_header_zlib_h+set}" = set; then
22757 echo $ECHO_N "(cached) $ECHO_C" >&6
22758fi
22759echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22760echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22761else
22762 # Is the header compilable?
22763echo "$as_me:$LINENO: checking zlib.h usability" >&5
22764echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22765cat >conftest.$ac_ext <<_ACEOF
22766/* confdefs.h. */
22767_ACEOF
22768cat confdefs.h >>conftest.$ac_ext
22769cat >>conftest.$ac_ext <<_ACEOF
22770/* end confdefs.h. */
22771$ac_includes_default
22772#include <zlib.h>
22773_ACEOF
22774rm -f conftest.$ac_objext
22775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22776 (eval $ac_compile) 2>conftest.er1
a848cd7e 22777 ac_status=$?
ac1cb8d3
VS
22778 grep -v '^ *+' conftest.er1 >conftest.err
22779 rm -f conftest.er1
22780 cat conftest.err >&5
a848cd7e
SC
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); } &&
8c539582 22783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785 (eval $ac_try) 2>&5
22786 ac_status=$?
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); }; } &&
22789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791 (eval $ac_try) 2>&5
22792 ac_status=$?
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); }; }; then
22795 ac_header_compiler=yes
22796else
22797 echo "$as_me: failed program was:" >&5
22798sed 's/^/| /' conftest.$ac_ext >&5
22799
22800ac_header_compiler=no
22801fi
ac1cb8d3 22802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22803echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22804echo "${ECHO_T}$ac_header_compiler" >&6
22805
22806# Is the header present?
22807echo "$as_me:$LINENO: checking zlib.h presence" >&5
22808echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22809cat >conftest.$ac_ext <<_ACEOF
22810/* confdefs.h. */
22811_ACEOF
22812cat confdefs.h >>conftest.$ac_ext
22813cat >>conftest.$ac_ext <<_ACEOF
22814/* end confdefs.h. */
22815#include <zlib.h>
22816_ACEOF
22817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22819 ac_status=$?
22820 grep -v '^ *+' conftest.er1 >conftest.err
22821 rm -f conftest.er1
22822 cat conftest.err >&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } >/dev/null; then
22825 if test -s conftest.err; then
22826 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22828 else
22829 ac_cpp_err=
22830 fi
22831else
22832 ac_cpp_err=yes
22833fi
22834if test -z "$ac_cpp_err"; then
22835 ac_header_preproc=yes
22836else
22837 echo "$as_me: failed program was:" >&5
22838sed 's/^/| /' conftest.$ac_ext >&5
22839
22840 ac_header_preproc=no
22841fi
22842rm -f conftest.err conftest.$ac_ext
22843echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22844echo "${ECHO_T}$ac_header_preproc" >&6
22845
22846# So? What about this header?
ac1cb8d3
VS
22847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22848 yes:no: )
a848cd7e
SC
22849 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22850echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22851 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22852echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22853 ac_header_preproc=yes
a848cd7e 22854 ;;
ac1cb8d3 22855 no:yes:* )
a848cd7e
SC
22856 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22857echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22858 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22859echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22860 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22861echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22862 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22863echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22864 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22865echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22866 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22867echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22868 (
22869 cat <<\_ASBOX
ac1cb8d3
VS
22870## ----------------------------------------- ##
22871## Report this to wx-dev@lists.wxwidgets.org ##
22872## ----------------------------------------- ##
a848cd7e
SC
22873_ASBOX
22874 ) |
22875 sed "s/^/$as_me: WARNING: /" >&2
22876 ;;
22877esac
22878echo "$as_me:$LINENO: checking for zlib.h" >&5
22879echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22880if test "${ac_cv_header_zlib_h+set}" = set; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22882else
22883 ac_cv_header_zlib_h=$ac_header_preproc
22884fi
22885echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22886echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22887
22888fi
22889
22890
22891
22892 system_zlib_h_ok=$ac_cv_header_zlib_h
22893 fi
22894
22895 if test "$system_zlib_h_ok" = "yes"; then
22896 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22897echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22898if test "${ac_cv_lib_z_deflate+set}" = set; then
22899 echo $ECHO_N "(cached) $ECHO_C" >&6
22900else
22901 ac_check_lib_save_LIBS=$LIBS
22902LIBS="-lz $LIBS"
22903cat >conftest.$ac_ext <<_ACEOF
22904/* confdefs.h. */
22905_ACEOF
22906cat confdefs.h >>conftest.$ac_ext
22907cat >>conftest.$ac_ext <<_ACEOF
22908/* end confdefs.h. */
22909
22910/* Override any gcc2 internal prototype to avoid an error. */
22911#ifdef __cplusplus
22912extern "C"
22913#endif
22914/* We use char because int might match the return type of a gcc2
22915 builtin and then its argument prototype would still apply. */
22916char deflate ();
22917int
22918main ()
22919{
22920deflate ();
22921 ;
22922 return 0;
22923}
22924_ACEOF
22925rm -f conftest.$ac_objext conftest$ac_exeext
22926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22927 (eval $ac_link) 2>conftest.er1
a848cd7e 22928 ac_status=$?
ac1cb8d3
VS
22929 grep -v '^ *+' conftest.er1 >conftest.err
22930 rm -f conftest.er1
22931 cat conftest.err >&5
a848cd7e
SC
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); } &&
8c539582 22934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936 (eval $ac_try) 2>&5
22937 ac_status=$?
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); }; } &&
22940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22942 (eval $ac_try) 2>&5
22943 ac_status=$?
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); }; }; then
22946 ac_cv_lib_z_deflate=yes
22947else
22948 echo "$as_me: failed program was:" >&5
22949sed 's/^/| /' conftest.$ac_ext >&5
22950
22951ac_cv_lib_z_deflate=no
22952fi
ac1cb8d3
VS
22953rm -f conftest.err conftest.$ac_objext \
22954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22955LIBS=$ac_check_lib_save_LIBS
22956fi
22957echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22958echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22959if test $ac_cv_lib_z_deflate = yes; then
22960 ZLIB_LINK=" -lz"
22961fi
22962
22963 fi
22964
22965 if test "x$ZLIB_LINK" = "x" ; then
22966 if test "$wxUSE_ZLIB" = "sys" ; then
22967 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22968echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22969 { (exit 1); exit 1; }; }
22970 else
22971 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22972echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22973 wxUSE_ZLIB=builtin
22974 fi
22975 else
22976 wxUSE_ZLIB=sys
22977 fi
22978 fi
22979fi
22980
22981
22982PNG_LINK=
22983if test "$wxUSE_LIBPNG" != "no" ; then
22984 cat >>confdefs.h <<\_ACEOF
22985#define wxUSE_LIBPNG 1
22986_ACEOF
22987
22988
22989 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22990 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22991echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22992 wxUSE_LIBPNG=sys
22993 fi
22994
22995 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22996 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22997echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22998 wxUSE_LIBPNG=builtin
22999 fi
23000
23001 if test "$wxUSE_MGL" != 1 ; then
23002 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
23003 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
23004echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23005if test "${ac_cv_header_png_h+set}" = set; then
23006 echo $ECHO_N "(cached) $ECHO_C" >&6
23007else
23008 if test "$cross_compiling" = yes; then
23009 unset ac_cv_header_png_h
23010
23011else
23012 cat >conftest.$ac_ext <<_ACEOF
23013/* confdefs.h. */
23014_ACEOF
23015cat confdefs.h >>conftest.$ac_ext
23016cat >>conftest.$ac_ext <<_ACEOF
23017/* end confdefs.h. */
23018
23019 #include <png.h>
23020 #include <stdio.h>
23021
23022 int main()
23023 {
23024 FILE *f=fopen("conftestval", "w");
23025 if (!f) exit(1);
23026 fprintf(f, "%s",
23027 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23028 exit(0);
23029 }
23030
23031_ACEOF
23032rm -f conftest$ac_exeext
23033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23034 (eval $ac_link) 2>&5
23035 ac_status=$?
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039 (eval $ac_try) 2>&5
23040 ac_status=$?
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); }; }; then
23043 ac_cv_header_png_h=`cat conftestval`
23044else
23045 echo "$as_me: program exited with status $ac_status" >&5
23046echo "$as_me: failed program was:" >&5
23047sed 's/^/| /' conftest.$ac_ext >&5
23048
23049( exit $ac_status )
23050ac_cv_header_png_h=no
23051fi
ac1cb8d3 23052rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23053fi
23054
23055fi
23056echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23057echo "${ECHO_T}$ac_cv_header_png_h" >&6
23058 if test "${ac_cv_header_png_h+set}" = set; then
23059 echo "$as_me:$LINENO: checking for png.h" >&5
23060echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23061if test "${ac_cv_header_png_h+set}" = set; then
23062 echo $ECHO_N "(cached) $ECHO_C" >&6
23063fi
23064echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23065echo "${ECHO_T}$ac_cv_header_png_h" >&6
23066else
23067 # Is the header compilable?
23068echo "$as_me:$LINENO: checking png.h usability" >&5
23069echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23070cat >conftest.$ac_ext <<_ACEOF
23071/* confdefs.h. */
23072_ACEOF
23073cat confdefs.h >>conftest.$ac_ext
23074cat >>conftest.$ac_ext <<_ACEOF
23075/* end confdefs.h. */
23076$ac_includes_default
23077#include <png.h>
23078_ACEOF
23079rm -f conftest.$ac_objext
23080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23081 (eval $ac_compile) 2>conftest.er1
a848cd7e 23082 ac_status=$?
ac1cb8d3
VS
23083 grep -v '^ *+' conftest.er1 >conftest.err
23084 rm -f conftest.er1
23085 cat conftest.err >&5
a848cd7e
SC
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); } &&
8c539582 23088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23090 (eval $ac_try) 2>&5
23091 ac_status=$?
23092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); }; } &&
23094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23096 (eval $ac_try) 2>&5
23097 ac_status=$?
23098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); }; }; then
23100 ac_header_compiler=yes
23101else
23102 echo "$as_me: failed program was:" >&5
23103sed 's/^/| /' conftest.$ac_ext >&5
23104
23105ac_header_compiler=no
23106fi
ac1cb8d3 23107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23108echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23109echo "${ECHO_T}$ac_header_compiler" >&6
23110
23111# Is the header present?
23112echo "$as_me:$LINENO: checking png.h presence" >&5
23113echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23114cat >conftest.$ac_ext <<_ACEOF
23115/* confdefs.h. */
23116_ACEOF
23117cat confdefs.h >>conftest.$ac_ext
23118cat >>conftest.$ac_ext <<_ACEOF
23119/* end confdefs.h. */
23120#include <png.h>
23121_ACEOF
23122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23124 ac_status=$?
23125 grep -v '^ *+' conftest.er1 >conftest.err
23126 rm -f conftest.er1
23127 cat conftest.err >&5
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } >/dev/null; then
23130 if test -s conftest.err; then
23131 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23133 else
23134 ac_cpp_err=
23135 fi
23136else
23137 ac_cpp_err=yes
23138fi
23139if test -z "$ac_cpp_err"; then
23140 ac_header_preproc=yes
23141else
23142 echo "$as_me: failed program was:" >&5
23143sed 's/^/| /' conftest.$ac_ext >&5
23144
23145 ac_header_preproc=no
23146fi
23147rm -f conftest.err conftest.$ac_ext
23148echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23149echo "${ECHO_T}$ac_header_preproc" >&6
23150
23151# So? What about this header?
ac1cb8d3
VS
23152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23153 yes:no: )
a848cd7e
SC
23154 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23155echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23156 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23157echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23158 ac_header_preproc=yes
a848cd7e 23159 ;;
ac1cb8d3 23160 no:yes:* )
a848cd7e
SC
23161 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23162echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23163 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23164echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23165 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23166echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23167 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23168echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23169 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23170echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23171 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23172echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23173 (
23174 cat <<\_ASBOX
ac1cb8d3
VS
23175## ----------------------------------------- ##
23176## Report this to wx-dev@lists.wxwidgets.org ##
23177## ----------------------------------------- ##
a848cd7e
SC
23178_ASBOX
23179 ) |
23180 sed "s/^/$as_me: WARNING: /" >&2
23181 ;;
23182esac
23183echo "$as_me:$LINENO: checking for png.h" >&5
23184echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23185if test "${ac_cv_header_png_h+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23187else
23188 ac_cv_header_png_h=$ac_header_preproc
23189fi
23190echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23191echo "${ECHO_T}$ac_cv_header_png_h" >&6
23192
23193fi
23194
23195
23196
23197 if test "$ac_cv_header_png_h" = "yes"; then
23198 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23199echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23200if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23201 echo $ECHO_N "(cached) $ECHO_C" >&6
23202else
23203 ac_check_lib_save_LIBS=$LIBS
23204LIBS="-lpng -lz -lm $LIBS"
23205cat >conftest.$ac_ext <<_ACEOF
23206/* confdefs.h. */
23207_ACEOF
23208cat confdefs.h >>conftest.$ac_ext
23209cat >>conftest.$ac_ext <<_ACEOF
23210/* end confdefs.h. */
23211
23212/* Override any gcc2 internal prototype to avoid an error. */
23213#ifdef __cplusplus
23214extern "C"
23215#endif
23216/* We use char because int might match the return type of a gcc2
23217 builtin and then its argument prototype would still apply. */
23218char png_check_sig ();
23219int
23220main ()
23221{
23222png_check_sig ();
23223 ;
23224 return 0;
23225}
23226_ACEOF
23227rm -f conftest.$ac_objext conftest$ac_exeext
23228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23229 (eval $ac_link) 2>conftest.er1
a848cd7e 23230 ac_status=$?
ac1cb8d3
VS
23231 grep -v '^ *+' conftest.er1 >conftest.err
23232 rm -f conftest.er1
23233 cat conftest.err >&5
a848cd7e
SC
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } &&
8c539582 23236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; } &&
23242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 ac_cv_lib_png_png_check_sig=yes
23249else
23250 echo "$as_me: failed program was:" >&5
23251sed 's/^/| /' conftest.$ac_ext >&5
23252
23253ac_cv_lib_png_png_check_sig=no
23254fi
ac1cb8d3
VS
23255rm -f conftest.err conftest.$ac_objext \
23256 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23257LIBS=$ac_check_lib_save_LIBS
23258fi
23259echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23260echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23261if test $ac_cv_lib_png_png_check_sig = yes; then
23262 PNG_LINK=" -lpng -lz"
23263fi
23264
23265 fi
23266
23267 if test "x$PNG_LINK" = "x" ; then
23268 if test "$wxUSE_LIBPNG" = "sys" ; then
23269 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23270echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23271 { (exit 1); exit 1; }; }
23272 else
23273 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23274echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23275 wxUSE_LIBPNG=builtin
23276 fi
23277 else
23278 wxUSE_LIBPNG=sys
23279 fi
23280 fi
23281 fi
23282
23283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23284fi
23285
23286
23287JPEG_LINK=
23288if test "$wxUSE_LIBJPEG" != "no" ; then
23289 cat >>confdefs.h <<\_ACEOF
23290#define wxUSE_LIBJPEG 1
23291_ACEOF
23292
23293
23294 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23295 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23296echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23297 wxUSE_LIBJPEG=sys
23298 fi
23299
23300 if test "$wxUSE_MGL" != 1 ; then
23301 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23302 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23303echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23304 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23306else
23307 cat >conftest.$ac_ext <<_ACEOF
23308/* confdefs.h. */
23309_ACEOF
23310cat confdefs.h >>conftest.$ac_ext
23311cat >>conftest.$ac_ext <<_ACEOF
23312/* end confdefs.h. */
23313
23314 #undef HAVE_STDLIB_H
23315 #include <stdio.h>
23316 #include <jpeglib.h>
23317
23318int
23319main ()
23320{
23321
23322
23323 ;
23324 return 0;
23325}
23326_ACEOF
23327rm -f conftest.$ac_objext
23328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23329 (eval $ac_compile) 2>conftest.er1
a848cd7e 23330 ac_status=$?
ac1cb8d3
VS
23331 grep -v '^ *+' conftest.er1 >conftest.err
23332 rm -f conftest.er1
23333 cat conftest.err >&5
a848cd7e
SC
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } &&
8c539582 23336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23339 ac_status=$?
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; } &&
23342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344 (eval $ac_try) 2>&5
23345 ac_status=$?
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; }; then
23348 ac_cv_header_jpeglib_h=yes
23349else
23350 echo "$as_me: failed program was:" >&5
23351sed 's/^/| /' conftest.$ac_ext >&5
23352
23353ac_cv_header_jpeglib_h=no
23354
23355fi
ac1cb8d3 23356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23357
23358fi
23359
23360 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23361echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23362
23363 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23364 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23365echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23366if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23367 echo $ECHO_N "(cached) $ECHO_C" >&6
23368else
23369 ac_check_lib_save_LIBS=$LIBS
23370LIBS="-ljpeg $LIBS"
23371cat >conftest.$ac_ext <<_ACEOF
23372/* confdefs.h. */
23373_ACEOF
23374cat confdefs.h >>conftest.$ac_ext
23375cat >>conftest.$ac_ext <<_ACEOF
23376/* end confdefs.h. */
23377
23378/* Override any gcc2 internal prototype to avoid an error. */
23379#ifdef __cplusplus
23380extern "C"
23381#endif
23382/* We use char because int might match the return type of a gcc2
23383 builtin and then its argument prototype would still apply. */
23384char jpeg_read_header ();
23385int
23386main ()
23387{
23388jpeg_read_header ();
23389 ;
23390 return 0;
23391}
23392_ACEOF
23393rm -f conftest.$ac_objext conftest$ac_exeext
23394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23395 (eval $ac_link) 2>conftest.er1
a848cd7e 23396 ac_status=$?
ac1cb8d3
VS
23397 grep -v '^ *+' conftest.er1 >conftest.err
23398 rm -f conftest.er1
23399 cat conftest.err >&5
a848cd7e
SC
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } &&
8c539582 23402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23404 (eval $ac_try) 2>&5
23405 ac_status=$?
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); }; } &&
23408 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23411 ac_status=$?
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; }; then
23414 ac_cv_lib_jpeg_jpeg_read_header=yes
23415else
23416 echo "$as_me: failed program was:" >&5
23417sed 's/^/| /' conftest.$ac_ext >&5
23418
23419ac_cv_lib_jpeg_jpeg_read_header=no
23420fi
ac1cb8d3
VS
23421rm -f conftest.err conftest.$ac_objext \
23422 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23423LIBS=$ac_check_lib_save_LIBS
23424fi
23425echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23426echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23427if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23428 JPEG_LINK=" -ljpeg"
23429fi
23430
23431 fi
23432
23433 if test "x$JPEG_LINK" = "x" ; then
23434 if test "$wxUSE_LIBJPEG" = "sys" ; then
23435 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23436echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23437 { (exit 1); exit 1; }; }
23438 else
23439 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23440echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23441 wxUSE_LIBJPEG=builtin
23442 fi
23443 else
23444 wxUSE_LIBJPEG=sys
23445 fi
23446 fi
23447 fi
23448fi
23449
23450
23451TIFF_LINK=
23452TIFF_PREREQ_LINKS=-lm
23453if test "$wxUSE_LIBTIFF" != "no" ; then
23454 cat >>confdefs.h <<\_ACEOF
23455#define wxUSE_LIBTIFF 1
23456_ACEOF
23457
23458
23459 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23460 if test "$wxUSE_LIBJPEG" = "sys"; then
23461 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23462 fi
23463 if test "$wxUSE_ZLIB" = "sys"; then
23464 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23465 fi
23466 if test "${ac_cv_header_tiffio_h+set}" = set; then
23467 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23468echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23469if test "${ac_cv_header_tiffio_h+set}" = set; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23471fi
23472echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23473echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23474else
23475 # Is the header compilable?
23476echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23477echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23478cat >conftest.$ac_ext <<_ACEOF
23479/* confdefs.h. */
23480_ACEOF
23481cat confdefs.h >>conftest.$ac_ext
23482cat >>conftest.$ac_ext <<_ACEOF
23483/* end confdefs.h. */
23484$ac_includes_default
23485#include <tiffio.h>
23486_ACEOF
23487rm -f conftest.$ac_objext
23488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23489 (eval $ac_compile) 2>conftest.er1
a848cd7e 23490 ac_status=$?
ac1cb8d3
VS
23491 grep -v '^ *+' conftest.er1 >conftest.err
23492 rm -f conftest.er1
23493 cat conftest.err >&5
a848cd7e
SC
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); } &&
8c539582 23496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23498 (eval $ac_try) 2>&5
23499 ac_status=$?
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); }; } &&
23502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23504 (eval $ac_try) 2>&5
23505 ac_status=$?
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); }; }; then
23508 ac_header_compiler=yes
23509else
23510 echo "$as_me: failed program was:" >&5
23511sed 's/^/| /' conftest.$ac_ext >&5
23512
23513ac_header_compiler=no
23514fi
ac1cb8d3 23515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23517echo "${ECHO_T}$ac_header_compiler" >&6
23518
23519# Is the header present?
23520echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23521echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23522cat >conftest.$ac_ext <<_ACEOF
23523/* confdefs.h. */
23524_ACEOF
23525cat confdefs.h >>conftest.$ac_ext
23526cat >>conftest.$ac_ext <<_ACEOF
23527/* end confdefs.h. */
23528#include <tiffio.h>
23529_ACEOF
23530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23532 ac_status=$?
23533 grep -v '^ *+' conftest.er1 >conftest.err
23534 rm -f conftest.er1
23535 cat conftest.err >&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); } >/dev/null; then
23538 if test -s conftest.err; then
23539 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23541 else
23542 ac_cpp_err=
23543 fi
23544else
23545 ac_cpp_err=yes
23546fi
23547if test -z "$ac_cpp_err"; then
23548 ac_header_preproc=yes
23549else
23550 echo "$as_me: failed program was:" >&5
23551sed 's/^/| /' conftest.$ac_ext >&5
23552
23553 ac_header_preproc=no
23554fi
23555rm -f conftest.err conftest.$ac_ext
23556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23557echo "${ECHO_T}$ac_header_preproc" >&6
23558
23559# So? What about this header?
ac1cb8d3
VS
23560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23561 yes:no: )
a848cd7e
SC
23562 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23563echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23564 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23565echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23566 ac_header_preproc=yes
a848cd7e 23567 ;;
ac1cb8d3 23568 no:yes:* )
a848cd7e
SC
23569 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23570echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23571 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23572echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23573 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23574echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23575 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23576echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23577 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23578echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23579 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23580echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23581 (
23582 cat <<\_ASBOX
ac1cb8d3
VS
23583## ----------------------------------------- ##
23584## Report this to wx-dev@lists.wxwidgets.org ##
23585## ----------------------------------------- ##
a848cd7e
SC
23586_ASBOX
23587 ) |
23588 sed "s/^/$as_me: WARNING: /" >&2
23589 ;;
23590esac
23591echo "$as_me:$LINENO: checking for tiffio.h" >&5
23592echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23593if test "${ac_cv_header_tiffio_h+set}" = set; then
23594 echo $ECHO_N "(cached) $ECHO_C" >&6
23595else
23596 ac_cv_header_tiffio_h=$ac_header_preproc
23597fi
23598echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23599echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23600
23601fi
23602if test $ac_cv_header_tiffio_h = yes; then
23603
23604 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23605echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23606if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
23608else
23609 ac_check_lib_save_LIBS=$LIBS
23610LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23611cat >conftest.$ac_ext <<_ACEOF
23612/* confdefs.h. */
23613_ACEOF
23614cat confdefs.h >>conftest.$ac_ext
23615cat >>conftest.$ac_ext <<_ACEOF
23616/* end confdefs.h. */
23617
23618/* Override any gcc2 internal prototype to avoid an error. */
23619#ifdef __cplusplus
23620extern "C"
23621#endif
23622/* We use char because int might match the return type of a gcc2
23623 builtin and then its argument prototype would still apply. */
23624char TIFFError ();
23625int
23626main ()
23627{
23628TIFFError ();
23629 ;
23630 return 0;
23631}
23632_ACEOF
23633rm -f conftest.$ac_objext conftest$ac_exeext
23634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23635 (eval $ac_link) 2>conftest.er1
a848cd7e 23636 ac_status=$?
ac1cb8d3
VS
23637 grep -v '^ *+' conftest.er1 >conftest.err
23638 rm -f conftest.er1
23639 cat conftest.err >&5
a848cd7e
SC
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); } &&
8c539582 23642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23644 (eval $ac_try) 2>&5
23645 ac_status=$?
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); }; } &&
23648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650 (eval $ac_try) 2>&5
23651 ac_status=$?
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; }; then
23654 ac_cv_lib_tiff_TIFFError=yes
23655else
23656 echo "$as_me: failed program was:" >&5
23657sed 's/^/| /' conftest.$ac_ext >&5
23658
23659ac_cv_lib_tiff_TIFFError=no
23660fi
ac1cb8d3
VS
23661rm -f conftest.err conftest.$ac_objext \
23662 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23663LIBS=$ac_check_lib_save_LIBS
23664fi
23665echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23666echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23667if test $ac_cv_lib_tiff_TIFFError = yes; then
23668 TIFF_LINK=" -ltiff"
23669fi
23670
23671
23672
23673fi
23674
23675
23676
23677 if test "x$TIFF_LINK" = "x" ; then
23678 if test "$wxUSE_LIBTIFF" = "sys" ; then
23679 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23680echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23681 { (exit 1); exit 1; }; }
23682 else
23683 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23684echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23685 wxUSE_LIBTIFF=builtin
23686 fi
23687 else
23688 wxUSE_LIBTIFF=sys
23689 fi
23690 fi
23691fi
23692
23693
47a7e797
MW
23694if test "$wxUSE_WCHAR_T" != "yes"; then
23695 if test "$wxUSE_EXPAT" != "no"; then
23696 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23697echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23698 wxUSE_EXPAT=no
23699 fi
23700 if test "$wxUSE_XML" != "no"; then
23701 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23702echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23703 wxUSE_XML=no
23704 fi
23705fi
23706
a848cd7e
SC
23707if test "$wxUSE_EXPAT" != "no"; then
23708 wxUSE_XML=yes
23709 cat >>confdefs.h <<\_ACEOF
23710#define wxUSE_EXPAT 1
23711_ACEOF
23712
23713 cat >>confdefs.h <<\_ACEOF
23714#define wxUSE_XML 1
23715_ACEOF
23716
23717
23718 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23719 if test "${ac_cv_header_expat_h+set}" = set; then
23720 echo "$as_me:$LINENO: checking for expat.h" >&5
23721echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23722if test "${ac_cv_header_expat_h+set}" = set; then
23723 echo $ECHO_N "(cached) $ECHO_C" >&6
23724fi
23725echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23726echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23727else
23728 # Is the header compilable?
23729echo "$as_me:$LINENO: checking expat.h usability" >&5
23730echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23731cat >conftest.$ac_ext <<_ACEOF
23732/* confdefs.h. */
23733_ACEOF
23734cat confdefs.h >>conftest.$ac_ext
23735cat >>conftest.$ac_ext <<_ACEOF
23736/* end confdefs.h. */
23737$ac_includes_default
23738#include <expat.h>
23739_ACEOF
23740rm -f conftest.$ac_objext
23741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23742 (eval $ac_compile) 2>conftest.er1
a848cd7e 23743 ac_status=$?
ac1cb8d3
VS
23744 grep -v '^ *+' conftest.er1 >conftest.err
23745 rm -f conftest.er1
23746 cat conftest.err >&5
a848cd7e
SC
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); } &&
8c539582 23749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; } &&
23755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23758 ac_status=$?
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23761 ac_header_compiler=yes
23762else
23763 echo "$as_me: failed program was:" >&5
23764sed 's/^/| /' conftest.$ac_ext >&5
23765
23766ac_header_compiler=no
23767fi
ac1cb8d3 23768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23769echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23770echo "${ECHO_T}$ac_header_compiler" >&6
23771
23772# Is the header present?
23773echo "$as_me:$LINENO: checking expat.h presence" >&5
23774echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23775cat >conftest.$ac_ext <<_ACEOF
23776/* confdefs.h. */
23777_ACEOF
23778cat confdefs.h >>conftest.$ac_ext
23779cat >>conftest.$ac_ext <<_ACEOF
23780/* end confdefs.h. */
23781#include <expat.h>
23782_ACEOF
23783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23785 ac_status=$?
23786 grep -v '^ *+' conftest.er1 >conftest.err
23787 rm -f conftest.er1
23788 cat conftest.err >&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } >/dev/null; then
23791 if test -s conftest.err; then
23792 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23794 else
23795 ac_cpp_err=
23796 fi
23797else
23798 ac_cpp_err=yes
23799fi
23800if test -z "$ac_cpp_err"; then
23801 ac_header_preproc=yes
23802else
23803 echo "$as_me: failed program was:" >&5
23804sed 's/^/| /' conftest.$ac_ext >&5
23805
23806 ac_header_preproc=no
23807fi
23808rm -f conftest.err conftest.$ac_ext
23809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23810echo "${ECHO_T}$ac_header_preproc" >&6
23811
23812# So? What about this header?
ac1cb8d3
VS
23813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23814 yes:no: )
a848cd7e
SC
23815 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23816echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23817 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23818echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23819 ac_header_preproc=yes
a848cd7e 23820 ;;
ac1cb8d3 23821 no:yes:* )
a848cd7e
SC
23822 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23823echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23824 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23825echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23826 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23827echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23828 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23829echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23830 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23831echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23832 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23833echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23834 (
23835 cat <<\_ASBOX
ac1cb8d3
VS
23836## ----------------------------------------- ##
23837## Report this to wx-dev@lists.wxwidgets.org ##
23838## ----------------------------------------- ##
a848cd7e
SC
23839_ASBOX
23840 ) |
23841 sed "s/^/$as_me: WARNING: /" >&2
23842 ;;
23843esac
23844echo "$as_me:$LINENO: checking for expat.h" >&5
23845echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23846if test "${ac_cv_header_expat_h+set}" = set; then
23847 echo $ECHO_N "(cached) $ECHO_C" >&6
23848else
23849 ac_cv_header_expat_h=$ac_header_preproc
23850fi
23851echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23852echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23853
23854fi
23855if test $ac_cv_header_expat_h = yes; then
23856 found_expat_h=1
23857fi
23858
23859
23860 if test "x$found_expat_h" = "x1"; then
23861 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23862echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23863if test "${wx_cv_expat_is_not_broken+set}" = set; then
23864 echo $ECHO_N "(cached) $ECHO_C" >&6
23865else
23866
23867
23868
23869 ac_ext=cc
23870ac_cpp='$CXXCPP $CPPFLAGS'
23871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23874
23875 cat >conftest.$ac_ext <<_ACEOF
23876/* confdefs.h. */
23877_ACEOF
23878cat confdefs.h >>conftest.$ac_ext
23879cat >>conftest.$ac_ext <<_ACEOF
23880/* end confdefs.h. */
23881#include <expat.h>
23882int
23883main ()
23884{
23885
23886 ;
23887 return 0;
23888}
23889_ACEOF
23890rm -f conftest.$ac_objext
23891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23892 (eval $ac_compile) 2>conftest.er1
a848cd7e 23893 ac_status=$?
ac1cb8d3
VS
23894 grep -v '^ *+' conftest.er1 >conftest.err
23895 rm -f conftest.er1
23896 cat conftest.err >&5
a848cd7e
SC
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); } &&
8c539582 23899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23901 (eval $ac_try) 2>&5
23902 ac_status=$?
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); }; } &&
23905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23907 (eval $ac_try) 2>&5
23908 ac_status=$?
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); }; }; then
23911 wx_cv_expat_is_not_broken=yes
23912else
23913 echo "$as_me: failed program was:" >&5
23914sed 's/^/| /' conftest.$ac_ext >&5
23915
23916wx_cv_expat_is_not_broken=no
23917
23918fi
ac1cb8d3 23919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23920 ac_ext=c
23921ac_cpp='$CPP $CPPFLAGS'
23922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23924ac_compiler_gnu=$ac_cv_c_compiler_gnu
23925
23926
23927
23928fi
23929echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23930echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23931 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23932 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23933echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23934if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23935 echo $ECHO_N "(cached) $ECHO_C" >&6
23936else
23937 ac_check_lib_save_LIBS=$LIBS
23938LIBS="-lexpat $LIBS"
23939cat >conftest.$ac_ext <<_ACEOF
23940/* confdefs.h. */
23941_ACEOF
23942cat confdefs.h >>conftest.$ac_ext
23943cat >>conftest.$ac_ext <<_ACEOF
23944/* end confdefs.h. */
23945
23946/* Override any gcc2 internal prototype to avoid an error. */
23947#ifdef __cplusplus
23948extern "C"
23949#endif
23950/* We use char because int might match the return type of a gcc2
23951 builtin and then its argument prototype would still apply. */
23952char XML_ParserCreate ();
23953int
23954main ()
23955{
23956XML_ParserCreate ();
23957 ;
23958 return 0;
23959}
23960_ACEOF
23961rm -f conftest.$ac_objext conftest$ac_exeext
23962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23963 (eval $ac_link) 2>conftest.er1
a848cd7e 23964 ac_status=$?
ac1cb8d3
VS
23965 grep -v '^ *+' conftest.er1 >conftest.err
23966 rm -f conftest.er1
23967 cat conftest.err >&5
a848cd7e
SC
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } &&
8c539582 23970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
23976 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23978 (eval $ac_try) 2>&5
23979 ac_status=$?
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); }; }; then
23982 ac_cv_lib_expat_XML_ParserCreate=yes
23983else
23984 echo "$as_me: failed program was:" >&5
23985sed 's/^/| /' conftest.$ac_ext >&5
23986
23987ac_cv_lib_expat_XML_ParserCreate=no
23988fi
ac1cb8d3
VS
23989rm -f conftest.err conftest.$ac_objext \
23990 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23991LIBS=$ac_check_lib_save_LIBS
23992fi
23993echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23994echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23995if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23996 EXPAT_LINK=" -lexpat"
23997fi
23998
23999 fi
24000 fi
24001 if test "x$EXPAT_LINK" = "x" ; then
24002 if test "$wxUSE_EXPAT" = "sys" ; then
24003 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24004echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24005 { (exit 1); exit 1; }; }
24006 else
24007 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24008echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24009 wxUSE_EXPAT=builtin
24010 fi
24011 else
24012 wxUSE_EXPAT=sys
24013 fi
24014 fi
24015 if test "$wxUSE_EXPAT" = "builtin" ; then
24016
24017
24018subdirs="$subdirs src/expat"
24019
24020 fi
24021fi
24022
24023
24024
24025if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24026 if test "${ac_cv_header_mspack_h+set}" = set; then
24027 echo "$as_me:$LINENO: checking for mspack.h" >&5
24028echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24029if test "${ac_cv_header_mspack_h+set}" = set; then
24030 echo $ECHO_N "(cached) $ECHO_C" >&6
24031fi
24032echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24033echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24034else
24035 # Is the header compilable?
24036echo "$as_me:$LINENO: checking mspack.h usability" >&5
24037echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24038cat >conftest.$ac_ext <<_ACEOF
24039/* confdefs.h. */
24040_ACEOF
24041cat confdefs.h >>conftest.$ac_ext
24042cat >>conftest.$ac_ext <<_ACEOF
24043/* end confdefs.h. */
24044$ac_includes_default
24045#include <mspack.h>
24046_ACEOF
24047rm -f conftest.$ac_objext
24048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24049 (eval $ac_compile) 2>conftest.er1
a848cd7e 24050 ac_status=$?
ac1cb8d3
VS
24051 grep -v '^ *+' conftest.er1 >conftest.err
24052 rm -f conftest.er1
24053 cat conftest.err >&5
a848cd7e
SC
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); } &&
8c539582 24056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24058 (eval $ac_try) 2>&5
24059 ac_status=$?
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); }; } &&
24062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064 (eval $ac_try) 2>&5
24065 ac_status=$?
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); }; }; then
24068 ac_header_compiler=yes
24069else
24070 echo "$as_me: failed program was:" >&5
24071sed 's/^/| /' conftest.$ac_ext >&5
24072
24073ac_header_compiler=no
24074fi
ac1cb8d3 24075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24077echo "${ECHO_T}$ac_header_compiler" >&6
24078
24079# Is the header present?
24080echo "$as_me:$LINENO: checking mspack.h presence" >&5
24081echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24082cat >conftest.$ac_ext <<_ACEOF
24083/* confdefs.h. */
24084_ACEOF
24085cat confdefs.h >>conftest.$ac_ext
24086cat >>conftest.$ac_ext <<_ACEOF
24087/* end confdefs.h. */
24088#include <mspack.h>
24089_ACEOF
24090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24092 ac_status=$?
24093 grep -v '^ *+' conftest.er1 >conftest.err
24094 rm -f conftest.er1
24095 cat conftest.err >&5
24096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097 (exit $ac_status); } >/dev/null; then
24098 if test -s conftest.err; then
24099 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24101 else
24102 ac_cpp_err=
24103 fi
24104else
24105 ac_cpp_err=yes
24106fi
24107if test -z "$ac_cpp_err"; then
24108 ac_header_preproc=yes
24109else
24110 echo "$as_me: failed program was:" >&5
24111sed 's/^/| /' conftest.$ac_ext >&5
24112
24113 ac_header_preproc=no
24114fi
24115rm -f conftest.err conftest.$ac_ext
24116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24117echo "${ECHO_T}$ac_header_preproc" >&6
24118
24119# So? What about this header?
ac1cb8d3
VS
24120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24121 yes:no: )
a848cd7e
SC
24122 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24123echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24124 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24125echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24126 ac_header_preproc=yes
a848cd7e 24127 ;;
ac1cb8d3 24128 no:yes:* )
a848cd7e
SC
24129 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24130echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24131 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24132echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24133 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24134echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24135 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24136echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24137 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24138echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24139 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24140echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24141 (
24142 cat <<\_ASBOX
ac1cb8d3
VS
24143## ----------------------------------------- ##
24144## Report this to wx-dev@lists.wxwidgets.org ##
24145## ----------------------------------------- ##
a848cd7e
SC
24146_ASBOX
24147 ) |
24148 sed "s/^/$as_me: WARNING: /" >&2
24149 ;;
24150esac
24151echo "$as_me:$LINENO: checking for mspack.h" >&5
24152echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24153if test "${ac_cv_header_mspack_h+set}" = set; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24155else
24156 ac_cv_header_mspack_h=$ac_header_preproc
24157fi
24158echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24159echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24160
24161fi
24162if test $ac_cv_header_mspack_h = yes; then
24163 found_mspack_h=1
24164fi
24165
24166
24167 if test "x$found_mspack_h" = "x1"; then
24168 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24169echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24170if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24171 echo $ECHO_N "(cached) $ECHO_C" >&6
24172else
24173 ac_check_lib_save_LIBS=$LIBS
24174LIBS="-lmspack $LIBS"
24175cat >conftest.$ac_ext <<_ACEOF
24176/* confdefs.h. */
24177_ACEOF
24178cat confdefs.h >>conftest.$ac_ext
24179cat >>conftest.$ac_ext <<_ACEOF
24180/* end confdefs.h. */
24181
24182/* Override any gcc2 internal prototype to avoid an error. */
24183#ifdef __cplusplus
24184extern "C"
24185#endif
24186/* We use char because int might match the return type of a gcc2
24187 builtin and then its argument prototype would still apply. */
24188char mspack_create_chm_decompressor ();
24189int
24190main ()
24191{
24192mspack_create_chm_decompressor ();
24193 ;
24194 return 0;
24195}
24196_ACEOF
24197rm -f conftest.$ac_objext conftest$ac_exeext
24198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24199 (eval $ac_link) 2>conftest.er1
a848cd7e 24200 ac_status=$?
ac1cb8d3
VS
24201 grep -v '^ *+' conftest.er1 >conftest.err
24202 rm -f conftest.er1
24203 cat conftest.err >&5
a848cd7e
SC
24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205 (exit $ac_status); } &&
8c539582 24206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24208 (eval $ac_try) 2>&5
24209 ac_status=$?
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); }; } &&
24212 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24214 (eval $ac_try) 2>&5
24215 ac_status=$?
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); }; }; then
24218 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24219else
24220 echo "$as_me: failed program was:" >&5
24221sed 's/^/| /' conftest.$ac_ext >&5
24222
24223ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24224fi
ac1cb8d3
VS
24225rm -f conftest.err conftest.$ac_objext \
24226 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24227LIBS=$ac_check_lib_save_LIBS
24228fi
24229echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24230echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24231if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24232 MSPACK_LINK=" -lmspack"
24233fi
24234
24235 fi
24236 if test "x$MSPACK_LINK" = "x" ; then
24237 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24238 fi
24239fi
24240
24241if test "$wxUSE_LIBMSPACK" != "no"; then
24242 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24243#define wxUSE_LIBMSPACK 1
24244_ACEOF
24245
a848cd7e
SC
24246fi
24247
24248
24249
24250AFMINSTALL=
24251WIN32INSTALL=
24252
24253TOOLKIT=
24254TOOLKIT_INCLUDE=
24255WIDGET_SET=
24256
24257if test "$USE_WIN32" = 1 ; then
24258
24259for ac_header in w32api.h
24260do
24261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24262if eval "test \"\${$as_ac_Header+set}\" = set"; then
24263 echo "$as_me:$LINENO: checking for $ac_header" >&5
24264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24265if eval "test \"\${$as_ac_Header+set}\" = set"; then
24266 echo $ECHO_N "(cached) $ECHO_C" >&6
24267fi
24268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24270else
24271 # Is the header compilable?
24272echo "$as_me:$LINENO: checking $ac_header usability" >&5
24273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24274cat >conftest.$ac_ext <<_ACEOF
24275/* confdefs.h. */
24276_ACEOF
24277cat confdefs.h >>conftest.$ac_ext
24278cat >>conftest.$ac_ext <<_ACEOF
24279/* end confdefs.h. */
24280$ac_includes_default
24281#include <$ac_header>
24282_ACEOF
24283rm -f conftest.$ac_objext
24284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24285 (eval $ac_compile) 2>conftest.er1
a848cd7e 24286 ac_status=$?
ac1cb8d3
VS
24287 grep -v '^ *+' conftest.er1 >conftest.err
24288 rm -f conftest.er1
24289 cat conftest.err >&5
a848cd7e
SC
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
8c539582 24292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24294 (eval $ac_try) 2>&5
24295 ac_status=$?
24296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); }; } &&
24298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24300 (eval $ac_try) 2>&5
24301 ac_status=$?
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); }; }; then
24304 ac_header_compiler=yes
24305else
24306 echo "$as_me: failed program was:" >&5
24307sed 's/^/| /' conftest.$ac_ext >&5
24308
24309ac_header_compiler=no
24310fi
ac1cb8d3 24311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24313echo "${ECHO_T}$ac_header_compiler" >&6
24314
24315# Is the header present?
24316echo "$as_me:$LINENO: checking $ac_header presence" >&5
24317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24318cat >conftest.$ac_ext <<_ACEOF
24319/* confdefs.h. */
24320_ACEOF
24321cat confdefs.h >>conftest.$ac_ext
24322cat >>conftest.$ac_ext <<_ACEOF
24323/* end confdefs.h. */
24324#include <$ac_header>
24325_ACEOF
24326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24328 ac_status=$?
24329 grep -v '^ *+' conftest.er1 >conftest.err
24330 rm -f conftest.er1
24331 cat conftest.err >&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); } >/dev/null; then
24334 if test -s conftest.err; then
24335 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24337 else
24338 ac_cpp_err=
24339 fi
24340else
24341 ac_cpp_err=yes
24342fi
24343if test -z "$ac_cpp_err"; then
24344 ac_header_preproc=yes
24345else
24346 echo "$as_me: failed program was:" >&5
24347sed 's/^/| /' conftest.$ac_ext >&5
24348
24349 ac_header_preproc=no
24350fi
24351rm -f conftest.err conftest.$ac_ext
24352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24353echo "${ECHO_T}$ac_header_preproc" >&6
24354
24355# So? What about this header?
ac1cb8d3
VS
24356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24357 yes:no: )
a848cd7e
SC
24358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24359echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24361echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24362 ac_header_preproc=yes
a848cd7e 24363 ;;
ac1cb8d3 24364 no:yes:* )
a848cd7e
SC
24365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24366echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24368echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24370echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24372echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24374echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24376echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24377 (
24378 cat <<\_ASBOX
ac1cb8d3
VS
24379## ----------------------------------------- ##
24380## Report this to wx-dev@lists.wxwidgets.org ##
24381## ----------------------------------------- ##
a848cd7e
SC
24382_ASBOX
24383 ) |
24384 sed "s/^/$as_me: WARNING: /" >&2
24385 ;;
24386esac
24387echo "$as_me:$LINENO: checking for $ac_header" >&5
24388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24389if eval "test \"\${$as_ac_Header+set}\" = set"; then
24390 echo $ECHO_N "(cached) $ECHO_C" >&6
24391else
ac1cb8d3 24392 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24393fi
24394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24396
24397fi
24398if test `eval echo '${'$as_ac_Header'}'` = yes; then
24399 cat >>confdefs.h <<_ACEOF
24400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24401_ACEOF
24402
24403fi
24404
24405done
24406
24407 if test "${ac_cv_header_windows_h+set}" = set; then
24408 echo "$as_me:$LINENO: checking for windows.h" >&5
24409echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24410if test "${ac_cv_header_windows_h+set}" = set; then
24411 echo $ECHO_N "(cached) $ECHO_C" >&6
24412fi
24413echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24414echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24415else
24416 # Is the header compilable?
24417echo "$as_me:$LINENO: checking windows.h usability" >&5
24418echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24419cat >conftest.$ac_ext <<_ACEOF
24420/* confdefs.h. */
24421_ACEOF
24422cat confdefs.h >>conftest.$ac_ext
24423cat >>conftest.$ac_ext <<_ACEOF
24424/* end confdefs.h. */
24425$ac_includes_default
24426#include <windows.h>
24427_ACEOF
24428rm -f conftest.$ac_objext
24429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24430 (eval $ac_compile) 2>conftest.er1
a848cd7e 24431 ac_status=$?
ac1cb8d3
VS
24432 grep -v '^ *+' conftest.er1 >conftest.err
24433 rm -f conftest.er1
24434 cat conftest.err >&5
a848cd7e
SC
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); } &&
8c539582 24437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24439 (eval $ac_try) 2>&5
24440 ac_status=$?
24441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); }; } &&
24443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445 (eval $ac_try) 2>&5
24446 ac_status=$?
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); }; }; then
24449 ac_header_compiler=yes
24450else
24451 echo "$as_me: failed program was:" >&5
24452sed 's/^/| /' conftest.$ac_ext >&5
24453
24454ac_header_compiler=no
24455fi
ac1cb8d3 24456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24458echo "${ECHO_T}$ac_header_compiler" >&6
24459
24460# Is the header present?
24461echo "$as_me:$LINENO: checking windows.h presence" >&5
24462echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24463cat >conftest.$ac_ext <<_ACEOF
24464/* confdefs.h. */
24465_ACEOF
24466cat confdefs.h >>conftest.$ac_ext
24467cat >>conftest.$ac_ext <<_ACEOF
24468/* end confdefs.h. */
24469#include <windows.h>
24470_ACEOF
24471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24473 ac_status=$?
24474 grep -v '^ *+' conftest.er1 >conftest.err
24475 rm -f conftest.er1
24476 cat conftest.err >&5
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); } >/dev/null; then
24479 if test -s conftest.err; then
24480 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24482 else
24483 ac_cpp_err=
24484 fi
24485else
24486 ac_cpp_err=yes
24487fi
24488if test -z "$ac_cpp_err"; then
24489 ac_header_preproc=yes
24490else
24491 echo "$as_me: failed program was:" >&5
24492sed 's/^/| /' conftest.$ac_ext >&5
24493
24494 ac_header_preproc=no
24495fi
24496rm -f conftest.err conftest.$ac_ext
24497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24498echo "${ECHO_T}$ac_header_preproc" >&6
24499
24500# So? What about this header?
ac1cb8d3
VS
24501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24502 yes:no: )
a848cd7e
SC
24503 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24504echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24505 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24506echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24507 ac_header_preproc=yes
a848cd7e 24508 ;;
ac1cb8d3 24509 no:yes:* )
a848cd7e
SC
24510 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24511echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24512 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24513echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24514 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24515echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24516 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24517echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24518 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24519echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24520 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24521echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24522 (
24523 cat <<\_ASBOX
ac1cb8d3
VS
24524## ----------------------------------------- ##
24525## Report this to wx-dev@lists.wxwidgets.org ##
24526## ----------------------------------------- ##
a848cd7e
SC
24527_ASBOX
24528 ) |
24529 sed "s/^/$as_me: WARNING: /" >&2
24530 ;;
24531esac
24532echo "$as_me:$LINENO: checking for windows.h" >&5
24533echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24534if test "${ac_cv_header_windows_h+set}" = set; then
24535 echo $ECHO_N "(cached) $ECHO_C" >&6
24536else
24537 ac_cv_header_windows_h=$ac_header_preproc
24538fi
24539echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24540echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24541
24542fi
24543if test $ac_cv_header_windows_h = yes; then
24544 :
24545else
24546
24547 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24548echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24549 { (exit 1); exit 1; }; }
24550
24551fi
24552
24553
24554
24555 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24556
24557 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24558 LIBS="$LIBS -loleacc"
24559 fi
24560
24561 case "${host}" in
24562 *-*-cygwin* )
24563 LIBS="$LIBS -lkernel32 -luser32"
24564 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24565 esac
24566
24567 if test "$wxUSE_ODBC" = "sys" ; then
24568 wxUSE_ODBC = "yes"
24569 fi
24570 if test "$wxUSE_ODBC" = "yes" ; then
24571 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24572 cat >>confdefs.h <<\_ACEOF
24573#define wxUSE_ODBC 1
24574_ACEOF
24575
24576 fi
24577
24578 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24579 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24580
24581 WIN32INSTALL=win32install
24582fi
24583
24584if test "$wxUSE_GUI" = "yes"; then
24585 USE_GUI=1
24586
24587 GUI_TK_LIBRARY=
24588
24589 WXGTK12=
24590 WXGTK127=
24591 WXGTK20=
24592 WXGPE=
24593
207bc66c
RN
24594 if test "$wxUSE_COCOA" = 1 ; then
24595 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24596 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24597echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24598 wxUSE_PRINTING_ARCHITECTURE=no
24599 fi
24600 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24601 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24602echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24603 wxUSE_DRAG_AND_DROP=no
24604 fi
24605 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24606 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24607echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24608 wxUSE_DRAGIMAGE=no
24609 fi
24610 fi
24611
a848cd7e
SC
24612 if test "$wxUSE_MSW" = 1 ; then
24613 TOOLKIT=MSW
24614 GUIDIST=MSW_DIST
24615
ceec2216 24616 case "${host}" in
a848cd7e
SC
24617 *-*-mingw32* )
24618 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24619 esac
24620 fi
24621
24622 if test "$wxUSE_GTK" = 1; then
24623 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24624echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24625
24626 gtk_version_cached=1
24627 if test "${wx_cv_lib_gtk+set}" = set; then
24628 echo $ECHO_N "(cached) $ECHO_C" >&6
24629else
24630
24631 gtk_version_cached=0
24632 echo "$as_me:$LINENO: result: " >&5
24633echo "${ECHO_T}" >&6
24634
24635 GTK_MODULES=
24636 if test "$wxUSE_THREADS" = "yes"; then
24637 GTK_MODULES=gthread
24638 fi
24639
f597b41c 24640 wx_cv_lib_gtk=
f34ca037 24641 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24642 # Check whether --enable-gtktest or --disable-gtktest was given.
24643if test "${enable_gtktest+set}" = set; then
24644 enableval="$enable_gtktest"
24645
24646else
24647 enable_gtktest=yes
24648fi;
24649
24650 pkg_config_args=gtk+-2.0
24651 for module in . $GTK_MODULES
24652 do
24653 case "$module" in
24654 gthread)
24655 pkg_config_args="$pkg_config_args gthread-2.0"
24656 ;;
24657 esac
24658 done
24659
24660 no_gtk=""
24661
24662 # Extract the first word of "pkg-config", so it can be a program name with args.
24663set dummy pkg-config; ac_word=$2
24664echo "$as_me:$LINENO: checking for $ac_word" >&5
24665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24666if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24667 echo $ECHO_N "(cached) $ECHO_C" >&6
24668else
24669 case $PKG_CONFIG in
24670 [\\/]* | ?:[\\/]*)
24671 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24672 ;;
24673 *)
24674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24675for as_dir in $PATH
24676do
24677 IFS=$as_save_IFS
24678 test -z "$as_dir" && as_dir=.
24679 for ac_exec_ext in '' $ac_executable_extensions; do
24680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24681 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24683 break 2
24684 fi
24685done
24686done
24687
24688 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24689 ;;
24690esac
24691fi
24692PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24693
24694if test -n "$PKG_CONFIG"; then
24695 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24696echo "${ECHO_T}$PKG_CONFIG" >&6
24697else
24698 echo "$as_me:$LINENO: result: no" >&5
24699echo "${ECHO_T}no" >&6
24700fi
24701
24702
24703 if test x$PKG_CONFIG != xno ; then
24704 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24705 :
24706 else
c2218763 24707 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24708 no_gtk=yes
24709 PKG_CONFIG=no
24710 fi
24711 else
24712 no_gtk=yes
24713 fi
24714
24715 min_gtk_version=2.0.0
24716 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24717echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24718
24719 if test x$PKG_CONFIG != xno ; then
24720 ## don't try to run the test against uninstalled libtool libs
24721 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24722 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24723 enable_gtktest=no
24724 fi
24725
24726 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24727 :
24728 else
24729 no_gtk=yes
24730 fi
24731 fi
24732
24733 if test x"$no_gtk" = x ; then
24734 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24735 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24736 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24737 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24738 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24739 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24740 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24741 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24742 if test "x$enable_gtktest" = "xyes" ; then
24743 ac_save_CFLAGS="$CFLAGS"
24744 ac_save_LIBS="$LIBS"
24745 CFLAGS="$CFLAGS $GTK_CFLAGS"
24746 LIBS="$GTK_LIBS $LIBS"
24747 rm -f conf.gtktest
24748 if test "$cross_compiling" = yes; then
24749 echo $ac_n "cross compiling; assumed OK... $ac_c"
24750else
24751 cat >conftest.$ac_ext <<_ACEOF
24752/* confdefs.h. */
24753_ACEOF
24754cat confdefs.h >>conftest.$ac_ext
24755cat >>conftest.$ac_ext <<_ACEOF
24756/* end confdefs.h. */
24757
24758#include <gtk/gtk.h>
24759#include <stdio.h>
24760#include <stdlib.h>
24761
24762int
24763main ()
24764{
24765 int major, minor, micro;
24766 char *tmp_version;
24767
24768 system ("touch conf.gtktest");
24769
24770 /* HP/UX 9 (%@#!) writes to sscanf strings */
24771 tmp_version = g_strdup("$min_gtk_version");
24772 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24773 printf("%s, bad version string\n", "$min_gtk_version");
24774 exit(1);
24775 }
24776
24777 if ((gtk_major_version != $gtk_config_major_version) ||
24778 (gtk_minor_version != $gtk_config_minor_version) ||
24779 (gtk_micro_version != $gtk_config_micro_version))
24780 {
24781 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24782 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24783 gtk_major_version, gtk_minor_version, gtk_micro_version);
24784 printf ("*** was found! If pkg-config was correct, then it is best\n");
24785 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24786 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24787 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24788 printf("*** required on your system.\n");
24789 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24790 printf("*** to point to the correct configuration files\n");
24791 }
24792 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24793 (gtk_minor_version != GTK_MINOR_VERSION) ||
24794 (gtk_micro_version != GTK_MICRO_VERSION))
24795 {
24796 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24797 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24798 printf("*** library (version %d.%d.%d)\n",
24799 gtk_major_version, gtk_minor_version, gtk_micro_version);
24800 }
24801 else
24802 {
24803 if ((gtk_major_version > major) ||
24804 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24805 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24806 {
24807 return 0;
24808 }
24809 else
24810 {
24811 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24812 gtk_major_version, gtk_minor_version, gtk_micro_version);
24813 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24814 major, minor, micro);
24815 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24816 printf("***\n");
24817 printf("*** If you have already installed a sufficiently new version, this error\n");
24818 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24819 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24820 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24821 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24822 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24823 printf("*** so that the correct libraries are found at run-time))\n");
24824 }
24825 }
24826 return 1;
24827}
24828
24829_ACEOF
24830rm -f conftest$ac_exeext
24831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24832 (eval $ac_link) 2>&5
24833 ac_status=$?
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24837 (eval $ac_try) 2>&5
24838 ac_status=$?
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); }; }; then
24841 :
24842else
24843 echo "$as_me: program exited with status $ac_status" >&5
24844echo "$as_me: failed program was:" >&5
24845sed 's/^/| /' conftest.$ac_ext >&5
24846
24847( exit $ac_status )
24848no_gtk=yes
24849fi
ac1cb8d3 24850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24851fi
24852 CFLAGS="$ac_save_CFLAGS"
24853 LIBS="$ac_save_LIBS"
24854 fi
24855 fi
24856 if test "x$no_gtk" = x ; then
24857 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24858echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24859 wx_cv_lib_gtk=2.0
24860 else
24861 echo "$as_me:$LINENO: result: no" >&5
24862echo "${ECHO_T}no" >&6
24863 if test "$PKG_CONFIG" = "no" ; then
24864 echo "*** A new enough version of pkg-config was not found."
24865 echo "*** See http://pkgconfig.sourceforge.net"
24866 else
24867 if test -f conf.gtktest ; then
24868 :
24869 else
24870 echo "*** Could not run GTK+ test program, checking why..."
24871 ac_save_CFLAGS="$CFLAGS"
24872 ac_save_LIBS="$LIBS"
24873 CFLAGS="$CFLAGS $GTK_CFLAGS"
24874 LIBS="$LIBS $GTK_LIBS"
24875 cat >conftest.$ac_ext <<_ACEOF
24876/* confdefs.h. */
24877_ACEOF
24878cat confdefs.h >>conftest.$ac_ext
24879cat >>conftest.$ac_ext <<_ACEOF
24880/* end confdefs.h. */
24881
24882#include <gtk/gtk.h>
24883#include <stdio.h>
24884
24885int
24886main ()
24887{
24888 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24889 ;
24890 return 0;
24891}
24892_ACEOF
24893rm -f conftest.$ac_objext conftest$ac_exeext
24894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24895 (eval $ac_link) 2>conftest.er1
a848cd7e 24896 ac_status=$?
ac1cb8d3
VS
24897 grep -v '^ *+' conftest.er1 >conftest.err
24898 rm -f conftest.er1
24899 cat conftest.err >&5
a848cd7e
SC
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } &&
8c539582 24902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904 (eval $ac_try) 2>&5
24905 ac_status=$?
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); }; } &&
24908 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910 (eval $ac_try) 2>&5
24911 ac_status=$?
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); }; }; then
24914 echo "*** The test program compiled, but did not run. This usually means"
24915 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24916 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24917 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24918 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24919 echo "*** is required on your system"
24920 echo "***"
24921 echo "*** If you have an old version installed, it is best to remove it, although"
24922 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24923else
24924 echo "$as_me: failed program was:" >&5
24925sed 's/^/| /' conftest.$ac_ext >&5
24926
24927 echo "*** The test program failed to compile or link. See the file config.log for the"
24928 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24929fi
ac1cb8d3
VS
24930rm -f conftest.err conftest.$ac_objext \
24931 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24932 CFLAGS="$ac_save_CFLAGS"
24933 LIBS="$ac_save_LIBS"
24934 fi
24935 fi
24936 GTK_CFLAGS=""
24937 GTK_LIBS=""
24938 :
24939 fi
24940
24941
24942 rm -f conf.gtktest
24943
f597b41c
MW
24944 fi
24945
f34ca037
MW
24946 if test -z "$wx_cv_lib_gtk"; then
24947 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24948
24949# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24950if test "${with_gtk_prefix+set}" = set; then
24951 withval="$with_gtk_prefix"
24952 gtk_config_prefix="$withval"
24953else
24954 gtk_config_prefix=""
24955fi;
24956
24957# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24958if test "${with_gtk_exec_prefix+set}" = set; then
24959 withval="$with_gtk_exec_prefix"
24960 gtk_config_exec_prefix="$withval"
24961else
24962 gtk_config_exec_prefix=""
24963fi;
24964# Check whether --enable-gtktest or --disable-gtktest was given.
24965if test "${enable_gtktest+set}" = set; then
24966 enableval="$enable_gtktest"
24967
24968else
24969 enable_gtktest=yes
24970fi;
24971
24972 for module in . $GTK_MODULES
24973 do
24974 case "$module" in
24975 gthread)
24976 gtk_config_args="$gtk_config_args gthread"
24977 ;;
24978 esac
24979 done
24980
24981 if test x$gtk_config_exec_prefix != x ; then
24982 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24983 if test x${GTK_CONFIG+set} != xset ; then
24984 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24985 fi
24986 fi
24987 if test x$gtk_config_prefix != x ; then
24988 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24989 if test x${GTK_CONFIG+set} != xset ; then
24990 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24991 fi
24992 fi
24993
24994 # Extract the first word of "gtk-config", so it can be a program name with args.
24995set dummy gtk-config; ac_word=$2
24996echo "$as_me:$LINENO: checking for $ac_word" >&5
24997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24998if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24999 echo $ECHO_N "(cached) $ECHO_C" >&6
25000else
25001 case $GTK_CONFIG in
25002 [\\/]* | ?:[\\/]*)
25003 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25004 ;;
25005 *)
25006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25007for as_dir in $PATH
25008do
25009 IFS=$as_save_IFS
25010 test -z "$as_dir" && as_dir=.
25011 for ac_exec_ext in '' $ac_executable_extensions; do
25012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25013 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25015 break 2
25016 fi
25017done
25018done
25019
25020 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25021 ;;
25022esac
25023fi
25024GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25025
25026if test -n "$GTK_CONFIG"; then
25027 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25028echo "${ECHO_T}$GTK_CONFIG" >&6
25029else
25030 echo "$as_me:$LINENO: result: no" >&5
25031echo "${ECHO_T}no" >&6
25032fi
25033
25034 min_gtk_version=1.2.7
25035 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25036echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25037 no_gtk=""
25038 if test "$GTK_CONFIG" = "no" ; then
25039 no_gtk=yes
25040 else
25041 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25042 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25043 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25044 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25045 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25046 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25047 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25048 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25049 if test "x$enable_gtktest" = "xyes" ; then
25050 ac_save_CFLAGS="$CFLAGS"
25051 ac_save_LIBS="$LIBS"
25052 CFLAGS="$CFLAGS $GTK_CFLAGS"
25053 LIBS="$GTK_LIBS $LIBS"
25054 rm -f conf.gtktest
25055 if test "$cross_compiling" = yes; then
25056 echo $ac_n "cross compiling; assumed OK... $ac_c"
25057else
25058 cat >conftest.$ac_ext <<_ACEOF
25059/* confdefs.h. */
25060_ACEOF
25061cat confdefs.h >>conftest.$ac_ext
25062cat >>conftest.$ac_ext <<_ACEOF
25063/* end confdefs.h. */
25064
25065#include <gtk/gtk.h>
25066#include <stdio.h>
25067#include <stdlib.h>
25068
25069int
25070main ()
25071{
25072 int major, minor, micro;
25073 char *tmp_version;
25074
25075 system ("touch conf.gtktest");
25076
25077 /* HP/UX 9 (%@#!) writes to sscanf strings */
25078 tmp_version = g_strdup("$min_gtk_version");
25079 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25080 printf("%s, bad version string\n", "$min_gtk_version");
25081 exit(1);
25082 }
25083
25084 if ((gtk_major_version != $gtk_config_major_version) ||
25085 (gtk_minor_version != $gtk_config_minor_version) ||
25086 (gtk_micro_version != $gtk_config_micro_version))
25087 {
25088 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25089 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25090 gtk_major_version, gtk_minor_version, gtk_micro_version);
25091 printf ("*** was found! If gtk-config was correct, then it is best\n");
25092 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25093 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25094 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25095 printf("*** required on your system.\n");
25096 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25097 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25098 printf("*** before re-running configure\n");
25099 }
25100#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25101 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25102 (gtk_minor_version != GTK_MINOR_VERSION) ||
25103 (gtk_micro_version != GTK_MICRO_VERSION))
25104 {
25105 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25106 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25107 printf("*** library (version %d.%d.%d)\n",
25108 gtk_major_version, gtk_minor_version, gtk_micro_version);
25109 }
25110#endif /* defined (GTK_MAJOR_VERSION) ... */
25111 else
25112 {
25113 if ((gtk_major_version > major) ||
25114 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25115 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25116 {
25117 return 0;
25118 }
25119 else
25120 {
25121 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25122 gtk_major_version, gtk_minor_version, gtk_micro_version);
25123 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25124 major, minor, micro);
25125 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25126 printf("***\n");
25127 printf("*** If you have already installed a sufficiently new version, this error\n");
25128 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25129 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25130 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25131 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25132 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25133 printf("*** so that the correct libraries are found at run-time))\n");
25134 }
25135 }
25136 return 1;
25137}
25138
25139_ACEOF
25140rm -f conftest$ac_exeext
25141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25142 (eval $ac_link) 2>&5
25143 ac_status=$?
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147 (eval $ac_try) 2>&5
25148 ac_status=$?
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); }; }; then
25151 :
25152else
25153 echo "$as_me: program exited with status $ac_status" >&5
25154echo "$as_me: failed program was:" >&5
25155sed 's/^/| /' conftest.$ac_ext >&5
25156
25157( exit $ac_status )
25158no_gtk=yes
25159fi
ac1cb8d3 25160rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25161fi
25162 CFLAGS="$ac_save_CFLAGS"
25163 LIBS="$ac_save_LIBS"
25164 fi
25165 fi
25166 if test "x$no_gtk" = x ; then
25167 echo "$as_me:$LINENO: result: yes" >&5
25168echo "${ECHO_T}yes" >&6
25169 wx_cv_lib_gtk=1.2.7
25170 else
25171 echo "$as_me:$LINENO: result: no" >&5
25172echo "${ECHO_T}no" >&6
25173 if test "$GTK_CONFIG" = "no" ; then
25174 echo "*** The gtk-config script installed by GTK could not be found"
25175 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25176 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25177 echo "*** full path to gtk-config."
25178 else
25179 if test -f conf.gtktest ; then
25180 :
25181 else
25182 echo "*** Could not run GTK test program, checking why..."
25183 CFLAGS="$CFLAGS $GTK_CFLAGS"
25184 LIBS="$LIBS $GTK_LIBS"
25185 cat >conftest.$ac_ext <<_ACEOF
25186/* confdefs.h. */
25187_ACEOF
25188cat confdefs.h >>conftest.$ac_ext
25189cat >>conftest.$ac_ext <<_ACEOF
25190/* end confdefs.h. */
25191
25192#include <gtk/gtk.h>
25193#include <stdio.h>
25194
25195int
25196main ()
25197{
25198 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25199 ;
25200 return 0;
25201}
25202_ACEOF
25203rm -f conftest.$ac_objext conftest$ac_exeext
25204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25205 (eval $ac_link) 2>conftest.er1
a848cd7e 25206 ac_status=$?
ac1cb8d3
VS
25207 grep -v '^ *+' conftest.er1 >conftest.err
25208 rm -f conftest.er1
25209 cat conftest.err >&5
a848cd7e
SC
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } &&
8c539582 25212 { ac_try='test -z "$ac_c_werror_flag" || 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); } &&
8c539582 25527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529 (eval $ac_try) 2>&5
25530 ac_status=$?
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); }; } &&
25533 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535 (eval $ac_try) 2>&5
25536 ac_status=$?
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); }; }; then
25539 echo "*** The test program compiled, but did not run. This usually means"
25540 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25541 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25542 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25543 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25544 echo "*** is required on your system"
25545 echo "***"
25546 echo "*** If you have an old version installed, it is best to remove it, although"
25547 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25548 echo "***"
25549 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25550 echo "*** came with the system with the command"
25551 echo "***"
25552 echo "*** rpm --erase --nodeps gtk gtk-devel"
25553else
25554 echo "$as_me: failed program was:" >&5
25555sed 's/^/| /' conftest.$ac_ext >&5
25556
25557 echo "*** The test program failed to compile or link. See the file config.log for the"
25558 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25559 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25560 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25561fi
ac1cb8d3
VS
25562rm -f conftest.err conftest.$ac_objext \
25563 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25564 CFLAGS="$ac_save_CFLAGS"
25565 LIBS="$ac_save_LIBS"
25566 fi
25567 fi
25568 GTK_CFLAGS=""
25569 GTK_LIBS=""
25570 :
25571 fi
25572
25573
25574 rm -f conf.gtktest
25575
f34ca037 25576 fi
a848cd7e
SC
25577 fi
25578 fi
25579
25580 if test -z "$wx_cv_lib_gtk"; then
25581 wx_cv_lib_gtk=none
25582 else
25583 wx_cv_cflags_gtk=$GTK_CFLAGS
25584 wx_cv_libs_gtk=$GTK_LIBS
25585 fi
25586
25587
25588fi
25589
25590
25591 if test "$gtk_version_cached" = 1; then
25592 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25593echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25594 fi
25595
25596 case "$wx_cv_lib_gtk" in
25597 2.0) WXGTK20=1
25598 TOOLKIT_VERSION=2
25599 ;;
25600 1.2.7) WXGTK127=1
25601 WXGTK12=1
25602 ;;
25603 1.2.3) WXGTK12=1
25604 ;;
25605 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25606The development files for GTK+ were not found. For GTK+ 2, please
25607ensure that pkg-config is in the path and that gtk+-2.0.pc is
25608installed. For GTK+ 1.2 please check that gtk-config is in the path,
25609and that the version is 1.2.3 or above. Also check that the
25610libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25611--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25612 " >&5
25613echo "$as_me: error:
f597b41c
MW
25614The development files for GTK+ were not found. For GTK+ 2, please
25615ensure that pkg-config is in the path and that gtk+-2.0.pc is
25616installed. For GTK+ 1.2 please check that gtk-config is in the path,
25617and that the version is 1.2.3 or above. Also check that the
25618libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25619--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25620 " >&2;}
25621 { (exit 1); exit 1; }; }
25622 ;;
25623 esac
25624
25625 if test "$WXGTK20" = 1; then
304205f1
VS
25626 save_CFLAGS="$CFLAGS"
25627 save_LIBS="$LIBS"
9d271838 25628 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 25629 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 25630
9755e73b 25631
304205f1
VS
25632for ac_func in pango_font_family_is_monospace
25633do
25634as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25635echo "$as_me:$LINENO: checking for $ac_func" >&5
25636echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25637if eval "test \"\${$as_ac_var+set}\" = set"; then
25638 echo $ECHO_N "(cached) $ECHO_C" >&6
25639else
25640 cat >conftest.$ac_ext <<_ACEOF
25641/* confdefs.h. */
25642_ACEOF
25643cat confdefs.h >>conftest.$ac_ext
25644cat >>conftest.$ac_ext <<_ACEOF
25645/* end confdefs.h. */
25646/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25648#define $ac_func innocuous_$ac_func
25649
25650/* System header to define __stub macros and hopefully few prototypes,
25651 which can conflict with char $ac_func (); below.
25652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25653 <limits.h> exists even on freestanding compilers. */
25654
25655#ifdef __STDC__
25656# include <limits.h>
25657#else
25658# include <assert.h>
25659#endif
25660
25661#undef $ac_func
25662
25663/* Override any gcc2 internal prototype to avoid an error. */
25664#ifdef __cplusplus
25665extern "C"
25666{
25667#endif
25668/* We use char because int might match the return type of a gcc2
25669 builtin and then its argument prototype would still apply. */
25670char $ac_func ();
25671/* The GNU C library defines this for functions which it implements
25672 to always fail with ENOSYS. Some functions are actually named
25673 something starting with __ and the normal name is an alias. */
25674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25675choke me
25676#else
25677char (*f) () = $ac_func;
25678#endif
25679#ifdef __cplusplus
25680}
25681#endif
25682
25683int
25684main ()
25685{
25686return f != $ac_func;
25687 ;
25688 return 0;
25689}
25690_ACEOF
25691rm -f conftest.$ac_objext conftest$ac_exeext
25692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25693 (eval $ac_link) 2>conftest.er1
25694 ac_status=$?
25695 grep -v '^ *+' conftest.er1 >conftest.err
25696 rm -f conftest.er1
25697 cat conftest.err >&5
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); } &&
8c539582 25700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702 (eval $ac_try) 2>&5
25703 ac_status=$?
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); }; } &&
25706 { ac_try='test -s conftest$ac_exeext'
25707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708 (eval $ac_try) 2>&5
25709 ac_status=$?
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }; }; then
25712 eval "$as_ac_var=yes"
25713else
25714 echo "$as_me: failed program was:" >&5
25715sed 's/^/| /' conftest.$ac_ext >&5
25716
25717eval "$as_ac_var=no"
25718fi
25719rm -f conftest.err conftest.$ac_objext \
25720 conftest$ac_exeext conftest.$ac_ext
25721fi
25722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25724if test `eval echo '${'$as_ac_var'}'` = yes; then
25725 cat >>confdefs.h <<_ACEOF
25726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25727_ACEOF
25728
25729fi
25730done
25731
9755e73b 25732
abc736fd
MW
25733 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
25734echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
25735 cat >conftest.$ac_ext <<_ACEOF
25736/* confdefs.h. */
25737_ACEOF
25738cat confdefs.h >>conftest.$ac_ext
25739cat >>conftest.$ac_ext <<_ACEOF
25740/* end confdefs.h. */
25741
25742 #include <gtk/gtk.h>
25743
25744int
25745main ()
25746{
25747
25748 void *f = gtk_icon_size_lookup;
25749
25750 ;
25751 return 0;
25752}
25753_ACEOF
25754rm -f conftest.$ac_objext
25755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25756 (eval $ac_compile) 2>conftest.er1
25757 ac_status=$?
25758 grep -v '^ *+' conftest.er1 >conftest.err
25759 rm -f conftest.er1
25760 cat conftest.err >&5
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); } &&
8c539582 25763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
25764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25765 (eval $ac_try) 2>&5
25766 ac_status=$?
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); }; } &&
25769 { ac_try='test -s conftest.$ac_objext'
25770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771 (eval $ac_try) 2>&5
25772 ac_status=$?
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); }; }; then
25775
25776 echo "$as_me:$LINENO: result: no" >&5
25777echo "${ECHO_T}no" >&6
25778
25779else
25780 echo "$as_me: failed program was:" >&5
25781sed 's/^/| /' conftest.$ac_ext >&5
25782
25783
25784 cat >>confdefs.h <<\_ACEOF
25785#define NEED_GTK_ICON_SIZE_LOOKUP 1
25786_ACEOF
25787
25788 echo "$as_me:$LINENO: result: yes" >&5
25789echo "${ECHO_T}yes" >&6
25790
25791fi
25792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25793
9755e73b
VS
25794 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25795echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25796 cat >conftest.$ac_ext <<_ACEOF
25797/* confdefs.h. */
25798_ACEOF
25799cat confdefs.h >>conftest.$ac_ext
25800cat >>conftest.$ac_ext <<_ACEOF
25801/* end confdefs.h. */
25802
25803 #include <gtk/gtk.h>
25804
25805int
25806main ()
25807{
25808
25809 #if !GTK_CHECK_VERSION(2,4,0)
25810 #error "Not GTK+ 2.4"
25811 #endif
25812
25813 ;
25814 return 0;
25815}
25816_ACEOF
25817rm -f conftest.$ac_objext
25818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25819 (eval $ac_compile) 2>conftest.er1
25820 ac_status=$?
25821 grep -v '^ *+' conftest.er1 >conftest.err
25822 rm -f conftest.er1
25823 cat conftest.err >&5
25824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 (exit $ac_status); } &&
8c539582 25826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828 (eval $ac_try) 2>&5
25829 ac_status=$?
25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); }; } &&
25832 { ac_try='test -s conftest.$ac_objext'
25833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; }; then
25838
25839 cat >>confdefs.h <<\_ACEOF
25840#define __WXGTK24__ 1
25841_ACEOF
25842
25843 echo "$as_me:$LINENO: result: yes" >&5
25844echo "${ECHO_T}yes" >&6
25845
25846else
25847 echo "$as_me: failed program was:" >&5
25848sed 's/^/| /' conftest.$ac_ext >&5
25849
25850
25851 echo "$as_me:$LINENO: result: no" >&5
25852echo "${ECHO_T}no" >&6
25853
25854fi
25855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25856
304205f1
VS
25857 CFLAGS="$save_CFLAGS"
25858 LIBS="$save_LIBS"
a848cd7e
SC
25859 else
25860 if test "$wxUSE_UNICODE" = "yes"; then
25861 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25862echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25863 wxUSE_UNICODE=no
25864 fi
25865 fi
25866
25867 if test "$USE_DARWIN" != 1; then
25868
25869for ac_func in poll
25870do
25871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25872echo "$as_me:$LINENO: checking for $ac_func" >&5
25873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25874if eval "test \"\${$as_ac_var+set}\" = set"; then
25875 echo $ECHO_N "(cached) $ECHO_C" >&6
25876else
25877 cat >conftest.$ac_ext <<_ACEOF
25878/* confdefs.h. */
25879_ACEOF
25880cat confdefs.h >>conftest.$ac_ext
25881cat >>conftest.$ac_ext <<_ACEOF
25882/* end confdefs.h. */
ac1cb8d3
VS
25883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25885#define $ac_func innocuous_$ac_func
25886
a848cd7e
SC
25887/* System header to define __stub macros and hopefully few prototypes,
25888 which can conflict with char $ac_func (); below.
25889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25890 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25891
a848cd7e
SC
25892#ifdef __STDC__
25893# include <limits.h>
25894#else
25895# include <assert.h>
25896#endif
ac1cb8d3
VS
25897
25898#undef $ac_func
25899
a848cd7e
SC
25900/* Override any gcc2 internal prototype to avoid an error. */
25901#ifdef __cplusplus
25902extern "C"
25903{
25904#endif
25905/* We use char because int might match the return type of a gcc2
25906 builtin and then its argument prototype would still apply. */
25907char $ac_func ();
25908/* The GNU C library defines this for functions which it implements
25909 to always fail with ENOSYS. Some functions are actually named
25910 something starting with __ and the normal name is an alias. */
25911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25912choke me
25913#else
25914char (*f) () = $ac_func;
25915#endif
25916#ifdef __cplusplus
25917}
25918#endif
25919
25920int
25921main ()
25922{
25923return f != $ac_func;
25924 ;
25925 return 0;
25926}
25927_ACEOF
25928rm -f conftest.$ac_objext conftest$ac_exeext
25929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25930 (eval $ac_link) 2>conftest.er1
a848cd7e 25931 ac_status=$?
ac1cb8d3
VS
25932 grep -v '^ *+' conftest.er1 >conftest.err
25933 rm -f conftest.er1
25934 cat conftest.err >&5
a848cd7e
SC
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); } &&
8c539582 25937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25939 (eval $ac_try) 2>&5
25940 ac_status=$?
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); }; } &&
25943 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25945 (eval $ac_try) 2>&5
25946 ac_status=$?
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); }; }; then
25949 eval "$as_ac_var=yes"
25950else
25951 echo "$as_me: failed program was:" >&5
25952sed 's/^/| /' conftest.$ac_ext >&5
25953
25954eval "$as_ac_var=no"
25955fi
ac1cb8d3
VS
25956rm -f conftest.err conftest.$ac_objext \
25957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25958fi
25959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25960echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25961if test `eval echo '${'$as_ac_var'}'` = yes; then
25962 cat >>confdefs.h <<_ACEOF
25963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25964_ACEOF
25965
25966fi
25967done
25968
25969 fi
25970
25971 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25972 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25973
25974 AFMINSTALL=afminstall
25975 TOOLKIT=GTK
25976 GUIDIST=GTK_DIST
25977
25978 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25979echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25980if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25981 echo $ECHO_N "(cached) $ECHO_C" >&6
25982else
25983 ac_check_lib_save_LIBS=$LIBS
25984LIBS="-lgdk $LIBS"
25985cat >conftest.$ac_ext <<_ACEOF
25986/* confdefs.h. */
25987_ACEOF
25988cat confdefs.h >>conftest.$ac_ext
25989cat >>conftest.$ac_ext <<_ACEOF
25990/* end confdefs.h. */
25991
25992/* Override any gcc2 internal prototype to avoid an error. */
25993#ifdef __cplusplus
25994extern "C"
25995#endif
25996/* We use char because int might match the return type of a gcc2
25997 builtin and then its argument prototype would still apply. */
25998char gdk_im_open ();
25999int
26000main ()
26001{
26002gdk_im_open ();
26003 ;
26004 return 0;
26005}
26006_ACEOF
26007rm -f conftest.$ac_objext conftest$ac_exeext
26008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26009 (eval $ac_link) 2>conftest.er1
a848cd7e 26010 ac_status=$?
ac1cb8d3
VS
26011 grep -v '^ *+' conftest.er1 >conftest.err
26012 rm -f conftest.er1
26013 cat conftest.err >&5
a848cd7e
SC
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } &&
8c539582 26016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018 (eval $ac_try) 2>&5
26019 ac_status=$?
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); }; } &&
26022 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024 (eval $ac_try) 2>&5
26025 ac_status=$?
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); }; }; then
26028 ac_cv_lib_gdk_gdk_im_open=yes
26029else
26030 echo "$as_me: failed program was:" >&5
26031sed 's/^/| /' conftest.$ac_ext >&5
26032
26033ac_cv_lib_gdk_gdk_im_open=no
26034fi
ac1cb8d3
VS
26035rm -f conftest.err conftest.$ac_objext \
26036 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26037LIBS=$ac_check_lib_save_LIBS
26038fi
26039echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26040echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26041if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26042 cat >>confdefs.h <<\_ACEOF
26043#define HAVE_XIM 1
26044_ACEOF
26045
26046fi
26047
26048
26049
26050 if test "$wxUSE_GPE" = "yes"; then
26051 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26052echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26053
26054ac_find_libraries=
26055for ac_dir in $SEARCH_LIB /usr/lib;
26056 do
26057 for ac_extension in a so sl dylib; do
26058 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26059 ac_find_libraries=$ac_dir
26060 break 2
26061 fi
26062 done
26063 done
26064
26065 if test "$ac_find_libraries" != "" ; then
26066
26067 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26068 result=$?
26069 if test $result = 0; then
26070 ac_path_to_link=""
26071 else
26072 ac_path_to_link=" -L$ac_find_libraries"
26073 fi
26074
26075 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26076 WXGPE=1
26077 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26078echo "${ECHO_T}found at $ac_find_libraries" >&6
26079 else
26080 echo "$as_me:$LINENO: result: not found" >&5
26081echo "${ECHO_T}not found" >&6
26082 fi
26083
26084 fi
26085 fi
26086
26087 if test "$wxUSE_MGL" = 1; then
26088 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26089echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26090 if test "x$MGL_ROOT" = x ; then
26091 echo "$as_me:$LINENO: result: not found" >&5
26092echo "${ECHO_T}not found" >&6
26093 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26094echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26095 { (exit 1); exit 1; }; }
26096 else
26097 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26098echo "${ECHO_T}$MGL_ROOT" >&6
26099 fi
26100
26101 echo "$as_me:$LINENO: checking for libmgl location" >&5
26102echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26103 case "${host}" in
26104 *-*-linux* )
26105 if test "x$wxUSE_SHARED" = xyes ; then
26106 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26107 else
26108 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26109 fi
26110 ;;
26111 *-pc-msdosdjgpp )
26112 mgl_os_candidates="dos32/dj2"
26113 ;;
26114 *)
26115 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26116echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26117 { (exit 1); exit 1; }; }
26118 esac
26119
26120 mgl_lib_type=""
26121 mgl_os=""
26122
26123 for mgl_os_i in $mgl_os_candidates ; do
26124 if test "x$mgl_os" = x ; then
26125 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26126 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26127 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26128 mgl_lib_type=debug
26129 mgl_os=$mgl_os_i
26130 fi
26131 fi
26132 if test "x$mgl_lib_type" = x ; then
26133 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26134 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26135 mgl_lib_type=release
26136 mgl_os=$mgl_os_i
26137 fi
26138 fi
26139 fi
26140 done
26141
26142 if test "x$mgl_os" = x ; then
26143 echo "$as_me:$LINENO: result: not found" >&5
26144echo "${ECHO_T}not found" >&6
26145 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26146echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26147 { (exit 1); exit 1; }; }
26148 fi
26149 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26150echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26151
26152 wxUSE_UNIVERSAL="yes"
26153
26154 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26155 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26156
26157 AFMINSTALL=afminstall
26158 TOOLKIT=MGL
26159 GUIDIST=MGL_DIST
26160 fi
26161
26162 if test "$wxUSE_MICROWIN" = 1; then
26163 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26164echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26165 if test "x$MICROWINDOWS" = x ; then
26166 echo "$as_me:$LINENO: result: not found" >&5
26167echo "${ECHO_T}not found" >&6
26168 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26169echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26170 { (exit 1); exit 1; }; }
26171 else
26172 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26173echo "${ECHO_T}$MICROWINDOWS" >&6
26174 fi
26175
26176 if test -f $MICROWINDOWS/lib/libmwin.a; then
26177 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26178echo "${ECHO_T}MicroWindows' libraries found." >&6
26179 else
26180 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26181echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26182 { (exit 1); exit 1; }; }
26183 fi
26184
26185 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26186 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26187
26188 wxUSE_UNIVERSAL="yes"
26189
26190 AFMINSTALL=afminstall
26191 TOOLKIT=MICROWIN
26192 GUIDIST=MICROWIN_DIST
26193
26194 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26195 fi
26196
74b84332 26197 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
8c539582
RL
26198
26199if test "x$ac_path_x_has_been_run" != xyes; then
26200 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26201echo $ECHO_N "checking for X... $ECHO_C" >&6
26202
8c539582 26203ac_path_x_has_been_run=yes
a848cd7e
SC
26204
26205# Check whether --with-x or --without-x was given.
26206if test "${with_x+set}" = set; then
26207 withval="$with_x"
26208
26209fi;
26210# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26211if test "x$with_x" = xno; then
26212 # The user explicitly disabled X.
26213 have_x=disabled
26214else
26215 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26216 # Both variables are already set.
26217 have_x=yes
26218 else
26219 if test "${ac_cv_have_x+set}" = set; then
26220 echo $ECHO_N "(cached) $ECHO_C" >&6
26221else
26222 # One or both of the vars are not set, and there is no cached value.
26223ac_x_includes=no ac_x_libraries=no
26224rm -fr conftest.dir
26225if mkdir conftest.dir; then
26226 cd conftest.dir
26227 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26228 cat >Imakefile <<'_ACEOF'
26229acfindx:
26230 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26231_ACEOF
26232 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26233 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26234 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26235 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26236 for ac_extension in a so sl; do
26237 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26238 test -f $ac_im_libdir/libX11.$ac_extension; then
26239 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26240 fi
26241 done
26242 # Screen out bogus values from the imake configuration. They are
26243 # bogus both because they are the default anyway, and because
26244 # using them would break gcc on systems where it needs fixed includes.
26245 case $ac_im_incroot in
26246 /usr/include) ;;
26247 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26248 esac
26249 case $ac_im_usrlibdir in
26250 /usr/lib | /lib) ;;
26251 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26252 esac
26253 fi
26254 cd ..
26255 rm -fr conftest.dir
26256fi
26257
26258# Standard set of common directories for X headers.
26259# Check X11 before X11Rn because it is often a symlink to the current release.
26260ac_x_header_dirs='
26261/usr/X11/include
26262/usr/X11R6/include
26263/usr/X11R5/include
26264/usr/X11R4/include
26265
26266/usr/include/X11
26267/usr/include/X11R6
26268/usr/include/X11R5
26269/usr/include/X11R4
26270
26271/usr/local/X11/include
26272/usr/local/X11R6/include
26273/usr/local/X11R5/include
26274/usr/local/X11R4/include
26275
26276/usr/local/include/X11
26277/usr/local/include/X11R6
26278/usr/local/include/X11R5
26279/usr/local/include/X11R4
26280
26281/usr/X386/include
26282/usr/x386/include
26283/usr/XFree86/include/X11
26284
26285/usr/include
26286/usr/local/include
26287/usr/unsupported/include
26288/usr/athena/include
26289/usr/local/x11r5/include
26290/usr/lpp/Xamples/include
26291
26292/usr/openwin/include
26293/usr/openwin/share/include'
26294
26295if test "$ac_x_includes" = no; then
8c539582 26296 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26297 # First, try using that file with no special directory specified.
26298 cat >conftest.$ac_ext <<_ACEOF
26299/* confdefs.h. */
26300_ACEOF
26301cat confdefs.h >>conftest.$ac_ext
26302cat >>conftest.$ac_ext <<_ACEOF
26303/* end confdefs.h. */
26304#include <X11/Intrinsic.h>
26305_ACEOF
26306if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26308 ac_status=$?
26309 grep -v '^ *+' conftest.er1 >conftest.err
26310 rm -f conftest.er1
26311 cat conftest.err >&5
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } >/dev/null; then
26314 if test -s conftest.err; then
26315 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26317 else
26318 ac_cpp_err=
26319 fi
26320else
26321 ac_cpp_err=yes
26322fi
26323if test -z "$ac_cpp_err"; then
26324 # We can compile using X headers with no special include directory.
26325ac_x_includes=
26326else
26327 echo "$as_me: failed program was:" >&5
26328sed 's/^/| /' conftest.$ac_ext >&5
26329
26330 for ac_dir in $ac_x_header_dirs; do
26331 if test -r "$ac_dir/X11/Intrinsic.h"; then
26332 ac_x_includes=$ac_dir
26333 break
26334 fi
26335done
26336fi
26337rm -f conftest.err conftest.$ac_ext
26338fi # $ac_x_includes = no
26339
26340if test "$ac_x_libraries" = no; then
26341 # Check for the libraries.
26342 # See if we find them without any special options.
26343 # Don't add to $LIBS permanently.
26344 ac_save_LIBS=$LIBS
26345 LIBS="-lXt $LIBS"
26346 cat >conftest.$ac_ext <<_ACEOF
26347/* confdefs.h. */
26348_ACEOF
26349cat confdefs.h >>conftest.$ac_ext
26350cat >>conftest.$ac_ext <<_ACEOF
26351/* end confdefs.h. */
26352#include <X11/Intrinsic.h>
26353int
26354main ()
26355{
26356XtMalloc (0)
26357 ;
26358 return 0;
26359}
26360_ACEOF
26361rm -f conftest.$ac_objext conftest$ac_exeext
26362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26363 (eval $ac_link) 2>conftest.er1
a848cd7e 26364 ac_status=$?
ac1cb8d3
VS
26365 grep -v '^ *+' conftest.er1 >conftest.err
26366 rm -f conftest.er1
26367 cat conftest.err >&5
a848cd7e
SC
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); } &&
8c539582 26370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26372 (eval $ac_try) 2>&5
26373 ac_status=$?
26374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375 (exit $ac_status); }; } &&
26376 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26378 (eval $ac_try) 2>&5
26379 ac_status=$?
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); }; }; then
26382 LIBS=$ac_save_LIBS
26383# We can link X programs with no special library path.
26384ac_x_libraries=
26385else
26386 echo "$as_me: failed program was:" >&5
26387sed 's/^/| /' conftest.$ac_ext >&5
26388
26389LIBS=$ac_save_LIBS
26390for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26391do
26392 # Don't even attempt the hair of trying to link an X program!
26393 for ac_extension in a so sl; do
26394 if test -r $ac_dir/libXt.$ac_extension; then
26395 ac_x_libraries=$ac_dir
26396 break 2
26397 fi
26398 done
26399done
26400fi
ac1cb8d3
VS
26401rm -f conftest.err conftest.$ac_objext \
26402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26403fi # $ac_x_libraries = no
26404
26405if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26406 # Didn't find X anywhere. Cache the known absence of X.
26407 ac_cv_have_x="have_x=no"
26408else
26409 # Record where we found X for the cache.
26410 ac_cv_have_x="have_x=yes \
ac1cb8d3 26411 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26412fi
26413fi
26414
26415 fi
26416 eval "$ac_cv_have_x"
26417fi # $with_x != no
26418
26419if test "$have_x" != yes; then
26420 echo "$as_me:$LINENO: result: $have_x" >&5
26421echo "${ECHO_T}$have_x" >&6
26422 no_x=yes
26423else
26424 # If each of the values was on the command line, it overrides each guess.
26425 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26426 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26427 # Update the cache value to reflect the command line values.
26428 ac_cv_have_x="have_x=yes \
26429 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8c539582
RL
26430 # It might be that x_includes is empty (headers are found in the
26431 # standard search path. Then output the corresponding message
26432 ac_out_x_includes=$x_includes
26433 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26434 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26435echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26436fi
26437
8c539582 26438fi
a848cd7e
SC
26439if test "$no_x" = yes; then
26440 # Not all programs may use this symbol, but it does not hurt to define it.
26441
26442cat >>confdefs.h <<\_ACEOF
26443#define X_DISPLAY_MISSING 1
26444_ACEOF
26445
26446 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26447else
26448 if test -n "$x_includes"; then
26449 X_CFLAGS="$X_CFLAGS -I$x_includes"
26450 fi
26451
26452 # It would also be nice to do this for all -L options, not just this one.
26453 if test -n "$x_libraries"; then
26454 X_LIBS="$X_LIBS -L$x_libraries"
26455 # For Solaris; some versions of Sun CC require a space after -R and
26456 # others require no space. Words are not sufficient . . . .
26457 case `(uname -sr) 2>/dev/null` in
26458 "SunOS 5"*)
26459 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26460echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26461 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26462 cat >conftest.$ac_ext <<_ACEOF
26463/* confdefs.h. */
26464_ACEOF
26465cat confdefs.h >>conftest.$ac_ext
26466cat >>conftest.$ac_ext <<_ACEOF
26467/* end confdefs.h. */
26468
26469int
26470main ()
26471{
26472
26473 ;
26474 return 0;
26475}
26476_ACEOF
26477rm -f conftest.$ac_objext conftest$ac_exeext
26478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26479 (eval $ac_link) 2>conftest.er1
a848cd7e 26480 ac_status=$?
ac1cb8d3
VS
26481 grep -v '^ *+' conftest.er1 >conftest.err
26482 rm -f conftest.er1
26483 cat conftest.err >&5
a848cd7e
SC
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } &&
8c539582 26486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26489 ac_status=$?
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; } &&
26492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26495 ac_status=$?
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; }; then
26498 ac_R_nospace=yes
26499else
26500 echo "$as_me: failed program was:" >&5
26501sed 's/^/| /' conftest.$ac_ext >&5
26502
26503ac_R_nospace=no
26504fi
ac1cb8d3
VS
26505rm -f conftest.err conftest.$ac_objext \
26506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26507 if test $ac_R_nospace = yes; then
26508 echo "$as_me:$LINENO: result: no" >&5
26509echo "${ECHO_T}no" >&6
26510 X_LIBS="$X_LIBS -R$x_libraries"
26511 else
26512 LIBS="$ac_xsave_LIBS -R $x_libraries"
26513 cat >conftest.$ac_ext <<_ACEOF
26514/* confdefs.h. */
26515_ACEOF
26516cat confdefs.h >>conftest.$ac_ext
26517cat >>conftest.$ac_ext <<_ACEOF
26518/* end confdefs.h. */
26519
26520int
26521main ()
26522{
26523
26524 ;
26525 return 0;
26526}
26527_ACEOF
26528rm -f conftest.$ac_objext conftest$ac_exeext
26529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26530 (eval $ac_link) 2>conftest.er1
a848cd7e 26531 ac_status=$?
ac1cb8d3
VS
26532 grep -v '^ *+' conftest.er1 >conftest.err
26533 rm -f conftest.er1
26534 cat conftest.err >&5
a848cd7e
SC
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } &&
8c539582 26537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26539 (eval $ac_try) 2>&5
26540 ac_status=$?
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); }; } &&
26543 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26545 (eval $ac_try) 2>&5
26546 ac_status=$?
26547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); }; }; then
26549 ac_R_space=yes
26550else
26551 echo "$as_me: failed program was:" >&5
26552sed 's/^/| /' conftest.$ac_ext >&5
26553
26554ac_R_space=no
26555fi
ac1cb8d3
VS
26556rm -f conftest.err conftest.$ac_objext \
26557 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26558 if test $ac_R_space = yes; then
26559 echo "$as_me:$LINENO: result: yes" >&5
26560echo "${ECHO_T}yes" >&6
26561 X_LIBS="$X_LIBS -R $x_libraries"
26562 else
26563 echo "$as_me:$LINENO: result: neither works" >&5
26564echo "${ECHO_T}neither works" >&6
26565 fi
26566 fi
26567 LIBS=$ac_xsave_LIBS
26568 esac
26569 fi
26570
26571 # Check for system-dependent libraries X programs must link with.
26572 # Do this before checking for the system-independent R6 libraries
26573 # (-lICE), since we may need -lsocket or whatever for X linking.
26574
26575 if test "$ISC" = yes; then
26576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26577 else
26578 # Martyn Johnson says this is needed for Ultrix, if the X
26579 # libraries were built with DECnet support. And Karl Berry says
26580 # the Alpha needs dnet_stub (dnet does not exist).
26581 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26582 cat >conftest.$ac_ext <<_ACEOF
26583/* confdefs.h. */
26584_ACEOF
26585cat confdefs.h >>conftest.$ac_ext
26586cat >>conftest.$ac_ext <<_ACEOF
26587/* end confdefs.h. */
26588
26589/* Override any gcc2 internal prototype to avoid an error. */
26590#ifdef __cplusplus
26591extern "C"
26592#endif
26593/* We use char because int might match the return type of a gcc2
26594 builtin and then its argument prototype would still apply. */
26595char XOpenDisplay ();
26596int
26597main ()
26598{
26599XOpenDisplay ();
26600 ;
26601 return 0;
26602}
26603_ACEOF
26604rm -f conftest.$ac_objext conftest$ac_exeext
26605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26606 (eval $ac_link) 2>conftest.er1
a848cd7e 26607 ac_status=$?
ac1cb8d3
VS
26608 grep -v '^ *+' conftest.er1 >conftest.err
26609 rm -f conftest.er1
26610 cat conftest.err >&5
a848cd7e
SC
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); } &&
8c539582 26613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26615 (eval $ac_try) 2>&5
26616 ac_status=$?
26617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618 (exit $ac_status); }; } &&
26619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26621 (eval $ac_try) 2>&5
26622 ac_status=$?
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); }; }; then
26625 :
26626else
26627 echo "$as_me: failed program was:" >&5
26628sed 's/^/| /' conftest.$ac_ext >&5
26629
26630echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26631echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26632if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26634else
26635 ac_check_lib_save_LIBS=$LIBS
26636LIBS="-ldnet $LIBS"
26637cat >conftest.$ac_ext <<_ACEOF
26638/* confdefs.h. */
26639_ACEOF
26640cat confdefs.h >>conftest.$ac_ext
26641cat >>conftest.$ac_ext <<_ACEOF
26642/* end confdefs.h. */
26643
26644/* Override any gcc2 internal prototype to avoid an error. */
26645#ifdef __cplusplus
26646extern "C"
26647#endif
26648/* We use char because int might match the return type of a gcc2
26649 builtin and then its argument prototype would still apply. */
26650char dnet_ntoa ();
26651int
26652main ()
26653{
26654dnet_ntoa ();
26655 ;
26656 return 0;
26657}
26658_ACEOF
26659rm -f conftest.$ac_objext conftest$ac_exeext
26660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26661 (eval $ac_link) 2>conftest.er1
a848cd7e 26662 ac_status=$?
ac1cb8d3
VS
26663 grep -v '^ *+' conftest.er1 >conftest.err
26664 rm -f conftest.er1
26665 cat conftest.err >&5
a848cd7e
SC
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); } &&
8c539582 26668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26670 (eval $ac_try) 2>&5
26671 ac_status=$?
26672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673 (exit $ac_status); }; } &&
26674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26676 (eval $ac_try) 2>&5
26677 ac_status=$?
26678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); }; }; then
26680 ac_cv_lib_dnet_dnet_ntoa=yes
26681else
26682 echo "$as_me: failed program was:" >&5
26683sed 's/^/| /' conftest.$ac_ext >&5
26684
26685ac_cv_lib_dnet_dnet_ntoa=no
26686fi
ac1cb8d3
VS
26687rm -f conftest.err conftest.$ac_objext \
26688 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26689LIBS=$ac_check_lib_save_LIBS
26690fi
26691echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26692echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26693if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26694 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26695fi
26696
26697 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26698 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26699echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26700if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26701 echo $ECHO_N "(cached) $ECHO_C" >&6
26702else
26703 ac_check_lib_save_LIBS=$LIBS
26704LIBS="-ldnet_stub $LIBS"
26705cat >conftest.$ac_ext <<_ACEOF
26706/* confdefs.h. */
26707_ACEOF
26708cat confdefs.h >>conftest.$ac_ext
26709cat >>conftest.$ac_ext <<_ACEOF
26710/* end confdefs.h. */
26711
26712/* Override any gcc2 internal prototype to avoid an error. */
26713#ifdef __cplusplus
26714extern "C"
26715#endif
26716/* We use char because int might match the return type of a gcc2
26717 builtin and then its argument prototype would still apply. */
26718char dnet_ntoa ();
26719int
26720main ()
26721{
26722dnet_ntoa ();
26723 ;
26724 return 0;
26725}
26726_ACEOF
26727rm -f conftest.$ac_objext conftest$ac_exeext
26728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26729 (eval $ac_link) 2>conftest.er1
a848cd7e 26730 ac_status=$?
ac1cb8d3
VS
26731 grep -v '^ *+' conftest.er1 >conftest.err
26732 rm -f conftest.er1
26733 cat conftest.err >&5
a848cd7e
SC
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); } &&
8c539582 26736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26738 (eval $ac_try) 2>&5
26739 ac_status=$?
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); }; } &&
26742 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); }; }; then
26748 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26749else
26750 echo "$as_me: failed program was:" >&5
26751sed 's/^/| /' conftest.$ac_ext >&5
26752
26753ac_cv_lib_dnet_stub_dnet_ntoa=no
26754fi
ac1cb8d3
VS
26755rm -f conftest.err conftest.$ac_objext \
26756 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26757LIBS=$ac_check_lib_save_LIBS
26758fi
26759echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26760echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26761if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26762 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26763fi
26764
26765 fi
26766fi
ac1cb8d3
VS
26767rm -f conftest.err conftest.$ac_objext \
26768 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26769 LIBS="$ac_xsave_LIBS"
26770
26771 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26772 # to get the SysV transport functions.
26773 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26774 # needs -lnsl.
26775 # The nsl library prevents programs from opening the X display
26776 # on Irix 5.2, according to T.E. Dickey.
26777 # The functions gethostbyname, getservbyname, and inet_addr are
26778 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26779 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26780echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26781if test "${ac_cv_func_gethostbyname+set}" = set; then
26782 echo $ECHO_N "(cached) $ECHO_C" >&6
26783else
26784 cat >conftest.$ac_ext <<_ACEOF
26785/* confdefs.h. */
26786_ACEOF
26787cat confdefs.h >>conftest.$ac_ext
26788cat >>conftest.$ac_ext <<_ACEOF
26789/* end confdefs.h. */
ac1cb8d3
VS
26790/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26792#define gethostbyname innocuous_gethostbyname
26793
a848cd7e
SC
26794/* System header to define __stub macros and hopefully few prototypes,
26795 which can conflict with char gethostbyname (); below.
26796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26797 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26798
a848cd7e
SC
26799#ifdef __STDC__
26800# include <limits.h>
26801#else
26802# include <assert.h>
26803#endif
ac1cb8d3
VS
26804
26805#undef gethostbyname
26806
a848cd7e
SC
26807/* Override any gcc2 internal prototype to avoid an error. */
26808#ifdef __cplusplus
26809extern "C"
26810{
26811#endif
26812/* We use char because int might match the return type of a gcc2
26813 builtin and then its argument prototype would still apply. */
26814char gethostbyname ();
26815/* The GNU C library defines this for functions which it implements
26816 to always fail with ENOSYS. Some functions are actually named
26817 something starting with __ and the normal name is an alias. */
26818#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26819choke me
26820#else
26821char (*f) () = gethostbyname;
26822#endif
26823#ifdef __cplusplus
26824}
26825#endif
26826
26827int
26828main ()
26829{
26830return f != gethostbyname;
26831 ;
26832 return 0;
26833}
26834_ACEOF
26835rm -f conftest.$ac_objext conftest$ac_exeext
26836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26837 (eval $ac_link) 2>conftest.er1
a848cd7e 26838 ac_status=$?
ac1cb8d3
VS
26839 grep -v '^ *+' conftest.er1 >conftest.err
26840 rm -f conftest.er1
26841 cat conftest.err >&5
a848cd7e
SC
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } &&
8c539582 26844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26846 (eval $ac_try) 2>&5
26847 ac_status=$?
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); }; } &&
26850 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852 (eval $ac_try) 2>&5
26853 ac_status=$?
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); }; }; then
26856 ac_cv_func_gethostbyname=yes
26857else
26858 echo "$as_me: failed program was:" >&5
26859sed 's/^/| /' conftest.$ac_ext >&5
26860
26861ac_cv_func_gethostbyname=no
26862fi
ac1cb8d3
VS
26863rm -f conftest.err conftest.$ac_objext \
26864 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26865fi
26866echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26867echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26868
26869 if test $ac_cv_func_gethostbyname = no; then
26870 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26871echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26872if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26873 echo $ECHO_N "(cached) $ECHO_C" >&6
26874else
26875 ac_check_lib_save_LIBS=$LIBS
26876LIBS="-lnsl $LIBS"
26877cat >conftest.$ac_ext <<_ACEOF
26878/* confdefs.h. */
26879_ACEOF
26880cat confdefs.h >>conftest.$ac_ext
26881cat >>conftest.$ac_ext <<_ACEOF
26882/* end confdefs.h. */
26883
26884/* Override any gcc2 internal prototype to avoid an error. */
26885#ifdef __cplusplus
26886extern "C"
26887#endif
26888/* We use char because int might match the return type of a gcc2
26889 builtin and then its argument prototype would still apply. */
26890char gethostbyname ();
26891int
26892main ()
26893{
26894gethostbyname ();
26895 ;
26896 return 0;
26897}
26898_ACEOF
26899rm -f conftest.$ac_objext conftest$ac_exeext
26900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26901 (eval $ac_link) 2>conftest.er1
26902 ac_status=$?
26903 grep -v '^ *+' conftest.er1 >conftest.err
26904 rm -f conftest.er1
26905 cat conftest.err >&5
26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); } &&
8c539582 26908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910 (eval $ac_try) 2>&5
26911 ac_status=$?
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); }; } &&
26914 { ac_try='test -s conftest$ac_exeext'
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26917 ac_status=$?
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; }; then
26920 ac_cv_lib_nsl_gethostbyname=yes
26921else
26922 echo "$as_me: failed program was:" >&5
26923sed 's/^/| /' conftest.$ac_ext >&5
26924
26925ac_cv_lib_nsl_gethostbyname=no
26926fi
26927rm -f conftest.err conftest.$ac_objext \
26928 conftest$ac_exeext conftest.$ac_ext
26929LIBS=$ac_check_lib_save_LIBS
26930fi
26931echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26932echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26933if test $ac_cv_lib_nsl_gethostbyname = yes; then
26934 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26935fi
26936
26937 if test $ac_cv_lib_nsl_gethostbyname = no; then
26938 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26939echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26940if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26941 echo $ECHO_N "(cached) $ECHO_C" >&6
26942else
26943 ac_check_lib_save_LIBS=$LIBS
26944LIBS="-lbsd $LIBS"
26945cat >conftest.$ac_ext <<_ACEOF
26946/* confdefs.h. */
26947_ACEOF
26948cat confdefs.h >>conftest.$ac_ext
26949cat >>conftest.$ac_ext <<_ACEOF
26950/* end confdefs.h. */
26951
26952/* Override any gcc2 internal prototype to avoid an error. */
26953#ifdef __cplusplus
26954extern "C"
26955#endif
26956/* We use char because int might match the return type of a gcc2
26957 builtin and then its argument prototype would still apply. */
26958char gethostbyname ();
26959int
26960main ()
26961{
26962gethostbyname ();
26963 ;
26964 return 0;
26965}
26966_ACEOF
26967rm -f conftest.$ac_objext conftest$ac_exeext
26968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26969 (eval $ac_link) 2>conftest.er1
a848cd7e 26970 ac_status=$?
ac1cb8d3
VS
26971 grep -v '^ *+' conftest.er1 >conftest.err
26972 rm -f conftest.er1
26973 cat conftest.err >&5
a848cd7e
SC
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); } &&
8c539582 26976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26978 (eval $ac_try) 2>&5
26979 ac_status=$?
26980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26981 (exit $ac_status); }; } &&
26982 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984 (eval $ac_try) 2>&5
26985 ac_status=$?
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); }; }; then
26988 ac_cv_lib_bsd_gethostbyname=yes
26989else
26990 echo "$as_me: failed program was:" >&5
26991sed 's/^/| /' conftest.$ac_ext >&5
26992
26993ac_cv_lib_bsd_gethostbyname=no
26994fi
ac1cb8d3
VS
26995rm -f conftest.err conftest.$ac_objext \
26996 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26997LIBS=$ac_check_lib_save_LIBS
26998fi
26999echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27000echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
27001if test $ac_cv_lib_bsd_gethostbyname = yes; then
27002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27003fi
27004
27005 fi
27006 fi
27007
27008 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27009 # socket/setsockopt and other routines are undefined under SCO ODT
27010 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27011 # on later versions), says Simon Leinen: it contains gethostby*
27012 # variants that don't use the name server (or something). -lsocket
27013 # must be given before -lnsl if both are needed. We assume that
27014 # if connect needs -lnsl, so does gethostbyname.
27015 echo "$as_me:$LINENO: checking for connect" >&5
27016echo $ECHO_N "checking for connect... $ECHO_C" >&6
27017if test "${ac_cv_func_connect+set}" = set; then
27018 echo $ECHO_N "(cached) $ECHO_C" >&6
27019else
27020 cat >conftest.$ac_ext <<_ACEOF
27021/* confdefs.h. */
27022_ACEOF
27023cat confdefs.h >>conftest.$ac_ext
27024cat >>conftest.$ac_ext <<_ACEOF
27025/* end confdefs.h. */
ac1cb8d3
VS
27026/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27028#define connect innocuous_connect
27029
a848cd7e
SC
27030/* System header to define __stub macros and hopefully few prototypes,
27031 which can conflict with char connect (); below.
27032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27033 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27034
a848cd7e
SC
27035#ifdef __STDC__
27036# include <limits.h>
27037#else
27038# include <assert.h>
27039#endif
ac1cb8d3
VS
27040
27041#undef connect
27042
a848cd7e
SC
27043/* Override any gcc2 internal prototype to avoid an error. */
27044#ifdef __cplusplus
27045extern "C"
27046{
27047#endif
27048/* We use char because int might match the return type of a gcc2
27049 builtin and then its argument prototype would still apply. */
27050char connect ();
27051/* The GNU C library defines this for functions which it implements
27052 to always fail with ENOSYS. Some functions are actually named
27053 something starting with __ and the normal name is an alias. */
27054#if defined (__stub_connect) || defined (__stub___connect)
27055choke me
27056#else
27057char (*f) () = connect;
27058#endif
27059#ifdef __cplusplus
27060}
27061#endif
27062
27063int
27064main ()
27065{
27066return f != connect;
27067 ;
27068 return 0;
27069}
27070_ACEOF
27071rm -f conftest.$ac_objext conftest$ac_exeext
27072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27073 (eval $ac_link) 2>conftest.er1
a848cd7e 27074 ac_status=$?
ac1cb8d3
VS
27075 grep -v '^ *+' conftest.er1 >conftest.err
27076 rm -f conftest.er1
27077 cat conftest.err >&5
a848cd7e
SC
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); } &&
8c539582 27080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082 (eval $ac_try) 2>&5
27083 ac_status=$?
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); }; } &&
27086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088 (eval $ac_try) 2>&5
27089 ac_status=$?
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; }; then
27092 ac_cv_func_connect=yes
27093else
27094 echo "$as_me: failed program was:" >&5
27095sed 's/^/| /' conftest.$ac_ext >&5
27096
27097ac_cv_func_connect=no
27098fi
ac1cb8d3
VS
27099rm -f conftest.err conftest.$ac_objext \
27100 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27101fi
27102echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27103echo "${ECHO_T}$ac_cv_func_connect" >&6
27104
27105 if test $ac_cv_func_connect = no; then
27106 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27107echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27108if test "${ac_cv_lib_socket_connect+set}" = set; then
27109 echo $ECHO_N "(cached) $ECHO_C" >&6
27110else
27111 ac_check_lib_save_LIBS=$LIBS
27112LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27113cat >conftest.$ac_ext <<_ACEOF
27114/* confdefs.h. */
27115_ACEOF
27116cat confdefs.h >>conftest.$ac_ext
27117cat >>conftest.$ac_ext <<_ACEOF
27118/* end confdefs.h. */
27119
27120/* Override any gcc2 internal prototype to avoid an error. */
27121#ifdef __cplusplus
27122extern "C"
27123#endif
27124/* We use char because int might match the return type of a gcc2
27125 builtin and then its argument prototype would still apply. */
27126char connect ();
27127int
27128main ()
27129{
27130connect ();
27131 ;
27132 return 0;
27133}
27134_ACEOF
27135rm -f conftest.$ac_objext conftest$ac_exeext
27136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27137 (eval $ac_link) 2>conftest.er1
a848cd7e 27138 ac_status=$?
ac1cb8d3
VS
27139 grep -v '^ *+' conftest.er1 >conftest.err
27140 rm -f conftest.er1
27141 cat conftest.err >&5
a848cd7e
SC
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); } &&
8c539582 27144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27146 (eval $ac_try) 2>&5
27147 ac_status=$?
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); }; } &&
27150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152 (eval $ac_try) 2>&5
27153 ac_status=$?
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); }; }; then
27156 ac_cv_lib_socket_connect=yes
27157else
27158 echo "$as_me: failed program was:" >&5
27159sed 's/^/| /' conftest.$ac_ext >&5
27160
27161ac_cv_lib_socket_connect=no
27162fi
ac1cb8d3
VS
27163rm -f conftest.err conftest.$ac_objext \
27164 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27165LIBS=$ac_check_lib_save_LIBS
27166fi
27167echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27168echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27169if test $ac_cv_lib_socket_connect = yes; then
27170 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27171fi
27172
27173 fi
27174
27175 # Guillermo Gomez says -lposix is necessary on A/UX.
27176 echo "$as_me:$LINENO: checking for remove" >&5
27177echo $ECHO_N "checking for remove... $ECHO_C" >&6
27178if test "${ac_cv_func_remove+set}" = set; then
27179 echo $ECHO_N "(cached) $ECHO_C" >&6
27180else
27181 cat >conftest.$ac_ext <<_ACEOF
27182/* confdefs.h. */
27183_ACEOF
27184cat confdefs.h >>conftest.$ac_ext
27185cat >>conftest.$ac_ext <<_ACEOF
27186/* end confdefs.h. */
ac1cb8d3
VS
27187/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27189#define remove innocuous_remove
27190
a848cd7e
SC
27191/* System header to define __stub macros and hopefully few prototypes,
27192 which can conflict with char remove (); below.
27193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27194 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27195
a848cd7e
SC
27196#ifdef __STDC__
27197# include <limits.h>
27198#else
27199# include <assert.h>
27200#endif
ac1cb8d3
VS
27201
27202#undef remove
27203
a848cd7e
SC
27204/* Override any gcc2 internal prototype to avoid an error. */
27205#ifdef __cplusplus
27206extern "C"
27207{
27208#endif
27209/* We use char because int might match the return type of a gcc2
27210 builtin and then its argument prototype would still apply. */
27211char remove ();
27212/* The GNU C library defines this for functions which it implements
27213 to always fail with ENOSYS. Some functions are actually named
27214 something starting with __ and the normal name is an alias. */
27215#if defined (__stub_remove) || defined (__stub___remove)
27216choke me
27217#else
27218char (*f) () = remove;
27219#endif
27220#ifdef __cplusplus
27221}
27222#endif
27223
27224int
27225main ()
27226{
27227return f != remove;
27228 ;
27229 return 0;
27230}
27231_ACEOF
27232rm -f conftest.$ac_objext conftest$ac_exeext
27233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27234 (eval $ac_link) 2>conftest.er1
a848cd7e 27235 ac_status=$?
ac1cb8d3
VS
27236 grep -v '^ *+' conftest.er1 >conftest.err
27237 rm -f conftest.er1
27238 cat conftest.err >&5
a848cd7e
SC
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } &&
8c539582 27241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27243 (eval $ac_try) 2>&5
27244 ac_status=$?
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); }; } &&
27247 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249 (eval $ac_try) 2>&5
27250 ac_status=$?
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; }; then
27253 ac_cv_func_remove=yes
27254else
27255 echo "$as_me: failed program was:" >&5
27256sed 's/^/| /' conftest.$ac_ext >&5
27257
27258ac_cv_func_remove=no
27259fi
ac1cb8d3
VS
27260rm -f conftest.err conftest.$ac_objext \
27261 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27262fi
27263echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27264echo "${ECHO_T}$ac_cv_func_remove" >&6
27265
27266 if test $ac_cv_func_remove = no; then
27267 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27268echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27269if test "${ac_cv_lib_posix_remove+set}" = set; then
27270 echo $ECHO_N "(cached) $ECHO_C" >&6
27271else
27272 ac_check_lib_save_LIBS=$LIBS
27273LIBS="-lposix $LIBS"
27274cat >conftest.$ac_ext <<_ACEOF
27275/* confdefs.h. */
27276_ACEOF
27277cat confdefs.h >>conftest.$ac_ext
27278cat >>conftest.$ac_ext <<_ACEOF
27279/* end confdefs.h. */
27280
27281/* Override any gcc2 internal prototype to avoid an error. */
27282#ifdef __cplusplus
27283extern "C"
27284#endif
27285/* We use char because int might match the return type of a gcc2
27286 builtin and then its argument prototype would still apply. */
27287char remove ();
27288int
27289main ()
27290{
27291remove ();
27292 ;
27293 return 0;
27294}
27295_ACEOF
27296rm -f conftest.$ac_objext conftest$ac_exeext
27297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27298 (eval $ac_link) 2>conftest.er1
a848cd7e 27299 ac_status=$?
ac1cb8d3
VS
27300 grep -v '^ *+' conftest.er1 >conftest.err
27301 rm -f conftest.er1
27302 cat conftest.err >&5
a848cd7e
SC
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); } &&
8c539582 27305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307 (eval $ac_try) 2>&5
27308 ac_status=$?
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); }; } &&
27311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313 (eval $ac_try) 2>&5
27314 ac_status=$?
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; }; then
27317 ac_cv_lib_posix_remove=yes
27318else
27319 echo "$as_me: failed program was:" >&5
27320sed 's/^/| /' conftest.$ac_ext >&5
27321
27322ac_cv_lib_posix_remove=no
27323fi
ac1cb8d3
VS
27324rm -f conftest.err conftest.$ac_objext \
27325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27326LIBS=$ac_check_lib_save_LIBS
27327fi
27328echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27329echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27330if test $ac_cv_lib_posix_remove = yes; then
27331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27332fi
27333
27334 fi
27335
27336 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27337 echo "$as_me:$LINENO: checking for shmat" >&5
27338echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27339if test "${ac_cv_func_shmat+set}" = set; then
27340 echo $ECHO_N "(cached) $ECHO_C" >&6
27341else
27342 cat >conftest.$ac_ext <<_ACEOF
27343/* confdefs.h. */
27344_ACEOF
27345cat confdefs.h >>conftest.$ac_ext
27346cat >>conftest.$ac_ext <<_ACEOF
27347/* end confdefs.h. */
ac1cb8d3
VS
27348/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27350#define shmat innocuous_shmat
27351
a848cd7e
SC
27352/* System header to define __stub macros and hopefully few prototypes,
27353 which can conflict with char shmat (); below.
27354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27355 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27356
a848cd7e
SC
27357#ifdef __STDC__
27358# include <limits.h>
27359#else
27360# include <assert.h>
27361#endif
ac1cb8d3
VS
27362
27363#undef shmat
27364
a848cd7e
SC
27365/* Override any gcc2 internal prototype to avoid an error. */
27366#ifdef __cplusplus
27367extern "C"
27368{
27369#endif
27370/* We use char because int might match the return type of a gcc2
27371 builtin and then its argument prototype would still apply. */
27372char shmat ();
27373/* The GNU C library defines this for functions which it implements
27374 to always fail with ENOSYS. Some functions are actually named
27375 something starting with __ and the normal name is an alias. */
27376#if defined (__stub_shmat) || defined (__stub___shmat)
27377choke me
27378#else
27379char (*f) () = shmat;
27380#endif
27381#ifdef __cplusplus
27382}
27383#endif
27384
27385int
27386main ()
27387{
27388return f != shmat;
27389 ;
27390 return 0;
27391}
27392_ACEOF
27393rm -f conftest.$ac_objext conftest$ac_exeext
27394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27395 (eval $ac_link) 2>conftest.er1
a848cd7e 27396 ac_status=$?
ac1cb8d3
VS
27397 grep -v '^ *+' conftest.er1 >conftest.err
27398 rm -f conftest.er1
27399 cat conftest.err >&5
a848cd7e
SC
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } &&
8c539582 27402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27404 (eval $ac_try) 2>&5
27405 ac_status=$?
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; } &&
27408 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27410 (eval $ac_try) 2>&5
27411 ac_status=$?
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); }; }; then
27414 ac_cv_func_shmat=yes
27415else
27416 echo "$as_me: failed program was:" >&5
27417sed 's/^/| /' conftest.$ac_ext >&5
27418
27419ac_cv_func_shmat=no
27420fi
ac1cb8d3
VS
27421rm -f conftest.err conftest.$ac_objext \
27422 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27423fi
27424echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27425echo "${ECHO_T}$ac_cv_func_shmat" >&6
27426
27427 if test $ac_cv_func_shmat = no; then
27428 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27429echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27430if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27431 echo $ECHO_N "(cached) $ECHO_C" >&6
27432else
27433 ac_check_lib_save_LIBS=$LIBS
27434LIBS="-lipc $LIBS"
27435cat >conftest.$ac_ext <<_ACEOF
27436/* confdefs.h. */
27437_ACEOF
27438cat confdefs.h >>conftest.$ac_ext
27439cat >>conftest.$ac_ext <<_ACEOF
27440/* end confdefs.h. */
27441
27442/* Override any gcc2 internal prototype to avoid an error. */
27443#ifdef __cplusplus
27444extern "C"
27445#endif
27446/* We use char because int might match the return type of a gcc2
27447 builtin and then its argument prototype would still apply. */
27448char shmat ();
27449int
27450main ()
27451{
27452shmat ();
27453 ;
27454 return 0;
27455}
27456_ACEOF
27457rm -f conftest.$ac_objext conftest$ac_exeext
27458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27459 (eval $ac_link) 2>conftest.er1
a848cd7e 27460 ac_status=$?
ac1cb8d3
VS
27461 grep -v '^ *+' conftest.er1 >conftest.err
27462 rm -f conftest.er1
27463 cat conftest.err >&5
a848cd7e
SC
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } &&
8c539582 27466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468 (eval $ac_try) 2>&5
27469 ac_status=$?
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; } &&
27472 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27474 (eval $ac_try) 2>&5
27475 ac_status=$?
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); }; }; then
27478 ac_cv_lib_ipc_shmat=yes
27479else
27480 echo "$as_me: failed program was:" >&5
27481sed 's/^/| /' conftest.$ac_ext >&5
27482
27483ac_cv_lib_ipc_shmat=no
27484fi
ac1cb8d3
VS
27485rm -f conftest.err conftest.$ac_objext \
27486 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27487LIBS=$ac_check_lib_save_LIBS
27488fi
27489echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27490echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27491if test $ac_cv_lib_ipc_shmat = yes; then
27492 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27493fi
27494
27495 fi
27496 fi
27497
27498 # Check for libraries that X11R6 Xt/Xaw programs need.
27499 ac_save_LDFLAGS=$LDFLAGS
27500 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27501 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27502 # check for ICE first), but we must link in the order -lSM -lICE or
27503 # we get undefined symbols. So assume we have SM if we have ICE.
27504 # These have to be linked with before -lX11, unlike the other
27505 # libraries we check for below, so use a different variable.
27506 # John Interrante, Karl Berry
27507 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27508echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27509if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27510 echo $ECHO_N "(cached) $ECHO_C" >&6
27511else
27512 ac_check_lib_save_LIBS=$LIBS
27513LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27514cat >conftest.$ac_ext <<_ACEOF
27515/* confdefs.h. */
27516_ACEOF
27517cat confdefs.h >>conftest.$ac_ext
27518cat >>conftest.$ac_ext <<_ACEOF
27519/* end confdefs.h. */
27520
27521/* Override any gcc2 internal prototype to avoid an error. */
27522#ifdef __cplusplus
27523extern "C"
27524#endif
27525/* We use char because int might match the return type of a gcc2
27526 builtin and then its argument prototype would still apply. */
27527char IceConnectionNumber ();
27528int
27529main ()
27530{
27531IceConnectionNumber ();
27532 ;
27533 return 0;
27534}
27535_ACEOF
27536rm -f conftest.$ac_objext conftest$ac_exeext
27537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27538 (eval $ac_link) 2>conftest.er1
a848cd7e 27539 ac_status=$?
ac1cb8d3
VS
27540 grep -v '^ *+' conftest.er1 >conftest.err
27541 rm -f conftest.er1
27542 cat conftest.err >&5
a848cd7e
SC
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); } &&
8c539582 27545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27547 (eval $ac_try) 2>&5
27548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; } &&
27551 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27553 (eval $ac_try) 2>&5
27554 ac_status=$?
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; }; then
27557 ac_cv_lib_ICE_IceConnectionNumber=yes
27558else
27559 echo "$as_me: failed program was:" >&5
27560sed 's/^/| /' conftest.$ac_ext >&5
27561
27562ac_cv_lib_ICE_IceConnectionNumber=no
27563fi
ac1cb8d3
VS
27564rm -f conftest.err conftest.$ac_objext \
27565 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27566LIBS=$ac_check_lib_save_LIBS
27567fi
27568echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27569echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27570if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27571 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27572fi
27573
27574 LDFLAGS=$ac_save_LDFLAGS
27575
27576fi
27577
27578
27579 if test "$no_x" = "yes"; then
27580 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27581echo "$as_me: error: X11 not found" >&2;}
27582 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27583 fi
27584
74b84332
VS
27585 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27586 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27587 AFMINSTALL=afminstall
27588 COMPILED_X_PROGRAM=0
27589
74b84332
VS
27590 fi
27591
27592 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27593 if test "$wxUSE_NANOX" = "yes"; then
27594 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27595echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27596 if test "x$MICROWIN" = x ; then
27597 echo "$as_me:$LINENO: result: not found" >&5
27598echo "${ECHO_T}not found" >&6
27599 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27600echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27601 { (exit 1); exit 1; }; }
27602 else
27603 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27604echo "${ECHO_T}$MICROWIN" >&6
27605 cat >>confdefs.h <<\_ACEOF
27606#define wxUSE_NANOX 1
27607_ACEOF
27608
27609 fi
27610 fi
27611
27612 if test "$wxUSE_UNICODE" = "yes"; then
27613
27614 succeeded=no
27615
27616 if test -z "$PKG_CONFIG"; then
27617 # Extract the first word of "pkg-config", so it can be a program name with args.
27618set dummy pkg-config; ac_word=$2
27619echo "$as_me:$LINENO: checking for $ac_word" >&5
27620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27621if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27622 echo $ECHO_N "(cached) $ECHO_C" >&6
27623else
27624 case $PKG_CONFIG in
27625 [\\/]* | ?:[\\/]*)
27626 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27627 ;;
27628 *)
27629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27630for as_dir in $PATH
27631do
27632 IFS=$as_save_IFS
27633 test -z "$as_dir" && as_dir=.
27634 for ac_exec_ext in '' $ac_executable_extensions; do
27635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27636 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27638 break 2
27639 fi
27640done
27641done
27642
27643 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27644 ;;
27645esac
27646fi
27647PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27648
27649if test -n "$PKG_CONFIG"; then
27650 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27651echo "${ECHO_T}$PKG_CONFIG" >&6
27652else
27653 echo "$as_me:$LINENO: result: no" >&5
27654echo "${ECHO_T}no" >&6
27655fi
27656
27657 fi
27658
27659 if test "$PKG_CONFIG" = "no" ; then
27660 echo "*** The pkg-config script could not be found. Make sure it is"
27661 echo "*** in your path, or set the PKG_CONFIG environment variable"
27662 echo "*** to the full path to pkg-config."
27663 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27664 else
27665 PKG_CONFIG_MIN_VERSION=0.9.0
27666 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27667 echo "$as_me:$LINENO: checking for pangox" >&5
27668echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27669
27670 if $PKG_CONFIG --exists "pangox" ; then
27671 echo "$as_me:$LINENO: result: yes" >&5
27672echo "${ECHO_T}yes" >&6
27673 succeeded=yes
27674
27675 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27676echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27677 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27678 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27679echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27680
27681 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27682echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27683 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27684 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27685echo "${ECHO_T}$PANGOX_LIBS" >&6
27686 else
27687 PANGOX_CFLAGS=""
27688 PANGOX_LIBS=""
27689 ## If we have a custom action on failure, don't print errors, but
27690 ## do set a variable so people can do so.
27691 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27692
27693 fi
27694
27695
27696
27697 else
27698 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27699 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27700 fi
27701 fi
27702
27703 if test $succeeded = yes; then
27704
27705 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27706 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27707
27708 else
27709
27710 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27711echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27712 { (exit 1); exit 1; }; }
27713
27714
27715 fi
27716
27717
27718 succeeded=no
27719
27720 if test -z "$PKG_CONFIG"; then
27721 # Extract the first word of "pkg-config", so it can be a program name with args.
27722set dummy pkg-config; ac_word=$2
27723echo "$as_me:$LINENO: checking for $ac_word" >&5
27724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27725if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27726 echo $ECHO_N "(cached) $ECHO_C" >&6
27727else
27728 case $PKG_CONFIG in
27729 [\\/]* | ?:[\\/]*)
27730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27731 ;;
27732 *)
27733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27734for as_dir in $PATH
27735do
27736 IFS=$as_save_IFS
27737 test -z "$as_dir" && as_dir=.
27738 for ac_exec_ext in '' $ac_executable_extensions; do
27739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27742 break 2
27743 fi
27744done
27745done
27746
27747 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27748 ;;
27749esac
27750fi
27751PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27752
27753if test -n "$PKG_CONFIG"; then
27754 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27755echo "${ECHO_T}$PKG_CONFIG" >&6
27756else
27757 echo "$as_me:$LINENO: result: no" >&5
27758echo "${ECHO_T}no" >&6
27759fi
27760
27761 fi
27762
27763 if test "$PKG_CONFIG" = "no" ; then
27764 echo "*** The pkg-config script could not be found. Make sure it is"
27765 echo "*** in your path, or set the PKG_CONFIG environment variable"
27766 echo "*** to the full path to pkg-config."
27767 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27768 else
27769 PKG_CONFIG_MIN_VERSION=0.9.0
27770 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27771 echo "$as_me:$LINENO: checking for pangoft2" >&5
27772echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27773
27774 if $PKG_CONFIG --exists "pangoft2" ; then
27775 echo "$as_me:$LINENO: result: yes" >&5
27776echo "${ECHO_T}yes" >&6
27777 succeeded=yes
27778
27779 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27780echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27781 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27782 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27783echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27784
27785 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27786echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27787 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27788 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27789echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27790 else
27791 PANGOFT2_CFLAGS=""
27792 PANGOFT2_LIBS=""
27793 ## If we have a custom action on failure, don't print errors, but
27794 ## do set a variable so people can do so.
27795 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27796
27797 fi
27798
27799
27800
27801 else
27802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27804 fi
27805 fi
27806
27807 if test $succeeded = yes; then
27808
27809 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27810 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27811
27812 else
27813
27814 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27815echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27816 wxUSE_PRINTING_ARCHITECTURE="no"
27817
27818
27819 fi
27820
27821
27822 succeeded=no
27823
27824 if test -z "$PKG_CONFIG"; then
27825 # Extract the first word of "pkg-config", so it can be a program name with args.
27826set dummy pkg-config; ac_word=$2
27827echo "$as_me:$LINENO: checking for $ac_word" >&5
27828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27829if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27830 echo $ECHO_N "(cached) $ECHO_C" >&6
27831else
27832 case $PKG_CONFIG in
27833 [\\/]* | ?:[\\/]*)
27834 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27835 ;;
27836 *)
27837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27838for as_dir in $PATH
27839do
27840 IFS=$as_save_IFS
27841 test -z "$as_dir" && as_dir=.
27842 for ac_exec_ext in '' $ac_executable_extensions; do
27843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27844 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27846 break 2
27847 fi
27848done
27849done
27850
27851 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27852 ;;
27853esac
27854fi
27855PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27856
27857if test -n "$PKG_CONFIG"; then
27858 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27859echo "${ECHO_T}$PKG_CONFIG" >&6
27860else
27861 echo "$as_me:$LINENO: result: no" >&5
27862echo "${ECHO_T}no" >&6
27863fi
27864
27865 fi
27866
27867 if test "$PKG_CONFIG" = "no" ; then
27868 echo "*** The pkg-config script could not be found. Make sure it is"
27869 echo "*** in your path, or set the PKG_CONFIG environment variable"
27870 echo "*** to the full path to pkg-config."
27871 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27872 else
27873 PKG_CONFIG_MIN_VERSION=0.9.0
27874 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27875 echo "$as_me:$LINENO: checking for pangoxft" >&5
27876echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27877
27878 if $PKG_CONFIG --exists "pangoxft" ; then
27879 echo "$as_me:$LINENO: result: yes" >&5
27880echo "${ECHO_T}yes" >&6
27881 succeeded=yes
27882
27883 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27884echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27885 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27886 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27887echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27888
27889 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27890echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27891 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27892 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27893echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27894 else
27895 PANGOXFT_CFLAGS=""
27896 PANGOXFT_LIBS=""
27897 ## If we have a custom action on failure, don't print errors, but
27898 ## do set a variable so people can do so.
27899 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27900
27901 fi
27902
27903
27904
27905 else
27906 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27907 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27908 fi
27909 fi
27910
27911 if test $succeeded = yes; then
27912
4ae1af05
MB
27913 cat >>confdefs.h <<\_ACEOF
27914#define HAVE_PANGO_XFT 1
27915_ACEOF
27916
a848cd7e
SC
27917 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27918 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27919
27920 else
27921
27922 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27923echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27924
27925
27926 fi
27927
304205f1
VS
27928 save_CFLAGS="$CFLAGS"
27929 save_LIBS="$LIBS"
27930 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27931 LIBS="$LIBS $PANGOX_LIBS"
27932
27933for ac_func in pango_font_family_is_monospace
27934do
27935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27936echo "$as_me:$LINENO: checking for $ac_func" >&5
27937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27938if eval "test \"\${$as_ac_var+set}\" = set"; then
27939 echo $ECHO_N "(cached) $ECHO_C" >&6
27940else
27941 cat >conftest.$ac_ext <<_ACEOF
27942/* confdefs.h. */
27943_ACEOF
27944cat confdefs.h >>conftest.$ac_ext
27945cat >>conftest.$ac_ext <<_ACEOF
27946/* end confdefs.h. */
27947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27949#define $ac_func innocuous_$ac_func
27950
27951/* System header to define __stub macros and hopefully few prototypes,
27952 which can conflict with char $ac_func (); below.
27953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27954 <limits.h> exists even on freestanding compilers. */
27955
27956#ifdef __STDC__
27957# include <limits.h>
27958#else
27959# include <assert.h>
27960#endif
27961
27962#undef $ac_func
27963
27964/* Override any gcc2 internal prototype to avoid an error. */
27965#ifdef __cplusplus
27966extern "C"
27967{
27968#endif
27969/* We use char because int might match the return type of a gcc2
27970 builtin and then its argument prototype would still apply. */
27971char $ac_func ();
27972/* The GNU C library defines this for functions which it implements
27973 to always fail with ENOSYS. Some functions are actually named
27974 something starting with __ and the normal name is an alias. */
27975#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27976choke me
27977#else
27978char (*f) () = $ac_func;
27979#endif
27980#ifdef __cplusplus
27981}
27982#endif
27983
27984int
27985main ()
27986{
27987return f != $ac_func;
27988 ;
27989 return 0;
27990}
27991_ACEOF
27992rm -f conftest.$ac_objext conftest$ac_exeext
27993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27994 (eval $ac_link) 2>conftest.er1
27995 ac_status=$?
27996 grep -v '^ *+' conftest.er1 >conftest.err
27997 rm -f conftest.er1
27998 cat conftest.err >&5
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); } &&
8c539582 28001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
28002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28003 (eval $ac_try) 2>&5
28004 ac_status=$?
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); }; } &&
28007 { ac_try='test -s conftest$ac_exeext'
28008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28009 (eval $ac_try) 2>&5
28010 ac_status=$?
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); }; }; then
28013 eval "$as_ac_var=yes"
28014else
28015 echo "$as_me: failed program was:" >&5
28016sed 's/^/| /' conftest.$ac_ext >&5
28017
28018eval "$as_ac_var=no"
28019fi
28020rm -f conftest.err conftest.$ac_objext \
28021 conftest$ac_exeext conftest.$ac_ext
28022fi
28023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28024echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28025if test `eval echo '${'$as_ac_var'}'` = yes; then
28026 cat >>confdefs.h <<_ACEOF
28027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28028_ACEOF
28029
28030fi
28031done
28032
28033 CFLAGS="$save_CFLAGS"
28034 LIBS="$save_LIBS"
a848cd7e
SC
28035 fi
28036
28037 wxUSE_UNIVERSAL="yes"
28038
28039 if test "$wxUSE_NANOX" = "yes"; then
28040 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28041 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"
28042 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28043 else
28044 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28045 fi
28046
a848cd7e
SC
28047 TOOLKIT=X11
28048 GUIDIST=X11_DIST
28049 fi
28050
28051 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28052 if test "$wxUSE_UNICODE" = "yes"; then
28053 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28054echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28055 { (exit 1); exit 1; }; }
28056 fi
28057
74b84332
VS
28058 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28059echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28060
74b84332
VS
28061ac_find_includes=
28062for ac_dir in $SEARCH_INCLUDE /usr/include;
28063 do
28064 if test -f "$ac_dir/Xm/Xm.h"; then
28065 ac_find_includes=$ac_dir
28066 break
28067 fi
28068 done
a848cd7e 28069
74b84332
VS
28070 if test "$ac_find_includes" != "" ; then
28071 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28072echo "${ECHO_T}found in $ac_find_includes" >&6
28073
28074 if test "x$ac_find_includes" = "x/usr/include"; then
28075 ac_path_to_include=""
28076 else
28077 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28078 result=$?
28079 if test $result = 0; then
28080 ac_path_to_include=""
28081 else
28082 ac_path_to_include=" -I$ac_find_includes"
28083 fi
a848cd7e
SC
28084 fi
28085
74b84332
VS
28086 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28087 else
28088 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28089/* confdefs.h. */
28090_ACEOF
28091cat confdefs.h >>conftest.$ac_ext
28092cat >>conftest.$ac_ext <<_ACEOF
28093/* end confdefs.h. */
28094
74b84332
VS
28095 #include <Xm/Xm.h>
28096
a848cd7e
SC
28097int
28098main ()
28099{
28100
74b84332
VS
28101 int version;
28102 version = xmUseVersion;
28103
a848cd7e
SC
28104 ;
28105 return 0;
28106}
28107_ACEOF
74b84332
VS
28108rm -f conftest.$ac_objext
28109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28110 (eval $ac_compile) 2>conftest.er1
a848cd7e 28111 ac_status=$?
ac1cb8d3
VS
28112 grep -v '^ *+' conftest.er1 >conftest.err
28113 rm -f conftest.er1
28114 cat conftest.err >&5
a848cd7e
SC
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); } &&
8c539582 28117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28119 (eval $ac_try) 2>&5
28120 ac_status=$?
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); }; } &&
74b84332 28123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28125 (eval $ac_try) 2>&5
28126 ac_status=$?
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); }; }; then
74b84332
VS
28129
28130 echo "$as_me:$LINENO: result: found in default search path" >&5
28131echo "${ECHO_T}found in default search path" >&6
28132 COMPILED_X_PROGRAM=1
28133
a848cd7e
SC
28134else
28135 echo "$as_me: failed program was:" >&5
28136sed 's/^/| /' conftest.$ac_ext >&5
28137
a848cd7e 28138
74b84332
VS
28139 echo "$as_me:$LINENO: result: no" >&5
28140echo "${ECHO_T}no" >&6
28141 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
28142echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
28143 { (exit 1); exit 1; }; }
a848cd7e 28144
a848cd7e 28145
a848cd7e 28146fi
74b84332
VS
28147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28148 fi
28149
28150 if test "$COMPILED_X_PROGRAM" = 0; then
28151 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
28152echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28153
28154ac_find_libraries=
28155for ac_dir in $SEARCH_LIB /usr/lib;
28156 do
28157 for ac_extension in a so sl dylib; do
28158 if test -f "$ac_dir/libXm.$ac_extension"; then
28159 ac_find_libraries=$ac_dir
28160 break 2
a848cd7e 28161 fi
74b84332
VS
28162 done
28163 done
a848cd7e 28164
74b84332
VS
28165 if test "$ac_find_libraries" != "" ; then
28166 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28167echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 28168
74b84332
VS
28169
28170 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28171 result=$?
28172 if test $result = 0; then
28173 ac_path_to_link=""
a848cd7e 28174 else
74b84332
VS
28175 ac_path_to_link=" -L$ac_find_libraries"
28176 fi
28177
28178 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28179 else
28180 save_CFLAGS=$CFLAGS
28181 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28182
28183 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28184/* confdefs.h. */
28185_ACEOF
28186cat confdefs.h >>conftest.$ac_ext
28187cat >>conftest.$ac_ext <<_ACEOF
28188/* end confdefs.h. */
28189
74b84332
VS
28190 #include <Xm/Xm.h>
28191
a848cd7e
SC
28192int
28193main ()
28194{
74b84332
VS
28195
28196 int version;
28197 version = xmUseVersion;
28198
a848cd7e
SC
28199 ;
28200 return 0;
28201}
28202_ACEOF
74b84332
VS
28203rm -f conftest.$ac_objext
28204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28205 (eval $ac_compile) 2>conftest.er1
a848cd7e 28206 ac_status=$?
ac1cb8d3
VS
28207 grep -v '^ *+' conftest.er1 >conftest.err
28208 rm -f conftest.er1
28209 cat conftest.err >&5
a848cd7e
SC
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); } &&
8c539582 28212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28214 (eval $ac_try) 2>&5
28215 ac_status=$?
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); }; } &&
74b84332 28218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28220 (eval $ac_try) 2>&5
28221 ac_status=$?
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); }; }; then
74b84332
VS
28224
28225 echo "$as_me:$LINENO: result: found in default search path" >&5
28226echo "${ECHO_T}found in default search path" >&6
28227 COMPILED_X_PROGRAM=1
28228
a848cd7e
SC
28229else
28230 echo "$as_me: failed program was:" >&5
28231sed 's/^/| /' conftest.$ac_ext >&5
28232
74b84332
VS
28233
28234 echo "$as_me:$LINENO: result: no" >&5
28235echo "${ECHO_T}no" >&6
28236 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28237echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28238 { (exit 1); exit 1; }; }
28239
28240
28241fi
28242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28243
28244 CFLAGS=$save_CFLAGS
28245 fi
28246 fi
28247
28248 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28249echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28250 libp_link=""
28251 libsm_ice_link=""
28252 libs_found=0
28253 for libp in "" " -lXp"; do
28254 if test "$libs_found" = "0"; then
28255 for libsm_ice in "" " -lSM -lICE"; do
28256 if test "$libs_found" = "0"; then
28257 save_LIBS="$LIBS"
28258 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28259 save_CFLAGS=$CFLAGS
28260 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28261
28262 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28263/* confdefs.h. */
28264_ACEOF
28265cat confdefs.h >>conftest.$ac_ext
28266cat >>conftest.$ac_ext <<_ACEOF
28267/* end confdefs.h. */
28268
74b84332
VS
28269 #include <Xm/Xm.h>
28270 #include <Xm/List.h>
28271
a848cd7e
SC
28272int
28273main ()
28274{
74b84332
VS
28275
28276 XmString string = NULL;
28277 Widget w = NULL;
28278 int position = 0;
28279 XmListAddItem(w, string, position);
28280
a848cd7e
SC
28281 ;
28282 return 0;
28283}
28284_ACEOF
28285rm -f conftest.$ac_objext conftest$ac_exeext
28286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28287 (eval $ac_link) 2>conftest.er1
a848cd7e 28288 ac_status=$?
ac1cb8d3
VS
28289 grep -v '^ *+' conftest.er1 >conftest.err
28290 rm -f conftest.er1
28291 cat conftest.err >&5
a848cd7e
SC
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); } &&
8c539582 28294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296 (eval $ac_try) 2>&5
28297 ac_status=$?
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; } &&
28300 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28302 (eval $ac_try) 2>&5
28303 ac_status=$?
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); }; }; then
28306
28307 libp_link="$libp"
28308 libsm_ice_link="$libsm_ice"
28309 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28310echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28311 libs_found=1
28312
28313else
28314 echo "$as_me: failed program was:" >&5
28315sed 's/^/| /' conftest.$ac_ext >&5
28316
28317
28318
28319fi
ac1cb8d3
VS
28320rm -f conftest.err conftest.$ac_objext \
28321 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28322
28323 LIBS="$save_LIBS"
28324 CFLAGS=$save_CFLAGS
28325 fi
28326 done
28327 fi
28328 done
28329
28330 if test "$libs_found" = "0"; then
28331 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28332echo "${ECHO_T}can't find the right libraries" >&6
28333 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28334echo "$as_me: error: can't link a simple motif program" >&2;}
28335 { (exit 1); exit 1; }; }
28336 fi
28337
28338 save_CFLAGS=$CFLAGS
28339 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28340 echo "$as_me:$LINENO: checking for Motif 2" >&5
28341echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28342 cat >conftest.$ac_ext <<_ACEOF
28343/* confdefs.h. */
28344_ACEOF
28345cat confdefs.h >>conftest.$ac_ext
28346cat >>conftest.$ac_ext <<_ACEOF
28347/* end confdefs.h. */
28348
28349 #include <Xm/Xm.h>
28350
28351int
28352main ()
28353{
28354
28355 #if XmVersion < 2000
28356 #error "Not Motif 2"
28357 #endif
28358
28359 ;
28360 return 0;
28361}
28362_ACEOF
28363rm -f conftest.$ac_objext
28364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28365 (eval $ac_compile) 2>conftest.er1
a848cd7e 28366 ac_status=$?
ac1cb8d3
VS
28367 grep -v '^ *+' conftest.er1 >conftest.err
28368 rm -f conftest.er1
28369 cat conftest.err >&5
a848cd7e
SC
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); } &&
8c539582 28372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374 (eval $ac_try) 2>&5
28375 ac_status=$?
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; } &&
28378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28380 (eval $ac_try) 2>&5
28381 ac_status=$?
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); }; }; then
28384
28385 cat >>confdefs.h <<\_ACEOF
28386#define __WXMOTIF20__ 1
28387_ACEOF
28388
28389 echo "$as_me:$LINENO: result: found" >&5
28390echo "${ECHO_T}found" >&6
28391
28392else
28393 echo "$as_me: failed program was:" >&5
28394sed 's/^/| /' conftest.$ac_ext >&5
28395
28396
28397 cat >>confdefs.h <<\_ACEOF
28398#define __WXMOTIF20__ 0
28399_ACEOF
28400
28401 echo "$as_me:$LINENO: result: not found" >&5
28402echo "${ECHO_T}not found" >&6
28403
28404fi
ac1cb8d3 28405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28406 CFLAGS=$save_CFLAGS
28407
28408 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28409 TOOLKIT=MOTIF
28410 GUIDIST=MOTIF_DIST
28411 fi
28412
74b84332 28413 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28414 if test "$wxUSE_LIBXPM" = "sys"; then
28415 echo "$as_me:$LINENO: checking for Xpm library" >&5
28416echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28417
28418ac_find_libraries=
28419for ac_dir in $SEARCH_LIB /usr/lib;
28420 do
28421 for ac_extension in a so sl dylib; do
28422 if test -f "$ac_dir/libXpm.$ac_extension"; then
28423 ac_find_libraries=$ac_dir
28424 break 2
28425 fi
28426 done
28427 done
28428
28429 if test "$ac_find_libraries" != "" ; then
28430
28431 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28432 result=$?
28433 if test $result = 0; then
28434 ac_path_to_link=""
28435 else
28436 ac_path_to_link=" -L$ac_find_libraries"
28437 fi
28438
28439 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28440 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28441echo "${ECHO_T}found at $ac_find_libraries" >&6
28442
28443 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28444echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28445if test "${wx_cv_x11_xpm_h+set}" = set; then
28446 echo $ECHO_N "(cached) $ECHO_C" >&6
28447else
28448
28449 save_CFLAGS=$CFLAGS
28450 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28451
28452 cat >conftest.$ac_ext <<_ACEOF
28453/* confdefs.h. */
28454_ACEOF
28455cat confdefs.h >>conftest.$ac_ext
28456cat >>conftest.$ac_ext <<_ACEOF
28457/* end confdefs.h. */
28458
28459 #include <X11/xpm.h>
28460
28461int
28462main ()
28463{
28464
28465 int version;
28466 version = XpmLibraryVersion();
28467
28468 ;
28469 return 0;
28470}
28471_ACEOF
28472rm -f conftest.$ac_objext
28473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28474 (eval $ac_compile) 2>conftest.er1
a848cd7e 28475 ac_status=$?
ac1cb8d3
VS
28476 grep -v '^ *+' conftest.er1 >conftest.err
28477 rm -f conftest.er1
28478 cat conftest.err >&5
a848cd7e
SC
28479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 (exit $ac_status); } &&
8c539582 28481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28483 (eval $ac_try) 2>&5
28484 ac_status=$?
28485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486 (exit $ac_status); }; } &&
28487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28489 (eval $ac_try) 2>&5
28490 ac_status=$?
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); }; }; then
28493 wx_cv_x11_xpm_h=yes
28494else
28495 echo "$as_me: failed program was:" >&5
28496sed 's/^/| /' conftest.$ac_ext >&5
28497
28498wx_cv_x11_xpm_h=no
28499
28500fi
ac1cb8d3 28501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28502
28503 CFLAGS=$save_CFLAGS
28504
28505
28506fi
28507echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28508echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28509
28510 if test $wx_cv_x11_xpm_h = "yes"; then
28511 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28512 cat >>confdefs.h <<\_ACEOF
28513#define wxHAVE_LIB_XPM 1
28514_ACEOF
28515
28516 else
28517 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28518echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28519 fi
28520 fi
28521
28522 fi
28523
28524 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28525echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28526if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28527 echo $ECHO_N "(cached) $ECHO_C" >&6
28528else
28529 ac_check_lib_save_LIBS=$LIBS
28530LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28531cat >conftest.$ac_ext <<_ACEOF
28532/* confdefs.h. */
28533_ACEOF
28534cat confdefs.h >>conftest.$ac_ext
28535cat >>conftest.$ac_ext <<_ACEOF
28536/* end confdefs.h. */
28537
28538/* Override any gcc2 internal prototype to avoid an error. */
28539#ifdef __cplusplus
28540extern "C"
28541#endif
28542/* We use char because int might match the return type of a gcc2
28543 builtin and then its argument prototype would still apply. */
28544char XShapeQueryExtension ();
28545int
28546main ()
28547{
28548XShapeQueryExtension ();
28549 ;
28550 return 0;
28551}
28552_ACEOF
28553rm -f conftest.$ac_objext conftest$ac_exeext
28554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28555 (eval $ac_link) 2>conftest.er1
a848cd7e 28556 ac_status=$?
ac1cb8d3
VS
28557 grep -v '^ *+' conftest.er1 >conftest.err
28558 rm -f conftest.er1
28559 cat conftest.err >&5
a848cd7e
SC
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); } &&
8c539582 28562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564 (eval $ac_try) 2>&5
28565 ac_status=$?
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; } &&
28568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570 (eval $ac_try) 2>&5
28571 ac_status=$?
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; }; then
28574 ac_cv_lib_Xext_XShapeQueryExtension=yes
28575else
28576 echo "$as_me: failed program was:" >&5
28577sed 's/^/| /' conftest.$ac_ext >&5
28578
28579ac_cv_lib_Xext_XShapeQueryExtension=no
28580fi
ac1cb8d3
VS
28581rm -f conftest.err conftest.$ac_objext \
28582 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28583LIBS=$ac_check_lib_save_LIBS
28584fi
28585echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28586echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28587if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28588
28589 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28590 wxHAVE_XEXT_LIB=1
28591
28592fi
28593
28594
28595 if test "$wxHAVE_XEXT_LIB" = 1; then
28596 save_CFLAGS="$CFLAGS"
28597 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28598
28599 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28600echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28601 cat >conftest.$ac_ext <<_ACEOF
28602/* confdefs.h. */
28603_ACEOF
28604cat confdefs.h >>conftest.$ac_ext
28605cat >>conftest.$ac_ext <<_ACEOF
28606/* end confdefs.h. */
28607
28608 #include <X11/Xlib.h>
28609 #include <X11/extensions/shape.h>
28610
28611int
28612main ()
28613{
28614
28615 int dummy1, dummy2;
28616 XShapeQueryExtension((Display*)NULL,
28617 (int*)NULL, (int*)NULL);
28618
28619 ;
28620 return 0;
28621}
28622_ACEOF
28623rm -f conftest.$ac_objext
28624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28625 (eval $ac_compile) 2>conftest.er1
a848cd7e 28626 ac_status=$?
ac1cb8d3
VS
28627 grep -v '^ *+' conftest.er1 >conftest.err
28628 rm -f conftest.er1
28629 cat conftest.err >&5
a848cd7e
SC
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); } &&
8c539582 28632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28634 (eval $ac_try) 2>&5
28635 ac_status=$?
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); }; } &&
28638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640 (eval $ac_try) 2>&5
28641 ac_status=$?
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; }; then
28644
28645 cat >>confdefs.h <<\_ACEOF
28646#define HAVE_XSHAPE 1
28647_ACEOF
28648
28649 echo "$as_me:$LINENO: result: found" >&5
28650echo "${ECHO_T}found" >&6
28651
28652else
28653 echo "$as_me: failed program was:" >&5
28654sed 's/^/| /' conftest.$ac_ext >&5
28655
28656
28657 echo "$as_me:$LINENO: result: not found" >&5
28658echo "${ECHO_T}not found" >&6
28659
28660fi
ac1cb8d3 28661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28662 CFLAGS="$save_CFLAGS"
28663
28664 fi
28665 fi
28666
28667 if test "$wxUSE_MAC" = 1; then
28668 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28669echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28670 if test "$GCC" = yes; then
28671 echo "$as_me:$LINENO: result: gcc" >&5
28672echo "${ECHO_T}gcc" >&6
28673 CPPFLAGS_PASCAL="-fpascal-strings"
28674 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28675 echo "$as_me:$LINENO: result: xlc" >&5
28676echo "${ECHO_T}xlc" >&6
28677 CPPFLAGS_PASCAL="-qmacpstr"
28678 else
28679 echo "$as_me:$LINENO: result: none" >&5
28680echo "${ECHO_T}none" >&6
28681 fi
28682
1e9e8aba
DE
28683 if test "x$wxUSE_UNIX" = "xyes"; then
28684 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28685 else
28686 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28687 fi
a848cd7e 28688
a848cd7e
SC
28689 TOOLKIT=MAC
28690 GUIDIST=MACX_DIST
dd21ced8 28691 WXBASEPORT="_carbon"
a848cd7e
SC
28692 fi
28693
28694 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28695 TOOLKIT=COCOA
28696 GUIDIST=COCOA_DIST
28697 fi
28698
28699 if test "$wxUSE_PM" = 1; then
28700 TOOLKIT=PM
de59c161
RD
28701 GUIDIST=PM_DIST
28702 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28703echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28704if test "${wx_cv_spbcdata+set}" = set; then
28705 echo $ECHO_N "(cached) $ECHO_C" >&6
28706else
28707
28708 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28709/* confdefs.h. */
28710_ACEOF
28711cat confdefs.h >>conftest.$ac_ext
28712cat >>conftest.$ac_ext <<_ACEOF
28713/* end confdefs.h. */
28714
28715 #define INCL_PM
28716 #include <os2.h>
28717
28718int
28719main ()
28720{
28721
28722 SPBCDATA test;
28723
28724 ;
28725 return 0;
28726}
28727_ACEOF
28728rm -f conftest.$ac_objext
28729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28730 (eval $ac_compile) 2>conftest.er1
de59c161 28731 ac_status=$?
ac1cb8d3
VS
28732 grep -v '^ *+' conftest.er1 >conftest.err
28733 rm -f conftest.er1
28734 cat conftest.err >&5
de59c161
RD
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); } &&
8c539582 28737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739 (eval $ac_try) 2>&5
28740 ac_status=$?
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; } &&
28743 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745 (eval $ac_try) 2>&5
28746 ac_status=$?
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); }; }; then
28749 wx_cv_spbcdata=yes
28750else
28751 echo "$as_me: failed program was:" >&5
28752sed 's/^/| /' conftest.$ac_ext >&5
28753
28754wx_cv_spbcdata=no
28755
28756fi
ac1cb8d3 28757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28758
28759
28760fi
28761echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28762echo "${ECHO_T}$wx_cv_spbcdata" >&6
28763
28764 if test $wx_cv_spbcdata = "yes"; then
28765 cat >>confdefs.h <<\_ACEOF
28766#define HAVE_SPBCDATA 1
28767_ACEOF
28768
28769 fi
a848cd7e
SC
28770 fi
28771
28772 if test "$TOOLKIT" = "PM" ; then
28773 TOOLKIT_DIR="os2"
28774 else
28775 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28776 fi
28777
a848cd7e 28778 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28779 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28780 WIDGET_SET=univ
a848cd7e
SC
28781 fi
28782
28783 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28784 DISTDIR="wx\$(TOOLKIT)"
28785else
28786 USE_GUI=0
28787
28788 TOOLKIT_DIR="base"
28789
28790 if test "$USE_WIN32" = 1 ; then
a848cd7e 28791 TOOLKIT="MSW"
a848cd7e
SC
28792 fi
28793
a848cd7e
SC
28794 GUIDIST="BASE_DIST"
28795 DISTDIR="wxBase"
28796fi
28797
28798
28799
28800
28801IODBC_C_SRC=""
28802
28803
28804if test "$TOOLKIT" != "MSW" ; then
28805
28806 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28807
28808 if test "${ac_cv_header_sql_h+set}" = set; then
28809 echo "$as_me:$LINENO: checking for sql.h" >&5
28810echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28811if test "${ac_cv_header_sql_h+set}" = set; then
28812 echo $ECHO_N "(cached) $ECHO_C" >&6
28813fi
28814echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28815echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28816else
28817 # Is the header compilable?
28818echo "$as_me:$LINENO: checking sql.h usability" >&5
28819echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28820cat >conftest.$ac_ext <<_ACEOF
28821/* confdefs.h. */
28822_ACEOF
28823cat confdefs.h >>conftest.$ac_ext
28824cat >>conftest.$ac_ext <<_ACEOF
28825/* end confdefs.h. */
28826$ac_includes_default
28827#include <sql.h>
28828_ACEOF
28829rm -f conftest.$ac_objext
28830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28831 (eval $ac_compile) 2>conftest.er1
a848cd7e 28832 ac_status=$?
ac1cb8d3
VS
28833 grep -v '^ *+' conftest.er1 >conftest.err
28834 rm -f conftest.er1
28835 cat conftest.err >&5
a848cd7e
SC
28836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 (exit $ac_status); } &&
8c539582 28838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28840 (eval $ac_try) 2>&5
28841 ac_status=$?
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); }; } &&
28844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846 (eval $ac_try) 2>&5
28847 ac_status=$?
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); }; }; then
28850 ac_header_compiler=yes
28851else
28852 echo "$as_me: failed program was:" >&5
28853sed 's/^/| /' conftest.$ac_ext >&5
28854
28855ac_header_compiler=no
28856fi
ac1cb8d3 28857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28859echo "${ECHO_T}$ac_header_compiler" >&6
28860
28861# Is the header present?
28862echo "$as_me:$LINENO: checking sql.h presence" >&5
28863echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28864cat >conftest.$ac_ext <<_ACEOF
28865/* confdefs.h. */
28866_ACEOF
28867cat confdefs.h >>conftest.$ac_ext
28868cat >>conftest.$ac_ext <<_ACEOF
28869/* end confdefs.h. */
28870#include <sql.h>
28871_ACEOF
28872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28874 ac_status=$?
28875 grep -v '^ *+' conftest.er1 >conftest.err
28876 rm -f conftest.er1
28877 cat conftest.err >&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } >/dev/null; then
28880 if test -s conftest.err; then
28881 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28883 else
28884 ac_cpp_err=
28885 fi
28886else
28887 ac_cpp_err=yes
28888fi
28889if test -z "$ac_cpp_err"; then
28890 ac_header_preproc=yes
28891else
28892 echo "$as_me: failed program was:" >&5
28893sed 's/^/| /' conftest.$ac_ext >&5
28894
28895 ac_header_preproc=no
28896fi
28897rm -f conftest.err conftest.$ac_ext
28898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28899echo "${ECHO_T}$ac_header_preproc" >&6
28900
28901# So? What about this header?
ac1cb8d3
VS
28902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28903 yes:no: )
a848cd7e
SC
28904 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28905echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28906 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28907echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28908 ac_header_preproc=yes
a848cd7e 28909 ;;
ac1cb8d3 28910 no:yes:* )
a848cd7e
SC
28911 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28912echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28913 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28914echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28915 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28916echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28917 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28918echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28919 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28920echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28921 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28922echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28923 (
28924 cat <<\_ASBOX
ac1cb8d3
VS
28925## ----------------------------------------- ##
28926## Report this to wx-dev@lists.wxwidgets.org ##
28927## ----------------------------------------- ##
a848cd7e
SC
28928_ASBOX
28929 ) |
28930 sed "s/^/$as_me: WARNING: /" >&2
28931 ;;
28932esac
28933echo "$as_me:$LINENO: checking for sql.h" >&5
28934echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28935if test "${ac_cv_header_sql_h+set}" = set; then
28936 echo $ECHO_N "(cached) $ECHO_C" >&6
28937else
28938 ac_cv_header_sql_h=$ac_header_preproc
28939fi
28940echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28941echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28942
28943fi
28944if test $ac_cv_header_sql_h = yes; then
28945 found_sql_h=1
28946fi
28947
28948
28949 if test "x$found_sql_h" = "x1" ; then
28950 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28951echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28952if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28953 echo $ECHO_N "(cached) $ECHO_C" >&6
28954else
28955 ac_check_lib_save_LIBS=$LIBS
28956LIBS="-liodbc $LIBS"
28957cat >conftest.$ac_ext <<_ACEOF
28958/* confdefs.h. */
28959_ACEOF
28960cat confdefs.h >>conftest.$ac_ext
28961cat >>conftest.$ac_ext <<_ACEOF
28962/* end confdefs.h. */
28963
28964/* Override any gcc2 internal prototype to avoid an error. */
28965#ifdef __cplusplus
28966extern "C"
28967#endif
28968/* We use char because int might match the return type of a gcc2
28969 builtin and then its argument prototype would still apply. */
28970char SQLAllocEnv ();
28971int
28972main ()
28973{
28974SQLAllocEnv ();
28975 ;
28976 return 0;
28977}
28978_ACEOF
28979rm -f conftest.$ac_objext conftest$ac_exeext
28980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28981 (eval $ac_link) 2>conftest.er1
a848cd7e 28982 ac_status=$?
ac1cb8d3
VS
28983 grep -v '^ *+' conftest.er1 >conftest.err
28984 rm -f conftest.er1
28985 cat conftest.err >&5
a848cd7e
SC
28986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); } &&
8c539582 28988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28990 (eval $ac_try) 2>&5
28991 ac_status=$?
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); }; } &&
28994 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996 (eval $ac_try) 2>&5
28997 ac_status=$?
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); }; }; then
29000 ac_cv_lib_iodbc_SQLAllocEnv=yes
29001else
29002 echo "$as_me: failed program was:" >&5
29003sed 's/^/| /' conftest.$ac_ext >&5
29004
29005ac_cv_lib_iodbc_SQLAllocEnv=no
29006fi
ac1cb8d3
VS
29007rm -f conftest.err conftest.$ac_objext \
29008 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29009LIBS=$ac_check_lib_save_LIBS
29010fi
29011echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29012echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29013if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29014 ODBC_LINK=" -liodbc"
29015else
29016
29017 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29018echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29019if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29020 echo $ECHO_N "(cached) $ECHO_C" >&6
29021else
29022 ac_check_lib_save_LIBS=$LIBS
29023LIBS="-lunixodbc $LIBS"
29024cat >conftest.$ac_ext <<_ACEOF
29025/* confdefs.h. */
29026_ACEOF
29027cat confdefs.h >>conftest.$ac_ext
29028cat >>conftest.$ac_ext <<_ACEOF
29029/* end confdefs.h. */
29030
29031/* Override any gcc2 internal prototype to avoid an error. */
29032#ifdef __cplusplus
29033extern "C"
29034#endif
29035/* We use char because int might match the return type of a gcc2
29036 builtin and then its argument prototype would still apply. */
29037char SQLAllocEnv ();
29038int
29039main ()
29040{
29041SQLAllocEnv ();
29042 ;
29043 return 0;
29044}
29045_ACEOF
29046rm -f conftest.$ac_objext conftest$ac_exeext
29047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29048 (eval $ac_link) 2>conftest.er1
a848cd7e 29049 ac_status=$?
ac1cb8d3
VS
29050 grep -v '^ *+' conftest.er1 >conftest.err
29051 rm -f conftest.er1
29052 cat conftest.err >&5
a848cd7e
SC
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); } &&
8c539582 29055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29057 (eval $ac_try) 2>&5
29058 ac_status=$?
29059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); }; } &&
29061 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29063 (eval $ac_try) 2>&5
29064 ac_status=$?
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); }; }; then
29067 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29068else
29069 echo "$as_me: failed program was:" >&5
29070sed 's/^/| /' conftest.$ac_ext >&5
29071
29072ac_cv_lib_unixodbc_SQLAllocEnv=no
29073fi
ac1cb8d3
VS
29074rm -f conftest.err conftest.$ac_objext \
29075 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29076LIBS=$ac_check_lib_save_LIBS
29077fi
29078echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29079echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29080if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29081 ODBC_LINK=" -lunixodbc"
29082else
29083
29084 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29085echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29086if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29087 echo $ECHO_N "(cached) $ECHO_C" >&6
29088else
29089 ac_check_lib_save_LIBS=$LIBS
29090LIBS="-lodbc $LIBS"
29091cat >conftest.$ac_ext <<_ACEOF
29092/* confdefs.h. */
29093_ACEOF
29094cat confdefs.h >>conftest.$ac_ext
29095cat >>conftest.$ac_ext <<_ACEOF
29096/* end confdefs.h. */
29097
29098/* Override any gcc2 internal prototype to avoid an error. */
29099#ifdef __cplusplus
29100extern "C"
29101#endif
29102/* We use char because int might match the return type of a gcc2
29103 builtin and then its argument prototype would still apply. */
29104char SQLAllocEnv ();
29105int
29106main ()
29107{
29108SQLAllocEnv ();
29109 ;
29110 return 0;
29111}
29112_ACEOF
29113rm -f conftest.$ac_objext conftest$ac_exeext
29114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29115 (eval $ac_link) 2>conftest.er1
a848cd7e 29116 ac_status=$?
ac1cb8d3
VS
29117 grep -v '^ *+' conftest.er1 >conftest.err
29118 rm -f conftest.er1
29119 cat conftest.err >&5
a848cd7e
SC
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); } &&
8c539582 29122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29124 (eval $ac_try) 2>&5
29125 ac_status=$?
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; } &&
29128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29130 (eval $ac_try) 2>&5
29131 ac_status=$?
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; }; then
29134 ac_cv_lib_odbc_SQLAllocEnv=yes
29135else
29136 echo "$as_me: failed program was:" >&5
29137sed 's/^/| /' conftest.$ac_ext >&5
29138
29139ac_cv_lib_odbc_SQLAllocEnv=no
29140fi
ac1cb8d3
VS
29141rm -f conftest.err conftest.$ac_objext \
29142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29143LIBS=$ac_check_lib_save_LIBS
29144fi
29145echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29146echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29147if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29148 ODBC_LINK=" -lodbc"
29149fi
29150
29151
29152fi
29153
29154
29155fi
29156
29157 fi
29158 if test "x$ODBC_LINK" = "x" ; then
29159 if test "$wxUSE_ODBC" = "sys" ; then
29160 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29161echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29162 { (exit 1); exit 1; }; }
29163 else
29164 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29165echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29166 wxUSE_ODBC=builtin
29167 fi
29168 else
29169 wxUSE_ODBC=sys
29170 fi
29171 fi
a848cd7e 29172
2da0c077
RD
29173 if test "$wxUSE_ODBC" = "builtin" ; then
29174 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29175#define wxUSE_BUILTIN_IODBC 1
29176_ACEOF
29177
a848cd7e
SC
29178 fi
29179fi
29180
2da0c077
RD
29181if test "$wxUSE_ODBC" != "no" ; then
29182 cat >>confdefs.h <<\_ACEOF
29183#define wxUSE_ODBC 1
29184_ACEOF
29185
29186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29187
29188 WXODBCFLAG="-D_IODBC_"
29189fi
a848cd7e 29190
01cb68df 29191
a848cd7e 29192if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29193 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29194 echo "$as_me:$LINENO: checking for Xinerama" >&5
29195echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29196
29197ac_find_libraries=
29198for ac_dir in $SEARCH_LIB /usr/lib;
29199 do
29200 for ac_extension in a so sl dylib; do
29201 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29202 ac_find_libraries=$ac_dir
29203 break 2
29204 fi
29205 done
29206 done
29207
29208 if test "$ac_find_libraries" != "" ; then
29209
29210 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29211 result=$?
29212 if test $result = 0; then
29213 ac_path_to_link=""
29214 else
29215 ac_path_to_link=" -L$ac_find_libraries"
29216 fi
29217
29218 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29219 LDFLAGS="$LDFLAGS $ac_path_to_link"
29220 fi
29221 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29222 echo "$as_me:$LINENO: result: yes" >&5
29223echo "${ECHO_T}yes" >&6
29224
29225 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29226echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29227
29228ac_find_libraries=
29229for ac_dir in $SEARCH_LIB /usr/lib;
29230 do
29231 for ac_extension in a so sl dylib; do
29232 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29233 ac_find_libraries=$ac_dir
29234 break 2
29235 fi
29236 done
29237 done
29238
29239 if test "$ac_find_libraries" != "" ; then
29240 echo "$as_me:$LINENO: result: yes" >&5
29241echo "${ECHO_T}yes" >&6
29242
29243for ac_header in X11/extensions/xf86vmode.h
29244do
29245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29246echo "$as_me:$LINENO: checking for $ac_header" >&5
29247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29248if eval "test \"\${$as_ac_Header+set}\" = set"; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29250else
29251 cat >conftest.$ac_ext <<_ACEOF
29252/* confdefs.h. */
29253_ACEOF
29254cat confdefs.h >>conftest.$ac_ext
29255cat >>conftest.$ac_ext <<_ACEOF
29256/* end confdefs.h. */
29257
29258 #if HAVE_X11_XLIB_H
29259 #include <X11/Xlib.h>
29260 #endif
29261
29262
29263#include <$ac_header>
29264_ACEOF
29265rm -f conftest.$ac_objext
29266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29267 (eval $ac_compile) 2>conftest.er1
a848cd7e 29268 ac_status=$?
ac1cb8d3
VS
29269 grep -v '^ *+' conftest.er1 >conftest.err
29270 rm -f conftest.er1
29271 cat conftest.err >&5
a848cd7e
SC
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); } &&
8c539582 29274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276 (eval $ac_try) 2>&5
29277 ac_status=$?
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); }; } &&
29280 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282 (eval $ac_try) 2>&5
29283 ac_status=$?
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; }; then
29286 eval "$as_ac_Header=yes"
29287else
29288 echo "$as_me: failed program was:" >&5
29289sed 's/^/| /' conftest.$ac_ext >&5
29290
29291eval "$as_ac_Header=no"
29292fi
ac1cb8d3 29293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29294fi
29295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29297if test `eval echo '${'$as_ac_Header'}'` = yes; then
29298 cat >>confdefs.h <<_ACEOF
29299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29300_ACEOF
29301
29302 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29303
29304fi
29305
29306done
29307
29308 else
29309 echo "$as_me:$LINENO: result: no" >&5
29310echo "${ECHO_T}no" >&6
29311 fi
29312
29313 else
29314 echo "$as_me:$LINENO: result: no" >&5
29315echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29316 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29317echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29318 wxUSE_DISPLAY="no"
29319 fi
01cb68df
RG
29320 elif test "$wxUSE_MSW" = 1; then
29321
29322
29323for ac_header in multimon.h ddraw.h
29324do
29325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29326echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29328if eval "test \"\${$as_ac_Header+set}\" = set"; then
29329 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29330else
5294a27e 29331 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29332/* confdefs.h. */
29333_ACEOF
29334cat confdefs.h >>conftest.$ac_ext
29335cat >>conftest.$ac_ext <<_ACEOF
29336/* end confdefs.h. */
5294a27e
VZ
29337#include <windows.h>
29338
01cb68df
RG
29339#include <$ac_header>
29340_ACEOF
29341rm -f conftest.$ac_objext
29342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29343 (eval $ac_compile) 2>conftest.er1
01cb68df 29344 ac_status=$?
ac1cb8d3
VS
29345 grep -v '^ *+' conftest.er1 >conftest.err
29346 rm -f conftest.er1
29347 cat conftest.err >&5
01cb68df
RG
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } &&
8c539582 29350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352 (eval $ac_try) 2>&5
29353 ac_status=$?
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; } &&
29356 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358 (eval $ac_try) 2>&5
29359 ac_status=$?
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); }; }; then
5294a27e 29362 eval "$as_ac_Header=yes"
01cb68df
RG
29363else
29364 echo "$as_me: failed program was:" >&5
29365sed 's/^/| /' conftest.$ac_ext >&5
29366
5294a27e 29367eval "$as_ac_Header=no"
01cb68df 29368fi
ac1cb8d3 29369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29370fi
29371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29373if test `eval echo '${'$as_ac_Header'}'` = yes; then
29374 cat >>confdefs.h <<_ACEOF
29375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29376_ACEOF
29377
29378else
29379
5294a27e
VZ
29380 wxUSE_DISPLAY="no"
29381 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29382echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29383
29384fi
29385
29386done
29387
a848cd7e
SC
29388 fi
29389fi
29390
29391
29392USE_OPENGL=0
29393if test "$wxUSE_OPENGL" = "yes"; then
29394 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29395 OPENGL_LIBS="-framework OpenGL -framework AGL"
29396 elif test "$wxUSE_MSW" = 1; then
29397 OPENGL_LIBS="-lopengl32 -lglu32"
29398 else
29399
29400
29401ac_find_includes=
29402for ac_dir in $SEARCH_INCLUDE /usr/include;
29403 do
29404 if test -f "$ac_dir/GL/gl.h"; then
29405 ac_find_includes=$ac_dir
29406 break
29407 fi
29408 done
29409
29410 if test "$ac_find_includes" != "" ; then
29411 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29412echo "${ECHO_T}found in $ac_find_includes" >&6
29413
29414 if test "x$ac_find_includes" = "x/usr/include"; then
29415 ac_path_to_include=""
29416 else
29417 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29418 result=$?
29419 if test $result = 0; then
29420 ac_path_to_include=""
29421 else
29422 ac_path_to_include=" -I$ac_find_includes"
29423 fi
29424 fi
29425
29426 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29427 fi
29428
29429 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29430 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29431echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29432if test "${ac_cv_header_GL_gl_h+set}" = set; then
29433 echo $ECHO_N "(cached) $ECHO_C" >&6
29434fi
29435echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29436echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29437else
29438 # Is the header compilable?
29439echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29440echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29441cat >conftest.$ac_ext <<_ACEOF
29442/* confdefs.h. */
29443_ACEOF
29444cat confdefs.h >>conftest.$ac_ext
29445cat >>conftest.$ac_ext <<_ACEOF
29446/* end confdefs.h. */
29447$ac_includes_default
29448#include <GL/gl.h>
29449_ACEOF
29450rm -f conftest.$ac_objext
29451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29452 (eval $ac_compile) 2>conftest.er1
a848cd7e 29453 ac_status=$?
ac1cb8d3
VS
29454 grep -v '^ *+' conftest.er1 >conftest.err
29455 rm -f conftest.er1
29456 cat conftest.err >&5
a848cd7e
SC
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); } &&
8c539582 29459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461 (eval $ac_try) 2>&5
29462 ac_status=$?
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); }; } &&
29465 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29467 (eval $ac_try) 2>&5
29468 ac_status=$?
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); }; }; then
29471 ac_header_compiler=yes
29472else
29473 echo "$as_me: failed program was:" >&5
29474sed 's/^/| /' conftest.$ac_ext >&5
29475
29476ac_header_compiler=no
29477fi
ac1cb8d3 29478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29479echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29480echo "${ECHO_T}$ac_header_compiler" >&6
29481
29482# Is the header present?
29483echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29484echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29485cat >conftest.$ac_ext <<_ACEOF
29486/* confdefs.h. */
29487_ACEOF
29488cat confdefs.h >>conftest.$ac_ext
29489cat >>conftest.$ac_ext <<_ACEOF
29490/* end confdefs.h. */
29491#include <GL/gl.h>
29492_ACEOF
29493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29495 ac_status=$?
29496 grep -v '^ *+' conftest.er1 >conftest.err
29497 rm -f conftest.er1
29498 cat conftest.err >&5
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); } >/dev/null; then
29501 if test -s conftest.err; then
29502 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29504 else
29505 ac_cpp_err=
29506 fi
29507else
29508 ac_cpp_err=yes
29509fi
29510if test -z "$ac_cpp_err"; then
29511 ac_header_preproc=yes
29512else
29513 echo "$as_me: failed program was:" >&5
29514sed 's/^/| /' conftest.$ac_ext >&5
29515
29516 ac_header_preproc=no
29517fi
29518rm -f conftest.err conftest.$ac_ext
29519echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29520echo "${ECHO_T}$ac_header_preproc" >&6
29521
29522# So? What about this header?
ac1cb8d3
VS
29523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29524 yes:no: )
a848cd7e
SC
29525 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29526echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29527 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29528echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29529 ac_header_preproc=yes
a848cd7e 29530 ;;
ac1cb8d3 29531 no:yes:* )
a848cd7e
SC
29532 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29533echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29534 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29535echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29536 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29537echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29538 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29539echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29540 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29541echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29542 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29543echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29544 (
29545 cat <<\_ASBOX
ac1cb8d3
VS
29546## ----------------------------------------- ##
29547## Report this to wx-dev@lists.wxwidgets.org ##
29548## ----------------------------------------- ##
a848cd7e
SC
29549_ASBOX
29550 ) |
29551 sed "s/^/$as_me: WARNING: /" >&2
29552 ;;
29553esac
29554echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29555echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29556if test "${ac_cv_header_GL_gl_h+set}" = set; then
29557 echo $ECHO_N "(cached) $ECHO_C" >&6
29558else
29559 ac_cv_header_GL_gl_h=$ac_header_preproc
29560fi
29561echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29562echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29563
29564fi
29565if test $ac_cv_header_GL_gl_h = yes; then
29566
29567 found_gl=0
29568
29569 echo "$as_me:$LINENO: checking for -lGL" >&5
29570echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29571
29572ac_find_libraries=
29573for ac_dir in $SEARCH_LIB /usr/lib;
29574 do
29575 for ac_extension in a so sl dylib; do
29576 if test -f "$ac_dir/libGL.$ac_extension"; then
29577 ac_find_libraries=$ac_dir
29578 break 2
29579 fi
29580 done
29581 done
29582
29583 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29584 echo "$as_me:$LINENO: result: yes" >&5
29585echo "${ECHO_T}yes" >&6
29586
a848cd7e
SC
29587
29588 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29589 result=$?
29590 if test $result = 0; then
29591 ac_path_to_link=""
29592 else
29593 ac_path_to_link=" -L$ac_find_libraries"
29594 fi
29595
29596 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29597 LDFLAGS_GL="$ac_path_to_link"
29598 fi
29599
69120ee4
VZ
29600 echo "$as_me:$LINENO: checking for -lGLU" >&5
29601echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29602
29603ac_find_libraries=
29604for ac_dir in $SEARCH_LIB /usr/lib;
29605 do
29606 for ac_extension in a so sl dylib; do
29607 if test -f "$ac_dir/libGLU.$ac_extension"; then
29608 ac_find_libraries=$ac_dir
29609 break 2
29610 fi
29611 done
29612 done
29613
29614 if test "$ac_find_libraries" != "" ; then
29615
29616 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29617 result=$?
29618 if test $result = 0; then
29619 ac_path_to_link=""
29620 else
29621 ac_path_to_link=" -L$ac_find_libraries"
29622 fi
29623
29624 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29625 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29626 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29627 fi
29628
29629 found_gl=1
29630 OPENGL_LIBS="-lGL -lGLU"
29631 echo "$as_me:$LINENO: result: yes" >&5
29632echo "${ECHO_T}yes" >&6
69120ee4
VZ
29633 else
29634 echo "$as_me:$LINENO: result: no" >&5
29635echo "${ECHO_T}no" >&6
a848cd7e 29636 fi
69120ee4
VZ
29637 else
29638 echo "$as_me:$LINENO: result: no" >&5
29639echo "${ECHO_T}no" >&6
a848cd7e
SC
29640 fi
29641
29642 if test "$found_gl" != 1; then
a848cd7e
SC
29643 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29644echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29645
29646ac_find_libraries=
29647for ac_dir in $SEARCH_LIB /usr/lib;
29648 do
29649 for ac_extension in a so sl dylib; do
29650 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29651 ac_find_libraries=$ac_dir
29652 break 2
29653 fi
29654 done
29655 done
29656
29657 if test "$ac_find_libraries" != "" ; then
29658
29659 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29660 result=$?
29661 if test $result = 0; then
29662 ac_path_to_link=""
29663 else
29664 ac_path_to_link=" -L$ac_find_libraries"
29665 fi
29666
29667 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29668 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29669 echo "$as_me:$LINENO: result: yes" >&5
29670echo "${ECHO_T}yes" >&6
29671 else
29672 echo "$as_me:$LINENO: result: no" >&5
29673echo "${ECHO_T}no" >&6
29674 fi
29675 fi
29676
29677fi
29678
29679
29680
29681 if test "x$OPENGL_LIBS" = "x"; then
29682 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29683echo "$as_me: error: OpenGL libraries not available" >&2;}
29684 { (exit 1); exit 1; }; }
29685 fi
29686 fi
29687
29688 if test "$wxUSE_OPENGL" = "yes"; then
29689 USE_OPENGL=1
29690 cat >>confdefs.h <<\_ACEOF
29691#define wxUSE_OPENGL 1
29692_ACEOF
29693
29694 cat >>confdefs.h <<\_ACEOF
29695#define wxUSE_GLCANVAS 1
29696_ACEOF
29697
29698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29699 fi
29700fi
29701
a848cd7e
SC
29702
29703if test -n "$TOOLKIT" ; then
29704 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29705fi
29706
a848cd7e
SC
29707
29708
29709if test "$wxUSE_SHARED" = "yes"; then
29710 case "${host}" in
29711 *-pc-msdosdjgpp )
29712 wxUSE_SHARED=no
29713 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29714echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29715 ;;
29716 esac
29717fi
29718
a848cd7e 29719if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29720
29721
29722 found_versioning=no
29723
29724
29725 if test $found_versioning = no ; then
29726 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29727echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29728if test "${wx_cv_version_script+set}" = set; then
29729 echo $ECHO_N "(cached) $ECHO_C" >&6
29730else
29731
29732 echo "VER_1 { *; };" >conftest.sym
29733 echo "int main() { return 0; }" >conftest.cpp
29734
29735 if { ac_try='
29736 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29737 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29739 (eval $ac_try) 2>&5
29740 ac_status=$?
29741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); }; } ; then
29743 if test -s conftest.stderr ; then
29744 wx_cv_version_script=no
29745 else
29746 wx_cv_version_script=yes
29747 fi
29748 else
29749 wx_cv_version_script=no
29750 fi
e5d4b470
MW
29751
29752 if test $wx_cv_version_script = yes
29753 then
29754 echo "struct B { virtual ~B() { } }; \
29755 struct D : public B { }; \
29756 void F() { D d; }" > conftest.cpp
29757
29758 if { ac_try='
29759 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29760 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29762 (eval $ac_try) 2>&5
29763 ac_status=$?
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); }; } &&
29766 { ac_try='
29767 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29768 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770 (eval $ac_try) 2>&5
29771 ac_status=$?
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; }
29774 then
29775 if { ac_try='
29776 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29777 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29779 (eval $ac_try) 2>&5
29780 ac_status=$?
29781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782 (exit $ac_status); }; }
29783 then
29784 wx_cv_version_script=yes
29785 else
29786 wx_cv_version_script=no
29787 fi
29788 fi
29789 fi
29790
a848cd7e 29791 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29792 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29793
29794fi
29795echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29796echo "${ECHO_T}$wx_cv_version_script" >&6
29797 if test $wx_cv_version_script = yes ; then
29798 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29799 fi
29800 fi
29801
29802
29803 case "${host}" in
29804 *-*-linux* | *-*-gnu* )
29805 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29806 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29807 ;;
29808
29809 *-*-solaris2* )
29810 if test "$GCC" = yes ; then
29811 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29812
29813 saveLdflags="$LDFLAGS"
29814 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29815 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29816echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29817 cat >conftest.$ac_ext <<_ACEOF
29818/* confdefs.h. */
29819_ACEOF
29820cat confdefs.h >>conftest.$ac_ext
29821cat >>conftest.$ac_ext <<_ACEOF
29822/* end confdefs.h. */
29823
29824int
29825main ()
29826{
29827
29828 ;
29829 return 0;
29830}
29831_ACEOF
29832rm -f conftest.$ac_objext conftest$ac_exeext
29833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29834 (eval $ac_link) 2>conftest.er1
a848cd7e 29835 ac_status=$?
ac1cb8d3
VS
29836 grep -v '^ *+' conftest.er1 >conftest.err
29837 rm -f conftest.er1
29838 cat conftest.err >&5
a848cd7e
SC
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); } &&
8c539582 29841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29843 (eval $ac_try) 2>&5
29844 ac_status=$?
29845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846 (exit $ac_status); }; } &&
29847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29849 (eval $ac_try) 2>&5
29850 ac_status=$?
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); }; }; then
29853
29854 echo "$as_me:$LINENO: result: yes" >&5
29855echo "${ECHO_T}yes" >&6
29856 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29857 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29858
29859else
29860 echo "$as_me: failed program was:" >&5
29861sed 's/^/| /' conftest.$ac_ext >&5
29862
29863
29864 echo "$as_me:$LINENO: result: no" >&5
29865echo "${ECHO_T}no" >&6
29866 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29867echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29868 LDFLAGS="$saveLdflags -Wl,-R,/"
29869 cat >conftest.$ac_ext <<_ACEOF
29870/* confdefs.h. */
29871_ACEOF
29872cat confdefs.h >>conftest.$ac_ext
29873cat >>conftest.$ac_ext <<_ACEOF
29874/* end confdefs.h. */
29875
29876int
29877main ()
29878{
29879
29880 ;
29881 return 0;
29882}
29883_ACEOF
29884rm -f conftest.$ac_objext conftest$ac_exeext
29885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29886 (eval $ac_link) 2>conftest.er1
a848cd7e 29887 ac_status=$?
ac1cb8d3
VS
29888 grep -v '^ *+' conftest.er1 >conftest.err
29889 rm -f conftest.er1
29890 cat conftest.err >&5
a848cd7e
SC
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); } &&
8c539582 29893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29895 (eval $ac_try) 2>&5
29896 ac_status=$?
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); }; } &&
29899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29901 (eval $ac_try) 2>&5
29902 ac_status=$?
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); }; }; then
29905
ffa0583f 29906 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29907echo "${ECHO_T}yes" >&6
ffa0583f
RL
29908 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29909 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29910
a848cd7e
SC
29911else
29912 echo "$as_me: failed program was:" >&5
29913sed 's/^/| /' conftest.$ac_ext >&5
29914
29915
29916 echo "$as_me:$LINENO: result: no" >&5
29917echo "${ECHO_T}no" >&6
29918
29919fi
ac1cb8d3
VS
29920rm -f conftest.err conftest.$ac_objext \
29921 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29922
29923fi
ac1cb8d3
VS
29924rm -f conftest.err conftest.$ac_objext \
29925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29926 LDFLAGS="$saveLdflags"
29927 else
a848cd7e 29928 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29929 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29930 fi
29931 ;;
29932
29933 powerpc-*-darwin* )
0caebc27
MW
29934 install_name_tool=`which install_name_tool`
29935 if test "$install_name_tool" -a -x "$install_name_tool"; then
29936 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29937 cat <<EOF >change-install-names
a848cd7e
SC
29938#!/bin/sh
29939libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29940inst_cmd="install_name_tool "
29941for i in \${libnames} ; do
29942 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29943done
29944\${inst_cmd} \${3}
29945EOF
0caebc27
MW
29946 chmod +x change-install-names
29947 fi
a848cd7e
SC
29948 ;;
29949
29950 *-*-cygwin* | *-*-mingw32* )
29951 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29952 ;;
29953
81f90336
MW
29954 *-*-hpux* )
29955 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29956 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29957 ;;
29958
a848cd7e 29959 esac
ceec2216 29960
ffa0583f
RL
29961 if test $wxUSE_RPATH = "no"; then
29962 SAMPLES_RPATH_FLAG=''
29963 SAMPLES_RPATH_POSTLINK=''
29964 WXCONFIG_RPATH=''
29965 fi
29966
29967 SHARED=1
29968
29969else
29970
ceec2216
RL
29971 config_linkage_component="-static"
29972 SHARED=0
ffa0583f 29973
ceec2216 29974fi
a848cd7e 29975
a848cd7e 29976
ceec2216
RL
29977UNICODE=0
29978lib_unicode_suffix=
29979WX_CHARTYPE="ansi"
29980if test "$wxUSE_UNICODE" = "yes"; then
29981 lib_unicode_suffix=u
29982 WX_CHARTYPE="unicode"
29983 UNICODE=1
a848cd7e
SC
29984fi
29985
ceec2216
RL
29986lib_debug_suffix=
29987WX_DEBUGTYPE="release"
29988DEBUG_FLAG=0
29989if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29990 lib_debug_suffix=d
29991 WX_DEBUGTYPE="debug"
29992 DEBUG_FLAG=1
29993fi
a848cd7e 29994
ceec2216
RL
29995WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29996WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29997
ceec2216
RL
29998DEBUG_INFO=0
29999if test "$wxUSE_DEBUG_INFO" = "yes"; then
30000 DEBUG_INFO=1
30001fi
a848cd7e 30002
ceec2216 30003WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30004
ceec2216 30005TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30006
ceec2216 30007TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30008
ceec2216
RL
30009if test "$cross_compiling" = "yes"; then
30010 HOST_SUFFIX="-$host_alias"
30011 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30012 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30013fi
30014
dd21ced8 30015WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30016if test "${TOOLKIT_DIR}" = "os2"; then
30017 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30018else
30019 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30020fi
ceec2216
RL
30021
30022
30023
1d1af5ea
DE
30024if test "$wxUSE_COCOA" = 1; then
30025
30026
30027 ac_ext=c
30028ac_cpp='$CPP $CPPFLAGS'
30029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30031ac_compiler_gnu=$ac_cv_c_compiler_gnu
30032
30033ac_ext=m
30034
30035 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30036echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30037 cat >conftest.$ac_ext <<_ACEOF
30038/* confdefs.h. */
30039_ACEOF
30040cat confdefs.h >>conftest.$ac_ext
30041cat >>conftest.$ac_ext <<_ACEOF
30042/* end confdefs.h. */
30043#include <AppKit/NSEvent.h>
30044#include <CoreFoundation/CoreFoundation.h>
30045
30046int
30047main ()
30048{
30049
30050 ;
30051 return 0;
30052}
30053_ACEOF
30054rm -f conftest.$ac_objext
30055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30056 (eval $ac_compile) 2>conftest.er1
30057 ac_status=$?
30058 grep -v '^ *+' conftest.er1 >conftest.err
30059 rm -f conftest.er1
30060 cat conftest.err >&5
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); } &&
8c539582 30063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30065 (eval $ac_try) 2>&5
30066 ac_status=$?
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); }; } &&
30069 { ac_try='test -s conftest.$ac_objext'
30070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071 (eval $ac_try) 2>&5
30072 ac_status=$?
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); }; }; then
30075 echo "$as_me:$LINENO: result: no" >&5
30076echo "${ECHO_T}no" >&6
30077else
30078 echo "$as_me: failed program was:" >&5
30079sed 's/^/| /' conftest.$ac_ext >&5
30080
30081echo "$as_me:$LINENO: result: yes" >&5
30082echo "${ECHO_T}yes" >&6
30083 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30084echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30085 cat >conftest.$ac_ext <<_ACEOF
30086/* confdefs.h. */
30087_ACEOF
30088cat confdefs.h >>conftest.$ac_ext
30089cat >>conftest.$ac_ext <<_ACEOF
30090/* end confdefs.h. */
30091#define __Point__ 1
30092#include <AppKit/NSEvent.h>
30093#include <CoreFoundation/CoreFoundation.h>
30094
30095int
30096main ()
30097{
30098
30099 ;
30100 return 0;
30101}
30102_ACEOF
30103rm -f conftest.$ac_objext
30104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30105 (eval $ac_compile) 2>conftest.er1
30106 ac_status=$?
30107 grep -v '^ *+' conftest.er1 >conftest.err
30108 rm -f conftest.er1
30109 cat conftest.err >&5
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); } &&
8c539582 30112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30114 (eval $ac_try) 2>&5
30115 ac_status=$?
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117 (exit $ac_status); }; } &&
30118 { ac_try='test -s conftest.$ac_objext'
30119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30120 (eval $ac_try) 2>&5
30121 ac_status=$?
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); }; }; then
30124 echo "$as_me:$LINENO: result: yes" >&5
30125echo "${ECHO_T}yes" >&6
30126 cat >>confdefs.h <<\_ACEOF
30127#define __Point__ 1
30128_ACEOF
30129
30130
30131else
30132 echo "$as_me: failed program was:" >&5
30133sed 's/^/| /' conftest.$ac_ext >&5
30134
30135{ { echo "$as_me:$LINENO: error: no
30136See \`config.log' for more details." >&5
30137echo "$as_me: error: no
30138See \`config.log' for more details." >&2;}
30139 { (exit 1); exit 1; }; }
30140
30141fi
30142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30143
30144fi
30145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30146 ac_ext=c
30147ac_cpp='$CPP $CPPFLAGS'
30148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30150ac_compiler_gnu=$ac_cv_c_compiler_gnu
30151
30152fi
30153
a848cd7e 30154if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30155 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30156 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30157
a848cd7e 30158 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30159
30160 # Extract the first word of "Rez", so it can be a program name with args.
30161set dummy Rez; ac_word=$2
30162echo "$as_me:$LINENO: checking for $ac_word" >&5
30163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30164if test "${ac_cv_prog_RESCOMP+set}" = set; then
30165 echo $ECHO_N "(cached) $ECHO_C" >&6
30166else
30167 if test -n "$RESCOMP"; then
30168 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30169else
30170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30171for as_dir in $PATH
30172do
30173 IFS=$as_save_IFS
30174 test -z "$as_dir" && as_dir=.
30175 for ac_exec_ext in '' $ac_executable_extensions; do
30176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30177 ac_cv_prog_RESCOMP="Rez"
30178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30179 break 2
30180 fi
30181done
30182done
30183
30184 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30185fi
30186fi
30187RESCOMP=$ac_cv_prog_RESCOMP
30188if test -n "$RESCOMP"; then
30189 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30190echo "${ECHO_T}$RESCOMP" >&6
30191else
30192 echo "$as_me:$LINENO: result: no" >&5
30193echo "${ECHO_T}no" >&6
30194fi
30195
30196 # Extract the first word of "DeRez", so it can be a program name with args.
30197set dummy DeRez; ac_word=$2
30198echo "$as_me:$LINENO: checking for $ac_word" >&5
30199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30200if test "${ac_cv_prog_DEREZ+set}" = set; then
30201 echo $ECHO_N "(cached) $ECHO_C" >&6
30202else
30203 if test -n "$DEREZ"; then
30204 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30205else
30206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30207for as_dir in $PATH
30208do
30209 IFS=$as_save_IFS
30210 test -z "$as_dir" && as_dir=.
30211 for ac_exec_ext in '' $ac_executable_extensions; do
30212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30213 ac_cv_prog_DEREZ="DeRez"
30214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30215 break 2
30216 fi
30217done
30218done
30219
30220 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30221fi
30222fi
30223DEREZ=$ac_cv_prog_DEREZ
30224if test -n "$DEREZ"; then
30225 echo "$as_me:$LINENO: result: $DEREZ" >&5
30226echo "${ECHO_T}$DEREZ" >&6
30227else
30228 echo "$as_me:$LINENO: result: no" >&5
30229echo "${ECHO_T}no" >&6
30230fi
30231
30232 # Extract the first word of "SetFile", so it can be a program name with args.
30233set dummy SetFile; ac_word=$2
30234echo "$as_me:$LINENO: checking for $ac_word" >&5
30235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30236if test "${ac_cv_prog_SETFILE+set}" = set; then
30237 echo $ECHO_N "(cached) $ECHO_C" >&6
30238else
30239 if test -n "$SETFILE"; then
30240 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30241else
30242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30243for as_dir in $PATH
30244do
30245 IFS=$as_save_IFS
30246 test -z "$as_dir" && as_dir=.
30247 for ac_exec_ext in '' $ac_executable_extensions; do
30248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30249 ac_cv_prog_SETFILE="SetFile"
30250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30251 break 2
30252 fi
30253done
30254done
30255
30256 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30257fi
30258fi
30259SETFILE=$ac_cv_prog_SETFILE
30260if test -n "$SETFILE"; then
30261 echo "$as_me:$LINENO: result: $SETFILE" >&5
30262echo "${ECHO_T}$SETFILE" >&6
30263else
30264 echo "$as_me:$LINENO: result: no" >&5
30265echo "${ECHO_T}no" >&6
30266fi
30267
30268
30269 MACSETFILE="\$(SETFILE)"
30270
30271 if test "$wxUSE_MAC" = 1; then
1a79f136 30272 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30273
1a79f136 30274 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30275 else
30276 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30277 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30278 fi
30279else
ffa0583f
RL
30280 MACSETFILE="@true"
30281 MACRESWXCONFIG="@true"
a848cd7e
SC
30282
30283 if test "$wxUSE_PM" = 1; then
30284 MACRESCOMP="emxbind -ep"
30285 else
ffa0583f 30286 MACRESCOMP="@true"
a848cd7e
SC
30287 fi
30288fi
30289
30290
30291
30292echo "$as_me:$LINENO: checking for mode_t" >&5
30293echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30294if test "${ac_cv_type_mode_t+set}" = set; then
30295 echo $ECHO_N "(cached) $ECHO_C" >&6
30296else
30297 cat >conftest.$ac_ext <<_ACEOF
30298/* confdefs.h. */
30299_ACEOF
30300cat confdefs.h >>conftest.$ac_ext
30301cat >>conftest.$ac_ext <<_ACEOF
30302/* end confdefs.h. */
30303$ac_includes_default
30304int
30305main ()
30306{
30307if ((mode_t *) 0)
30308 return 0;
30309if (sizeof (mode_t))
30310 return 0;
30311 ;
30312 return 0;
30313}
30314_ACEOF
30315rm -f conftest.$ac_objext
30316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30317 (eval $ac_compile) 2>conftest.er1
a848cd7e 30318 ac_status=$?
ac1cb8d3
VS
30319 grep -v '^ *+' conftest.er1 >conftest.err
30320 rm -f conftest.er1
30321 cat conftest.err >&5
a848cd7e
SC
30322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323 (exit $ac_status); } &&
8c539582 30324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30326 (eval $ac_try) 2>&5
30327 ac_status=$?
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); }; } &&
30330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30332 (eval $ac_try) 2>&5
30333 ac_status=$?
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); }; }; then
30336 ac_cv_type_mode_t=yes
30337else
30338 echo "$as_me: failed program was:" >&5
30339sed 's/^/| /' conftest.$ac_ext >&5
30340
30341ac_cv_type_mode_t=no
30342fi
ac1cb8d3 30343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30344fi
30345echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30346echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30347if test $ac_cv_type_mode_t = yes; then
30348 :
30349else
30350
30351cat >>confdefs.h <<_ACEOF
30352#define mode_t int
30353_ACEOF
30354
30355fi
30356
30357echo "$as_me:$LINENO: checking for off_t" >&5
30358echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30359if test "${ac_cv_type_off_t+set}" = set; then
30360 echo $ECHO_N "(cached) $ECHO_C" >&6
30361else
30362 cat >conftest.$ac_ext <<_ACEOF
30363/* confdefs.h. */
30364_ACEOF
30365cat confdefs.h >>conftest.$ac_ext
30366cat >>conftest.$ac_ext <<_ACEOF
30367/* end confdefs.h. */
30368$ac_includes_default
30369int
30370main ()
30371{
30372if ((off_t *) 0)
30373 return 0;
30374if (sizeof (off_t))
30375 return 0;
30376 ;
30377 return 0;
30378}
30379_ACEOF
30380rm -f conftest.$ac_objext
30381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30382 (eval $ac_compile) 2>conftest.er1
a848cd7e 30383 ac_status=$?
ac1cb8d3
VS
30384 grep -v '^ *+' conftest.er1 >conftest.err
30385 rm -f conftest.er1
30386 cat conftest.err >&5
a848cd7e
SC
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); } &&
8c539582 30389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30391 (eval $ac_try) 2>&5
30392 ac_status=$?
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); }; } &&
30395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30397 (eval $ac_try) 2>&5
30398 ac_status=$?
30399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400 (exit $ac_status); }; }; then
30401 ac_cv_type_off_t=yes
30402else
30403 echo "$as_me: failed program was:" >&5
30404sed 's/^/| /' conftest.$ac_ext >&5
30405
30406ac_cv_type_off_t=no
30407fi
ac1cb8d3 30408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30409fi
30410echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30411echo "${ECHO_T}$ac_cv_type_off_t" >&6
30412if test $ac_cv_type_off_t = yes; then
30413 :
30414else
30415
30416cat >>confdefs.h <<_ACEOF
30417#define off_t long
30418_ACEOF
30419
30420fi
30421
30422echo "$as_me:$LINENO: checking for pid_t" >&5
30423echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30424if test "${ac_cv_type_pid_t+set}" = set; then
30425 echo $ECHO_N "(cached) $ECHO_C" >&6
30426else
30427 cat >conftest.$ac_ext <<_ACEOF
30428/* confdefs.h. */
30429_ACEOF
30430cat confdefs.h >>conftest.$ac_ext
30431cat >>conftest.$ac_ext <<_ACEOF
30432/* end confdefs.h. */
30433$ac_includes_default
30434int
30435main ()
30436{
30437if ((pid_t *) 0)
30438 return 0;
30439if (sizeof (pid_t))
30440 return 0;
30441 ;
30442 return 0;
30443}
30444_ACEOF
30445rm -f conftest.$ac_objext
30446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30447 (eval $ac_compile) 2>conftest.er1
a848cd7e 30448 ac_status=$?
ac1cb8d3
VS
30449 grep -v '^ *+' conftest.er1 >conftest.err
30450 rm -f conftest.er1
30451 cat conftest.err >&5
a848cd7e
SC
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); } &&
8c539582 30454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30456 (eval $ac_try) 2>&5
30457 ac_status=$?
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); }; } &&
30460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30462 (eval $ac_try) 2>&5
30463 ac_status=$?
30464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465 (exit $ac_status); }; }; then
30466 ac_cv_type_pid_t=yes
30467else
30468 echo "$as_me: failed program was:" >&5
30469sed 's/^/| /' conftest.$ac_ext >&5
30470
30471ac_cv_type_pid_t=no
30472fi
ac1cb8d3 30473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30474fi
30475echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30476echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30477if test $ac_cv_type_pid_t = yes; then
30478 :
30479else
30480
30481cat >>confdefs.h <<_ACEOF
30482#define pid_t int
30483_ACEOF
30484
30485fi
30486
30487echo "$as_me:$LINENO: checking for size_t" >&5
30488echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30489if test "${ac_cv_type_size_t+set}" = set; then
30490 echo $ECHO_N "(cached) $ECHO_C" >&6
30491else
30492 cat >conftest.$ac_ext <<_ACEOF
30493/* confdefs.h. */
30494_ACEOF
30495cat confdefs.h >>conftest.$ac_ext
30496cat >>conftest.$ac_ext <<_ACEOF
30497/* end confdefs.h. */
30498$ac_includes_default
30499int
30500main ()
30501{
30502if ((size_t *) 0)
30503 return 0;
30504if (sizeof (size_t))
30505 return 0;
30506 ;
30507 return 0;
30508}
30509_ACEOF
30510rm -f conftest.$ac_objext
30511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30512 (eval $ac_compile) 2>conftest.er1
a848cd7e 30513 ac_status=$?
ac1cb8d3
VS
30514 grep -v '^ *+' conftest.er1 >conftest.err
30515 rm -f conftest.er1
30516 cat conftest.err >&5
a848cd7e
SC
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); } &&
8c539582 30519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30521 (eval $ac_try) 2>&5
30522 ac_status=$?
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); }; } &&
30525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30527 (eval $ac_try) 2>&5
30528 ac_status=$?
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); }; }; then
30531 ac_cv_type_size_t=yes
30532else
30533 echo "$as_me: failed program was:" >&5
30534sed 's/^/| /' conftest.$ac_ext >&5
30535
30536ac_cv_type_size_t=no
30537fi
ac1cb8d3 30538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30539fi
30540echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30541echo "${ECHO_T}$ac_cv_type_size_t" >&6
30542if test $ac_cv_type_size_t = yes; then
30543 :
30544else
30545
30546cat >>confdefs.h <<_ACEOF
30547#define size_t unsigned
30548_ACEOF
30549
30550fi
30551
30552echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30553echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30554if test "${ac_cv_type_uid_t+set}" = set; then
30555 echo $ECHO_N "(cached) $ECHO_C" >&6
30556else
30557 cat >conftest.$ac_ext <<_ACEOF
30558/* confdefs.h. */
30559_ACEOF
30560cat confdefs.h >>conftest.$ac_ext
30561cat >>conftest.$ac_ext <<_ACEOF
30562/* end confdefs.h. */
30563#include <sys/types.h>
30564
30565_ACEOF
30566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30567 $EGREP "uid_t" >/dev/null 2>&1; then
30568 ac_cv_type_uid_t=yes
30569else
30570 ac_cv_type_uid_t=no
30571fi
30572rm -f conftest*
30573
30574fi
30575echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30576echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30577if test $ac_cv_type_uid_t = no; then
30578
30579cat >>confdefs.h <<\_ACEOF
30580#define uid_t int
30581_ACEOF
30582
30583
30584cat >>confdefs.h <<\_ACEOF
30585#define gid_t int
30586_ACEOF
30587
30588fi
30589
30590
d51253e8
RL
30591echo "$as_me:$LINENO: checking for ssize_t" >&5
30592echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30593if test "${ac_cv_type_ssize_t+set}" = set; then
30594 echo $ECHO_N "(cached) $ECHO_C" >&6
30595else
30596 cat >conftest.$ac_ext <<_ACEOF
30597/* confdefs.h. */
30598_ACEOF
30599cat confdefs.h >>conftest.$ac_ext
30600cat >>conftest.$ac_ext <<_ACEOF
30601/* end confdefs.h. */
30602$ac_includes_default
30603int
30604main ()
30605{
30606if ((ssize_t *) 0)
30607 return 0;
30608if (sizeof (ssize_t))
30609 return 0;
30610 ;
30611 return 0;
30612}
30613_ACEOF
30614rm -f conftest.$ac_objext
30615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30616 (eval $ac_compile) 2>conftest.er1
30617 ac_status=$?
30618 grep -v '^ *+' conftest.er1 >conftest.err
30619 rm -f conftest.er1
30620 cat conftest.err >&5
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); } &&
8c539582 30623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30625 (eval $ac_try) 2>&5
30626 ac_status=$?
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); }; } &&
30629 { ac_try='test -s conftest.$ac_objext'
30630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631 (eval $ac_try) 2>&5
30632 ac_status=$?
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634 (exit $ac_status); }; }; then
30635 ac_cv_type_ssize_t=yes
30636else
30637 echo "$as_me: failed program was:" >&5
30638sed 's/^/| /' conftest.$ac_ext >&5
30639
30640ac_cv_type_ssize_t=no
30641fi
30642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30643fi
30644echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30645echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30646if test $ac_cv_type_ssize_t = yes; then
30647
30648cat >>confdefs.h <<_ACEOF
30649#define HAVE_SSIZE_T 1
30650_ACEOF
30651
30652
30653fi
30654
30655
a848cd7e
SC
30656
30657
30658ac_ext=cc
30659ac_cpp='$CXXCPP $CPPFLAGS'
30660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30663
30664echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30665echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30666if test "${wx_cv_size_t_is_uint+set}" = set; then
30667 echo $ECHO_N "(cached) $ECHO_C" >&6
30668else
30669
30670 cat >conftest.$ac_ext <<_ACEOF
30671/* confdefs.h. */
30672_ACEOF
30673cat confdefs.h >>conftest.$ac_ext
30674cat >>conftest.$ac_ext <<_ACEOF
30675/* end confdefs.h. */
30676#include <stddef.h>
30677int
30678main ()
30679{
30680
30681 return 0; }
30682
30683 struct Foo { void foo(size_t); void foo(unsigned int); };
30684
30685 int bar() {
30686
30687 ;
30688 return 0;
30689}
30690_ACEOF
30691rm -f conftest.$ac_objext
30692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30693 (eval $ac_compile) 2>conftest.er1
a848cd7e 30694 ac_status=$?
ac1cb8d3
VS
30695 grep -v '^ *+' conftest.er1 >conftest.err
30696 rm -f conftest.er1
30697 cat conftest.err >&5
a848cd7e
SC
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); } &&
8c539582 30700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30702 (eval $ac_try) 2>&5
30703 ac_status=$?
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); }; } &&
30706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30708 (eval $ac_try) 2>&5
30709 ac_status=$?
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); }; }; then
30712 wx_cv_size_t_is_uint=no
30713else
30714 echo "$as_me: failed program was:" >&5
30715sed 's/^/| /' conftest.$ac_ext >&5
30716
30717wx_cv_size_t_is_uint=yes
30718
30719fi
ac1cb8d3 30720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30721
30722
30723fi
30724echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30725echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30726
30727if test "$wx_cv_size_t_is_uint" = "yes"; then
30728 cat >>confdefs.h <<\_ACEOF
30729#define wxSIZE_T_IS_UINT 1
30730_ACEOF
30731
30732else
30733 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30734echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30735if test "${wx_cv_size_t_is_ulong+set}" = set; then
30736 echo $ECHO_N "(cached) $ECHO_C" >&6
30737else
30738 cat >conftest.$ac_ext <<_ACEOF
30739/* confdefs.h. */
30740_ACEOF
30741cat confdefs.h >>conftest.$ac_ext
30742cat >>conftest.$ac_ext <<_ACEOF
30743/* end confdefs.h. */
30744#include <stddef.h>
30745int
30746main ()
30747{
30748
30749 return 0; }
30750
30751 struct Foo { void foo(size_t); void foo(unsigned long); };
30752
30753 int bar() {
30754
30755 ;
30756 return 0;
30757}
30758_ACEOF
30759rm -f conftest.$ac_objext
30760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30761 (eval $ac_compile) 2>conftest.er1
a848cd7e 30762 ac_status=$?
ac1cb8d3
VS
30763 grep -v '^ *+' conftest.er1 >conftest.err
30764 rm -f conftest.er1
30765 cat conftest.err >&5
a848cd7e
SC
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); } &&
8c539582 30768 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30770 (eval $ac_try) 2>&5
30771 ac_status=$?
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); }; } &&
30774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30776 (eval $ac_try) 2>&5
30777 ac_status=$?
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); }; }; then
30780 wx_cv_size_t_is_ulong=no
30781else
30782 echo "$as_me: failed program was:" >&5
30783sed 's/^/| /' conftest.$ac_ext >&5
30784
30785wx_cv_size_t_is_ulong=yes
30786
30787fi
ac1cb8d3 30788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30789
30790fi
30791echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30792echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30793
30794 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30795 cat >>confdefs.h <<\_ACEOF
30796#define wxSIZE_T_IS_ULONG 1
30797_ACEOF
30798
30799 fi
30800fi
30801
30802ac_ext=c
30803ac_cpp='$CPP $CPPFLAGS'
30804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30806ac_compiler_gnu=$ac_cv_c_compiler_gnu
30807
30808
30809
30810echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30811echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30812if test "${wx_cv_struct_pw_gecos+set}" = set; then
30813 echo $ECHO_N "(cached) $ECHO_C" >&6
30814else
30815
30816 cat >conftest.$ac_ext <<_ACEOF
30817/* confdefs.h. */
30818_ACEOF
30819cat confdefs.h >>conftest.$ac_ext
30820cat >>conftest.$ac_ext <<_ACEOF
30821/* end confdefs.h. */
30822#include <pwd.h>
30823int
30824main ()
30825{
30826
30827 char *p;
30828 struct passwd *pw;
30829 p = pw->pw_gecos;
30830
30831 ;
30832 return 0;
30833}
30834_ACEOF
30835rm -f conftest.$ac_objext
30836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30837 (eval $ac_compile) 2>conftest.er1
a848cd7e 30838 ac_status=$?
ac1cb8d3
VS
30839 grep -v '^ *+' conftest.er1 >conftest.err
30840 rm -f conftest.er1
30841 cat conftest.err >&5
a848cd7e
SC
30842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843 (exit $ac_status); } &&
8c539582 30844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30846 (eval $ac_try) 2>&5
30847 ac_status=$?
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); }; } &&
30850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30852 (eval $ac_try) 2>&5
30853 ac_status=$?
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); }; }; then
30856
30857 wx_cv_struct_pw_gecos=yes
30858
30859else
30860 echo "$as_me: failed program was:" >&5
30861sed 's/^/| /' conftest.$ac_ext >&5
30862
30863
30864 wx_cv_struct_pw_gecos=no
30865
30866
30867fi
ac1cb8d3 30868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30869
30870
30871fi
30872echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30873echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30874
30875if test "$wx_cv_struct_pw_gecos" = "yes"; then
30876 cat >>confdefs.h <<\_ACEOF
30877#define HAVE_PW_GECOS 1
30878_ACEOF
30879
30880fi
30881
30882
47a7e797 30883if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
30884 cat >>confdefs.h <<\_ACEOF
30885#define wxUSE_WCHAR_T 1
30886_ACEOF
30887
30888
30889 WCSLEN_FOUND=0
30890 WCHAR_LINK=
30891
30892for ac_func in wcslen
30893do
30894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30895echo "$as_me:$LINENO: checking for $ac_func" >&5
30896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30897if eval "test \"\${$as_ac_var+set}\" = set"; then
30898 echo $ECHO_N "(cached) $ECHO_C" >&6
30899else
30900 cat >conftest.$ac_ext <<_ACEOF
30901/* confdefs.h. */
30902_ACEOF
30903cat confdefs.h >>conftest.$ac_ext
30904cat >>conftest.$ac_ext <<_ACEOF
30905/* end confdefs.h. */
ac1cb8d3
VS
30906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30908#define $ac_func innocuous_$ac_func
30909
a848cd7e
SC
30910/* System header to define __stub macros and hopefully few prototypes,
30911 which can conflict with char $ac_func (); below.
30912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30913 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30914
a848cd7e
SC
30915#ifdef __STDC__
30916# include <limits.h>
30917#else
30918# include <assert.h>
30919#endif
ac1cb8d3
VS
30920
30921#undef $ac_func
30922
a848cd7e
SC
30923/* Override any gcc2 internal prototype to avoid an error. */
30924#ifdef __cplusplus
30925extern "C"
30926{
30927#endif
30928/* We use char because int might match the return type of a gcc2
30929 builtin and then its argument prototype would still apply. */
30930char $ac_func ();
30931/* The GNU C library defines this for functions which it implements
30932 to always fail with ENOSYS. Some functions are actually named
30933 something starting with __ and the normal name is an alias. */
30934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30935choke me
30936#else
30937char (*f) () = $ac_func;
30938#endif
30939#ifdef __cplusplus
30940}
30941#endif
30942
30943int
30944main ()
30945{
30946return f != $ac_func;
30947 ;
30948 return 0;
30949}
30950_ACEOF
30951rm -f conftest.$ac_objext conftest$ac_exeext
30952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30953 (eval $ac_link) 2>conftest.er1
a848cd7e 30954 ac_status=$?
ac1cb8d3
VS
30955 grep -v '^ *+' conftest.er1 >conftest.err
30956 rm -f conftest.er1
30957 cat conftest.err >&5
a848cd7e
SC
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); } &&
8c539582 30960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30962 (eval $ac_try) 2>&5
30963 ac_status=$?
30964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965 (exit $ac_status); }; } &&
30966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30968 (eval $ac_try) 2>&5
30969 ac_status=$?
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971 (exit $ac_status); }; }; then
30972 eval "$as_ac_var=yes"
30973else
30974 echo "$as_me: failed program was:" >&5
30975sed 's/^/| /' conftest.$ac_ext >&5
30976
30977eval "$as_ac_var=no"
30978fi
ac1cb8d3
VS
30979rm -f conftest.err conftest.$ac_objext \
30980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30981fi
30982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30983echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30984if test `eval echo '${'$as_ac_var'}'` = yes; then
30985 cat >>confdefs.h <<_ACEOF
30986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30987_ACEOF
30988 WCSLEN_FOUND=1
30989fi
30990done
30991
30992
30993 if test "$WCSLEN_FOUND" = 0; then
30994 if test "$TOOLKIT" = "MSW"; then
30995 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30996echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30997if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30998 echo $ECHO_N "(cached) $ECHO_C" >&6
30999else
31000 ac_check_lib_save_LIBS=$LIBS
31001LIBS="-lmsvcrt $LIBS"
31002cat >conftest.$ac_ext <<_ACEOF
31003/* confdefs.h. */
31004_ACEOF
31005cat confdefs.h >>conftest.$ac_ext
31006cat >>conftest.$ac_ext <<_ACEOF
31007/* end confdefs.h. */
31008
31009/* Override any gcc2 internal prototype to avoid an error. */
31010#ifdef __cplusplus
31011extern "C"
31012#endif
31013/* We use char because int might match the return type of a gcc2
31014 builtin and then its argument prototype would still apply. */
31015char wcslen ();
31016int
31017main ()
31018{
31019wcslen ();
31020 ;
31021 return 0;
31022}
31023_ACEOF
31024rm -f conftest.$ac_objext conftest$ac_exeext
31025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31026 (eval $ac_link) 2>conftest.er1
a848cd7e 31027 ac_status=$?
ac1cb8d3
VS
31028 grep -v '^ *+' conftest.er1 >conftest.err
31029 rm -f conftest.er1
31030 cat conftest.err >&5
a848cd7e
SC
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); } &&
8c539582 31033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31035 (eval $ac_try) 2>&5
31036 ac_status=$?
31037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31038 (exit $ac_status); }; } &&
31039 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31041 (eval $ac_try) 2>&5
31042 ac_status=$?
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); }; }; then
31045 ac_cv_lib_msvcrt_wcslen=yes
31046else
31047 echo "$as_me: failed program was:" >&5
31048sed 's/^/| /' conftest.$ac_ext >&5
31049
31050ac_cv_lib_msvcrt_wcslen=no
31051fi
ac1cb8d3
VS
31052rm -f conftest.err conftest.$ac_objext \
31053 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31054LIBS=$ac_check_lib_save_LIBS
31055fi
31056echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31057echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31058if test $ac_cv_lib_msvcrt_wcslen = yes; then
31059 WCHAR_OK=1
31060fi
31061
31062 else
31063 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31064echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31065if test "${ac_cv_lib_w_wcslen+set}" = set; then
31066 echo $ECHO_N "(cached) $ECHO_C" >&6
31067else
31068 ac_check_lib_save_LIBS=$LIBS
31069LIBS="-lw $LIBS"
31070cat >conftest.$ac_ext <<_ACEOF
31071/* confdefs.h. */
31072_ACEOF
31073cat confdefs.h >>conftest.$ac_ext
31074cat >>conftest.$ac_ext <<_ACEOF
31075/* end confdefs.h. */
31076
31077/* Override any gcc2 internal prototype to avoid an error. */
31078#ifdef __cplusplus
31079extern "C"
31080#endif
31081/* We use char because int might match the return type of a gcc2
31082 builtin and then its argument prototype would still apply. */
31083char wcslen ();
31084int
31085main ()
31086{
31087wcslen ();
31088 ;
31089 return 0;
31090}
31091_ACEOF
31092rm -f conftest.$ac_objext conftest$ac_exeext
31093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31094 (eval $ac_link) 2>conftest.er1
a848cd7e 31095 ac_status=$?
ac1cb8d3
VS
31096 grep -v '^ *+' conftest.er1 >conftest.err
31097 rm -f conftest.er1
31098 cat conftest.err >&5
a848cd7e
SC
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); } &&
8c539582 31101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31103 (eval $ac_try) 2>&5
31104 ac_status=$?
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); }; } &&
31107 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31109 (eval $ac_try) 2>&5
31110 ac_status=$?
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); }; }; then
31113 ac_cv_lib_w_wcslen=yes
31114else
31115 echo "$as_me: failed program was:" >&5
31116sed 's/^/| /' conftest.$ac_ext >&5
31117
31118ac_cv_lib_w_wcslen=no
31119fi
ac1cb8d3
VS
31120rm -f conftest.err conftest.$ac_objext \
31121 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31122LIBS=$ac_check_lib_save_LIBS
31123fi
31124echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31125echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31126if test $ac_cv_lib_w_wcslen = yes; then
31127
31128 WCHAR_LINK=" -lw"
31129 WCSLEN_FOUND=1
31130
31131fi
31132
31133 fi
31134 fi
31135
31136 if test "$WCSLEN_FOUND" = 1; then
31137 cat >>confdefs.h <<\_ACEOF
31138#define HAVE_WCSLEN 1
31139_ACEOF
31140
31141 fi
31142
81f90336 31143 if test "$USE_HPUX" = 1; then
473276a9
VS
31144 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31145 fi
31146
a848cd7e
SC
31147
31148for ac_func in wcsrtombs
31149do
31150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31151echo "$as_me:$LINENO: checking for $ac_func" >&5
31152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31153if eval "test \"\${$as_ac_var+set}\" = set"; then
31154 echo $ECHO_N "(cached) $ECHO_C" >&6
31155else
31156 cat >conftest.$ac_ext <<_ACEOF
31157/* confdefs.h. */
31158_ACEOF
31159cat confdefs.h >>conftest.$ac_ext
31160cat >>conftest.$ac_ext <<_ACEOF
31161/* end confdefs.h. */
ac1cb8d3
VS
31162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31164#define $ac_func innocuous_$ac_func
31165
a848cd7e
SC
31166/* System header to define __stub macros and hopefully few prototypes,
31167 which can conflict with char $ac_func (); below.
31168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31169 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31170
a848cd7e
SC
31171#ifdef __STDC__
31172# include <limits.h>
31173#else
31174# include <assert.h>
31175#endif
ac1cb8d3
VS
31176
31177#undef $ac_func
31178
a848cd7e
SC
31179/* Override any gcc2 internal prototype to avoid an error. */
31180#ifdef __cplusplus
31181extern "C"
31182{
31183#endif
31184/* We use char because int might match the return type of a gcc2
31185 builtin and then its argument prototype would still apply. */
31186char $ac_func ();
31187/* The GNU C library defines this for functions which it implements
31188 to always fail with ENOSYS. Some functions are actually named
31189 something starting with __ and the normal name is an alias. */
31190#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31191choke me
31192#else
31193char (*f) () = $ac_func;
31194#endif
31195#ifdef __cplusplus
31196}
31197#endif
31198
31199int
31200main ()
31201{
31202return f != $ac_func;
31203 ;
31204 return 0;
31205}
31206_ACEOF
31207rm -f conftest.$ac_objext conftest$ac_exeext
31208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31209 (eval $ac_link) 2>conftest.er1
a848cd7e 31210 ac_status=$?
ac1cb8d3
VS
31211 grep -v '^ *+' conftest.er1 >conftest.err
31212 rm -f conftest.er1
31213 cat conftest.err >&5
a848cd7e
SC
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); } &&
8c539582 31216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31218 (eval $ac_try) 2>&5
31219 ac_status=$?
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); }; } &&
31222 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31224 (eval $ac_try) 2>&5
31225 ac_status=$?
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); }; }; then
31228 eval "$as_ac_var=yes"
31229else
31230 echo "$as_me: failed program was:" >&5
31231sed 's/^/| /' conftest.$ac_ext >&5
31232
31233eval "$as_ac_var=no"
31234fi
ac1cb8d3
VS
31235rm -f conftest.err conftest.$ac_objext \
31236 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31237fi
31238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31239echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31240if test `eval echo '${'$as_ac_var'}'` = yes; then
31241 cat >>confdefs.h <<_ACEOF
31242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31243_ACEOF
31244
31245fi
31246done
31247
31248else
31249 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31250echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31251fi
31252
31253
31254
31255ac_ext=cc
31256ac_cpp='$CXXCPP $CPPFLAGS'
31257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31260
31261
31262
31263for ac_func in vsnprintf
31264do
31265as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31266echo "$as_me:$LINENO: checking for $ac_func" >&5
31267echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31268if eval "test \"\${$as_ac_var+set}\" = set"; then
31269 echo $ECHO_N "(cached) $ECHO_C" >&6
31270else
31271 cat >conftest.$ac_ext <<_ACEOF
31272/* confdefs.h. */
31273_ACEOF
31274cat confdefs.h >>conftest.$ac_ext
31275cat >>conftest.$ac_ext <<_ACEOF
31276/* end confdefs.h. */
ac1cb8d3
VS
31277/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31279#define $ac_func innocuous_$ac_func
31280
a848cd7e
SC
31281/* System header to define __stub macros and hopefully few prototypes,
31282 which can conflict with char $ac_func (); below.
31283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31284 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31285
a848cd7e
SC
31286#ifdef __STDC__
31287# include <limits.h>
31288#else
31289# include <assert.h>
31290#endif
ac1cb8d3
VS
31291
31292#undef $ac_func
31293
a848cd7e
SC
31294/* Override any gcc2 internal prototype to avoid an error. */
31295#ifdef __cplusplus
31296extern "C"
31297{
31298#endif
31299/* We use char because int might match the return type of a gcc2
31300 builtin and then its argument prototype would still apply. */
31301char $ac_func ();
31302/* The GNU C library defines this for functions which it implements
31303 to always fail with ENOSYS. Some functions are actually named
31304 something starting with __ and the normal name is an alias. */
31305#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31306choke me
31307#else
31308char (*f) () = $ac_func;
31309#endif
31310#ifdef __cplusplus
31311}
31312#endif
31313
31314int
31315main ()
31316{
31317return f != $ac_func;
31318 ;
31319 return 0;
31320}
31321_ACEOF
31322rm -f conftest.$ac_objext conftest$ac_exeext
31323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31324 (eval $ac_link) 2>conftest.er1
a848cd7e 31325 ac_status=$?
ac1cb8d3
VS
31326 grep -v '^ *+' conftest.er1 >conftest.err
31327 rm -f conftest.er1
31328 cat conftest.err >&5
a848cd7e
SC
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); } &&
8c539582 31331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31333 (eval $ac_try) 2>&5
31334 ac_status=$?
31335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336 (exit $ac_status); }; } &&
31337 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31339 (eval $ac_try) 2>&5
31340 ac_status=$?
31341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342 (exit $ac_status); }; }; then
31343 eval "$as_ac_var=yes"
31344else
31345 echo "$as_me: failed program was:" >&5
31346sed 's/^/| /' conftest.$ac_ext >&5
31347
31348eval "$as_ac_var=no"
31349fi
ac1cb8d3
VS
31350rm -f conftest.err conftest.$ac_objext \
31351 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31352fi
31353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31354echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31355if test `eval echo '${'$as_ac_var'}'` = yes; then
31356 cat >>confdefs.h <<_ACEOF
31357#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31358_ACEOF
31359
31360fi
31361done
31362
31363
31364if test "$ac_cv_func_vsnprintf" = "yes"; then
31365 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31366echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31367if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31368 echo $ECHO_N "(cached) $ECHO_C" >&6
31369else
31370
31371 cat >conftest.$ac_ext <<_ACEOF
31372/* confdefs.h. */
31373_ACEOF
31374cat confdefs.h >>conftest.$ac_ext
31375cat >>conftest.$ac_ext <<_ACEOF
31376/* end confdefs.h. */
31377
31378 #include <stdio.h>
31379 #include <stdarg.h>
31380
31381int
31382main ()
31383{
31384
31385 char *buf;
31386 va_list ap;
31387 vsnprintf(buf, 10u, "%s", ap);
31388
31389 ;
31390 return 0;
31391}
31392_ACEOF
31393rm -f conftest.$ac_objext
31394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31395 (eval $ac_compile) 2>conftest.er1
a848cd7e 31396 ac_status=$?
ac1cb8d3
VS
31397 grep -v '^ *+' conftest.er1 >conftest.err
31398 rm -f conftest.er1
31399 cat conftest.err >&5
a848cd7e
SC
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); } &&
8c539582 31402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31404 (eval $ac_try) 2>&5
31405 ac_status=$?
31406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407 (exit $ac_status); }; } &&
31408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31410 (eval $ac_try) 2>&5
31411 ac_status=$?
31412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413 (exit $ac_status); }; }; then
31414 wx_cv_func_vsnprintf_decl=yes
31415else
31416 echo "$as_me: failed program was:" >&5
31417sed 's/^/| /' conftest.$ac_ext >&5
31418
c122b164
DE
31419
31420 cat >conftest.$ac_ext <<_ACEOF
31421/* confdefs.h. */
31422_ACEOF
31423cat confdefs.h >>conftest.$ac_ext
31424cat >>conftest.$ac_ext <<_ACEOF
31425/* end confdefs.h. */
31426
31427 #include <stdio.h>
31428 #include <stdarg.h>
31429 using namespace std;
31430
31431int
31432main ()
31433{
31434
31435 char *buf;
31436 va_list ap;
31437 vsnprintf(buf, 10u, "%s", ap);
31438
31439 ;
31440 return 0;
31441}
31442_ACEOF
31443rm -f conftest.$ac_objext
31444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31445 (eval $ac_compile) 2>conftest.er1
31446 ac_status=$?
31447 grep -v '^ *+' conftest.er1 >conftest.err
31448 rm -f conftest.er1
31449 cat conftest.err >&5
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); } &&
8c539582 31452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31454 (eval $ac_try) 2>&5
31455 ac_status=$?
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); }; } &&
31458 { ac_try='test -s conftest.$ac_objext'
31459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31460 (eval $ac_try) 2>&5
31461 ac_status=$?
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; }; then
31464 wx_cv_func_vsnprintf_decl=yes
31465else
31466 echo "$as_me: failed program was:" >&5
31467sed 's/^/| /' conftest.$ac_ext >&5
31468
a848cd7e
SC
31469wx_cv_func_vsnprintf_decl=no
31470
31471fi
ac1cb8d3 31472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31473
31474
c122b164
DE
31475fi
31476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31477
31478
a848cd7e
SC
31479fi
31480echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31481echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31482
31483 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31484 cat >>confdefs.h <<\_ACEOF
31485#define HAVE_VSNPRINTF_DECL 1
31486_ACEOF
31487
31488 fi
31489fi
31490
31491if test "$wxUSE_UNICODE" = yes; then
31492
31493
31494
fbe47c7b
VS
31495
31496
31497
31498for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31499do
31500as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31501echo "$as_me:$LINENO: checking for $ac_func" >&5
31502echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31503if eval "test \"\${$as_ac_var+set}\" = set"; then
31504 echo $ECHO_N "(cached) $ECHO_C" >&6
31505else
31506 cat >conftest.$ac_ext <<_ACEOF
31507/* confdefs.h. */
31508_ACEOF
31509cat confdefs.h >>conftest.$ac_ext
31510cat >>conftest.$ac_ext <<_ACEOF
31511/* end confdefs.h. */
ac1cb8d3
VS
31512/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31514#define $ac_func innocuous_$ac_func
31515
a848cd7e
SC
31516/* System header to define __stub macros and hopefully few prototypes,
31517 which can conflict with char $ac_func (); below.
31518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31519 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31520
a848cd7e
SC
31521#ifdef __STDC__
31522# include <limits.h>
31523#else
31524# include <assert.h>
31525#endif
ac1cb8d3
VS
31526
31527#undef $ac_func
31528
a848cd7e
SC
31529/* Override any gcc2 internal prototype to avoid an error. */
31530#ifdef __cplusplus
31531extern "C"
31532{
31533#endif
31534/* We use char because int might match the return type of a gcc2
31535 builtin and then its argument prototype would still apply. */
31536char $ac_func ();
31537/* The GNU C library defines this for functions which it implements
31538 to always fail with ENOSYS. Some functions are actually named
31539 something starting with __ and the normal name is an alias. */
31540#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31541choke me
31542#else
31543char (*f) () = $ac_func;
31544#endif
31545#ifdef __cplusplus
31546}
31547#endif
31548
31549int
31550main ()
31551{
31552return f != $ac_func;
31553 ;
31554 return 0;
31555}
31556_ACEOF
31557rm -f conftest.$ac_objext conftest$ac_exeext
31558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31559 (eval $ac_link) 2>conftest.er1
a848cd7e 31560 ac_status=$?
ac1cb8d3
VS
31561 grep -v '^ *+' conftest.er1 >conftest.err
31562 rm -f conftest.er1
31563 cat conftest.err >&5
a848cd7e
SC
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); } &&
8c539582 31566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31568 (eval $ac_try) 2>&5
31569 ac_status=$?
31570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571 (exit $ac_status); }; } &&
31572 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31574 (eval $ac_try) 2>&5
31575 ac_status=$?
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; }; then
31578 eval "$as_ac_var=yes"
31579else
31580 echo "$as_me: failed program was:" >&5
31581sed 's/^/| /' conftest.$ac_ext >&5
31582
31583eval "$as_ac_var=no"
31584fi
ac1cb8d3
VS
31585rm -f conftest.err conftest.$ac_objext \
31586 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31587fi
31588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31589echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31590if test `eval echo '${'$as_ac_var'}'` = yes; then
31591 cat >>confdefs.h <<_ACEOF
31592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31593_ACEOF
31594
31595fi
31596done
31597
31598
31599 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31600echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31601 cat >conftest.$ac_ext <<_ACEOF
31602/* confdefs.h. */
31603_ACEOF
31604cat confdefs.h >>conftest.$ac_ext
31605cat >>conftest.$ac_ext <<_ACEOF
31606/* end confdefs.h. */
31607#include <wchar.h>
31608int
31609main ()
31610{
31611&_vsnwprintf;
31612 ;
31613 return 0;
31614}
31615_ACEOF
31616rm -f conftest.$ac_objext
31617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31618 (eval $ac_compile) 2>conftest.er1
a848cd7e 31619 ac_status=$?
ac1cb8d3
VS
31620 grep -v '^ *+' conftest.er1 >conftest.err
31621 rm -f conftest.er1
31622 cat conftest.err >&5
a848cd7e
SC
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); } &&
8c539582 31625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31627 (eval $ac_try) 2>&5
31628 ac_status=$?
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); }; } &&
31631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31633 (eval $ac_try) 2>&5
31634 ac_status=$?
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); }; }; then
31637 echo "$as_me:$LINENO: result: yes" >&5
31638echo "${ECHO_T}yes" >&6
31639 cat >>confdefs.h <<\_ACEOF
31640#define HAVE__VSNWPRINTF 1
31641_ACEOF
31642
31643else
31644 echo "$as_me: failed program was:" >&5
31645sed 's/^/| /' conftest.$ac_ext >&5
31646
31647echo "$as_me:$LINENO: result: no" >&5
31648echo "${ECHO_T}no" >&6
31649fi
ac1cb8d3 31650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31651fi
31652
31653ac_ext=c
31654ac_cpp='$CPP $CPPFLAGS'
31655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31657ac_compiler_gnu=$ac_cv_c_compiler_gnu
31658
31659
31660
31661
31662if test "$TOOLKIT" != "MSW"; then
31663
31664
31665
31666
31667ac_ext=cc
31668ac_cpp='$CXXCPP $CPPFLAGS'
31669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31672
31673
31674
31675
31676# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31677if test "${with_libiconv_prefix+set}" = set; then
31678 withval="$with_libiconv_prefix"
31679
31680 for dir in `echo "$withval" | tr : ' '`; do
31681 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31682 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31683 done
31684
31685fi;
31686
31687 echo "$as_me:$LINENO: checking for iconv" >&5
31688echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31689if test "${am_cv_func_iconv+set}" = set; then
31690 echo $ECHO_N "(cached) $ECHO_C" >&6
31691else
31692
31693 am_cv_func_iconv="no, consider installing GNU libiconv"
31694 am_cv_lib_iconv=no
31695 cat >conftest.$ac_ext <<_ACEOF
31696/* confdefs.h. */
31697_ACEOF
31698cat confdefs.h >>conftest.$ac_ext
31699cat >>conftest.$ac_ext <<_ACEOF
31700/* end confdefs.h. */
31701#include <stdlib.h>
31702#include <iconv.h>
31703int
31704main ()
31705{
31706iconv_t cd = iconv_open("","");
31707 iconv(cd,NULL,NULL,NULL,NULL);
31708 iconv_close(cd);
31709 ;
31710 return 0;
31711}
31712_ACEOF
31713rm -f conftest.$ac_objext conftest$ac_exeext
31714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31715 (eval $ac_link) 2>conftest.er1
a848cd7e 31716 ac_status=$?
ac1cb8d3
VS
31717 grep -v '^ *+' conftest.er1 >conftest.err
31718 rm -f conftest.er1
31719 cat conftest.err >&5
a848cd7e
SC
31720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31721 (exit $ac_status); } &&
8c539582 31722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31724 (eval $ac_try) 2>&5
31725 ac_status=$?
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); }; } &&
31728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31730 (eval $ac_try) 2>&5
31731 ac_status=$?
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); }; }; then
31734 am_cv_func_iconv=yes
31735else
31736 echo "$as_me: failed program was:" >&5
31737sed 's/^/| /' conftest.$ac_ext >&5
31738
31739fi
ac1cb8d3
VS
31740rm -f conftest.err conftest.$ac_objext \
31741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31742 if test "$am_cv_func_iconv" != yes; then
31743 am_save_LIBS="$LIBS"
31744 LIBS="$LIBS -liconv"
31745 cat >conftest.$ac_ext <<_ACEOF
31746/* confdefs.h. */
31747_ACEOF
31748cat confdefs.h >>conftest.$ac_ext
31749cat >>conftest.$ac_ext <<_ACEOF
31750/* end confdefs.h. */
31751#include <stdlib.h>
31752#include <iconv.h>
31753int
31754main ()
31755{
31756iconv_t cd = iconv_open("","");
31757 iconv(cd,NULL,NULL,NULL,NULL);
31758 iconv_close(cd);
31759 ;
31760 return 0;
31761}
31762_ACEOF
31763rm -f conftest.$ac_objext conftest$ac_exeext
31764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31765 (eval $ac_link) 2>conftest.er1
a848cd7e 31766 ac_status=$?
ac1cb8d3
VS
31767 grep -v '^ *+' conftest.er1 >conftest.err
31768 rm -f conftest.er1
31769 cat conftest.err >&5
a848cd7e
SC
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); } &&
8c539582 31772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31774 (eval $ac_try) 2>&5
31775 ac_status=$?
31776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777 (exit $ac_status); }; } &&
31778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31780 (eval $ac_try) 2>&5
31781 ac_status=$?
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); }; }; then
31784 am_cv_lib_iconv=yes
31785 am_cv_func_iconv=yes
31786else
31787 echo "$as_me: failed program was:" >&5
31788sed 's/^/| /' conftest.$ac_ext >&5
31789
31790fi
ac1cb8d3
VS
31791rm -f conftest.err conftest.$ac_objext \
31792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31793 LIBS="$am_save_LIBS"
31794 fi
31795
31796fi
31797echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31798echo "${ECHO_T}$am_cv_func_iconv" >&6
31799 if test "$am_cv_func_iconv" = yes; then
31800
31801cat >>confdefs.h <<\_ACEOF
31802#define HAVE_ICONV 1
31803_ACEOF
31804
31805 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31806echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31807if test "${wx_cv_func_iconv_const+set}" = set; then
31808 echo $ECHO_N "(cached) $ECHO_C" >&6
31809else
31810 cat >conftest.$ac_ext <<_ACEOF
31811/* confdefs.h. */
31812_ACEOF
31813cat confdefs.h >>conftest.$ac_ext
31814cat >>conftest.$ac_ext <<_ACEOF
31815/* end confdefs.h. */
31816
31817#include <stdlib.h>
31818#include <iconv.h>
31819extern
31820#ifdef __cplusplus
31821"C"
31822#endif
31823#if defined(__STDC__) || defined(__cplusplus)
31824size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31825#else
31826size_t iconv();
31827#endif
31828
31829int
31830main ()
31831{
31832
31833 ;
31834 return 0;
31835}
31836_ACEOF
31837rm -f conftest.$ac_objext
31838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31839 (eval $ac_compile) 2>conftest.er1
a848cd7e 31840 ac_status=$?
ac1cb8d3
VS
31841 grep -v '^ *+' conftest.er1 >conftest.err
31842 rm -f conftest.er1
31843 cat conftest.err >&5
a848cd7e
SC
31844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 (exit $ac_status); } &&
8c539582 31846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31848 (eval $ac_try) 2>&5
31849 ac_status=$?
31850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 (exit $ac_status); }; } &&
31852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31854 (eval $ac_try) 2>&5
31855 ac_status=$?
31856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857 (exit $ac_status); }; }; then
31858 wx_cv_func_iconv_const="no"
31859else
31860 echo "$as_me: failed program was:" >&5
31861sed 's/^/| /' conftest.$ac_ext >&5
31862
31863wx_cv_func_iconv_const="yes"
31864
31865fi
ac1cb8d3 31866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31867
31868fi
31869echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31870echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31871
31872 iconv_const=
31873 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31874 iconv_const="const"
31875 fi
31876
31877
31878cat >>confdefs.h <<_ACEOF
31879#define ICONV_CONST $iconv_const
31880_ACEOF
31881
31882 fi
31883 LIBICONV=
31884 if test "$am_cv_lib_iconv" = yes; then
31885 LIBICONV="-liconv"
31886 fi
31887
31888
31889LIBS="$LIBICONV $LIBS"
31890ac_ext=c
31891ac_cpp='$CPP $CPPFLAGS'
31892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31894ac_compiler_gnu=$ac_cv_c_compiler_gnu
31895
31896
31897if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31898
31899for ac_func in sigaction
31900do
31901as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31902echo "$as_me:$LINENO: checking for $ac_func" >&5
31903echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31904if eval "test \"\${$as_ac_var+set}\" = set"; then
31905 echo $ECHO_N "(cached) $ECHO_C" >&6
31906else
31907 cat >conftest.$ac_ext <<_ACEOF
31908/* confdefs.h. */
31909_ACEOF
31910cat confdefs.h >>conftest.$ac_ext
31911cat >>conftest.$ac_ext <<_ACEOF
31912/* end confdefs.h. */
ac1cb8d3
VS
31913/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31915#define $ac_func innocuous_$ac_func
31916
a848cd7e
SC
31917/* System header to define __stub macros and hopefully few prototypes,
31918 which can conflict with char $ac_func (); below.
31919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31920 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31921
a848cd7e
SC
31922#ifdef __STDC__
31923# include <limits.h>
31924#else
31925# include <assert.h>
31926#endif
ac1cb8d3
VS
31927
31928#undef $ac_func
31929
a848cd7e
SC
31930/* Override any gcc2 internal prototype to avoid an error. */
31931#ifdef __cplusplus
31932extern "C"
31933{
31934#endif
31935/* We use char because int might match the return type of a gcc2
31936 builtin and then its argument prototype would still apply. */
31937char $ac_func ();
31938/* The GNU C library defines this for functions which it implements
31939 to always fail with ENOSYS. Some functions are actually named
31940 something starting with __ and the normal name is an alias. */
31941#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31942choke me
31943#else
31944char (*f) () = $ac_func;
31945#endif
31946#ifdef __cplusplus
31947}
31948#endif
31949
31950int
31951main ()
31952{
31953return f != $ac_func;
31954 ;
31955 return 0;
31956}
31957_ACEOF
31958rm -f conftest.$ac_objext conftest$ac_exeext
31959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31960 (eval $ac_link) 2>conftest.er1
a848cd7e 31961 ac_status=$?
ac1cb8d3
VS
31962 grep -v '^ *+' conftest.er1 >conftest.err
31963 rm -f conftest.er1
31964 cat conftest.err >&5
a848cd7e
SC
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); } &&
8c539582 31967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31969 (eval $ac_try) 2>&5
31970 ac_status=$?
31971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); }; } &&
31973 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31975 (eval $ac_try) 2>&5
31976 ac_status=$?
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); }; }; then
31979 eval "$as_ac_var=yes"
31980else
31981 echo "$as_me: failed program was:" >&5
31982sed 's/^/| /' conftest.$ac_ext >&5
31983
31984eval "$as_ac_var=no"
31985fi
ac1cb8d3
VS
31986rm -f conftest.err conftest.$ac_objext \
31987 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31988fi
31989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31990echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31991if test `eval echo '${'$as_ac_var'}'` = yes; then
31992 cat >>confdefs.h <<_ACEOF
31993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31994_ACEOF
31995
31996fi
31997done
31998
31999
32000 if test "$ac_cv_func_sigaction" = "no"; then
32001 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
32002echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
32003 wxUSE_ON_FATAL_EXCEPTION=no
32004 fi
32005
32006 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32007
32008
32009 ac_ext=cc
32010ac_cpp='$CXXCPP $CPPFLAGS'
32011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32014
32015
32016 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32017echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32018if test "${wx_cv_type_sa_handler+set}" = set; then
32019 echo $ECHO_N "(cached) $ECHO_C" >&6
32020else
32021
32022 cat >conftest.$ac_ext <<_ACEOF
32023/* confdefs.h. */
32024_ACEOF
32025cat confdefs.h >>conftest.$ac_ext
32026cat >>conftest.$ac_ext <<_ACEOF
32027/* end confdefs.h. */
32028#include <signal.h>
32029int
32030main ()
32031{
32032
32033 extern void testSigHandler(int);
32034
32035 struct sigaction sa;
32036 sa.sa_handler = testSigHandler;
32037
32038 ;
32039 return 0;
32040}
32041_ACEOF
32042rm -f conftest.$ac_objext
32043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32044 (eval $ac_compile) 2>conftest.er1
a848cd7e 32045 ac_status=$?
ac1cb8d3
VS
32046 grep -v '^ *+' conftest.er1 >conftest.err
32047 rm -f conftest.er1
32048 cat conftest.err >&5
a848cd7e
SC
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); } &&
8c539582 32051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32053 (eval $ac_try) 2>&5
32054 ac_status=$?
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); }; } &&
32057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32059 (eval $ac_try) 2>&5
32060 ac_status=$?
32061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); }; }; then
32063
32064 wx_cv_type_sa_handler=int
32065
32066else
32067 echo "$as_me: failed program was:" >&5
32068sed 's/^/| /' conftest.$ac_ext >&5
32069
32070
32071 wx_cv_type_sa_handler=void
32072
32073fi
ac1cb8d3 32074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32075
32076fi
32077echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32078echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32079
32080 ac_ext=c
32081ac_cpp='$CPP $CPPFLAGS'
32082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32084ac_compiler_gnu=$ac_cv_c_compiler_gnu
32085
32086
32087 cat >>confdefs.h <<_ACEOF
32088#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32089_ACEOF
32090
32091 fi
32092fi
32093
eaff0f0d
VZ
32094if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32095
32096
32097 ac_ext=cc
32098ac_cpp='$CXXCPP $CPPFLAGS'
32099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32102
32103
32104 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32105echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32106if test "${wx_cv_func_backtrace+set}" = set; then
32107 echo $ECHO_N "(cached) $ECHO_C" >&6
32108else
32109
32110 cat >conftest.$ac_ext <<_ACEOF
32111/* confdefs.h. */
32112_ACEOF
32113cat confdefs.h >>conftest.$ac_ext
32114cat >>conftest.$ac_ext <<_ACEOF
32115/* end confdefs.h. */
32116#include <execinfo.h>
32117int
32118main ()
32119{
32120
32121 void *trace[1];
32122 char **messages;
32123
32124 backtrace(trace, 1);
32125 messages = backtrace_symbols(trace, 1);
32126
32127 ;
32128 return 0;
32129}
32130_ACEOF
32131rm -f conftest.$ac_objext
32132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32133 (eval $ac_compile) 2>conftest.er1
32134 ac_status=$?
32135 grep -v '^ *+' conftest.er1 >conftest.err
32136 rm -f conftest.er1
32137 cat conftest.err >&5
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); } &&
8c539582 32140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32142 (eval $ac_try) 2>&5
32143 ac_status=$?
32144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); }; } &&
32146 { ac_try='test -s conftest.$ac_objext'
32147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32148 (eval $ac_try) 2>&5
32149 ac_status=$?
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); }; }; then
32152 wx_cv_func_backtrace=yes
32153else
32154 echo "$as_me: failed program was:" >&5
32155sed 's/^/| /' conftest.$ac_ext >&5
32156
32157wx_cv_func_backtrace=no
32158
32159fi
32160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32161
32162
32163fi
32164echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32165echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32166
32167
32168 if test "$wx_cv_func_backtrace" = "no"; then
32169 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32170echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32171 wxUSE_STACKWALKER=no
32172 else
32173 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32174echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32175if test "${wx_cv_func_cxa_demangle+set}" = set; then
32176 echo $ECHO_N "(cached) $ECHO_C" >&6
32177else
32178
32179 cat >conftest.$ac_ext <<_ACEOF
32180/* confdefs.h. */
32181_ACEOF
32182cat confdefs.h >>conftest.$ac_ext
32183cat >>conftest.$ac_ext <<_ACEOF
32184/* end confdefs.h. */
32185#include <cxxabi.h>
32186int
32187main ()
32188{
32189
32190 int rc;
32191 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32192
32193 ;
32194 return 0;
32195}
32196_ACEOF
dfe0c803
JS
32197rm -f conftest.$ac_objext conftest$ac_exeext
32198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32199 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32200 ac_status=$?
32201 grep -v '^ *+' conftest.er1 >conftest.err
32202 rm -f conftest.er1
32203 cat conftest.err >&5
32204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); } &&
8c539582 32206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208 (eval $ac_try) 2>&5
32209 ac_status=$?
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; } &&
dfe0c803 32212 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
32213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32214 (eval $ac_try) 2>&5
32215 ac_status=$?
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); }; }; then
32218 wx_cv_func_cxa_demangle=yes
32219else
32220 echo "$as_me: failed program was:" >&5
32221sed 's/^/| /' conftest.$ac_ext >&5
32222
32223wx_cv_func_cxa_demangle=no
32224
32225fi
dfe0c803
JS
32226rm -f conftest.err conftest.$ac_objext \
32227 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32228
32229
32230fi
32231echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32232echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32233
32234 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32235 cat >>confdefs.h <<\_ACEOF
32236#define HAVE_CXA_DEMANGLE 1
32237_ACEOF
32238
32239 fi
32240 fi
32241
32242 ac_ext=c
32243ac_cpp='$CPP $CPPFLAGS'
32244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32246ac_compiler_gnu=$ac_cv_c_compiler_gnu
32247
32248fi
32249
898beab1
DE
32250if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32251 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32252echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32253 wxUSE_STACKWALKER=no
32254fi
32255
32256
a848cd7e
SC
32257
32258
32259for ac_func in mkstemp mktemp
32260do
32261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32262echo "$as_me:$LINENO: checking for $ac_func" >&5
32263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32264if eval "test \"\${$as_ac_var+set}\" = set"; then
32265 echo $ECHO_N "(cached) $ECHO_C" >&6
32266else
32267 cat >conftest.$ac_ext <<_ACEOF
32268/* confdefs.h. */
32269_ACEOF
32270cat confdefs.h >>conftest.$ac_ext
32271cat >>conftest.$ac_ext <<_ACEOF
32272/* end confdefs.h. */
ac1cb8d3
VS
32273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32275#define $ac_func innocuous_$ac_func
32276
a848cd7e
SC
32277/* System header to define __stub macros and hopefully few prototypes,
32278 which can conflict with char $ac_func (); below.
32279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32280 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32281
a848cd7e
SC
32282#ifdef __STDC__
32283# include <limits.h>
32284#else
32285# include <assert.h>
32286#endif
ac1cb8d3
VS
32287
32288#undef $ac_func
32289
a848cd7e
SC
32290/* Override any gcc2 internal prototype to avoid an error. */
32291#ifdef __cplusplus
32292extern "C"
32293{
32294#endif
32295/* We use char because int might match the return type of a gcc2
32296 builtin and then its argument prototype would still apply. */
32297char $ac_func ();
32298/* The GNU C library defines this for functions which it implements
32299 to always fail with ENOSYS. Some functions are actually named
32300 something starting with __ and the normal name is an alias. */
32301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32302choke me
32303#else
32304char (*f) () = $ac_func;
32305#endif
32306#ifdef __cplusplus
32307}
32308#endif
32309
32310int
32311main ()
32312{
32313return f != $ac_func;
32314 ;
32315 return 0;
32316}
32317_ACEOF
32318rm -f conftest.$ac_objext conftest$ac_exeext
32319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32320 (eval $ac_link) 2>conftest.er1
a848cd7e 32321 ac_status=$?
ac1cb8d3
VS
32322 grep -v '^ *+' conftest.er1 >conftest.err
32323 rm -f conftest.er1
32324 cat conftest.err >&5
a848cd7e
SC
32325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326 (exit $ac_status); } &&
8c539582 32327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32329 (eval $ac_try) 2>&5
32330 ac_status=$?
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); }; } &&
32333 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32335 (eval $ac_try) 2>&5
32336 ac_status=$?
32337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32338 (exit $ac_status); }; }; then
32339 eval "$as_ac_var=yes"
32340else
32341 echo "$as_me: failed program was:" >&5
32342sed 's/^/| /' conftest.$ac_ext >&5
32343
32344eval "$as_ac_var=no"
32345fi
ac1cb8d3
VS
32346rm -f conftest.err conftest.$ac_objext \
32347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32348fi
32349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32350echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32351if test `eval echo '${'$as_ac_var'}'` = yes; then
32352 cat >>confdefs.h <<_ACEOF
32353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32354_ACEOF
32355 break
32356fi
32357done
32358
32359
32360echo "$as_me:$LINENO: checking for statfs" >&5
32361echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32362if test "${wx_cv_func_statfs+set}" = set; then
32363 echo $ECHO_N "(cached) $ECHO_C" >&6
32364else
32365 cat >conftest.$ac_ext <<_ACEOF
32366/* confdefs.h. */
32367_ACEOF
32368cat confdefs.h >>conftest.$ac_ext
32369cat >>conftest.$ac_ext <<_ACEOF
32370/* end confdefs.h. */
32371
32372 #if defined(__BSD__)
32373 #include <sys/param.h>
32374 #include <sys/mount.h>
32375 #else
32376 #include <sys/vfs.h>
32377 #endif
32378
32379int
32380main ()
32381{
32382
32383 long l;
32384 struct statfs fs;
32385 statfs("/", &fs);
32386 l = fs.f_bsize;
32387 l += fs.f_blocks;
32388 l += fs.f_bavail;
32389
32390 ;
32391 return 0;
32392}
32393_ACEOF
32394rm -f conftest.$ac_objext
32395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32396 (eval $ac_compile) 2>conftest.er1
a848cd7e 32397 ac_status=$?
ac1cb8d3
VS
32398 grep -v '^ *+' conftest.er1 >conftest.err
32399 rm -f conftest.er1
32400 cat conftest.err >&5
a848cd7e
SC
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); } &&
8c539582 32403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
32409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32411 (eval $ac_try) 2>&5
32412 ac_status=$?
32413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); }; }; then
32415
32416 wx_cv_func_statfs=yes
32417
32418else
32419 echo "$as_me: failed program was:" >&5
32420sed 's/^/| /' conftest.$ac_ext >&5
32421
32422
32423 wx_cv_func_statfs=no
32424
32425
32426fi
ac1cb8d3 32427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32428
32429fi
32430echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32431echo "${ECHO_T}$wx_cv_func_statfs" >&6
32432
32433if test "$wx_cv_func_statfs" = "yes"; then
32434 wx_cv_type_statvfs_t="struct statfs"
32435 cat >>confdefs.h <<\_ACEOF
32436#define HAVE_STATFS 1
32437_ACEOF
32438
32439else
32440 echo "$as_me:$LINENO: checking for statvfs" >&5
32441echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32442if test "${wx_cv_func_statvfs+set}" = set; then
32443 echo $ECHO_N "(cached) $ECHO_C" >&6
32444else
32445 cat >conftest.$ac_ext <<_ACEOF
32446/* confdefs.h. */
32447_ACEOF
32448cat confdefs.h >>conftest.$ac_ext
32449cat >>conftest.$ac_ext <<_ACEOF
32450/* end confdefs.h. */
32451
32452 #include <stddef.h>
32453 #include <sys/statvfs.h>
32454
32455int
32456main ()
32457{
32458
32459 statvfs("/", NULL);
32460
32461 ;
32462 return 0;
32463}
32464_ACEOF
32465rm -f conftest.$ac_objext
32466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32467 (eval $ac_compile) 2>conftest.er1
a848cd7e 32468 ac_status=$?
ac1cb8d3
VS
32469 grep -v '^ *+' conftest.er1 >conftest.err
32470 rm -f conftest.er1
32471 cat conftest.err >&5
a848cd7e
SC
32472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473 (exit $ac_status); } &&
8c539582 32474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32476 (eval $ac_try) 2>&5
32477 ac_status=$?
32478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479 (exit $ac_status); }; } &&
32480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32482 (eval $ac_try) 2>&5
32483 ac_status=$?
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; }; then
32486 wx_cv_func_statvfs=yes
32487else
32488 echo "$as_me: failed program was:" >&5
32489sed 's/^/| /' conftest.$ac_ext >&5
32490
32491wx_cv_func_statvfs=no
32492
32493fi
ac1cb8d3 32494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32495
32496fi
32497echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32498echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32499
32500 if test "$wx_cv_func_statvfs" = "yes"; then
32501
32502
32503 ac_ext=cc
32504ac_cpp='$CXXCPP $CPPFLAGS'
32505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32508
32509
32510 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32511echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32512if test "${wx_cv_type_statvfs_t+set}" = set; then
32513 echo $ECHO_N "(cached) $ECHO_C" >&6
32514else
32515 cat >conftest.$ac_ext <<_ACEOF
32516/* confdefs.h. */
32517_ACEOF
32518cat confdefs.h >>conftest.$ac_ext
32519cat >>conftest.$ac_ext <<_ACEOF
32520/* end confdefs.h. */
32521
32522 #include <sys/statvfs.h>
32523
32524int
32525main ()
32526{
32527
32528 long l;
32529 statvfs_t fs;
32530 statvfs("/", &fs);
32531 l = fs.f_bsize;
32532 l += fs.f_blocks;
32533 l += fs.f_bavail;
32534
32535 ;
32536 return 0;
32537}
32538_ACEOF
32539rm -f conftest.$ac_objext
32540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32541 (eval $ac_compile) 2>conftest.er1
a848cd7e 32542 ac_status=$?
ac1cb8d3
VS
32543 grep -v '^ *+' conftest.er1 >conftest.err
32544 rm -f conftest.er1
32545 cat conftest.err >&5
a848cd7e
SC
32546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547 (exit $ac_status); } &&
8c539582 32548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32550 (eval $ac_try) 2>&5
32551 ac_status=$?
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); }; } &&
32554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32556 (eval $ac_try) 2>&5
32557 ac_status=$?
32558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32559 (exit $ac_status); }; }; then
32560 wx_cv_type_statvfs_t=statvfs_t
32561else
32562 echo "$as_me: failed program was:" >&5
32563sed 's/^/| /' conftest.$ac_ext >&5
32564
32565
32566 cat >conftest.$ac_ext <<_ACEOF
32567/* confdefs.h. */
32568_ACEOF
32569cat confdefs.h >>conftest.$ac_ext
32570cat >>conftest.$ac_ext <<_ACEOF
32571/* end confdefs.h. */
32572
32573 #include <sys/statvfs.h>
32574
32575int
32576main ()
32577{
32578
32579 long l;
32580 struct statvfs fs;
32581 statvfs("/", &fs);
32582 l = fs.f_bsize;
32583 l += fs.f_blocks;
32584 l += fs.f_bavail;
32585
32586 ;
32587 return 0;
32588}
32589_ACEOF
32590rm -f conftest.$ac_objext
32591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32592 (eval $ac_compile) 2>conftest.er1
a848cd7e 32593 ac_status=$?
ac1cb8d3
VS
32594 grep -v '^ *+' conftest.er1 >conftest.err
32595 rm -f conftest.er1
32596 cat conftest.err >&5
a848cd7e
SC
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); } &&
8c539582 32599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32601 (eval $ac_try) 2>&5
32602 ac_status=$?
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); }; } &&
32605 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32607 (eval $ac_try) 2>&5
32608 ac_status=$?
32609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32610 (exit $ac_status); }; }; then
32611 wx_cv_type_statvfs_t="struct statvfs"
32612else
32613 echo "$as_me: failed program was:" >&5
32614sed 's/^/| /' conftest.$ac_ext >&5
32615
32616wx_cv_type_statvfs_t="unknown"
32617
32618fi
ac1cb8d3 32619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32620
32621
32622fi
ac1cb8d3 32623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32624
32625fi
32626echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32627echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32628
32629 ac_ext=c
32630ac_cpp='$CPP $CPPFLAGS'
32631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32633ac_compiler_gnu=$ac_cv_c_compiler_gnu
32634
32635
32636 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32637 cat >>confdefs.h <<\_ACEOF
32638#define HAVE_STATVFS 1
32639_ACEOF
32640
32641 fi
32642 else
32643 wx_cv_type_statvfs_t="unknown"
32644 fi
32645fi
32646
32647if test "$wx_cv_type_statvfs_t" != "unknown"; then
32648 cat >>confdefs.h <<_ACEOF
32649#define WX_STATFS_T $wx_cv_type_statvfs_t
32650_ACEOF
32651
32652else
32653 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32654echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32655fi
32656
32657if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32658
32659
32660for ac_func in fcntl flock
32661do
32662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32663echo "$as_me:$LINENO: checking for $ac_func" >&5
32664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32665if eval "test \"\${$as_ac_var+set}\" = set"; then
32666 echo $ECHO_N "(cached) $ECHO_C" >&6
32667else
32668 cat >conftest.$ac_ext <<_ACEOF
32669/* confdefs.h. */
32670_ACEOF
32671cat confdefs.h >>conftest.$ac_ext
32672cat >>conftest.$ac_ext <<_ACEOF
32673/* end confdefs.h. */
ac1cb8d3
VS
32674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32676#define $ac_func innocuous_$ac_func
32677
a848cd7e
SC
32678/* System header to define __stub macros and hopefully few prototypes,
32679 which can conflict with char $ac_func (); below.
32680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32681 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32682
a848cd7e
SC
32683#ifdef __STDC__
32684# include <limits.h>
32685#else
32686# include <assert.h>
32687#endif
ac1cb8d3
VS
32688
32689#undef $ac_func
32690
a848cd7e
SC
32691/* Override any gcc2 internal prototype to avoid an error. */
32692#ifdef __cplusplus
32693extern "C"
32694{
32695#endif
32696/* We use char because int might match the return type of a gcc2
32697 builtin and then its argument prototype would still apply. */
32698char $ac_func ();
32699/* The GNU C library defines this for functions which it implements
32700 to always fail with ENOSYS. Some functions are actually named
32701 something starting with __ and the normal name is an alias. */
32702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32703choke me
32704#else
32705char (*f) () = $ac_func;
32706#endif
32707#ifdef __cplusplus
32708}
32709#endif
32710
32711int
32712main ()
32713{
32714return f != $ac_func;
32715 ;
32716 return 0;
32717}
32718_ACEOF
32719rm -f conftest.$ac_objext conftest$ac_exeext
32720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32721 (eval $ac_link) 2>conftest.er1
a848cd7e 32722 ac_status=$?
ac1cb8d3
VS
32723 grep -v '^ *+' conftest.er1 >conftest.err
32724 rm -f conftest.er1
32725 cat conftest.err >&5
a848cd7e
SC
32726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); } &&
8c539582 32728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32730 (eval $ac_try) 2>&5
32731 ac_status=$?
32732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733 (exit $ac_status); }; } &&
32734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32736 (eval $ac_try) 2>&5
32737 ac_status=$?
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); }; }; then
32740 eval "$as_ac_var=yes"
32741else
32742 echo "$as_me: failed program was:" >&5
32743sed 's/^/| /' conftest.$ac_ext >&5
32744
32745eval "$as_ac_var=no"
32746fi
ac1cb8d3
VS
32747rm -f conftest.err conftest.$ac_objext \
32748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32749fi
32750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32752if test `eval echo '${'$as_ac_var'}'` = yes; then
32753 cat >>confdefs.h <<_ACEOF
32754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32755_ACEOF
32756 break
32757fi
32758done
32759
32760
32761 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32762 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32763echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32764 wxUSE_SNGLINST_CHECKER=no
32765 fi
32766fi
32767
32768
32769for ac_func in timegm
32770do
32771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32772echo "$as_me:$LINENO: checking for $ac_func" >&5
32773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32774if eval "test \"\${$as_ac_var+set}\" = set"; then
32775 echo $ECHO_N "(cached) $ECHO_C" >&6
32776else
32777 cat >conftest.$ac_ext <<_ACEOF
32778/* confdefs.h. */
32779_ACEOF
32780cat confdefs.h >>conftest.$ac_ext
32781cat >>conftest.$ac_ext <<_ACEOF
32782/* end confdefs.h. */
ac1cb8d3
VS
32783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32785#define $ac_func innocuous_$ac_func
32786
a848cd7e
SC
32787/* System header to define __stub macros and hopefully few prototypes,
32788 which can conflict with char $ac_func (); below.
32789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32790 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32791
a848cd7e
SC
32792#ifdef __STDC__
32793# include <limits.h>
32794#else
32795# include <assert.h>
32796#endif
ac1cb8d3
VS
32797
32798#undef $ac_func
32799
a848cd7e
SC
32800/* Override any gcc2 internal prototype to avoid an error. */
32801#ifdef __cplusplus
32802extern "C"
32803{
32804#endif
32805/* We use char because int might match the return type of a gcc2
32806 builtin and then its argument prototype would still apply. */
32807char $ac_func ();
32808/* The GNU C library defines this for functions which it implements
32809 to always fail with ENOSYS. Some functions are actually named
32810 something starting with __ and the normal name is an alias. */
32811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32812choke me
32813#else
32814char (*f) () = $ac_func;
32815#endif
32816#ifdef __cplusplus
32817}
32818#endif
32819
32820int
32821main ()
32822{
32823return f != $ac_func;
32824 ;
32825 return 0;
32826}
32827_ACEOF
32828rm -f conftest.$ac_objext conftest$ac_exeext
32829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32830 (eval $ac_link) 2>conftest.er1
a848cd7e 32831 ac_status=$?
ac1cb8d3
VS
32832 grep -v '^ *+' conftest.er1 >conftest.err
32833 rm -f conftest.er1
32834 cat conftest.err >&5
a848cd7e
SC
32835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32836 (exit $ac_status); } &&
8c539582 32837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32839 (eval $ac_try) 2>&5
32840 ac_status=$?
32841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842 (exit $ac_status); }; } &&
32843 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32845 (eval $ac_try) 2>&5
32846 ac_status=$?
32847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848 (exit $ac_status); }; }; then
32849 eval "$as_ac_var=yes"
32850else
32851 echo "$as_me: failed program was:" >&5
32852sed 's/^/| /' conftest.$ac_ext >&5
32853
32854eval "$as_ac_var=no"
32855fi
ac1cb8d3
VS
32856rm -f conftest.err conftest.$ac_objext \
32857 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32858fi
32859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32860echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32861if test `eval echo '${'$as_ac_var'}'` = yes; then
32862 cat >>confdefs.h <<_ACEOF
32863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32864_ACEOF
32865
32866fi
32867done
32868
32869
32870
32871
32872for ac_func in putenv setenv
32873do
32874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32875echo "$as_me:$LINENO: checking for $ac_func" >&5
32876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32877if eval "test \"\${$as_ac_var+set}\" = set"; then
32878 echo $ECHO_N "(cached) $ECHO_C" >&6
32879else
32880 cat >conftest.$ac_ext <<_ACEOF
32881/* confdefs.h. */
32882_ACEOF
32883cat confdefs.h >>conftest.$ac_ext
32884cat >>conftest.$ac_ext <<_ACEOF
32885/* end confdefs.h. */
ac1cb8d3
VS
32886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32888#define $ac_func innocuous_$ac_func
32889
a848cd7e
SC
32890/* System header to define __stub macros and hopefully few prototypes,
32891 which can conflict with char $ac_func (); below.
32892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32893 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32894
a848cd7e
SC
32895#ifdef __STDC__
32896# include <limits.h>
32897#else
32898# include <assert.h>
32899#endif
ac1cb8d3
VS
32900
32901#undef $ac_func
32902
a848cd7e
SC
32903/* Override any gcc2 internal prototype to avoid an error. */
32904#ifdef __cplusplus
32905extern "C"
32906{
32907#endif
32908/* We use char because int might match the return type of a gcc2
32909 builtin and then its argument prototype would still apply. */
32910char $ac_func ();
32911/* The GNU C library defines this for functions which it implements
32912 to always fail with ENOSYS. Some functions are actually named
32913 something starting with __ and the normal name is an alias. */
32914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32915choke me
32916#else
32917char (*f) () = $ac_func;
32918#endif
32919#ifdef __cplusplus
32920}
32921#endif
32922
32923int
32924main ()
32925{
32926return f != $ac_func;
32927 ;
32928 return 0;
32929}
32930_ACEOF
32931rm -f conftest.$ac_objext conftest$ac_exeext
32932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32933 (eval $ac_link) 2>conftest.er1
a848cd7e 32934 ac_status=$?
ac1cb8d3
VS
32935 grep -v '^ *+' conftest.er1 >conftest.err
32936 rm -f conftest.er1
32937 cat conftest.err >&5
a848cd7e
SC
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); } &&
8c539582 32940 { ac_try='test -z "$ac_c_werror_flag" || 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); } &&
8c539582 33061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33063 (eval $ac_try) 2>&5
33064 ac_status=$?
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); }; } &&
33067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33069 (eval $ac_try) 2>&5
33070 ac_status=$?
33071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072 (exit $ac_status); }; }; then
33073 eval "$as_ac_var=yes"
33074else
33075 echo "$as_me: failed program was:" >&5
33076sed 's/^/| /' conftest.$ac_ext >&5
33077
33078eval "$as_ac_var=no"
33079fi
ac1cb8d3
VS
33080rm -f conftest.err conftest.$ac_objext \
33081 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33082fi
33083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33084echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33085if test `eval echo '${'$as_ac_var'}'` = yes; then
33086 cat >>confdefs.h <<_ACEOF
33087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33088_ACEOF
33089 cat >>confdefs.h <<\_ACEOF
33090#define HAVE_NANOSLEEP 1
33091_ACEOF
33092
33093else
33094
33095 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33096echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33097if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33098 echo $ECHO_N "(cached) $ECHO_C" >&6
33099else
33100 ac_check_lib_save_LIBS=$LIBS
33101LIBS="-lposix4 $LIBS"
33102cat >conftest.$ac_ext <<_ACEOF
33103/* confdefs.h. */
33104_ACEOF
33105cat confdefs.h >>conftest.$ac_ext
33106cat >>conftest.$ac_ext <<_ACEOF
33107/* end confdefs.h. */
33108
33109/* Override any gcc2 internal prototype to avoid an error. */
33110#ifdef __cplusplus
33111extern "C"
33112#endif
33113/* We use char because int might match the return type of a gcc2
33114 builtin and then its argument prototype would still apply. */
33115char nanosleep ();
33116int
33117main ()
33118{
33119nanosleep ();
33120 ;
33121 return 0;
33122}
33123_ACEOF
33124rm -f conftest.$ac_objext conftest$ac_exeext
33125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33126 (eval $ac_link) 2>conftest.er1
a848cd7e 33127 ac_status=$?
ac1cb8d3
VS
33128 grep -v '^ *+' conftest.er1 >conftest.err
33129 rm -f conftest.er1
33130 cat conftest.err >&5
a848cd7e
SC
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); } &&
8c539582 33133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33135 (eval $ac_try) 2>&5
33136 ac_status=$?
33137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138 (exit $ac_status); }; } &&
33139 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33141 (eval $ac_try) 2>&5
33142 ac_status=$?
33143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144 (exit $ac_status); }; }; then
33145 ac_cv_lib_posix4_nanosleep=yes
33146else
33147 echo "$as_me: failed program was:" >&5
33148sed 's/^/| /' conftest.$ac_ext >&5
33149
33150ac_cv_lib_posix4_nanosleep=no
33151fi
ac1cb8d3
VS
33152rm -f conftest.err conftest.$ac_objext \
33153 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33154LIBS=$ac_check_lib_save_LIBS
33155fi
33156echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33157echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33158if test $ac_cv_lib_posix4_nanosleep = yes; then
33159
33160 cat >>confdefs.h <<\_ACEOF
33161#define HAVE_NANOSLEEP 1
33162_ACEOF
33163
33164 POSIX4_LINK=" -lposix4"
33165
33166else
33167
33168
33169for ac_func in usleep
33170do
33171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33172echo "$as_me:$LINENO: checking for $ac_func" >&5
33173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33174if eval "test \"\${$as_ac_var+set}\" = set"; then
33175 echo $ECHO_N "(cached) $ECHO_C" >&6
33176else
33177 cat >conftest.$ac_ext <<_ACEOF
33178/* confdefs.h. */
33179_ACEOF
33180cat confdefs.h >>conftest.$ac_ext
33181cat >>conftest.$ac_ext <<_ACEOF
33182/* end confdefs.h. */
ac1cb8d3
VS
33183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33185#define $ac_func innocuous_$ac_func
33186
a848cd7e
SC
33187/* System header to define __stub macros and hopefully few prototypes,
33188 which can conflict with char $ac_func (); below.
33189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33190 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33191
a848cd7e
SC
33192#ifdef __STDC__
33193# include <limits.h>
33194#else
33195# include <assert.h>
33196#endif
ac1cb8d3
VS
33197
33198#undef $ac_func
33199
a848cd7e
SC
33200/* Override any gcc2 internal prototype to avoid an error. */
33201#ifdef __cplusplus
33202extern "C"
33203{
33204#endif
33205/* We use char because int might match the return type of a gcc2
33206 builtin and then its argument prototype would still apply. */
33207char $ac_func ();
33208/* The GNU C library defines this for functions which it implements
33209 to always fail with ENOSYS. Some functions are actually named
33210 something starting with __ and the normal name is an alias. */
33211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33212choke me
33213#else
33214char (*f) () = $ac_func;
33215#endif
33216#ifdef __cplusplus
33217}
33218#endif
33219
33220int
33221main ()
33222{
33223return f != $ac_func;
33224 ;
33225 return 0;
33226}
33227_ACEOF
33228rm -f conftest.$ac_objext conftest$ac_exeext
33229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33230 (eval $ac_link) 2>conftest.er1
a848cd7e 33231 ac_status=$?
ac1cb8d3
VS
33232 grep -v '^ *+' conftest.er1 >conftest.err
33233 rm -f conftest.er1
33234 cat conftest.err >&5
a848cd7e
SC
33235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236 (exit $ac_status); } &&
8c539582 33237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33239 (eval $ac_try) 2>&5
33240 ac_status=$?
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); }; } &&
33243 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33245 (eval $ac_try) 2>&5
33246 ac_status=$?
33247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248 (exit $ac_status); }; }; then
33249 eval "$as_ac_var=yes"
33250else
33251 echo "$as_me: failed program was:" >&5
33252sed 's/^/| /' conftest.$ac_ext >&5
33253
33254eval "$as_ac_var=no"
33255fi
ac1cb8d3
VS
33256rm -f conftest.err conftest.$ac_objext \
33257 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33258fi
33259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33261if test `eval echo '${'$as_ac_var'}'` = yes; then
33262 cat >>confdefs.h <<_ACEOF
33263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33264_ACEOF
33265 cat >>confdefs.h <<\_ACEOF
33266#define HAVE_USLEEP 1
33267_ACEOF
33268
33269else
33270 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33271echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33272
33273fi
33274done
33275
33276
33277
33278fi
33279
33280
33281
33282fi
33283done
33284
33285fi
33286
33287
33288
33289for ac_func in uname gethostname
33290do
33291as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33292echo "$as_me:$LINENO: checking for $ac_func" >&5
33293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33294if eval "test \"\${$as_ac_var+set}\" = set"; then
33295 echo $ECHO_N "(cached) $ECHO_C" >&6
33296else
33297 cat >conftest.$ac_ext <<_ACEOF
33298/* confdefs.h. */
33299_ACEOF
33300cat confdefs.h >>conftest.$ac_ext
33301cat >>conftest.$ac_ext <<_ACEOF
33302/* end confdefs.h. */
ac1cb8d3
VS
33303/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33305#define $ac_func innocuous_$ac_func
33306
a848cd7e
SC
33307/* System header to define __stub macros and hopefully few prototypes,
33308 which can conflict with char $ac_func (); below.
33309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33310 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33311
a848cd7e
SC
33312#ifdef __STDC__
33313# include <limits.h>
33314#else
33315# include <assert.h>
33316#endif
ac1cb8d3
VS
33317
33318#undef $ac_func
33319
a848cd7e
SC
33320/* Override any gcc2 internal prototype to avoid an error. */
33321#ifdef __cplusplus
33322extern "C"
33323{
33324#endif
33325/* We use char because int might match the return type of a gcc2
33326 builtin and then its argument prototype would still apply. */
33327char $ac_func ();
33328/* The GNU C library defines this for functions which it implements
33329 to always fail with ENOSYS. Some functions are actually named
33330 something starting with __ and the normal name is an alias. */
33331#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33332choke me
33333#else
33334char (*f) () = $ac_func;
33335#endif
33336#ifdef __cplusplus
33337}
33338#endif
33339
33340int
33341main ()
33342{
33343return f != $ac_func;
33344 ;
33345 return 0;
33346}
33347_ACEOF
33348rm -f conftest.$ac_objext conftest$ac_exeext
33349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33350 (eval $ac_link) 2>conftest.er1
a848cd7e 33351 ac_status=$?
ac1cb8d3
VS
33352 grep -v '^ *+' conftest.er1 >conftest.err
33353 rm -f conftest.er1
33354 cat conftest.err >&5
a848cd7e
SC
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); } &&
8c539582 33357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33359 (eval $ac_try) 2>&5
33360 ac_status=$?
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); }; } &&
33363 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33365 (eval $ac_try) 2>&5
33366 ac_status=$?
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368 (exit $ac_status); }; }; then
33369 eval "$as_ac_var=yes"
33370else
33371 echo "$as_me: failed program was:" >&5
33372sed 's/^/| /' conftest.$ac_ext >&5
33373
33374eval "$as_ac_var=no"
33375fi
ac1cb8d3
VS
33376rm -f conftest.err conftest.$ac_objext \
33377 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33378fi
33379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33380echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33381if test `eval echo '${'$as_ac_var'}'` = yes; then
33382 cat >>confdefs.h <<_ACEOF
33383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33384_ACEOF
33385 break
33386fi
33387done
33388
33389
33390
33391
33392ac_ext=cc
33393ac_cpp='$CXXCPP $CPPFLAGS'
33394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33397
33398
33399
33400for ac_func in strtok_r
33401do
33402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33403echo "$as_me:$LINENO: checking for $ac_func" >&5
33404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33405if eval "test \"\${$as_ac_var+set}\" = set"; then
33406 echo $ECHO_N "(cached) $ECHO_C" >&6
33407else
33408 cat >conftest.$ac_ext <<_ACEOF
33409/* confdefs.h. */
33410_ACEOF
33411cat confdefs.h >>conftest.$ac_ext
33412cat >>conftest.$ac_ext <<_ACEOF
33413/* end confdefs.h. */
ac1cb8d3
VS
33414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33416#define $ac_func innocuous_$ac_func
33417
a848cd7e
SC
33418/* System header to define __stub macros and hopefully few prototypes,
33419 which can conflict with char $ac_func (); below.
33420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33421 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33422
a848cd7e
SC
33423#ifdef __STDC__
33424# include <limits.h>
33425#else
33426# include <assert.h>
33427#endif
ac1cb8d3
VS
33428
33429#undef $ac_func
33430
a848cd7e
SC
33431/* Override any gcc2 internal prototype to avoid an error. */
33432#ifdef __cplusplus
33433extern "C"
33434{
33435#endif
33436/* We use char because int might match the return type of a gcc2
33437 builtin and then its argument prototype would still apply. */
33438char $ac_func ();
33439/* The GNU C library defines this for functions which it implements
33440 to always fail with ENOSYS. Some functions are actually named
33441 something starting with __ and the normal name is an alias. */
33442#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33443choke me
33444#else
33445char (*f) () = $ac_func;
33446#endif
33447#ifdef __cplusplus
33448}
33449#endif
33450
33451int
33452main ()
33453{
33454return f != $ac_func;
33455 ;
33456 return 0;
33457}
33458_ACEOF
33459rm -f conftest.$ac_objext conftest$ac_exeext
33460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33461 (eval $ac_link) 2>conftest.er1
a848cd7e 33462 ac_status=$?
ac1cb8d3
VS
33463 grep -v '^ *+' conftest.er1 >conftest.err
33464 rm -f conftest.er1
33465 cat conftest.err >&5
a848cd7e
SC
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); } &&
8c539582 33468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33470 (eval $ac_try) 2>&5
33471 ac_status=$?
33472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473 (exit $ac_status); }; } &&
33474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33476 (eval $ac_try) 2>&5
33477 ac_status=$?
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); }; }; then
33480 eval "$as_ac_var=yes"
33481else
33482 echo "$as_me: failed program was:" >&5
33483sed 's/^/| /' conftest.$ac_ext >&5
33484
33485eval "$as_ac_var=no"
33486fi
ac1cb8d3
VS
33487rm -f conftest.err conftest.$ac_objext \
33488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33489fi
33490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33491echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33492if test `eval echo '${'$as_ac_var'}'` = yes; then
33493 cat >>confdefs.h <<_ACEOF
33494#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33495_ACEOF
33496
33497fi
33498done
33499
33500
33501ac_ext=c
33502ac_cpp='$CPP $CPPFLAGS'
33503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33505ac_compiler_gnu=$ac_cv_c_compiler_gnu
33506
33507
33508INET_LINK=
33509
33510for ac_func in inet_addr
33511do
33512as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33513echo "$as_me:$LINENO: checking for $ac_func" >&5
33514echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33515if eval "test \"\${$as_ac_var+set}\" = set"; then
33516 echo $ECHO_N "(cached) $ECHO_C" >&6
33517else
33518 cat >conftest.$ac_ext <<_ACEOF
33519/* confdefs.h. */
33520_ACEOF
33521cat confdefs.h >>conftest.$ac_ext
33522cat >>conftest.$ac_ext <<_ACEOF
33523/* end confdefs.h. */
ac1cb8d3
VS
33524/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33526#define $ac_func innocuous_$ac_func
33527
a848cd7e
SC
33528/* System header to define __stub macros and hopefully few prototypes,
33529 which can conflict with char $ac_func (); below.
33530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33531 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33532
a848cd7e
SC
33533#ifdef __STDC__
33534# include <limits.h>
33535#else
33536# include <assert.h>
33537#endif
ac1cb8d3
VS
33538
33539#undef $ac_func
33540
a848cd7e
SC
33541/* Override any gcc2 internal prototype to avoid an error. */
33542#ifdef __cplusplus
33543extern "C"
33544{
33545#endif
33546/* We use char because int might match the return type of a gcc2
33547 builtin and then its argument prototype would still apply. */
33548char $ac_func ();
33549/* The GNU C library defines this for functions which it implements
33550 to always fail with ENOSYS. Some functions are actually named
33551 something starting with __ and the normal name is an alias. */
33552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33553choke me
33554#else
33555char (*f) () = $ac_func;
33556#endif
33557#ifdef __cplusplus
33558}
33559#endif
33560
33561int
33562main ()
33563{
33564return f != $ac_func;
33565 ;
33566 return 0;
33567}
33568_ACEOF
33569rm -f conftest.$ac_objext conftest$ac_exeext
33570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33571 (eval $ac_link) 2>conftest.er1
a848cd7e 33572 ac_status=$?
ac1cb8d3
VS
33573 grep -v '^ *+' conftest.er1 >conftest.err
33574 rm -f conftest.er1
33575 cat conftest.err >&5
a848cd7e
SC
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); } &&
8c539582 33578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33580 (eval $ac_try) 2>&5
33581 ac_status=$?
33582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583 (exit $ac_status); }; } &&
33584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33590 eval "$as_ac_var=yes"
33591else
33592 echo "$as_me: failed program was:" >&5
33593sed 's/^/| /' conftest.$ac_ext >&5
33594
33595eval "$as_ac_var=no"
33596fi
ac1cb8d3
VS
33597rm -f conftest.err conftest.$ac_objext \
33598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33599fi
33600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33601echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33602if test `eval echo '${'$as_ac_var'}'` = yes; then
33603 cat >>confdefs.h <<_ACEOF
33604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33605_ACEOF
33606 cat >>confdefs.h <<\_ACEOF
33607#define HAVE_INET_ADDR 1
33608_ACEOF
33609
33610else
33611
33612 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33613echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33614if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33615 echo $ECHO_N "(cached) $ECHO_C" >&6
33616else
33617 ac_check_lib_save_LIBS=$LIBS
33618LIBS="-lnsl $LIBS"
33619cat >conftest.$ac_ext <<_ACEOF
33620/* confdefs.h. */
33621_ACEOF
33622cat confdefs.h >>conftest.$ac_ext
33623cat >>conftest.$ac_ext <<_ACEOF
33624/* end confdefs.h. */
33625
33626/* Override any gcc2 internal prototype to avoid an error. */
33627#ifdef __cplusplus
33628extern "C"
33629#endif
33630/* We use char because int might match the return type of a gcc2
33631 builtin and then its argument prototype would still apply. */
33632char inet_addr ();
33633int
33634main ()
33635{
33636inet_addr ();
33637 ;
33638 return 0;
33639}
33640_ACEOF
33641rm -f conftest.$ac_objext conftest$ac_exeext
33642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33643 (eval $ac_link) 2>conftest.er1
a848cd7e 33644 ac_status=$?
ac1cb8d3
VS
33645 grep -v '^ *+' conftest.er1 >conftest.err
33646 rm -f conftest.er1
33647 cat conftest.err >&5
a848cd7e
SC
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); } &&
8c539582 33650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33652 (eval $ac_try) 2>&5
33653 ac_status=$?
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); }; } &&
33656 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33658 (eval $ac_try) 2>&5
33659 ac_status=$?
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); }; }; then
33662 ac_cv_lib_nsl_inet_addr=yes
33663else
33664 echo "$as_me: failed program was:" >&5
33665sed 's/^/| /' conftest.$ac_ext >&5
33666
33667ac_cv_lib_nsl_inet_addr=no
33668fi
ac1cb8d3
VS
33669rm -f conftest.err conftest.$ac_objext \
33670 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33671LIBS=$ac_check_lib_save_LIBS
33672fi
33673echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33674echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33675if test $ac_cv_lib_nsl_inet_addr = yes; then
33676 INET_LINK="nsl"
33677else
33678
33679 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33680echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33681if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33682 echo $ECHO_N "(cached) $ECHO_C" >&6
33683else
33684 ac_check_lib_save_LIBS=$LIBS
33685LIBS="-lresolv $LIBS"
33686cat >conftest.$ac_ext <<_ACEOF
33687/* confdefs.h. */
33688_ACEOF
33689cat confdefs.h >>conftest.$ac_ext
33690cat >>conftest.$ac_ext <<_ACEOF
33691/* end confdefs.h. */
33692
33693/* Override any gcc2 internal prototype to avoid an error. */
33694#ifdef __cplusplus
33695extern "C"
33696#endif
33697/* We use char because int might match the return type of a gcc2
33698 builtin and then its argument prototype would still apply. */
33699char inet_addr ();
33700int
33701main ()
33702{
33703inet_addr ();
33704 ;
33705 return 0;
33706}
33707_ACEOF
33708rm -f conftest.$ac_objext conftest$ac_exeext
33709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33710 (eval $ac_link) 2>conftest.er1
a848cd7e 33711 ac_status=$?
ac1cb8d3
VS
33712 grep -v '^ *+' conftest.er1 >conftest.err
33713 rm -f conftest.er1
33714 cat conftest.err >&5
a848cd7e
SC
33715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716 (exit $ac_status); } &&
8c539582 33717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33719 (eval $ac_try) 2>&5
33720 ac_status=$?
33721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722 (exit $ac_status); }; } &&
33723 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33725 (eval $ac_try) 2>&5
33726 ac_status=$?
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); }; }; then
33729 ac_cv_lib_resolv_inet_addr=yes
33730else
33731 echo "$as_me: failed program was:" >&5
33732sed 's/^/| /' conftest.$ac_ext >&5
33733
33734ac_cv_lib_resolv_inet_addr=no
33735fi
ac1cb8d3
VS
33736rm -f conftest.err conftest.$ac_objext \
33737 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33738LIBS=$ac_check_lib_save_LIBS
33739fi
33740echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33741echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33742if test $ac_cv_lib_resolv_inet_addr = yes; then
33743 INET_LINK="resolv"
33744else
33745
33746 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33747echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33748if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33749 echo $ECHO_N "(cached) $ECHO_C" >&6
33750else
33751 ac_check_lib_save_LIBS=$LIBS
33752LIBS="-lsocket $LIBS"
33753cat >conftest.$ac_ext <<_ACEOF
33754/* confdefs.h. */
33755_ACEOF
33756cat confdefs.h >>conftest.$ac_ext
33757cat >>conftest.$ac_ext <<_ACEOF
33758/* end confdefs.h. */
33759
33760/* Override any gcc2 internal prototype to avoid an error. */
33761#ifdef __cplusplus
33762extern "C"
33763#endif
33764/* We use char because int might match the return type of a gcc2
33765 builtin and then its argument prototype would still apply. */
33766char inet_addr ();
33767int
33768main ()
33769{
33770inet_addr ();
33771 ;
33772 return 0;
33773}
33774_ACEOF
33775rm -f conftest.$ac_objext conftest$ac_exeext
33776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33777 (eval $ac_link) 2>conftest.er1
a848cd7e 33778 ac_status=$?
ac1cb8d3
VS
33779 grep -v '^ *+' conftest.er1 >conftest.err
33780 rm -f conftest.er1
33781 cat conftest.err >&5
a848cd7e
SC
33782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33783 (exit $ac_status); } &&
8c539582 33784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33786 (eval $ac_try) 2>&5
33787 ac_status=$?
33788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789 (exit $ac_status); }; } &&
33790 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33792 (eval $ac_try) 2>&5
33793 ac_status=$?
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); }; }; then
33796 ac_cv_lib_socket_inet_addr=yes
33797else
33798 echo "$as_me: failed program was:" >&5
33799sed 's/^/| /' conftest.$ac_ext >&5
33800
33801ac_cv_lib_socket_inet_addr=no
33802fi
ac1cb8d3
VS
33803rm -f conftest.err conftest.$ac_objext \
33804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33805LIBS=$ac_check_lib_save_LIBS
33806fi
33807echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33808echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33809if test $ac_cv_lib_socket_inet_addr = yes; then
33810 INET_LINK="socket"
33811
33812fi
33813
33814
33815
33816fi
33817
33818
33819
33820fi
33821
33822
33823
33824fi
33825done
33826
33827
33828
33829for ac_func in inet_aton
33830do
33831as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33832echo "$as_me:$LINENO: checking for $ac_func" >&5
33833echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33834if eval "test \"\${$as_ac_var+set}\" = set"; then
33835 echo $ECHO_N "(cached) $ECHO_C" >&6
33836else
33837 cat >conftest.$ac_ext <<_ACEOF
33838/* confdefs.h. */
33839_ACEOF
33840cat confdefs.h >>conftest.$ac_ext
33841cat >>conftest.$ac_ext <<_ACEOF
33842/* end confdefs.h. */
ac1cb8d3
VS
33843/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33845#define $ac_func innocuous_$ac_func
33846
a848cd7e
SC
33847/* System header to define __stub macros and hopefully few prototypes,
33848 which can conflict with char $ac_func (); below.
33849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33850 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33851
a848cd7e
SC
33852#ifdef __STDC__
33853# include <limits.h>
33854#else
33855# include <assert.h>
33856#endif
ac1cb8d3
VS
33857
33858#undef $ac_func
33859
a848cd7e
SC
33860/* Override any gcc2 internal prototype to avoid an error. */
33861#ifdef __cplusplus
33862extern "C"
33863{
33864#endif
33865/* We use char because int might match the return type of a gcc2
33866 builtin and then its argument prototype would still apply. */
33867char $ac_func ();
33868/* The GNU C library defines this for functions which it implements
33869 to always fail with ENOSYS. Some functions are actually named
33870 something starting with __ and the normal name is an alias. */
33871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33872choke me
33873#else
33874char (*f) () = $ac_func;
33875#endif
33876#ifdef __cplusplus
33877}
33878#endif
33879
33880int
33881main ()
33882{
33883return f != $ac_func;
33884 ;
33885 return 0;
33886}
33887_ACEOF
33888rm -f conftest.$ac_objext conftest$ac_exeext
33889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33890 (eval $ac_link) 2>conftest.er1
a848cd7e 33891 ac_status=$?
ac1cb8d3
VS
33892 grep -v '^ *+' conftest.er1 >conftest.err
33893 rm -f conftest.er1
33894 cat conftest.err >&5
a848cd7e
SC
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); } &&
8c539582 33897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33899 (eval $ac_try) 2>&5
33900 ac_status=$?
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); }; } &&
33903 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33905 (eval $ac_try) 2>&5
33906 ac_status=$?
33907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33908 (exit $ac_status); }; }; then
33909 eval "$as_ac_var=yes"
33910else
33911 echo "$as_me: failed program was:" >&5
33912sed 's/^/| /' conftest.$ac_ext >&5
33913
33914eval "$as_ac_var=no"
33915fi
ac1cb8d3
VS
33916rm -f conftest.err conftest.$ac_objext \
33917 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33918fi
33919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33920echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33921if test `eval echo '${'$as_ac_var'}'` = yes; then
33922 cat >>confdefs.h <<_ACEOF
33923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33924_ACEOF
33925 cat >>confdefs.h <<\_ACEOF
33926#define HAVE_INET_ATON 1
33927_ACEOF
33928
33929else
33930
33931 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33932echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33933echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33934if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33935 echo $ECHO_N "(cached) $ECHO_C" >&6
33936else
33937 ac_check_lib_save_LIBS=$LIBS
33938LIBS="-l$INET_LINK $LIBS"
33939cat >conftest.$ac_ext <<_ACEOF
33940/* confdefs.h. */
33941_ACEOF
33942cat confdefs.h >>conftest.$ac_ext
33943cat >>conftest.$ac_ext <<_ACEOF
33944/* end confdefs.h. */
33945
33946/* Override any gcc2 internal prototype to avoid an error. */
33947#ifdef __cplusplus
33948extern "C"
33949#endif
33950/* We use char because int might match the return type of a gcc2
33951 builtin and then its argument prototype would still apply. */
33952char inet_aton ();
33953int
33954main ()
33955{
33956inet_aton ();
33957 ;
33958 return 0;
33959}
33960_ACEOF
33961rm -f conftest.$ac_objext conftest$ac_exeext
33962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33963 (eval $ac_link) 2>conftest.er1
a848cd7e 33964 ac_status=$?
ac1cb8d3
VS
33965 grep -v '^ *+' conftest.er1 >conftest.err
33966 rm -f conftest.er1
33967 cat conftest.err >&5
a848cd7e
SC
33968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969 (exit $ac_status); } &&
8c539582 33970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33972 (eval $ac_try) 2>&5
33973 ac_status=$?
33974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33975 (exit $ac_status); }; } &&
33976 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33978 (eval $ac_try) 2>&5
33979 ac_status=$?
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); }; }; then
33982 eval "$as_ac_Lib=yes"
33983else
33984 echo "$as_me: failed program was:" >&5
33985sed 's/^/| /' conftest.$ac_ext >&5
33986
33987eval "$as_ac_Lib=no"
33988fi
ac1cb8d3
VS
33989rm -f conftest.err conftest.$ac_objext \
33990 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33991LIBS=$ac_check_lib_save_LIBS
33992fi
33993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33994echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33995if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33996 cat >>confdefs.h <<\_ACEOF
33997#define HAVE_INET_ATON 1
33998_ACEOF
33999
34000fi
34001
34002
34003fi
34004done
34005
34006
34007if test "x$INET_LINK" != "x"; then
34008 cat >>confdefs.h <<\_ACEOF
34009#define HAVE_INET_ADDR 1
34010_ACEOF
34011
34012 INET_LINK=" -l$INET_LINK"
34013fi
34014
34015fi
34016
34017
34018
34019EXTRALIBS_ESD=
34020echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34021echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34022if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34023 echo $ECHO_N "(cached) $ECHO_C" >&6
34024else
34025 ac_check_lib_save_LIBS=$LIBS
34026LIBS="-lesd $LIBS"
34027cat >conftest.$ac_ext <<_ACEOF
34028/* confdefs.h. */
34029_ACEOF
34030cat confdefs.h >>conftest.$ac_ext
34031cat >>conftest.$ac_ext <<_ACEOF
34032/* end confdefs.h. */
34033
34034/* Override any gcc2 internal prototype to avoid an error. */
34035#ifdef __cplusplus
34036extern "C"
34037#endif
34038/* We use char because int might match the return type of a gcc2
34039 builtin and then its argument prototype would still apply. */
34040char esd_close ();
34041int
34042main ()
34043{
34044esd_close ();
34045 ;
34046 return 0;
34047}
34048_ACEOF
34049rm -f conftest.$ac_objext conftest$ac_exeext
34050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34051 (eval $ac_link) 2>conftest.er1
a848cd7e 34052 ac_status=$?
ac1cb8d3
VS
34053 grep -v '^ *+' conftest.er1 >conftest.err
34054 rm -f conftest.er1
34055 cat conftest.err >&5
a848cd7e
SC
34056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 (exit $ac_status); } &&
8c539582 34058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34060 (eval $ac_try) 2>&5
34061 ac_status=$?
34062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063 (exit $ac_status); }; } &&
34064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34066 (eval $ac_try) 2>&5
34067 ac_status=$?
34068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069 (exit $ac_status); }; }; then
34070 ac_cv_lib_esd_esd_close=yes
34071else
34072 echo "$as_me: failed program was:" >&5
34073sed 's/^/| /' conftest.$ac_ext >&5
34074
34075ac_cv_lib_esd_esd_close=no
34076fi
ac1cb8d3
VS
34077rm -f conftest.err conftest.$ac_objext \
34078 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34079LIBS=$ac_check_lib_save_LIBS
34080fi
34081echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34082echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34083if test $ac_cv_lib_esd_esd_close = yes; then
34084
34085
34086for ac_header in esd.h
34087do
34088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34089if eval "test \"\${$as_ac_Header+set}\" = set"; then
34090 echo "$as_me:$LINENO: checking for $ac_header" >&5
34091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34092if eval "test \"\${$as_ac_Header+set}\" = set"; then
34093 echo $ECHO_N "(cached) $ECHO_C" >&6
34094fi
34095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34097else
34098 # Is the header compilable?
34099echo "$as_me:$LINENO: checking $ac_header usability" >&5
34100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34101cat >conftest.$ac_ext <<_ACEOF
34102/* confdefs.h. */
34103_ACEOF
34104cat confdefs.h >>conftest.$ac_ext
34105cat >>conftest.$ac_ext <<_ACEOF
34106/* end confdefs.h. */
34107$ac_includes_default
34108#include <$ac_header>
34109_ACEOF
34110rm -f conftest.$ac_objext
34111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34112 (eval $ac_compile) 2>conftest.er1
a848cd7e 34113 ac_status=$?
ac1cb8d3
VS
34114 grep -v '^ *+' conftest.er1 >conftest.err
34115 rm -f conftest.er1
34116 cat conftest.err >&5
a848cd7e
SC
34117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118 (exit $ac_status); } &&
8c539582 34119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34121 (eval $ac_try) 2>&5
34122 ac_status=$?
34123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124 (exit $ac_status); }; } &&
34125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34127 (eval $ac_try) 2>&5
34128 ac_status=$?
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); }; }; then
34131 ac_header_compiler=yes
34132else
34133 echo "$as_me: failed program was:" >&5
34134sed 's/^/| /' conftest.$ac_ext >&5
34135
34136ac_header_compiler=no
34137fi
ac1cb8d3 34138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34139echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34140echo "${ECHO_T}$ac_header_compiler" >&6
34141
34142# Is the header present?
34143echo "$as_me:$LINENO: checking $ac_header presence" >&5
34144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34145cat >conftest.$ac_ext <<_ACEOF
34146/* confdefs.h. */
34147_ACEOF
34148cat confdefs.h >>conftest.$ac_ext
34149cat >>conftest.$ac_ext <<_ACEOF
34150/* end confdefs.h. */
34151#include <$ac_header>
34152_ACEOF
34153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34155 ac_status=$?
34156 grep -v '^ *+' conftest.er1 >conftest.err
34157 rm -f conftest.er1
34158 cat conftest.err >&5
34159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160 (exit $ac_status); } >/dev/null; then
34161 if test -s conftest.err; then
34162 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34164 else
34165 ac_cpp_err=
34166 fi
34167else
34168 ac_cpp_err=yes
34169fi
34170if test -z "$ac_cpp_err"; then
34171 ac_header_preproc=yes
34172else
34173 echo "$as_me: failed program was:" >&5
34174sed 's/^/| /' conftest.$ac_ext >&5
34175
34176 ac_header_preproc=no
34177fi
34178rm -f conftest.err conftest.$ac_ext
34179echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34180echo "${ECHO_T}$ac_header_preproc" >&6
34181
34182# So? What about this header?
ac1cb8d3
VS
34183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34184 yes:no: )
a848cd7e
SC
34185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34189 ac_header_preproc=yes
a848cd7e 34190 ;;
ac1cb8d3 34191 no:yes:* )
a848cd7e
SC
34192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34195echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34199echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34204 (
34205 cat <<\_ASBOX
ac1cb8d3
VS
34206## ----------------------------------------- ##
34207## Report this to wx-dev@lists.wxwidgets.org ##
34208## ----------------------------------------- ##
a848cd7e
SC
34209_ASBOX
34210 ) |
34211 sed "s/^/$as_me: WARNING: /" >&2
34212 ;;
34213esac
34214echo "$as_me:$LINENO: checking for $ac_header" >&5
34215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34216if eval "test \"\${$as_ac_Header+set}\" = set"; then
34217 echo $ECHO_N "(cached) $ECHO_C" >&6
34218else
ac1cb8d3 34219 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34220fi
34221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34223
34224fi
34225if test `eval echo '${'$as_ac_Header'}'` = yes; then
34226 cat >>confdefs.h <<_ACEOF
34227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34228_ACEOF
34229
34230 EXTRALIBS_ESD="-lesd"
34231
34232fi
34233
34234done
34235
34236
34237fi
34238
34239
34240
34241echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34242echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34243cat >conftest.$ac_ext <<_ACEOF
34244/* confdefs.h. */
34245_ACEOF
34246cat confdefs.h >>conftest.$ac_ext
34247cat >>conftest.$ac_ext <<_ACEOF
34248/* end confdefs.h. */
34249#ifdef __linux__
34250 #include <linux/cdrom.h>
34251 #else
34252 /* For Solaris */
34253 #include <sys/cdio.h>
34254 #endif
34255
34256int
34257main ()
34258{
34259struct cdrom_tocentry entry, old_entry;
34260 ;
34261 return 0;
34262}
34263_ACEOF
34264rm -f conftest.$ac_objext
34265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34266 (eval $ac_compile) 2>conftest.er1
a848cd7e 34267 ac_status=$?
ac1cb8d3
VS
34268 grep -v '^ *+' conftest.er1 >conftest.err
34269 rm -f conftest.er1
34270 cat conftest.err >&5
a848cd7e
SC
34271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272 (exit $ac_status); } &&
8c539582 34273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34275 (eval $ac_try) 2>&5
34276 ac_status=$?
34277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278 (exit $ac_status); }; } &&
34279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34281 (eval $ac_try) 2>&5
34282 ac_status=$?
34283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34284 (exit $ac_status); }; }; then
34285 echo "$as_me:$LINENO: result: yes" >&5
34286echo "${ECHO_T}yes" >&6
34287 cat >>confdefs.h <<\_ACEOF
34288#define HAVE_KNOWN_CDROM_INTERFACE 1
34289_ACEOF
34290
34291else
34292 echo "$as_me: failed program was:" >&5
34293sed 's/^/| /' conftest.$ac_ext >&5
34294
34295echo "$as_me:$LINENO: result: no" >&5
34296echo "${ECHO_T}no" >&6
34297fi
ac1cb8d3 34298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34299
34300
34301cat >confcache <<\_ACEOF
34302# This file is a shell script that caches the results of configure
34303# tests run on this system so they can be shared between configure
34304# scripts and configure runs, see configure's option --config-cache.
34305# It is not useful on other systems. If it contains results you don't
34306# want to keep, you may remove or edit it.
34307#
34308# config.status only pays attention to the cache file if you give it
34309# the --recheck option to rerun configure.
34310#
34311# `ac_cv_env_foo' variables (set or unset) will be overridden when
34312# loading this file, other *unset* `ac_cv_foo' will be assigned the
34313# following values.
34314
34315_ACEOF
34316
34317# The following way of writing the cache mishandles newlines in values,
34318# but we know of no workaround that is simple, portable, and efficient.
34319# So, don't put newlines in cache variables' values.
34320# Ultrix sh set writes to stderr and can't be redirected directly,
34321# and sets the high bit in the cache file unless we assign to the vars.
34322{
34323 (set) 2>&1 |
34324 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34325 *ac_space=\ *)
34326 # `set' does not quote correctly, so add quotes (double-quote
34327 # substitution turns \\\\ into \\, and sed turns \\ into \).
34328 sed -n \
ac1cb8d3
VS
34329 "s/'/'\\\\''/g;
34330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34331 ;;
34332 *)
34333 # `set' quotes correctly as required by POSIX, so do not add quotes.
34334 sed -n \
ac1cb8d3 34335 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34336 ;;
34337 esac;
34338} |
34339 sed '
34340 t clear
34341 : clear
34342 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34343 t end
34344 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34345 : end' >>confcache
34346if diff $cache_file confcache >/dev/null 2>&1; then :; else
34347 if test -w $cache_file; then
34348 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34349 cat confcache >$cache_file
34350 else
34351 echo "not updating unwritable cache $cache_file"
34352 fi
34353fi
34354rm -f confcache
34355
34356
34357CPP_MT_FLAG=
34358if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34359
34360
34361 THREADS_LINK=
34362 THREADS_CFLAGS=
34363
34364 if test "$wxUSE_THREADS" = "yes" ; then
34365 if test "$USE_BEOS" = 1; then
34366 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34367echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34368 wxUSE_THREADS="no"
34369 fi
34370 fi
34371
34372 if test "$wxUSE_THREADS" = "yes" ; then
34373
34374
34375 THREAD_OPTS="-pthread"
34376 case "${host}" in
34377 *-*-solaris2* | *-*-sunos4* )
34378 if test "x$GCC" = "xyes"; then
34379 THREAD_OPTS="-pthreads $THREAD_OPTS"
34380 else
34381 THREAD_OPTS="-mt $THREAD_OPTS"
34382 fi
34383 ;;
34384 *-*-freebsd*)
34385 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34386 ;;
34387 *-*-darwin* | *-*-cygwin* )
34388 THREAD_OPTS=""
34389 ;;
34390 *-*-aix*)
34391 THREAD_OPTS="pthreads"
34392 ;;
34393 *-hp-hpux* )
34394 if test "x$GCC" != "xyes"; then
34395 THREAD_OPTS=""
34396 fi
34397 ;;
34398
34399 *-*-irix* )
34400 if test "x$GCC" = "xyes"; then
34401 THREAD_OPTS=""
34402 fi
34403 ;;
34404
34405 *-*-*UnixWare*)
34406 if test "x$GCC" != "xyes"; then
34407 THREAD_OPTS="-Ethread"
34408 fi
34409 ;;
34410 esac
34411
34412 THREAD_OPTS="$THREAD_OPTS pthread none"
34413
34414 THREADS_OK=no
34415 for flag in $THREAD_OPTS; do
34416 case $flag in
34417 none)
34418 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34419echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34420 ;;
34421
34422 -*)
34423 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34424echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34425 THREADS_CFLAGS="$flag"
34426 ;;
34427
34428 *)
34429 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34430echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34431 THREADS_LINK="-l$flag"
34432 ;;
34433 esac
34434
34435 save_LIBS="$LIBS"
34436 save_CFLAGS="$CFLAGS"
34437 LIBS="$THREADS_LINK $LIBS"
34438 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34439
34440 cat >conftest.$ac_ext <<_ACEOF
34441/* confdefs.h. */
34442_ACEOF
34443cat confdefs.h >>conftest.$ac_ext
34444cat >>conftest.$ac_ext <<_ACEOF
34445/* end confdefs.h. */
34446#include <pthread.h>
34447int
34448main ()
34449{
34450pthread_create(0,0,0,0);
34451 ;
34452 return 0;
34453}
34454_ACEOF
34455rm -f conftest.$ac_objext conftest$ac_exeext
34456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34457 (eval $ac_link) 2>conftest.er1
a848cd7e 34458 ac_status=$?
ac1cb8d3
VS
34459 grep -v '^ *+' conftest.er1 >conftest.err
34460 rm -f conftest.er1
34461 cat conftest.err >&5
a848cd7e
SC
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); } &&
8c539582 34464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34466 (eval $ac_try) 2>&5
34467 ac_status=$?
34468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469 (exit $ac_status); }; } &&
34470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34472 (eval $ac_try) 2>&5
34473 ac_status=$?
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); }; }; then
34476 THREADS_OK=yes
34477else
34478 echo "$as_me: failed program was:" >&5
34479sed 's/^/| /' conftest.$ac_ext >&5
34480
34481fi
ac1cb8d3
VS
34482rm -f conftest.err conftest.$ac_objext \
34483 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34484
34485 LIBS="$save_LIBS"
34486 CFLAGS="$save_CFLAGS"
34487
34488 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34489echo "${ECHO_T}$THREADS_OK" >&6
34490 if test "x$THREADS_OK" = "xyes"; then
34491 break;
34492 fi
34493
34494 THREADS_LINK=""
34495 THREADS_CFLAGS=""
34496 done
34497
34498 if test "x$THREADS_OK" != "xyes"; then
34499 wxUSE_THREADS=no
34500 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34501echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34502 else
34503 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34504 LIBS="$THREADS_LINK $LIBS"
34505
34506 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34507echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34508 flag=no
34509 case "${host}" in
34510 *-aix*)
34511 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34512 flag="-D_THREAD_SAFE"
34513 ;;
34514 *-freebsd*)
34515 flag="-D_THREAD_SAFE"
34516 ;;
34517 *-hp-hpux* )
34518 flag="-D_REENTRANT"
34519 if test "x$GCC" != "xyes"; then
34520 flag="$flag -D_RWSTD_MULTI_THREAD"
34521 fi
34522 ;;
34523 *solaris* | alpha*-osf*)
34524 flag="-D_REENTRANT"
34525 ;;
34526 esac
34527 echo "$as_me:$LINENO: result: ${flag}" >&5
34528echo "${ECHO_T}${flag}" >&6
34529 if test "x$flag" != xno; then
34530 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34531 fi
34532
34533 if test "x$THREADS_CFLAGS" != "x"; then
34534 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34535 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34536 fi
34537 fi
34538 fi
34539
34540 if test "$wxUSE_THREADS" = "yes" ; then
34541
34542for ac_func in thr_setconcurrency
34543do
34544as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34545echo "$as_me:$LINENO: checking for $ac_func" >&5
34546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34547if eval "test \"\${$as_ac_var+set}\" = set"; then
34548 echo $ECHO_N "(cached) $ECHO_C" >&6
34549else
34550 cat >conftest.$ac_ext <<_ACEOF
34551/* confdefs.h. */
34552_ACEOF
34553cat confdefs.h >>conftest.$ac_ext
34554cat >>conftest.$ac_ext <<_ACEOF
34555/* end confdefs.h. */
ac1cb8d3
VS
34556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34558#define $ac_func innocuous_$ac_func
34559
a848cd7e
SC
34560/* System header to define __stub macros and hopefully few prototypes,
34561 which can conflict with char $ac_func (); below.
34562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34563 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34564
a848cd7e
SC
34565#ifdef __STDC__
34566# include <limits.h>
34567#else
34568# include <assert.h>
34569#endif
ac1cb8d3
VS
34570
34571#undef $ac_func
34572
a848cd7e
SC
34573/* Override any gcc2 internal prototype to avoid an error. */
34574#ifdef __cplusplus
34575extern "C"
34576{
34577#endif
34578/* We use char because int might match the return type of a gcc2
34579 builtin and then its argument prototype would still apply. */
34580char $ac_func ();
34581/* The GNU C library defines this for functions which it implements
34582 to always fail with ENOSYS. Some functions are actually named
34583 something starting with __ and the normal name is an alias. */
34584#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34585choke me
34586#else
34587char (*f) () = $ac_func;
34588#endif
34589#ifdef __cplusplus
34590}
34591#endif
34592
34593int
34594main ()
34595{
34596return f != $ac_func;
34597 ;
34598 return 0;
34599}
34600_ACEOF
34601rm -f conftest.$ac_objext conftest$ac_exeext
34602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34603 (eval $ac_link) 2>conftest.er1
a848cd7e 34604 ac_status=$?
ac1cb8d3
VS
34605 grep -v '^ *+' conftest.er1 >conftest.err
34606 rm -f conftest.er1
34607 cat conftest.err >&5
a848cd7e
SC
34608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); } &&
8c539582 34610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34612 (eval $ac_try) 2>&5
34613 ac_status=$?
34614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615 (exit $ac_status); }; } &&
34616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34618 (eval $ac_try) 2>&5
34619 ac_status=$?
34620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621 (exit $ac_status); }; }; then
34622 eval "$as_ac_var=yes"
34623else
34624 echo "$as_me: failed program was:" >&5
34625sed 's/^/| /' conftest.$ac_ext >&5
34626
34627eval "$as_ac_var=no"
34628fi
ac1cb8d3
VS
34629rm -f conftest.err conftest.$ac_objext \
34630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34631fi
34632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34633echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34634if test `eval echo '${'$as_ac_var'}'` = yes; then
34635 cat >>confdefs.h <<_ACEOF
34636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34637_ACEOF
34638
34639fi
34640done
34641
34642
34643
34644for ac_header in sched.h
34645do
34646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34647if eval "test \"\${$as_ac_Header+set}\" = set"; then
34648 echo "$as_me:$LINENO: checking for $ac_header" >&5
34649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34650if eval "test \"\${$as_ac_Header+set}\" = set"; then
34651 echo $ECHO_N "(cached) $ECHO_C" >&6
34652fi
34653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34655else
34656 # Is the header compilable?
34657echo "$as_me:$LINENO: checking $ac_header usability" >&5
34658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34659cat >conftest.$ac_ext <<_ACEOF
34660/* confdefs.h. */
34661_ACEOF
34662cat confdefs.h >>conftest.$ac_ext
34663cat >>conftest.$ac_ext <<_ACEOF
34664/* end confdefs.h. */
34665$ac_includes_default
34666#include <$ac_header>
34667_ACEOF
34668rm -f conftest.$ac_objext
34669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34670 (eval $ac_compile) 2>conftest.er1
a848cd7e 34671 ac_status=$?
ac1cb8d3
VS
34672 grep -v '^ *+' conftest.er1 >conftest.err
34673 rm -f conftest.er1
34674 cat conftest.err >&5
a848cd7e
SC
34675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676 (exit $ac_status); } &&
8c539582 34677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34679 (eval $ac_try) 2>&5
34680 ac_status=$?
34681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682 (exit $ac_status); }; } &&
34683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34685 (eval $ac_try) 2>&5
34686 ac_status=$?
34687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688 (exit $ac_status); }; }; then
34689 ac_header_compiler=yes
34690else
34691 echo "$as_me: failed program was:" >&5
34692sed 's/^/| /' conftest.$ac_ext >&5
34693
34694ac_header_compiler=no
34695fi
ac1cb8d3 34696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34698echo "${ECHO_T}$ac_header_compiler" >&6
34699
34700# Is the header present?
34701echo "$as_me:$LINENO: checking $ac_header presence" >&5
34702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34703cat >conftest.$ac_ext <<_ACEOF
34704/* confdefs.h. */
34705_ACEOF
34706cat confdefs.h >>conftest.$ac_ext
34707cat >>conftest.$ac_ext <<_ACEOF
34708/* end confdefs.h. */
34709#include <$ac_header>
34710_ACEOF
34711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34713 ac_status=$?
34714 grep -v '^ *+' conftest.er1 >conftest.err
34715 rm -f conftest.er1
34716 cat conftest.err >&5
34717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718 (exit $ac_status); } >/dev/null; then
34719 if test -s conftest.err; then
34720 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34722 else
34723 ac_cpp_err=
34724 fi
34725else
34726 ac_cpp_err=yes
34727fi
34728if test -z "$ac_cpp_err"; then
34729 ac_header_preproc=yes
34730else
34731 echo "$as_me: failed program was:" >&5
34732sed 's/^/| /' conftest.$ac_ext >&5
34733
34734 ac_header_preproc=no
34735fi
34736rm -f conftest.err conftest.$ac_ext
34737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34738echo "${ECHO_T}$ac_header_preproc" >&6
34739
34740# So? What about this header?
ac1cb8d3
VS
34741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34742 yes:no: )
a848cd7e
SC
34743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34747 ac_header_preproc=yes
a848cd7e 34748 ;;
ac1cb8d3 34749 no:yes:* )
a848cd7e
SC
34750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34762 (
34763 cat <<\_ASBOX
ac1cb8d3
VS
34764## ----------------------------------------- ##
34765## Report this to wx-dev@lists.wxwidgets.org ##
34766## ----------------------------------------- ##
a848cd7e
SC
34767_ASBOX
34768 ) |
34769 sed "s/^/$as_me: WARNING: /" >&2
34770 ;;
34771esac
34772echo "$as_me:$LINENO: checking for $ac_header" >&5
34773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34774if eval "test \"\${$as_ac_Header+set}\" = set"; then
34775 echo $ECHO_N "(cached) $ECHO_C" >&6
34776else
ac1cb8d3 34777 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34778fi
34779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34781
34782fi
34783if test `eval echo '${'$as_ac_Header'}'` = yes; then
34784 cat >>confdefs.h <<_ACEOF
34785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34786_ACEOF
34787
34788fi
34789
34790done
34791
34792 if test "$ac_cv_header_sched_h" = "yes"; then
34793 echo "$as_me:$LINENO: checking for sched_yield" >&5
34794echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34795if test "${ac_cv_func_sched_yield+set}" = set; then
34796 echo $ECHO_N "(cached) $ECHO_C" >&6
34797else
34798 cat >conftest.$ac_ext <<_ACEOF
34799/* confdefs.h. */
34800_ACEOF
34801cat confdefs.h >>conftest.$ac_ext
34802cat >>conftest.$ac_ext <<_ACEOF
34803/* end confdefs.h. */
ac1cb8d3
VS
34804/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34806#define sched_yield innocuous_sched_yield
34807
a848cd7e
SC
34808/* System header to define __stub macros and hopefully few prototypes,
34809 which can conflict with char sched_yield (); below.
34810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34811 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34812
a848cd7e
SC
34813#ifdef __STDC__
34814# include <limits.h>
34815#else
34816# include <assert.h>
34817#endif
ac1cb8d3
VS
34818
34819#undef sched_yield
34820
a848cd7e
SC
34821/* Override any gcc2 internal prototype to avoid an error. */
34822#ifdef __cplusplus
34823extern "C"
34824{
34825#endif
34826/* We use char because int might match the return type of a gcc2
34827 builtin and then its argument prototype would still apply. */
34828char sched_yield ();
34829/* The GNU C library defines this for functions which it implements
34830 to always fail with ENOSYS. Some functions are actually named
34831 something starting with __ and the normal name is an alias. */
34832#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34833choke me
34834#else
34835char (*f) () = sched_yield;
34836#endif
34837#ifdef __cplusplus
34838}
34839#endif
34840
34841int
34842main ()
34843{
34844return f != sched_yield;
34845 ;
34846 return 0;
34847}
34848_ACEOF
34849rm -f conftest.$ac_objext conftest$ac_exeext
34850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34851 (eval $ac_link) 2>conftest.er1
a848cd7e 34852 ac_status=$?
ac1cb8d3
VS
34853 grep -v '^ *+' conftest.er1 >conftest.err
34854 rm -f conftest.er1
34855 cat conftest.err >&5
a848cd7e
SC
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); } &&
8c539582 34858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34860 (eval $ac_try) 2>&5
34861 ac_status=$?
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); }; } &&
34864 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34866 (eval $ac_try) 2>&5
34867 ac_status=$?
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); }; }; then
34870 ac_cv_func_sched_yield=yes
34871else
34872 echo "$as_me: failed program was:" >&5
34873sed 's/^/| /' conftest.$ac_ext >&5
34874
34875ac_cv_func_sched_yield=no
34876fi
ac1cb8d3
VS
34877rm -f conftest.err conftest.$ac_objext \
34878 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34879fi
34880echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34881echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34882if test $ac_cv_func_sched_yield = yes; then
34883 cat >>confdefs.h <<\_ACEOF
34884#define HAVE_SCHED_YIELD 1
34885_ACEOF
34886
34887else
34888
34889 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34890echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34891if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34892 echo $ECHO_N "(cached) $ECHO_C" >&6
34893else
34894 ac_check_lib_save_LIBS=$LIBS
34895LIBS="-lposix4 $LIBS"
34896cat >conftest.$ac_ext <<_ACEOF
34897/* confdefs.h. */
34898_ACEOF
34899cat confdefs.h >>conftest.$ac_ext
34900cat >>conftest.$ac_ext <<_ACEOF
34901/* end confdefs.h. */
34902
34903/* Override any gcc2 internal prototype to avoid an error. */
34904#ifdef __cplusplus
34905extern "C"
34906#endif
34907/* We use char because int might match the return type of a gcc2
34908 builtin and then its argument prototype would still apply. */
34909char sched_yield ();
34910int
34911main ()
34912{
34913sched_yield ();
34914 ;
34915 return 0;
34916}
34917_ACEOF
34918rm -f conftest.$ac_objext conftest$ac_exeext
34919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34920 (eval $ac_link) 2>conftest.er1
a848cd7e 34921 ac_status=$?
ac1cb8d3
VS
34922 grep -v '^ *+' conftest.er1 >conftest.err
34923 rm -f conftest.er1
34924 cat conftest.err >&5
a848cd7e
SC
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); } &&
8c539582 34927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34929 (eval $ac_try) 2>&5
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; } &&
34933 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34935 (eval $ac_try) 2>&5
34936 ac_status=$?
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); }; }; then
34939 ac_cv_lib_posix4_sched_yield=yes
34940else
34941 echo "$as_me: failed program was:" >&5
34942sed 's/^/| /' conftest.$ac_ext >&5
34943
34944ac_cv_lib_posix4_sched_yield=no
34945fi
ac1cb8d3
VS
34946rm -f conftest.err conftest.$ac_objext \
34947 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34948LIBS=$ac_check_lib_save_LIBS
34949fi
34950echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34951echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34952if test $ac_cv_lib_posix4_sched_yield = yes; then
34953 cat >>confdefs.h <<\_ACEOF
34954#define HAVE_SCHED_YIELD 1
34955_ACEOF
34956 POSIX4_LINK=" -lposix4"
34957else
34958 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34959echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34960
34961fi
34962
34963
34964
34965fi
34966
34967 fi
34968
34969 HAVE_PRIOR_FUNCS=0
34970 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34971echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34972if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34973 echo $ECHO_N "(cached) $ECHO_C" >&6
34974else
34975 cat >conftest.$ac_ext <<_ACEOF
34976/* confdefs.h. */
34977_ACEOF
34978cat confdefs.h >>conftest.$ac_ext
34979cat >>conftest.$ac_ext <<_ACEOF
34980/* end confdefs.h. */
ac1cb8d3
VS
34981/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34983#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34984
a848cd7e
SC
34985/* System header to define __stub macros and hopefully few prototypes,
34986 which can conflict with char pthread_attr_getschedpolicy (); below.
34987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34988 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34989
a848cd7e
SC
34990#ifdef __STDC__
34991# include <limits.h>
34992#else
34993# include <assert.h>
34994#endif
ac1cb8d3
VS
34995
34996#undef pthread_attr_getschedpolicy
34997
a848cd7e
SC
34998/* Override any gcc2 internal prototype to avoid an error. */
34999#ifdef __cplusplus
35000extern "C"
35001{
35002#endif
35003/* We use char because int might match the return type of a gcc2
35004 builtin and then its argument prototype would still apply. */
35005char pthread_attr_getschedpolicy ();
35006/* The GNU C library defines this for functions which it implements
35007 to always fail with ENOSYS. Some functions are actually named
35008 something starting with __ and the normal name is an alias. */
35009#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35010choke me
35011#else
35012char (*f) () = pthread_attr_getschedpolicy;
35013#endif
35014#ifdef __cplusplus
35015}
35016#endif
35017
35018int
35019main ()
35020{
35021return f != pthread_attr_getschedpolicy;
35022 ;
35023 return 0;
35024}
35025_ACEOF
35026rm -f conftest.$ac_objext conftest$ac_exeext
35027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35028 (eval $ac_link) 2>conftest.er1
a848cd7e 35029 ac_status=$?
ac1cb8d3
VS
35030 grep -v '^ *+' conftest.er1 >conftest.err
35031 rm -f conftest.er1
35032 cat conftest.err >&5
a848cd7e
SC
35033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034 (exit $ac_status); } &&
8c539582 35035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35037 (eval $ac_try) 2>&5
35038 ac_status=$?
35039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040 (exit $ac_status); }; } &&
35041 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35043 (eval $ac_try) 2>&5
35044 ac_status=$?
35045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046 (exit $ac_status); }; }; then
35047 ac_cv_func_pthread_attr_getschedpolicy=yes
35048else
35049 echo "$as_me: failed program was:" >&5
35050sed 's/^/| /' conftest.$ac_ext >&5
35051
35052ac_cv_func_pthread_attr_getschedpolicy=no
35053fi
ac1cb8d3
VS
35054rm -f conftest.err conftest.$ac_objext \
35055 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35056fi
35057echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35058echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35059if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35060 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35061echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35062if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35063 echo $ECHO_N "(cached) $ECHO_C" >&6
35064else
35065 cat >conftest.$ac_ext <<_ACEOF
35066/* confdefs.h. */
35067_ACEOF
35068cat confdefs.h >>conftest.$ac_ext
35069cat >>conftest.$ac_ext <<_ACEOF
35070/* end confdefs.h. */
ac1cb8d3
VS
35071/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35073#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35074
a848cd7e
SC
35075/* System header to define __stub macros and hopefully few prototypes,
35076 which can conflict with char pthread_attr_setschedparam (); below.
35077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35078 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35079
a848cd7e
SC
35080#ifdef __STDC__
35081# include <limits.h>
35082#else
35083# include <assert.h>
35084#endif
ac1cb8d3
VS
35085
35086#undef pthread_attr_setschedparam
35087
a848cd7e
SC
35088/* Override any gcc2 internal prototype to avoid an error. */
35089#ifdef __cplusplus
35090extern "C"
35091{
35092#endif
35093/* We use char because int might match the return type of a gcc2
35094 builtin and then its argument prototype would still apply. */
35095char pthread_attr_setschedparam ();
35096/* The GNU C library defines this for functions which it implements
35097 to always fail with ENOSYS. Some functions are actually named
35098 something starting with __ and the normal name is an alias. */
35099#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35100choke me
35101#else
35102char (*f) () = pthread_attr_setschedparam;
35103#endif
35104#ifdef __cplusplus
35105}
35106#endif
35107
35108int
35109main ()
35110{
35111return f != pthread_attr_setschedparam;
35112 ;
35113 return 0;
35114}
35115_ACEOF
35116rm -f conftest.$ac_objext conftest$ac_exeext
35117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35118 (eval $ac_link) 2>conftest.er1
a848cd7e 35119 ac_status=$?
ac1cb8d3
VS
35120 grep -v '^ *+' conftest.er1 >conftest.err
35121 rm -f conftest.er1
35122 cat conftest.err >&5
a848cd7e
SC
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); } &&
8c539582 35125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35127 (eval $ac_try) 2>&5
35128 ac_status=$?
35129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); }; } &&
35131 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35133 (eval $ac_try) 2>&5
35134 ac_status=$?
35135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35136 (exit $ac_status); }; }; then
35137 ac_cv_func_pthread_attr_setschedparam=yes
35138else
35139 echo "$as_me: failed program was:" >&5
35140sed 's/^/| /' conftest.$ac_ext >&5
35141
35142ac_cv_func_pthread_attr_setschedparam=no
35143fi
ac1cb8d3
VS
35144rm -f conftest.err conftest.$ac_objext \
35145 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35146fi
35147echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35148echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35149if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35150 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35151echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35152if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35153 echo $ECHO_N "(cached) $ECHO_C" >&6
35154else
35155 cat >conftest.$ac_ext <<_ACEOF
35156/* confdefs.h. */
35157_ACEOF
35158cat confdefs.h >>conftest.$ac_ext
35159cat >>conftest.$ac_ext <<_ACEOF
35160/* end confdefs.h. */
ac1cb8d3
VS
35161/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35163#define sched_get_priority_max innocuous_sched_get_priority_max
35164
a848cd7e
SC
35165/* System header to define __stub macros and hopefully few prototypes,
35166 which can conflict with char sched_get_priority_max (); below.
35167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35168 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35169
a848cd7e
SC
35170#ifdef __STDC__
35171# include <limits.h>
35172#else
35173# include <assert.h>
35174#endif
ac1cb8d3
VS
35175
35176#undef sched_get_priority_max
35177
a848cd7e
SC
35178/* Override any gcc2 internal prototype to avoid an error. */
35179#ifdef __cplusplus
35180extern "C"
35181{
35182#endif
35183/* We use char because int might match the return type of a gcc2
35184 builtin and then its argument prototype would still apply. */
35185char sched_get_priority_max ();
35186/* The GNU C library defines this for functions which it implements
35187 to always fail with ENOSYS. Some functions are actually named
35188 something starting with __ and the normal name is an alias. */
35189#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35190choke me
35191#else
35192char (*f) () = sched_get_priority_max;
35193#endif
35194#ifdef __cplusplus
35195}
35196#endif
35197
35198int
35199main ()
35200{
35201return f != sched_get_priority_max;
35202 ;
35203 return 0;
35204}
35205_ACEOF
35206rm -f conftest.$ac_objext conftest$ac_exeext
35207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35208 (eval $ac_link) 2>conftest.er1
a848cd7e 35209 ac_status=$?
ac1cb8d3
VS
35210 grep -v '^ *+' conftest.er1 >conftest.err
35211 rm -f conftest.er1
35212 cat conftest.err >&5
a848cd7e
SC
35213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35214 (exit $ac_status); } &&
8c539582 35215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35217 (eval $ac_try) 2>&5
35218 ac_status=$?
35219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35220 (exit $ac_status); }; } &&
35221 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35223 (eval $ac_try) 2>&5
35224 ac_status=$?
35225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35226 (exit $ac_status); }; }; then
35227 ac_cv_func_sched_get_priority_max=yes
35228else
35229 echo "$as_me: failed program was:" >&5
35230sed 's/^/| /' conftest.$ac_ext >&5
35231
35232ac_cv_func_sched_get_priority_max=no
35233fi
ac1cb8d3
VS
35234rm -f conftest.err conftest.$ac_objext \
35235 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35236fi
35237echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35238echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35239if test $ac_cv_func_sched_get_priority_max = yes; then
35240 HAVE_PRIOR_FUNCS=1
35241else
35242 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35243echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35244if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35245 echo $ECHO_N "(cached) $ECHO_C" >&6
35246else
35247 ac_check_lib_save_LIBS=$LIBS
35248LIBS="-lposix4 $LIBS"
35249cat >conftest.$ac_ext <<_ACEOF
35250/* confdefs.h. */
35251_ACEOF
35252cat confdefs.h >>conftest.$ac_ext
35253cat >>conftest.$ac_ext <<_ACEOF
35254/* end confdefs.h. */
35255
35256/* Override any gcc2 internal prototype to avoid an error. */
35257#ifdef __cplusplus
35258extern "C"
35259#endif
35260/* We use char because int might match the return type of a gcc2
35261 builtin and then its argument prototype would still apply. */
35262char sched_get_priority_max ();
35263int
35264main ()
35265{
35266sched_get_priority_max ();
35267 ;
35268 return 0;
35269}
35270_ACEOF
35271rm -f conftest.$ac_objext conftest$ac_exeext
35272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35273 (eval $ac_link) 2>conftest.er1
a848cd7e 35274 ac_status=$?
ac1cb8d3
VS
35275 grep -v '^ *+' conftest.er1 >conftest.err
35276 rm -f conftest.er1
35277 cat conftest.err >&5
a848cd7e
SC
35278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279 (exit $ac_status); } &&
8c539582 35280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35282 (eval $ac_try) 2>&5
35283 ac_status=$?
35284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285 (exit $ac_status); }; } &&
35286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35288 (eval $ac_try) 2>&5
35289 ac_status=$?
35290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291 (exit $ac_status); }; }; then
35292 ac_cv_lib_posix4_sched_get_priority_max=yes
35293else
35294 echo "$as_me: failed program was:" >&5
35295sed 's/^/| /' conftest.$ac_ext >&5
35296
35297ac_cv_lib_posix4_sched_get_priority_max=no
35298fi
ac1cb8d3
VS
35299rm -f conftest.err conftest.$ac_objext \
35300 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35301LIBS=$ac_check_lib_save_LIBS
35302fi
35303echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35304echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35305if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35306
35307 HAVE_PRIOR_FUNCS=1
35308 POSIX4_LINK=" -lposix4"
35309
35310fi
35311
35312
35313fi
35314
35315
35316fi
35317
35318
35319fi
35320
35321
35322 if test "$HAVE_PRIOR_FUNCS" = 1; then
35323 cat >>confdefs.h <<\_ACEOF
35324#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35325_ACEOF
35326
35327 else
35328 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35329echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35330 fi
35331
35332 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35333echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35334if test "${ac_cv_func_pthread_cancel+set}" = set; then
35335 echo $ECHO_N "(cached) $ECHO_C" >&6
35336else
35337 cat >conftest.$ac_ext <<_ACEOF
35338/* confdefs.h. */
35339_ACEOF
35340cat confdefs.h >>conftest.$ac_ext
35341cat >>conftest.$ac_ext <<_ACEOF
35342/* end confdefs.h. */
ac1cb8d3
VS
35343/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35345#define pthread_cancel innocuous_pthread_cancel
35346
a848cd7e
SC
35347/* System header to define __stub macros and hopefully few prototypes,
35348 which can conflict with char pthread_cancel (); below.
35349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35350 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35351
a848cd7e
SC
35352#ifdef __STDC__
35353# include <limits.h>
35354#else
35355# include <assert.h>
35356#endif
ac1cb8d3
VS
35357
35358#undef pthread_cancel
35359
a848cd7e
SC
35360/* Override any gcc2 internal prototype to avoid an error. */
35361#ifdef __cplusplus
35362extern "C"
35363{
35364#endif
35365/* We use char because int might match the return type of a gcc2
35366 builtin and then its argument prototype would still apply. */
35367char pthread_cancel ();
35368/* The GNU C library defines this for functions which it implements
35369 to always fail with ENOSYS. Some functions are actually named
35370 something starting with __ and the normal name is an alias. */
35371#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35372choke me
35373#else
35374char (*f) () = pthread_cancel;
35375#endif
35376#ifdef __cplusplus
35377}
35378#endif
35379
35380int
35381main ()
35382{
35383return f != pthread_cancel;
35384 ;
35385 return 0;
35386}
35387_ACEOF
35388rm -f conftest.$ac_objext conftest$ac_exeext
35389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35390 (eval $ac_link) 2>conftest.er1
a848cd7e 35391 ac_status=$?
ac1cb8d3
VS
35392 grep -v '^ *+' conftest.er1 >conftest.err
35393 rm -f conftest.er1
35394 cat conftest.err >&5
a848cd7e
SC
35395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396 (exit $ac_status); } &&
8c539582 35397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35399 (eval $ac_try) 2>&5
35400 ac_status=$?
35401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402 (exit $ac_status); }; } &&
35403 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405 (eval $ac_try) 2>&5
35406 ac_status=$?
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); }; }; then
35409 ac_cv_func_pthread_cancel=yes
35410else
35411 echo "$as_me: failed program was:" >&5
35412sed 's/^/| /' conftest.$ac_ext >&5
35413
35414ac_cv_func_pthread_cancel=no
35415fi
ac1cb8d3
VS
35416rm -f conftest.err conftest.$ac_objext \
35417 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35418fi
35419echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35420echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35421if test $ac_cv_func_pthread_cancel = yes; then
35422 cat >>confdefs.h <<\_ACEOF
35423#define HAVE_PTHREAD_CANCEL 1
35424_ACEOF
35425
35426else
35427 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35428echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35429fi
35430
35431
abc736fd
MW
35432 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
35433echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
35434if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
35435 echo $ECHO_N "(cached) $ECHO_C" >&6
35436else
35437 cat >conftest.$ac_ext <<_ACEOF
35438/* confdefs.h. */
35439_ACEOF
35440cat confdefs.h >>conftest.$ac_ext
35441cat >>conftest.$ac_ext <<_ACEOF
35442/* end confdefs.h. */
35443/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
35444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35445#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
35446
35447/* System header to define __stub macros and hopefully few prototypes,
35448 which can conflict with char pthread_attr_setstacksize (); below.
35449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35450 <limits.h> exists even on freestanding compilers. */
35451
35452#ifdef __STDC__
35453# include <limits.h>
35454#else
35455# include <assert.h>
35456#endif
35457
35458#undef pthread_attr_setstacksize
35459
35460/* Override any gcc2 internal prototype to avoid an error. */
35461#ifdef __cplusplus
35462extern "C"
35463{
35464#endif
35465/* We use char because int might match the return type of a gcc2
35466 builtin and then its argument prototype would still apply. */
35467char pthread_attr_setstacksize ();
35468/* The GNU C library defines this for functions which it implements
35469 to always fail with ENOSYS. Some functions are actually named
35470 something starting with __ and the normal name is an alias. */
35471#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
35472choke me
35473#else
35474char (*f) () = pthread_attr_setstacksize;
35475#endif
35476#ifdef __cplusplus
35477}
35478#endif
35479
35480int
35481main ()
35482{
35483return f != pthread_attr_setstacksize;
35484 ;
35485 return 0;
35486}
35487_ACEOF
35488rm -f conftest.$ac_objext conftest$ac_exeext
35489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35490 (eval $ac_link) 2>conftest.er1
35491 ac_status=$?
35492 grep -v '^ *+' conftest.er1 >conftest.err
35493 rm -f conftest.er1
35494 cat conftest.err >&5
35495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496 (exit $ac_status); } &&
8c539582 35497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
35498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35499 (eval $ac_try) 2>&5
35500 ac_status=$?
35501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502 (exit $ac_status); }; } &&
35503 { ac_try='test -s conftest$ac_exeext'
35504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35505 (eval $ac_try) 2>&5
35506 ac_status=$?
35507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508 (exit $ac_status); }; }; then
35509 ac_cv_func_pthread_attr_setstacksize=yes
35510else
35511 echo "$as_me: failed program was:" >&5
35512sed 's/^/| /' conftest.$ac_ext >&5
35513
35514ac_cv_func_pthread_attr_setstacksize=no
35515fi
35516rm -f conftest.err conftest.$ac_objext \
35517 conftest$ac_exeext conftest.$ac_ext
35518fi
35519echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
35520echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
35521if test $ac_cv_func_pthread_attr_setstacksize = yes; then
35522 cat >>confdefs.h <<\_ACEOF
35523#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
35524_ACEOF
35525
35526fi
35527
a848cd7e
SC
35528
35529
35530 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35531echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35532if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35533 echo $ECHO_N "(cached) $ECHO_C" >&6
35534else
35535
35536 cat >conftest.$ac_ext <<_ACEOF
35537/* confdefs.h. */
35538_ACEOF
35539cat confdefs.h >>conftest.$ac_ext
35540cat >>conftest.$ac_ext <<_ACEOF
35541/* end confdefs.h. */
35542#include <pthread.h>
35543int
35544main ()
35545{
35546
35547 pthread_mutexattr_t attr;
35548 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35549
35550 ;
35551 return 0;
35552}
35553_ACEOF
35554rm -f conftest.$ac_objext
35555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35556 (eval $ac_compile) 2>conftest.er1
a848cd7e 35557 ac_status=$?
ac1cb8d3
VS
35558 grep -v '^ *+' conftest.er1 >conftest.err
35559 rm -f conftest.er1
35560 cat conftest.err >&5
a848cd7e
SC
35561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562 (exit $ac_status); } &&
8c539582 35563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35565 (eval $ac_try) 2>&5
35566 ac_status=$?
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); }; } &&
35569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571 (eval $ac_try) 2>&5
35572 ac_status=$?
35573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574 (exit $ac_status); }; }; then
35575
35576 wx_cv_type_pthread_mutexattr_t=yes
35577
35578else
35579 echo "$as_me: failed program was:" >&5
35580sed 's/^/| /' conftest.$ac_ext >&5
35581
35582
35583 wx_cv_type_pthread_mutexattr_t=no
35584
35585
35586fi
ac1cb8d3 35587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35588
35589fi
35590echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35591echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35592
35593 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35594 cat >>confdefs.h <<\_ACEOF
35595#define HAVE_PTHREAD_MUTEXATTR_T 1
35596_ACEOF
35597
35598 else
35599 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35600echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35601if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35602 echo $ECHO_N "(cached) $ECHO_C" >&6
35603else
35604
35605 cat >conftest.$ac_ext <<_ACEOF
35606/* confdefs.h. */
35607_ACEOF
35608cat confdefs.h >>conftest.$ac_ext
35609cat >>conftest.$ac_ext <<_ACEOF
35610/* end confdefs.h. */
35611#include <pthread.h>
35612int
35613main ()
35614{
35615
35616 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35617
35618 ;
35619 return 0;
35620}
35621_ACEOF
35622rm -f conftest.$ac_objext
35623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35624 (eval $ac_compile) 2>conftest.er1
a848cd7e 35625 ac_status=$?
ac1cb8d3
VS
35626 grep -v '^ *+' conftest.er1 >conftest.err
35627 rm -f conftest.er1
35628 cat conftest.err >&5
a848cd7e
SC
35629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35630 (exit $ac_status); } &&
8c539582 35631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35633 (eval $ac_try) 2>&5
35634 ac_status=$?
35635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35636 (exit $ac_status); }; } &&
35637 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35639 (eval $ac_try) 2>&5
35640 ac_status=$?
35641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35642 (exit $ac_status); }; }; then
35643
35644 wx_cv_type_pthread_rec_mutex_init=yes
35645
35646else
35647 echo "$as_me: failed program was:" >&5
35648sed 's/^/| /' conftest.$ac_ext >&5
35649
35650
35651 wx_cv_type_pthread_rec_mutex_init=no
35652
35653
35654fi
ac1cb8d3 35655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35656
35657fi
35658echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35659echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35660 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35661 cat >>confdefs.h <<\_ACEOF
35662#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35663_ACEOF
35664
35665 else
35666 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35667echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35668 fi
35669 fi
35670 fi
35671
35672else
35673 if test "$wxUSE_THREADS" = "yes" ; then
35674 case "${host}" in
35675 *-*-mingw32* )
35676 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35677echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35678if test "${wx_cv_cflags_mthread+set}" = set; then
35679 echo $ECHO_N "(cached) $ECHO_C" >&6
35680else
35681
35682 CFLAGS_OLD="$CFLAGS"
35683 CFLAGS="$CFLAGS -mthreads"
35684 cat >conftest.$ac_ext <<_ACEOF
35685/* confdefs.h. */
35686_ACEOF
35687cat confdefs.h >>conftest.$ac_ext
35688cat >>conftest.$ac_ext <<_ACEOF
35689/* end confdefs.h. */
35690
35691int
35692main ()
35693{
35694
35695 ;
35696 return 0;
35697}
35698_ACEOF
35699rm -f conftest.$ac_objext
35700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35701 (eval $ac_compile) 2>conftest.er1
a848cd7e 35702 ac_status=$?
ac1cb8d3
VS
35703 grep -v '^ *+' conftest.er1 >conftest.err
35704 rm -f conftest.er1
35705 cat conftest.err >&5
a848cd7e
SC
35706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707 (exit $ac_status); } &&
8c539582 35708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35710 (eval $ac_try) 2>&5
35711 ac_status=$?
35712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35713 (exit $ac_status); }; } &&
35714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35716 (eval $ac_try) 2>&5
35717 ac_status=$?
35718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719 (exit $ac_status); }; }; then
35720 wx_cv_cflags_mthread=yes
35721else
35722 echo "$as_me: failed program was:" >&5
35723sed 's/^/| /' conftest.$ac_ext >&5
35724
35725wx_cv_cflags_mthread=no
35726
35727fi
ac1cb8d3 35728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35729
35730
35731fi
35732echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35733echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35734
35735 if test "$wx_cv_cflags_mthread" = "yes"; then
35736 CXXFLAGS="$CXXFLAGS -mthreads"
35737 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35738 LDFLAGS="$LDFLAGS -mthreads"
35739 else
35740 CFLAGS="$CFLAGS_OLD"
35741 fi
35742 ;;
35743 *-pc-os2*emx )
35744 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35745 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35746 LDFLAGS="$LDFLAGS -Zmt"
35747 ;;
35748 esac
35749 fi
35750fi
35751
35752if test "$wxUSE_THREADS" = "yes"; then
35753 cat >>confdefs.h <<\_ACEOF
35754#define wxUSE_THREADS 1
35755_ACEOF
35756
35757
35758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35759else
35760 if test "$ac_cv_func_strtok_r" = "yes"; then
35761 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35762echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35763 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35764 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35765 echo "$as_me:$LINENO: result: yes" >&5
35766echo "${ECHO_T}yes" >&6
35767 else
35768 echo "$as_me:$LINENO: result: no" >&5
35769echo "${ECHO_T}no" >&6
35770 fi
35771 fi
35772fi
35773
35774if test "$WXGTK20" = 1 ; then
35775 cat >>confdefs.h <<_ACEOF
35776#define __WXGTK20__ $WXGTK20
35777_ACEOF
35778
35779 WXGTK12=1
35780fi
35781
35782if test "$WXGTK12" = 1 ; then
35783 cat >>confdefs.h <<_ACEOF
35784#define __WXGTK12__ $WXGTK12
35785_ACEOF
35786
35787fi
35788
35789if test "$WXGTK127" = 1 ; then
35790 cat >>confdefs.h <<_ACEOF
35791#define __WXGTK127__ $WXGTK127
35792_ACEOF
35793
35794fi
35795
35796if test "$WXGPE" = 1 ; then
35797 cat >>confdefs.h <<_ACEOF
35798#define __WXGPE__ $WXGPE
35799_ACEOF
35800
35801fi
35802
35803WXDEBUG=
35804
35805if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35806 WXDEBUG="-g"
35807 wxUSE_OPTIMISE=no
35808fi
35809
35810if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35811 wxUSE_DEBUG_INFO=yes
18228ab4
MW
35812 if test "$GCC" = yes; then
35813 WXDEBUG="-ggdb"
35814 fi
a848cd7e
SC
35815fi
35816
35817if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35818 cat >>confdefs.h <<\_ACEOF
35819#define WXDEBUG 1
35820_ACEOF
35821
35822 WXDEBUG_DEFINE="-D__WXDEBUG__"
35823else
35824 if test "$wxUSE_GTK" = 1 ; then
35825 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35826 fi
35827fi
35828
35829if test "$wxUSE_MEM_TRACING" = "yes" ; then
35830 cat >>confdefs.h <<\_ACEOF
35831#define wxUSE_MEMORY_TRACING 1
35832_ACEOF
35833
35834 cat >>confdefs.h <<\_ACEOF
35835#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35836_ACEOF
35837
35838 cat >>confdefs.h <<\_ACEOF
35839#define wxUSE_DEBUG_NEW_ALWAYS 1
35840_ACEOF
35841
35842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35843fi
35844
35845if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 35846 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
35847fi
35848
35849PROFILE=
35850if test "$wxUSE_PROFILE" = "yes" ; then
35851 PROFILE=" -pg"
35852fi
35853
35854CODE_GEN_FLAGS=
35855CODE_GEN_FLAGS_CXX=
35856if test "$GCC" = "yes" ; then
35857 if test "$wxUSE_NO_RTTI" = "yes" ; then
35858 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35859 fi
35860 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35861 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35862 fi
35863 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35864 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35865 fi
35866
35867 case "${host}" in
35868 powerpc*-*-aix* )
35869 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35870 ;;
35871 *-hppa* )
35872 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35873 ;;
35874 esac
35875fi
35876
35877OPTIMISE=
35878if test "$wxUSE_OPTIMISE" = "no" ; then
35879 if test "$GCC" = yes ; then
35880 OPTIMISE="-O0"
35881 fi
35882else
35883 if test "$GCC" = yes ; then
35884 OPTIMISE="-O2"
35885
35886 case "${host}" in
35887 i586-*-*|i686-*-* )
35888 OPTIMISE="${OPTIMISE} "
35889 ;;
35890 esac
35891 else
35892 OPTIMISE="-O"
35893 fi
35894fi
35895
35896
35897if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35898 cat >>confdefs.h <<\_ACEOF
35899#define WXWIN_COMPATIBILITY_2_2 1
35900_ACEOF
35901
35902
35903 WXWIN_COMPATIBILITY_2_4="yes"
35904fi
35905
35906if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35907 cat >>confdefs.h <<\_ACEOF
35908#define WXWIN_COMPATIBILITY_2_4 1
35909_ACEOF
35910
35911fi
35912
35913
35914if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35915 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35916#define wxUSE_GUI 1
35917_ACEOF
35918
35919
370fd4c2 35920 fi
a848cd7e
SC
35921
35922
35923if test "$wxUSE_UNIX" = "yes"; then
35924 cat >>confdefs.h <<\_ACEOF
35925#define wxUSE_UNIX 1
35926_ACEOF
35927
35928fi
35929
35930
35931if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35932
35933 HAVE_DL_FUNCS=0
35934 HAVE_SHL_FUNCS=0
35935 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35936 if test "$USE_DARWIN" = 1; then
35937 HAVE_DL_FUNCS=1
47a7e797
MW
35938 elif test "$USE_DOS" = 1; then
35939 HAVE_DL_FUNCS=0
a848cd7e
SC
35940 else
35941
35942for ac_func in dlopen
35943do
35944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35945echo "$as_me:$LINENO: checking for $ac_func" >&5
35946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35947if eval "test \"\${$as_ac_var+set}\" = set"; then
35948 echo $ECHO_N "(cached) $ECHO_C" >&6
35949else
35950 cat >conftest.$ac_ext <<_ACEOF
35951/* confdefs.h. */
35952_ACEOF
35953cat confdefs.h >>conftest.$ac_ext
35954cat >>conftest.$ac_ext <<_ACEOF
35955/* end confdefs.h. */
ac1cb8d3
VS
35956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35958#define $ac_func innocuous_$ac_func
35959
a848cd7e
SC
35960/* System header to define __stub macros and hopefully few prototypes,
35961 which can conflict with char $ac_func (); below.
35962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35963 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35964
a848cd7e
SC
35965#ifdef __STDC__
35966# include <limits.h>
35967#else
35968# include <assert.h>
35969#endif
ac1cb8d3
VS
35970
35971#undef $ac_func
35972
a848cd7e
SC
35973/* Override any gcc2 internal prototype to avoid an error. */
35974#ifdef __cplusplus
35975extern "C"
35976{
35977#endif
35978/* We use char because int might match the return type of a gcc2
35979 builtin and then its argument prototype would still apply. */
35980char $ac_func ();
35981/* The GNU C library defines this for functions which it implements
35982 to always fail with ENOSYS. Some functions are actually named
35983 something starting with __ and the normal name is an alias. */
35984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35985choke me
35986#else
35987char (*f) () = $ac_func;
35988#endif
35989#ifdef __cplusplus
35990}
35991#endif
35992
35993int
35994main ()
35995{
35996return f != $ac_func;
35997 ;
35998 return 0;
35999}
36000_ACEOF
36001rm -f conftest.$ac_objext conftest$ac_exeext
36002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36003 (eval $ac_link) 2>conftest.er1
a848cd7e 36004 ac_status=$?
ac1cb8d3
VS
36005 grep -v '^ *+' conftest.er1 >conftest.err
36006 rm -f conftest.er1
36007 cat conftest.err >&5
a848cd7e
SC
36008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36009 (exit $ac_status); } &&
8c539582 36010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36012 (eval $ac_try) 2>&5
36013 ac_status=$?
36014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015 (exit $ac_status); }; } &&
36016 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36018 (eval $ac_try) 2>&5
36019 ac_status=$?
36020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021 (exit $ac_status); }; }; then
36022 eval "$as_ac_var=yes"
36023else
36024 echo "$as_me: failed program was:" >&5
36025sed 's/^/| /' conftest.$ac_ext >&5
36026
36027eval "$as_ac_var=no"
36028fi
ac1cb8d3
VS
36029rm -f conftest.err conftest.$ac_objext \
36030 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36031fi
36032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36033echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36034if test `eval echo '${'$as_ac_var'}'` = yes; then
36035 cat >>confdefs.h <<_ACEOF
36036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36037_ACEOF
36038
36039 cat >>confdefs.h <<\_ACEOF
36040#define HAVE_DLOPEN 1
36041_ACEOF
36042
36043 HAVE_DL_FUNCS=1
36044
36045else
36046
36047 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36048echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36049if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36050 echo $ECHO_N "(cached) $ECHO_C" >&6
36051else
36052 ac_check_lib_save_LIBS=$LIBS
36053LIBS="-ldl $LIBS"
36054cat >conftest.$ac_ext <<_ACEOF
36055/* confdefs.h. */
36056_ACEOF
36057cat confdefs.h >>conftest.$ac_ext
36058cat >>conftest.$ac_ext <<_ACEOF
36059/* end confdefs.h. */
36060
36061/* Override any gcc2 internal prototype to avoid an error. */
36062#ifdef __cplusplus
36063extern "C"
36064#endif
36065/* We use char because int might match the return type of a gcc2
36066 builtin and then its argument prototype would still apply. */
36067char dlopen ();
36068int
36069main ()
36070{
36071dlopen ();
36072 ;
36073 return 0;
36074}
36075_ACEOF
36076rm -f conftest.$ac_objext conftest$ac_exeext
36077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36078 (eval $ac_link) 2>conftest.er1
a848cd7e 36079 ac_status=$?
ac1cb8d3
VS
36080 grep -v '^ *+' conftest.er1 >conftest.err
36081 rm -f conftest.er1
36082 cat conftest.err >&5
a848cd7e
SC
36083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084 (exit $ac_status); } &&
8c539582 36085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36087 (eval $ac_try) 2>&5
36088 ac_status=$?
36089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36090 (exit $ac_status); }; } &&
36091 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36093 (eval $ac_try) 2>&5
36094 ac_status=$?
36095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36096 (exit $ac_status); }; }; then
36097 ac_cv_lib_dl_dlopen=yes
36098else
36099 echo "$as_me: failed program was:" >&5
36100sed 's/^/| /' conftest.$ac_ext >&5
36101
36102ac_cv_lib_dl_dlopen=no
36103fi
ac1cb8d3
VS
36104rm -f conftest.err conftest.$ac_objext \
36105 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36106LIBS=$ac_check_lib_save_LIBS
36107fi
36108echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36109echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36110if test $ac_cv_lib_dl_dlopen = yes; then
36111
36112 cat >>confdefs.h <<\_ACEOF
36113#define HAVE_DLOPEN 1
36114_ACEOF
36115
36116 HAVE_DL_FUNCS=1
36117 DL_LINK=" -ldl$DL_LINK"
36118
36119else
36120
36121
36122for ac_func in shl_load
36123do
36124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36125echo "$as_me:$LINENO: checking for $ac_func" >&5
36126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36127if eval "test \"\${$as_ac_var+set}\" = set"; then
36128 echo $ECHO_N "(cached) $ECHO_C" >&6
36129else
36130 cat >conftest.$ac_ext <<_ACEOF
36131/* confdefs.h. */
36132_ACEOF
36133cat confdefs.h >>conftest.$ac_ext
36134cat >>conftest.$ac_ext <<_ACEOF
36135/* end confdefs.h. */
ac1cb8d3
VS
36136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36138#define $ac_func innocuous_$ac_func
36139
a848cd7e
SC
36140/* System header to define __stub macros and hopefully few prototypes,
36141 which can conflict with char $ac_func (); below.
36142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36143 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36144
a848cd7e
SC
36145#ifdef __STDC__
36146# include <limits.h>
36147#else
36148# include <assert.h>
36149#endif
ac1cb8d3
VS
36150
36151#undef $ac_func
36152
a848cd7e
SC
36153/* Override any gcc2 internal prototype to avoid an error. */
36154#ifdef __cplusplus
36155extern "C"
36156{
36157#endif
36158/* We use char because int might match the return type of a gcc2
36159 builtin and then its argument prototype would still apply. */
36160char $ac_func ();
36161/* The GNU C library defines this for functions which it implements
36162 to always fail with ENOSYS. Some functions are actually named
36163 something starting with __ and the normal name is an alias. */
36164#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36165choke me
36166#else
36167char (*f) () = $ac_func;
36168#endif
36169#ifdef __cplusplus
36170}
36171#endif
36172
36173int
36174main ()
36175{
36176return f != $ac_func;
36177 ;
36178 return 0;
36179}
36180_ACEOF
36181rm -f conftest.$ac_objext conftest$ac_exeext
36182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36183 (eval $ac_link) 2>conftest.er1
a848cd7e 36184 ac_status=$?
ac1cb8d3
VS
36185 grep -v '^ *+' conftest.er1 >conftest.err
36186 rm -f conftest.er1
36187 cat conftest.err >&5
a848cd7e
SC
36188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189 (exit $ac_status); } &&
8c539582 36190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36192 (eval $ac_try) 2>&5
36193 ac_status=$?
36194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195 (exit $ac_status); }; } &&
36196 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36198 (eval $ac_try) 2>&5
36199 ac_status=$?
36200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36201 (exit $ac_status); }; }; then
36202 eval "$as_ac_var=yes"
36203else
36204 echo "$as_me: failed program was:" >&5
36205sed 's/^/| /' conftest.$ac_ext >&5
36206
36207eval "$as_ac_var=no"
36208fi
ac1cb8d3
VS
36209rm -f conftest.err conftest.$ac_objext \
36210 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36211fi
36212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36213echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36214if test `eval echo '${'$as_ac_var'}'` = yes; then
36215 cat >>confdefs.h <<_ACEOF
36216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36217_ACEOF
36218
36219 cat >>confdefs.h <<\_ACEOF
36220#define HAVE_SHL_LOAD 1
36221_ACEOF
36222
36223 HAVE_SHL_FUNCS=1
36224
36225else
36226
36227 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36228echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36229if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36230 echo $ECHO_N "(cached) $ECHO_C" >&6
36231else
36232 ac_check_lib_save_LIBS=$LIBS
36233LIBS="-lshl_load $LIBS"
36234cat >conftest.$ac_ext <<_ACEOF
36235/* confdefs.h. */
36236_ACEOF
36237cat confdefs.h >>conftest.$ac_ext
36238cat >>conftest.$ac_ext <<_ACEOF
36239/* end confdefs.h. */
36240
36241/* Override any gcc2 internal prototype to avoid an error. */
36242#ifdef __cplusplus
36243extern "C"
36244#endif
36245/* We use char because int might match the return type of a gcc2
36246 builtin and then its argument prototype would still apply. */
36247char dld ();
36248int
36249main ()
36250{
36251dld ();
36252 ;
36253 return 0;
36254}
36255_ACEOF
36256rm -f conftest.$ac_objext conftest$ac_exeext
36257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36258 (eval $ac_link) 2>conftest.er1
a848cd7e 36259 ac_status=$?
ac1cb8d3
VS
36260 grep -v '^ *+' conftest.er1 >conftest.err
36261 rm -f conftest.er1
36262 cat conftest.err >&5
a848cd7e
SC
36263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36264 (exit $ac_status); } &&
8c539582 36265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36267 (eval $ac_try) 2>&5
36268 ac_status=$?
36269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270 (exit $ac_status); }; } &&
36271 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273 (eval $ac_try) 2>&5
36274 ac_status=$?
36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); }; }; then
36277 ac_cv_lib_shl_load_dld=yes
36278else
36279 echo "$as_me: failed program was:" >&5
36280sed 's/^/| /' conftest.$ac_ext >&5
36281
36282ac_cv_lib_shl_load_dld=no
36283fi
ac1cb8d3
VS
36284rm -f conftest.err conftest.$ac_objext \
36285 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36286LIBS=$ac_check_lib_save_LIBS
36287fi
36288echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
36289echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
36290if test $ac_cv_lib_shl_load_dld = yes; then
36291
36292 HAVE_SHL_FUNCS=1
36293 DL_LINK=" -ldld$DL_LINK"
36294
36295fi
36296
36297
36298fi
36299done
36300
36301
36302fi
36303
36304
36305fi
36306done
36307
36308
36309 if test "$HAVE_DL_FUNCS" = 1; then
36310
36311for ac_func in dlerror
36312do
36313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36314echo "$as_me:$LINENO: checking for $ac_func" >&5
36315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36316if eval "test \"\${$as_ac_var+set}\" = set"; then
36317 echo $ECHO_N "(cached) $ECHO_C" >&6
36318else
36319 cat >conftest.$ac_ext <<_ACEOF
36320/* confdefs.h. */
36321_ACEOF
36322cat confdefs.h >>conftest.$ac_ext
36323cat >>conftest.$ac_ext <<_ACEOF
36324/* end confdefs.h. */
ac1cb8d3
VS
36325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36327#define $ac_func innocuous_$ac_func
36328
a848cd7e
SC
36329/* System header to define __stub macros and hopefully few prototypes,
36330 which can conflict with char $ac_func (); below.
36331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36332 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36333
a848cd7e
SC
36334#ifdef __STDC__
36335# include <limits.h>
36336#else
36337# include <assert.h>
36338#endif
ac1cb8d3
VS
36339
36340#undef $ac_func
36341
a848cd7e
SC
36342/* Override any gcc2 internal prototype to avoid an error. */
36343#ifdef __cplusplus
36344extern "C"
36345{
36346#endif
36347/* We use char because int might match the return type of a gcc2
36348 builtin and then its argument prototype would still apply. */
36349char $ac_func ();
36350/* The GNU C library defines this for functions which it implements
36351 to always fail with ENOSYS. Some functions are actually named
36352 something starting with __ and the normal name is an alias. */
36353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36354choke me
36355#else
36356char (*f) () = $ac_func;
36357#endif
36358#ifdef __cplusplus
36359}
36360#endif
36361
36362int
36363main ()
36364{
36365return f != $ac_func;
36366 ;
36367 return 0;
36368}
36369_ACEOF
36370rm -f conftest.$ac_objext conftest$ac_exeext
36371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36372 (eval $ac_link) 2>conftest.er1
a848cd7e 36373 ac_status=$?
ac1cb8d3
VS
36374 grep -v '^ *+' conftest.er1 >conftest.err
36375 rm -f conftest.er1
36376 cat conftest.err >&5
a848cd7e
SC
36377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36378 (exit $ac_status); } &&
8c539582 36379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36381 (eval $ac_try) 2>&5
36382 ac_status=$?
36383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36384 (exit $ac_status); }; } &&
36385 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36387 (eval $ac_try) 2>&5
36388 ac_status=$?
36389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36390 (exit $ac_status); }; }; then
36391 eval "$as_ac_var=yes"
36392else
36393 echo "$as_me: failed program was:" >&5
36394sed 's/^/| /' conftest.$ac_ext >&5
36395
36396eval "$as_ac_var=no"
36397fi
ac1cb8d3
VS
36398rm -f conftest.err conftest.$ac_objext \
36399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36400fi
36401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36403if test `eval echo '${'$as_ac_var'}'` = yes; then
36404 cat >>confdefs.h <<_ACEOF
36405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36406_ACEOF
36407 cat >>confdefs.h <<\_ACEOF
36408#define HAVE_DLERROR 1
36409_ACEOF
36410
36411else
36412
36413 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36414echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36415if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36416 echo $ECHO_N "(cached) $ECHO_C" >&6
36417else
36418 ac_check_lib_save_LIBS=$LIBS
36419LIBS="-ldl $LIBS"
36420cat >conftest.$ac_ext <<_ACEOF
36421/* confdefs.h. */
36422_ACEOF
36423cat confdefs.h >>conftest.$ac_ext
36424cat >>conftest.$ac_ext <<_ACEOF
36425/* end confdefs.h. */
36426
36427/* Override any gcc2 internal prototype to avoid an error. */
36428#ifdef __cplusplus
36429extern "C"
36430#endif
36431/* We use char because int might match the return type of a gcc2
36432 builtin and then its argument prototype would still apply. */
36433char dlerror ();
36434int
36435main ()
36436{
36437dlerror ();
36438 ;
36439 return 0;
36440}
36441_ACEOF
36442rm -f conftest.$ac_objext conftest$ac_exeext
36443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36444 (eval $ac_link) 2>conftest.er1
a848cd7e 36445 ac_status=$?
ac1cb8d3
VS
36446 grep -v '^ *+' conftest.er1 >conftest.err
36447 rm -f conftest.er1
36448 cat conftest.err >&5
a848cd7e
SC
36449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450 (exit $ac_status); } &&
8c539582 36451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36453 (eval $ac_try) 2>&5
36454 ac_status=$?
36455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456 (exit $ac_status); }; } &&
36457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36459 (eval $ac_try) 2>&5
36460 ac_status=$?
36461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462 (exit $ac_status); }; }; then
36463 ac_cv_lib_dl_dlerror=yes
36464else
36465 echo "$as_me: failed program was:" >&5
36466sed 's/^/| /' conftest.$ac_ext >&5
36467
36468ac_cv_lib_dl_dlerror=no
36469fi
ac1cb8d3
VS
36470rm -f conftest.err conftest.$ac_objext \
36471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36472LIBS=$ac_check_lib_save_LIBS
36473fi
36474echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36475echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36476if test $ac_cv_lib_dl_dlerror = yes; then
36477 cat >>confdefs.h <<\_ACEOF
36478#define HAVE_DLERROR 1
36479_ACEOF
36480
36481fi
36482
36483
36484
36485fi
36486done
36487
36488 fi
36489 fi
36490
36491 if test "$HAVE_DL_FUNCS" = 0; then
36492 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 36493 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
36494 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36495echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36496 wxUSE_DYNAMIC_LOADER=no
36497 wxUSE_DYNLIB_CLASS=no
36498 else
36499 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36500echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36501 fi
36502 fi
36503 fi
36504 fi
36505fi
36506
36507if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36508 cat >>confdefs.h <<\_ACEOF
36509#define wxUSE_DYNAMIC_LOADER 1
36510_ACEOF
36511
36512fi
36513if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36514 cat >>confdefs.h <<\_ACEOF
36515#define wxUSE_DYNLIB_CLASS 1
36516_ACEOF
36517
36518fi
36519
36520
36521
36522if test "$wxUSE_PLUGINS" = "yes" ; then
36523 if test "$wxUSE_SHARED" = "no" ; then
36524 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36525echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36526 wxUSE_PLUGINS=no
36527 fi
36528 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36529 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36530echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36531 wxUSE_PLUGINS=no
36532 fi
36533 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36534 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36535echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36536 wxUSE_PLUGINS=no
36537 fi
36538 if test "$wxUSE_PLUGINS" = "yes" ; then
36539 cat >>confdefs.h <<\_ACEOF
36540#define wxUSE_PLUGINS 1
36541_ACEOF
36542
36543 fi
36544fi
36545
36546
36547if test "$wxUSE_STL" = "yes"; then
36548 cat >>confdefs.h <<\_ACEOF
36549#define wxUSE_STL 1
36550_ACEOF
36551
36552fi
36553
36554if test "$wxUSE_APPLE_IEEE" = "yes"; then
36555 cat >>confdefs.h <<\_ACEOF
36556#define wxUSE_APPLE_IEEE 1
36557_ACEOF
36558
36559fi
36560
36561if test "$wxUSE_TIMER" = "yes"; then
36562 cat >>confdefs.h <<\_ACEOF
36563#define wxUSE_TIMER 1
36564_ACEOF
36565
36566fi
36567
9c112555 36568if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36569
36570for ac_header in sys/soundcard.h
36571do
36572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36573if eval "test \"\${$as_ac_Header+set}\" = set"; then
36574 echo "$as_me:$LINENO: checking for $ac_header" >&5
36575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36576if eval "test \"\${$as_ac_Header+set}\" = set"; then
36577 echo $ECHO_N "(cached) $ECHO_C" >&6
36578fi
36579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36581else
36582 # Is the header compilable?
36583echo "$as_me:$LINENO: checking $ac_header usability" >&5
36584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36585cat >conftest.$ac_ext <<_ACEOF
36586/* confdefs.h. */
36587_ACEOF
36588cat confdefs.h >>conftest.$ac_ext
36589cat >>conftest.$ac_ext <<_ACEOF
36590/* end confdefs.h. */
36591$ac_includes_default
36592#include <$ac_header>
36593_ACEOF
36594rm -f conftest.$ac_objext
36595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36596 (eval $ac_compile) 2>conftest.er1
a848cd7e 36597 ac_status=$?
ac1cb8d3
VS
36598 grep -v '^ *+' conftest.er1 >conftest.err
36599 rm -f conftest.er1
36600 cat conftest.err >&5
a848cd7e
SC
36601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36602 (exit $ac_status); } &&
8c539582 36603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36605 (eval $ac_try) 2>&5
36606 ac_status=$?
36607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608 (exit $ac_status); }; } &&
36609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36611 (eval $ac_try) 2>&5
36612 ac_status=$?
36613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36614 (exit $ac_status); }; }; then
36615 ac_header_compiler=yes
36616else
36617 echo "$as_me: failed program was:" >&5
36618sed 's/^/| /' conftest.$ac_ext >&5
36619
36620ac_header_compiler=no
36621fi
ac1cb8d3 36622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36624echo "${ECHO_T}$ac_header_compiler" >&6
36625
36626# Is the header present?
36627echo "$as_me:$LINENO: checking $ac_header presence" >&5
36628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36629cat >conftest.$ac_ext <<_ACEOF
36630/* confdefs.h. */
36631_ACEOF
36632cat confdefs.h >>conftest.$ac_ext
36633cat >>conftest.$ac_ext <<_ACEOF
36634/* end confdefs.h. */
36635#include <$ac_header>
36636_ACEOF
36637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36639 ac_status=$?
36640 grep -v '^ *+' conftest.er1 >conftest.err
36641 rm -f conftest.er1
36642 cat conftest.err >&5
36643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644 (exit $ac_status); } >/dev/null; then
36645 if test -s conftest.err; then
36646 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36648 else
36649 ac_cpp_err=
36650 fi
36651else
36652 ac_cpp_err=yes
36653fi
36654if test -z "$ac_cpp_err"; then
36655 ac_header_preproc=yes
36656else
36657 echo "$as_me: failed program was:" >&5
36658sed 's/^/| /' conftest.$ac_ext >&5
36659
36660 ac_header_preproc=no
36661fi
36662rm -f conftest.err conftest.$ac_ext
36663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36664echo "${ECHO_T}$ac_header_preproc" >&6
36665
36666# So? What about this header?
ac1cb8d3
VS
36667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36668 yes:no: )
a848cd7e
SC
36669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36673 ac_header_preproc=yes
a848cd7e 36674 ;;
ac1cb8d3 36675 no:yes:* )
a848cd7e
SC
36676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36679echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36683echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36688 (
36689 cat <<\_ASBOX
ac1cb8d3
VS
36690## ----------------------------------------- ##
36691## Report this to wx-dev@lists.wxwidgets.org ##
36692## ----------------------------------------- ##
a848cd7e
SC
36693_ASBOX
36694 ) |
36695 sed "s/^/$as_me: WARNING: /" >&2
36696 ;;
36697esac
36698echo "$as_me:$LINENO: checking for $ac_header" >&5
36699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36700if eval "test \"\${$as_ac_Header+set}\" = set"; then
36701 echo $ECHO_N "(cached) $ECHO_C" >&6
36702else
ac1cb8d3 36703 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36704fi
36705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36707
36708fi
36709if test `eval echo '${'$as_ac_Header'}'` = yes; then
36710 cat >>confdefs.h <<_ACEOF
36711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36712_ACEOF
36713
9c112555
MW
36714else
36715 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
a848cd7e
SC
36716fi
36717
36718done
36719
9c112555
MW
36720fi
36721WITH_PLUGIN_SDL=0
36722if test "$wxUSE_SOUND" = "yes"; then
36723 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36724 if test "$wxUSE_LIBSDL" != "no"; then
36725
36726# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36727if test "${with_sdl_prefix+set}" = set; then
36728 withval="$with_sdl_prefix"
36729 sdl_prefix="$withval"
36730else
36731 sdl_prefix=""
36732fi;
36733
36734# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36735if test "${with_sdl_exec_prefix+set}" = set; then
36736 withval="$with_sdl_exec_prefix"
36737 sdl_exec_prefix="$withval"
36738else
36739 sdl_exec_prefix=""
36740fi;
36741# Check whether --enable-sdltest or --disable-sdltest was given.
36742if test "${enable_sdltest+set}" = set; then
36743 enableval="$enable_sdltest"
36744
36745else
36746 enable_sdltest=yes
36747fi;
36748
36749 if test x$sdl_exec_prefix != x ; then
36750 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36751 if test x${SDL_CONFIG+set} != xset ; then
36752 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36753 fi
36754 fi
36755 if test x$sdl_prefix != x ; then
36756 sdl_args="$sdl_args --prefix=$sdl_prefix"
36757 if test x${SDL_CONFIG+set} != xset ; then
36758 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36759 fi
36760 fi
36761
36762
36763 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36764 # Extract the first word of "sdl-config", so it can be a program name with args.
36765set dummy sdl-config; ac_word=$2
36766echo "$as_me:$LINENO: checking for $ac_word" >&5
36767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36768if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36769 echo $ECHO_N "(cached) $ECHO_C" >&6
36770else
36771 case $SDL_CONFIG in
36772 [\\/]* | ?:[\\/]*)
36773 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36774 ;;
36775 *)
36776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36777for as_dir in $PATH
36778do
36779 IFS=$as_save_IFS
36780 test -z "$as_dir" && as_dir=.
36781 for ac_exec_ext in '' $ac_executable_extensions; do
36782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36783 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36785 break 2
36786 fi
36787done
36788done
36789
36790 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36791 ;;
36792esac
36793fi
36794SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36795
36796if test -n "$SDL_CONFIG"; then
36797 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36798echo "${ECHO_T}$SDL_CONFIG" >&6
36799else
36800 echo "$as_me:$LINENO: result: no" >&5
36801echo "${ECHO_T}no" >&6
36802fi
36803
36804 min_sdl_version=1.2.0
36805 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36806echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36807 no_sdl=""
36808 if test "$SDL_CONFIG" = "no" ; then
36809 no_sdl=yes
36810 else
36811 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36812 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36813
36814 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36815 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36816 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36817 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36818 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36819 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36820 if test "x$enable_sdltest" = "xyes" ; then
36821 ac_save_CFLAGS="$CFLAGS"
94acd38e 36822 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36823 ac_save_LIBS="$LIBS"
36824 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36825 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36826 LIBS="$LIBS $SDL_LIBS"
36827 rm -f conf.sdltest
36828 if test "$cross_compiling" = yes; then
36829 echo $ac_n "cross compiling; assumed OK... $ac_c"
36830else
36831 cat >conftest.$ac_ext <<_ACEOF
36832/* confdefs.h. */
36833_ACEOF
36834cat confdefs.h >>conftest.$ac_ext
36835cat >>conftest.$ac_ext <<_ACEOF
36836/* end confdefs.h. */
36837
36838#include <stdio.h>
36839#include <stdlib.h>
36840#include <string.h>
36841#include "SDL.h"
36842
36843char*
36844my_strdup (char *str)
36845{
36846 char *new_str;
36847
36848 if (str)
36849 {
36850 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36851 strcpy (new_str, str);
36852 }
36853 else
36854 new_str = NULL;
36855
36856 return new_str;
36857}
36858
36859int main (int argc, char *argv[])
36860{
36861 int major, minor, micro;
36862 char *tmp_version;
36863
36864 /* This hangs on some systems (?)
36865 system ("touch conf.sdltest");
36866 */
36867 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36868
36869 /* HP/UX 9 (%@#!) writes to sscanf strings */
36870 tmp_version = my_strdup("$min_sdl_version");
36871 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36872 printf("%s, bad version string\n", "$min_sdl_version");
36873 exit(1);
36874 }
36875
36876 if (($sdl_major_version > major) ||
36877 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36878 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36879 {
36880 return 0;
36881 }
36882 else
36883 {
36884 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36885 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36886 printf("*** best to upgrade to the required version.\n");
36887 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36888 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36889 printf("*** config.cache before re-running configure\n");
36890 return 1;
36891 }
36892}
36893
36894
36895_ACEOF
36896rm -f conftest$ac_exeext
36897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36898 (eval $ac_link) 2>&5
36899 ac_status=$?
36900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36903 (eval $ac_try) 2>&5
36904 ac_status=$?
36905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36906 (exit $ac_status); }; }; then
36907 :
36908else
36909 echo "$as_me: program exited with status $ac_status" >&5
36910echo "$as_me: failed program was:" >&5
36911sed 's/^/| /' conftest.$ac_ext >&5
36912
36913( exit $ac_status )
36914no_sdl=yes
36915fi
ac1cb8d3 36916rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36917fi
36918 CFLAGS="$ac_save_CFLAGS"
94acd38e 36919 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36920 LIBS="$ac_save_LIBS"
36921 fi
36922 fi
36923 if test "x$no_sdl" = x ; then
36924 echo "$as_me:$LINENO: result: yes" >&5
36925echo "${ECHO_T}yes" >&6
36926
36927 EXTRALIBS_SDL="$SDL_LIBS"
36928 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36929 cat >>confdefs.h <<\_ACEOF
36930#define wxUSE_LIBSDL 1
36931_ACEOF
36932
36933
36934 else
36935 echo "$as_me:$LINENO: result: no" >&5
36936echo "${ECHO_T}no" >&6
36937 if test "$SDL_CONFIG" = "no" ; then
36938 echo "*** The sdl-config script installed by SDL could not be found"
36939 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36940 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36941 echo "*** full path to sdl-config."
36942 else
36943 if test -f conf.sdltest ; then
36944 :
36945 else
36946 echo "*** Could not run SDL test program, checking why..."
36947 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36948 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36949 LIBS="$LIBS $SDL_LIBS"
36950 cat >conftest.$ac_ext <<_ACEOF
36951/* confdefs.h. */
36952_ACEOF
36953cat confdefs.h >>conftest.$ac_ext
36954cat >>conftest.$ac_ext <<_ACEOF
36955/* end confdefs.h. */
36956
36957#include <stdio.h>
36958#include "SDL.h"
36959
36960int main(int argc, char *argv[])
36961{ return 0; }
36962#undef main
36963#define main K_and_R_C_main
36964
36965int
36966main ()
36967{
36968 return 0;
36969 ;
36970 return 0;
36971}
36972_ACEOF
36973rm -f conftest.$ac_objext conftest$ac_exeext
36974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36975 (eval $ac_link) 2>conftest.er1
a848cd7e 36976 ac_status=$?
ac1cb8d3
VS
36977 grep -v '^ *+' conftest.er1 >conftest.err
36978 rm -f conftest.er1
36979 cat conftest.err >&5
a848cd7e
SC
36980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981 (exit $ac_status); } &&
8c539582 36982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36984 (eval $ac_try) 2>&5
36985 ac_status=$?
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); }; } &&
36988 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990 (eval $ac_try) 2>&5
36991 ac_status=$?
36992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993 (exit $ac_status); }; }; then
36994 echo "*** The test program compiled, but did not run. This usually means"
36995 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36996 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36997 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36998 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36999 echo "*** is required on your system"
37000 echo "***"
37001 echo "*** If you have an old version installed, it is best to remove it, although"
37002 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
37003else
37004 echo "$as_me: failed program was:" >&5
37005sed 's/^/| /' conftest.$ac_ext >&5
37006
37007 echo "*** The test program failed to compile or link. See the file config.log for the"
37008 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
37009 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
37010 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
37011fi
ac1cb8d3
VS
37012rm -f conftest.err conftest.$ac_objext \
37013 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37014 CFLAGS="$ac_save_CFLAGS"
94acd38e 37015 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37016 LIBS="$ac_save_LIBS"
37017 fi
37018 fi
37019 SDL_CFLAGS=""
37020 SDL_LIBS=""
37021 wxUSE_LIBSDL="no"
37022 fi
37023
37024
37025 rm -f conf.sdltest
37026
37027 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
37028 WITH_PLUGIN_SDL=1
37029 fi
37030 fi
37031 fi
37032
37033 cat >>confdefs.h <<\_ACEOF
37034#define wxUSE_SOUND 1
37035_ACEOF
37036
37037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
37038fi
37039
d1c38808
VZ
37040if test "$WXGTK20" = 1; then
37041 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37042 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
37043
37044
37045 succeeded=no
37046
37047 if test -z "$PKG_CONFIG"; then
37048 # Extract the first word of "pkg-config", so it can be a program name with args.
37049set dummy pkg-config; ac_word=$2
37050echo "$as_me:$LINENO: checking for $ac_word" >&5
37051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37052if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37053 echo $ECHO_N "(cached) $ECHO_C" >&6
37054else
37055 case $PKG_CONFIG in
37056 [\\/]* | ?:[\\/]*)
37057 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37058 ;;
37059 *)
37060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37061for as_dir in $PATH
37062do
37063 IFS=$as_save_IFS
37064 test -z "$as_dir" && as_dir=.
37065 for ac_exec_ext in '' $ac_executable_extensions; do
37066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37067 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37069 break 2
37070 fi
37071done
37072done
37073
37074 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37075 ;;
37076esac
37077fi
37078PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37079
37080if test -n "$PKG_CONFIG"; then
37081 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37082echo "${ECHO_T}$PKG_CONFIG" >&6
37083else
37084 echo "$as_me:$LINENO: result: no" >&5
37085echo "${ECHO_T}no" >&6
37086fi
37087
37088 fi
37089
37090 if test "$PKG_CONFIG" = "no" ; then
37091 echo "*** The pkg-config script could not be found. Make sure it is"
37092 echo "*** in your path, or set the PKG_CONFIG environment variable"
37093 echo "*** to the full path to pkg-config."
37094 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37095 else
37096 PKG_CONFIG_MIN_VERSION=0.9.0
37097 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37098 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37099echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37100
ffa762ff 37101 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37102 echo "$as_me:$LINENO: result: yes" >&5
37103echo "${ECHO_T}yes" >&6
37104 succeeded=yes
37105
37106 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37107echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37108 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37109 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37110echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37111
37112 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37113echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37114 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37115 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37116echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37117 else
37118 LIBGNOMEPRINTUI_CFLAGS=""
37119 LIBGNOMEPRINTUI_LIBS=""
37120 ## If we have a custom action on failure, don't print errors, but
37121 ## do set a variable so people can do so.
ffa762ff 37122 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37123
37124 fi
37125
37126
37127
37128 else
37129 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37130 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37131 fi
37132 fi
37133
37134 if test $succeeded = yes; then
37135
d1c38808
VZ
37136 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37137 cat >>confdefs.h <<\_ACEOF
37138#define wxUSE_LIBGNOMEPRINT 1
37139_ACEOF
37140
37141
37142 else
37143
37144 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37145echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37146 wxUSE_LIBGNOMEPRINT="no"
37147
37148
37149 fi
37150
37151 fi
37152 fi
37153fi
37154
37155
a848cd7e
SC
37156if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37157 cat >>confdefs.h <<\_ACEOF
37158#define wxUSE_CMDLINE_PARSER 1
37159_ACEOF
37160
37161fi
37162
37163if test "$wxUSE_STOPWATCH" = "yes"; then
37164 cat >>confdefs.h <<\_ACEOF
37165#define wxUSE_STOPWATCH 1
37166_ACEOF
37167
37168fi
37169
37170if test "$wxUSE_DATETIME" = "yes"; then
37171 cat >>confdefs.h <<\_ACEOF
37172#define wxUSE_DATETIME 1
37173_ACEOF
37174
37175fi
37176
37177if test "$wxUSE_FILE" = "yes"; then
37178 cat >>confdefs.h <<\_ACEOF
37179#define wxUSE_FILE 1
37180_ACEOF
37181
37182fi
37183
37184if test "$wxUSE_FFILE" = "yes"; then
37185 cat >>confdefs.h <<\_ACEOF
37186#define wxUSE_FFILE 1
37187_ACEOF
37188
37189fi
37190
37191if test "$wxUSE_FILESYSTEM" = "yes"; then
37192 cat >>confdefs.h <<\_ACEOF
37193#define wxUSE_FILESYSTEM 1
37194_ACEOF
37195
37196fi
37197
37198if test "$wxUSE_FS_ZIP" = "yes"; then
37199 cat >>confdefs.h <<\_ACEOF
37200#define wxUSE_FS_ZIP 1
37201_ACEOF
37202
37203fi
37204
9e8e867f 37205if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37206 cat >>confdefs.h <<\_ACEOF
9e8e867f 37207#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37208_ACEOF
37209
37210fi
37211
37212if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37213 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37214 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37215echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37216 elif test "$wxUSE_ZLIB" = "no"; then
37217 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37218echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37219 else
37220 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37221#define wxUSE_ZIPSTREAM 1
37222_ACEOF
37223
81f90336 37224 fi
a848cd7e
SC
37225fi
37226
a848cd7e 37227if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
37228 if test "$USE_UNIX" != 1; then
37229 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
37230echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
37231 wxUSE_ON_FATAL_EXCEPTION=no
37232 else
37233 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37234#define wxUSE_ON_FATAL_EXCEPTION 1
37235_ACEOF
37236
18228ab4 37237 fi
a848cd7e
SC
37238fi
37239
eaff0f0d
VZ
37240if test "$wxUSE_STACKWALKER" = "yes"; then
37241 cat >>confdefs.h <<\_ACEOF
37242#define wxUSE_STACKWALKER 1
37243_ACEOF
37244
37245fi
37246
36b6448c 37247if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
37248 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
37249 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
37250echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
37251 wxUSE_DEBUGREPORT=no
37252 else
37253 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37254#define wxUSE_DEBUGREPORT 1
37255_ACEOF
37256
21dfc162
MW
37257 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37258 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37259 fi
dfe0c803 37260 fi
36b6448c
VZ
37261fi
37262
a848cd7e
SC
37263if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37264 cat >>confdefs.h <<\_ACEOF
37265#define wxUSE_SNGLINST_CHECKER 1
37266_ACEOF
37267
37268fi
37269
37270if test "$wxUSE_BUSYINFO" = "yes"; then
37271 cat >>confdefs.h <<\_ACEOF
37272#define wxUSE_BUSYINFO 1
37273_ACEOF
37274
37275fi
37276
37277if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37278 cat >>confdefs.h <<\_ACEOF
37279#define wxUSE_STD_IOSTREAM 1
37280_ACEOF
37281
37282fi
37283
59746b65
MW
37284if test "$wxUSE_STD_STRING" = "yes"; then
37285 cat >>confdefs.h <<\_ACEOF
37286#define wxUSE_STD_STRING 1
37287_ACEOF
37288
37289fi
37290
07158944
VZ
37291if test "$wxUSE_STDPATHS" = "yes"; then
37292 cat >>confdefs.h <<\_ACEOF
37293#define wxUSE_STDPATHS 1
37294_ACEOF
37295
37296fi
37297
a848cd7e
SC
37298if test "$wxUSE_TEXTBUFFER" = "yes"; then
37299 cat >>confdefs.h <<\_ACEOF
37300#define wxUSE_TEXTBUFFER 1
37301_ACEOF
37302
37303fi
37304
37305if test "$wxUSE_TEXTFILE" = "yes"; then
37306 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
37307 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
37308echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
37309 else
37310 cat >>confdefs.h <<\_ACEOF
37311#define wxUSE_TEXTFILE 1
37312_ACEOF
37313
37314 fi
37315fi
37316
37317if test "$wxUSE_CONFIG" = "yes" ; then
37318 if test "$wxUSE_TEXTFILE" != "yes"; then
37319 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
37320echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
37321 else
37322 cat >>confdefs.h <<\_ACEOF
37323#define wxUSE_CONFIG 1
89be85c2
VS
37324_ACEOF
37325
37326 cat >>confdefs.h <<\_ACEOF
37327#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
37328_ACEOF
37329
37330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37331 fi
37332fi
37333
37334if test "$wxUSE_INTL" = "yes" ; then
37335 if test "$wxUSE_FILE" != "yes"; then
37336 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37337echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37338 else
37339 cat >>confdefs.h <<\_ACEOF
37340#define wxUSE_INTL 1
37341_ACEOF
37342
37343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37344 GUIDIST="$GUIDIST INTL_DIST"
37345 fi
37346fi
37347
37348if test "$wxUSE_LOG" = "yes"; then
37349 cat >>confdefs.h <<\_ACEOF
37350#define wxUSE_LOG 1
37351_ACEOF
37352
37353
37354 if test "$wxUSE_LOGGUI" = "yes"; then
37355 cat >>confdefs.h <<\_ACEOF
37356#define wxUSE_LOGGUI 1
37357_ACEOF
37358
37359 fi
37360
37361 if test "$wxUSE_LOGWINDOW" = "yes"; then
37362 cat >>confdefs.h <<\_ACEOF
37363#define wxUSE_LOGWINDOW 1
37364_ACEOF
37365
37366 fi
37367
37368 if test "$wxUSE_LOGDIALOG" = "yes"; then
37369 cat >>confdefs.h <<\_ACEOF
37370#define wxUSE_LOG_DIALOG 1
37371_ACEOF
37372
37373 fi
0b78747f
MW
37374
37375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37376fi
37377
37378if test "$wxUSE_LONGLONG" = "yes"; then
37379 cat >>confdefs.h <<\_ACEOF
37380#define wxUSE_LONGLONG 1
37381_ACEOF
37382
37383fi
37384
37385if test "$wxUSE_GEOMETRY" = "yes"; then
37386 cat >>confdefs.h <<\_ACEOF
37387#define wxUSE_GEOMETRY 1
37388_ACEOF
37389
37390fi
37391
a848cd7e
SC
37392if test "$wxUSE_STREAMS" = "yes" ; then
37393 cat >>confdefs.h <<\_ACEOF
37394#define wxUSE_STREAMS 1
37395_ACEOF
37396
37397fi
37398
37399
37400if test "$wxUSE_DATETIME" = "yes"; then
37401
37402for ac_func in strptime
37403do
37404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37405echo "$as_me:$LINENO: checking for $ac_func" >&5
37406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37407if eval "test \"\${$as_ac_var+set}\" = set"; then
37408 echo $ECHO_N "(cached) $ECHO_C" >&6
37409else
37410 cat >conftest.$ac_ext <<_ACEOF
37411/* confdefs.h. */
37412_ACEOF
37413cat confdefs.h >>conftest.$ac_ext
37414cat >>conftest.$ac_ext <<_ACEOF
37415/* end confdefs.h. */
ac1cb8d3
VS
37416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37418#define $ac_func innocuous_$ac_func
37419
a848cd7e
SC
37420/* System header to define __stub macros and hopefully few prototypes,
37421 which can conflict with char $ac_func (); below.
37422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37423 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37424
a848cd7e
SC
37425#ifdef __STDC__
37426# include <limits.h>
37427#else
37428# include <assert.h>
37429#endif
ac1cb8d3
VS
37430
37431#undef $ac_func
37432
a848cd7e
SC
37433/* Override any gcc2 internal prototype to avoid an error. */
37434#ifdef __cplusplus
37435extern "C"
37436{
37437#endif
37438/* We use char because int might match the return type of a gcc2
37439 builtin and then its argument prototype would still apply. */
37440char $ac_func ();
37441/* The GNU C library defines this for functions which it implements
37442 to always fail with ENOSYS. Some functions are actually named
37443 something starting with __ and the normal name is an alias. */
37444#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37445choke me
37446#else
37447char (*f) () = $ac_func;
37448#endif
37449#ifdef __cplusplus
37450}
37451#endif
37452
37453int
37454main ()
37455{
37456return f != $ac_func;
37457 ;
37458 return 0;
37459}
37460_ACEOF
37461rm -f conftest.$ac_objext conftest$ac_exeext
37462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37463 (eval $ac_link) 2>conftest.er1
a848cd7e 37464 ac_status=$?
ac1cb8d3
VS
37465 grep -v '^ *+' conftest.er1 >conftest.err
37466 rm -f conftest.er1
37467 cat conftest.err >&5
a848cd7e
SC
37468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37469 (exit $ac_status); } &&
8c539582 37470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37472 (eval $ac_try) 2>&5
37473 ac_status=$?
37474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475 (exit $ac_status); }; } &&
37476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37478 (eval $ac_try) 2>&5
37479 ac_status=$?
37480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37481 (exit $ac_status); }; }; then
37482 eval "$as_ac_var=yes"
37483else
37484 echo "$as_me: failed program was:" >&5
37485sed 's/^/| /' conftest.$ac_ext >&5
37486
37487eval "$as_ac_var=no"
37488fi
ac1cb8d3
VS
37489rm -f conftest.err conftest.$ac_objext \
37490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37491fi
37492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37493echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37494if test `eval echo '${'$as_ac_var'}'` = yes; then
37495 cat >>confdefs.h <<_ACEOF
37496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37497_ACEOF
37498
37499fi
37500done
37501
37502
37503 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37504echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37505if test "${wx_cv_var_timezone+set}" = set; then
37506 echo $ECHO_N "(cached) $ECHO_C" >&6
37507else
37508
37509 cat >conftest.$ac_ext <<_ACEOF
37510/* confdefs.h. */
37511_ACEOF
37512cat confdefs.h >>conftest.$ac_ext
37513cat >>conftest.$ac_ext <<_ACEOF
37514/* end confdefs.h. */
37515
37516 #include <time.h>
37517
37518int
37519main ()
37520{
37521
37522 int tz;
37523 tz = timezone;
37524
37525 ;
37526 return 0;
37527}
37528_ACEOF
37529rm -f conftest.$ac_objext
37530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37531 (eval $ac_compile) 2>conftest.er1
a848cd7e 37532 ac_status=$?
ac1cb8d3
VS
37533 grep -v '^ *+' conftest.er1 >conftest.err
37534 rm -f conftest.er1
37535 cat conftest.err >&5
a848cd7e
SC
37536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37537 (exit $ac_status); } &&
8c539582 37538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37540 (eval $ac_try) 2>&5
37541 ac_status=$?
37542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37543 (exit $ac_status); }; } &&
37544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37546 (eval $ac_try) 2>&5
37547 ac_status=$?
37548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549 (exit $ac_status); }; }; then
37550
37551 wx_cv_var_timezone=timezone
37552
37553else
37554 echo "$as_me: failed program was:" >&5
37555sed 's/^/| /' conftest.$ac_ext >&5
37556
37557
37558 cat >conftest.$ac_ext <<_ACEOF
37559/* confdefs.h. */
37560_ACEOF
37561cat confdefs.h >>conftest.$ac_ext
37562cat >>conftest.$ac_ext <<_ACEOF
37563/* end confdefs.h. */
37564
37565 #include <time.h>
37566
37567int
37568main ()
37569{
37570
37571 int tz;
37572 tz = _timezone;
37573
37574 ;
37575 return 0;
37576}
37577_ACEOF
37578rm -f conftest.$ac_objext
37579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37580 (eval $ac_compile) 2>conftest.er1
a848cd7e 37581 ac_status=$?
ac1cb8d3
VS
37582 grep -v '^ *+' conftest.er1 >conftest.err
37583 rm -f conftest.er1
37584 cat conftest.err >&5
a848cd7e
SC
37585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586 (exit $ac_status); } &&
8c539582 37587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37589 (eval $ac_try) 2>&5
37590 ac_status=$?
37591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592 (exit $ac_status); }; } &&
37593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595 (eval $ac_try) 2>&5
37596 ac_status=$?
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); }; }; then
37599
37600 wx_cv_var_timezone=_timezone
37601
37602else
37603 echo "$as_me: failed program was:" >&5
37604sed 's/^/| /' conftest.$ac_ext >&5
37605
37606
37607 cat >conftest.$ac_ext <<_ACEOF
37608/* confdefs.h. */
37609_ACEOF
37610cat confdefs.h >>conftest.$ac_ext
37611cat >>conftest.$ac_ext <<_ACEOF
37612/* end confdefs.h. */
37613
37614 #include <time.h>
37615
37616int
37617main ()
37618{
37619
37620 int tz;
37621 tz = __timezone;
37622
37623 ;
37624 return 0;
37625}
37626_ACEOF
37627rm -f conftest.$ac_objext
37628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37629 (eval $ac_compile) 2>conftest.er1
a848cd7e 37630 ac_status=$?
ac1cb8d3
VS
37631 grep -v '^ *+' conftest.er1 >conftest.err
37632 rm -f conftest.er1
37633 cat conftest.err >&5
a848cd7e
SC
37634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37635 (exit $ac_status); } &&
8c539582 37636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37638 (eval $ac_try) 2>&5
37639 ac_status=$?
37640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37641 (exit $ac_status); }; } &&
37642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37644 (eval $ac_try) 2>&5
37645 ac_status=$?
37646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); }; }; then
37648
37649 wx_cv_var_timezone=__timezone
37650
37651else
37652 echo "$as_me: failed program was:" >&5
37653sed 's/^/| /' conftest.$ac_ext >&5
37654
37655
37656 if test "$USE_DOS" = 0 ; then
37657 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37658echo "$as_me: WARNING: no timezone variable" >&2;}
37659 fi
37660
37661
37662fi
ac1cb8d3 37663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37664
37665
37666fi
ac1cb8d3 37667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37668
37669
37670fi
ac1cb8d3 37671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37672
37673
37674fi
37675echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37676echo "${ECHO_T}$wx_cv_var_timezone" >&6
37677
37678 if test "x$wx_cv_var_timezone" != x ; then
37679 cat >>confdefs.h <<_ACEOF
37680#define WX_TIMEZONE $wx_cv_var_timezone
37681_ACEOF
37682
37683 fi
37684
37685
37686for ac_func in localtime
37687do
37688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37689echo "$as_me:$LINENO: checking for $ac_func" >&5
37690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37691if eval "test \"\${$as_ac_var+set}\" = set"; then
37692 echo $ECHO_N "(cached) $ECHO_C" >&6
37693else
37694 cat >conftest.$ac_ext <<_ACEOF
37695/* confdefs.h. */
37696_ACEOF
37697cat confdefs.h >>conftest.$ac_ext
37698cat >>conftest.$ac_ext <<_ACEOF
37699/* end confdefs.h. */
ac1cb8d3
VS
37700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37702#define $ac_func innocuous_$ac_func
37703
a848cd7e
SC
37704/* System header to define __stub macros and hopefully few prototypes,
37705 which can conflict with char $ac_func (); below.
37706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37707 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37708
a848cd7e
SC
37709#ifdef __STDC__
37710# include <limits.h>
37711#else
37712# include <assert.h>
37713#endif
ac1cb8d3
VS
37714
37715#undef $ac_func
37716
a848cd7e
SC
37717/* Override any gcc2 internal prototype to avoid an error. */
37718#ifdef __cplusplus
37719extern "C"
37720{
37721#endif
37722/* We use char because int might match the return type of a gcc2
37723 builtin and then its argument prototype would still apply. */
37724char $ac_func ();
37725/* The GNU C library defines this for functions which it implements
37726 to always fail with ENOSYS. Some functions are actually named
37727 something starting with __ and the normal name is an alias. */
37728#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37729choke me
37730#else
37731char (*f) () = $ac_func;
37732#endif
37733#ifdef __cplusplus
37734}
37735#endif
37736
37737int
37738main ()
37739{
37740return f != $ac_func;
37741 ;
37742 return 0;
37743}
37744_ACEOF
37745rm -f conftest.$ac_objext conftest$ac_exeext
37746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37747 (eval $ac_link) 2>conftest.er1
a848cd7e 37748 ac_status=$?
ac1cb8d3
VS
37749 grep -v '^ *+' conftest.er1 >conftest.err
37750 rm -f conftest.er1
37751 cat conftest.err >&5
a848cd7e
SC
37752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37753 (exit $ac_status); } &&
8c539582 37754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37756 (eval $ac_try) 2>&5
37757 ac_status=$?
37758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37759 (exit $ac_status); }; } &&
37760 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37762 (eval $ac_try) 2>&5
37763 ac_status=$?
37764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37765 (exit $ac_status); }; }; then
37766 eval "$as_ac_var=yes"
37767else
37768 echo "$as_me: failed program was:" >&5
37769sed 's/^/| /' conftest.$ac_ext >&5
37770
37771eval "$as_ac_var=no"
37772fi
ac1cb8d3
VS
37773rm -f conftest.err conftest.$ac_objext \
37774 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37775fi
37776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37777echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37778if test `eval echo '${'$as_ac_var'}'` = yes; then
37779 cat >>confdefs.h <<_ACEOF
37780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37781_ACEOF
37782
37783fi
37784done
37785
37786
37787 if test "$ac_cv_func_localtime" = "yes"; then
37788 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37789echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37790if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37791 echo $ECHO_N "(cached) $ECHO_C" >&6
37792else
37793
37794 cat >conftest.$ac_ext <<_ACEOF
37795/* confdefs.h. */
37796_ACEOF
37797cat confdefs.h >>conftest.$ac_ext
37798cat >>conftest.$ac_ext <<_ACEOF
37799/* end confdefs.h. */
37800
37801 #include <time.h>
37802
37803int
37804main ()
37805{
37806
37807 struct tm tm;
37808 tm.tm_gmtoff++;
37809
37810 ;
37811 return 0;
37812}
37813_ACEOF
37814rm -f conftest.$ac_objext
37815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37816 (eval $ac_compile) 2>conftest.er1
a848cd7e 37817 ac_status=$?
ac1cb8d3
VS
37818 grep -v '^ *+' conftest.er1 >conftest.err
37819 rm -f conftest.er1
37820 cat conftest.err >&5
a848cd7e
SC
37821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37822 (exit $ac_status); } &&
8c539582 37823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37825 (eval $ac_try) 2>&5
37826 ac_status=$?
37827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37828 (exit $ac_status); }; } &&
37829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37831 (eval $ac_try) 2>&5
37832 ac_status=$?
37833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37834 (exit $ac_status); }; }; then
37835
37836 wx_cv_struct_tm_has_gmtoff=yes
37837
37838else
37839 echo "$as_me: failed program was:" >&5
37840sed 's/^/| /' conftest.$ac_ext >&5
37841
37842wx_cv_struct_tm_has_gmtoff=no
37843
37844fi
ac1cb8d3 37845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37846
37847fi
37848echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37849echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37850 fi
37851
37852 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37853 cat >>confdefs.h <<\_ACEOF
37854#define WX_GMTOFF_IN_TM 1
37855_ACEOF
37856
37857 fi
37858
37859
37860
37861for ac_func in gettimeofday ftime
37862do
37863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37864echo "$as_me:$LINENO: checking for $ac_func" >&5
37865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37866if eval "test \"\${$as_ac_var+set}\" = set"; then
37867 echo $ECHO_N "(cached) $ECHO_C" >&6
37868else
37869 cat >conftest.$ac_ext <<_ACEOF
37870/* confdefs.h. */
37871_ACEOF
37872cat confdefs.h >>conftest.$ac_ext
37873cat >>conftest.$ac_ext <<_ACEOF
37874/* end confdefs.h. */
ac1cb8d3
VS
37875/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37877#define $ac_func innocuous_$ac_func
37878
a848cd7e
SC
37879/* System header to define __stub macros and hopefully few prototypes,
37880 which can conflict with char $ac_func (); below.
37881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37882 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37883
a848cd7e
SC
37884#ifdef __STDC__
37885# include <limits.h>
37886#else
37887# include <assert.h>
37888#endif
ac1cb8d3
VS
37889
37890#undef $ac_func
37891
a848cd7e
SC
37892/* Override any gcc2 internal prototype to avoid an error. */
37893#ifdef __cplusplus
37894extern "C"
37895{
37896#endif
37897/* We use char because int might match the return type of a gcc2
37898 builtin and then its argument prototype would still apply. */
37899char $ac_func ();
37900/* The GNU C library defines this for functions which it implements
37901 to always fail with ENOSYS. Some functions are actually named
37902 something starting with __ and the normal name is an alias. */
37903#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37904choke me
37905#else
37906char (*f) () = $ac_func;
37907#endif
37908#ifdef __cplusplus
37909}
37910#endif
37911
37912int
37913main ()
37914{
37915return f != $ac_func;
37916 ;
37917 return 0;
37918}
37919_ACEOF
37920rm -f conftest.$ac_objext conftest$ac_exeext
37921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37922 (eval $ac_link) 2>conftest.er1
a848cd7e 37923 ac_status=$?
ac1cb8d3
VS
37924 grep -v '^ *+' conftest.er1 >conftest.err
37925 rm -f conftest.er1
37926 cat conftest.err >&5
a848cd7e
SC
37927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37928 (exit $ac_status); } &&
8c539582 37929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37931 (eval $ac_try) 2>&5
37932 ac_status=$?
37933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37934 (exit $ac_status); }; } &&
37935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37937 (eval $ac_try) 2>&5
37938 ac_status=$?
37939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37940 (exit $ac_status); }; }; then
37941 eval "$as_ac_var=yes"
37942else
37943 echo "$as_me: failed program was:" >&5
37944sed 's/^/| /' conftest.$ac_ext >&5
37945
37946eval "$as_ac_var=no"
37947fi
ac1cb8d3
VS
37948rm -f conftest.err conftest.$ac_objext \
37949 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37950fi
37951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37952echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37953if test `eval echo '${'$as_ac_var'}'` = yes; then
37954 cat >>confdefs.h <<_ACEOF
37955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37956_ACEOF
37957 break
37958fi
37959done
37960
37961
37962 if test "$ac_cv_func_gettimeofday" = "yes"; then
37963 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37964echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37965if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37966 echo $ECHO_N "(cached) $ECHO_C" >&6
37967else
37968
37969
37970
37971 ac_ext=cc
37972ac_cpp='$CXXCPP $CPPFLAGS'
37973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37976
37977
37978 cat >conftest.$ac_ext <<_ACEOF
37979/* confdefs.h. */
37980_ACEOF
37981cat confdefs.h >>conftest.$ac_ext
37982cat >>conftest.$ac_ext <<_ACEOF
37983/* end confdefs.h. */
37984
37985 #include <sys/time.h>
37986 #include <unistd.h>
37987
37988int
37989main ()
37990{
37991
37992 struct timeval tv;
37993 gettimeofday(&tv, NULL);
37994
37995 ;
37996 return 0;
37997}
37998_ACEOF
37999rm -f conftest.$ac_objext
38000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38001 (eval $ac_compile) 2>conftest.er1
a848cd7e 38002 ac_status=$?
ac1cb8d3
VS
38003 grep -v '^ *+' conftest.er1 >conftest.err
38004 rm -f conftest.er1
38005 cat conftest.err >&5
a848cd7e
SC
38006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007 (exit $ac_status); } &&
8c539582 38008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38010 (eval $ac_try) 2>&5
38011 ac_status=$?
38012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38013 (exit $ac_status); }; } &&
38014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38016 (eval $ac_try) 2>&5
38017 ac_status=$?
38018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38019 (exit $ac_status); }; }; then
38020 wx_cv_func_gettimeofday_has_2_args=yes
38021else
38022 echo "$as_me: failed program was:" >&5
38023sed 's/^/| /' conftest.$ac_ext >&5
38024
38025cat >conftest.$ac_ext <<_ACEOF
38026/* confdefs.h. */
38027_ACEOF
38028cat confdefs.h >>conftest.$ac_ext
38029cat >>conftest.$ac_ext <<_ACEOF
38030/* end confdefs.h. */
38031
38032 #include <sys/time.h>
38033 #include <unistd.h>
38034
38035int
38036main ()
38037{
38038
38039 struct timeval tv;
38040 gettimeofday(&tv);
38041
38042 ;
38043 return 0;
38044}
38045_ACEOF
38046rm -f conftest.$ac_objext
38047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38048 (eval $ac_compile) 2>conftest.er1
a848cd7e 38049 ac_status=$?
ac1cb8d3
VS
38050 grep -v '^ *+' conftest.er1 >conftest.err
38051 rm -f conftest.er1
38052 cat conftest.err >&5
a848cd7e
SC
38053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38054 (exit $ac_status); } &&
8c539582 38055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38057 (eval $ac_try) 2>&5
38058 ac_status=$?
38059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38060 (exit $ac_status); }; } &&
38061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38063 (eval $ac_try) 2>&5
38064 ac_status=$?
38065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38066 (exit $ac_status); }; }; then
38067 wx_cv_func_gettimeofday_has_2_args=no
38068else
38069 echo "$as_me: failed program was:" >&5
38070sed 's/^/| /' conftest.$ac_ext >&5
38071
38072
38073 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38074echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38075 wx_cv_func_gettimeofday_has_2_args=unknown
38076
38077
38078fi
ac1cb8d3 38079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38080
38081fi
ac1cb8d3 38082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38083 ac_ext=c
38084ac_cpp='$CPP $CPPFLAGS'
38085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38087ac_compiler_gnu=$ac_cv_c_compiler_gnu
38088
38089
38090fi
38091echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38092echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38093
38094 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38095 cat >>confdefs.h <<\_ACEOF
38096#define WX_GETTIMEOFDAY_NO_TZ 1
38097_ACEOF
38098
38099 fi
38100 fi
38101
38102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38103fi
38104
38105
38106if test "$wxUSE_SOCKETS" = "yes"; then
38107 if test "$wxUSE_MGL" = "1"; then
38108 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38109echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38110 wxUSE_SOCKETS="no"
38111 fi
38112fi
38113
38114if test "$wxUSE_SOCKETS" = "yes"; then
38115 if test "$TOOLKIT" != "MSW"; then
38116 echo "$as_me:$LINENO: checking for socket" >&5
38117echo $ECHO_N "checking for socket... $ECHO_C" >&6
38118if test "${ac_cv_func_socket+set}" = set; then
38119 echo $ECHO_N "(cached) $ECHO_C" >&6
38120else
38121 cat >conftest.$ac_ext <<_ACEOF
38122/* confdefs.h. */
38123_ACEOF
38124cat confdefs.h >>conftest.$ac_ext
38125cat >>conftest.$ac_ext <<_ACEOF
38126/* end confdefs.h. */
ac1cb8d3
VS
38127/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38129#define socket innocuous_socket
38130
a848cd7e
SC
38131/* System header to define __stub macros and hopefully few prototypes,
38132 which can conflict with char socket (); below.
38133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38134 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38135
a848cd7e
SC
38136#ifdef __STDC__
38137# include <limits.h>
38138#else
38139# include <assert.h>
38140#endif
ac1cb8d3
VS
38141
38142#undef socket
38143
a848cd7e
SC
38144/* Override any gcc2 internal prototype to avoid an error. */
38145#ifdef __cplusplus
38146extern "C"
38147{
38148#endif
38149/* We use char because int might match the return type of a gcc2
38150 builtin and then its argument prototype would still apply. */
38151char socket ();
38152/* The GNU C library defines this for functions which it implements
38153 to always fail with ENOSYS. Some functions are actually named
38154 something starting with __ and the normal name is an alias. */
38155#if defined (__stub_socket) || defined (__stub___socket)
38156choke me
38157#else
38158char (*f) () = socket;
38159#endif
38160#ifdef __cplusplus
38161}
38162#endif
38163
38164int
38165main ()
38166{
38167return f != socket;
38168 ;
38169 return 0;
38170}
38171_ACEOF
38172rm -f conftest.$ac_objext conftest$ac_exeext
38173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38174 (eval $ac_link) 2>conftest.er1
a848cd7e 38175 ac_status=$?
ac1cb8d3
VS
38176 grep -v '^ *+' conftest.er1 >conftest.err
38177 rm -f conftest.er1
38178 cat conftest.err >&5
a848cd7e
SC
38179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180 (exit $ac_status); } &&
8c539582 38181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38183 (eval $ac_try) 2>&5
38184 ac_status=$?
38185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186 (exit $ac_status); }; } &&
38187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38189 (eval $ac_try) 2>&5
38190 ac_status=$?
38191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192 (exit $ac_status); }; }; then
38193 ac_cv_func_socket=yes
38194else
38195 echo "$as_me: failed program was:" >&5
38196sed 's/^/| /' conftest.$ac_ext >&5
38197
38198ac_cv_func_socket=no
38199fi
ac1cb8d3
VS
38200rm -f conftest.err conftest.$ac_objext \
38201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38202fi
38203echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38204echo "${ECHO_T}$ac_cv_func_socket" >&6
38205if test $ac_cv_func_socket = yes; then
38206 :
38207else
38208
38209 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38210echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38211if test "${ac_cv_lib_socket_socket+set}" = set; then
38212 echo $ECHO_N "(cached) $ECHO_C" >&6
38213else
38214 ac_check_lib_save_LIBS=$LIBS
38215LIBS="-lsocket $LIBS"
38216cat >conftest.$ac_ext <<_ACEOF
38217/* confdefs.h. */
38218_ACEOF
38219cat confdefs.h >>conftest.$ac_ext
38220cat >>conftest.$ac_ext <<_ACEOF
38221/* end confdefs.h. */
38222
38223/* Override any gcc2 internal prototype to avoid an error. */
38224#ifdef __cplusplus
38225extern "C"
38226#endif
38227/* We use char because int might match the return type of a gcc2
38228 builtin and then its argument prototype would still apply. */
38229char socket ();
38230int
38231main ()
38232{
38233socket ();
38234 ;
38235 return 0;
38236}
38237_ACEOF
38238rm -f conftest.$ac_objext conftest$ac_exeext
38239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38240 (eval $ac_link) 2>conftest.er1
a848cd7e 38241 ac_status=$?
ac1cb8d3
VS
38242 grep -v '^ *+' conftest.er1 >conftest.err
38243 rm -f conftest.er1
38244 cat conftest.err >&5
a848cd7e
SC
38245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38246 (exit $ac_status); } &&
8c539582 38247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38249 (eval $ac_try) 2>&5
38250 ac_status=$?
38251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252 (exit $ac_status); }; } &&
38253 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38255 (eval $ac_try) 2>&5
38256 ac_status=$?
38257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258 (exit $ac_status); }; }; then
38259 ac_cv_lib_socket_socket=yes
38260else
38261 echo "$as_me: failed program was:" >&5
38262sed 's/^/| /' conftest.$ac_ext >&5
38263
38264ac_cv_lib_socket_socket=no
38265fi
ac1cb8d3
VS
38266rm -f conftest.err conftest.$ac_objext \
38267 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38268LIBS=$ac_check_lib_save_LIBS
38269fi
38270echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38271echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38272if test $ac_cv_lib_socket_socket = yes; then
38273 if test "$INET_LINK" != " -lsocket"; then
38274 INET_LINK="$INET_LINK -lsocket"
38275 fi
38276else
38277
38278 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38279echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38280 wxUSE_SOCKETS=no
38281
38282
38283fi
38284
38285
38286
38287fi
38288
38289 fi
38290fi
38291
38292if test "$wxUSE_SOCKETS" = "yes" ; then
38293 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38294 ac_ext=cc
38295ac_cpp='$CXXCPP $CPPFLAGS'
38296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38299
38300 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
38301echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
38302if test "${wx_cv_type_getsockname3+set}" = set; then
38303 echo $ECHO_N "(cached) $ECHO_C" >&6
38304else
38305
38306 cat >conftest.$ac_ext <<_ACEOF
38307/* confdefs.h. */
38308_ACEOF
38309cat confdefs.h >>conftest.$ac_ext
38310cat >>conftest.$ac_ext <<_ACEOF
38311/* end confdefs.h. */
38312
38313 #include <sys/types.h>
38314 #include <sys/socket.h>
38315
38316int
38317main ()
38318{
38319
38320 socklen_t len;
38321 getsockname(0, 0, &len);
38322
38323 ;
38324 return 0;
38325}
38326_ACEOF
38327rm -f conftest.$ac_objext
38328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38329 (eval $ac_compile) 2>conftest.er1
a848cd7e 38330 ac_status=$?
ac1cb8d3
VS
38331 grep -v '^ *+' conftest.er1 >conftest.err
38332 rm -f conftest.er1
38333 cat conftest.err >&5
a848cd7e
SC
38334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335 (exit $ac_status); } &&
8c539582 38336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38338 (eval $ac_try) 2>&5
38339 ac_status=$?
38340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341 (exit $ac_status); }; } &&
38342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38344 (eval $ac_try) 2>&5
38345 ac_status=$?
38346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38347 (exit $ac_status); }; }; then
38348 wx_cv_type_getsockname3=socklen_t
38349else
38350 echo "$as_me: failed program was:" >&5
38351sed 's/^/| /' conftest.$ac_ext >&5
38352
38353
38354 CFLAGS_OLD="$CFLAGS"
38355 if test "$GCC" = yes ; then
38356 CFLAGS="$CFLAGS -Werror"
38357 fi
38358
38359 cat >conftest.$ac_ext <<_ACEOF
38360/* confdefs.h. */
38361_ACEOF
38362cat confdefs.h >>conftest.$ac_ext
38363cat >>conftest.$ac_ext <<_ACEOF
38364/* end confdefs.h. */
38365
38366 #include <sys/types.h>
38367 #include <sys/socket.h>
38368
38369int
38370main ()
38371{
38372
38373 size_t len;
38374 getsockname(0, 0, &len);
38375
38376 ;
38377 return 0;
38378}
38379_ACEOF
38380rm -f conftest.$ac_objext
38381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38382 (eval $ac_compile) 2>conftest.er1
a848cd7e 38383 ac_status=$?
ac1cb8d3
VS
38384 grep -v '^ *+' conftest.er1 >conftest.err
38385 rm -f conftest.er1
38386 cat conftest.err >&5
a848cd7e
SC
38387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388 (exit $ac_status); } &&
8c539582 38389 { ac_try='test -z "$ac_cxx_werror_flag" || 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=size_t
38402else
38403 echo "$as_me: failed program was:" >&5
38404sed 's/^/| /' conftest.$ac_ext >&5
38405
38406cat >conftest.$ac_ext <<_ACEOF
38407/* confdefs.h. */
38408_ACEOF
38409cat confdefs.h >>conftest.$ac_ext
38410cat >>conftest.$ac_ext <<_ACEOF
38411/* end confdefs.h. */
38412
38413 #include <sys/types.h>
38414 #include <sys/socket.h>
38415
38416int
38417main ()
38418{
38419
38420 int len;
38421 getsockname(0, 0, &len);
38422
38423 ;
38424 return 0;
38425}
38426_ACEOF
38427rm -f conftest.$ac_objext
38428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38429 (eval $ac_compile) 2>conftest.er1
a848cd7e 38430 ac_status=$?
ac1cb8d3
VS
38431 grep -v '^ *+' conftest.er1 >conftest.err
38432 rm -f conftest.er1
38433 cat conftest.err >&5
a848cd7e
SC
38434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435 (exit $ac_status); } &&
8c539582 38436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38438 (eval $ac_try) 2>&5
38439 ac_status=$?
38440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38441 (exit $ac_status); }; } &&
38442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38444 (eval $ac_try) 2>&5
38445 ac_status=$?
38446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447 (exit $ac_status); }; }; then
38448 wx_cv_type_getsockname3=int
38449else
38450 echo "$as_me: failed program was:" >&5
38451sed 's/^/| /' conftest.$ac_ext >&5
38452
38453wx_cv_type_getsockname3=unknown
38454
38455fi
ac1cb8d3 38456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38457
38458fi
ac1cb8d3 38459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38460
38461 CFLAGS="$CFLAGS_OLD"
38462
38463
38464fi
ac1cb8d3 38465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38466
38467fi
38468echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38469echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38470
38471 if test "$wx_cv_type_getsockname3" = "unknown"; then
38472 wxUSE_SOCKETS=no
38473 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38474echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38475 else
38476 cat >>confdefs.h <<_ACEOF
38477#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
38478_ACEOF
38479
38480 fi
38481 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38482echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38483if test "${wx_cv_type_getsockopt5+set}" = set; then
38484 echo $ECHO_N "(cached) $ECHO_C" >&6
38485else
38486
38487 cat >conftest.$ac_ext <<_ACEOF
38488/* confdefs.h. */
38489_ACEOF
38490cat confdefs.h >>conftest.$ac_ext
38491cat >>conftest.$ac_ext <<_ACEOF
38492/* end confdefs.h. */
38493
38494 #include <sys/types.h>
38495 #include <sys/socket.h>
38496
38497int
38498main ()
38499{
38500
38501 socklen_t len;
38502 getsockopt(0, 0, 0, 0, &len);
38503
38504 ;
38505 return 0;
38506}
38507_ACEOF
38508rm -f conftest.$ac_objext
38509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38510 (eval $ac_compile) 2>conftest.er1
38511 ac_status=$?
38512 grep -v '^ *+' conftest.er1 >conftest.err
38513 rm -f conftest.er1
38514 cat conftest.err >&5
38515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38516 (exit $ac_status); } &&
8c539582 38517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38519 (eval $ac_try) 2>&5
38520 ac_status=$?
38521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38522 (exit $ac_status); }; } &&
38523 { ac_try='test -s conftest.$ac_objext'
38524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38525 (eval $ac_try) 2>&5
38526 ac_status=$?
38527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38528 (exit $ac_status); }; }; then
38529 wx_cv_type_getsockopt5=socklen_t
38530else
38531 echo "$as_me: failed program was:" >&5
38532sed 's/^/| /' conftest.$ac_ext >&5
38533
38534
38535 CFLAGS_OLD="$CFLAGS"
38536 if test "$GCC" = yes ; then
38537 CFLAGS="$CFLAGS -Werror"
38538 fi
38539
38540 cat >conftest.$ac_ext <<_ACEOF
38541/* confdefs.h. */
38542_ACEOF
38543cat confdefs.h >>conftest.$ac_ext
38544cat >>conftest.$ac_ext <<_ACEOF
38545/* end confdefs.h. */
38546
38547 #include <sys/types.h>
38548 #include <sys/socket.h>
38549
38550int
38551main ()
38552{
38553
38554 size_t len;
38555 getsockopt(0, 0, 0, 0, &len);
38556
38557 ;
38558 return 0;
38559}
38560_ACEOF
38561rm -f conftest.$ac_objext
38562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38563 (eval $ac_compile) 2>conftest.er1
38564 ac_status=$?
38565 grep -v '^ *+' conftest.er1 >conftest.err
38566 rm -f conftest.er1
38567 cat conftest.err >&5
38568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38569 (exit $ac_status); } &&
8c539582 38570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38572 (eval $ac_try) 2>&5
38573 ac_status=$?
38574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38575 (exit $ac_status); }; } &&
38576 { ac_try='test -s conftest.$ac_objext'
38577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38578 (eval $ac_try) 2>&5
38579 ac_status=$?
38580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38581 (exit $ac_status); }; }; then
38582 wx_cv_type_getsockopt5=size_t
38583else
38584 echo "$as_me: failed program was:" >&5
38585sed 's/^/| /' conftest.$ac_ext >&5
38586
38587cat >conftest.$ac_ext <<_ACEOF
38588/* confdefs.h. */
38589_ACEOF
38590cat confdefs.h >>conftest.$ac_ext
38591cat >>conftest.$ac_ext <<_ACEOF
38592/* end confdefs.h. */
38593
38594 #include <sys/types.h>
38595 #include <sys/socket.h>
38596
38597int
38598main ()
38599{
38600
38601 int len;
38602 getsockopt(0, 0, 0, 0, &len);
38603
38604 ;
38605 return 0;
38606}
38607_ACEOF
38608rm -f conftest.$ac_objext
38609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38610 (eval $ac_compile) 2>conftest.er1
38611 ac_status=$?
38612 grep -v '^ *+' conftest.er1 >conftest.err
38613 rm -f conftest.er1
38614 cat conftest.err >&5
38615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38616 (exit $ac_status); } &&
8c539582 38617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38619 (eval $ac_try) 2>&5
38620 ac_status=$?
38621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622 (exit $ac_status); }; } &&
38623 { ac_try='test -s conftest.$ac_objext'
38624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38625 (eval $ac_try) 2>&5
38626 ac_status=$?
38627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38628 (exit $ac_status); }; }; then
38629 wx_cv_type_getsockopt5=int
38630else
38631 echo "$as_me: failed program was:" >&5
38632sed 's/^/| /' conftest.$ac_ext >&5
38633
38634wx_cv_type_getsockopt5=unknown
38635
38636fi
38637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38638
38639fi
38640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38641
38642 CFLAGS="$CFLAGS_OLD"
38643
38644
38645fi
38646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38647
38648fi
38649echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38650echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38651
38652 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38653 wxUSE_SOCKETS=no
38654 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38655echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38656 else
38657 cat >>confdefs.h <<_ACEOF
38658#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38659_ACEOF
38660
38661 fi
4d4ff94c
VZ
38662 ac_ext=c
38663ac_cpp='$CPP $CPPFLAGS'
38664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38666ac_compiler_gnu=$ac_cv_c_compiler_gnu
38667
a848cd7e
SC
38668 fi
38669fi
38670
38671if test "$wxUSE_SOCKETS" = "yes" ; then
38672 cat >>confdefs.h <<\_ACEOF
38673#define wxUSE_SOCKETS 1
38674_ACEOF
38675
38676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38677fi
38678
38679if test "$wxUSE_PROTOCOL" = "yes"; then
38680 if test "$wxUSE_SOCKETS" != "yes"; then
38681 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38682echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38683 wxUSE_PROTOCOL=no
38684 fi
38685fi
38686
38687if test "$wxUSE_PROTOCOL" = "yes"; then
38688 cat >>confdefs.h <<\_ACEOF
38689#define wxUSE_PROTOCOL 1
38690_ACEOF
38691
38692
38693 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38694 cat >>confdefs.h <<\_ACEOF
38695#define wxUSE_PROTOCOL_HTTP 1
38696_ACEOF
38697
38698 fi
38699 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38700 cat >>confdefs.h <<\_ACEOF
38701#define wxUSE_PROTOCOL_FTP 1
38702_ACEOF
38703
38704 fi
38705 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38706 cat >>confdefs.h <<\_ACEOF
38707#define wxUSE_PROTOCOL_FILE 1
38708_ACEOF
38709
38710 fi
38711else
38712 if test "$wxUSE_FS_INET" = "yes"; then
38713 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38714echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38715 wxUSE_FS_INET="no"
38716 fi
38717fi
38718
38719if test "$wxUSE_URL" = "yes"; then
38720 if test "$wxUSE_PROTOCOL" != "yes"; then
38721 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38722echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38723 wxUSE_URL=no
38724 fi
38725 if test "$wxUSE_URL" = "yes"; then
38726 cat >>confdefs.h <<\_ACEOF
38727#define wxUSE_URL 1
38728_ACEOF
38729
38730 fi
38731fi
38732
38733if test "$wxUSE_FS_INET" = "yes"; then
38734 cat >>confdefs.h <<\_ACEOF
38735#define wxUSE_FS_INET 1
38736_ACEOF
38737
38738fi
38739
38740
ee45c548
MW
38741if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
38742 wxUSE_JOYSTICK=no
38743
38744 if test "$TOOLKIT" = "MSW"; then
38745 wxUSE_JOYSTICK=yes
38746
38747 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
38748 if test "$USE_DARWIN" = 1; then
38749 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
38750echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
38751 ac_ext=cc
38752ac_cpp='$CXXCPP $CPPFLAGS'
38753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38756
38757 cat >conftest.$ac_ext <<_ACEOF
38758/* confdefs.h. */
38759_ACEOF
38760cat confdefs.h >>conftest.$ac_ext
38761cat >>conftest.$ac_ext <<_ACEOF
38762/* end confdefs.h. */
38763 #include <IOKit/hid/IOHIDLib.h>
38764int
38765main ()
38766{
38767 IOHIDQueueInterface *qi = NULL;
38768 IOHIDCallbackFunction cb = NULL;
38769 qi->setEventCallout(NULL, cb, NULL, NULL);
38770 ;
38771 return 0;
38772}
38773_ACEOF
38774rm -f conftest.$ac_objext
38775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38776 (eval $ac_compile) 2>conftest.er1
38777 ac_status=$?
38778 grep -v '^ *+' conftest.er1 >conftest.err
38779 rm -f conftest.er1
38780 cat conftest.err >&5
38781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782 (exit $ac_status); } &&
8c539582 38783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
38784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38785 (eval $ac_try) 2>&5
38786 ac_status=$?
38787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38788 (exit $ac_status); }; } &&
38789 { ac_try='test -s conftest.$ac_objext'
38790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38791 (eval $ac_try) 2>&5
38792 ac_status=$?
38793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38794 (exit $ac_status); }; }; then
38795 wxUSE_JOYSTICK=yes
a848cd7e 38796
ee45c548
MW
38797else
38798 echo "$as_me: failed program was:" >&5
38799sed 's/^/| /' conftest.$ac_ext >&5
38800
38801fi
38802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38803 ac_ext=c
38804ac_cpp='$CPP $CPPFLAGS'
38805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38807ac_compiler_gnu=$ac_cv_c_compiler_gnu
38808
38809 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
38810echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
38811 fi
38812
38813 else
a848cd7e
SC
38814
38815for ac_header in linux/joystick.h
38816do
38817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38818if eval "test \"\${$as_ac_Header+set}\" = set"; then
38819 echo "$as_me:$LINENO: checking for $ac_header" >&5
38820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38821if eval "test \"\${$as_ac_Header+set}\" = set"; then
38822 echo $ECHO_N "(cached) $ECHO_C" >&6
38823fi
38824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38826else
38827 # Is the header compilable?
38828echo "$as_me:$LINENO: checking $ac_header usability" >&5
38829echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38830cat >conftest.$ac_ext <<_ACEOF
38831/* confdefs.h. */
38832_ACEOF
38833cat confdefs.h >>conftest.$ac_ext
38834cat >>conftest.$ac_ext <<_ACEOF
38835/* end confdefs.h. */
38836$ac_includes_default
38837#include <$ac_header>
38838_ACEOF
38839rm -f conftest.$ac_objext
38840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38841 (eval $ac_compile) 2>conftest.er1
a848cd7e 38842 ac_status=$?
ac1cb8d3
VS
38843 grep -v '^ *+' conftest.er1 >conftest.err
38844 rm -f conftest.er1
38845 cat conftest.err >&5
a848cd7e
SC
38846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847 (exit $ac_status); } &&
8c539582 38848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38850 (eval $ac_try) 2>&5
38851 ac_status=$?
38852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38853 (exit $ac_status); }; } &&
38854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38856 (eval $ac_try) 2>&5
38857 ac_status=$?
38858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38859 (exit $ac_status); }; }; then
38860 ac_header_compiler=yes
38861else
38862 echo "$as_me: failed program was:" >&5
38863sed 's/^/| /' conftest.$ac_ext >&5
38864
38865ac_header_compiler=no
38866fi
ac1cb8d3 38867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38868echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38869echo "${ECHO_T}$ac_header_compiler" >&6
38870
38871# Is the header present?
38872echo "$as_me:$LINENO: checking $ac_header presence" >&5
38873echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38874cat >conftest.$ac_ext <<_ACEOF
38875/* confdefs.h. */
38876_ACEOF
38877cat confdefs.h >>conftest.$ac_ext
38878cat >>conftest.$ac_ext <<_ACEOF
38879/* end confdefs.h. */
38880#include <$ac_header>
38881_ACEOF
38882if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38884 ac_status=$?
38885 grep -v '^ *+' conftest.er1 >conftest.err
38886 rm -f conftest.er1
38887 cat conftest.err >&5
38888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38889 (exit $ac_status); } >/dev/null; then
38890 if test -s conftest.err; then
38891 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38893 else
38894 ac_cpp_err=
38895 fi
38896else
38897 ac_cpp_err=yes
38898fi
38899if test -z "$ac_cpp_err"; then
38900 ac_header_preproc=yes
38901else
38902 echo "$as_me: failed program was:" >&5
38903sed 's/^/| /' conftest.$ac_ext >&5
38904
38905 ac_header_preproc=no
38906fi
38907rm -f conftest.err conftest.$ac_ext
38908echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38909echo "${ECHO_T}$ac_header_preproc" >&6
38910
38911# So? What about this header?
ac1cb8d3
VS
38912case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38913 yes:no: )
a848cd7e
SC
38914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38915echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38917echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38918 ac_header_preproc=yes
a848cd7e 38919 ;;
ac1cb8d3 38920 no:yes:* )
a848cd7e
SC
38921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38922echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38924echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38926echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38928echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38930echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38932echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38933 (
38934 cat <<\_ASBOX
ac1cb8d3
VS
38935## ----------------------------------------- ##
38936## Report this to wx-dev@lists.wxwidgets.org ##
38937## ----------------------------------------- ##
a848cd7e
SC
38938_ASBOX
38939 ) |
38940 sed "s/^/$as_me: WARNING: /" >&2
38941 ;;
38942esac
38943echo "$as_me:$LINENO: checking for $ac_header" >&5
38944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38945if eval "test \"\${$as_ac_Header+set}\" = set"; then
38946 echo $ECHO_N "(cached) $ECHO_C" >&6
38947else
ac1cb8d3 38948 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38949fi
38950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38951echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38952
38953fi
38954if test `eval echo '${'$as_ac_Header'}'` = yes; then
38955 cat >>confdefs.h <<_ACEOF
38956#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38957_ACEOF
ee45c548 38958 wxUSE_JOYSTICK=yes
a848cd7e
SC
38959fi
38960
38961done
38962
ee45c548 38963 fi
4cb1d3da 38964
ee45c548
MW
38965 if test "$wxUSE_JOYSTICK" = "yes"; then
38966 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38967#define wxUSE_JOYSTICK 1
38968_ACEOF
38969
ee45c548
MW
38970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38971 else
38972 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38973echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
38974 fi
38975fi
38976
38977
38978
38979if test "$wxUSE_FONTMAP" = "yes" ; then
38980 cat >>confdefs.h <<\_ACEOF
38981#define wxUSE_FONTMAP 1
38982_ACEOF
38983
38984fi
38985
38986if test "$wxUSE_UNICODE" = "yes" ; then
38987 cat >>confdefs.h <<\_ACEOF
38988#define wxUSE_UNICODE 1
38989_ACEOF
38990
38991
38992 if test "$USE_WIN32" != 1; then
38993 wxUSE_UNICODE_MSLU=no
38994 fi
38995
38996 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38997 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38998echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38999if test "${ac_cv_lib_unicows_main+set}" = set; then
39000 echo $ECHO_N "(cached) $ECHO_C" >&6
39001else
39002 ac_check_lib_save_LIBS=$LIBS
39003LIBS="-lunicows $LIBS"
39004cat >conftest.$ac_ext <<_ACEOF
39005/* confdefs.h. */
39006_ACEOF
39007cat confdefs.h >>conftest.$ac_ext
39008cat >>conftest.$ac_ext <<_ACEOF
39009/* end confdefs.h. */
39010
39011
39012int
39013main ()
39014{
39015main ();
39016 ;
39017 return 0;
39018}
39019_ACEOF
39020rm -f conftest.$ac_objext conftest$ac_exeext
39021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39022 (eval $ac_link) 2>conftest.er1
a848cd7e 39023 ac_status=$?
ac1cb8d3
VS
39024 grep -v '^ *+' conftest.er1 >conftest.err
39025 rm -f conftest.er1
39026 cat conftest.err >&5
a848cd7e
SC
39027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39028 (exit $ac_status); } &&
8c539582 39029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39031 (eval $ac_try) 2>&5
39032 ac_status=$?
39033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034 (exit $ac_status); }; } &&
39035 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39037 (eval $ac_try) 2>&5
39038 ac_status=$?
39039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39040 (exit $ac_status); }; }; then
39041 ac_cv_lib_unicows_main=yes
39042else
39043 echo "$as_me: failed program was:" >&5
39044sed 's/^/| /' conftest.$ac_ext >&5
39045
39046ac_cv_lib_unicows_main=no
39047fi
ac1cb8d3
VS
39048rm -f conftest.err conftest.$ac_objext \
39049 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39050LIBS=$ac_check_lib_save_LIBS
39051fi
39052echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
39053echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
39054if test $ac_cv_lib_unicows_main = yes; then
39055
39056 cat >>confdefs.h <<\_ACEOF
39057#define wxUSE_UNICODE_MSLU 1
39058_ACEOF
39059
39060
39061else
39062
39063 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39064 Applications will only run on Windows NT/2000/XP!" >&5
39065echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39066 Applications will only run on Windows NT/2000/XP!" >&2;}
39067 wxUSE_UNICODE_MSLU=no
39068
39069fi
39070
39071 fi
39072fi
39073
39074if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
39075 cat >>confdefs.h <<\_ACEOF
39076#define wxUSE_EXPERIMENTAL_PRINTF 1
39077_ACEOF
39078
39079fi
39080
39081
39082if test "$wxUSE_POSTSCRIPT" = "yes" ; then
39083 cat >>confdefs.h <<\_ACEOF
39084#define wxUSE_POSTSCRIPT 1
39085_ACEOF
39086
39087fi
39088
39089cat >>confdefs.h <<\_ACEOF
39090#define wxUSE_AFM_FOR_POSTSCRIPT 1
39091_ACEOF
39092
39093
39094cat >>confdefs.h <<\_ACEOF
39095#define wxUSE_NORMALIZED_PS_FONTS 1
39096_ACEOF
39097
39098
39099
39100if test "$wxUSE_CONSTRAINTS" = "yes"; then
39101 cat >>confdefs.h <<\_ACEOF
39102#define wxUSE_CONSTRAINTS 1
39103_ACEOF
39104
39105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
39106fi
39107
8a7b1113
VZ
39108if test "$wxUSE_MDI" = "yes"; then
39109 cat >>confdefs.h <<\_ACEOF
39110#define wxUSE_MDI 1
39111_ACEOF
39112
39113
39114 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39115 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39116#define wxUSE_MDI_ARCHITECTURE 1
39117_ACEOF
39118
8a7b1113
VZ
39119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39120 fi
a848cd7e
SC
39121fi
39122
39123if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39124 cat >>confdefs.h <<\_ACEOF
39125#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39126_ACEOF
39127
39128 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39129 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39131 fi
39132fi
39133
39134if test "$wxUSE_HELP" = "yes"; then
39135 cat >>confdefs.h <<\_ACEOF
39136#define wxUSE_HELP 1
39137_ACEOF
39138
39139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39140
39141 if test "$wxUSE_MSW" = 1; then
39142 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39143 cat >>confdefs.h <<\_ACEOF
39144#define wxUSE_MS_HTML_HELP 1
39145_ACEOF
39146
39147 fi
39148 fi
39149
39150 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39151 if test "$wxUSE_HTML" = "yes"; then
39152 cat >>confdefs.h <<\_ACEOF
39153#define wxUSE_WXHTML_HELP 1
39154_ACEOF
39155
39156 else
39157 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39158echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39159 wxUSE_WXHTML_HELP=no
39160 fi
39161 fi
39162fi
39163
39164if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39165 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39166 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39167echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39168 else
39169 cat >>confdefs.h <<\_ACEOF
39170#define wxUSE_PRINTING_ARCHITECTURE 1
39171_ACEOF
39172
39173 fi
39174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39175fi
39176
39177if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39178 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39179echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39180 { (exit 1); exit 1; }; }
39181fi
39182
39183
39184if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39185 -o "$wxUSE_CLIPBOARD" = "yes" \
39186 -o "$wxUSE_OLE" = "yes" \
39187 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39188
39189for ac_header in ole2.h
39190do
39191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39192if eval "test \"\${$as_ac_Header+set}\" = set"; then
39193 echo "$as_me:$LINENO: checking for $ac_header" >&5
39194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39195if eval "test \"\${$as_ac_Header+set}\" = set"; then
39196 echo $ECHO_N "(cached) $ECHO_C" >&6
39197fi
39198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39200else
39201 # Is the header compilable?
39202echo "$as_me:$LINENO: checking $ac_header usability" >&5
39203echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39204cat >conftest.$ac_ext <<_ACEOF
39205/* confdefs.h. */
39206_ACEOF
39207cat confdefs.h >>conftest.$ac_ext
39208cat >>conftest.$ac_ext <<_ACEOF
39209/* end confdefs.h. */
39210$ac_includes_default
39211#include <$ac_header>
39212_ACEOF
39213rm -f conftest.$ac_objext
39214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39215 (eval $ac_compile) 2>conftest.er1
a848cd7e 39216 ac_status=$?
ac1cb8d3
VS
39217 grep -v '^ *+' conftest.er1 >conftest.err
39218 rm -f conftest.er1
39219 cat conftest.err >&5
a848cd7e
SC
39220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221 (exit $ac_status); } &&
8c539582 39222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39224 (eval $ac_try) 2>&5
39225 ac_status=$?
39226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227 (exit $ac_status); }; } &&
39228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39230 (eval $ac_try) 2>&5
39231 ac_status=$?
39232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39233 (exit $ac_status); }; }; then
39234 ac_header_compiler=yes
39235else
39236 echo "$as_me: failed program was:" >&5
39237sed 's/^/| /' conftest.$ac_ext >&5
39238
39239ac_header_compiler=no
39240fi
ac1cb8d3 39241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39243echo "${ECHO_T}$ac_header_compiler" >&6
39244
39245# Is the header present?
39246echo "$as_me:$LINENO: checking $ac_header presence" >&5
39247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39248cat >conftest.$ac_ext <<_ACEOF
39249/* confdefs.h. */
39250_ACEOF
39251cat confdefs.h >>conftest.$ac_ext
39252cat >>conftest.$ac_ext <<_ACEOF
39253/* end confdefs.h. */
39254#include <$ac_header>
39255_ACEOF
39256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39258 ac_status=$?
39259 grep -v '^ *+' conftest.er1 >conftest.err
39260 rm -f conftest.er1
39261 cat conftest.err >&5
39262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39263 (exit $ac_status); } >/dev/null; then
39264 if test -s conftest.err; then
39265 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39267 else
39268 ac_cpp_err=
39269 fi
39270else
39271 ac_cpp_err=yes
39272fi
39273if test -z "$ac_cpp_err"; then
39274 ac_header_preproc=yes
39275else
39276 echo "$as_me: failed program was:" >&5
39277sed 's/^/| /' conftest.$ac_ext >&5
39278
39279 ac_header_preproc=no
39280fi
39281rm -f conftest.err conftest.$ac_ext
39282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39283echo "${ECHO_T}$ac_header_preproc" >&6
39284
39285# So? What about this header?
ac1cb8d3
VS
39286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39287 yes:no: )
a848cd7e
SC
39288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39292 ac_header_preproc=yes
a848cd7e 39293 ;;
ac1cb8d3 39294 no:yes:* )
a848cd7e
SC
39295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39298echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39302echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39307 (
39308 cat <<\_ASBOX
ac1cb8d3
VS
39309## ----------------------------------------- ##
39310## Report this to wx-dev@lists.wxwidgets.org ##
39311## ----------------------------------------- ##
a848cd7e
SC
39312_ASBOX
39313 ) |
39314 sed "s/^/$as_me: WARNING: /" >&2
39315 ;;
39316esac
39317echo "$as_me:$LINENO: checking for $ac_header" >&5
39318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39319if eval "test \"\${$as_ac_Header+set}\" = set"; then
39320 echo $ECHO_N "(cached) $ECHO_C" >&6
39321else
ac1cb8d3 39322 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39323fi
39324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39326
39327fi
39328if test `eval echo '${'$as_ac_Header'}'` = yes; then
39329 cat >>confdefs.h <<_ACEOF
39330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39331_ACEOF
39332
39333fi
39334
39335done
39336
39337
39338 if test "$ac_cv_header_ole2_h" = "yes" ; then
39339 if test "$GCC" = yes ; then
39340
39341
39342 ac_ext=cc
39343ac_cpp='$CXXCPP $CPPFLAGS'
39344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39347
39348
39349 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
39350echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
39351 cat >conftest.$ac_ext <<_ACEOF
39352/* confdefs.h. */
39353_ACEOF
39354cat confdefs.h >>conftest.$ac_ext
39355cat >>conftest.$ac_ext <<_ACEOF
39356/* end confdefs.h. */
39357#include <windows.h>
39358 #include <ole2.h>
39359int
39360main ()
39361{
39362
39363 ;
39364 return 0;
39365}
39366_ACEOF
39367rm -f conftest.$ac_objext
39368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39369 (eval $ac_compile) 2>conftest.er1
a848cd7e 39370 ac_status=$?
ac1cb8d3
VS
39371 grep -v '^ *+' conftest.er1 >conftest.err
39372 rm -f conftest.er1
39373 cat conftest.err >&5
a848cd7e
SC
39374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39375 (exit $ac_status); } &&
8c539582 39376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39378 (eval $ac_try) 2>&5
39379 ac_status=$?
39380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39381 (exit $ac_status); }; } &&
39382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39384 (eval $ac_try) 2>&5
39385 ac_status=$?
39386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387 (exit $ac_status); }; }; then
39388 echo "$as_me:$LINENO: result: no" >&5
39389echo "${ECHO_T}no" >&6
39390else
39391 echo "$as_me: failed program was:" >&5
39392sed 's/^/| /' conftest.$ac_ext >&5
39393
39394echo "$as_me:$LINENO: result: yes" >&5
39395echo "${ECHO_T}yes" >&6
39396 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
39397fi
ac1cb8d3 39398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39399 ac_ext=c
39400ac_cpp='$CPP $CPPFLAGS'
39401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39403ac_compiler_gnu=$ac_cv_c_compiler_gnu
39404
a848cd7e
SC
39405 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39406 if test "$wxUSE_OLE" = "yes" ; then
39407 cat >>confdefs.h <<\_ACEOF
39408#define wxUSE_OLE 1
39409_ACEOF
39410
0b78747f 39411 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
39412 fi
39413 fi
39414
39415 if test "$wxUSE_DATAOBJ" = "yes" ; then
39416 cat >>confdefs.h <<\_ACEOF
39417#define wxUSE_DATAOBJ 1
39418_ACEOF
39419
39420 fi
39421 else
39422 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39423echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39424
39425 wxUSE_CLIPBOARD=no
39426 wxUSE_DRAG_AND_DROP=no
39427 wxUSE_DATAOBJ=no
39428 wxUSE_OLE=no
39429 fi
39430
39431 if test "$wxUSE_METAFILE" = "yes"; then
39432 cat >>confdefs.h <<\_ACEOF
39433#define wxUSE_METAFILE 1
39434_ACEOF
39435
39436
39437 cat >>confdefs.h <<\_ACEOF
39438#define wxUSE_ENH_METAFILE 1
39439_ACEOF
39440
39441 fi
39442fi
39443
39444if test "$wxUSE_IPC" = "yes"; then
0b78747f 39445 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
39446 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39447echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 39448 wxUSE_IPC=no
a848cd7e
SC
39449 fi
39450
0b78747f
MW
39451 if test "$wxUSE_IPC" = "yes"; then
39452 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39453#define wxUSE_IPC 1
39454_ACEOF
39455
0b78747f
MW
39456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39457 fi
a848cd7e
SC
39458fi
39459
39460if test "$wxUSE_CLIPBOARD" = "yes"; then
39461 if test "$wxUSE_MGL" = 1; then
39462 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39463echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39464 wxUSE_CLIPBOARD=no
39465 fi
39466
39467 if test "$wxUSE_CLIPBOARD" = "yes"; then
39468 cat >>confdefs.h <<\_ACEOF
39469#define wxUSE_CLIPBOARD 1
39470_ACEOF
39471
39472
39473 cat >>confdefs.h <<\_ACEOF
39474#define wxUSE_DATAOBJ 1
39475_ACEOF
39476
39477 fi
39478fi
39479
39480if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39481 if test "$wxUSE_GTK" = 1; then
39482 if test "$WXGTK12" != 1; then
39483 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39484echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39485 wxUSE_DRAG_AND_DROP=no
39486 fi
39487 fi
39488
39489 if test "$wxUSE_MOTIF" = 1; then
39490 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39491echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39492 wxUSE_DRAG_AND_DROP=no
39493 fi
39494
39495 if test "$wxUSE_X11" = 1; then
39496 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39497echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39498 wxUSE_DRAG_AND_DROP=no
39499 fi
39500
39501 if test "$wxUSE_MGL" = 1; then
39502 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39503echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39504 wxUSE_DRAG_AND_DROP=no
39505 fi
39506
39507 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
39508 cat >>confdefs.h <<\_ACEOF
39509#define wxUSE_DRAG_AND_DROP 1
39510_ACEOF
39511
39512 fi
39513
39514fi
39515
39516if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
39517 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
39518fi
39519
39520if test "$wxUSE_SPLINES" = "yes" ; then
39521 cat >>confdefs.h <<\_ACEOF
39522#define wxUSE_SPLINES 1
39523_ACEOF
39524
39525fi
39526
fbe2ca43
SN
39527if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
39528 cat >>confdefs.h <<\_ACEOF
39529#define wxUSE_MOUSEWHEEL 1
39530_ACEOF
39531
39532fi
39533
a848cd7e
SC
39534
39535USES_CONTROLS=0
39536if test "$wxUSE_CONTROLS" = "yes"; then
39537 USES_CONTROLS=1
39538fi
39539
39540if test "$wxUSE_ACCEL" = "yes"; then
39541 cat >>confdefs.h <<\_ACEOF
39542#define wxUSE_ACCEL 1
39543_ACEOF
39544
39545 USES_CONTROLS=1
39546fi
39547
39548if test "$wxUSE_BUTTON" = "yes"; then
39549 cat >>confdefs.h <<\_ACEOF
39550#define wxUSE_BUTTON 1
39551_ACEOF
39552
39553 USES_CONTROLS=1
39554fi
39555
39556if test "$wxUSE_BMPBUTTON" = "yes"; then
39557 cat >>confdefs.h <<\_ACEOF
39558#define wxUSE_BMPBUTTON 1
39559_ACEOF
39560
39561 USES_CONTROLS=1
39562fi
39563
39564if test "$wxUSE_CALCTRL" = "yes"; then
39565 cat >>confdefs.h <<\_ACEOF
39566#define wxUSE_CALENDARCTRL 1
39567_ACEOF
39568
39569 USES_CONTROLS=1
39570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39571fi
39572
39573if test "$wxUSE_CARET" = "yes"; then
39574 cat >>confdefs.h <<\_ACEOF
39575#define wxUSE_CARET 1
39576_ACEOF
39577
39578 USES_CONTROLS=1
39579 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39580fi
39581
39582if test "$wxUSE_COMBOBOX" = "yes"; then
39583 cat >>confdefs.h <<\_ACEOF
39584#define wxUSE_COMBOBOX 1
39585_ACEOF
39586
39587 USES_CONTROLS=1
39588fi
39589
39590if test "$wxUSE_CHOICE" = "yes"; then
39591 cat >>confdefs.h <<\_ACEOF
39592#define wxUSE_CHOICE 1
39593_ACEOF
39594
39595 USES_CONTROLS=1
39596fi
39597
92bbdbcd
WS
39598if test "$wxUSE_CHOICEBOOK" = "yes"; then
39599 cat >>confdefs.h <<\_ACEOF
39600#define wxUSE_CHOICEBOOK 1
39601_ACEOF
39602
39603 USES_CONTROLS=1
39604fi
39605
a848cd7e
SC
39606if test "$wxUSE_CHECKBOX" = "yes"; then
39607 cat >>confdefs.h <<\_ACEOF
39608#define wxUSE_CHECKBOX 1
39609_ACEOF
39610
39611 USES_CONTROLS=1
39612fi
39613
39614if test "$wxUSE_CHECKLST" = "yes"; then
39615 cat >>confdefs.h <<\_ACEOF
39616#define wxUSE_CHECKLISTBOX 1
39617_ACEOF
39618
39619 USES_CONTROLS=1
39620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
39621fi
39622
da98e9be
VZ
39623if test "$wxUSE_DATEPICKCTRL" = "yes"; then
39624 cat >>confdefs.h <<\_ACEOF
39625#define wxUSE_DATEPICKCTRL 1
39626_ACEOF
39627
39628 USES_CONTROLS=1
39629fi
39630
a848cd7e
SC
39631if test "$wxUSE_DISPLAY" = "yes"; then
39632 cat >>confdefs.h <<\_ACEOF
39633#define wxUSE_DISPLAY 1
39634_ACEOF
39635
0b78747f 39636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
39637fi
39638
39639if test "$wxUSE_GAUGE" = "yes"; then
39640 cat >>confdefs.h <<\_ACEOF
39641#define wxUSE_GAUGE 1
39642_ACEOF
39643
39644 USES_CONTROLS=1
39645fi
39646
39647if test "$wxUSE_GRID" = "yes"; then
39648 cat >>confdefs.h <<\_ACEOF
39649#define wxUSE_GRID 1
39650_ACEOF
39651
39652 USES_CONTROLS=1
39653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39654fi
39655
39656if test "$wxUSE_IMAGLIST" = "yes"; then
39657 cat >>confdefs.h <<\_ACEOF
39658#define wxUSE_IMAGLIST 1
39659_ACEOF
39660
39661fi
39662
39663if test "$wxUSE_LISTBOOK" = "yes"; then
39664 cat >>confdefs.h <<\_ACEOF
39665#define wxUSE_LISTBOOK 1
39666_ACEOF
39667
39668 USES_CONTROLS=1
39669fi
39670
39671if test "$wxUSE_LISTBOX" = "yes"; then
39672 cat >>confdefs.h <<\_ACEOF
39673#define wxUSE_LISTBOX 1
39674_ACEOF
39675
39676 USES_CONTROLS=1
0b78747f 39677 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39678fi
39679
39680if test "$wxUSE_LISTCTRL" = "yes"; then
39681 if test "$wxUSE_IMAGLIST" = "yes"; then
39682 cat >>confdefs.h <<\_ACEOF
39683#define wxUSE_LISTCTRL 1
39684_ACEOF
39685
39686 USES_CONTROLS=1
39687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39688 else
39689 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39690echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39691 fi
39692fi
39693
39694if test "$wxUSE_NOTEBOOK" = "yes"; then
39695 cat >>confdefs.h <<\_ACEOF
39696#define wxUSE_NOTEBOOK 1
39697_ACEOF
39698
39699 USES_CONTROLS=1
39700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39701fi
39702
39703
39704if test "$wxUSE_RADIOBOX" = "yes"; then
39705 cat >>confdefs.h <<\_ACEOF
39706#define wxUSE_RADIOBOX 1
39707_ACEOF
39708
39709 USES_CONTROLS=1
39710fi
39711
39712if test "$wxUSE_RADIOBTN" = "yes"; then
39713 cat >>confdefs.h <<\_ACEOF
39714#define wxUSE_RADIOBTN 1
39715_ACEOF
39716
39717 USES_CONTROLS=1
39718fi
39719
39720if test "$wxUSE_SASH" = "yes"; then
39721 cat >>confdefs.h <<\_ACEOF
39722#define wxUSE_SASH 1
39723_ACEOF
39724
39725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
39726fi
39727
39728if test "$wxUSE_SCROLLBAR" = "yes"; then
39729 cat >>confdefs.h <<\_ACEOF
39730#define wxUSE_SCROLLBAR 1
39731_ACEOF
39732
39733 USES_CONTROLS=1
39734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39735fi
39736
39737if test "$wxUSE_SLIDER" = "yes"; then
39738 cat >>confdefs.h <<\_ACEOF
39739#define wxUSE_SLIDER 1
39740_ACEOF
39741
39742 USES_CONTROLS=1
39743fi
39744
39745if test "$wxUSE_SPINBTN" = "yes"; then
39746 cat >>confdefs.h <<\_ACEOF
39747#define wxUSE_SPINBTN 1
39748_ACEOF
39749
39750 USES_CONTROLS=1
39751fi
39752
39753if test "$wxUSE_SPINCTRL" = "yes"; then
39754 cat >>confdefs.h <<\_ACEOF
39755#define wxUSE_SPINCTRL 1
39756_ACEOF
39757
39758 USES_CONTROLS=1
39759fi
39760
39761if test "$wxUSE_SPLITTER" = "yes"; then
39762 cat >>confdefs.h <<\_ACEOF
39763#define wxUSE_SPLITTER 1
39764_ACEOF
39765
39766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39767fi
39768
39769if test "$wxUSE_STATBMP" = "yes"; then
39770 cat >>confdefs.h <<\_ACEOF
39771#define wxUSE_STATBMP 1
39772_ACEOF
39773
39774 USES_CONTROLS=1
39775fi
39776
39777if test "$wxUSE_STATBOX" = "yes"; then
39778 cat >>confdefs.h <<\_ACEOF
39779#define wxUSE_STATBOX 1
39780_ACEOF
39781
39782 USES_CONTROLS=1
39783fi
39784
39785if test "$wxUSE_STATTEXT" = "yes"; then
39786 cat >>confdefs.h <<\_ACEOF
39787#define wxUSE_STATTEXT 1
39788_ACEOF
39789
39790 USES_CONTROLS=1
39791fi
39792
39793if test "$wxUSE_STATLINE" = "yes"; then
39794 cat >>confdefs.h <<\_ACEOF
39795#define wxUSE_STATLINE 1
39796_ACEOF
39797
39798 USES_CONTROLS=1
39799fi
39800
39801if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
39802 cat >>confdefs.h <<\_ACEOF
39803#define wxUSE_NATIVE_STATUSBAR 1
39804_ACEOF
39805
a848cd7e
SC
39806 cat >>confdefs.h <<\_ACEOF
39807#define wxUSE_STATUSBAR 1
39808_ACEOF
39809
39810 USES_CONTROLS=1
39811
39812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39813fi
39814
39815if test "$wxUSE_TABDIALOG" = "yes"; then
39816 cat >>confdefs.h <<\_ACEOF
39817#define wxUSE_TAB_DIALOG 1
39818_ACEOF
39819
a848cd7e
SC
39820fi
39821
39822if test "$wxUSE_TEXTCTRL" = "yes"; then
39823 cat >>confdefs.h <<\_ACEOF
39824#define wxUSE_TEXTCTRL 1
39825_ACEOF
39826
39827 USES_CONTROLS=1
39828 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39829fi
39830
39831if test "$wxUSE_TOGGLEBTN" = "yes"; then
39832 if test "$wxUSE_COCOA" = 1 ; then
39833 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39834echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39835 wxUSE_TOGGLEBTN=no
39836 fi
39837 if test "$wxUSE_UNIVERSAL" = "yes"; then
39838 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39839echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39840 wxUSE_TOGGLEBTN=no
39841 fi
39842
39843 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39844 cat >>confdefs.h <<\_ACEOF
39845#define wxUSE_TOGGLEBTN 1
39846_ACEOF
39847
39848 USES_CONTROLS=1
39849 fi
39850fi
39851
39852if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39853 cat >>confdefs.h <<\_ACEOF
39854#define wxUSE_TOOLBAR_SIMPLE 1
39855_ACEOF
39856
39857 wxUSE_TOOLBAR="yes"
39858 USES_CONTROLS=1
39859fi
39860
39861if test "$wxUSE_TOOLBAR" = "yes"; then
39862 cat >>confdefs.h <<\_ACEOF
39863#define wxUSE_TOOLBAR 1
39864_ACEOF
39865
39866 USES_CONTROLS=1
39867
39868 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39869 wxUSE_TOOLBAR_NATIVE="yes"
39870 fi
39871
39872 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39873 cat >>confdefs.h <<\_ACEOF
39874#define wxUSE_TOOLBAR_NATIVE 1
39875_ACEOF
39876
39877 USES_CONTROLS=1
39878 fi
39879
39880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39881fi
39882
39883if test "$wxUSE_TOOLTIPS" = "yes"; then
39884 if test "$wxUSE_MOTIF" = 1; then
39885 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39886echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39887 else
39888 if test "$wxUSE_UNIVERSAL" = "yes"; then
39889 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39890echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39891 else
39892 cat >>confdefs.h <<\_ACEOF
39893#define wxUSE_TOOLTIPS 1
39894_ACEOF
39895
39896 fi
39897 fi
39898fi
39899
39900if test "$wxUSE_TREECTRL" = "yes"; then
39901 if test "$wxUSE_IMAGLIST" = "yes"; then
39902 cat >>confdefs.h <<\_ACEOF
39903#define wxUSE_TREECTRL 1
39904_ACEOF
39905
39906 USES_CONTROLS=1
39907 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39908 else
39909 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39910echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39911 fi
39912fi
39913
39914if test "$wxUSE_POPUPWIN" = "yes"; then
39915 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39916 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39917echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39918 else
39919 if test "$wxUSE_PM" = 1; then
39920 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39921echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39922 else
39923 cat >>confdefs.h <<\_ACEOF
39924#define wxUSE_POPUPWIN 1
39925_ACEOF
39926
0b78747f 39927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39928
39929 USES_CONTROLS=1
39930 fi
39931 fi
39932fi
39933
0dcd06dd 39934if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39935 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39936 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39937echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39938 else
39939 cat >>confdefs.h <<\_ACEOF
39940#define wxUSE_DIALUP_MANAGER 1
39941_ACEOF
39942
39943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39944 fi
39945fi
39946
a848cd7e
SC
39947if test "$wxUSE_TIPWINDOW" = "yes"; then
39948 if test "$wxUSE_PM" = 1; then
39949 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39950echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39951 else
39952 cat >>confdefs.h <<\_ACEOF
39953#define wxUSE_TIPWINDOW 1
39954_ACEOF
39955
39956 fi
39957fi
39958
39959if test "$USES_CONTROLS" = 1; then
39960 cat >>confdefs.h <<\_ACEOF
39961#define wxUSE_CONTROLS 1
39962_ACEOF
39963
39964fi
39965
39966
39967if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39968 cat >>confdefs.h <<\_ACEOF
39969#define wxUSE_ACCESSIBILITY 1
39970_ACEOF
39971
39972 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39973fi
39974
39975if test "$wxUSE_DRAGIMAGE" = "yes"; then
39976 cat >>confdefs.h <<\_ACEOF
39977#define wxUSE_DRAGIMAGE 1
39978_ACEOF
39979
39980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39981fi
39982
39983if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39984 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39985 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39986echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39987 else
39988 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39989#define wxUSE_EXCEPTIONS 1
39990_ACEOF
39991
07bea8f0
VS
39992 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39993 fi
a848cd7e
SC
39994fi
39995
39996USE_HTML=0
39997if test "$wxUSE_HTML" = "yes"; then
39998 cat >>confdefs.h <<\_ACEOF
39999#define wxUSE_HTML 1
40000_ACEOF
40001
40002 USE_HTML=1
40003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
40004 if test "$wxUSE_MAC" = 1; then
40005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
40006 fi
a848cd7e 40007fi
646b6ec1 40008if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 40009 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
40010 old_CPPFLAGS="$CPPFLAGS"
40011 CPPFLAGS="$CPPFLAGS -x objective-c++"
40012 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
40013echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
40014if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
40015 echo $ECHO_N "(cached) $ECHO_C" >&6
40016else
40017 cat >conftest.$ac_ext <<_ACEOF
40018/* confdefs.h. */
40019_ACEOF
40020cat confdefs.h >>conftest.$ac_ext
40021cat >>conftest.$ac_ext <<_ACEOF
40022/* end confdefs.h. */
40023#include <Carbon/Carbon.h>
40024
40025#include <WebKit/HIWebView.h>
40026_ACEOF
40027rm -f conftest.$ac_objext
40028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40029 (eval $ac_compile) 2>conftest.er1
40030 ac_status=$?
40031 grep -v '^ *+' conftest.er1 >conftest.err
40032 rm -f conftest.er1
40033 cat conftest.err >&5
40034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035 (exit $ac_status); } &&
8c539582 40036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
40037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40038 (eval $ac_try) 2>&5
40039 ac_status=$?
40040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041 (exit $ac_status); }; } &&
40042 { ac_try='test -s conftest.$ac_objext'
40043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40044 (eval $ac_try) 2>&5
40045 ac_status=$?
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); }; }; then
40048 ac_cv_header_WebKit_HIWebView_h=yes
40049else
40050 echo "$as_me: failed program was:" >&5
40051sed 's/^/| /' conftest.$ac_ext >&5
40052
40053ac_cv_header_WebKit_HIWebView_h=no
40054fi
40055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40056fi
40057echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
40058echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
40059if test $ac_cv_header_WebKit_HIWebView_h = yes; then
40060
40061 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
40062#define wxUSE_WEBKIT 1
40063_ACEOF
40064
07bea8f0
VS
40065 WEBKIT_LINK="-framework WebKit"
40066
40067else
40068
40069 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
40070echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
40071 wxUSE_WEBKIT=no
40072
646b6ec1
VS
40073fi
40074
07bea8f0
VS
40075
40076 CPPFLAGS="$old_CPPFLAGS"
40077 elif test "$wxUSE_COCOA" = 1; then
40078 cat >>confdefs.h <<\_ACEOF
40079#define wxUSE_WEBKIT 1
40080_ACEOF
40081
40082 else
40083 wxUSE_WEBKIT=no
40084 fi
40085fi
40086
9a8f0513
VS
40087USE_XRC=0
40088if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
40089 if test "$wxUSE_XML" != "yes"; then
40090 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
40091echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
40092 wxUSE_XRC=no
40093 else
40094 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
40095#define wxUSE_XRC 1
40096_ACEOF
40097
d2ebf0b7
VS
40098 USE_XRC=1
40099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
40100 fi
9a8f0513 40101fi
07bea8f0 40102
a848cd7e
SC
40103if test "$wxUSE_MENUS" = "yes"; then
40104 cat >>confdefs.h <<\_ACEOF
40105#define wxUSE_MENUS 1
40106_ACEOF
40107
40108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40109fi
40110
40111if test "$wxUSE_METAFILE" = "yes"; then
40112 cat >>confdefs.h <<\_ACEOF
40113#define wxUSE_METAFILE 1
40114_ACEOF
40115
40116fi
40117
40118if test "$wxUSE_MIMETYPE" = "yes"; then
40119 cat >>confdefs.h <<\_ACEOF
40120#define wxUSE_MIMETYPE 1
40121_ACEOF
40122
40123fi
40124
40125if test "$wxUSE_MINIFRAME" = "yes"; then
40126 cat >>confdefs.h <<\_ACEOF
40127#define wxUSE_MINIFRAME 1
40128_ACEOF
40129
40130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40131fi
40132
40133if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40134 cat >>confdefs.h <<\_ACEOF
40135#define wxUSE_SYSTEM_OPTIONS 1
40136_ACEOF
40137
40138 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40139 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40141 fi
40142fi
40143
40144
40145if test "$wxUSE_VALIDATORS" = "yes"; then
40146 cat >>confdefs.h <<\_ACEOF
40147#define wxUSE_VALIDATORS 1
40148_ACEOF
40149
40150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40151fi
40152
40153if test "$wxUSE_PALETTE" = "yes" ; then
40154 cat >>confdefs.h <<\_ACEOF
40155#define wxUSE_PALETTE 1
40156_ACEOF
40157
40158fi
40159
40160if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40161 LIBS=" -lunicows $LIBS"
40162fi
40163
40164
40165if test "$wxUSE_IMAGE" = "yes" ; then
40166 cat >>confdefs.h <<\_ACEOF
40167#define wxUSE_IMAGE 1
40168_ACEOF
40169
40170
40171 if test "$wxUSE_GIF" = "yes" ; then
40172 cat >>confdefs.h <<\_ACEOF
40173#define wxUSE_GIF 1
40174_ACEOF
40175
40176 fi
40177
40178 if test "$wxUSE_PCX" = "yes" ; then
40179 cat >>confdefs.h <<\_ACEOF
40180#define wxUSE_PCX 1
40181_ACEOF
40182
40183 fi
40184
40185 if test "$wxUSE_IFF" = "yes" ; then
40186 cat >>confdefs.h <<\_ACEOF
40187#define wxUSE_IFF 1
40188_ACEOF
40189
40190 fi
40191
40192 if test "$wxUSE_PNM" = "yes" ; then
40193 cat >>confdefs.h <<\_ACEOF
40194#define wxUSE_PNM 1
40195_ACEOF
40196
40197 fi
40198
40199 if test "$wxUSE_XPM" = "yes" ; then
40200 cat >>confdefs.h <<\_ACEOF
40201#define wxUSE_XPM 1
40202_ACEOF
40203
40204 fi
40205
40206 if test "$wxUSE_ICO_CUR" = "yes" ; then
40207 cat >>confdefs.h <<\_ACEOF
40208#define wxUSE_ICO_CUR 1
40209_ACEOF
40210
40211 fi
40212fi
40213
40214
40215if test "$wxUSE_CHOICEDLG" = "yes"; then
40216 cat >>confdefs.h <<\_ACEOF
40217#define wxUSE_CHOICEDLG 1
40218_ACEOF
40219
40220fi
40221
40222if test "$wxUSE_COLOURDLG" = "yes"; then
40223 cat >>confdefs.h <<\_ACEOF
40224#define wxUSE_COLOURDLG 1
40225_ACEOF
40226
40227fi
40228
40229if test "$wxUSE_FILEDLG" = "yes"; then
40230 cat >>confdefs.h <<\_ACEOF
40231#define wxUSE_FILEDLG 1
40232_ACEOF
40233
40234fi
40235
40236if test "$wxUSE_FINDREPLDLG" = "yes"; then
40237 cat >>confdefs.h <<\_ACEOF
40238#define wxUSE_FINDREPLDLG 1
40239_ACEOF
40240
40241fi
40242
40243if test "$wxUSE_FONTDLG" = "yes"; then
40244 cat >>confdefs.h <<\_ACEOF
40245#define wxUSE_FONTDLG 1
40246_ACEOF
40247
40248fi
40249
40250if test "$wxUSE_DIRDLG" = "yes"; then
40251 if test "$wxUSE_TREECTRL" != "yes"; then
40252 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40253echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40254 else
40255 cat >>confdefs.h <<\_ACEOF
40256#define wxUSE_DIRDLG 1
40257_ACEOF
40258
40259 fi
40260fi
40261
40262if test "$wxUSE_MSGDLG" = "yes"; then
40263 cat >>confdefs.h <<\_ACEOF
40264#define wxUSE_MSGDLG 1
40265_ACEOF
40266
40267fi
40268
40269if test "$wxUSE_NUMBERDLG" = "yes"; then
40270 cat >>confdefs.h <<\_ACEOF
40271#define wxUSE_NUMBERDLG 1
40272_ACEOF
40273
40274fi
40275
40276if test "$wxUSE_PROGRESSDLG" = "yes"; then
40277 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40278 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
40279echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
40280 else
40281 cat >>confdefs.h <<\_ACEOF
40282#define wxUSE_PROGRESSDLG 1
40283_ACEOF
40284
40285 fi
40286fi
40287
40288if test "$wxUSE_SPLASH" = "yes"; then
40289 cat >>confdefs.h <<\_ACEOF
40290#define wxUSE_SPLASH 1
40291_ACEOF
40292
2057db16 40293 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
40294fi
40295
40296if test "$wxUSE_STARTUP_TIPS" = "yes"; then
40297 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40298 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
40299echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
40300 else
40301 cat >>confdefs.h <<\_ACEOF
40302#define wxUSE_STARTUP_TIPS 1
40303_ACEOF
40304
40305 fi
40306fi
40307
40308if test "$wxUSE_TEXTDLG" = "yes"; then
40309 cat >>confdefs.h <<\_ACEOF
40310#define wxUSE_TEXTDLG 1
40311_ACEOF
40312
40313fi
40314
40315if test "$wxUSE_WIZARDDLG" = "yes"; then
40316 cat >>confdefs.h <<\_ACEOF
40317#define wxUSE_WIZARDDLG 1
40318_ACEOF
40319
40320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
40321fi
40322
40323
ce756cb0 40324if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
40325 if test "$wxUSE_GTK" = 1; then
40326 wxUSE_GSTREAMER="yes"
40327
ce756cb0 40328
dae87f93 40329 succeeded=no
ce756cb0 40330
dae87f93
RN
40331 if test -z "$PKG_CONFIG"; then
40332 # Extract the first word of "pkg-config", so it can be a program name with args.
40333set dummy pkg-config; ac_word=$2
40334echo "$as_me:$LINENO: checking for $ac_word" >&5
40335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40336if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40337 echo $ECHO_N "(cached) $ECHO_C" >&6
40338else
40339 case $PKG_CONFIG in
40340 [\\/]* | ?:[\\/]*)
40341 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40342 ;;
40343 *)
40344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40345for as_dir in $PATH
40346do
40347 IFS=$as_save_IFS
40348 test -z "$as_dir" && as_dir=.
40349 for ac_exec_ext in '' $ac_executable_extensions; do
40350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40351 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40353 break 2
40354 fi
40355done
40356done
40357
40358 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40359 ;;
40360esac
40361fi
40362PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40363
40364if test -n "$PKG_CONFIG"; then
40365 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40366echo "${ECHO_T}$PKG_CONFIG" >&6
40367else
40368 echo "$as_me:$LINENO: result: no" >&5
40369echo "${ECHO_T}no" >&6
40370fi
40371
40372 fi
40373
40374 if test "$PKG_CONFIG" = "no" ; then
40375 echo "*** The pkg-config script could not be found. Make sure it is"
40376 echo "*** in your path, or set the PKG_CONFIG environment variable"
40377 echo "*** to the full path to pkg-config."
40378 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40379 else
40380 PKG_CONFIG_MIN_VERSION=0.9.0
40381 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40382 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40383echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40384
40385 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40386 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40387echo "${ECHO_T}yes" >&6
dae87f93 40388 succeeded=yes
ce756cb0 40389
dae87f93
RN
40390 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40391echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40392 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40393 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40394echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40395
40396 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40397echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40398 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40399 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40400echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40401 else
40402 GSTREAMER_CFLAGS=""
40403 GSTREAMER_LIBS=""
40404 ## If we have a custom action on failure, don't print errors, but
40405 ## do set a variable so people can do so.
40406 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 40407
dae87f93
RN
40408 fi
40409
40410
40411
40412 else
40413 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40414 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40415 fi
40416 fi
40417
40418 if test $succeeded = yes; then
40419
40420 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40421 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 40422
ce756cb0 40423 else
dae87f93
RN
40424
40425 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40426echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40427 wxUSE_GSTREAMER="no"
40428
40429 fi
40430
40431
40432
40433
40434
40435 if test "x$GST_INSPECT" == "x"; then
40436 # Extract the first word of "gst-inspect", so it can be a program name with args.
40437set dummy gst-inspect; ac_word=$2
40438echo "$as_me:$LINENO: checking for $ac_word" >&5
40439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40440if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40441 echo $ECHO_N "(cached) $ECHO_C" >&6
40442else
40443 if test -n "$GST_INSPECT"; then
40444 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40445else
40446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40447for as_dir in $PATH
40448do
40449 IFS=$as_save_IFS
40450 test -z "$as_dir" && as_dir=.
40451 for ac_exec_ext in '' $ac_executable_extensions; do
40452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40453 ac_cv_prog_GST_INSPECT="gst-inspect"
40454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40455 break 2
ce756cb0 40456 fi
dae87f93
RN
40457done
40458done
40459
40460fi
40461fi
40462GST_INSPECT=$ac_cv_prog_GST_INSPECT
40463if test -n "$GST_INSPECT"; then
40464 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40465echo "${ECHO_T}$GST_INSPECT" >&6
40466else
40467 echo "$as_me:$LINENO: result: no" >&5
40468echo "${ECHO_T}no" >&6
40469fi
40470
40471 fi
40472
40473 if test "x$GST_INSPECT" != "x"; then
40474 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40475echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40476 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40477 echo "$as_me:$LINENO: result: found." >&5
40478echo "${ECHO_T}found." >&6
ce756cb0 40479
ce756cb0 40480 else
dae87f93
RN
40481 echo "$as_me:$LINENO: result: not found." >&5
40482echo "${ECHO_T}not found." >&6
40483
40484 wxUSE_GSTREAMER="no"
40485 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40486echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40487
40488 fi
40489 fi
40490
40491
40492 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40493echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40494if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40495 echo $ECHO_N "(cached) $ECHO_C" >&6
40496else
40497 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40498/* confdefs.h. */
40499_ACEOF
40500cat confdefs.h >>conftest.$ac_ext
40501cat >>conftest.$ac_ext <<_ACEOF
40502/* end confdefs.h. */
dae87f93 40503#include <gst/gst.h>
ce756cb0 40504
dae87f93 40505#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40506_ACEOF
40507rm -f conftest.$ac_objext
40508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40509 (eval $ac_compile) 2>conftest.er1
40510 ac_status=$?
40511 grep -v '^ *+' conftest.er1 >conftest.err
40512 rm -f conftest.er1
40513 cat conftest.err >&5
40514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40515 (exit $ac_status); } &&
8c539582 40516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
40517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40518 (eval $ac_try) 2>&5
40519 ac_status=$?
40520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40521 (exit $ac_status); }; } &&
40522 { ac_try='test -s conftest.$ac_objext'
40523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40524 (eval $ac_try) 2>&5
40525 ac_status=$?
40526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40527 (exit $ac_status); }; }; then
dae87f93 40528 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40529else
40530 echo "$as_me: failed program was:" >&5
40531sed 's/^/| /' conftest.$ac_ext >&5
40532
dae87f93 40533ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40534fi
40535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40536fi
40537echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40538echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40539if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40540 :
40541else
ce756cb0 40542
dae87f93
RN
40543 wxUSE_GSTREAMER="no"
40544 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40545echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40546
dae87f93 40547fi
ce756cb0 40548
dae87f93
RN
40549
40550
40551 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40552echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40553
40554ac_find_libraries=
40555for ac_dir in $SEARCH_LIB /usr/lib;
40556 do
40557 for ac_extension in a so sl dylib; do
40558 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40559 ac_find_libraries=$ac_dir
40560 break 2
40561 fi
40562 done
40563 done
40564
ce756cb0 40565
dae87f93
RN
40566 if test "$ac_find_libraries" = "" ; then
40567 echo "$as_me:$LINENO: result: no" >&5
40568echo "${ECHO_T}no" >&6
40569 wxUSE_GSTREAMER="no"
40570 else
40571 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40572echo "${ECHO_T}yes" >&6
dae87f93 40573 fi
ce756cb0 40574
dae87f93
RN
40575 if test "$wxUSE_GSTREAMER" = "yes"; then
40576 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40577#define wxUSE_GSTREAMER 1
40578_ACEOF
40579
dae87f93
RN
40580 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40581echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40582 fi
40583 fi
40584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40585 cat >>confdefs.h <<\_ACEOF
40586#define wxUSE_MEDIACTRL 1
40587_ACEOF
40588
40589fi
40590
40591
a848cd7e
SC
40592if test "$cross_compiling" = "yes"; then
40593 OSINFO="\"$host\""
40594else
40595 OSINFO=`uname -s -r -m`
40596 OSINFO="\"$OSINFO\""
40597fi
40598
40599cat >>confdefs.h <<_ACEOF
40600#define WXWIN_OS_DESCRIPTION $OSINFO
40601_ACEOF
40602
40603
40604
40605if test "x$prefix" != "xNONE"; then
40606 wxPREFIX=$prefix
40607else
40608 wxPREFIX=$ac_default_prefix
40609fi
40610
40611cat >>confdefs.h <<_ACEOF
40612#define wxINSTALL_PREFIX "$wxPREFIX"
40613_ACEOF
40614
40615
a848cd7e
SC
40616
40617
40618CORE_BASE_LIBS="net base"
40619CORE_GUI_LIBS="adv core"
40620
40621if test "$wxUSE_XML" = "yes" ; then
40622 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40623fi
40624if test "$wxUSE_ODBC" != "no" ; then
40625 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40626 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40627fi
40628if test "$wxUSE_HTML" = "yes" ; then
40629 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40630fi
61639efb
VZ
40631if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40632 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40633fi
9a8f0513
VS
40634if test "$wxUSE_XRC" = "yes" ; then
40635 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40636fi
a848cd7e
SC
40637
40638if test "$wxUSE_GUI" != "yes"; then
40639 CORE_GUI_LIBS=""
40640fi
40641
40642
40643
40644
40645
40646
40647
40648
40649if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40650 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40651 if test "$USE_DARWIN" = 1; then
40652 LDFLAGS="$LDFLAGS -framework QuickTime"
40653 else
40654 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40655 fi
07bea8f0 40656 fi
5dcf30a0 40657 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40658 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40659 else
40660 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40661 fi
a848cd7e
SC
40662fi
40663if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40664 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40665 if test "$wxUSE_MEDIACTRL" = "yes"; then
40666 LDFLAGS="$LDFLAGS -framework QuickTime"
40667 fi
a848cd7e 40668fi
19b27e78
MW
40669if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
40670 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
40671fi
a848cd7e
SC
40672
40673
40674LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40675
40676have_cos=0
40677have_floor=0
40678
40679for ac_func in cos
40680do
40681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40682echo "$as_me:$LINENO: checking for $ac_func" >&5
40683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40684if eval "test \"\${$as_ac_var+set}\" = set"; then
40685 echo $ECHO_N "(cached) $ECHO_C" >&6
40686else
40687 cat >conftest.$ac_ext <<_ACEOF
40688/* confdefs.h. */
40689_ACEOF
40690cat confdefs.h >>conftest.$ac_ext
40691cat >>conftest.$ac_ext <<_ACEOF
40692/* end confdefs.h. */
ac1cb8d3
VS
40693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40695#define $ac_func innocuous_$ac_func
40696
a848cd7e
SC
40697/* System header to define __stub macros and hopefully few prototypes,
40698 which can conflict with char $ac_func (); below.
40699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40700 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40701
a848cd7e
SC
40702#ifdef __STDC__
40703# include <limits.h>
40704#else
40705# include <assert.h>
40706#endif
ac1cb8d3
VS
40707
40708#undef $ac_func
40709
a848cd7e
SC
40710/* Override any gcc2 internal prototype to avoid an error. */
40711#ifdef __cplusplus
40712extern "C"
40713{
40714#endif
40715/* We use char because int might match the return type of a gcc2
40716 builtin and then its argument prototype would still apply. */
40717char $ac_func ();
40718/* The GNU C library defines this for functions which it implements
40719 to always fail with ENOSYS. Some functions are actually named
40720 something starting with __ and the normal name is an alias. */
40721#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40722choke me
40723#else
40724char (*f) () = $ac_func;
40725#endif
40726#ifdef __cplusplus
40727}
40728#endif
40729
40730int
40731main ()
40732{
40733return f != $ac_func;
40734 ;
40735 return 0;
40736}
40737_ACEOF
40738rm -f conftest.$ac_objext conftest$ac_exeext
40739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40740 (eval $ac_link) 2>conftest.er1
a848cd7e 40741 ac_status=$?
ac1cb8d3
VS
40742 grep -v '^ *+' conftest.er1 >conftest.err
40743 rm -f conftest.er1
40744 cat conftest.err >&5
a848cd7e
SC
40745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40746 (exit $ac_status); } &&
8c539582 40747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40749 (eval $ac_try) 2>&5
40750 ac_status=$?
40751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40752 (exit $ac_status); }; } &&
40753 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
40759 eval "$as_ac_var=yes"
40760else
40761 echo "$as_me: failed program was:" >&5
40762sed 's/^/| /' conftest.$ac_ext >&5
40763
40764eval "$as_ac_var=no"
40765fi
ac1cb8d3
VS
40766rm -f conftest.err conftest.$ac_objext \
40767 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40768fi
40769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40771if test `eval echo '${'$as_ac_var'}'` = yes; then
40772 cat >>confdefs.h <<_ACEOF
40773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40774_ACEOF
40775 have_cos=1
40776fi
40777done
40778
40779
40780for ac_func in floor
40781do
40782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40783echo "$as_me:$LINENO: checking for $ac_func" >&5
40784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40785if eval "test \"\${$as_ac_var+set}\" = set"; then
40786 echo $ECHO_N "(cached) $ECHO_C" >&6
40787else
40788 cat >conftest.$ac_ext <<_ACEOF
40789/* confdefs.h. */
40790_ACEOF
40791cat confdefs.h >>conftest.$ac_ext
40792cat >>conftest.$ac_ext <<_ACEOF
40793/* end confdefs.h. */
ac1cb8d3
VS
40794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40796#define $ac_func innocuous_$ac_func
40797
a848cd7e
SC
40798/* System header to define __stub macros and hopefully few prototypes,
40799 which can conflict with char $ac_func (); below.
40800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40801 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40802
a848cd7e
SC
40803#ifdef __STDC__
40804# include <limits.h>
40805#else
40806# include <assert.h>
40807#endif
ac1cb8d3
VS
40808
40809#undef $ac_func
40810
a848cd7e
SC
40811/* Override any gcc2 internal prototype to avoid an error. */
40812#ifdef __cplusplus
40813extern "C"
40814{
40815#endif
40816/* We use char because int might match the return type of a gcc2
40817 builtin and then its argument prototype would still apply. */
40818char $ac_func ();
40819/* The GNU C library defines this for functions which it implements
40820 to always fail with ENOSYS. Some functions are actually named
40821 something starting with __ and the normal name is an alias. */
40822#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40823choke me
40824#else
40825char (*f) () = $ac_func;
40826#endif
40827#ifdef __cplusplus
40828}
40829#endif
40830
40831int
40832main ()
40833{
40834return f != $ac_func;
40835 ;
40836 return 0;
40837}
40838_ACEOF
40839rm -f conftest.$ac_objext conftest$ac_exeext
40840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40841 (eval $ac_link) 2>conftest.er1
a848cd7e 40842 ac_status=$?
ac1cb8d3
VS
40843 grep -v '^ *+' conftest.er1 >conftest.err
40844 rm -f conftest.er1
40845 cat conftest.err >&5
a848cd7e
SC
40846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40847 (exit $ac_status); } &&
8c539582 40848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40850 (eval $ac_try) 2>&5
40851 ac_status=$?
40852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40853 (exit $ac_status); }; } &&
40854 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40856 (eval $ac_try) 2>&5
40857 ac_status=$?
40858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40859 (exit $ac_status); }; }; then
40860 eval "$as_ac_var=yes"
40861else
40862 echo "$as_me: failed program was:" >&5
40863sed 's/^/| /' conftest.$ac_ext >&5
40864
40865eval "$as_ac_var=no"
40866fi
ac1cb8d3
VS
40867rm -f conftest.err conftest.$ac_objext \
40868 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40869fi
40870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40871echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40872if test `eval echo '${'$as_ac_var'}'` = yes; then
40873 cat >>confdefs.h <<_ACEOF
40874#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40875_ACEOF
40876 have_floor=1
40877fi
40878done
40879
40880echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40881echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40882if test "$have_cos" = 1 -a "$have_floor" = 1; then
40883 echo "$as_me:$LINENO: result: yes" >&5
40884echo "${ECHO_T}yes" >&6
40885else
40886 echo "$as_me:$LINENO: result: no" >&5
40887echo "${ECHO_T}no" >&6
40888 LIBS="$LIBS -lm"
40889 # use different functions to avoid configure caching
40890 have_sin=0
40891 have_ceil=0
40892
40893for ac_func in sin
40894do
40895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40896echo "$as_me:$LINENO: checking for $ac_func" >&5
40897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40898if eval "test \"\${$as_ac_var+set}\" = set"; then
40899 echo $ECHO_N "(cached) $ECHO_C" >&6
40900else
40901 cat >conftest.$ac_ext <<_ACEOF
40902/* confdefs.h. */
40903_ACEOF
40904cat confdefs.h >>conftest.$ac_ext
40905cat >>conftest.$ac_ext <<_ACEOF
40906/* end confdefs.h. */
ac1cb8d3
VS
40907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40909#define $ac_func innocuous_$ac_func
40910
a848cd7e
SC
40911/* System header to define __stub macros and hopefully few prototypes,
40912 which can conflict with char $ac_func (); below.
40913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40914 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40915
a848cd7e
SC
40916#ifdef __STDC__
40917# include <limits.h>
40918#else
40919# include <assert.h>
40920#endif
ac1cb8d3
VS
40921
40922#undef $ac_func
40923
a848cd7e
SC
40924/* Override any gcc2 internal prototype to avoid an error. */
40925#ifdef __cplusplus
40926extern "C"
40927{
40928#endif
40929/* We use char because int might match the return type of a gcc2
40930 builtin and then its argument prototype would still apply. */
40931char $ac_func ();
40932/* The GNU C library defines this for functions which it implements
40933 to always fail with ENOSYS. Some functions are actually named
40934 something starting with __ and the normal name is an alias. */
40935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40936choke me
40937#else
40938char (*f) () = $ac_func;
40939#endif
40940#ifdef __cplusplus
40941}
40942#endif
40943
40944int
40945main ()
40946{
40947return f != $ac_func;
40948 ;
40949 return 0;
40950}
40951_ACEOF
40952rm -f conftest.$ac_objext conftest$ac_exeext
40953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40954 (eval $ac_link) 2>conftest.er1
a848cd7e 40955 ac_status=$?
ac1cb8d3
VS
40956 grep -v '^ *+' conftest.er1 >conftest.err
40957 rm -f conftest.er1
40958 cat conftest.err >&5
a848cd7e
SC
40959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40960 (exit $ac_status); } &&
8c539582 40961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40963 (eval $ac_try) 2>&5
40964 ac_status=$?
40965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40966 (exit $ac_status); }; } &&
40967 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40969 (eval $ac_try) 2>&5
40970 ac_status=$?
40971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40972 (exit $ac_status); }; }; then
40973 eval "$as_ac_var=yes"
40974else
40975 echo "$as_me: failed program was:" >&5
40976sed 's/^/| /' conftest.$ac_ext >&5
40977
40978eval "$as_ac_var=no"
40979fi
ac1cb8d3
VS
40980rm -f conftest.err conftest.$ac_objext \
40981 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40982fi
40983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40984echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40985if test `eval echo '${'$as_ac_var'}'` = yes; then
40986 cat >>confdefs.h <<_ACEOF
40987#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40988_ACEOF
40989 have_sin=1
40990fi
40991done
40992
40993
40994for ac_func in ceil
40995do
40996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40997echo "$as_me:$LINENO: checking for $ac_func" >&5
40998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40999if eval "test \"\${$as_ac_var+set}\" = set"; then
41000 echo $ECHO_N "(cached) $ECHO_C" >&6
41001else
41002 cat >conftest.$ac_ext <<_ACEOF
41003/* confdefs.h. */
41004_ACEOF
41005cat confdefs.h >>conftest.$ac_ext
41006cat >>conftest.$ac_ext <<_ACEOF
41007/* end confdefs.h. */
ac1cb8d3
VS
41008/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41010#define $ac_func innocuous_$ac_func
41011
a848cd7e
SC
41012/* System header to define __stub macros and hopefully few prototypes,
41013 which can conflict with char $ac_func (); below.
41014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41015 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41016
a848cd7e
SC
41017#ifdef __STDC__
41018# include <limits.h>
41019#else
41020# include <assert.h>
41021#endif
ac1cb8d3
VS
41022
41023#undef $ac_func
41024
a848cd7e
SC
41025/* Override any gcc2 internal prototype to avoid an error. */
41026#ifdef __cplusplus
41027extern "C"
41028{
41029#endif
41030/* We use char because int might match the return type of a gcc2
41031 builtin and then its argument prototype would still apply. */
41032char $ac_func ();
41033/* The GNU C library defines this for functions which it implements
41034 to always fail with ENOSYS. Some functions are actually named
41035 something starting with __ and the normal name is an alias. */
41036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41037choke me
41038#else
41039char (*f) () = $ac_func;
41040#endif
41041#ifdef __cplusplus
41042}
41043#endif
41044
41045int
41046main ()
41047{
41048return f != $ac_func;
41049 ;
41050 return 0;
41051}
41052_ACEOF
41053rm -f conftest.$ac_objext conftest$ac_exeext
41054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41055 (eval $ac_link) 2>conftest.er1
a848cd7e 41056 ac_status=$?
ac1cb8d3
VS
41057 grep -v '^ *+' conftest.er1 >conftest.err
41058 rm -f conftest.er1
41059 cat conftest.err >&5
a848cd7e
SC
41060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061 (exit $ac_status); } &&
8c539582 41062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41064 (eval $ac_try) 2>&5
41065 ac_status=$?
41066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41067 (exit $ac_status); }; } &&
41068 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41070 (eval $ac_try) 2>&5
41071 ac_status=$?
41072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073 (exit $ac_status); }; }; then
41074 eval "$as_ac_var=yes"
41075else
41076 echo "$as_me: failed program was:" >&5
41077sed 's/^/| /' conftest.$ac_ext >&5
41078
41079eval "$as_ac_var=no"
41080fi
ac1cb8d3
VS
41081rm -f conftest.err conftest.$ac_objext \
41082 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41083fi
41084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41085echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41086if test `eval echo '${'$as_ac_var'}'` = yes; then
41087 cat >>confdefs.h <<_ACEOF
41088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41089_ACEOF
41090 have_ceil=1
41091fi
41092done
41093
41094 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41095echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41096 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41097 echo "$as_me:$LINENO: result: yes" >&5
41098echo "${ECHO_T}yes" >&6
41099 else
41100 echo "$as_me:$LINENO: result: no" >&5
41101echo "${ECHO_T}no" >&6
41102 # not sure we should warn the user, crash, etc.
41103 fi
41104fi
41105
41106if test "$wxUSE_GUI" = "yes"; then
41107
41108
8bce5cda
MW
41109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41110 dynamic erase event exec font image minimal mobile \
41111 mobile/wxedit mobile/styles propsize render \
41112 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41113
41114 if test "$wxUSE_MONOLITHIC" != "yes"; then
41115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41116 fi
0b78747f 41117 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41119 if test "$wxUSE_UNIVERSAL" != "yes"; then
41120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41121 fi
41122 fi
41123 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41125 fi
a848cd7e
SC
41126else
41127 SAMPLES_SUBDIRS="console"
41128fi
41129
41130
ceec2216 41131INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41132-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41133
41134if test "$GXX" = yes ; then
5294a27e
VZ
41135 CWARNINGS="-Wall"
41136 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
41137 fi
41138
41139EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41140
0c3c69fc 41141CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41142CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41143CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41144
95986553
DE
41145if test "x$MWCC" = "xyes"; then
41146
41147 CC="$CC -cwd source -I-"
41148 CXX="$CXX -cwd source -I-"
41149fi
41150
a848cd7e 41151
0c3c69fc 41152LIBS=`echo $LIBS`
a848cd7e
SC
41153EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41154EXTRALIBS_XML="$EXPAT_LINK"
41155EXTRALIBS_HTML="$MSPACK_LINK"
41156EXTRALIBS_ODBC="$ODBC_LINK"
41157if test "$wxUSE_GUI" = "yes"; then
2e350179 41158 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41159fi
41160if test "$wxUSE_OPENGL" = "yes"; then
41161 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41162fi
41163
41164LDFLAGS="$LDFLAGS $PROFILE"
41165
41166if test "$wxUSE_GTK" = 1; then
41167 WXCONFIG_INCLUDE=
41168else
41169 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41170fi
41171
41172WXCONFIG_EXTRALIBS="$LIBS"
41173
41174if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41175 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41176fi
41177if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41178 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41179fi
41180if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41181 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41182fi
41183if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41184 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41185fi
41186if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41187 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41188fi
41189if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41190 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41191fi
41192if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41193 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41194fi
41195
41196for i in $wxconfig_3rdparty ; do
74802184 41197 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41198done
41199
41200
41201if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41202 WXUNIV=1
41203else
41204 WXUNIV=0
41205fi
41206
41207
41208
41209
41210
41211
41212
41213
41214
41215if test $wxUSE_MONOLITHIC = "yes" ; then
41216 MONOLITHIC=1
41217else
41218 MONOLITHIC=0
41219fi
41220
41221if test $wxUSE_PLUGINS = "yes" ; then
41222 USE_PLUGINS=1
41223else
41224 USE_PLUGINS=0
41225fi
41226
41227if test $wxUSE_ODBC != "no" ; then
41228 USE_ODBC=1
41229else
41230 USE_ODBC=0
41231fi
41232
16358932
VZ
41233if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41234 USE_QA=1
41235else
41236 USE_QA=0
41237fi
41238
a848cd7e
SC
41239if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41240 OFFICIAL_BUILD=1
41241else
41242 OFFICIAL_BUILD=0
41243fi
41244
41245
41246
41247
41248
41249
41250
41251
41252
41253
41254
41255
41256
41257
41258
41259
41260
41261
41262
ceec2216 41263
d1c38808 41264
a848cd7e
SC
41265
41266
41267TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41268
41269
41270
41271
41272
41273
41274
41275
4d4ff94c
VZ
41276case "$TOOLKIT" in
41277 GTK)
41278 TOOLKIT_USER="GTK+"
41279 if test "$WXGTK20" = 1; then
41280 TOOLKIT_USER="$TOOLKIT_USER 2"
41281 fi
9a8f0513 41282 ;;
4d4ff94c
VZ
41283
41284 *)
41285 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 41286 ;;
4d4ff94c 41287esac
a848cd7e 41288
fb00f58d
JS
41289if test "$wxUSE_WINE" = "yes"; then
41290 BAKEFILE_FORCE_PLATFORM=win32
41291fi
41292
9a8f0513 41293
1e9e8aba
DE
41294
41295
a848cd7e
SC
41296 if test "x$BAKEFILE_HOST" = "x"; then
41297 BAKEFILE_HOST="${host}"
41298 fi
41299
41300 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
41301
41302 if test -n "$ac_tool_prefix"; then
41303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
41304set dummy ${ac_tool_prefix}ranlib; ac_word=$2
41305echo "$as_me:$LINENO: checking for $ac_word" >&5
41306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41307if test "${ac_cv_prog_RANLIB+set}" = set; then
41308 echo $ECHO_N "(cached) $ECHO_C" >&6
41309else
41310 if test -n "$RANLIB"; then
41311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
41312else
41313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41314for as_dir in $PATH
41315do
41316 IFS=$as_save_IFS
41317 test -z "$as_dir" && as_dir=.
41318 for ac_exec_ext in '' $ac_executable_extensions; do
41319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41322 break 2
41323 fi
41324done
41325done
41326
41327fi
41328fi
41329RANLIB=$ac_cv_prog_RANLIB
41330if test -n "$RANLIB"; then
41331 echo "$as_me:$LINENO: result: $RANLIB" >&5
41332echo "${ECHO_T}$RANLIB" >&6
41333else
41334 echo "$as_me:$LINENO: result: no" >&5
41335echo "${ECHO_T}no" >&6
41336fi
41337
41338fi
41339if test -z "$ac_cv_prog_RANLIB"; then
41340 ac_ct_RANLIB=$RANLIB
41341 # Extract the first word of "ranlib", so it can be a program name with args.
41342set dummy ranlib; ac_word=$2
41343echo "$as_me:$LINENO: checking for $ac_word" >&5
41344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41345if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41346 echo $ECHO_N "(cached) $ECHO_C" >&6
41347else
41348 if test -n "$ac_ct_RANLIB"; then
41349 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41350else
41351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41352for as_dir in $PATH
41353do
41354 IFS=$as_save_IFS
41355 test -z "$as_dir" && as_dir=.
41356 for ac_exec_ext in '' $ac_executable_extensions; do
41357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41358 ac_cv_prog_ac_ct_RANLIB="ranlib"
41359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41360 break 2
41361 fi
41362done
41363done
41364
41365 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41366fi
41367fi
41368ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41369if test -n "$ac_ct_RANLIB"; then
41370 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41371echo "${ECHO_T}$ac_ct_RANLIB" >&6
41372else
41373 echo "$as_me:$LINENO: result: no" >&5
41374echo "${ECHO_T}no" >&6
41375fi
41376
41377 RANLIB=$ac_ct_RANLIB
41378else
41379 RANLIB="$ac_cv_prog_RANLIB"
41380fi
41381
41382 # Find a good install program. We prefer a C program (faster),
41383# so one script is as good as another. But avoid the broken or
41384# incompatible versions:
41385# SysV /etc/install, /usr/sbin/install
41386# SunOS /usr/etc/install
41387# IRIX /sbin/install
41388# AIX /bin/install
41389# AmigaOS /C/install, which installs bootblocks on floppy discs
41390# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41391# AFS /usr/afsws/bin/install, which mishandles nonexistent args
41392# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 41393# OS/2's system install, which has a completely different semantic
a848cd7e
SC
41394# ./install, which can be erroneously created by make from ./install.sh.
41395echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41396echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41397if test -z "$INSTALL"; then
41398if test "${ac_cv_path_install+set}" = set; then
41399 echo $ECHO_N "(cached) $ECHO_C" >&6
41400else
41401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41402for as_dir in $PATH
41403do
41404 IFS=$as_save_IFS
41405 test -z "$as_dir" && as_dir=.
41406 # Account for people who put trailing slashes in PATH elements.
41407case $as_dir/ in
41408 ./ | .// | /cC/* | \
41409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 41410 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
41411 /usr/ucb/* ) ;;
41412 *)
41413 # OSF1 and SCO ODT 3.0 have their own names for install.
41414 # Don't use installbsd from OSF since it installs stuff as root
41415 # by default.
41416 for ac_prog in ginstall scoinst install; do
41417 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
41418 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41419 if test $ac_prog = install &&
41420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41421 # AIX install. It has an incompatible calling convention.
41422 :
41423 elif test $ac_prog = install &&
41424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41425 # program-specific install script used by HP pwplus--don't use.
41426 :
41427 else
41428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41429 break 3
41430 fi
41431 fi
a848cd7e
SC
41432 done
41433 done
41434 ;;
41435esac
41436done
41437
41438
41439fi
41440 if test "${ac_cv_path_install+set}" = set; then
41441 INSTALL=$ac_cv_path_install
41442 else
41443 # As a last resort, use the slow shell script. We don't cache a
41444 # path for INSTALL within a source directory, because that will
41445 # break other packages using the cache if that directory is
41446 # removed, or if the path is relative.
41447 INSTALL=$ac_install_sh
41448 fi
41449fi
41450echo "$as_me:$LINENO: result: $INSTALL" >&5
41451echo "${ECHO_T}$INSTALL" >&6
41452
41453# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41454# It thinks the first close brace ends the variable substitution.
41455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41456
41457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41458
41459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41460
41461 echo "$as_me:$LINENO: checking whether ln -s works" >&5
41462echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41463LN_S=$as_ln_s
41464if test "$LN_S" = "ln -s"; then
41465 echo "$as_me:$LINENO: result: yes" >&5
41466echo "${ECHO_T}yes" >&6
41467else
41468 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41469echo "${ECHO_T}no, using $LN_S" >&6
41470fi
41471
41472
41473 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41474echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41475set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41476if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41477 echo $ECHO_N "(cached) $ECHO_C" >&6
41478else
41479 cat >conftest.make <<\_ACEOF
41480all:
41481 @echo 'ac_maketemp="$(MAKE)"'
41482_ACEOF
41483# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41484eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41485if test -n "$ac_maketemp"; then
41486 eval ac_cv_prog_make_${ac_make}_set=yes
41487else
41488 eval ac_cv_prog_make_${ac_make}_set=no
41489fi
41490rm -f conftest.make
41491fi
41492if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41493 echo "$as_me:$LINENO: result: yes" >&5
41494echo "${ECHO_T}yes" >&6
41495 SET_MAKE=
41496else
41497 echo "$as_me:$LINENO: result: no" >&5
41498echo "${ECHO_T}no" >&6
41499 SET_MAKE="MAKE=${MAKE-make}"
41500fi
41501
41502
41503
41504 if test -n "$ac_tool_prefix"; then
41505 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41506set dummy ${ac_tool_prefix}ar; ac_word=$2
41507echo "$as_me:$LINENO: checking for $ac_word" >&5
41508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41509if test "${ac_cv_prog_AR+set}" = set; then
41510 echo $ECHO_N "(cached) $ECHO_C" >&6
41511else
41512 if test -n "$AR"; then
41513 ac_cv_prog_AR="$AR" # Let the user override the test.
41514else
41515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41516for as_dir in $PATH
41517do
41518 IFS=$as_save_IFS
41519 test -z "$as_dir" && as_dir=.
41520 for ac_exec_ext in '' $ac_executable_extensions; do
41521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41522 ac_cv_prog_AR="${ac_tool_prefix}ar"
41523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41524 break 2
41525 fi
41526done
41527done
41528
41529fi
41530fi
41531AR=$ac_cv_prog_AR
41532if test -n "$AR"; then
41533 echo "$as_me:$LINENO: result: $AR" >&5
41534echo "${ECHO_T}$AR" >&6
41535else
41536 echo "$as_me:$LINENO: result: no" >&5
41537echo "${ECHO_T}no" >&6
41538fi
41539
41540fi
41541if test -z "$ac_cv_prog_AR"; then
41542 ac_ct_AR=$AR
41543 # Extract the first word of "ar", so it can be a program name with args.
41544set dummy ar; ac_word=$2
41545echo "$as_me:$LINENO: checking for $ac_word" >&5
41546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41547if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41548 echo $ECHO_N "(cached) $ECHO_C" >&6
41549else
41550 if test -n "$ac_ct_AR"; then
41551 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41552else
41553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41554for as_dir in $PATH
41555do
41556 IFS=$as_save_IFS
41557 test -z "$as_dir" && as_dir=.
41558 for ac_exec_ext in '' $ac_executable_extensions; do
41559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41560 ac_cv_prog_ac_ct_AR="ar"
41561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41562 break 2
41563 fi
41564done
41565done
41566
41567 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41568fi
41569fi
41570ac_ct_AR=$ac_cv_prog_ac_ct_AR
41571if test -n "$ac_ct_AR"; then
41572 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41573echo "${ECHO_T}$ac_ct_AR" >&6
41574else
41575 echo "$as_me:$LINENO: result: no" >&5
41576echo "${ECHO_T}no" >&6
41577fi
41578
41579 AR=$ac_ct_AR
41580else
41581 AR="$ac_cv_prog_AR"
41582fi
41583
41584 if test -n "$ac_tool_prefix"; then
41585 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41586set dummy ${ac_tool_prefix}strip; ac_word=$2
41587echo "$as_me:$LINENO: checking for $ac_word" >&5
41588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41589if test "${ac_cv_prog_STRIP+set}" = set; then
41590 echo $ECHO_N "(cached) $ECHO_C" >&6
41591else
41592 if test -n "$STRIP"; then
41593 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41594else
41595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41596for as_dir in $PATH
41597do
41598 IFS=$as_save_IFS
41599 test -z "$as_dir" && as_dir=.
41600 for ac_exec_ext in '' $ac_executable_extensions; do
41601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41602 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41604 break 2
41605 fi
41606done
41607done
41608
41609fi
41610fi
41611STRIP=$ac_cv_prog_STRIP
41612if test -n "$STRIP"; then
41613 echo "$as_me:$LINENO: result: $STRIP" >&5
41614echo "${ECHO_T}$STRIP" >&6
41615else
41616 echo "$as_me:$LINENO: result: no" >&5
41617echo "${ECHO_T}no" >&6
41618fi
41619
41620fi
41621if test -z "$ac_cv_prog_STRIP"; then
41622 ac_ct_STRIP=$STRIP
41623 # Extract the first word of "strip", so it can be a program name with args.
41624set dummy strip; ac_word=$2
41625echo "$as_me:$LINENO: checking for $ac_word" >&5
41626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41627if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41628 echo $ECHO_N "(cached) $ECHO_C" >&6
41629else
41630 if test -n "$ac_ct_STRIP"; then
41631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41632else
41633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41634for as_dir in $PATH
41635do
41636 IFS=$as_save_IFS
41637 test -z "$as_dir" && as_dir=.
41638 for ac_exec_ext in '' $ac_executable_extensions; do
41639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41640 ac_cv_prog_ac_ct_STRIP="strip"
41641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41642 break 2
41643 fi
41644done
41645done
41646
41647 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41648fi
41649fi
41650ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41651if test -n "$ac_ct_STRIP"; then
41652 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41653echo "${ECHO_T}$ac_ct_STRIP" >&6
41654else
41655 echo "$as_me:$LINENO: result: no" >&5
41656echo "${ECHO_T}no" >&6
41657fi
41658
41659 STRIP=$ac_ct_STRIP
41660else
41661 STRIP="$ac_cv_prog_STRIP"
41662fi
41663
41664 if test -n "$ac_tool_prefix"; then
41665 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41666set dummy ${ac_tool_prefix}nm; ac_word=$2
41667echo "$as_me:$LINENO: checking for $ac_word" >&5
41668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41669if test "${ac_cv_prog_NM+set}" = set; then
41670 echo $ECHO_N "(cached) $ECHO_C" >&6
41671else
41672 if test -n "$NM"; then
41673 ac_cv_prog_NM="$NM" # Let the user override the test.
41674else
41675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41676for as_dir in $PATH
41677do
41678 IFS=$as_save_IFS
41679 test -z "$as_dir" && as_dir=.
41680 for ac_exec_ext in '' $ac_executable_extensions; do
41681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41682 ac_cv_prog_NM="${ac_tool_prefix}nm"
41683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41684 break 2
41685 fi
41686done
41687done
41688
41689fi
41690fi
41691NM=$ac_cv_prog_NM
41692if test -n "$NM"; then
41693 echo "$as_me:$LINENO: result: $NM" >&5
41694echo "${ECHO_T}$NM" >&6
41695else
41696 echo "$as_me:$LINENO: result: no" >&5
41697echo "${ECHO_T}no" >&6
41698fi
41699
41700fi
41701if test -z "$ac_cv_prog_NM"; then
41702 ac_ct_NM=$NM
41703 # Extract the first word of "nm", so it can be a program name with args.
41704set dummy nm; ac_word=$2
41705echo "$as_me:$LINENO: checking for $ac_word" >&5
41706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41707if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41708 echo $ECHO_N "(cached) $ECHO_C" >&6
41709else
41710 if test -n "$ac_ct_NM"; then
41711 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41712else
41713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41714for as_dir in $PATH
41715do
41716 IFS=$as_save_IFS
41717 test -z "$as_dir" && as_dir=.
41718 for ac_exec_ext in '' $ac_executable_extensions; do
41719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41720 ac_cv_prog_ac_ct_NM="nm"
41721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41722 break 2
41723 fi
41724done
41725done
41726
41727 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41728fi
41729fi
41730ac_ct_NM=$ac_cv_prog_ac_ct_NM
41731if test -n "$ac_ct_NM"; then
41732 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41733echo "${ECHO_T}$ac_ct_NM" >&6
41734else
41735 echo "$as_me:$LINENO: result: no" >&5
41736echo "${ECHO_T}no" >&6
41737fi
41738
41739 NM=$ac_ct_NM
41740else
41741 NM="$ac_cv_prog_NM"
41742fi
41743
41744
41745 case ${BAKEFILE_HOST} in
41746 *-hp-hpux* )
1e9e8aba 41747 INSTALL_DIR="mkdir -p"
a848cd7e
SC
41748 ;;
41749 *) INSTALL_DIR="$INSTALL -d"
41750 ;;
41751 esac
41752
41753
41754 LDFLAGS_GUI=
41755 case ${BAKEFILE_HOST} in
41756 *-*-cygwin* | *-*-mingw32* )
41757 LDFLAGS_GUI="-mwindows"
41758 esac
41759
41760
41761 fi
41762
41763 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41764echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41765if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41766 echo $ECHO_N "(cached) $ECHO_C" >&6
41767else
41768
41769 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41770 egrep -s GNU > /dev/null); then
41771 bakefile_cv_prog_makeisgnu="yes"
41772 else
41773 bakefile_cv_prog_makeisgnu="no"
41774 fi
41775
41776fi
41777echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41778echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41779
41780 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41781 IF_GNU_MAKE=""
41782 else
41783 IF_GNU_MAKE="#"
41784 fi
41785
41786
41787
41788 PLATFORM_UNIX=0
41789 PLATFORM_WIN32=0
41790 PLATFORM_MSDOS=0
41791 PLATFORM_MAC=0
1e9e8aba 41792 PLATFORM_MACOS=0
a848cd7e
SC
41793 PLATFORM_MACOSX=0
41794 PLATFORM_OS2=0
1e9e8aba 41795 PLATFORM_BEOS=0
a848cd7e
SC
41796
41797 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41798 case "${BAKEFILE_HOST}" in
41799 *-*-cygwin* | *-*-mingw32* )
41800 PLATFORM_WIN32=1
41801 ;;
41802 *-pc-msdosdjgpp )
41803 PLATFORM_MSDOS=1
41804 ;;
41805 *-pc-os2_emx | *-pc-os2-emx )
41806 PLATFORM_OS2=1
41807 ;;
41808 powerpc-*-darwin* )
41809 PLATFORM_MAC=1
41810 PLATFORM_MACOSX=1
41811 ;;
1e9e8aba
DE
41812 *-*-beos* )
41813 PLATFORM_BEOS=1
41814 ;;
41815 powerpc-apple-macos* )
41816 PLATFORM_MAC=1
41817 PLATFORM_MACOS=1
41818 ;;
a848cd7e
SC
41819 * )
41820 PLATFORM_UNIX=1
41821 ;;
41822 esac
41823 else
41824 case "$BAKEFILE_FORCE_PLATFORM" in
41825 win32 )
41826 PLATFORM_WIN32=1
41827 ;;
41828 msdos )
41829 PLATFORM_MSDOS=1
41830 ;;
41831 os2 )
41832 PLATFORM_OS2=1
41833 ;;
41834 darwin )
41835 PLATFORM_MAC=1
41836 PLATFORM_MACOSX=1
41837 ;;
41838 unix )
41839 PLATFORM_UNIX=1
41840 ;;
1e9e8aba
DE
41841 beos )
41842 PLATFORM_BEOS=1
41843 ;;
a848cd7e
SC
41844 * )
41845 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41846echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41847 { (exit 1); exit 1; }; }
41848 ;;
41849 esac
41850 fi
41851
41852
41853
41854
41855
41856
41857
41858
41859
1e9e8aba
DE
41860
41861
a848cd7e
SC
41862 # Check whether --enable-omf or --disable-omf was given.
41863if test "${enable_omf+set}" = set; then
41864 enableval="$enable_omf"
41865 bk_os2_use_omf="$enableval"
41866fi;
41867
41868 case "${BAKEFILE_HOST}" in
41869 *-*-darwin* )
41870 CFLAGS="$CFLAGS -fno-common"
41871 CXXFLAGS="$CXXFLAGS -fno-common"
41872 ;;
41873
41874 *-pc-os2_emx | *-pc-os2-emx )
41875 if test "x$bk_os2_use_omf" = "xyes" ; then
41876 AR=emxomfar
41877 RANLIB=:
41878 LDFLAGS="-Zomf $LDFLAGS"
41879 CFLAGS="-Zomf $CFLAGS"
41880 CXXFLAGS="-Zomf $CXXFLAGS"
41881 OS2_LIBEXT="lib"
41882 else
41883 OS2_LIBEXT="a"
41884 fi
41885 ;;
1e9e8aba
DE
41886
41887 i*86-*-beos* )
41888 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41889 ;;
a848cd7e
SC
41890 esac
41891
41892
41893 SO_SUFFIX="so"
41894 SO_SUFFIX_MODULE="so"
41895 EXEEXT=""
41896 LIBPREFIX="lib"
41897 LIBEXT=".a"
41898 DLLPREFIX="lib"
41899 DLLPREFIX_MODULE=""
41900 DLLIMP_SUFFIX=""
41901
41902 case "${BAKEFILE_HOST}" in
41903 *-hp-hpux* )
41904 SO_SUFFIX="sl"
41905 SO_SUFFIX_MODULE="sl"
41906 ;;
41907 *-*-aix* )
41908 SO_SUFFIX="a"
41909 SO_SUFFIX_MODULE="a"
41910 ;;
41911 *-*-cygwin* | *-*-mingw32* )
41912 SO_SUFFIX="dll"
41913 SO_SUFFIX_MODULE="dll"
41914 DLLIMP_SUFFIX="dll.a"
41915 EXEEXT=".exe"
41916 DLLPREFIX=""
41917 ;;
41918 *-pc-msdosdjgpp )
41919 EXEEXT=".exe"
41920 DLLPREFIX=""
41921 ;;
41922 *-pc-os2_emx | *-pc-os2-emx )
41923 SO_SUFFIX="dll"
41924 SO_SUFFIX_MODULE="dll"
41925 DLLIMP_SUFFIX=$OS2_LIBEXT
41926 EXEEXT=".exe"
41927 DLLPREFIX=""
41928 LIBPREFIX=""
41929 LIBEXT=".$OS2_LIBEXT"
41930 ;;
41931 powerpc-*-darwin* )
41932 SO_SUFFIX="dylib"
41933 SO_SUFFIX_MODULE="bundle"
41934 ;;
41935 esac
41936
41937 if test "x$DLLIMP_SUFFIX" = "x" ; then
41938 DLLIMP_SUFFIX="$SO_SUFFIX"
41939 fi
41940
41941
41942
41943
41944
41945
41946
41947
41948
41949
41950
1e9e8aba
DE
41951 PIC_FLAG=""
41952 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41953 PIC_FLAG="-fPIC"
41954 fi
41955
1e9e8aba
DE
41956 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41957 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41958
a848cd7e
SC
41959 case "${BAKEFILE_HOST}" in
41960 *-hp-hpux* )
1e9e8aba 41961 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41962 LDFLAGS="$LDFLAGS -L/usr/lib"
41963
41964 SHARED_LD_CC="${CC} -b -o"
41965 SHARED_LD_CXX="${CXX} -b -o"
41966 PIC_FLAG="+Z"
41967 fi
41968 ;;
41969
41970 *-*-linux* )
41971 if test "x$GCC" != "xyes"; then
41972 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41973echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41974if test "${bakefile_cv_prog_icc+set}" = set; then
41975 echo $ECHO_N "(cached) $ECHO_C" >&6
41976else
41977
41978 cat >conftest.$ac_ext <<_ACEOF
41979/* confdefs.h. */
41980_ACEOF
41981cat confdefs.h >>conftest.$ac_ext
41982cat >>conftest.$ac_ext <<_ACEOF
41983/* end confdefs.h. */
41984
41985int
41986main ()
41987{
41988
41989 #ifndef __INTEL_COMPILER
41990 #error Not icc
41991 #endif
41992
41993 ;
41994 return 0;
41995}
41996_ACEOF
41997rm -f conftest.$ac_objext
41998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41999 (eval $ac_compile) 2>conftest.er1
a848cd7e 42000 ac_status=$?
ac1cb8d3
VS
42001 grep -v '^ *+' conftest.er1 >conftest.err
42002 rm -f conftest.er1
42003 cat conftest.err >&5
a848cd7e
SC
42004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42005 (exit $ac_status); } &&
8c539582 42006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42008 (eval $ac_try) 2>&5
42009 ac_status=$?
42010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42011 (exit $ac_status); }; } &&
42012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42014 (eval $ac_try) 2>&5
42015 ac_status=$?
42016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42017 (exit $ac_status); }; }; then
42018 bakefile_cv_prog_icc=yes
42019else
42020 echo "$as_me: failed program was:" >&5
42021sed 's/^/| /' conftest.$ac_ext >&5
42022
42023bakefile_cv_prog_icc=no
42024
42025fi
ac1cb8d3 42026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42027
42028fi
42029echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
42030echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
42031 if test "$bakefile_cv_prog_icc" = "yes"; then
42032 PIC_FLAG="-KPIC"
42033 fi
42034 fi
42035 ;;
42036
42037 *-*-solaris2* )
42038 if test "x$GCC" != xyes ; then
42039 SHARED_LD_CC="${CC} -G -o"
42040 SHARED_LD_CXX="${CXX} -G -o"
42041 PIC_FLAG="-KPIC"
42042 fi
42043 ;;
42044
42045 *-*-darwin* )
42046
42047 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
42048echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
42049if test "${wx_cv_gcc31+set}" = set; then
42050 echo $ECHO_N "(cached) $ECHO_C" >&6
42051else
42052
42053 cat >conftest.$ac_ext <<_ACEOF
42054/* confdefs.h. */
42055_ACEOF
42056cat confdefs.h >>conftest.$ac_ext
42057cat >>conftest.$ac_ext <<_ACEOF
42058/* end confdefs.h. */
42059
42060int
42061main ()
42062{
42063
42064 #if (__GNUC__ < 3) || \
42065 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
42066 #error old gcc
42067 #endif
42068
42069 ;
42070 return 0;
42071}
42072_ACEOF
42073rm -f conftest.$ac_objext
42074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42075 (eval $ac_compile) 2>conftest.er1
a848cd7e 42076 ac_status=$?
ac1cb8d3
VS
42077 grep -v '^ *+' conftest.er1 >conftest.err
42078 rm -f conftest.er1
42079 cat conftest.err >&5
a848cd7e
SC
42080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42081 (exit $ac_status); } &&
8c539582 42082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42084 (eval $ac_try) 2>&5
42085 ac_status=$?
42086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42087 (exit $ac_status); }; } &&
42088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42090 (eval $ac_try) 2>&5
42091 ac_status=$?
42092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42093 (exit $ac_status); }; }; then
42094
42095 wx_cv_gcc31=yes
42096
42097else
42098 echo "$as_me: failed program was:" >&5
42099sed 's/^/| /' conftest.$ac_ext >&5
42100
42101
42102 wx_cv_gcc31=no
42103
42104
42105fi
ac1cb8d3 42106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42107
42108fi
42109echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42110echo "${ECHO_T}$wx_cv_gcc31" >&6
42111 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42112
42113D='$'
42114cat <<EOF >shared-ld-sh
a848cd7e
SC
42115#!/bin/sh
42116#-----------------------------------------------------------------------------
42117#-- Name: distrib/mac/shared-ld-sh
42118#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42119#-- Author: Gilles Depeyrot
42120#-- Copyright: (c) 2002 Gilles Depeyrot
42121#-- Licence: any use permitted
42122#-----------------------------------------------------------------------------
42123
42124verbose=0
42125args=""
42126objects=""
42127linking_flag="-dynamiclib"
42128
473276a9
VS
42129while test ${D}# -gt 0; do
42130 case ${D}1 in
a848cd7e
SC
42131
42132 -v)
42133 verbose=1
42134 ;;
42135
42136 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42137 # collect these options and values
473276a9 42138 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42139 shift
42140 ;;
42141
df1b269d 42142 -l*|-L*|-Wl,*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42143 # collect these options
473276a9 42144 args="${D}{args} ${D}1"
a848cd7e
SC
42145 ;;
42146
42147 -dynamiclib|-bundle)
473276a9 42148 linking_flag="${D}1"
a848cd7e
SC
42149 ;;
42150
42151 -*)
473276a9 42152 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42153 exit 1
42154 ;;
42155
42156 *.o | *.a | *.dylib)
42157 # collect object files
473276a9 42158 objects="${D}{objects} ${D}1"
a848cd7e
SC
42159 ;;
42160
42161 *)
473276a9 42162 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42163 exit 1
42164 ;;
42165
42166 esac
42167 shift
42168done
42169
42170#
42171# Link one module containing all the others
42172#
473276a9
VS
42173if test ${D}{verbose} = 1; then
42174 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42175fi
473276a9
VS
42176c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
42177status=${D}?
42178if test ${D}{status} != 0; then
42179 exit ${D}{status}
a848cd7e
SC
42180fi
42181
42182#
42183# Link the shared library from the single module created
42184#
473276a9
VS
42185if test ${D}{verbose} = 1; then
42186 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 42187fi
473276a9
VS
42188c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42189status=${D}?
42190if test ${D}{status} != 0; then
42191 exit ${D}{status}
a848cd7e
SC
42192fi
42193
42194#
42195# Remove intermediate module
42196#
473276a9 42197rm -f master.${D}${D}.o
a848cd7e
SC
42198
42199exit 0
42200EOF
473276a9 42201
a848cd7e
SC
42202 chmod +x shared-ld-sh
42203
42204 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42205 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42206 SHARED_LD_CXX="$SHARED_LD_CC"
42207 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42208 else
42209 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42210 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42211 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42212 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42213 fi
42214
42215 PIC_FLAG="-dynamic -fPIC"
42216 ;;
42217
42218 *-*-aix* )
42219 if test "x$GCC" != "xyes"; then
42220 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42221set dummy makeC++SharedLib; ac_word=$2
42222echo "$as_me:$LINENO: checking for $ac_word" >&5
42223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42224if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42225 echo $ECHO_N "(cached) $ECHO_C" >&6
42226else
42227 if test -n "$AIX_CXX_LD"; then
42228 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42229else
42230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42231for as_dir in $PATH
42232do
42233 IFS=$as_save_IFS
42234 test -z "$as_dir" && as_dir=.
42235 for ac_exec_ext in '' $ac_executable_extensions; do
42236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42237 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42239 break 2
42240 fi
42241done
42242done
42243
42244 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
42245fi
42246fi
42247AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
42248if test -n "$AIX_CXX_LD"; then
42249 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
42250echo "${ECHO_T}$AIX_CXX_LD" >&6
42251else
42252 echo "$as_me:$LINENO: result: no" >&5
42253echo "${ECHO_T}no" >&6
42254fi
42255
42256 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
42257 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
42258 fi
42259 ;;
42260
42261 *-*-beos* )
1e9e8aba
DE
42262 SHARED_LD_CC="${LD} -nostart -o"
42263 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
42264 ;;
42265
42266 *-*-irix* )
42267 if test "x$GCC" != "xyes"; then
42268 PIC_FLAG="-KPIC"
42269 fi
42270 ;;
42271
42272 *-*-cygwin* | *-*-mingw32* )
42273 PIC_FLAG=""
1e9e8aba
DE
42274 SHARED_LD_CC="\$(CC) -shared -o"
42275 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
42276 ;;
42277
42278 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
42279 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42280 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 42281 PIC_FLAG=""
473276a9
VS
42282
42283D='$'
42284cat <<EOF >dllar.sh
42285#!/bin/sh
42286#
42287# dllar - a tool to build both a .dll and an .a file
42288# from a set of object (.o) files for EMX/OS2.
42289#
42290# Written by Andrew Zabolotny, bit@freya.etu.ru
42291# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
42292#
42293# This script will accept a set of files on the command line.
42294# All the public symbols from the .o files will be exported into
42295# a .DEF file, then linker will be run (through gcc) against them to
42296# build a shared library consisting of all given .o files. All libraries
42297# (.a) will be first decompressed into component .o files then act as
42298# described above. You can optionally give a description (-d "description")
42299# which will be put into .DLL. To see the list of accepted options (as well
42300# as command-line format) simply run this program without options. The .DLL
42301# is built to be imported by name (there is no guarantee that new versions
42302# of the library you build will have same ordinals for same symbols).
42303#
42304# dllar is free software; you can redistribute it and/or modify
42305# it under the terms of the GNU General Public License as published by
42306# the Free Software Foundation; either version 2, or (at your option)
42307# any later version.
42308#
42309# dllar is distributed in the hope that it will be useful,
42310# but WITHOUT ANY WARRANTY; without even the implied warranty of
42311# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42312# GNU General Public License for more details.
42313#
42314# You should have received a copy of the GNU General Public License
42315# along with dllar; see the file COPYING. If not, write to the Free
42316# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42317# 02111-1307, USA.
42318
42319# To successfuly run this program you will need:
42320# - Current drive should have LFN support (HPFS, ext2, network, etc)
42321# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42322# - gcc
42323# (used to build the .dll)
42324# - emxexp
42325# (used to create .def file from .o files)
42326# - emximp
42327# (used to create .a file from .def file)
42328# - GNU text utilites (cat, sort, uniq)
42329# used to process emxexp output
42330# - GNU file utilities (mv, rm)
42331# - GNU sed
42332# - lxlite (optional, see flag below)
42333# (used for general .dll cleanup)
42334#
42335
42336flag_USE_LXLITE=1;
42337
42338#
42339# helper functions
42340# basnam, variant of basename, which does _not_ remove the path, _iff_
42341# second argument (suffix to remove) is given
42342basnam(){
42343 case ${D}# in
42344 1)
1e9e8aba 42345 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
42346 ;;
42347 2)
42348 echo ${D}1 | sed 's/'${D}2'${D}//'
42349 ;;
42350 *)
42351 echo "error in basnam ${D}*"
42352 exit 8
42353 ;;
42354 esac
42355}
42356
42357# Cleanup temporary files and output
42358CleanUp() {
42359 cd ${D}curDir
42360 for i in ${D}inputFiles ; do
42361 case ${D}i in
42362 *!)
42363 rm -rf \`basnam ${D}i !\`
42364 ;;
42365 *)
42366 ;;
42367 esac
42368 done
42369
42370 # Kill result in case of failure as there is just to many stupid make/nmake
42371 # things out there which doesn't do this.
1e9e8aba 42372 if [ ${D}# -eq 0 ]; then
473276a9
VS
42373 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42374 fi
42375}
42376
42377# Print usage and exit script with rc=1.
42378PrintHelp() {
b1d22ded
DE
42379 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42380 echo ' [-name-mangler-script script.sh]'
42381 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42382 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
42383 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 42384 echo ' [*.o] [*.a]'
473276a9
VS
42385 echo '*> "output_file" should have no extension.'
42386 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
42387 echo ' The import library name is derived from this and is set to "name".a,'
42388 echo ' unless overridden by -import'
42389 echo '*> "importlib_name" should have no extension.'
42390 echo ' If it has the .o, or .a extension, it is automatically removed.'
42391 echo ' This name is used as the import library name and may be longer and'
42392 echo ' more descriptive than the DLL name which has to follow the old '
42393 echo ' 8.3 convention of FAT.'
b1d22ded
DE
42394 echo '*> "script.sh may be given to override the output_file name by a'
42395 echo ' different name. It is mainly useful if the regular make process'
42396 echo ' of some package does not take into account OS/2 restriction of'
42397 echo ' DLL name lengths. It takes the importlib name as input and is'
42398 echo ' supposed to procude a shorter name as output. The script should'
42399 echo ' expect to get importlib_name without extension and should produce'
42400 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
42401 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
42402 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42403 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
42404 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42405 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
42406 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42407 echo ' If the last character of a symbol is "*", all symbols beginning'
42408 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 42409 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 42410 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 42411 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 42412 echo ' C runtime DLLs.'
b1d22ded 42413 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
42414 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42415 echo ' unchanged to GCC at the end of command line.'
42416 echo '*> If you create a DLL from a library and you do not specify -o,'
42417 echo ' the basename for DLL and import library will be set to library name,'
42418 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
42419 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42420 echo ' library will be renamed into gcc_s.a.'
42421 echo '--------'
42422 echo 'Example:'
42423 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42424 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42425 CleanUp
42426 exit 1
42427}
42428
42429# Execute a command.
42430# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42431# @Uses Whatever CleanUp() uses.
42432doCommand() {
42433 echo "${D}*"
42434 eval ${D}*
42435 rcCmd=${D}?
42436
1e9e8aba 42437 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
42438 echo "command failed, exit code="${D}rcCmd
42439 CleanUp
42440 exit ${D}rcCmd
42441 fi
42442}
42443
42444# main routine
42445# setup globals
42446cmdLine=${D}*
42447outFile=""
42448outimpFile=""
42449inputFiles=""
b1d22ded 42450renameScript=""
473276a9
VS
42451description=""
42452CC=gcc.exe
42453CFLAGS="-s -Zcrtdll"
42454EXTRA_CFLAGS=""
42455EXPORT_BY_ORDINALS=0
42456exclude_symbols=""
42457library_flags=""
42458curDir=\`pwd\`
42459curDirS=curDir
42460case ${D}curDirS in
42461*/)
42462 ;;
42463*)
42464 curDirS=${D}{curDirS}"/"
42465 ;;
42466esac
42467# Parse commandline
42468libsToLink=0
b1d22ded 42469omfLinking=0
1e9e8aba 42470while [ ${D}1 ]; do
473276a9
VS
42471 case ${D}1 in
42472 -ord*)
42473 EXPORT_BY_ORDINALS=1;
42474 ;;
42475 -o*)
42476 shift
42477 outFile=${D}1
42478 ;;
42479 -i*)
42480 shift
42481 outimpFile=${D}1
42482 ;;
b1d22ded
DE
42483 -name-mangler-script)
42484 shift
42485 renameScript=${D}1
42486 ;;
473276a9
VS
42487 -d*)
42488 shift
42489 description=${D}1
42490 ;;
42491 -f*)
42492 shift
42493 CFLAGS=${D}1
42494 ;;
42495 -c*)
42496 shift
42497 CC=${D}1
42498 ;;
42499 -h*)
42500 PrintHelp
42501 ;;
42502 -ex*)
42503 shift
42504 exclude_symbols=${D}{exclude_symbols}${D}1" "
42505 ;;
42506 -libf*)
42507 shift
42508 library_flags=${D}{library_flags}${D}1" "
42509 ;;
42510 -nocrt*)
42511 CFLAGS="-s"
42512 ;;
42513 -nolxl*)
42514 flag_USE_LXLITE=0
42515 ;;
42516 -* | /*)
42517 case ${D}1 in
42518 -L* | -l*)
42519 libsToLink=1
42520 ;;
b1d22ded
DE
42521 -Zomf)
42522 omfLinking=1
42523 ;;
473276a9
VS
42524 *)
42525 ;;
42526 esac
42527 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42528 ;;
b1d22ded
DE
42529 *.dll)
42530 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42531 if [ ${D}omfLinking -eq 1 ]; then
42532 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42533 else
42534 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42535 fi
42536 ;;
473276a9
VS
42537 *)
42538 found=0;
1e9e8aba 42539 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42540 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42541 else
42542 for file in ${D}1 ; do
1e9e8aba 42543 if [ -f ${D}file ]; then
473276a9
VS
42544 inputFiles="${D}{inputFiles} ${D}file"
42545 found=1
42546 fi
42547 done
1e9e8aba 42548 if [ ${D}found -eq 0 ]; then
473276a9
VS
42549 echo "ERROR: No file(s) found: "${D}1
42550 exit 8
42551 fi
42552 fi
42553 ;;
42554 esac
42555 shift
42556done # iterate cmdline words
42557
42558#
1e9e8aba 42559if [ -z "${D}inputFiles" ]; then
473276a9
VS
42560 echo "dllar: no input files"
42561 PrintHelp
42562fi
42563
42564# Now extract all .o files from .a files
42565newInputFiles=""
42566for file in ${D}inputFiles ; do
42567 case ${D}file in
42568 *.a | *.lib)
42569 case ${D}file in
42570 *.a)
42571 suffix=".a"
42572 AR="ar"
42573 ;;
42574 *.lib)
42575 suffix=".lib"
42576 AR="emxomfar"
42577 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42578 ;;
42579 *)
42580 ;;
42581 esac
42582 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42583 mkdir ${D}dirname
1e9e8aba 42584 if [ ${D}? -ne 0 ]; then
473276a9
VS
42585 echo "Failed to create subdirectory ./${D}dirname"
42586 CleanUp
42587 exit 8;
42588 fi
42589 # Append '!' to indicate archive
42590 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42591 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42592 cd ${D}curDir
42593 found=0;
42594 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42595 if [ -f ${D}subfile ]; then
473276a9 42596 found=1
1e9e8aba 42597 if [ -s ${D}subfile ]; then
473276a9
VS
42598 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42599 newInputFiles="${D}newInputFiles ${D}subfile"
42600 fi
42601 fi
42602 done
1e9e8aba
DE
42603 if [ ${D}found -eq 0 ]; then
42604 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42605 fi
42606 ;;
42607 *)
42608 newInputFiles="${D}{newInputFiles} ${D}file"
42609 ;;
42610 esac
42611done
42612inputFiles="${D}newInputFiles"
42613
42614# Output filename(s).
42615do_backup=0;
1e9e8aba 42616if [ -z ${D}outFile ]; then
473276a9
VS
42617 do_backup=1;
42618 set outFile ${D}inputFiles; outFile=${D}2
42619fi
42620
42621# If it is an archive, remove the '!' and the '_%' suffixes
42622case ${D}outFile in
42623*_%!)
42624 outFile=\`basnam ${D}outFile _%!\`
42625 ;;
42626*)
42627 ;;
42628esac
42629case ${D}outFile in
42630*.dll)
42631 outFile=\`basnam ${D}outFile .dll\`
42632 ;;
42633*.DLL)
42634 outFile=\`basnam ${D}outFile .DLL\`
42635 ;;
42636*.o)
42637 outFile=\`basnam ${D}outFile .o\`
42638 ;;
42639*.obj)
42640 outFile=\`basnam ${D}outFile .obj\`
42641 ;;
42642*.a)
42643 outFile=\`basnam ${D}outFile .a\`
42644 ;;
42645*.lib)
42646 outFile=\`basnam ${D}outFile .lib\`
42647 ;;
42648*)
42649 ;;
42650esac
42651case ${D}outimpFile in
42652*.a)
42653 outimpFile=\`basnam ${D}outimpFile .a\`
42654 ;;
42655*.lib)
42656 outimpFile=\`basnam ${D}outimpFile .lib\`
42657 ;;
42658*)
42659 ;;
42660esac
1e9e8aba 42661if [ -z ${D}outimpFile ]; then
473276a9
VS
42662 outimpFile=${D}outFile
42663fi
42664defFile="${D}{outFile}.def"
42665arcFile="${D}{outimpFile}.a"
42666arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42667
42668#create ${D}dllFile as something matching 8.3 restrictions,
42669if [ -z ${D}renameScript ] ; then
42670 dllFile="${D}outFile"
42671else
42672 dllFile=\`${D}renameScript ${D}outimpFile\`
42673fi
473276a9 42674
1e9e8aba
DE
42675if [ ${D}do_backup -ne 0 ] ; then
42676 if [ -f ${D}arcFile ] ; then
473276a9
VS
42677 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42678 fi
1e9e8aba 42679 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42680 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42681 fi
42682fi
42683
42684# Extract public symbols from all the object files.
42685tmpdefFile=${D}{defFile}_%
42686rm -f ${D}tmpdefFile
42687for file in ${D}inputFiles ; do
42688 case ${D}file in
42689 *!)
42690 ;;
42691 *)
42692 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42693 ;;
42694 esac
42695done
42696
42697# Create the def file.
42698rm -f ${D}defFile
42699echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
42700dllFile="${D}{dllFile}.dll"
42701if [ ! -z ${D}description ]; then
1e9e8aba 42702 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
42703fi
42704echo "EXPORTS" >> ${D}defFile
42705
42706doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42707grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42708
42709# Checks if the export is ok or not.
42710for word in ${D}exclude_symbols; do
42711 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42712 mv ${D}{tmpdefFile}% ${D}tmpdefFile
42713done
42714
42715
1e9e8aba
DE
42716if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42717 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
42718 sed '
42719 N
42720 : loop
1e9e8aba 42721 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
42722 t loop
42723 ' > ${D}{tmpdefFile}%
42724 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42725else
42726 rm -f ${D}{tmpdefFile}%
42727fi
42728cat ${D}tmpdefFile >> ${D}defFile
42729rm -f ${D}tmpdefFile
42730
42731# Do linking, create implib, and apply lxlite.
42732gccCmdl="";
42733for file in ${D}inputFiles ; do
42734 case ${D}file in
42735 *!)
42736 ;;
42737 *)
42738 gccCmdl="${D}gccCmdl ${D}file"
42739 ;;
42740 esac
42741done
42742doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42743touch "${D}{outFile}.dll"
42744
42745doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 42746if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 42747 add_flags="";
1e9e8aba 42748 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
42749 add_flags="-ynd"
42750 fi
42751 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42752fi
42753doCommand "emxomf -s -l ${D}arcFile"
42754
42755# Successful exit.
42756CleanUp 1
42757exit 0
42758EOF
42759
42760 chmod +x dllar.sh
a848cd7e
SC
42761 ;;
42762
1e9e8aba 42763 powerpc-apple-macos* | \
a848cd7e
SC
42764 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42765 *-*-sunos4* | \
42766 *-*-osf* | \
42767 *-*-dgux5* | \
47a7e797
MW
42768 *-*-sysv5* | \
42769 *-pc-msdosdjgpp )
a848cd7e
SC
42770 ;;
42771
42772 *)
42773 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42774echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42775 { (exit 1); exit 1; }; }
42776 esac
42777
2057db16
VS
42778 if test "x$PIC_FLAG" != "x" ; then
42779 PIC_FLAG="$PIC_FLAG -DPIC"
42780 fi
42781
a848cd7e
SC
42782 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42783 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42784 fi
42785 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42786 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42787 fi
42788
42789
42790
42791
42792
42793
42794
42795
42796 USE_SOVERSION=0
42797 USE_SOVERLINUX=0
42798 USE_SOVERSOLARIS=0
42799 USE_SOSYMLINKS=0
42800 USE_MACVERSION=0
42801 SONAME_FLAG=
42802
42803 case "${BAKEFILE_HOST}" in
b1d22ded 42804 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42805 SONAME_FLAG="-Wl,-soname,"
42806 USE_SOVERSION=1
42807 USE_SOVERLINUX=1
42808 USE_SOSYMLINKS=1
42809 ;;
42810
a848cd7e
SC
42811 *-*-solaris2* )
42812 SONAME_FLAG="-h "
42813 USE_SOVERSION=1
42814 USE_SOVERSOLARIS=1
42815 USE_SOSYMLINKS=1
42816 ;;
42817
42818 *-*-darwin* )
42819 USE_MACVERSION=1
42820 USE_SOVERSION=1
42821 USE_SOSYMLINKS=1
42822 ;;
42823 esac
42824
42825
42826
42827
42828
42829
42830
42831
42832
42833 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42834echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42835 DEPS_TRACKING=0
42836
42837 if test "x$GCC" = "xyes"; then
42838 DEPSMODE=gcc
42839 DEPS_TRACKING=1
42840 case "${BAKEFILE_HOST}" in
42841 powerpc-*-darwin* )
42842 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42843 ;;
42844 * )
42845 DEPSFLAG_GCC="-MMD"
42846 ;;
42847 esac
42848 echo "$as_me:$LINENO: result: gcc" >&5
42849echo "${ECHO_T}gcc" >&6
b1d22ded 42850 elif test "x$MWCC" = "xyes"; then
81f90336 42851 DEPSMODE=mwcc
b1d22ded 42852 DEPS_TRACKING=1
81f90336 42853 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42854 echo "$as_me:$LINENO: result: mwcc" >&5
42855echo "${ECHO_T}mwcc" >&6
a9e5b1f0
MW
42856 elif test "x$SUNCC" = "xyes"; then
42857 DEPSMODE=suncc
42858 DEPS_TRACKING=1
42859 DEPSFLAG_SUNCC="-xM1"
42860 echo "$as_me:$LINENO: result: suncc" >&5
42861echo "${ECHO_T}suncc" >&6
a848cd7e
SC
42862 else
42863 echo "$as_me:$LINENO: result: none" >&5
42864echo "${ECHO_T}none" >&6
42865 fi
42866
42867 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42868
42869D='$'
42870cat <<EOF >bk-deps
a848cd7e
SC
42871#!/bin/sh
42872
42873# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42874# script. It is used to track C/C++ files dependencies in portable way.
42875#
42876# Permission is given to use this file in any way.
42877
473276a9 42878DEPSMODE=${DEPSMODE}
a848cd7e 42879DEPSDIR=.deps
473276a9 42880DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42881DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a9e5b1f0 42882DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}"
a848cd7e 42883
473276a9 42884mkdir -p ${D}DEPSDIR
a848cd7e 42885
473276a9
VS
42886if test ${D}DEPSMODE = gcc ; then
42887 ${D}* ${D}{DEPSFLAG_GCC}
42888 status=${D}?
42889 if test ${D}{status} != 0 ; then
42890 exit ${D}{status}
a848cd7e
SC
42891 fi
42892 # move created file to the location we want it in:
473276a9
VS
42893 while test ${D}# -gt 0; do
42894 case "${D}1" in
a848cd7e
SC
42895 -o )
42896 shift
473276a9 42897 objfile=${D}1
a848cd7e
SC
42898 ;;
42899 -* )
42900 ;;
42901 * )
473276a9 42902 srcfile=${D}1
a848cd7e
SC
42903 ;;
42904 esac
42905 shift
42906 done
1e9e8aba
DE
42907 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42908 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42909 if test -f ${D}depfile ; then
42910 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42911 rm -f ${D}depfile
a848cd7e 42912 else
1e9e8aba 42913 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42914 if test -f ${D}depfile ; then
42915 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42916 rm -f ${D}depfile
a848cd7e
SC
42917 fi
42918 fi
42919 exit 0
81f90336
MW
42920elif test ${D}DEPSMODE = mwcc ; then
42921 ${D}*
42922 status=${D}?
42923 if test ${D}{status} != 0 ; then
42924 exit ${D}{status}
42925 fi
42926 # Run mwcc again with -MM and redirect into the dep file we want
42927 # NOTE: We can't use shift here because we need ${D}* to be valid
42928 prevarg=
42929 for arg in ${D}* ; do
42930 if test "${D}prevarg" = "-o"; then
42931 objfile=${D}arg
42932 else
42933 case "${D}arg" in
42934 -* )
42935 ;;
42936 * )
42937 srcfile=${D}arg
42938 ;;
42939 esac
42940 fi
42941 prevarg="${D}arg"
42942 done
42943 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42944 exit 0
a9e5b1f0
MW
42945elif test ${D}DEPSMODE = suncc; then
42946 ${D}* || exit
42947 # Run compiler again with deps flag and redirect into the dep file.
42948 # It doesn't work if the '-o FILE' option is used, but without it the
42949 # dependency file will contain the wrong name for the object. So it is
42950 # removed from the command line, and the dep file is fixed with sed.
42951 cmd=""
42952 while test ${D}# -gt 0; do
42953 case "${D}1" in
42954 -o )
42955 shift
42956 objfile=${D}1
42957 ;;
42958 * )
42959 eval arg${D}#=\\${D}1
42960 cmd="${D}cmd \\${D}arg${D}#"
42961 ;;
42962 esac
42963 shift
42964 done
42965 eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
42966 exit 0
a848cd7e 42967else
473276a9
VS
42968 ${D}*
42969 exit ${D}?
a848cd7e
SC
42970fi
42971EOF
473276a9 42972
a848cd7e
SC
42973 chmod +x bk-deps
42974 fi
42975
42976
42977
42978
42979 RESCOMP=
42980 SETFILE=
42981
42982 case ${BAKEFILE_HOST} in
42983 *-*-cygwin* | *-*-mingw32* )
42984 if test "$build" != "$host" ; then
42985 RESCOMP=$host_alias-windres
42986 else
42987 # Extract the first word of "windres", so it can be a program name with args.
42988set dummy windres; ac_word=$2
42989echo "$as_me:$LINENO: checking for $ac_word" >&5
42990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42991if test "${ac_cv_prog_RESCOMP+set}" = set; then
42992 echo $ECHO_N "(cached) $ECHO_C" >&6
42993else
42994 if test -n "$RESCOMP"; then
42995 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42996else
42997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42998for as_dir in $PATH
42999do
43000 IFS=$as_save_IFS
43001 test -z "$as_dir" && as_dir=.
43002 for ac_exec_ext in '' $ac_executable_extensions; do
43003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43004 ac_cv_prog_RESCOMP="windres"
43005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43006 break 2
43007 fi
43008done
43009done
43010
43011 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
43012fi
43013fi
43014RESCOMP=$ac_cv_prog_RESCOMP
43015if test -n "$RESCOMP"; then
43016 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43017echo "${ECHO_T}$RESCOMP" >&6
43018else
43019 echo "$as_me:$LINENO: result: no" >&5
43020echo "${ECHO_T}no" >&6
43021fi
43022
43023 fi
43024 ;;
43025
1e9e8aba 43026 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
43027 # Extract the first word of "Rez", so it can be a program name with args.
43028set dummy Rez; ac_word=$2
43029echo "$as_me:$LINENO: checking for $ac_word" >&5
43030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43031if test "${ac_cv_prog_RESCOMP+set}" = set; then
43032 echo $ECHO_N "(cached) $ECHO_C" >&6
43033else
43034 if test -n "$RESCOMP"; then
43035 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43036else
43037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43038for as_dir in $PATH
43039do
43040 IFS=$as_save_IFS
43041 test -z "$as_dir" && as_dir=.
43042 for ac_exec_ext in '' $ac_executable_extensions; do
43043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43044 ac_cv_prog_RESCOMP="Rez"
43045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43046 break 2
43047 fi
43048done
43049done
43050
43051 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
43052fi
43053fi
43054RESCOMP=$ac_cv_prog_RESCOMP
43055if test -n "$RESCOMP"; then
43056 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43057echo "${ECHO_T}$RESCOMP" >&6
43058else
43059 echo "$as_me:$LINENO: result: no" >&5
43060echo "${ECHO_T}no" >&6
43061fi
43062
43063 # Extract the first word of "SetFile", so it can be a program name with args.
43064set dummy SetFile; ac_word=$2
43065echo "$as_me:$LINENO: checking for $ac_word" >&5
43066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43067if test "${ac_cv_prog_SETFILE+set}" = set; then
43068 echo $ECHO_N "(cached) $ECHO_C" >&6
43069else
43070 if test -n "$SETFILE"; then
43071 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
43072else
43073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43074for as_dir in $PATH
43075do
43076 IFS=$as_save_IFS
43077 test -z "$as_dir" && as_dir=.
43078 for ac_exec_ext in '' $ac_executable_extensions; do
43079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43080 ac_cv_prog_SETFILE="SetFile"
43081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43082 break 2
43083 fi
43084done
43085done
43086
43087 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
43088fi
43089fi
43090SETFILE=$ac_cv_prog_SETFILE
43091if test -n "$SETFILE"; then
43092 echo "$as_me:$LINENO: result: $SETFILE" >&5
43093echo "${ECHO_T}$SETFILE" >&6
43094else
43095 echo "$as_me:$LINENO: result: no" >&5
43096echo "${ECHO_T}no" >&6
43097fi
43098
43099 ;;
43100 esac
43101
43102
43103
43104
43105
fbb7dfff 43106 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 43107
dcc1b6ad 43108
fbb7dfff 43109BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 43110
646b6ec1 43111
74b84332 43112
a848cd7e
SC
43113 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
43114if test "${enable_precomp_headers+set}" = set; then
43115 enableval="$enable_precomp_headers"
43116 bk_use_pch="$enableval"
43117fi;
43118
43119 GCC_PCH=0
43120
43121 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43122 if test "x$GCC" = "xyes"; then
43123 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43124echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43125 cat >conftest.$ac_ext <<_ACEOF
43126/* confdefs.h. */
43127_ACEOF
43128cat confdefs.h >>conftest.$ac_ext
43129cat >>conftest.$ac_ext <<_ACEOF
43130/* end confdefs.h. */
43131
43132int
43133main ()
43134{
43135
43136 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43137 #error "no pch support"
43138 #endif
43139 #if (__GNUC__ < 3)
43140 #error "no pch support"
43141 #endif
43142 #if (__GNUC__ == 3) && \
43143 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43144 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43145 #error "no pch support"
43146 #endif
43147
43148 ;
43149 return 0;
43150}
43151_ACEOF
43152rm -f conftest.$ac_objext
43153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43154 (eval $ac_compile) 2>conftest.er1
a848cd7e 43155 ac_status=$?
ac1cb8d3
VS
43156 grep -v '^ *+' conftest.er1 >conftest.err
43157 rm -f conftest.er1
43158 cat conftest.err >&5
a848cd7e
SC
43159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43160 (exit $ac_status); } &&
8c539582 43161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43163 (eval $ac_try) 2>&5
43164 ac_status=$?
43165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43166 (exit $ac_status); }; } &&
43167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43169 (eval $ac_try) 2>&5
43170 ac_status=$?
43171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43172 (exit $ac_status); }; }; then
43173
43174 echo "$as_me:$LINENO: result: yes" >&5
43175echo "${ECHO_T}yes" >&6
a848cd7e
SC
43176 GCC_PCH=1
43177
43178else
43179 echo "$as_me: failed program was:" >&5
43180sed 's/^/| /' conftest.$ac_ext >&5
43181
43182
43183 echo "$as_me:$LINENO: result: no" >&5
43184echo "${ECHO_T}no" >&6
43185
43186fi
ac1cb8d3 43187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43188 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43189
43190D='$'
43191cat <<EOF >bk-make-pch
a848cd7e
SC
43192#!/bin/sh
43193
43194# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43195# script. It is used to generated precompiled headers.
43196#
43197# Permission is given to use this file in any way.
43198
1e9e8aba
DE
43199outfile="${D}{1}"
43200header="${D}{2}"
a848cd7e
SC
43201shift
43202shift
43203
43204compiler=
43205headerfile=
1e9e8aba
DE
43206while test ${D}{#} -gt 0; do
43207 case "${D}{1}" in
a848cd7e 43208 -I* )
1e9e8aba
DE
43209 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43210 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43211 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43212 fi
43213 ;;
43214 esac
1e9e8aba 43215 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43216 shift
43217done
43218
1e9e8aba
DE
43219if test "x${D}{headerfile}" = "x" ; then
43220 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43221else
1e9e8aba
DE
43222 if test -f ${D}{outfile} ; then
43223 rm -f ${D}{outfile}
a848cd7e 43224 else
1e9e8aba 43225 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43226 fi
1e9e8aba 43227 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43228 mkdir -p .deps
43229 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43230 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43231 exit ${D}{?}
a848cd7e
SC
43232fi
43233EOF
1e9e8aba 43234
a848cd7e
SC
43235 chmod +x bk-make-pch
43236 fi
43237 fi
43238 fi
43239
43240
43241
a848cd7e
SC
43242 COND_BUILD_DEBUG="#"
43243 if test "x$BUILD" = "xdebug" ; then
43244 COND_BUILD_DEBUG=""
43245 fi
43246
43247 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
43248 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
43249 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
43250 fi
43251
43252 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
43253 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
43254 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
43255 fi
43256
43257 COND_BUILD_DEBUG_UNICODE_0="#"
43258 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
43259 COND_BUILD_DEBUG_UNICODE_0=""
43260 fi
43261
43262 COND_BUILD_DEBUG_UNICODE_1="#"
43263 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
43264 COND_BUILD_DEBUG_UNICODE_1=""
43265 fi
43266
43267 COND_BUILD_RELEASE="#"
43268 if test "x$BUILD" = "xrelease" ; then
43269 COND_BUILD_RELEASE=""
43270 fi
43271
43272 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
43273 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
43274 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
43275 fi
43276
43277 COND_BUILD_RELEASE_UNICODE_0="#"
43278 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
43279 COND_BUILD_RELEASE_UNICODE_0=""
43280 fi
43281
43282 COND_BUILD_RELEASE_UNICODE_1="#"
43283 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
43284 COND_BUILD_RELEASE_UNICODE_1=""
43285 fi
43286
43287 COND_DEBUG_FLAG_1="#"
43288 if test "x$DEBUG_FLAG" = "x1" ; then
43289 COND_DEBUG_FLAG_1=""
43290 fi
43291
43292 COND_DEBUG_INFO_0="#"
43293 if test "x$DEBUG_INFO" = "x0" ; then
43294 COND_DEBUG_INFO_0=""
43295 fi
43296
43297 COND_DEBUG_INFO_1="#"
43298 if test "x$DEBUG_INFO" = "x1" ; then
43299 COND_DEBUG_INFO_1=""
43300 fi
43301
43302 COND_DEPS_TRACKING_0="#"
43303 if test "x$DEPS_TRACKING" = "x0" ; then
43304 COND_DEPS_TRACKING_0=""
43305 fi
43306
43307 COND_DEPS_TRACKING_1="#"
43308 if test "x$DEPS_TRACKING" = "x1" ; then
43309 COND_DEPS_TRACKING_1=""
43310 fi
43311
43312 COND_GCC_PCH_1="#"
43313 if test "x$GCC_PCH" = "x1" ; then
43314 COND_GCC_PCH_1=""
43315 fi
43316
43317 COND_MONOLITHIC_0="#"
43318 if test "x$MONOLITHIC" = "x0" ; then
43319 COND_MONOLITHIC_0=""
43320 fi
43321
43322 COND_MONOLITHIC_0_SHARED_0="#"
43323 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
43324 COND_MONOLITHIC_0_SHARED_0=""
43325 fi
43326
43327 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
43328 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
43329 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
43330 fi
43331
90970d69
DE
43332 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
43333 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43334 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
43335 fi
43336
a848cd7e
SC
43337 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
43338 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43339 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
43340 fi
43341
6671c68b
VZ
43342 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
43343 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43344 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
43345 fi
43346
a848cd7e
SC
43347 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
43348 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
43349 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
43350 fi
43351
ceec2216
RL
43352 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
43353 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43354 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
43355 fi
43356
a848cd7e
SC
43357 COND_MONOLITHIC_0_SHARED_1="#"
43358 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43359 COND_MONOLITHIC_0_SHARED_1=""
43360 fi
43361
43362 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43363 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43364 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43365 fi
43366
90970d69
DE
43367 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43368 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43369 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43370 fi
43371
a848cd7e
SC
43372 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43373 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43374 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43375 fi
43376
6671c68b
VZ
43377 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43378 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43379 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43380 fi
43381
a848cd7e
SC
43382 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43383 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43384 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43385 fi
43386
ceec2216
RL
43387 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43388 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43389 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43390 fi
43391
a848cd7e
SC
43392 COND_MONOLITHIC_0_USE_ODBC_1="#"
43393 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43394 COND_MONOLITHIC_0_USE_ODBC_1=""
43395 fi
43396
43397 COND_MONOLITHIC_1="#"
43398 if test "x$MONOLITHIC" = "x1" ; then
43399 COND_MONOLITHIC_1=""
43400 fi
43401
43402 COND_MONOLITHIC_1_SHARED_0="#"
43403 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43404 COND_MONOLITHIC_1_SHARED_0=""
43405 fi
43406
43407 COND_MONOLITHIC_1_SHARED_1="#"
43408 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43409 COND_MONOLITHIC_1_SHARED_1=""
43410 fi
43411
43412 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43413 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43414 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43415 fi
43416
43417 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43418 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43419 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43420 fi
43421
43422 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43423 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43424 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43425 fi
43426
43427 COND_PLATFORM_MACOSX_1="#"
43428 if test "x$PLATFORM_MACOSX" = "x1" ; then
43429 COND_PLATFORM_MACOSX_1=""
43430 fi
43431
a30f955f
VS
43432 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43433 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43434 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43435 fi
43436
a848cd7e
SC
43437 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43438 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43439 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43440 fi
43441
43442 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43443 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43444 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43445 fi
43446
43447 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43448 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43449 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43450 fi
43451
fc480dc1
DE
43452 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43453 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43454 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43455 fi
43456
1e9e8aba
DE
43457 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43458 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43459 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43460 fi
43461
ebee3cd0
VS
43462 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
43463 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
43464 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
43465 fi
43466
43467 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
43468 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
43469 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
43470 fi
43471
a848cd7e
SC
43472 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
43473 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
43474 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
43475 fi
43476
43477 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
43478 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
43479 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
43480 fi
43481
b48a2016
DE
43482 COND_PLATFORM_MACOS_1="#"
43483 if test "x$PLATFORM_MACOS" = "x1" ; then
43484 COND_PLATFORM_MACOS_1=""
43485 fi
43486
a848cd7e
SC
43487 COND_PLATFORM_MAC_1="#"
43488 if test "x$PLATFORM_MAC" = "x1" ; then
43489 COND_PLATFORM_MAC_1=""
43490 fi
43491
83d8eb47
MW
43492 COND_PLATFORM_MSDOS_1="#"
43493 if test "x$PLATFORM_MSDOS" = "x1" ; then
43494 COND_PLATFORM_MSDOS_1=""
43495 fi
43496
a848cd7e
SC
43497 COND_PLATFORM_OS2_1="#"
43498 if test "x$PLATFORM_OS2" = "x1" ; then
43499 COND_PLATFORM_OS2_1=""
43500 fi
43501
43502 COND_PLATFORM_UNIX_0="#"
43503 if test "x$PLATFORM_UNIX" = "x0" ; then
43504 COND_PLATFORM_UNIX_0=""
43505 fi
43506
43507 COND_PLATFORM_UNIX_1="#"
43508 if test "x$PLATFORM_UNIX" = "x1" ; then
43509 COND_PLATFORM_UNIX_1=""
43510 fi
43511
43512 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
43513 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
43514 COND_PLATFORM_UNIX_1_USE_GUI_1=""
43515 fi
43516
43517 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
43518 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
43519 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
43520 fi
43521
43522 COND_PLATFORM_WIN32_0="#"
43523 if test "x$PLATFORM_WIN32" = "x0" ; then
43524 COND_PLATFORM_WIN32_0=""
43525 fi
43526
43527 COND_PLATFORM_WIN32_1="#"
43528 if test "x$PLATFORM_WIN32" = "x1" ; then
43529 COND_PLATFORM_WIN32_1=""
43530 fi
43531
43532 COND_SHARED_0="#"
43533 if test "x$SHARED" = "x0" ; then
43534 COND_SHARED_0=""
43535 fi
43536
ceec2216
RL
43537 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43538 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43539 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43540 fi
43541
43542 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43543 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43544 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43545 fi
43546
43547 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43548 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43549 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43550 fi
43551
a848cd7e
SC
43552 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43553 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43554 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43555 fi
43556
43557 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43558 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43559 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43560 fi
43561
43562 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43563 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43564 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43565 fi
43566
43567 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43568 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43569 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43570 fi
43571
52ada004
RL
43572 COND_SHARED_0_USE_XRC_1="#"
43573 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43574 COND_SHARED_0_USE_XRC_1=""
43575 fi
43576
a848cd7e
SC
43577 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
43578 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
43579 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
43580 fi
43581
43582 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
43583 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
43584 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
43585 fi
43586
43587 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
43588 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
43589 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
43590 fi
43591
43592 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
43593 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43594 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43595 fi
43596
43597 COND_SHARED_1="#"
43598 if test "x$SHARED" = "x1" ; then
43599 COND_SHARED_1=""
43600 fi
43601
43602 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43603 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43604 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43605 fi
43606
52ada004
RL
43607 COND_SHARED_1_USE_XRC_1="#"
43608 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43609 COND_SHARED_1_USE_XRC_1=""
43610 fi
43611
a30f955f
VS
43612 COND_TOOLKIT_="#"
43613 if test "x$TOOLKIT" = "x" ; then
43614 COND_TOOLKIT_=""
43615 fi
43616
a848cd7e
SC
43617 COND_TOOLKIT_COCOA="#"
43618 if test "x$TOOLKIT" = "xCOCOA" ; then
43619 COND_TOOLKIT_COCOA=""
43620 fi
43621
a49baeab
DE
43622 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43623 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43624 COND_TOOLKIT_COCOA_USE_GUI_1=""
43625 fi
43626
a848cd7e
SC
43627 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43628 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43629 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43630 fi
43631
43632 COND_TOOLKIT_GTK="#"
43633 if test "x$TOOLKIT" = "xGTK" ; then
43634 COND_TOOLKIT_GTK=""
43635 fi
43636
43637 COND_TOOLKIT_GTK_USE_GUI_1="#"
43638 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43639 COND_TOOLKIT_GTK_USE_GUI_1=""
43640 fi
43641
43642 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43643 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43644 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43645 fi
43646
43647 COND_TOOLKIT_MAC="#"
43648 if test "x$TOOLKIT" = "xMAC" ; then
43649 COND_TOOLKIT_MAC=""
43650 fi
43651
43652 COND_TOOLKIT_MAC_USE_GUI_1="#"
43653 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43654 COND_TOOLKIT_MAC_USE_GUI_1=""
43655 fi
43656
43657 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43658 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43659 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43660 fi
43661
43662 COND_TOOLKIT_MGL="#"
43663 if test "x$TOOLKIT" = "xMGL" ; then
43664 COND_TOOLKIT_MGL=""
43665 fi
43666
43667 COND_TOOLKIT_MGL_USE_GUI_1="#"
43668 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43669 COND_TOOLKIT_MGL_USE_GUI_1=""
43670 fi
43671
43672 COND_TOOLKIT_MOTIF="#"
43673 if test "x$TOOLKIT" = "xMOTIF" ; then
43674 COND_TOOLKIT_MOTIF=""
43675 fi
43676
43677 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43678 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43679 COND_TOOLKIT_MOTIF_USE_GUI_1=""
43680 fi
43681
43682 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43683 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43684 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43685 fi
43686
43687 COND_TOOLKIT_MSW="#"
43688 if test "x$TOOLKIT" = "xMSW" ; then
43689 COND_TOOLKIT_MSW=""
43690 fi
43691
43692 COND_TOOLKIT_MSW_USE_GUI_1="#"
43693 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43694 COND_TOOLKIT_MSW_USE_GUI_1=""
43695 fi
43696
43697 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43698 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43699 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43700 fi
43701
43702 COND_TOOLKIT_PM="#"
43703 if test "x$TOOLKIT" = "xPM" ; then
43704 COND_TOOLKIT_PM=""
43705 fi
43706
43707 COND_TOOLKIT_PM_USE_GUI_1="#"
43708 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43709 COND_TOOLKIT_PM_USE_GUI_1=""
43710 fi
43711
43712 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43713 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43714 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43715 fi
43716
3fd9c298
DE
43717 COND_TOOLKIT_WINCE="#"
43718 if test "x$TOOLKIT" = "xWINCE" ; then
43719 COND_TOOLKIT_WINCE=""
43720 fi
43721
43722 COND_TOOLKIT_WINCE_USE_GUI_1="#"
43723 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43724 COND_TOOLKIT_WINCE_USE_GUI_1=""
43725 fi
43726
43727 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43728 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43729 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43730 fi
43731
a848cd7e
SC
43732 COND_TOOLKIT_X11="#"
43733 if test "x$TOOLKIT" = "xX11" ; then
43734 COND_TOOLKIT_X11=""
43735 fi
43736
43737 COND_TOOLKIT_X11_USE_GUI_1="#"
43738 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43739 COND_TOOLKIT_X11_USE_GUI_1=""
43740 fi
43741
43742 COND_UNICODE_1="#"
43743 if test "x$UNICODE" = "x1" ; then
43744 COND_UNICODE_1=""
43745 fi
43746
43747 COND_USE_EXCEPTIONS_0="#"
43748 if test "x$USE_EXCEPTIONS" = "x0" ; then
43749 COND_USE_EXCEPTIONS_0=""
43750 fi
43751
43752 COND_USE_EXCEPTIONS_1="#"
43753 if test "x$USE_EXCEPTIONS" = "x1" ; then
43754 COND_USE_EXCEPTIONS_1=""
43755 fi
43756
43757 COND_USE_GUI_0="#"
43758 if test "x$USE_GUI" = "x0" ; then
43759 COND_USE_GUI_0=""
43760 fi
43761
43762 COND_USE_GUI_1="#"
43763 if test "x$USE_GUI" = "x1" ; then
43764 COND_USE_GUI_1=""
43765 fi
43766
43767 COND_USE_GUI_1_WXUNIV_0="#"
43768 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43769 COND_USE_GUI_1_WXUNIV_0=""
43770 fi
43771
43772 COND_USE_GUI_1_WXUNIV_1="#"
43773 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43774 COND_USE_GUI_1_WXUNIV_1=""
43775 fi
43776
43777 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43778 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43779 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43780 fi
43781
43782 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43783 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43784 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43785 fi
43786
43787 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43788 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43789 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43790 fi
43791
ceec2216
RL
43792 COND_USE_ODBC_1="#"
43793 if test "x$USE_ODBC" = "x1" ; then
43794 COND_USE_ODBC_1=""
43795 fi
43796
ffa0583f
RL
43797 COND_USE_OPENGL_1="#"
43798 if test "x$USE_OPENGL" = "x1" ; then
43799 COND_USE_OPENGL_1=""
43800 fi
43801
a848cd7e
SC
43802 COND_USE_PLUGINS_0="#"
43803 if test "x$USE_PLUGINS" = "x0" ; then
43804 COND_USE_PLUGINS_0=""
43805 fi
43806
0b78747f
MW
43807 COND_USE_RTTI_0="#"
43808 if test "x$USE_RTTI" = "x0" ; then
43809 COND_USE_RTTI_0=""
43810 fi
43811
43812 COND_USE_RTTI_1="#"
43813 if test "x$USE_RTTI" = "x1" ; then
43814 COND_USE_RTTI_1=""
43815 fi
43816
a848cd7e
SC
43817 COND_USE_SOSYMLINKS_1="#"
43818 if test "x$USE_SOSYMLINKS" = "x1" ; then
43819 COND_USE_SOSYMLINKS_1=""
43820 fi
43821
43822 COND_USE_SOVERLINUX_1="#"
43823 if test "x$USE_SOVERLINUX" = "x1" ; then
43824 COND_USE_SOVERLINUX_1=""
43825 fi
43826
43827 COND_USE_SOVERSION_0="#"
43828 if test "x$USE_SOVERSION" = "x0" ; then
43829 COND_USE_SOVERSION_0=""
43830 fi
43831
43832 COND_USE_SOVERSOLARIS_1="#"
43833 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43834 COND_USE_SOVERSOLARIS_1=""
43835 fi
43836
0b78747f
MW
43837 COND_USE_THREADS_0="#"
43838 if test "x$USE_THREADS" = "x0" ; then
43839 COND_USE_THREADS_0=""
43840 fi
43841
43842 COND_USE_THREADS_1="#"
43843 if test "x$USE_THREADS" = "x1" ; then
43844 COND_USE_THREADS_1=""
43845 fi
43846
a13a7f89
RL
43847 COND_USE_XRC_1="#"
43848 if test "x$USE_XRC" = "x1" ; then
43849 COND_USE_XRC_1=""
43850 fi
43851
a848cd7e
SC
43852 COND_WITH_PLUGIN_SDL_1="#"
43853 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43854 COND_WITH_PLUGIN_SDL_1=""
43855 fi
43856
1e6eb025
VZ
43857 COND_WXUNIV_0="#"
43858 if test "x$WXUNIV" = "x0" ; then
43859 COND_WXUNIV_0=""
43860 fi
43861
a848cd7e
SC
43862 COND_WXUNIV_1="#"
43863 if test "x$WXUNIV" = "x1" ; then
43864 COND_WXUNIV_1=""
43865 fi
43866
43867 COND_WXUSE_EXPAT_BUILTIN="#"
43868 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43869 COND_WXUSE_EXPAT_BUILTIN=""
43870 fi
43871
43872 COND_WXUSE_LIBJPEG_BUILTIN="#"
43873 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43874 COND_WXUSE_LIBJPEG_BUILTIN=""
43875 fi
43876
43877 COND_WXUSE_LIBPNG_BUILTIN="#"
43878 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43879 COND_WXUSE_LIBPNG_BUILTIN=""
43880 fi
43881
43882 COND_WXUSE_LIBTIFF_BUILTIN="#"
43883 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43884 COND_WXUSE_LIBTIFF_BUILTIN=""
43885 fi
43886
43887 COND_WXUSE_ODBC_BUILTIN="#"
43888 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43889 COND_WXUSE_ODBC_BUILTIN=""
43890 fi
43891
43892 COND_WXUSE_REGEX_BUILTIN="#"
43893 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43894 COND_WXUSE_REGEX_BUILTIN=""
43895 fi
43896
43897 COND_WXUSE_ZLIB_BUILTIN="#"
43898 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43899 COND_WXUSE_ZLIB_BUILTIN=""
43900 fi
43901
43902
43903
2057db16
VS
43904 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43905 { { 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
43906echo "$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;}
43907 { (exit 1); exit 1; }; }
43908 fi
43909
a848cd7e 43910
fb00f58d
JS
43911if test "$wxUSE_WINE" = "yes"; then
43912 RESCOMP=wrc
43913fi
43914
ceec2216
RL
43915if test "$wxUSE_SHARED" = "yes"; then
43916
43917 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43918 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43919
5b674b9d
DE
43920 case "${host}" in
43921 *-pc-os2_emx | *-pc-os2-emx )
43922 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43923 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43924 cp -p ${srcdir}/src/os2/dllnames.sh .
43925 cp -p ${srcdir}/src/os2/dllar.sh .
43926 ;;
43927 esac
ceec2216
RL
43928else
43929
43930 EXE_LINKER="$CXX -o"
43931
43932fi
69120ee4
VZ
43933if test "$wxUSE_OMF" = "yes"; then
43934 case "${host}" in
43935 *-pc-os2_emx | *-pc-os2-emx )
43936 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43937 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43938 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43939 ;;
43940 esac
43941fi
a848cd7e 43942
c08ebc62 43943if test $GCC_PCH = 1 ; then
8c539582 43944 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
3314e67b 43945fi
bea8e651 43946
8c539582 43947CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
a848cd7e
SC
43948
43949
43950SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43951
43952
43953
43954
43955
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
a848cd7e
SC
43993
43994
43995
43996
43997
43998
43999
44000
44001
44002
44003
44004
44005
44006
44007
44008
44009
44010
44011
44012
44013echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44014echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44015set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44016if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44017 echo $ECHO_N "(cached) $ECHO_C" >&6
44018else
44019 cat >conftest.make <<\_ACEOF
44020all:
44021 @echo 'ac_maketemp="$(MAKE)"'
44022_ACEOF
44023# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44024eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44025if test -n "$ac_maketemp"; then
44026 eval ac_cv_prog_make_${ac_make}_set=yes
44027else
44028 eval ac_cv_prog_make_${ac_make}_set=no
44029fi
44030rm -f conftest.make
44031fi
44032if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44033 echo "$as_me:$LINENO: result: yes" >&5
44034echo "${ECHO_T}yes" >&6
44035 SET_MAKE=
44036else
44037 echo "$as_me:$LINENO: result: no" >&5
44038echo "${ECHO_T}no" >&6
44039 SET_MAKE="MAKE=${MAKE-make}"
44040fi
44041
44042
a848cd7e 44043
ceec2216
RL
44044 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
44045
a848cd7e 44046
ceec2216 44047 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 44048
a848cd7e 44049
ceec2216 44050 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 44051
ceec2216
RL
44052
44053 ac_config_files="$ac_config_files version-script Makefile"
44054
44055
44056 ac_config_commands="$ac_config_commands wx-config
44057 "
a848cd7e
SC
44058
44059
9103d280
RL
44060
44061
a848cd7e
SC
44062if test "$wxUSE_GUI" = "yes"; then
44063 SUBDIRS="samples demos utils contrib"
44064else SUBDIRS="samples utils"
44065fi
44066
44067
44068
44069# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
44070if test "${with_cppunit_prefix+set}" = set; then
44071 withval="$with_cppunit_prefix"
44072 cppunit_config_prefix="$withval"
44073else
44074 cppunit_config_prefix=""
44075fi;
44076
44077# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
44078if test "${with_cppunit_exec_prefix+set}" = set; then
44079 withval="$with_cppunit_exec_prefix"
44080 cppunit_config_exec_prefix="$withval"
44081else
44082 cppunit_config_exec_prefix=""
44083fi;
44084
44085 if test x$cppunit_config_exec_prefix != x ; then
44086 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
44087 if test x${CPPUNIT_CONFIG+set} != xset ; then
44088 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
44089 fi
44090 fi
44091 if test x$cppunit_config_prefix != x ; then
44092 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
44093 if test x${CPPUNIT_CONFIG+set} != xset ; then
44094 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
44095 fi
44096 fi
44097
44098 # Extract the first word of "cppunit-config", so it can be a program name with args.
44099set dummy cppunit-config; ac_word=$2
44100echo "$as_me:$LINENO: checking for $ac_word" >&5
44101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44102if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
44103 echo $ECHO_N "(cached) $ECHO_C" >&6
44104else
44105 case $CPPUNIT_CONFIG in
44106 [\\/]* | ?:[\\/]*)
44107 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
44108 ;;
44109 *)
44110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44111for as_dir in $PATH
44112do
44113 IFS=$as_save_IFS
44114 test -z "$as_dir" && as_dir=.
44115 for ac_exec_ext in '' $ac_executable_extensions; do
44116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44117 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44119 break 2
44120 fi
44121done
44122done
44123
44124 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
44125 ;;
44126esac
44127fi
44128CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
44129
44130if test -n "$CPPUNIT_CONFIG"; then
44131 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
44132echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
44133else
44134 echo "$as_me:$LINENO: result: no" >&5
44135echo "${ECHO_T}no" >&6
44136fi
44137
44138 cppunit_version_min=1.8.0
44139
44140 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
44141echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
44142 no_cppunit=""
44143 if test "$CPPUNIT_CONFIG" = "no" ; then
44144 no_cppunit=yes
44145 else
44146 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
44147 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
44148 cppunit_version=`$CPPUNIT_CONFIG --version`
44149
44150 cppunit_major_version=`echo $cppunit_version | \
44151 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44152 cppunit_minor_version=`echo $cppunit_version | \
44153 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44154 cppunit_micro_version=`echo $cppunit_version | \
44155 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44156
44157 cppunit_major_min=`echo $cppunit_version_min | \
44158 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44159 cppunit_minor_min=`echo $cppunit_version_min | \
44160 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44161 cppunit_micro_min=`echo $cppunit_version_min | \
44162 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44163
44164 cppunit_version_proper=`expr \
44165 $cppunit_major_version \> $cppunit_major_min \| \
44166 $cppunit_major_version \= $cppunit_major_min \& \
44167 $cppunit_minor_version \> $cppunit_minor_min \| \
44168 $cppunit_major_version \= $cppunit_major_min \& \
44169 $cppunit_minor_version \= $cppunit_minor_min \& \
44170 $cppunit_micro_version \>= $cppunit_micro_min `
44171
44172 if test "$cppunit_version_proper" = "1" ; then
44173 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
44174echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
44175 else
44176 echo "$as_me:$LINENO: result: no" >&5
44177echo "${ECHO_T}no" >&6
44178 no_cppunit=yes
44179 fi
44180 fi
44181
44182 if test "x$no_cppunit" = x ; then
c2218763 44183 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
44184 else
44185 CPPUNIT_CFLAGS=""
44186 CPPUNIT_LIBS=""
c2218763 44187 :
a848cd7e
SC
44188 fi
44189
44190
44191
44192
44193
44194for subdir in `echo $SUBDIRS`; do
44195 if test -d ${srcdir}/${subdir} ; then
44196 if test "$wxUSE_GUI" = "yes"; then
44197 if test ${subdir} = "samples"; then
44198 makefiles="samples/Makefile.in $makefiles"
44199 for sample in `echo $SAMPLES_SUBDIRS`; do
44200 if test -d $srcdir/samples/$sample; then
44201 makefiles="samples/$sample/Makefile.in $makefiles"
44202 fi
44203 done
9c112555
MW
44204 else
44205 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
44206 eval "disabled=\$$disabled_var"
44207 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
44208 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
44209 fi
44210 else if test ${subdir} = "samples"; then
44211 makefiles="samples/Makefile.in samples/console/Makefile.in"
44212 elif test ${subdir} = "utils"; then
6537ccf8
VS
44213 makefiles=""
44214 for util in HelpGen tex2rtf ; do
44215 if test -d $srcdir/utils/$util ; then
44216 makefiles="utils/$util/Makefile.in \
44217 utils/$util/src/Makefile.in \
44218 $makefiles"
44219 fi
44220 done
a848cd7e
SC
44221 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
44222 fi
44223 fi
44224
44225 for mkin in $makefiles ; do
44226 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
44227 ac_config_files="$ac_config_files $mk"
44228
44229 done
44230 fi
44231done
44232
44233
44234cat >confcache <<\_ACEOF
44235# This file is a shell script that caches the results of configure
44236# tests run on this system so they can be shared between configure
44237# scripts and configure runs, see configure's option --config-cache.
44238# It is not useful on other systems. If it contains results you don't
44239# want to keep, you may remove or edit it.
44240#
44241# config.status only pays attention to the cache file if you give it
44242# the --recheck option to rerun configure.
44243#
44244# `ac_cv_env_foo' variables (set or unset) will be overridden when
44245# loading this file, other *unset* `ac_cv_foo' will be assigned the
44246# following values.
44247
44248_ACEOF
44249
44250# The following way of writing the cache mishandles newlines in values,
44251# but we know of no workaround that is simple, portable, and efficient.
44252# So, don't put newlines in cache variables' values.
44253# Ultrix sh set writes to stderr and can't be redirected directly,
44254# and sets the high bit in the cache file unless we assign to the vars.
44255{
44256 (set) 2>&1 |
44257 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44258 *ac_space=\ *)
44259 # `set' does not quote correctly, so add quotes (double-quote
44260 # substitution turns \\\\ into \\, and sed turns \\ into \).
44261 sed -n \
ac1cb8d3
VS
44262 "s/'/'\\\\''/g;
44263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
44264 ;;
44265 *)
44266 # `set' quotes correctly as required by POSIX, so do not add quotes.
44267 sed -n \
ac1cb8d3 44268 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
44269 ;;
44270 esac;
44271} |
44272 sed '
44273 t clear
44274 : clear
44275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44276 t end
44277 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44278 : end' >>confcache
44279if diff $cache_file confcache >/dev/null 2>&1; then :; else
44280 if test -w $cache_file; then
44281 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44282 cat confcache >$cache_file
44283 else
44284 echo "not updating unwritable cache $cache_file"
44285 fi
44286fi
44287rm -f confcache
44288
44289test "x$prefix" = xNONE && prefix=$ac_default_prefix
44290# Let make expand exec_prefix.
44291test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44292
44293# VPATH may cause trouble with some makes, so we remove $(srcdir),
44294# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44295# trailing colons and then remove the whole line if VPATH becomes empty
44296# (actually we leave an empty line to preserve line numbers).
44297if test "x$srcdir" = x.; then
ac1cb8d3 44298 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
44299s/:*\$(srcdir):*/:/;
44300s/:*\${srcdir}:*/:/;
44301s/:*@srcdir@:*/:/;
ac1cb8d3 44302s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 44303s/:*$//;
ac1cb8d3 44304s/^[^=]*=[ ]*$//;
a848cd7e
SC
44305}'
44306fi
44307
44308DEFS=-DHAVE_CONFIG_H
44309
44310ac_libobjs=
44311ac_ltlibobjs=
44312for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44313 # 1. Remove the extension, and $U if already installed.
44314 ac_i=`echo "$ac_i" |
ac1cb8d3 44315 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
44316 # 2. Add them.
44317 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44318 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44319done
44320LIBOBJS=$ac_libobjs
44321
44322LTLIBOBJS=$ac_ltlibobjs
44323
44324
44325
44326: ${CONFIG_STATUS=./config.status}
44327ac_clean_files_save=$ac_clean_files
44328ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44329{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44330echo "$as_me: creating $CONFIG_STATUS" >&6;}
44331cat >$CONFIG_STATUS <<_ACEOF
44332#! $SHELL
44333# Generated by $as_me.
44334# Run this file to recreate the current configuration.
44335# Compiler output produced by configure, useful for debugging
44336# configure, is in config.log if it exists.
44337
44338debug=false
44339ac_cs_recheck=false
44340ac_cs_silent=false
44341SHELL=\${CONFIG_SHELL-$SHELL}
44342_ACEOF
44343
44344cat >>$CONFIG_STATUS <<\_ACEOF
44345## --------------------- ##
44346## M4sh Initialization. ##
44347## --------------------- ##
44348
44349# Be Bourne compatible
44350if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44351 emulate sh
44352 NULLCMD=:
44353 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44354 # is contrary to our usage. Disable this feature.
44355 alias -g '${1+"$@"}'='"$@"'
44356elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44357 set -o posix
44358fi
ac1cb8d3 44359DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
44360
44361# Support unset when possible.
ac1cb8d3 44362if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
44363 as_unset=unset
44364else
44365 as_unset=false
44366fi
44367
44368
44369# Work around bugs in pre-3.0 UWIN ksh.
44370$as_unset ENV MAIL MAILPATH
44371PS1='$ '
44372PS2='> '
44373PS4='+ '
44374
44375# NLS nuisances.
44376for as_var in \
44377 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44378 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44379 LC_TELEPHONE LC_TIME
44380do
ac1cb8d3 44381 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
44382 eval $as_var=C; export $as_var
44383 else
44384 $as_unset $as_var
44385 fi
44386done
44387
44388# Required to use basename.
44389if expr a : '\(a\)' >/dev/null 2>&1; then
44390 as_expr=expr
44391else
44392 as_expr=false
44393fi
44394
44395if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44396 as_basename=basename
44397else
44398 as_basename=false
44399fi
44400
44401
44402# Name of the executable.
44403as_me=`$as_basename "$0" ||
44404$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44405 X"$0" : 'X\(//\)$' \| \
44406 X"$0" : 'X\(/\)$' \| \
44407 . : '\(.\)' 2>/dev/null ||
44408echo X/"$0" |
44409 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44410 /^X\/\(\/\/\)$/{ s//\1/; q; }
44411 /^X\/\(\/\).*/{ s//\1/; q; }
44412 s/.*/./; q'`
44413
44414
44415# PATH needs CR, and LINENO needs CR and PATH.
44416# Avoid depending upon Character Ranges.
44417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44420as_cr_digits='0123456789'
44421as_cr_alnum=$as_cr_Letters$as_cr_digits
44422
44423# The user is always right.
44424if test "${PATH_SEPARATOR+set}" != set; then
44425 echo "#! /bin/sh" >conf$$.sh
44426 echo "exit 0" >>conf$$.sh
44427 chmod +x conf$$.sh
44428 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44429 PATH_SEPARATOR=';'
44430 else
44431 PATH_SEPARATOR=:
44432 fi
44433 rm -f conf$$.sh
44434fi
44435
44436
44437 as_lineno_1=$LINENO
44438 as_lineno_2=$LINENO
44439 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44440 test "x$as_lineno_1" != "x$as_lineno_2" &&
44441 test "x$as_lineno_3" = "x$as_lineno_2" || {
44442 # Find who we are. Look in the path if we contain no path at all
44443 # relative or not.
44444 case $0 in
44445 *[\\/]* ) as_myself=$0 ;;
44446 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44447for as_dir in $PATH
44448do
44449 IFS=$as_save_IFS
44450 test -z "$as_dir" && as_dir=.
44451 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44452done
44453
44454 ;;
44455 esac
44456 # We did not find ourselves, most probably we were run as `sh COMMAND'
44457 # in which case we are not to be found in the path.
44458 if test "x$as_myself" = x; then
44459 as_myself=$0
44460 fi
44461 if test ! -f "$as_myself"; then
44462 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44463echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44464 { (exit 1); exit 1; }; }
44465 fi
44466 case $CONFIG_SHELL in
44467 '')
44468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44469for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44470do
44471 IFS=$as_save_IFS
44472 test -z "$as_dir" && as_dir=.
44473 for as_base in sh bash ksh sh5; do
44474 case $as_dir in
44475 /*)
44476 if ("$as_dir/$as_base" -c '
44477 as_lineno_1=$LINENO
44478 as_lineno_2=$LINENO
44479 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44480 test "x$as_lineno_1" != "x$as_lineno_2" &&
44481 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44482 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44483 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44484 CONFIG_SHELL=$as_dir/$as_base
44485 export CONFIG_SHELL
44486 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44487 fi;;
44488 esac
44489 done
44490done
44491;;
44492 esac
44493
44494 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44495 # uniformly replaced by the line number. The first 'sed' inserts a
44496 # line-number line before each line; the second 'sed' does the real
44497 # work. The second script uses 'N' to pair each line-number line
44498 # with the numbered line, and appends trailing '-' during
44499 # substitution so that $LINENO is not a special case at line end.
44500 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44501 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44502 sed '=' <$as_myself |
44503 sed '
44504 N
44505 s,$,-,
44506 : loop
44507 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44508 t loop
44509 s,-$,,
44510 s,^['$as_cr_digits']*\n,,
44511 ' >$as_me.lineno &&
44512 chmod +x $as_me.lineno ||
44513 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44514echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44515 { (exit 1); exit 1; }; }
44516
44517 # Don't try to exec as it changes $[0], causing all sort of problems
44518 # (the dirname of $[0] is not the place where we might find the
44519 # original and so on. Autoconf is especially sensible to this).
44520 . ./$as_me.lineno
44521 # Exit status is that of the last command.
44522 exit
44523}
44524
44525
44526case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44527 *c*,-n*) ECHO_N= ECHO_C='
44528' ECHO_T=' ' ;;
44529 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44530 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44531esac
44532
44533if expr a : '\(a\)' >/dev/null 2>&1; then
44534 as_expr=expr
44535else
44536 as_expr=false
44537fi
44538
44539rm -f conf$$ conf$$.exe conf$$.file
44540echo >conf$$.file
44541if ln -s conf$$.file conf$$ 2>/dev/null; then
44542 # We could just check for DJGPP; but this test a) works b) is more generic
44543 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44544 if test -f conf$$.exe; then
44545 # Don't use ln at all; we don't have any links
44546 as_ln_s='cp -p'
44547 else
44548 as_ln_s='ln -s'
44549 fi
44550elif ln conf$$.file conf$$ 2>/dev/null; then
44551 as_ln_s=ln
44552else
44553 as_ln_s='cp -p'
44554fi
44555rm -f conf$$ conf$$.exe conf$$.file
44556
44557if mkdir -p . 2>/dev/null; then
44558 as_mkdir_p=:
44559else
ac1cb8d3 44560 test -d ./-p && rmdir ./-p
a848cd7e
SC
44561 as_mkdir_p=false
44562fi
44563
44564as_executable_p="test -f"
44565
44566# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 44567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44568
44569# Sed expression to map a string onto a valid variable name.
ac1cb8d3 44570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44571
44572
44573# IFS
44574# We need space, tab and new line, in precisely that order.
44575as_nl='
44576'
44577IFS=" $as_nl"
44578
44579# CDPATH.
44580$as_unset CDPATH
44581
44582exec 6>&1
44583
44584# Open the log real soon, to keep \$[0] and so on meaningful, and to
44585# report actual input values of CONFIG_FILES etc. instead of their
44586# values after options handling. Logging --version etc. is OK.
44587exec 5>>config.log
44588{
44589 echo
44590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44591## Running $as_me. ##
44592_ASBOX
44593} >&5
44594cat >&5 <<_CSEOF
44595
d230c01b 44596This file was extended by wxWidgets $as_me 2.6.1, which was
ac1cb8d3 44597generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
44598
44599 CONFIG_FILES = $CONFIG_FILES
44600 CONFIG_HEADERS = $CONFIG_HEADERS
44601 CONFIG_LINKS = $CONFIG_LINKS
44602 CONFIG_COMMANDS = $CONFIG_COMMANDS
44603 $ $0 $@
44604
44605_CSEOF
44606echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44607echo >&5
44608_ACEOF
44609
44610# Files that config.status was made for.
44611if test -n "$ac_config_files"; then
44612 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44613fi
44614
44615if test -n "$ac_config_headers"; then
44616 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44617fi
44618
44619if test -n "$ac_config_links"; then
44620 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44621fi
44622
44623if test -n "$ac_config_commands"; then
44624 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44625fi
44626
44627cat >>$CONFIG_STATUS <<\_ACEOF
44628
44629ac_cs_usage="\
44630\`$as_me' instantiates files from templates according to the
44631current configuration.
44632
44633Usage: $0 [OPTIONS] [FILE]...
44634
44635 -h, --help print this help, then exit
44636 -V, --version print version number, then exit
44637 -q, --quiet do not print progress messages
44638 -d, --debug don't remove temporary files
44639 --recheck update $as_me by reconfiguring in the same conditions
44640 --file=FILE[:TEMPLATE]
ac1cb8d3 44641 instantiate the configuration file FILE
a848cd7e 44642 --header=FILE[:TEMPLATE]
ac1cb8d3 44643 instantiate the configuration header FILE
a848cd7e
SC
44644
44645Configuration files:
44646$config_files
44647
44648Configuration headers:
44649$config_headers
44650
44651Configuration commands:
44652$config_commands
44653
44654Report bugs to <bug-autoconf@gnu.org>."
44655_ACEOF
44656
44657cat >>$CONFIG_STATUS <<_ACEOF
44658ac_cs_version="\\
d230c01b 44659wxWidgets config.status 2.6.1
ac1cb8d3 44660configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
44661 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44662
ac1cb8d3 44663Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
44664This config.status script is free software; the Free Software Foundation
44665gives unlimited permission to copy, distribute and modify it."
44666srcdir=$srcdir
44667INSTALL="$INSTALL"
44668_ACEOF
44669
44670cat >>$CONFIG_STATUS <<\_ACEOF
44671# If no file are specified by the user, then we need to provide default
44672# value. By we need to know if files were specified by the user.
44673ac_need_defaults=:
44674while test $# != 0
44675do
44676 case $1 in
44677 --*=*)
44678 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44679 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44680 ac_shift=:
44681 ;;
44682 -*)
44683 ac_option=$1
44684 ac_optarg=$2
44685 ac_shift=shift
44686 ;;
44687 *) # This is not an option, so the user has probably given explicit
44688 # arguments.
44689 ac_option=$1
44690 ac_need_defaults=false;;
44691 esac
44692
44693 case $ac_option in
44694 # Handling of the options.
44695_ACEOF
44696cat >>$CONFIG_STATUS <<\_ACEOF
44697 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44698 ac_cs_recheck=: ;;
44699 --version | --vers* | -V )
44700 echo "$ac_cs_version"; exit 0 ;;
44701 --he | --h)
44702 # Conflict between --help and --header
44703 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44704Try \`$0 --help' for more information." >&5
44705echo "$as_me: error: ambiguous option: $1
44706Try \`$0 --help' for more information." >&2;}
44707 { (exit 1); exit 1; }; };;
44708 --help | --hel | -h )
44709 echo "$ac_cs_usage"; exit 0 ;;
44710 --debug | --d* | -d )
44711 debug=: ;;
44712 --file | --fil | --fi | --f )
44713 $ac_shift
44714 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44715 ac_need_defaults=false;;
44716 --header | --heade | --head | --hea )
44717 $ac_shift
44718 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44719 ac_need_defaults=false;;
44720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44721 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44722 ac_cs_silent=: ;;
44723
44724 # This is an error.
44725 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44726Try \`$0 --help' for more information." >&5
44727echo "$as_me: error: unrecognized option: $1
44728Try \`$0 --help' for more information." >&2;}
44729 { (exit 1); exit 1; }; } ;;
44730
44731 *) ac_config_targets="$ac_config_targets $1" ;;
44732
44733 esac
44734 shift
44735done
44736
44737ac_configure_extra_args=
44738
44739if $ac_cs_silent; then
44740 exec 6>/dev/null
44741 ac_configure_extra_args="$ac_configure_extra_args --silent"
44742fi
44743
44744_ACEOF
44745cat >>$CONFIG_STATUS <<_ACEOF
44746if \$ac_cs_recheck; then
44747 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44748 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44749fi
44750
44751_ACEOF
44752
44753cat >>$CONFIG_STATUS <<_ACEOF
44754#
44755# INIT-COMMANDS section.
44756#
44757
ceec2216
RL
44758 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44759 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44760 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44761 LN_S="${LN_S}"
a848cd7e
SC
44762
44763
44764_ACEOF
44765
44766
44767
44768cat >>$CONFIG_STATUS <<\_ACEOF
44769for ac_config_target in $ac_config_targets
44770do
44771 case "$ac_config_target" in
44772 # Handling of arguments.
ceec2216
RL
44773 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44774 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44775 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44776 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44777 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44778 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44779 "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
44780 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44781echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44782 { (exit 1); exit 1; }; };;
44783 esac
44784done
44785
44786# If the user did not use the arguments to specify the items to instantiate,
44787# then the envvar interface is used. Set only those that are not.
44788# We use the long form for the default assignment because of an extremely
44789# bizarre bug on SunOS 4.1.3.
44790if $ac_need_defaults; then
44791 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44792 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44793 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44794fi
44795
44796# Have a temporary directory for convenience. Make it in the build tree
44797# simply because there is no reason to put it here, and in addition,
44798# creating and moving files from /tmp can sometimes cause problems.
44799# Create a temporary directory, and hook for its removal unless debugging.
44800$debug ||
44801{
44802 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44803 trap '{ (exit 1); exit 1; }' 1 2 13 15
44804}
44805
44806# Create a (secure) tmp directory for tmp files.
44807
44808{
44809 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44810 test -n "$tmp" && test -d "$tmp"
44811} ||
44812{
44813 tmp=./confstat$$-$RANDOM
44814 (umask 077 && mkdir $tmp)
44815} ||
44816{
44817 echo "$me: cannot create a temporary directory in ." >&2
44818 { (exit 1); exit 1; }
44819}
44820
44821_ACEOF
44822
44823cat >>$CONFIG_STATUS <<_ACEOF
44824
44825#
44826# CONFIG_FILES section.
44827#
44828
44829# No need to generate the scripts if there are no CONFIG_FILES.
44830# This happens for instance when ./config.status config.h
44831if test -n "\$CONFIG_FILES"; then
44832 # Protect against being on the right side of a sed subst in config.status.
44833 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44834 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44835s,@SHELL@,$SHELL,;t t
44836s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44837s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44838s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44839s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44840s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44841s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44842s,@exec_prefix@,$exec_prefix,;t t
44843s,@prefix@,$prefix,;t t
44844s,@program_transform_name@,$program_transform_name,;t t
44845s,@bindir@,$bindir,;t t
44846s,@sbindir@,$sbindir,;t t
44847s,@libexecdir@,$libexecdir,;t t
44848s,@datadir@,$datadir,;t t
44849s,@sysconfdir@,$sysconfdir,;t t
44850s,@sharedstatedir@,$sharedstatedir,;t t
44851s,@localstatedir@,$localstatedir,;t t
44852s,@libdir@,$libdir,;t t
44853s,@includedir@,$includedir,;t t
44854s,@oldincludedir@,$oldincludedir,;t t
44855s,@infodir@,$infodir,;t t
44856s,@mandir@,$mandir,;t t
44857s,@build_alias@,$build_alias,;t t
44858s,@host_alias@,$host_alias,;t t
44859s,@target_alias@,$target_alias,;t t
44860s,@DEFS@,$DEFS,;t t
44861s,@ECHO_C@,$ECHO_C,;t t
44862s,@ECHO_N@,$ECHO_N,;t t
44863s,@ECHO_T@,$ECHO_T,;t t
44864s,@LIBS@,$LIBS,;t t
44865s,@build@,$build,;t t
44866s,@build_cpu@,$build_cpu,;t t
44867s,@build_vendor@,$build_vendor,;t t
44868s,@build_os@,$build_os,;t t
44869s,@host@,$host,;t t
44870s,@host_cpu@,$host_cpu,;t t
44871s,@host_vendor@,$host_vendor,;t t
44872s,@host_os@,$host_os,;t t
44873s,@target@,$target,;t t
44874s,@target_cpu@,$target_cpu,;t t
44875s,@target_vendor@,$target_vendor,;t t
44876s,@target_os@,$target_os,;t t
44877s,@CC@,$CC,;t t
44878s,@CFLAGS@,$CFLAGS,;t t
44879s,@LDFLAGS@,$LDFLAGS,;t t
44880s,@CPPFLAGS@,$CPPFLAGS,;t t
44881s,@ac_ct_CC@,$ac_ct_CC,;t t
44882s,@EXEEXT@,$EXEEXT,;t t
44883s,@OBJEXT@,$OBJEXT,;t t
44884s,@CPP@,$CPP,;t t
44885s,@EGREP@,$EGREP,;t t
44886s,@CXX@,$CXX,;t t
44887s,@CXXFLAGS@,$CXXFLAGS,;t t
44888s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44889s,@RANLIB@,$RANLIB,;t t
44890s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44891s,@AR@,$AR,;t t
44892s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44893s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44894s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44895s,@STRIP@,$STRIP,;t t
44896s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44897s,@LN_S@,$LN_S,;t t
44898s,@CXXCPP@,$CXXCPP,;t t
44899s,@subdirs@,$subdirs,;t t
44900s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44901s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44902s,@GTK_LIBS@,$GTK_LIBS,;t t
44903s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44904s,@X_CFLAGS@,$X_CFLAGS,;t t
44905s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44906s,@X_LIBS@,$X_LIBS,;t t
44907s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44908s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44909s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44910s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44911s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44912s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44913s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44914s,@RESCOMP@,$RESCOMP,;t t
44915s,@DEREZ@,$DEREZ,;t t
44916s,@SETFILE@,$SETFILE,;t t
44917s,@LIBICONV@,$LIBICONV,;t t
44918s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44919s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44920s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44921s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44922s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44923s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44924s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44925s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44926s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44927s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44928s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44929s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44930s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44931s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44932s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44933s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44934s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44935s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44936s,@VENDOR@,$VENDOR,;t t
44937s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44938s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44939s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44940s,@WXUNIV@,$WXUNIV,;t t
44941s,@MONOLITHIC@,$MONOLITHIC,;t t
44942s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44943s,@EXTRALIBS@,$EXTRALIBS,;t t
44944s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44945s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44946s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44947s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44948s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44949s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44950s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44951s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44952s,@UNICODE@,$UNICODE,;t t
44953s,@BUILD@,$BUILD,;t t
44954s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44955s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44956s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44957s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44958s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44959s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44960s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44961s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44962s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44963s,@SET_MAKE@,$SET_MAKE,;t t
44964s,@MAKE_SET@,$MAKE_SET,;t t
44965s,@ac_ct_AR@,$ac_ct_AR,;t t
44966s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44967s,@NM@,$NM,;t t
44968s,@ac_ct_NM@,$ac_ct_NM,;t t
44969s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44970s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44971s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44972s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44973s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44974s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44975s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44976s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44977s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44978s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44979s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44980s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44981s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44982s,@LIBPREFIX@,$LIBPREFIX,;t t
44983s,@LIBEXT@,$LIBEXT,;t t
44984s,@DLLPREFIX@,$DLLPREFIX,;t t
44985s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44986s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44987s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44988s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44989s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44990s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44991s,@PIC_FLAG@,$PIC_FLAG,;t t
44992s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44993s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44994s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44995s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44996s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44997s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44998s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44999s,@GCC_PCH@,$GCC_PCH,;t t
45000s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45001s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45002s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45003s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45004s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45005s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45006s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45007s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45008s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45009s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45010s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45011s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45012s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45013s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45014s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45015s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45016s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45017s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45018s,@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 45019s,@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 45020s,@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 45021s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45022s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45023s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45024s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45025s,@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 45026s,@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 45027s,@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 45028s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45029s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
45030s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
45031s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
45032s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
45033s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
45034s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
45035s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
45036s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
45037s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 45038s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
45039s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
45040s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
45041s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 45042s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 45043s,@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
45044s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
45045s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
45046s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
45047s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 45048s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e 45049s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 45050s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
45051s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
45052s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
45053s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
45054s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
45055s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
45056s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
45057s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45058s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
45059s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
45060s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
45061s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
45062s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45063s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45064s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45065s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52ada004 45066s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45067s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
45068s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
45069s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
45070s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45071s,@COND_SHARED_1@,$COND_SHARED_1,;t t
45072s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
52ada004 45073s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 45074s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 45075s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 45076s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
45077s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
45078s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
45079s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
45080s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
45081s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
45082s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
45083s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
45084s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
45085s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
45086s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
45087s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
45088s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
45089s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
45090s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
45091s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
45092s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
45093s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
45094s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
45095s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
45096s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
45097s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
45098s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
45099s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
45100s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
45101s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
45102s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
45103s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
45104s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
45105s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
45106s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
45107s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45108s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45109s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 45110s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 45111s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 45112s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
45113s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
45114s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
45115s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
45116s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
45117s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
45118s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
45119s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
45120s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 45121s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 45122s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 45123s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
45124s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
45125s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
45126s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
45127s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
45128s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
45129s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
45130s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
45131s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 45132s,@SHARED@,$SHARED,;t t
a848cd7e
SC
45133s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
45134s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
45135s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
45136s,@USE_GUI@,$USE_GUI,;t t
45137s,@AFMINSTALL@,$AFMINSTALL,;t t
45138s,@WIN32INSTALL@,$WIN32INSTALL,;t t
45139s,@TOOLKIT@,$TOOLKIT,;t t
45140s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 45141s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 45142s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
45143s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
45144s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 45145s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
45146s,@WIDGET_SET@,$WIDGET_SET,;t t
45147s,@WX_RELEASE@,$WX_RELEASE,;t t
45148s,@WX_VERSION@,$WX_VERSION,;t t
45149s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
45150s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
45151s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 45152s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
45153s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
45154s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
45155s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
45156s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
45157s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
45158s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 45159s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 45160s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
45161s,@DISTDIR@,$DISTDIR,;t t
45162s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
45163s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
45164s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
45165s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
45166s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
45167s,@RESFLAGS@,$RESFLAGS,;t t
45168s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
45169s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
45170s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
45171s,@LIBWXMACRES@,$LIBWXMACRES,;t t
45172s,@MACRESCOMP@,$MACRESCOMP,;t t
45173s,@MACSETFILE@,$MACSETFILE,;t t
45174s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
45175s,@GCC@,$GCC,;t t
a848cd7e 45176s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
45177s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
45178s,@LIBOBJS@,$LIBOBJS,;t t
45179s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45180CEOF
45181
45182_ACEOF
45183
45184 cat >>$CONFIG_STATUS <<\_ACEOF
45185 # Split the substitutions into bite-sized pieces for seds with
45186 # small command number limits, like on Digital OSF/1 and HP-UX.
45187 ac_max_sed_lines=48
45188 ac_sed_frag=1 # Number of current file.
45189 ac_beg=1 # First line for current file.
45190 ac_end=$ac_max_sed_lines # Line after last line for current file.
45191 ac_more_lines=:
45192 ac_sed_cmds=
45193 while $ac_more_lines; do
45194 if test $ac_beg -gt 1; then
45195 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45196 else
45197 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45198 fi
45199 if test ! -s $tmp/subs.frag; then
45200 ac_more_lines=false
45201 else
45202 # The purpose of the label and of the branching condition is to
45203 # speed up the sed processing (if there are no `@' at all, there
45204 # is no need to browse any of the substitutions).
45205 # These are the two extra sed commands mentioned above.
45206 (echo ':t
45207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45208 if test -z "$ac_sed_cmds"; then
ac1cb8d3 45209 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 45210 else
ac1cb8d3 45211 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
45212 fi
45213 ac_sed_frag=`expr $ac_sed_frag + 1`
45214 ac_beg=$ac_end
45215 ac_end=`expr $ac_end + $ac_max_sed_lines`
45216 fi
45217 done
45218 if test -z "$ac_sed_cmds"; then
45219 ac_sed_cmds=cat
45220 fi
45221fi # test -n "$CONFIG_FILES"
45222
45223_ACEOF
45224cat >>$CONFIG_STATUS <<\_ACEOF
45225for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45226 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45227 case $ac_file in
45228 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45229 cat >$tmp/stdin
45230 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45232 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45234 * ) ac_file_in=$ac_file.in ;;
45235 esac
45236
45237 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45238 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45239$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45240 X"$ac_file" : 'X\(//\)[^/]' \| \
45241 X"$ac_file" : 'X\(//\)$' \| \
45242 X"$ac_file" : 'X\(/\)' \| \
45243 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45244echo X"$ac_file" |
45245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45247 /^X\(\/\/\)$/{ s//\1/; q; }
45248 /^X\(\/\).*/{ s//\1/; q; }
45249 s/.*/./; q'`
45250 { if $as_mkdir_p; then
45251 mkdir -p "$ac_dir"
45252 else
45253 as_dir="$ac_dir"
45254 as_dirs=
45255 while test ! -d "$as_dir"; do
45256 as_dirs="$as_dir $as_dirs"
45257 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45258$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45259 X"$as_dir" : 'X\(//\)[^/]' \| \
45260 X"$as_dir" : 'X\(//\)$' \| \
45261 X"$as_dir" : 'X\(/\)' \| \
45262 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45263echo X"$as_dir" |
45264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45266 /^X\(\/\/\)$/{ s//\1/; q; }
45267 /^X\(\/\).*/{ s//\1/; q; }
45268 s/.*/./; q'`
45269 done
45270 test ! -n "$as_dirs" || mkdir $as_dirs
45271 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45272echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45273 { (exit 1); exit 1; }; }; }
45274
45275 ac_builddir=.
45276
45277if test "$ac_dir" != .; then
45278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45279 # A "../" for each directory in $ac_dir_suffix.
45280 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45281else
45282 ac_dir_suffix= ac_top_builddir=
45283fi
45284
45285case $srcdir in
45286 .) # No --srcdir option. We are building in place.
45287 ac_srcdir=.
45288 if test -z "$ac_top_builddir"; then
45289 ac_top_srcdir=.
45290 else
45291 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45292 fi ;;
45293 [\\/]* | ?:[\\/]* ) # Absolute path.
45294 ac_srcdir=$srcdir$ac_dir_suffix;
45295 ac_top_srcdir=$srcdir ;;
45296 *) # Relative path.
45297 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45298 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45299esac
ac1cb8d3
VS
45300
45301# Do not use `cd foo && pwd` to compute absolute paths, because
45302# the directories may not exist.
45303case `pwd` in
45304.) ac_abs_builddir="$ac_dir";;
45305*)
45306 case "$ac_dir" in
45307 .) ac_abs_builddir=`pwd`;;
45308 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45309 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45310 esac;;
45311esac
45312case $ac_abs_builddir in
45313.) ac_abs_top_builddir=${ac_top_builddir}.;;
45314*)
45315 case ${ac_top_builddir}. in
45316 .) ac_abs_top_builddir=$ac_abs_builddir;;
45317 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45318 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45319 esac;;
45320esac
45321case $ac_abs_builddir in
45322.) ac_abs_srcdir=$ac_srcdir;;
45323*)
45324 case $ac_srcdir in
45325 .) ac_abs_srcdir=$ac_abs_builddir;;
45326 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45327 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45328 esac;;
45329esac
45330case $ac_abs_builddir in
45331.) ac_abs_top_srcdir=$ac_top_srcdir;;
45332*)
45333 case $ac_top_srcdir in
45334 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45335 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45336 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45337 esac;;
45338esac
a848cd7e
SC
45339
45340
45341 case $INSTALL in
45342 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45343 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45344 esac
45345
a848cd7e
SC
45346 # Let's still pretend it is `configure' which instantiates (i.e., don't
45347 # use $as_me), people would be surprised to read:
45348 # /* config.h. Generated by config.status. */
45349 if test x"$ac_file" = x-; then
45350 configure_input=
45351 else
45352 configure_input="$ac_file. "
45353 fi
45354 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 45355 sed 's,.*/,,'` by configure."
a848cd7e
SC
45356
45357 # First look for the input files in the build tree, otherwise in the
45358 # src tree.
45359 ac_file_inputs=`IFS=:
45360 for f in $ac_file_in; do
45361 case $f in
45362 -) echo $tmp/stdin ;;
45363 [\\/$]*)
ac1cb8d3
VS
45364 # Absolute (can't be DOS-style, as IFS=:)
45365 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45366echo "$as_me: error: cannot find input file: $f" >&2;}
45367 { (exit 1); exit 1; }; }
ac1cb8d3 45368 echo "$f";;
a848cd7e 45369 *) # Relative
ac1cb8d3
VS
45370 if test -f "$f"; then
45371 # Build tree
45372 echo "$f"
45373 elif test -f "$srcdir/$f"; then
45374 # Source tree
45375 echo "$srcdir/$f"
45376 else
45377 # /dev/null tree
45378 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45379echo "$as_me: error: cannot find input file: $f" >&2;}
45380 { (exit 1); exit 1; }; }
ac1cb8d3 45381 fi;;
a848cd7e
SC
45382 esac
45383 done` || { (exit 1); exit 1; }
8c539582
RL
45384
45385 if test x"$ac_file" != x-; then
45386 { echo "$as_me:$LINENO: creating $ac_file" >&5
45387echo "$as_me: creating $ac_file" >&6;}
45388 rm -f "$ac_file"
45389 fi
a848cd7e
SC
45390_ACEOF
45391cat >>$CONFIG_STATUS <<_ACEOF
45392 sed "$ac_vpsub
45393$extrasub
45394_ACEOF
45395cat >>$CONFIG_STATUS <<\_ACEOF
45396:t
45397/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45398s,@configure_input@,$configure_input,;t t
45399s,@srcdir@,$ac_srcdir,;t t
45400s,@abs_srcdir@,$ac_abs_srcdir,;t t
45401s,@top_srcdir@,$ac_top_srcdir,;t t
45402s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45403s,@builddir@,$ac_builddir,;t t
45404s,@abs_builddir@,$ac_abs_builddir,;t t
45405s,@top_builddir@,$ac_top_builddir,;t t
45406s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45407s,@INSTALL@,$ac_INSTALL,;t t
45408" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45409 rm -f $tmp/stdin
45410 if test x"$ac_file" != x-; then
45411 mv $tmp/out $ac_file
45412 else
45413 cat $tmp/out
45414 rm -f $tmp/out
45415 fi
45416
ceec2216
RL
45417 # Run the commands associated with the file.
45418 case $ac_file in
45419 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
45420 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
45421 esac
a848cd7e
SC
45422done
45423_ACEOF
45424cat >>$CONFIG_STATUS <<\_ACEOF
45425
45426#
45427# CONFIG_HEADER section.
45428#
45429
45430# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45431# NAME is the cpp macro being defined and VALUE is the value it is being given.
45432#
45433# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
45434ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45435ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
45436ac_dC=' '
45437ac_dD=',;t'
45438# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 45439ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
45440ac_uB='$,\1#\2define\3'
45441ac_uC=' '
45442ac_uD=',;t'
45443
45444for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45446 case $ac_file in
45447 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45448 cat >$tmp/stdin
45449 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45450 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45451 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45452 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45453 * ) ac_file_in=$ac_file.in ;;
45454 esac
45455
45456 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45457echo "$as_me: creating $ac_file" >&6;}
45458
45459 # First look for the input files in the build tree, otherwise in the
45460 # src tree.
45461 ac_file_inputs=`IFS=:
45462 for f in $ac_file_in; do
45463 case $f in
45464 -) echo $tmp/stdin ;;
45465 [\\/$]*)
ac1cb8d3
VS
45466 # Absolute (can't be DOS-style, as IFS=:)
45467 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45468echo "$as_me: error: cannot find input file: $f" >&2;}
45469 { (exit 1); exit 1; }; }
ac1cb8d3
VS
45470 # Do quote $f, to prevent DOS paths from being IFS'd.
45471 echo "$f";;
a848cd7e 45472 *) # Relative
ac1cb8d3
VS
45473 if test -f "$f"; then
45474 # Build tree
45475 echo "$f"
45476 elif test -f "$srcdir/$f"; then
45477 # Source tree
45478 echo "$srcdir/$f"
45479 else
45480 # /dev/null tree
45481 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45482echo "$as_me: error: cannot find input file: $f" >&2;}
45483 { (exit 1); exit 1; }; }
ac1cb8d3 45484 fi;;
a848cd7e
SC
45485 esac
45486 done` || { (exit 1); exit 1; }
45487 # Remove the trailing spaces.
ac1cb8d3 45488 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
45489
45490_ACEOF
45491
45492# Transform confdefs.h into two sed scripts, `conftest.defines' and
45493# `conftest.undefs', that substitutes the proper values into
45494# config.h.in to produce config.h. The first handles `#define'
45495# templates, and the second `#undef' templates.
45496# And first: Protect against being on the right side of a sed subst in
45497# config.status. Protect against being in an unquoted here document
45498# in config.status.
45499rm -f conftest.defines conftest.undefs
45500# Using a here document instead of a string reduces the quoting nightmare.
45501# Putting comments in sed scripts is not portable.
45502#
45503# `end' is used to avoid that the second main sed command (meant for
45504# 0-ary CPP macros) applies to n-ary macro definitions.
45505# See the Autoconf documentation for `clear'.
45506cat >confdef2sed.sed <<\_ACEOF
45507s/[\\&,]/\\&/g
45508s,[\\$`],\\&,g
45509t clear
45510: clear
ac1cb8d3 45511s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 45512t end
ac1cb8d3 45513s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
45514: end
45515_ACEOF
45516# If some macros were called several times there might be several times
45517# the same #defines, which is useless. Nevertheless, we may not want to
45518# sort them, since we want the *last* AC-DEFINE to be honored.
45519uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45520sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45521rm -f confdef2sed.sed
45522
45523# This sed command replaces #undef with comments. This is necessary, for
45524# example, in the case of _POSIX_SOURCE, which is predefined and required
45525# on some systems where configure will not decide to define it.
45526cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 45527s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
45528_ACEOF
45529
45530# Break up conftest.defines because some shells have a limit on the size
45531# of here documents, and old seds have small limits too (100 cmds).
45532echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 45533echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
45534echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45535echo ' :' >>$CONFIG_STATUS
45536rm -f conftest.tail
45537while grep . conftest.defines >/dev/null
45538do
45539 # Write a limited-size here document to $tmp/defines.sed.
45540 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45541 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 45542 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
45543 # Work around the forget-to-reset-the-flag bug.
45544 echo 't clr' >>$CONFIG_STATUS
45545 echo ': clr' >>$CONFIG_STATUS
45546 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45547 echo 'CEOF
45548 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45549 rm -f $tmp/in
45550 mv $tmp/out $tmp/in
45551' >>$CONFIG_STATUS
45552 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45553 rm -f conftest.defines
45554 mv conftest.tail conftest.defines
45555done
45556rm -f conftest.defines
45557echo ' fi # grep' >>$CONFIG_STATUS
45558echo >>$CONFIG_STATUS
45559
45560# Break up conftest.undefs because some shells have a limit on the size
45561# of here documents, and old seds have small limits too (100 cmds).
45562echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45563rm -f conftest.tail
45564while grep . conftest.undefs >/dev/null
45565do
45566 # Write a limited-size here document to $tmp/undefs.sed.
45567 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45568 # Speed up: don't consider the non `#undef'
ac1cb8d3 45569 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
45570 # Work around the forget-to-reset-the-flag bug.
45571 echo 't clr' >>$CONFIG_STATUS
45572 echo ': clr' >>$CONFIG_STATUS
45573 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45574 echo 'CEOF
45575 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45576 rm -f $tmp/in
45577 mv $tmp/out $tmp/in
45578' >>$CONFIG_STATUS
45579 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45580 rm -f conftest.undefs
45581 mv conftest.tail conftest.undefs
45582done
45583rm -f conftest.undefs
45584
45585cat >>$CONFIG_STATUS <<\_ACEOF
45586 # Let's still pretend it is `configure' which instantiates (i.e., don't
45587 # use $as_me), people would be surprised to read:
45588 # /* config.h. Generated by config.status. */
45589 if test x"$ac_file" = x-; then
45590 echo "/* Generated by configure. */" >$tmp/config.h
45591 else
45592 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45593 fi
45594 cat $tmp/in >>$tmp/config.h
45595 rm -f $tmp/in
45596 if test x"$ac_file" != x-; then
45597 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45598 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45599echo "$as_me: $ac_file is unchanged" >&6;}
45600 else
45601 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45602$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45603 X"$ac_file" : 'X\(//\)[^/]' \| \
45604 X"$ac_file" : 'X\(//\)$' \| \
45605 X"$ac_file" : 'X\(/\)' \| \
45606 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45607echo X"$ac_file" |
45608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45609 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45610 /^X\(\/\/\)$/{ s//\1/; q; }
45611 /^X\(\/\).*/{ s//\1/; q; }
45612 s/.*/./; q'`
45613 { if $as_mkdir_p; then
45614 mkdir -p "$ac_dir"
45615 else
45616 as_dir="$ac_dir"
45617 as_dirs=
45618 while test ! -d "$as_dir"; do
45619 as_dirs="$as_dir $as_dirs"
45620 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45621$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45622 X"$as_dir" : 'X\(//\)[^/]' \| \
45623 X"$as_dir" : 'X\(//\)$' \| \
45624 X"$as_dir" : 'X\(/\)' \| \
45625 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45626echo X"$as_dir" |
45627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45629 /^X\(\/\/\)$/{ s//\1/; q; }
45630 /^X\(\/\).*/{ s//\1/; q; }
45631 s/.*/./; q'`
45632 done
45633 test ! -n "$as_dirs" || mkdir $as_dirs
45634 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45635echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45636 { (exit 1); exit 1; }; }; }
45637
45638 rm -f $ac_file
45639 mv $tmp/config.h $ac_file
45640 fi
45641 else
45642 cat $tmp/config.h
45643 rm -f $tmp/config.h
45644 fi
45645done
45646_ACEOF
45647cat >>$CONFIG_STATUS <<\_ACEOF
45648
45649#
45650# CONFIG_COMMANDS section.
45651#
45652for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45653 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45654 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45655 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45656$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45657 X"$ac_dest" : 'X\(//\)[^/]' \| \
45658 X"$ac_dest" : 'X\(//\)$' \| \
45659 X"$ac_dest" : 'X\(/\)' \| \
45660 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45661echo X"$ac_dest" |
45662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45664 /^X\(\/\/\)$/{ s//\1/; q; }
45665 /^X\(\/\).*/{ s//\1/; q; }
45666 s/.*/./; q'`
ac1cb8d3
VS
45667 { if $as_mkdir_p; then
45668 mkdir -p "$ac_dir"
45669 else
45670 as_dir="$ac_dir"
45671 as_dirs=
45672 while test ! -d "$as_dir"; do
45673 as_dirs="$as_dir $as_dirs"
45674 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45675$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45676 X"$as_dir" : 'X\(//\)[^/]' \| \
45677 X"$as_dir" : 'X\(//\)$' \| \
45678 X"$as_dir" : 'X\(/\)' \| \
45679 . : '\(.\)' 2>/dev/null ||
45680echo X"$as_dir" |
45681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45683 /^X\(\/\/\)$/{ s//\1/; q; }
45684 /^X\(\/\).*/{ s//\1/; q; }
45685 s/.*/./; q'`
45686 done
45687 test ! -n "$as_dirs" || mkdir $as_dirs
45688 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45689echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45690 { (exit 1); exit 1; }; }; }
45691
a848cd7e
SC
45692 ac_builddir=.
45693
45694if test "$ac_dir" != .; then
45695 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45696 # A "../" for each directory in $ac_dir_suffix.
45697 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45698else
45699 ac_dir_suffix= ac_top_builddir=
45700fi
45701
45702case $srcdir in
45703 .) # No --srcdir option. We are building in place.
45704 ac_srcdir=.
45705 if test -z "$ac_top_builddir"; then
45706 ac_top_srcdir=.
45707 else
45708 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45709 fi ;;
45710 [\\/]* | ?:[\\/]* ) # Absolute path.
45711 ac_srcdir=$srcdir$ac_dir_suffix;
45712 ac_top_srcdir=$srcdir ;;
45713 *) # Relative path.
45714 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45715 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45716esac
ac1cb8d3
VS
45717
45718# Do not use `cd foo && pwd` to compute absolute paths, because
45719# the directories may not exist.
45720case `pwd` in
45721.) ac_abs_builddir="$ac_dir";;
45722*)
45723 case "$ac_dir" in
45724 .) ac_abs_builddir=`pwd`;;
45725 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45726 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45727 esac;;
45728esac
45729case $ac_abs_builddir in
45730.) ac_abs_top_builddir=${ac_top_builddir}.;;
45731*)
45732 case ${ac_top_builddir}. in
45733 .) ac_abs_top_builddir=$ac_abs_builddir;;
45734 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45735 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45736 esac;;
45737esac
45738case $ac_abs_builddir in
45739.) ac_abs_srcdir=$ac_srcdir;;
45740*)
45741 case $ac_srcdir in
45742 .) ac_abs_srcdir=$ac_abs_builddir;;
45743 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45744 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45745 esac;;
45746esac
45747case $ac_abs_builddir in
45748.) ac_abs_top_srcdir=$ac_top_srcdir;;
45749*)
45750 case $ac_top_srcdir in
45751 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45752 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45753 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45754 esac;;
45755esac
a848cd7e
SC
45756
45757
45758 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45759echo "$as_me: executing $ac_dest commands" >&6;}
45760 case $ac_dest in
ceec2216
RL
45761 wx-config ) rm -f wx-config
45762 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45763 ;;
a848cd7e
SC
45764 esac
45765done
45766_ACEOF
45767
45768cat >>$CONFIG_STATUS <<\_ACEOF
45769
45770{ (exit 0); exit 0; }
45771_ACEOF
45772chmod +x $CONFIG_STATUS
45773ac_clean_files=$ac_clean_files_save
45774
45775
45776# configure is writing to config.log, and then calls config.status.
45777# config.status does its own redirection, appending to config.log.
45778# Unfortunately, on DOS this fails, as config.log is still kept open
45779# by configure, so config.status won't be able to write to it; its
45780# output is simply discarded. So we exec the FD to /dev/null,
45781# effectively closing config.log, so it can be properly (re)opened and
45782# appended to by config.status. When coming back to configure, we
45783# need to make the FD available again.
45784if test "$no_create" != yes; then
45785 ac_cs_success=:
45786 ac_config_status_args=
45787 test "$silent" = yes &&
45788 ac_config_status_args="$ac_config_status_args --quiet"
45789 exec 5>/dev/null
45790 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45791 exec 5>>config.log
45792 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45793 # would make configure fail if this is the last instruction.
45794 $ac_cs_success || { (exit 1); exit 1; }
45795fi
45796
45797#
45798# CONFIG_SUBDIRS section.
45799#
45800if test "$no_recursion" != yes; then
45801
45802 # Remove --cache-file and --srcdir arguments so they do not pile up.
45803 ac_sub_configure_args=
45804 ac_prev=
45805 for ac_arg in $ac_configure_args; do
45806 if test -n "$ac_prev"; then
45807 ac_prev=
45808 continue
45809 fi
45810 case $ac_arg in
45811 -cache-file | --cache-file | --cache-fil | --cache-fi \
45812 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45813 ac_prev=cache_file ;;
45814 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45815 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45816 | --c=*)
45817 ;;
45818 --config-cache | -C)
45819 ;;
45820 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45821 ac_prev=srcdir ;;
45822 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45823 ;;
45824 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45825 ac_prev=prefix ;;
45826 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45827 ;;
45828 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45829 esac
45830 done
45831
45832 # Always prepend --prefix to ensure using the same prefix
45833 # in subdir configurations.
45834 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45835
45836 ac_popdir=`pwd`
45837 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45838
45839 # Do not complain, so a configure script can configure whichever
45840 # parts of a large source tree are present.
45841 test -d $srcdir/$ac_dir || continue
45842
45843 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45844echo "$as_me: configuring in $ac_dir" >&6;}
45845 { if $as_mkdir_p; then
45846 mkdir -p "$ac_dir"
45847 else
45848 as_dir="$ac_dir"
45849 as_dirs=
45850 while test ! -d "$as_dir"; do
45851 as_dirs="$as_dir $as_dirs"
45852 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45853$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45854 X"$as_dir" : 'X\(//\)[^/]' \| \
45855 X"$as_dir" : 'X\(//\)$' \| \
45856 X"$as_dir" : 'X\(/\)' \| \
45857 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45858echo X"$as_dir" |
45859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45860 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45861 /^X\(\/\/\)$/{ s//\1/; q; }
45862 /^X\(\/\).*/{ s//\1/; q; }
45863 s/.*/./; q'`
45864 done
45865 test ! -n "$as_dirs" || mkdir $as_dirs
45866 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45867echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45868 { (exit 1); exit 1; }; }; }
45869
45870 ac_builddir=.
45871
45872if test "$ac_dir" != .; then
45873 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45874 # A "../" for each directory in $ac_dir_suffix.
45875 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45876else
45877 ac_dir_suffix= ac_top_builddir=
45878fi
45879
45880case $srcdir in
45881 .) # No --srcdir option. We are building in place.
45882 ac_srcdir=.
45883 if test -z "$ac_top_builddir"; then
45884 ac_top_srcdir=.
45885 else
45886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45887 fi ;;
45888 [\\/]* | ?:[\\/]* ) # Absolute path.
45889 ac_srcdir=$srcdir$ac_dir_suffix;
45890 ac_top_srcdir=$srcdir ;;
45891 *) # Relative path.
45892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45894esac
ac1cb8d3
VS
45895
45896# Do not use `cd foo && pwd` to compute absolute paths, because
45897# the directories may not exist.
45898case `pwd` in
45899.) ac_abs_builddir="$ac_dir";;
45900*)
45901 case "$ac_dir" in
45902 .) ac_abs_builddir=`pwd`;;
45903 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45904 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45905 esac;;
45906esac
45907case $ac_abs_builddir in
45908.) ac_abs_top_builddir=${ac_top_builddir}.;;
45909*)
45910 case ${ac_top_builddir}. in
45911 .) ac_abs_top_builddir=$ac_abs_builddir;;
45912 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45913 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45914 esac;;
45915esac
45916case $ac_abs_builddir in
45917.) ac_abs_srcdir=$ac_srcdir;;
45918*)
45919 case $ac_srcdir in
45920 .) ac_abs_srcdir=$ac_abs_builddir;;
45921 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45922 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45923 esac;;
45924esac
45925case $ac_abs_builddir in
45926.) ac_abs_top_srcdir=$ac_top_srcdir;;
45927*)
45928 case $ac_top_srcdir in
45929 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45930 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45931 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45932 esac;;
45933esac
a848cd7e
SC
45934
45935
45936 cd $ac_dir
45937
45938 # Check for guested configure; otherwise get Cygnus style configure.
45939 if test -f $ac_srcdir/configure.gnu; then
45940 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45941 elif test -f $ac_srcdir/configure; then
45942 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45943 elif test -f $ac_srcdir/configure.in; then
45944 ac_sub_configure=$ac_configure
45945 else
45946 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45947echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45948 ac_sub_configure=
45949 fi
45950
45951 # The recursion is here.
45952 if test -n "$ac_sub_configure"; then
45953 # Make the cache file name correct relative to the subdirectory.
45954 case $cache_file in
45955 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45956 *) # Relative path.
ac1cb8d3 45957 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45958 esac
45959
45960 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45961echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45962 # The eval makes quoting arguments work.
45963 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45964 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45965 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45966echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45967 { (exit 1); exit 1; }; }
45968 fi
45969
8c539582 45970 cd "$ac_popdir"
a848cd7e
SC
45971 done
45972fi
45973
45974
45975echo
77ffb593 45976echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45977echo ""
4d4ff94c 45978echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45979echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45980
77ffb593
JS
45981echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45982echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45983echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45984
77ffb593
JS
45985echo " What level of wxWidgets compatibility should be enabled?"
45986echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45987echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45988
77ffb593 45989echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45990echo " jpeg ${wxUSE_LIBJPEG-none}"
45991echo " png ${wxUSE_LIBPNG-none}"
45992echo " regex ${wxUSE_REGEX}"
45993echo " tiff ${wxUSE_LIBTIFF-none}"
45994if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45995echo " xpm ${wxUSE_LIBXPM-none}"
45996fi
45997echo " zlib ${wxUSE_ZLIB}"
45998echo " odbc ${wxUSE_ODBC}"
45999echo " expat ${wxUSE_EXPAT}"
46000echo " libmspack ${wxUSE_LIBMSPACK}"
46001echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46002echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46003
46004echo ""
46005